-
Notifications
You must be signed in to change notification settings - Fork 29
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
Segmentation fault when using OpenModelica FMU #173
Comments
Can you compile with debug activated and use gdb to know where the error is ? It may either be in the FMU wrapper itself, or PolyORB-HI/C. I suppose it is the FMU wrapper itself, but cannot guess without further details. |
This is the gdb output after compiling with -d flag. I'm not sure if it gives useful information.
|
Have you tested any FMUs generated with OpenModelica? |
Cannot remember from the top of my head wether we tested OpenModelica or JModelica |
Yes, I saw that those are from JModelica so that's why I asked. Since I found some issues with Amesim created FMUs, there may be some issues with OpenModelica ones as well I guess. |
The following patch addresses the issue when using FMUs generated by OpenModelica |
OCARINA VERSION:
Ocarina 2017.x (Working Copy from rf4cbc2d)
Copyright (c) 2003-2009 Telecom ParisTech, 2010-2018 ESA & ISAE
Build date:
HOST MACHINE and OPERATING SYSTEM:
Linux 4.9.0-6-amd64 #1 SMP Debian 4.9.88-1+deb9u1 (2018-05-07) x86_64 GNU/Linux
COMPILER VERSION
gcc (Debian 6.3.0-18+deb9u1) 6.3.0 20170516
DESCRIPTION:
After compiling AADL code with
ocarina -aadlv2 -y -b -g polyorb_hi_c xx.aadl
I get an executable that I can run but I get a segmentation fault error and result.csv file is 0 bytes.
This model contains 5 FMUs generated in OpenModelica. Unfortunately the full model can't be shared so is there any way that I can debug that error?
Thanks
The text was updated successfully, but these errors were encountered: