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
res := optimize(diesel_model, stopTime=0.5, numberOfIntervals=450,tolerance=1e-10, simflags="-lv LOG_IPOPT -optimizerNP 1");
8
+
res := optimize(diesel_model, stopTime=0.5, numberOfIntervals=450,tolerance=1e-10, simflags="-lv LOG_IPOPT -optimizerNP 1 -emit_protected");
12
9
messages:=res.messages;
13
10
echo(true);
14
11
res.resultFile;
15
12
if regexBool(messages, "EXIT: Optimal Solution Found.") then
16
-
if regexBool(messages, "Number of Iterations....: 46") then
13
+
if regexBool(messages, "Number of Iterations....: 46") then
17
14
print("Number of Iterations....: 46\nEXIT: Optimal Solution Found.");
18
15
else
19
16
print("Number of Iterations changed.\tUpdate test\n");
@@ -25,8 +22,6 @@ else
25
22
end if;
26
23
getErrorString();
27
24
28
-
29
-
30
25
res := OpenModelica.Scripting.compareSimulationResults("diesel_model_res.mat","ReferenceFiles/diesel_model_ref.mat","diesel_model_res.csv",0.05,0.0005);
res := OpenModelica.Scripting.compareSimulationResults("diesel_model_res.mat","ReferenceFiles/diesel_model_ref.mat","diesel_model_res.csv",0.05,0.0005);
14
-
getErrorString();
9
+
res := OpenModelica.Scripting.compareSimulationResults("diesel_model_res.mat","ReferenceFiles/diesel_model_ref.mat","diesel_model_res.csv",0.05,0.0005); getErrorString();
res := OpenModelica.Scripting.compareSimulationResults("diesel_model_res.mat","ReferenceFiles/diesel_model_ref.mat","diesel_model_diff.csv",0.05,0.0005,{"u_f","u_wg"});
17
-
getErrorString();
10
+
res := OpenModelica.Scripting.compareSimulationResults("diesel_model_res.mat","ReferenceFiles/diesel_model_ref.mat","diesel_model_diff.csv",0.05,0.0005,{"u_f","u_wg"}); getErrorString();
0 commit comments