You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
" parameter Integer n = <%varInfo.numStateVars%> \"number of states\";\n parameter Integer p = <%varInfo.numInVars%> \"number of inputs\";\n parameter Integer q = <%varInfo.numOutVars%> \"number of outputs\";\n"
4637
+
return "model linear_<%underscorePath(name)%>\n parameter Integer n = <%varInfo.numStateVars%> \"number of states\";\n parameter Integer p = <%varInfo.numInVars%> \"number of inputs\";\n parameter Integer q = <%varInfo.numOutVars%> \"number of outputs\";\n"
Copy file name to clipboardExpand all lines: testsuite/openmodelica/linearization/linmodel.mos
+2-8Lines changed: 2 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -47,10 +47,7 @@ readFile("linear_linearmodel.log"); // Check that output log is empty
47
47
// "Warning: The initial conditions are not fully specified. For more information set -d=initialization. In OMEdit Tools->Options->Simulation->OMCFlags, in OMNotebook call setCommandLineOptions("-d=initialization").
48
48
// "
49
49
// true
50
-
// "model linear_linearmodel \"
51
-
// states[4] = [x1, x2, x3, x4]
52
-
// inputs[0] = []
53
-
// outputs[0] = []\"
50
+
// "model linear_linearmodel
54
51
// parameter Integer n = 4 \"number of states\";
55
52
// parameter Integer p = 0 \"number of inputs\";
56
53
// parameter Integer q = 0 \"number of outputs\";
@@ -97,10 +94,7 @@ readFile("linear_linearmodel.log"); // Check that output log is empty
97
94
// "Warning: The initial conditions are not fully specified. For more information set -d=initialization. In OMEdit Tools->Options->Simulation->OMCFlags, in OMNotebook call setCommandLineOptions("-d=initialization").
Copy file name to clipboardExpand all lines: testsuite/openmodelica/linearization/simLotkaVolterra.mos
+2-8Lines changed: 2 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -47,10 +47,7 @@ readFile("linear_LotkaVolterra.log"); // Check that output log is empty
47
47
// "Warning: The initial conditions are not fully specified. For more information set -d=initialization. In OMEdit Tools->Options->Simulation->OMCFlags, in OMNotebook call setCommandLineOptions("-d=initialization").
48
48
// "
49
49
// true
50
-
// "model linear_LotkaVolterra \"
51
-
// states[2] = [x, y]
52
-
// inputs[0] = []
53
-
// outputs[0] = []\"
50
+
// "model linear_LotkaVolterra
54
51
// parameter Integer n = 2 \"number of states\";
55
52
// parameter Integer p = 0 \"number of inputs\";
56
53
// parameter Integer q = 0 \"number of outputs\";
@@ -95,10 +92,7 @@ readFile("linear_LotkaVolterra.log"); // Check that output log is empty
95
92
// "Warning: The initial conditions are not fully specified. For more information set -d=initialization. In OMEdit Tools->Options->Simulation->OMCFlags, in OMNotebook call setCommandLineOptions("-d=initialization").
Copy file name to clipboardExpand all lines: testsuite/openmodelica/linearization/simNonlinear.mos
+2-8Lines changed: 2 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -48,10 +48,7 @@ readFile("linear_p_nonlinsys.log"); // Check that output log is empty
48
48
// "Warning: The initial conditions are not fully specified. For more information set -d=initialization. In OMEdit Tools->Options->Simulation->OMCFlags, in OMNotebook call setCommandLineOptions("-d=initialization").
49
49
// "
50
50
// true
51
-
// "model linear_p_nonlinsys \"
52
-
// states[3] = [b1.x, c1.x1, c1.x2]
53
-
// inputs[1] = [u1]
54
-
// outputs[2] = [y1, y2]\"
51
+
// "model linear_p_nonlinsys
55
52
// parameter Integer n = 3 \"number of states\";
56
53
// parameter Integer p = 1 \"number of inputs\";
57
54
// parameter Integer q = 2 \"number of outputs\";
@@ -100,10 +97,7 @@ readFile("linear_p_nonlinsys.log"); // Check that output log is empty
100
97
// "Warning: The initial conditions are not fully specified. For more information set -d=initialization. In OMEdit Tools->Options->Simulation->OMCFlags, in OMNotebook call setCommandLineOptions("-d=initialization").
Copy file name to clipboardExpand all lines: testsuite/openmodelica/linearization/simTwoTank.mos
+2-8Lines changed: 2 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -48,10 +48,7 @@ readFile("linear_twoflattankmodel.log"); // Check that output log is empty
48
48
// "Warning: The initial conditions are not fully specified. For more information set -d=initialization. In OMEdit Tools->Options->Simulation->OMCFlags, in OMNotebook call setCommandLineOptions("-d=initialization").
49
49
// "
50
50
// true
51
-
// "model linear_twoflattankmodel \"
52
-
// states[2] = [h1, h2]
53
-
// inputs[1] = [F]
54
-
// outputs[1] = [F2]\"
51
+
// "model linear_twoflattankmodel
55
52
// parameter Integer n = 2 \"number of states\";
56
53
// parameter Integer p = 1 \"number of inputs\";
57
54
// parameter Integer q = 1 \"number of outputs\";
@@ -98,10 +95,7 @@ readFile("linear_twoflattankmodel.log"); // Check that output log is empty
98
95
// "Warning: The initial conditions are not fully specified. For more information set -d=initialization. In OMEdit Tools->Options->Simulation->OMCFlags, in OMNotebook call setCommandLineOptions("-d=initialization").
Copy file name to clipboardExpand all lines: testsuite/openmodelica/linearization/simVanDerPol.mos
+2-8Lines changed: 2 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -42,10 +42,7 @@ readFile("linear_VanDerPol.log"); // Check that output log is empty
42
42
// "Warning: The initial conditions are not fully specified. For more information set -d=initialization. In OMEdit Tools->Options->Simulation->OMCFlags, in OMNotebook call setCommandLineOptions("-d=initialization").
43
43
// "
44
44
// true
45
-
// "model linear_VanDerPol \"
46
-
// states[2] = [x, y]
47
-
// inputs[0] = []
48
-
// outputs[0] = []\"
45
+
// "model linear_VanDerPol
49
46
// parameter Integer n = 2 \"number of states\";
50
47
// parameter Integer p = 0 \"number of inputs\";
51
48
// parameter Integer q = 0 \"number of outputs\";
@@ -95,10 +92,7 @@ readFile("linear_VanDerPol.log"); // Check that output log is empty
95
92
// "Warning: The initial conditions are not fully specified. For more information set -d=initialization. In OMEdit Tools->Options->Simulation->OMCFlags, in OMNotebook call setCommandLineOptions("-d=initialization").
Copy file name to clipboardExpand all lines: testsuite/openmodelica/linearization/simextfunction.mos
+4-16Lines changed: 4 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -70,10 +70,7 @@ readFile("linear_extfunction.log"); // Check that output log is empty
70
70
// "Warning: The initial conditions are not fully specified. For more information set -d=initialization. In OMEdit Tools->Options->Simulation->OMCFlags, in OMNotebook call setCommandLineOptions("-d=initialization").
71
71
// "
72
72
// true
73
-
// "model linear_extfunction \"
74
-
// states[2] = [x, y]
75
-
// inputs[0] = []
76
-
// outputs[0] = []\"
73
+
// "model linear_extfunction
77
74
// parameter Integer n = 2 \"number of states\";
78
75
// parameter Integer p = 0 \"number of inputs\";
79
76
// parameter Integer q = 0 \"number of outputs\";
@@ -126,10 +123,7 @@ readFile("linear_extfunction.log"); // Check that output log is empty
126
123
// "Warning: The initial conditions are not fully specified. For more information set -d=initialization. In OMEdit Tools->Options->Simulation->OMCFlags, in OMNotebook call setCommandLineOptions("-d=initialization").
127
124
// "
128
125
// true
129
-
// "model linear_extfunction \"
130
-
// states[2] = [x, y]
131
-
// inputs[0] = []
132
-
// outputs[0] = []\"
126
+
// "model linear_extfunction
133
127
// parameter Integer n = 2 \"number of states\";
134
128
// parameter Integer p = 0 \"number of inputs\";
135
129
// parameter Integer q = 0 \"number of outputs\";
@@ -182,10 +176,7 @@ readFile("linear_extfunction.log"); // Check that output log is empty
182
176
// "Warning: The initial conditions are not fully specified. For more information set -d=initialization. In OMEdit Tools->Options->Simulation->OMCFlags, in OMNotebook call setCommandLineOptions("-d=initialization").
183
177
// "
184
178
// true
185
-
// "model linear_extfunction \"
186
-
// states[2] = [x, y]
187
-
// inputs[0] = []
188
-
// outputs[0] = []\"
179
+
// "model linear_extfunction
189
180
// parameter Integer n = 2 \"number of states\";
190
181
// parameter Integer p = 0 \"number of inputs\";
191
182
// parameter Integer q = 0 \"number of outputs\";
@@ -230,10 +221,7 @@ readFile("linear_extfunction.log"); // Check that output log is empty
230
221
// "Warning: The initial conditions are not fully specified. For more information set -d=initialization. In OMEdit Tools->Options->Simulation->OMCFlags, in OMNotebook call setCommandLineOptions("-d=initialization").
0 commit comments