﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
5035	FMI export produces non-FMI-compliant FMUs	Marcus Åberg <marcus.aberg@…>	Lennart Ochel	"Hi, OpenModelica. 

We have been trying to import FMUs created with OpenModelica FMU export with FMI Toolbox for MatLab/Simulink as well as Dymola and it does not work. 

We think that some part of the FMU-export in OpenModelica is not compliant with the FMI-standard as the error message from Matlab:

    module = FMICAPI, log level = FATAL: Could not load the DLL: The specified procedure could not be found.
    Error:Error reported by S-function 'XXXX' in 'model_name/fmu_name':
    Could not load the DLL. See the Command Window for more details.

Suggests that the OpenModelica FMU has a dynamic dependency on the Windows C runtime. This is not compliant with the FMI 2.0 standard, which states

""Dynamic link
libraries must include all referenced resources that are not available on a standard target machine [for
example DLLs on Windows machines must be built with option “MT” to include the run-time environment
of VisualStudio in the DLL, and not use the option “MD” where this is not the case]"" (p. 66)

Is this something you have seen before?

Let me know if you need more information.

/Marcus Åberg, Modelon AB"	defect	closed	high	1.13.0	FMI	v1.12.0	fixed		henning.larsson@… mathias.strandberg@…
