-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
simData.success not working properly? #217
Comments
You are correct. We can totally discuss this. |
To confirm, yes I am using CS. Also, not to rush you, but any rough ETA for the update you mentioned? As an FYI, what I've been doing as a workaround is to add a |
For CS, I think we should just track the return codes of Yep, the library tree is under heavy refactoring for a v1.0.0 release, the current plan is to release one after another (one per week), so I think the final FMI.jl patch will be ready in 4-6 weeks (together with a lot more things solved than just this issue of course). |
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.
The text was updated successfully, but these errors were encountered: