Opened 13 years ago
Closed 13 years ago
#1885 closed defect (fixed)
generated FMI can not be simulated with FMUSDK
| Reported by: | richti83 | Owned by: | Willi Braun |
|---|---|---|---|
| Priority: | high | Milestone: | 1.9.0 |
| Component: | Code Generation | Version: | 1.9.0Beta |
| Keywords: | Cc: | Adeel Asghar |
Description
Since update from 1.8.1 to 1.9 r13381 the FMI Export seems to be broken. The generated FMU is not usable in the FMUSDK [1] and the FMU.Checker [2] complains:
[ERROR][FMUCHK] FMU does not make an internal copy of provided instance name (violation of fmiString handling)
[FMU][log][FMU status:OK] fmiSetTime: time=0
[FMU][log][FMU status:OK] fmiInitialize: toleranceControlled=0 relativeTolerance=1e-06
Speicherzugriffsfehler (Speicherabzug geschrieben)
The error occurs in Linux64 and Win64, but not with OM versions <=1.8.1 (tested with Multibody_Examples_Elementary_Pendulum)
[1] https://trac.fmi-standard.org/browser/branches/public/Test_FMUs/FMI_1.0/Compliance-Checker
[2] http://github.com/mtiller/fmusdk
Change History (5)
comment:1 by , 13 years ago
comment:2 by , 13 years ago
| Owner: | changed from to |
|---|---|
| Status: | new → assigned |
comment:3 by , 13 years ago
| Cc: | added |
|---|

I was able to track this down to eqFunction_16() in Modelica_Mechanics_MultiBody_Examples_Elementary_Pendulum.c
But don't have any idea how to solve this.
Core was generated by `fmuchk Modelica_Mechanics_MultiBody_Examples_Elementary_Pendulum.fmu'. Program terminated with signal 11, Segmentation fault. #0 0x00007f31e594021f in eqFunction_16 () from ./Modelica_Mechanics_MultiBody_Examples_Elementary_Pendulum.so (gdb) bt #0 0x00007f31e594021f in eqFunction_16 () from ./Modelica_Mechanics_MultiBody_Examples_Elementary_Pendulum.so #1 0x00007f31e594067e in functionDAE () from ./Modelica_Mechanics_MultiBody_Examples_Elementary_Pendulum.so #2 0x00007f31e598e5b3 in updateDiscreteSystem () from ./Modelica_Mechanics_MultiBody_Examples_Elementary_Pendulum.so #3 0x00007f31e599466d in initialization () from ./Modelica_Mechanics_MultiBody_Examples_Elementary_Pendulum.so #4 0x00007f31e5903be0 in Modelica_Mechanics_MultiBody_Examples_Elementary_Pendulum_fmiInitialize () from ./Modelica_Mechanics_MultiBody_Examples_Elementary_Pendulum.so #5 0x000000000043f21e in fmi1_capi_initialize (fmu=0x983a60, toleranceControlled=0 '\000', relativeTolerance=9.9999999999999995e-07, eventInfo=0x7fff49bbed10) at /lib/fmu_lib/fmuchk/FMILibrary-1.0.1/src/CAPI/src/FMI1/fmi1_capi_me.c:43 #6 0x000000000040867f in fmi1_import_initialize (fmu=0x983a00, toleranceControlled=0 '\000', relativeTolerance=9.9999999999999995e-07, eventInfo=0x7fff49bbed10) at /home/dem/LIGGGHTS-ULTIMATE/lib/fmu_lib/fmuchk/FMILibrary-1.0.1/src/Import/src/FMI1/fmi1_import_capi.c:253 #7 0x0000000000404f7c in fmi1_me_simulate (cdata=0x7fff49bbef20) at /home/dem/LIGGGHTS-ULTIMATE/lib/fmu_lib/fmuchk/FMUChecker-1.0.2/src/FMI1/fmi1_me_sim.c:88 #8 0x0000000000404103 in fmi1_check (cdata=0x7fff49bbef20) at /home/dem/LIGGGHTS-ULTIMATE/lib/fmu_lib/fmuchk/FMUChecker-1.0.2/src/FMI1/fmi1_check.c:182 #9 0x000000000040346c in main (argc=2, argv=0x7fff49bc1fe8) at /home/dem/LIGGGHTS-ULTIMATE/lib/fmu_lib/fmuchk/FMUChecker-1.0.2/src/Common/fmuChecker.c:489