Skip to content

Failed

tests / 01 testsuite-gcc 1/3 / openmodelica_cruntime_optimization_basic.testAlgLoop8.mos (from (result.xml))

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

Stacktrace

Output mismatch (see stdout for details)

Standard Output

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

==== Log /tmp/omc-rtest-omtmpuser/openmodelica/cruntime/optimization/basic/testAlgLoop8.mos_temp9246/log-testAlgLoop8.mos
true
""
true
""
record SimulationResult
    resultFile = "testAlgLoop8_res.mat",
    simulationOptions = "startTime = 0.0, stopTime = 0.5, numberOfIntervals = 100, tolerance = 1e-12, method = 'optimization', fileNamePrefix = 'testAlgLoop8', options = '', outputFormat = 'mat', variableFilter = '.*', cflags = '', simflags = '-lv LOG_IPOPT_ERROR -optimizerNP 1 -ipopt_max_iter -1 -iif ReferenceFiles/testAlgLoop7_ref.mat -ipopt_init FILE -iim none'",
    messages = "LOG_ASSERT        | warning | The following assertion has been violated at time 0.000000
|                 | |       | (($EqCon$x2 >= 0.0 and $EqCon$x2 <= 0.0)) --> \"Variable violating min/max constraint: 0.0 <= $EqCon$x2 <= 0.0, has value: 3\"
LOG_ASSERT        | warning | The following assertion has been violated at time 0.000000
|                 | |       | (($EqCon$x1 >= 0.0 and $EqCon$x1 <= 0.0)) --> \"Variable violating min/max constraint: 0.0 <= $EqCon$x1 <= 0.0, has value: 0.864672\"
LOG_SUCCESS       | info    | The initialization finished successfully without homotopy method.

Optimizer Variables
========================================================
State[0]:x1(start = 1, nominal = 2, min = -2, max = 2, init = 1)
State[1]:x2(start = -1, nominal = 2, min = -2, max = 2, init = -1)
Input[2]:$x1(start = 0, nominal = 1, min = -Inf, max = +Inf)
Input[3]:$x2(start = 0, nominal = 1, min = -Inf, max = +Inf)
Input[4]:u(start = 0.864672, nominal = 1, min = -1, max = 1)
--------------------------------------------------------
number of nonlinear constraints: 3
========================================================
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
"
{"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/testAlgLoop8.mos_temp9246/equations-expected2024-05-04 02:04:24.809405759 +0000
+++ /tmp/omc-rtest-omtmpuser/openmodelica/cruntime/optimization/basic/testAlgLoop8.mos_temp9246/equations-got2024-05-04 02:04:30.901369237 +0000
@@ -24,9 +24,10 @@
 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
+"
 {"Files Equal!"}
 "Warning: 'compareSimulationResults' is deprecated. It is recommended to use 'diffSimulationResults' instead.
 "

Equation mismatch: omc-diff says:
--------------------------------------------------------------------------------------------------------------------Failed '"' '['
Line 29: Text differs:
expected: ""
got:      "[BackEnd/SymbolicJacobian.mo:

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