Opened 12 years ago

Closed 12 years ago

Last modified 9 years ago

#2147 closed defect (invalid)

simulation fails with buildModel(), but works with simulate()

Reported by: Willi Braun Owned by: Adeel Asghar
Priority: blocker Milestone: 1.9.0
Component: Interactive Environment Version: trunk
Keywords: Cc:

Description

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.

Change History (3)

comment:1 by anonymous, 12 years ago

might be connected to #2136

comment:2 by Willi Braun, 12 years ago

Resolution: invalid
Status: newclosed

This one is invalid, the simulation settings were different.

comment:3 by Dietmar Winkler, 9 years ago

Component: User interfaceInteractive Environment
Note: See TracTickets for help on using tickets.