OpenSeeSP MPCORecorder Error: cannot write model

Post Reply
jfhuang
Posts: 21
Joined: Thu Nov 26, 2020 5:21 am

OpenSeeSP MPCORecorder Error: cannot write model

Post by jfhuang » Thu Jan 18, 2024 5:34 am

Hi, I am using the mpco recorder in OpenSeesSP to record only part of my model which is defined using the region command. However, this can lead to MPCRecorder write errors in some occasions. Specfically, this happens when I put the mpco recorder between the first gravity initialization phase and the second dynamic analysis phase. This error would disappear when I put the mpco recorder right after creating the model but before the gravity analysis (well partially, as some processors that do not have nodes/elements in them will still give out this error) , which I do not want mpco to start to record the results yet. Note that the model does not change between the two analysis phases. Is this a bug and is there any way to get around this? I am attaching an example small model that replicate this (see comments in the main.tcl file). Thanks in advance!

P.S. I am using the latest OpenSees code and compiled on Ubuntu.

Code: Select all

/mnt/d/example$ mpirun -np 2 OpenSeesSP main.tcl                                                            [5/733]Primary Process Running OpenSees Interpreter 0                                                                                                                                                                                                                                                                                                                                                                                                                                               OpenSees -- Open System For Earthquake Engineering Simulation                                                                                                       Pacific Earthquake Engineering Research Center                                                                                                                     Version 3.5.1 64-Bit

      (c) Copyright 1999-2016 The Regents of the University of California
                              All Rights Reserved
  (Copyright and Disclaimer @ http://www.berkeley.edu/OpenSees/copyright.html)


Secondary Process Running 1
DomainPartitioner::partition() - Start
DomainPartitioner::partition - Successful partition. Now redistributing data accordingly.
  * Identifying components to transfer.
     + Elements.
     + Nodes.
     + Boundary Nodes.
     + MP constraints.
     + MP constraints (2nd pass).
  * Sending nodes.
  * Sending elements.
  * Sending Load Patterns
  * Sending homogeneous SP Constraints
  * Sending MP Constraints
DomainPartitioner::partition() - Done
MPCO recorder - Written by ASDEA Software Technology: M.Petracca, G.Camata
ASDEA Software Technology: https://asdeasoft.net
STKO (Scientific ToolKit for OpenSees): https://asdeasoft.net/stko/
If you use this tool, please cite us:
Petracca, M., Candeloro, F., & Camata, G. (2017). "STKO user manual". ASDEA Software Technology, Pescara Italy.
Step 1 / 5
MPCORecorder Error: no nodes to write
MPCRecorder Error: cannot write model
Step 2 / 5
MPCORecorder Error: no nodes to write
MPCRecorder Error: cannot write model
Step 3 / 5
Step 4 / 5
Process Terminating 1
Process Terminating 0
Attachments
exampleModel.zip
(3.53 KiB) Downloaded 348 times

STKO Team
Posts: 3066
Joined: Tue Oct 29, 2019 8:45 am

Re: OpenSeeSP MPCORecorder Error: cannot write model

Post by STKO Team » Mon Jan 22, 2024 3:59 pm

OpenSeesSP has some limitations.

OpenSeesSP builds the whole model at the beginning. Then, when OpenSees issues the first "analyze" command for the very first time, OpenSeesSP partitions the model and sends the different pieces (containing nodes, elements, and also recorders) to other processors.

Everything you do after the first analysis step, will not be transferred to all sub-processes.

I would suggest you to either switch to OpenSeesMP (you have full freedom there), otherwise define the recorder at the beginning

jfhuang
Posts: 21
Joined: Thu Nov 26, 2020 5:21 am

Re: OpenSeeSP MPCORecorder Error: cannot write model

Post by jfhuang » Mon Jan 22, 2024 6:52 pm

I see, thanks very much for the explanation.

STKO Team
Posts: 3066
Joined: Tue Oct 29, 2019 8:45 am

Re: OpenSeeSP MPCORecorder Error: cannot write model

Post by STKO Team » Wed Jan 24, 2024 9:09 am

You're welcome

Post Reply