-
Notifications
You must be signed in to change notification settings - Fork 298
/
Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.mos
50 lines (46 loc) · 2.43 KB
/
Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.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
49
50
// name: Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis
// keywords: simulation MSL Examples
// status: correct
//
// Simulation Results
// Modelica Standard Library
//
runScript("../common/ModelTestingDefaults.mos"); getErrorString();
modelTestingType := OpenModelicaModelTesting.Kind.VerifiedSimulation;
modelName := $TypeName(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis);
compareVars :=
{
"axis.gear.spring.phi_rel",
"axis.gear.spring.w_rel",
"axis.motor.La.i",
"axis.motor.C.v",
"axis.controller.PI.x",
"axis.initializeFlange.phi_flange",
"axis.initializeFlange.w_flange",
"der(axis.gear.spring.phi_rel)",
"der(axis.gear.spring.w_rel)",
"der(axis.motor.La.i)",
"der(axis.motor.C.v)",
"der(axis.controller.PI.x)"
};
runScript(modelTesting);getErrorString();
// Result:
// "true
// "
// ""
// OpenModelicaModelTesting.Kind.VerifiedSimulation
// Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis
// {"axis.gear.spring.phi_rel","axis.gear.spring.w_rel","axis.motor.La.i","axis.motor.C.v","axis.controller.PI.x","axis.initializeFlange.phi_flange","axis.initializeFlange.w_flange","der(axis.gear.spring.phi_rel)","der(axis.gear.spring.w_rel)","der(axis.motor.La.i)","der(axis.motor.C.v)","der(axis.controller.PI.x)"}
// Simulation options: startTime = 0.0, stopTime = 1.6, numberOfIntervals = 500, tolerance = 1e-06, method = 'dassl', fileNamePrefix = 'Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis', options = '', outputFormat = 'mat', variableFilter = 'time|axis.gear.spring.phi_rel|axis.gear.spring.w_rel|axis.motor.La.i|axis.motor.C.v|axis.controller.PI.x|axis.initializeFlange.phi_flange|axis.initializeFlange.w_flange|der[(]axis.gear.spring.phi_rel[)]|der[(]axis.gear.spring.w_rel[)]|der[(]axis.motor.La.i[)]|der[(]axis.motor.C.v[)]|der[(]axis.controller.PI.x[)]', cflags = '', simflags = ' -abortSlowSimulation -alarm=360 -emit_protected'
// Result file: Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis_res.mat
// Messages: LOG_SUCCESS | info | The initialization finished successfully without homotopy method.
// [Modelica 3.2.1+maint.om/Blocks/Logical.mo:1058:7-1058:33:writable]
// stdout | info | Simulation call terminate() at time 1.498132
// | | | | Message : ... End condition reached
// LOG_SUCCESS | info | The simulation finished successfully.
//
// Files Equal!
// "true
// "
// ""
// endResult