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

Robustly check simulation timing/failures from MOS script

Robustly check simulation timing/failures from MOS script

I built a MOS script for testing some models of my library.

However, I incurred in a very annoying issue: I can't find a way to:
- test if the model failed during translation or during simulation
- report timing of translation/simulation

I tried to use simulate() and then look at SimulationResult, however some variables in the SimulationResult record are not there when something goes wrong.
E.g timeTotal does not exist when simulation fails; then, if I try to read it, my MOS script ends prematurely;

I opened a ticket on the Modelica Bug Tracker: issue #5755

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