-
Notifications
You must be signed in to change notification settings - Fork 39
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
Simulation fails for start_time greater than 0 #261
Comments
Hi, can you share your call sequence + model default state & stop times? By default initialization will be performed to the /Peter |
I tried adding |
Is there any particular reason for the while loop? Unless there is something missing here in terms of the input being updated, I do not see the need for the loop. You can try to "manually" initialize the model via the follow sequence:
followed by simulation. Can you try to increase the log level to 7 and paste the log output? /Peter |
The loop is due to the fact that we need to simulate one step at a time to interact with the model to send control actions.
[...]
[...]
I only reported some parts of the log file that I got setting log level = 7 because it is too long. The log file only outputs level 2, 4, 5. |
Does OpenModelica do any logging on fmi2setTime? Setting up the experiment & initializing with the appropriate start time it seems strange that the model would do evaluations at any time smaller than that. It could be worth asking the same question on the OpenModelica GitHub, since this issue could also be due to the FMU not correctly picking up on values from setting up the experiment or initialization. |
Hi,
I'm encountering an issue when simulating with pyFMI an FMU that was extracted from a Modelica file using OpenModelica. The simulation runs successfully when the start time is set to 0. However, if I set the start time to a value greater than zero (e.g., 3600), the simulation fails, and I receive the following error message:
assimulo.solvers.sundials.CVodeError: 'The linear solvers setup function failed in an unrecoverable manner. At time 3449.640593.'
Note that the function failed at a timestep that is smaller the start time it self (3449). The larger i set the relative tolerance, the closer simulation failed time approaches the start time.
The text was updated successfully, but these errors were encountered: