-
Notifications
You must be signed in to change notification settings - Fork 298
/
testDAEp8.mos
36 lines (30 loc) · 1.09 KB
/
testDAEp8.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
// name: testDAE.p8
// status: correct
// teardown_command: rm -f testDAE.p8* output.log
loadFile("./testDAEPackage.mo");
getErrorString();
setCommandLineOptions("--daeMode");
simulate(testDAE.p8);
getErrorString();
val(x,0.0);
val(y,0.0);
val(x,1.0);
val(y,1.0);
// Result:
// true
// ""
// true
// record SimulationResult
// resultFile = "testDAE.p8_res.mat",
// simulationOptions = "startTime = 0.0, stopTime = 1.0, numberOfIntervals = 500, tolerance = 1e-06, method = 'ida', fileNamePrefix = 'testDAE.p8', 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: 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.8
// 1.0
// 2.94748938109823
// 4.02053341588521
// endResult