-
Notifications
You must be signed in to change notification settings - Fork 296
/
problem1.mos
46 lines (43 loc) · 2.4 KB
/
problem1.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
// name: problem1
// status: correct
// teardown_command: rm -f nonlinear_system.problem1* _nonlinear_system.problem1* output.log
loadFile("nlsTestPackage.mo"); getErrorString();
simulate(nonlinear_system.problem1, stopTime=2); getErrorString();
val(x[1], {0.0, 1.0, 2.0});
val(x[2], {0.0, 1.0, 2.0});
val(x[3], {0.0, 1.0, 2.0});
val(x[4], {0.0, 1.0, 2.0});
val(x[5], {0.0, 1.0, 2.0});
val(x[6], {0.0, 1.0, 2.0});
val(x[7], {0.0, 1.0, 2.0});
val(x[8], {0.0, 1.0, 2.0});
val(x[9], {0.0, 1.0, 2.0});
val(x[10], {0.0, 1.0, 2.0});
val(z, {0.0, 1.0, 2.0});
val(y, {0.0, 1.0, 2.0});
// Result:
// true
// ""
// record SimulationResult
// resultFile = "nonlinear_system.problem1_res.mat",
// simulationOptions = "startTime = 0.0, stopTime = 2.0, numberOfIntervals = 500, tolerance = 1e-06, method = 'dassl', fileNamePrefix = 'nonlinear_system.problem1', 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;
// "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\").
// 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.4044646785222299,0.2484857135628877,0.151209135951616}
// {0.1635916761720908,0.06174514984485746,0.02286420279523428}
// {0.02676223651279422,0.003812463529363902,0.0005227717694615991}
// {0.0007162173031667359,1.453487816272986e-05,2.732903229460114e-07}
// {5.12967225355432e-07,2.112626832054012e-10,7.46876006159352e-14}
// {2.631353742888505e-13,4.463192131514572e-20,5.578237685765443e-27}
// {6.924022520213346e-26,1.992008400281358e-39,3.111673567889381e-53}
// {4.794208786042158e-51,3.968097466791497e-78,9.682512393101432e-106}
// {2.298443788416382e-101,1.574579750595709e-155,9.375104624256283e-211}
// {5.282843848509851e-202,2.479301390986069e-310,0.0}
// {0.5955353214777701,0.3140578620265344,0.1745963838067095}
// {0.0,0.437456424410578,0.6741944802416745}
// endResult