Skip to content

Failed

tests / 02 testsuite-gcc 2/3 / openmodelica_cruntime_optimization_basic.TFC4.mos (from (result.xml))

Failing for the past 46 builds (Since #8 )
Took 6 sec.

Stacktrace

Output mismatch (see stdout for details)

Standard Output

 + testFinalCon_4                                                                    ... equation mismatch [time: 6]

==== Log /tmp/omc-rtest-omtmpuser/openmodelica/cruntime/optimization/basic/TFC4.mos_temp8001/log-TFC4.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 = '-iif ReferenceFiles/testFinalCon3_ref.mat -lv LOG_IPOPT_ERROR -ipopt_max_iter=-1 -ipopt_init FILE -iim none'",
    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: -4\"
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: -1\"
LOG_SUCCESS       | info    | The initialization finished successfully without homotopy method.

Optimizer Variables
========================================================
State[0]:x1(start = 1, nominal = 2, min = -Inf, max = +Inf, init = 1)
State[1]:x2(start = -1, nominal = 2, min = -Inf, max = +Inf, init = -1)
Input[2]:u(start = -0.163468, nominal = 1.16347, min = -Inf, max = +Inf)
--------------------------------------------------------
number of nonlinear constraints: 0
========================================================
LOG_STDOUT        | info    | Using values from file as initial guess.

max_iter = -1LOG_SUCCESS       | info    | The simulation finished successfully.
"
end SimulationResult;
"[BackEnd/SymbolicJacobian.mo:0:0-0:0:writable] Error: Internal error function generateSparsePattern failed
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\").
[BackEnd/SymbolicJacobian.mo:0:0-0:0:writable] Error: Internal error function generateSparsePattern failed
"
{"Files Equal!"}
"Warning: 'compareSimulationResults' is deprecated. It is recommended to use 'diffSimulationResults' instead.
"

Equation mismatch: diff says:
--- /tmp/omc-rtest-omtmpuser/openmodelica/cruntime/optimization/basic/TFC4.mos_temp8001/equations-expected2024-05-04 02:05:00.001194381 +0000
+++ /tmp/omc-rtest-omtmpuser/openmodelica/cruntime/optimization/basic/TFC4.mos_temp8001/equations-got2024-05-04 02:05:06.093157693 +0000
@@ -2,11 +2,11 @@
 ""
 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 = '-iif ReferenceFiles/testFinalCon3_ref.mat -lv LOG_IPOPT_ERROR -ipopt_max_iter=-1 -ipopt_init FILE -iim none'",
+simulationOptions = "startTime = 0.0, stopTime = 5.0, numberOfIntervals = 50, tolerance = 1e-8, method = 'optimization', fileNamePrefix = 'testFinalCon', options = '', outputFormat = 'mat', variableFilter = '.*', cflags = '', simflags = '-iif ReferenceFiles/testFinalCon3_ref.mat -lv LOG_IPOPT_ERROR -ipopt_max_iter=-1 -ipopt_init FILE -iim none'",
 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: -4\"
 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: -1\"
 LOG_SUCCESS       | info    | The initialization finished successfully without homotopy method.
@@ -22,10 +22,12 @@
 LOG_STDOUT        | info    | Using values from file as initial guess.
 
 max_iter = -1LOG_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\").
+"[BackEnd/SymbolicJacobian.mo:0:0-0:0:writable] Error: Internal error function generateSparsePattern failed
+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\").
+[BackEnd/SymbolicJacobian.mo:0:0-0:0:writable] Error: Internal error function generateSparsePattern failed
 "
 {"Files Equal!"}
 "Warning: 'compareSimulationResults' is deprecated. It is recommended to use 'diffSimulationResults' instead.
 "

Equation mismatch: omc-diff says:
--------------------------------------------------------------------------------------------------------------------Failed 'W' '['
Line 27: Text differs:
expected: "Warning: The initial conditions are not fully specified. For more information set 
got:      "[BackEnd/SymbolicJacobian.mo:

== 1 out of 1 tests failed [openmodelica/cruntime/optimization/basic/TFC4.mos_temp8001, time: 6]