-
Notifications
You must be signed in to change notification settings - Fork 298
/
Tearing18-minimal.mos
97 lines (93 loc) · 3.87 KB
/
Tearing18-minimal.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
93
94
95
96
97
// name: Tearing18-minimal
// keywords: minimal tearing
// status: correct
// teardown_command: rm -f Tearing18
// cflags: -d=-newInst
loadFile("Tearing18.mo"); getErrorString();
setDebugFlags("backenddaeinfo"); getErrorString();
setTearingMethod("minimalTearing"); getErrorString();
simulate(Tearing18); getErrorString();
val(x0,1.0); getErrorString();
val(x3,1.0); getErrorString();
val(x4,1.0); getErrorString();
val(x5,1.0); getErrorString();
val(x6,1.0); getErrorString();
val(x7,1.0); getErrorString();
val(x8,1.0); getErrorString();
// Result:
// true
// ""
// true
// ""
// true
// ""
// record SimulationResult
// resultFile = "Tearing18_res.mat",
// simulationOptions = "startTime = 0.0, stopTime = 1.0, numberOfIntervals = 500, tolerance = 1e-06, method = 'dassl', fileNamePrefix = 'Tearing18', options = '', outputFormat = 'mat', variableFilter = '.*', cflags = '', simflags = ''",
// messages = "LOG_SUCCESS | info | The initialization finished successfully without homotopy method.
// assert | debug | Solving non-linear system 34 failed at time=0.086.
// | | | | For more information please use -lv LOG_NLS.
// stdout | warning | Integrator attempt to handle a problem with a called assert.
// 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: 7
// * Number of variables: 7
// Warning: There are nonlinear iteration variables with default zero start attribute found in NLSJac0. For more information set -d=initialization. In OMEdit Tools->Options->Simulation->OMCFlags, in OMNotebook call setCommandLineOptions(\"-d=initialization\").
// Notification: Model statistics after passing the back-end for initialization:
// * 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)
// * Number of clocked states: 0 ('-d=discreteinfo' for list of clocked states)
// * Top-level inputs: 0
// Notification: Strong component statistics for initialization (2):
// * Single equations (assignments): 1
// * 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: 0
// * Non-linear torn systems: 1 {6 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)
// * Number of clocked states: 0 ('-d=discreteinfo' for list of clocked states)
// * Top-level inputs: 0
// Notification: Strong component statistics for simulation (5):
// * Single equations (assignments): 4
// * 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: 0
// * Non-linear torn systems: 1 {6 0}
// "
// -0.9589242746631385
// ""
// 1.489535057843215
// ""
// -0.294476257366079
// ""
// -1.018493952318733
// ""
// 0.1102524957021611
// ""
// 3.489535057843215
// ""
// 0.340964233657884
// ""
// endResult