Archived OpenModelica forums. Posting is disabled.

Alternative forums include GitHub discussions or StackOverflow (make sure to read the Stack Overflow rules; you need to have well-formed questions)


Forgot password? | Forgot username? | Register

Error in simulating a model from OMShell-terminal

Error in simulating a model from OMShell-terminal

Hello everyone! I am simulating a model using OMShell-terminal. First, I am simulating this model as shown below:

Code:

simulate(FlatControlTB, startTime = 0, stopTime = 20)

In this case, the simulation is successful, and the result file is stored in the current working directory. Next, I simulate the same model by activating the OPC-UA server, as shown below:

Code:

simulate(FlatControlTB, startTime = 0, stopTime = 20, simflags = "-rt=1.0 -embeddedServer=opc-ua")

In this case, the simulation runs properly, and I can get the values on the client-side. However, at the end of the simulation, it throws an error, as shown below:

Code:


info/network    Shutting down the TCP network layer with 1 open connection(s)
free(): invalid pointer
Aborted (core dumped)

Since the simulation was not successful, the result file is not stored. I cannot figure out why the simulation fails when I try simulating it with the OPC-UA server. Could anyone please provide some insights into this?

There are 0 guests and 0 other users also viewing this topic
You are here: