-
Notifications
You must be signed in to change notification settings - Fork 35
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
Simulink Compiler FMU crashes #158
Comments
Hi haeuszler, I recommend contacting Simulink support instead since you seem to have narrowed it down to be a Simulink exclusive issue? /Peter |
It appears that the issue is specific to the combination of this fmi-library with the Simulink FMU. The same FMU works fine in Hopsan. Notably, Hopsan uses the fmi4c library(https://github.com/robbr48/fmi4c) for FMU import. |
Can you share some log output? If the issue happens within the doStep() call, it is still an issue of the FMU generating tool. /Peter |
This is the oputputlog and the access violation module = FMILIB, log level = VERBOSE: Allocating FMIL context In parallel, I'm also trying to get in touch with someone from MATLAB support. |
@PeterMeisrimelModelon I noticed that the value references in the model desciption are not unique. Might that be part of the problem? |
/Peter |
Hi everyone,
I'm using the importer example (fmi2_import_cs_test) with an FMU exported from Simulink (R2023a) for co-simulation. Initialization completes successfully, but when I call the step function, a read access violation error occurs. FMUs from other tools work fine, so it appears the problem is specific to FMUs generated by the Simulink compiler.
I've attached a minimal FMU (from a simple Simulink model) for reference.
New_Model_FMU.zip
Has anyone encountered this issue or found a workaround?
Thanks in advance!
The text was updated successfully, but these errors were encountered: