-
Notifications
You must be signed in to change notification settings - Fork 298
/
Tearing7-cel.mos
92 lines (87 loc) · 5.24 KB
/
Tearing7-cel.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
// name: Tearing7-cel
// keywords: tearing
// status: correct
// cflags: +d=backenddaeinfo
loadModel(Modelica, {"3.2.2"}); getErrorString();
loadFile("Tearing7.mo"); getErrorString();
setDebugFlags("backenddaeinfo"); getErrorString();
setTearingMethod("cellier"); getErrorString();
setCommandLineOptions("+tearingHeuristic=MC1 --preOptModules-=resolveLoops"); getErrorString();
simulate(Tearing7); getErrorString();
val(R1.i,0.2); getErrorString();
val(R1.v,0.2); getErrorString();
// Result:
// true
// ""
// true
// ""
// true
// ""
// true
// ""
// true
// ""
// record SimulationResult
// resultFile = "Tearing7_res.mat",
// simulationOptions = "startTime = 0.0, stopTime = 1.0, numberOfIntervals = 500, tolerance = 1e-06, method = 'dassl', fileNamePrefix = 'Tearing7', options = '', outputFormat = 'mat', variableFilter = '.*', cflags = '', simflags = ''",
// messages = "LOG_SUCCESS | info | The initialization finished successfully without homotopy method.
// LOG_SUCCESS | info | The simulation finished successfully.
// "
// end SimulationResult;
// "Notification: Model statistics after passing the front-end and creating the data structures used by the back-end:
// * Number of equations: 81
// * Number of variables: 81
// [Modelica 3.2.2+maint.om/Electrical/Analog/Sources.mo:284:5-284:68:writable] Warning: Parameter S.freqHz has no value, and is fixed during initialization (fixed=true), using available start value (start=1.0) as default value.
// [Modelica 3.2.2+maint.om/Electrical/Analog/Sources.mo:282:5-282:61:writable] Warning: Parameter S.V has no value, and is fixed during initialization (fixed=true), using available start value (start=1.0) as default value.
// [Modelica 3.2.2+maint.om/Electrical/Analog/Basic.mo:54:5-55:40:writable] Warning: Parameter R8.R has no value, and is fixed during initialization (fixed=true), using available start value (start=1.0) as default value.
// [Modelica 3.2.2+maint.om/Electrical/Analog/Basic.mo:54:5-55:40:writable] Warning: Parameter R7.R has no value, and is fixed during initialization (fixed=true), using available start value (start=1.0) as default value.
// [Modelica 3.2.2+maint.om/Electrical/Analog/Basic.mo:54:5-55:40:writable] Warning: Parameter R6.R has no value, and is fixed during initialization (fixed=true), using available start value (start=1.0) as default value.
// [Modelica 3.2.2+maint.om/Electrical/Analog/Basic.mo:54:5-55:40:writable] Warning: Parameter R5.R has no value, and is fixed during initialization (fixed=true), using available start value (start=1.0) as default value.
// [Modelica 3.2.2+maint.om/Electrical/Analog/Basic.mo:54:5-55:40:writable] Warning: Parameter R4.R has no value, and is fixed during initialization (fixed=true), using available start value (start=1.0) as default value.
// [Modelica 3.2.2+maint.om/Electrical/Analog/Basic.mo:54:5-55:40:writable] Warning: Parameter R3.R has no value, and is fixed during initialization (fixed=true), using available start value (start=1.0) as default value.
// [Modelica 3.2.2+maint.om/Electrical/Analog/Basic.mo:54:5-55:40:writable] Warning: Parameter R2.R has no value, and is fixed during initialization (fixed=true), using available start value (start=1.0) as default value.
// [Modelica 3.2.2+maint.om/Electrical/Analog/Basic.mo:54:5-55:40:writable] Warning: Parameter R1.R has no value, and is fixed during initialization (fixed=true), using available start value (start=1.0) as default value.
// Notification: Model statistics after passing the back-end for initialization:
// * Number of independent subsystems: 2
// * Number of states: 0 ('-d=stateselection' for list of states)
// * Number of discrete variables: 0 ('-d=discreteinfo' for list of discrete vars)
// * Number of discrete states: 0 ('-d=discreteinfo' for list of discrete states)
// * Top-level inputs: 0
// Notification: Strong component statistics for initialization (21):
// * Single equations (assignments): 20
// * Array equations: 0
// * Algorithm blocks: 0
// * Record equations: 0
// * When equations: 0
// * If-equations: 0
// * Equation systems (linear and non-linear blocks): 0
// * Torn equation systems: 1
// * Mixed (continuous/discrete) equation systems: 0
// Notification: Torn system details for strict tearing set:
// * Linear torn systems: 1 {(2,100.0%) 16}
// * Non-linear torn systems: 0
// Notification: Model statistics after passing the back-end for simulation:
// * Number of independent subsystems: 1
// * Number of states: 0 ('-d=stateselection' for list of states)
// * Number of discrete variables: 0 ('-d=discreteinfo' for list of discrete vars)
// * Number of discrete states: 0 ('-d=discreteinfo' for list of discrete states)
// * Top-level inputs: 0
// Notification: Strong component statistics for simulation (12):
// * Single equations (assignments): 11
// * Array equations: 0
// * Algorithm blocks: 0
// * Record equations: 0
// * When equations: 0
// * If-equations: 0
// * Equation systems (linear and non-linear blocks): 0
// * Torn equation systems: 1
// * Mixed (continuous/discrete) equation systems: 0
// Notification: Torn system details for strict tearing set:
// * Linear torn systems: 1 {(2,100.0%) 16}
// * Non-linear torn systems: 0
// "
// 0.3170188387650512
// ""
// 0.3170188387650512
// ""
// endResult