You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I used your Generator to create an FMU implementation and imported it into the Simulink canvas. Simulink prompted me to choose between Co-simulation and Model-exchange mode. I selected Model-exchange mode. However, during the simulation, I received the following message: 'TerminateSimulation' flag was set to true by FMU 'FMUDemo/FMU' during event iteration. Simulation will stop after the current time step at '0'. This seems to prevent the subsequent simulation from running correctly.
Could you please let me know in which part of the implementation code the 'TerminateSimulation' flag is set?
The text was updated successfully, but these errors were encountered:
Hi, sorry for the late reply, but I'm a litte busy in other projects.
Regarding the ModelExchange: the FMI CodeGenerator does not create any code that deals with the TerminateSimulation flag. In any case, could you pass the source code of your Demo-FMU for checking? Often, the TerminateSimulation flag is set by the ModelExchange master if the FMU has invalid/undefined behavior and thus fails to solve equations suitable for Jacobian matrix generation in the master solver.
Thank you for your code,
I used your Generator to create an FMU implementation and imported it into the Simulink canvas. Simulink prompted me to choose between Co-simulation and Model-exchange mode. I selected Model-exchange mode. However, during the simulation, I received the following message: 'TerminateSimulation' flag was set to true by FMU 'FMUDemo/FMU' during event iteration. Simulation will stop after the current time step at '0'. This seems to prevent the subsequent simulation from running correctly.
Could you please let me know in which part of the implementation code the 'TerminateSimulation' flag is set?
The text was updated successfully, but these errors were encountered: