Opened 11 years ago

Closed 11 years ago

Last modified 9 years ago

#2147 closed defect (invalid)

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

Reported by: wbraun Owned by: adeas31
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 Changed 11 years ago by anonymous

might be connected to #2136

comment:2 Changed 11 years ago by wbraun

  • Resolution set to invalid
  • Status changed from new to closed

This one is invalid, the simulation settings were different.

comment:3 Changed 9 years ago by dietmarw

  • Component changed from User interface to Interactive Environment
Note: See TracTickets for help on using tickets.