﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
2147	simulation fails with buildModel(), but works with simulate()	Willi Braun	Adeel Asghar	"I tried the following script in testsuite/openmodelica/fmi/ModelExchange/
{{{
loadModel(Modelica); getErrorString();
loadFile(""PlanarMechanicsStandard.mo""); getErrorString();
loadFile(""JuliansBib.mo""); getErrorString();

translateModelFMU(JuliansBib.Connector_Hebelarm_einfach);
getErrorString();

importFMU(""JuliansBib_Connector_Hebelarm_einfach.fmu"", loglevel=3, fullPath=true, debugLogging=false, generateInputConnectors=true, generateOutputConnectors=true);
getErrorString();

loadFile(""JuliansBib_Connector_Hebelarm_einfach_me_FMU.mo"");
getErrorString();

simulate(JuliansBib_Connector_Hebelarm_einfach_me_FMU);
getErrorString();
system(""./JuliansBib_Connector_Hebelarm_einfach_me_FMU"");

buildModel(JuliansBib_Connector_Hebelarm_einfach_me_FMU,startTime=0.0, stopTime=10.0, numberOfIntervals=500, method=""dassl"", tolerance=1e-06, outputFormat=""mat"");
getErrorString();
system(""./JuliansBib_Connector_Hebelarm_einfach_me_FMU"");
getErrorString();
}}}
The one compiled with simulate() works correct, 
but the one compiled with buildModel() fails.
Does anyone have an idea?

Since buildModel() is used by OMEdit, so perhaps more models
will fail while simulating the with OMEdit.
"	defect	closed	blocker	1.9.0	Interactive Environment	trunk	invalid		
