-
Notifications
You must be signed in to change notification settings - Fork 6
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
Thrift exception thrown at specific simulation time #36
Comments
I would think this is due to proxyfmu throwing an exception. That would manifest as a thrift exception on the caller side. |
I'm able to reproduce using only the proxyfmu API. The FMU does not matter, it threw an exception after some 2.800.000 calls to get and step functions even for identity.fmu. |
Great news that it is reproducible. I originally posted the issue on libcosim until we figured out the root cause. Are you suspecting the issue to be related to the thrift wrapper? In that case we should tranfer this issue to proxy-fmu. |
Closing as duplicate of #34 |
There was a memory leak in those kinds of FMUs that was fixed at some point. Are we sure its not the FMUs? |
We observe this with quarter-truck and FMUs generated from other Simulink models. They run fine with thrift 0.13.0. |
Would be interessting to see if this is a boost dependency issue. Anyhow, would a conan override be sufficient for end-users? |
Ah, right, it's statically linked! I think the only reason proxyfmu uses |
Just done some testing locally, but I still observe the error using the new build. |
@markaren I suggest to revert thrift version back to |
A temporary workaround for an issue found in proxyfmu: open-simulation-platform/proxy-fmu#36
Running simulations with proxyfmu seems to crash after some hours (simulation time). For a given
OspSystemStructure.xml
the exception is thrown at the same simulation time every time.Here is an example using the Damper.fmu
The case can easily be replicated by using cosim-cli. You can download the cosim executable that includes proxyfmu here.
Run the following command:
.\cosim.exe run C:\path\to\configuration\above\ -d 30000 --mr-progress 1000 --log-level trace
The following will be printed to console after 21840 seconds:
Observations:
If simulating without logging results to csv (--output-config none), the simulation will run for approximately 43200 seconds before crashing. However, this is also happening on the same time for every simulation.
The proxyfmu process is still alive after cosim-cli (libcosim) has crashed, but its state is unknown.
The problem occurs for both FMI 1.0 and 2.0 FMUs
Due to not getting any output from the proxyfmu process it is still not confirmed if it is the proxyfmu or the libcosim side where the problem occurs.
Simulation time for crash with single fmu configurations:
DPController.fmu runs for ~41940 seconds
Damper.fmu runs for ~21840 seconds
The text was updated successfully, but these errors were encountered: