﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
4631	FMU clash with IPython and PyFMI (JSON involved)	anonymous	Lennart Ochel	"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."	defect	new	high	Future	FMI	v1.12.0		pyfmi ipython json	
