Skip to content

Commit

Permalink
test for visualization results
Browse files Browse the repository at this point in the history
  • Loading branch information
vwaurich authored and OpenModelica-Hudson committed Nov 7, 2016
1 parent 4e7e8b6 commit 6fb589f
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 0 deletions.
1 change: 1 addition & 0 deletions simulation/modelica/others/Makefile
@@ -1,6 +1,7 @@
TEST = ../../../rtest -v

TESTFILES = \
world.mos \
EngineV6_evalParams.mos \
EngineV6_output.mos \
Bug1687.mos \
Expand Down
6 changes: 6 additions & 0 deletions simulation/modelica/others/world.mo
@@ -0,0 +1,6 @@
within ;
model world
inner Modelica.Mechanics.MultiBody.World world
annotation (Placement(transformation(extent={{-20,40},{0,60}})));
annotation (uses(Modelica(version="3.2.1")));
end world;
30 changes: 30 additions & 0 deletions simulation/modelica/others/world.mos
@@ -0,0 +1,30 @@
// name: world
// keywords: visualization
// status: correct
//

loadModel(Modelica, {"3.2.1"}); getErrorString();
loadFile("world.mo"); getErrorString();
setDebugFlags("visxml"); getErrorString();
simulate(world); getErrorString();

val(world.x_label.cylinders[1].length, 0.0);getErrorString();
val(world.x_arrowLine.length, 0.0);getErrorString();
// Result:
// true
// ""
// true
// ""
// true
// ""
// record SimulationResult
// resultFile = "world_res.mat",
// simulationOptions = "startTime = 0.0, stopTime = 1.0, numberOfIntervals = 500, tolerance = 1e-006, method = 'dassl', fileNamePrefix = 'world', options = '', outputFormat = 'mat', variableFilter = '.*', cflags = '', simflags = ''",
// messages = ""
// end SimulationResult;
// ""
// 0.05303300858899107
// ""
// 0.4375
// ""
// endResult

0 comments on commit 6fb589f

Please sign in to comment.