Skip to content

simData.success not working properly? #217

Description

@mestinso

I'm running a simulation using the following command: simData = fmiSimulate(....

This particular FMU is terminating during the simulation and I see the following error printed out visually in the Julia REPL:
[Error][IllegalFunctionCall][TestFMIJulia]: fmi2DoStep: model is terminated

This is all fine and good and is expected in this particular case.

However, my surprise is that when I query simData.success it is returning true. Is this correct or should it be returning false?

If this behavior is expected, is there a better/alternative way to detect if the simulation wasn't successful?

Edit: I did a few more tests and inserted some divide by zero calculations into the simulation. Again, I see errors printed on the screen, but the simData.success is still true. Please advise if this is expected.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions