﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
2772	FMI export Linux fmiFreeModelInstance	joohnycz	Martin Sjölund	"When I try to simulate FMU under Linux, the simulation is going well, but when I try to call fmiFreeModelInstance and then unload (dlclose) the FMU .so, it fails. 

It seems that simulation depends on few .so from OpenModelica and when calling freeModelInstance are not dlclosed.

{{{
/usr/lib/lapack/liblapack.so.3.0
/usr/lib/libblas/libblas.so.3.0
/usr/lib/libsundials_kinsol.so.1.0.0
/usr/lib/omc/libcminpack.so.1.3.2
/usr/lib/omc/libcoinmumps.so.1.4.11
/usr/lib/omc/libgc.so.1.0.3
/usr/lib/omc/libipopt.so.1.9.6
/usr/lib/omc/liblis.so.0.0.0
/usr/lib/omc/libSimulationRuntimeC.so
}}}

Is it possible to unload libraries above when function fmiFreeModelInstance is called? I think it would agree with FMI standard (""Dispose the given model instance and deallocate all the allocated memory and other resources..."").

And I guess that the simulation of FMU will fail on machine where OpenModelica is not installed - maybe I'll test it.

Ubuntu 14.04, OpenModelica 1.9.1+dev (r21649)"	defect	closed	high	1.9.1	FMI	trunk	fixed		joohnycz@…
