Opened 7 years ago
Last modified 6 years ago
#4631 new defect
FMU clash with IPython and PyFMI (JSON involved)
Reported by: | anonymous | Owned by: | Lennart Ochel |
---|---|---|---|
Priority: | high | Milestone: | Future |
Component: | FMI | Version: | v1.12.0 |
Keywords: | pyfmi ipython json | Cc: |
Description
Trying to load an FMU compiled by omc (OpenModelica's compiler) with PyFMI provoke a nasty crash under IPython.
Running
import pyfmi
pyfmi.load_fmu("path/to/fmu")
makes IPython crash with message
JSON object expected ',' or '}', got: "lineEnd":67,"colSta
Aborted (core dumped)
I tried both IPython 5.4 and 4.2, for Python 2.7.13 (Anaconda 64-bit) on Ubuntu 16.04.
An example FMU for reproducing the bug can be found here:
https://trac.fmi-standard.org/browser/branches/public/Test_FMUs/FMI_2.0/...
This seems to be specific to OpenModelica as a JModelica compiled FMU (https://trac.fmi-standard.org/browser/branches/public/Test_FMUs/FMI_2.0/...) does not trigger the error.
Both FMUs pass the FMU compliance check.
Do you have any idea about the problem's root and how to solve it?
I already experienced segfaults with older version of OpenModelica, as mentionned here: http://www.jmodelica.org/27816. They were however rare enough to be only a nuisance, not a show stopper.
I guess without having the JSON and/ or the model, this cannot be root-caused, right?