-
Notifications
You must be signed in to change notification settings - Fork 298
/
Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel.mos
48 lines (44 loc) · 2.14 KB
/
Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel.mos
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
// name: Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel
// keywords: simulation MSL Examples
// status: correct
//
// Simulation Results
// Modelica Standard Library
//
runScript("../common/ModelTestingDefaults.mos"); getErrorString();
packageVersion := "3.1";
modelTestingType := OpenModelicaModelTesting.Kind.VerifiedSimulation;
modelName := $TypeName(Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel);
compareVars :=
{
"wheel1.x",
"wheel1.y",
"wheel1.angles[1]",
"wheel1.angles[2]",
"wheel1.angles[3]",
"wheel1.der_angles[1]",
"wheel1.der_angles[2]",
"wheel1.der_angles[3]"
};
runScript(modelTesting);getErrorString();
// Result:
// "true
// "
// ""
// "3.1"
// OpenModelicaModelTesting.Kind.VerifiedSimulation
// Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel
// {"wheel1.x","wheel1.y","wheel1.angles[1]","wheel1.angles[2]","wheel1.angles[3]","wheel1.der_angles[1]","wheel1.der_angles[2]","wheel1.der_angles[3]"}
// Simulation options: startTime = 0.0, stopTime = 4.0, numberOfIntervals = 500, tolerance = 1e-06, method = 'dassl', fileNamePrefix = 'Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel', options = '', outputFormat = 'mat', variableFilter = 'time|wheel1.x|wheel1.y|wheel1.angles.1.|wheel1.angles.2.|wheel1.angles.3.|wheel1.der_angles.1.|wheel1.der_angles.2.|wheel1.der_angles.3.', cflags = '', simflags = ' -abortSlowSimulation -alarm=360 -emit_protected'
// Result file: Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel_res.mat
// Messages: LOG_SUCCESS | info | The initialization finished successfully without homotopy method.
// LOG_SUCCESS | info | The simulation finished successfully.
//
// Files Equal!
// [Modelica 3.1.0+maint.om/Mechanics/MultiBody/Parts.mo:2404:7-2406:80:writable] Warning: Variable $DER.wheel1.der_angles[2] has attribute stateSelect=StateSelect.always, but can't be selected as a state.
// [Modelica 3.1.0+maint.om/Mechanics/MultiBody/Parts.mo:2404:7-2406:80:writable] Warning: Variable $DER.wheel1.der_angles[1] has attribute stateSelect=StateSelect.always, but can't be selected as a state.
//
// "true
// "
// ""
// endResult