Skip to content

Failed

openmodelica_cruntime_optimization_basic.TFC3.mos (from (result.xml))

Failing for the past 155 builds (Since #3553 )
Took 24 sec.

Stacktrace

Output mismatch (see stdout for details)

Standard Output

 + testFinalCon_3                                                                    ... equation mismatch [time: 23]

==== Log C:\Windows\TEMP/omc-rtest-OpenModelica/openmodelica/cruntime/optimization/basic/TFC3.mos_temp392/log-TFC3.mos
true
""
true
""
record SimulationResult
    resultFile = "testFinalCon_res.mat",
    simulationOptions = "startTime = 0.0, stopTime = 5.0, numberOfIntervals = 50, tolerance = 1e-8, method = 'optimization', fileNamePrefix = 'testFinalCon', options = '', outputFormat = 'mat', variableFilter = '.*', cflags = '', simflags = '-stateFile ReferenceFiles/initStateTCF.csv'",
    messages = "LOG_ASSERT        | warning | The following assertion has been violated at time 0.000000
|                 | |       | (($finalCon$final_con2 >= 0.0 and $finalCon$final_con2 <= 0.0)) --> \"Variable violating min/max constraint: 0.0 <= $finalCon$final_con2 <= 0.0, has value: -3\"
LOG_ASSERT        | warning | The following assertion has been violated at time 0.000000
|                 | |       | (($finalCon$final_con1 >= 0.0 and $finalCon$final_con1 <= 0.0)) --> \"Variable violating min/max constraint: 0.0 <= $finalCon$final_con1 <= 0.0, has value: -2\"
LOG_SUCCESS       | info    | The initialization finished successfully without homotopy method.
LOG_STDOUT        | warning | OMC can't find the file ReferenceFiles/initStateTCF.csv.

Optimizer Variables
========================================================
State[0]:x1(start = 0, nominal = 1, min = -Inf, max = +Inf, init = 0)
State[1]:x2(start = 0, nominal = 1, min = -Inf, max = +Inf, init = 0)
Input[2]:u(start = 0, nominal = 1, min = -Inf, max = +Inf)
--------------------------------------------------------
number of nonlinear constraints: 0
========================================================

******************************************************************************
This program contains Ipopt, a library for large-scale nonlinear optimization.
 Ipopt is released as open source code under the Eclipse Public License (EPL).
         For more information visit https://github.com/coin-or/Ipopt
******************************************************************************

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->Show additional information from the initialization process, in OMNotebook call setCommandLineOptions(\"-d=initialization\").
"
{"Files not Equal!","x2","x1","u","final_con2","final_con1","der(x2)","der(x1)","cost"}
"Warning: 'compareSimulationResults' is deprecated. It is recommended to use 'diffSimulationResults' instead.
Warning: Files not Equal
"
'' 
Equation mismatch: diff says: 
--- "C:\\Windows\\TEMP/omc-rtest-OpenModelica/openmodelica/cruntime/optimization/basic/TFC3.mos_temp392/equations-expected"2024-04-19 13:01:02.430661500 +0200
+++ "C:\\Windows\\TEMP/omc-rtest-OpenModelica/openmodelica/cruntime/optimization/basic/TFC3.mos_temp392/equations-got"2024-04-19 13:01:25.794246200 +0200
@@ -2,24 +2,22 @@
 ""
 true
 ""
 record SimulationResult
 resultFile = "testFinalCon_res.mat",
-simulationOptions = "startTime = 0.0, stopTime = 5.0, numberOfIntervals = 50, tolerance = 1e-08, method = 'optimization', fileNamePrefix = 'testFinalCon', options = '', outputFormat = 'mat', variableFilter = '.*', cflags = '', simflags = '-stateFile ReferenceFiles/initStateTCF.csv'",
+simulationOptions = "startTime = 0.0, stopTime = 5.0, numberOfIntervals = 50, tolerance = 1e-8, method = 'optimization', fileNamePrefix = 'testFinalCon', options = '', outputFormat = 'mat', variableFilter = '.*', cflags = '', simflags = '-stateFile ReferenceFiles/initStateTCF.csv'",
 messages = "LOG_ASSERT        | warning | The following assertion has been violated at time 0.000000
 |                 | |       | (($finalCon$final_con2 >= 0.0 and $finalCon$final_con2 <= 0.0)) --> \"Variable violating min/max constraint: 0.0 <= $finalCon$final_con2 <= 0.0, has value: -3\"
 LOG_ASSERT        | warning | The following assertion has been violated at time 0.000000
 |                 | |       | (($finalCon$final_con1 >= 0.0 and $finalCon$final_con1 <= 0.0)) --> \"Variable violating min/max constraint: 0.0 <= $finalCon$final_con1 <= 0.0, has value: -2\"
 LOG_SUCCESS       | info    | The initialization finished successfully without homotopy method.
-
-[0]set x1.start 1
-[1]set x2.start -1
+LOG_STDOUT | warning | OMC can't find the file ReferenceFiles/initStateTCF.csv.
 
 Optimizer Variables
 ========================================================
-State[0]:x1(start = 0, nominal = 1, min = -Inf, max = +Inf, init = 1)
-State[1]:x2(start = 0, nominal = 1, min = -Inf, max = +Inf, init = -1)
+State[0]:x1(start = 0, nominal = 1, min = -Inf, max = +Inf, init = 0)
+State[1]:x2(start = 0, nominal = 1, min = -Inf, max = +Inf, init = 0)
 Input[2]:u(start = 0, nominal = 1, min = -Inf, max = +Inf)
 --------------------------------------------------------
 number of nonlinear constraints: 0
 ========================================================
 
@@ -32,8 +30,9 @@
 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->Show additional information from the initialization process, in OMNotebook call setCommandLineOptions(\"-d=initialization\").
 "
-{"Files Equal!"}
+{"Files not Equal!","x2","x1","u","final_con2","final_con1","der(x2)","der(x1)","cost"}
 "Warning: 'compareSimulationResults' is deprecated. It is recommended to use 'diffSimulationResults' instead.
+Warning: Files not Equal
 "
'' 
Equation mismatch: omc-diff says: 
----Line 13: Lexical token differs:
expected: 

got:      LOG_STDOUT | warning | OMC can't find the file ReferenceFiles/initStateTCF.csv.

== 1 out of 1 tests failed [openmodelica/cruntime/optimization/basic/TFC3.mos_temp392, time: 24]