-
Notifications
You must be signed in to change notification settings - Fork 297
/
underdetermined_init.mos
63 lines (60 loc) · 1.74 KB
/
underdetermined_init.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
// name: underdetermined_init
// keywords: NewBackend
// status: correct
loadString("
model underdetermined_init
Real x(start=1.0, fixed = true), y(start=2.0);
equation
der(x) = sin(time);
der(y) = cos(time);
end underdetermined_init
;
"); getErrorString();
setCommandLineOptions("--newBackend -d=initialization");
simulate(underdetermined_init); getErrorString();
// Result:
// true
// ""
// true
// Created State Start Equations (1):
// ************************************
// [SCAL] (1) x = $START.x ($RES_SRT_4)
//
// ##############################
//
// Balance Initialization
//
// ##############################
//
// Stage 1 underdetermined.
// Not overdetermined.
// (1) Unmatched variables:
// **************************
// [STAT] (1) Real y (start = 2.0)
// slice: {};
//
// (0) Unmatched equations:
// **************************
//
// Created Start Equations for balancing the Initialization (1):
// ***************************************************************
// [SCAL] (1) y = $START.y ($RES_SIM_6)
//
// Not underdetermined.
// Not overdetermined.
// (0) Unmatched variables:
// **************************
//
//
// (0) Unmatched equations:
// **************************
//
// record SimulationResult
// resultFile = "underdetermined_init_res.mat",
// simulationOptions = "startTime = 0.0, stopTime = 1.0, numberOfIntervals = 500, tolerance = 1e-6, method = 'dassl', fileNamePrefix = 'underdetermined_init', 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