Skip to content

Commit 52d2ee5

Browse files
committed
add test for bug #3458
1 parent 449f0a6 commit 52d2ee5

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

openmodelica/cppruntime/libraries/msl32/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ Modelica.Electrical.Spice3.Examples.CoupledInductors.mos \
99
Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.mos \
1010
Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.mos \
1111
Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheelSetDriving.mos \
12+
Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.mos \
1213
Modelica.Mechanics.Rotational.Examples.Backlash.mos \
1314
Modelica.Mechanics.Rotational.Examples.RollingWheel.mos \
1415
Modelica.Mechanics.Translational.Examples.Accelerate.mos \
@@ -23,6 +24,7 @@ Modelica.Thermal.HeatTransfer.Examples.TwoMasses.mos \
2324
Modelica.Electrical.Digital.Examples.Counter.mos \
2425
Modelica.Utilities.Examples.readRealParameterModel.mos \
2526

27+
2628
# tested features:
2729
# readRealParameterModel: string handling, variable name string
2830

openmodelica/cppruntime/libraries/msl32/Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.mos

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,21 +17,17 @@ getErrorString();
1717

1818

1919
// Result:
20+
// "\"true
21+
// \"
22+
// OpenModelicaModelTesting.SimulationRuntime.Cpp
2023
// true
21-
// true
24+
// "
2225
// OpenModelicaModelTesting.Kind.VerifiedSimulation
2326
// Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass
24-
// "../../../../simulation/libraries/msl32/ReferenceFiles/Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.mat"
25-
// 0.0
26-
// 0.01
27-
// 0.0001
28-
// "mat"
2927
// {"body.frame_a.r_0[1]","body.frame_a.r_0[2]","body.frame_a.r_0[3]","body.v_0[1]","body.v_0[2]","body.v_0[3]","body.w_a[1]","body.w_a[2]","body.w_a[3]"}
30-
// Simulation options: startTime = 0.0, stopTime = 5.0, numberOfIntervals = 500, tolerance = 0.000001, method = 'dassl', fileNamePrefix = 'Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass', options = '', outputFormat = 'mat', variableFilter = '.*', cflags = '', simflags = ''
28+
// Simulation options: startTime = 0.0, stopTime = 5.0, numberOfIntervals = 500, tolerance = 1e-06, method = 'dassl', fileNamePrefix = 'Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass', options = '', outputFormat = 'mat', variableFilter = '.*', cflags = '', simflags = ''
3129
// Result file: Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass_res.mat
3230
// Files Equal!
33-
// Warning: There are iteration variables with default zero start attribute. Use +d=initialization for more information.
34-
//
3531
// "true
3632
// "
3733
// ""

0 commit comments

Comments
 (0)