-
Notifications
You must be signed in to change notification settings - Fork 297
/
hybridSys.mos
112 lines (107 loc) · 3.67 KB
/
hybridSys.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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
// name: hybridSys
// keywords: NewBackend
// status: correct
loadFile("hybridSys.mo"); getErrorString();
setCommandLineOptions("--newBackend -d=stateselection,initialization"); getErrorString();
simulate(hybridSys); getErrorString();
// Result:
// true
// ""
// true
// ""
// [stateselection] Natural states before index reduction:
// *********************************************************
// [STAT] (1) Real x1 (start = 10.0)
//
// [stateselection] Natural discrete states from discrete equations:
// *******************************************************************
// [DISS] (1) Real x_End (start = 0.0)
// [DISS] (1) Real x_Loop3 (start = 0.0)
// [DISS] (1) Real x_Loop2 (start = 0.0)
// [DISS] (1) Real x_Loop1 (start = 0.0)
// [DISS] (1) Real x_Start (start = 0.0)
//
// [stateselection] Natural discrete states from initial equations:
// ******************************************************************
// <no discrete states>
//
// ##############################
//
// Balance Initialization
//
// ##############################
//
// Stage 15 underdetermined.
// Not overdetermined.
// (15) Unmatched variables:
// ***************************
// [DISS] (1) Real x_Start (start = 0.0)
// slice: {};
// [DISS] (1) Real x_Loop1 (start = 0.0)
// slice: {};
// [DISS] (1) Real x_Loop2 (start = 0.0)
// slice: {};
// [DISS] (1) Real x_Loop3 (start = 0.0)
// slice: {};
// [DISS] (1) Real x_End (start = 0.0)
// slice: {};
// [STAT] (1) Real x1 (start = 10.0)
// slice: {};
// [PRE-] (1) Boolean $PRE.phase_Loop2
// slice: {};
// [PRE-] (1) Boolean $PRE.phase_Loop1
// slice: {};
// [PRE-] (1) Boolean $PRE.phase_Loop3
// slice: {};
// [PRE-] (1) Boolean $PRE.phase_Start
// slice: {};
// [PRE-] (1) Real $PRE.x_End
// slice: {};
// [PRE-] (1) Real $PRE.x_Loop3
// slice: {};
// [PRE-] (1) Real $PRE.x_Loop2
// slice: {};
// [PRE-] (1) Real $PRE.x_Loop1
// slice: {};
// [PRE-] (1) Real $PRE.x_Start
// slice: {};
//
// (0) Unmatched equations:
// **************************
//
// Created Start Equations for balancing the Initialization (15):
// ****************************************************************
// [SCAL] (1) $PRE.x_Start = $START.x_Start ($RES_SIM_41)
// [SCAL] (1) $PRE.x_Loop1 = $START.x_Loop1 ($RES_SIM_42)
// [SCAL] (1) $PRE.x_Loop2 = $START.x_Loop2 ($RES_SIM_43)
// [SCAL] (1) $PRE.x_Loop3 = $START.x_Loop3 ($RES_SIM_44)
// [SCAL] (1) $PRE.x_End = $START.x_End ($RES_SIM_45)
// [SCAL] (1) $PRE.phase_Start = $START.phase_Start ($RES_SIM_46)
// [SCAL] (1) $PRE.phase_Loop3 = $START.phase_Loop3 ($RES_SIM_47)
// [SCAL] (1) $PRE.phase_Loop1 = $START.phase_Loop1 ($RES_SIM_48)
// [SCAL] (1) $PRE.phase_Loop2 = $START.phase_Loop2 ($RES_SIM_49)
// [SCAL] (1) x1 = $START.x1 ($RES_SIM_50)
// [SCAL] (1) x_End = $PRE.x_End ($RES_SIM_51)
// [SCAL] (1) x_Loop3 = $PRE.x_Loop3 ($RES_SIM_52)
// [SCAL] (1) x_Loop2 = $PRE.x_Loop2 ($RES_SIM_53)
// [SCAL] (1) x_Loop1 = $PRE.x_Loop1 ($RES_SIM_54)
// [SCAL] (1) x_Start = $PRE.x_Start ($RES_SIM_55)
//
// Not underdetermined.
// Not overdetermined.
// (0) Unmatched variables:
// **************************
//
//
// (0) Unmatched equations:
// **************************
//
// record SimulationResult
// resultFile = "hybridSys_res.mat",
// simulationOptions = "startTime = 0.0, stopTime = 1.0, numberOfIntervals = 500, tolerance = 1e-6, method = 'dassl', fileNamePrefix = 'hybridSys', 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;
// ""
// endResult