@@ -34,19 +34,14 @@ importFMU("test_ChangeParam.fmu");
34
34
loadFile("test_ChangeParam_me_FMU.mo");
35
35
getErrorString();
36
36
37
- simulate(test_ChangeParam_me_FMU);
37
+ simulate(test_ChangeParam_me_FMU, numberOfIntervals=1 );
38
38
val(x, 1);
39
39
val(a, 1);
40
40
val(y, 1);
41
41
getErrorString();
42
42
43
- system("./test_ChangeParam_me_FMU -override a=-2,i=-10,b=false,s=\"bar\"");
44
- echo(false);
45
- readSimulationResult("test_ChangeParam_me_FMU_res.mat", {x,a,y});
46
- echo(true);
47
- val(x, 1);
48
- val(a, 1);
49
- val(y, 1);
43
+ system("./test_ChangeParam_me_FMU -override a=-2,i=-10,b=false,s=\"bar\" -r test_ChangeParam.mat");
44
+ readSimulationResult("test_ChangeParam.mat", {x,a,y}, 6);
50
45
getErrorString();
51
46
52
47
@@ -62,23 +57,20 @@ getErrorString();
62
57
// ""
63
58
// record SimulationResult
64
59
// resultFile = "test_ChangeParam_me_FMU_res.mat",
65
- // simulationOptions = "startTime = 0.0, stopTime = 2.0, numberOfIntervals = 500 , tolerance = 1e-06, method = 'dassl', fileNamePrefix = 'test_ChangeParam_me_FMU', options = '', outputFormat = 'mat', variableFilter = '.*', cflags = '', simflags = ''",
60
+ // simulationOptions = "startTime = 0.0, stopTime = 2.0, numberOfIntervals = 1 , tolerance = 1e-06, method = 'dassl', fileNamePrefix = 'test_ChangeParam_me_FMU', options = '', outputFormat = 'mat', variableFilter = '.*', cflags = '', simflags = ''",
66
61
// messages = "[<interactive>:14:7-14:43:writable]
67
62
// stdout | info | Simulation call terminate() at time 1.000000
68
63
// | | | | Message : Simulation done by foo
69
64
// "
70
65
// end SimulationResult;
71
- // 7.389089930122212
66
+ // 7.389089930122227
72
67
// 2.0
73
- // 6.389089930122212
68
+ // 6.389089930122227
74
69
// ""
75
70
// [<interactive>:14:7-14:43:writable]
76
71
// stdout | info | Simulation call terminate() at time 1.000000
77
72
// | | | | Message : Simulation done by bar
78
73
// 0
79
- // true
80
- // 0.135336321156737
81
- // 2.0
82
- // -10.13533632115674
74
+ // {{1.0,1.0,1.0,0.1353363211567342,0.1353363211567342,0.1353363211567342},{-2.0,-2.0,-2.0,-2.0,-2.0,-2.0},{-11.0,-11.0,-11.0,-10.13533632115674,-10.13533632115674,-10.13533632115674}}
83
75
// ""
84
76
// endResult
0 commit comments