Skip to content

Commit

Permalink
- FMU 1.0 test is now working again, if a nls is part of the model
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcus Walther committed Jul 27, 2015
1 parent 924fa65 commit b801d5c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
5 changes: 3 additions & 2 deletions openmodelica/cppruntime/fmu/modelExchange/1.0/Makefile
Expand Up @@ -2,9 +2,10 @@ TEST = ../../../../../rtest -v


TESTFILES = \
CoupledClutches.mos
CoupledClutches.mos \
crane.mos

FAILINGTESTFILES = crane.mos
FAILINGTESTFILES =

DEPENDENCIES = \
*.mo \
Expand Down
10 changes: 5 additions & 5 deletions openmodelica/cppruntime/fmu/modelExchange/1.0/crane.mos
Expand Up @@ -6,14 +6,14 @@
loadModel(Modelica); getErrorString();
setCommandLineOptions("+simCodeTarget=Cpp"); getErrorString();
loadFile("cranes.mo"); getErrorString();
//translateModelFMU(cranes.crane); getErrorString();
translateModelFMU(cranes.crane); getErrorString();

//importFMU("cranes_crane.fmu", "<default>", 6, false, true); getErrorString();
//importFMU("cranes_crane.fmu", "<default>"); getErrorString();
//loadFile("cranes_crane_me_FMU.mo"); getErrorString();
//simulate(cranes_crane_me_FMU, numberOfIntervals=150); getErrorString();
importFMU("cranes_crane.fmu", "<default>"); getErrorString();
loadFile("cranes_crane_me_FMU.mo"); getErrorString();
simulate(cranes_crane_me_FMU, numberOfIntervals=150); getErrorString();

simulate(cranes.crane, numberOfIntervals=150, simflags="-N newton"); getErrorString();
//simulate(cranes.crane, numberOfIntervals=150); getErrorString();

val(position_s, 1);
val(prismatic_v, 1);
Expand Down

0 comments on commit b801d5c

Please sign in to comment.