Skip to content

Failed

tests / 04 testsuite-clang 1/3 / openmodelica_cruntime_optimization_basic.testAlgLoop5.mos (from (result.xml))

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

Stacktrace

Output mismatch (see stdout for details)

Standard Output

 + testAlgLoop5                                                                      ... equation mismatch [time: 9]

==== Log /tmp/omc-rtest-omtmpuser/openmodelica/cruntime/optimization/basic/testAlgLoop5.mos_temp6795/log-testAlgLoop5.mos
true
""
true
""
record SimulationResult
    resultFile = "testAlgLoop5_res.mat",
    simulationOptions = "startTime = 0.0, stopTime = 1.0, numberOfIntervals = 50, tolerance = 1e-12, method = 'optimization', fileNamePrefix = 'testAlgLoop5', options = '', outputFormat = 'mat', variableFilter = '.*', cflags = '', simflags = '-lv LOG_IPOPT_ERROR -optimizerNP 1 -ipopt_init CONST -iit 0.2 -iim=none -iif=ReferenceFiles/testAlgLoop5_ref.mat'",
    messages = "LOG_ASSERT        | warning | The following assertion has been violated at time 0.000000
|                 | |       | (($EqCon$t1 >= 0.0 and $EqCon$t1 <= 0.0)) --> \"Variable violating min/max constraint: 0.0 <= $EqCon$t1 <= 0.0, has value: -1.66533e-16\"
LOG_ASSERT        | warning | The following assertion has been violated at time 0.000000
|                 | |       | (($EqCon$t2 >= 0.0 and $EqCon$t2 <= 0.0)) --> \"Variable violating min/max constraint: 0.0 <= $EqCon$t2 <= 0.0, has value: -0.20139\"
LOG_ASSERT        | warning | The following assertion has been violated at time 0.000000
|                 | |       | (($EqCon$$con$con >= 0.0 and $EqCon$$con$con <= 0.0)) --> \"Variable violating min/max constraint: 0.0 <= $EqCon$$con$con <= 0.0, has value: 1.11022e-16\"
LOG_ASSERT        | warning | The following assertion has been violated at time 0.000000
|                 | |       | (($finalCon$fcon3 >= 10.0 and $finalCon$fcon3 <= 10.0)) --> \"Variable violating min/max constraint: 10.0 <= $finalCon$fcon3 <= 10.0, has value: -13.0063\"
LOG_ASSERT        | warning | The following assertion has been violated at time 0.000000
|                 | |       | (($finalCon$fcon >= 0.0 and $finalCon$fcon <= 0.0)) --> \"Variable violating min/max constraint: 0.0 <= $finalCon$fcon <= 0.0, has value: 16\"
LOG_SUCCESS       | info    | The initialization finished successfully without homotopy method.

Optimizer Variables
========================================================
State[0]:x(start = 1, nominal = 3, min = -3, max = 3, init = 1)
State[1]:y(start = 1, nominal = 2, min = -Inf, max = +Inf, init = 1)
State[2]:z(start = -1, nominal = 1, min = -1, max = 0.5, init = -1)
Input[3]:$$con$con(start = 1.32716, nominal = 2.5, min = 1, max = 2.5)
Input[4]:$t1(start = 0.415232, nominal = 0.415232, min = -0.4, max = +Inf)
Input[5]:$t2(start = -1.51319, nominal = 2, min = -2, max = 0.5)
Input[6]:u(start = 1.54056, nominal = 5, min = -5, max = 5)
Input[7]:u1(start = 0.566079, nominal = 2, min = -1, max = 2)
Input[8]:u2(start = -0.239925, nominal = 2, min = -1, max = 2)
Input[9]:u3(start = -1, nominal = 1, min = -1, max = 1)
--------------------------------------------------------
number of nonlinear constraints: 5
========================================================

******************************************************************************
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_IPOPT_ERROR   | info    | max violation is 22.9063 for the final constraint $finalCon$fcon3(time = 50)
LOG_IPOPT_ERROR   | info    | max violation is 17.0169 for the final constraint $finalCon$fcon3(time = 50)
LOG_IPOPT_ERROR   | info    | max violation is 13.6157 for the final constraint $finalCon$fcon3(time = 50)
LOG_IPOPT_ERROR   | info    | max violation is 7.14346 for the final constraint $finalCon$fcon3(time = 50)
LOG_IPOPT_ERROR   | info    | max error is 0.115439 for the approximation of the state y(time = 49.8)
LOG_IPOPT_ERROR   | info    | max error is 0.0123656 for the approximation of the state y(time = 49.8)
LOG_IPOPT_ERROR   | info    | max violation is 0.00368578 for the constraint $EqCon$t2(time = 50)
LOG_IPOPT_ERROR   | info    | max violation is 0.137619 for the final constraint $finalCon$fcon(time = 50)
LOG_IPOPT_ERROR   | info    | max violation is 2.09731 for the final constraint $finalCon$fcon(time = 50)
LOG_IPOPT_ERROR   | info    | max violation is 0.029318 for the final constraint $finalCon$fcon(time = 50)
LOG_IPOPT_ERROR   | info    | max violation is 0.0296068 for the final constraint $finalCon$fcon(time = 50)
LOG_IPOPT_ERROR   | info    | max violation is 0.011465 for the final constraint $finalCon$fcon(time = 50)
LOG_IPOPT_ERROR   | info    | max violation is 0.00917223 for the final constraint $finalCon$fcon(time = 50)
LOG_IPOPT_ERROR   | info    | max violation is 0.00807912 for the final constraint $finalCon$fcon(time = 50)
LOG_IPOPT_ERROR   | info    | max violation is 0.00283375 for the final constraint $finalCon$fcon(time = 50)
LOG_IPOPT_ERROR   | info    | max violation is 0.00326364 for the constraint $con$conDer(time = 48.4)
LOG_IPOPT_ERROR   | info    | max violation is 0.00643953 for the constraint $con$conDer(time = 48.4)
LOG_IPOPT_ERROR   | info    | max violation is 0.0415836 for the constraint $con$conDer(time = 48.4)
LOG_IPOPT_ERROR   | info    | max violation is 0.0393545 for the constraint $con$conDer(time = 48.4)
LOG_IPOPT_ERROR   | info    | max violation is 0.0416497 for the constraint $con$conDer(time = 48.4)
LOG_IPOPT_ERROR   | info    | max violation is 0.0379543 for the constraint $con$conDer(time = 48.4)
LOG_IPOPT_ERROR   | info    | max violation is 0.0256325 for the constraint $EqCon$t2(time = 49.4)
LOG_IPOPT_ERROR   | info    | max violation is 0.0305397 for the constraint $EqCon$t2(time = 49.4)
LOG_IPOPT_ERROR   | info    | max violation is 0.030023 for the constraint $EqCon$t2(time = 49.4)
LOG_IPOPT_ERROR   | info    | max violation is 0.0244896 for the constraint $EqCon$t2(time = 49.4)
LOG_IPOPT_ERROR   | info    | max violation is 0.0245386 for the constraint $EqCon$t2(time = 49.4)
LOG_IPOPT_ERROR   | info    | max violation is 0.0225169 for the constraint $EqCon$t2(time = 49.4)
LOG_IPOPT_ERROR   | info    | max violation is 0.0329894 for the constraint $EqCon$t2(time = 48.8)
LOG_IPOPT_ERROR   | info    | max violation is 0.0281604 for the constraint $EqCon$t2(time = 48.8)
LOG_IPOPT_ERROR   | info    | max violation is 0.0248828 for the constraint $EqCon$t2(time = 49)
LOG_IPOPT_ERROR   | info    | max violation is 0.00740691 for the constraint $EqCon$t2(time = 49)
LOG_IPOPT_ERROR   | info    | max violation is 0.00774233 for the constraint $EqCon$t2(time = 49)
LOG_IPOPT_ERROR   | info    | max violation is 0.0006914 for the constraint $EqCon$t2(time = 48.8)
LOG_IPOPT_ERROR   | info    | max violation is 0.0013823 for the constraint $EqCon$t2(time = 0.8)
LOG_IPOPT_ERROR   | info    | max violation is 0.00098595 for the constraint $EqCon$t2(time = 48.4)
LOG_IPOPT_ERROR   | info    | max violation is 0.00051877 for the constraint $EqCon$t2(time = 48.4)
LOG_IPOPT_ERROR   | info    | max violation is 0.000299614 for the constraint $EqCon$t2(time = 48.4)
LOG_IPOPT_ERROR   | info    | max violation is 0.000134187 for the constraint $EqCon$t2(time = 48.4)
LOG_IPOPT_ERROR   | info    | max violation is 3.19394e-05 for the constraint $EqCon$t2(time = 48.4)
LOG_IPOPT_ERROR   | info    | max violation is 1.85551e-06 for the constraint $EqCon$t2(time = 4.4)
LOG_IPOPT_ERROR   | info    | max violation is 2.91891e-07 for the constraint $EqCon$t2(time = 4.4)
LOG_IPOPT_ERROR   | info    | max violation is 5.44553e-08 for the constraint $EqCon$t2(time = 4.4)
LOG_IPOPT_ERROR   | info    | max violation is 1.99956e-08 for the constraint $con$conDer(time = 47.4)
LOG_IPOPT_ERROR   | info    | max violation is 1.99956e-08 for the constraint $con$conDer(time = 47.4)
LOG_IPOPT_ERROR   | info    | max violation is 1.99956e-08 for the constraint $con$conDer(time = 47.4)
LOG_IPOPT_ERROR   | info    | max violation is 1.99956e-08 for the constraint $con$conDer(time = 47.4)
LOG_SUCCESS       | info    | The simulation finished successfully.
"
end SimulationResult;
"Notification: Following iteration variables are selected by the user for strong component 1 (DAE kind: initialization):
  t2:VARIABLE(min = -2.0 max = 0.5 start = 1.0 )  type: Real
  t1:VARIABLE(min = -0.4 start = 1.0 )  type: Real
[BackEnd/SymbolicJacobian.mo:0:0-0:0:writable] Error: Internal error function generateSparsePattern failed
Notification: Following iteration variables are selected by the user for strong component 2 (DAE kind: simulation):
  t2:VARIABLE(min = -2.0 max = 0.5 start = 1.0 )  type: Real
  t1:VARIABLE(min = -0.4 start = 1.0 )  type: Real
"
{"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/testAlgLoop5.mos_temp6795/equations-expected2024-05-04 01:57:48.329334793 +0000
+++ /tmp/omc-rtest-omtmpuser/openmodelica/cruntime/optimization/basic/testAlgLoop5.mos_temp6795/equations-got2024-05-04 01:57:57.917395379 +0000
@@ -62,37 +62,38 @@
 LOG_IPOPT_ERROR   | info    | max violation is 0.0379543 for the constraint $con$conDer(time = 48.4)
 LOG_IPOPT_ERROR   | info    | max violation is 0.0256325 for the constraint $EqCon$t2(time = 49.4)
 LOG_IPOPT_ERROR   | info    | max violation is 0.0305397 for the constraint $EqCon$t2(time = 49.4)
 LOG_IPOPT_ERROR   | info    | max violation is 0.030023 for the constraint $EqCon$t2(time = 49.4)
 LOG_IPOPT_ERROR   | info    | max violation is 0.0244896 for the constraint $EqCon$t2(time = 49.4)
-LOG_IPOPT_ERROR   | info    | max violation is 0.0245385 for the constraint $EqCon$t2(time = 49.4)
-LOG_IPOPT_ERROR   | info    | max violation is 0.0225171 for the constraint $EqCon$t2(time = 49.4)
+LOG_IPOPT_ERROR | info    | max violation is 0.0245386 for the constraint $EqCon$t2(time = 49.4)
+LOG_IPOPT_ERROR | info    | max violation is 0.0225169 for the constraint $EqCon$t2(time = 49.4)
 LOG_IPOPT_ERROR   | info    | max violation is 0.0329894 for the constraint $EqCon$t2(time = 48.8)
-LOG_IPOPT_ERROR   | info    | max violation is 0.028161 for the constraint $EqCon$t2(time = 48.8)
-LOG_IPOPT_ERROR   | info    | max violation is 0.0248854 for the constraint $EqCon$t2(time = 49)
-LOG_IPOPT_ERROR   | info    | max violation is 0.00740752 for the constraint $EqCon$t2(time = 49)
+LOG_IPOPT_ERROR | info    | max violation is 0.0281604 for the constraint $EqCon$t2(time = 48.8)
+LOG_IPOPT_ERROR | info    | max violation is 0.0248828 for the constraint $EqCon$t2(time = 49)
+LOG_IPOPT_ERROR | info    | max violation is 0.00740691 for the constraint $EqCon$t2(time = 49)
 LOG_IPOPT_ERROR   | info    | max violation is 0.00774233 for the constraint $EqCon$t2(time = 49)
-LOG_IPOPT_ERROR   | info    | max violation is 0.000692652 for the constraint $EqCon$t2(time = 48.8)
-LOG_IPOPT_ERROR   | info    | max violation is 0.00138003 for the constraint $EqCon$t2(time = 0.8)
-LOG_IPOPT_ERROR   | info    | max violation is 0.000985862 for the constraint $EqCon$t2(time = 48.4)
-LOG_IPOPT_ERROR   | info    | max violation is 0.000518182 for the constraint $EqCon$t2(time = 48.4)
-LOG_IPOPT_ERROR   | info    | max violation is 0.000299797 for the constraint $EqCon$t2(time = 48.4)
-LOG_IPOPT_ERROR   | info    | max violation is 0.000134319 for the constraint $EqCon$t2(time = 48.4)
-LOG_IPOPT_ERROR   | info    | max violation is 3.19872e-05 for the constraint $EqCon$t2(time = 48.4)
+LOG_IPOPT_ERROR | info    | max violation is 0.0006914 for the constraint $EqCon$t2(time = 48.8)
+LOG_IPOPT_ERROR | info    | max violation is 0.0013823 for the constraint $EqCon$t2(time = 0.8)
+LOG_IPOPT_ERROR | info    | max violation is 0.00098595 for the constraint $EqCon$t2(time = 48.4)
+LOG_IPOPT_ERROR | info    | max violation is 0.00051877 for the constraint $EqCon$t2(time = 48.4)
+LOG_IPOPT_ERROR | info    | max violation is 0.000299614 for the constraint $EqCon$t2(time = 48.4)
+LOG_IPOPT_ERROR | info    | max violation is 0.000134187 for the constraint $EqCon$t2(time = 48.4)
+LOG_IPOPT_ERROR | info    | max violation is 3.19394e-05 for the constraint $EqCon$t2(time = 48.4)
 LOG_IPOPT_ERROR   | info    | max violation is 1.85551e-06 for the constraint $EqCon$t2(time = 4.4)
-LOG_IPOPT_ERROR   | info    | max violation is 2.91877e-07 for the constraint $EqCon$t2(time = 4.4)
-LOG_IPOPT_ERROR   | info    | max violation is 5.44505e-08 for the constraint $EqCon$t2(time = 4.4)
+LOG_IPOPT_ERROR | info    | max violation is 2.91891e-07 for the constraint $EqCon$t2(time = 4.4)
+LOG_IPOPT_ERROR | info    | max violation is 5.44553e-08 for the constraint $EqCon$t2(time = 4.4)
 LOG_IPOPT_ERROR   | info    | max violation is 1.99956e-08 for the constraint $con$conDer(time = 47.4)
 LOG_IPOPT_ERROR   | info    | max violation is 1.99956e-08 for the constraint $con$conDer(time = 47.4)
 LOG_IPOPT_ERROR   | info    | max violation is 1.99956e-08 for the constraint $con$conDer(time = 47.4)
 LOG_IPOPT_ERROR   | info    | max violation is 1.99956e-08 for the constraint $con$conDer(time = 47.4)
 LOG_SUCCESS       | info    | The simulation finished successfully.
 "
 end SimulationResult;
 "Notification: Following iteration variables are selected by the user for strong component 1 (DAE kind: initialization):
 t2:VARIABLE(min = -2.0 max = 0.5 start = 1.0 )  type: Real
 t1:VARIABLE(min = -0.4 start = 1.0 )  type: Real
+[BackEnd/SymbolicJacobian.mo:0:0-0:0:writable] Error: Internal error function generateSparsePattern failed
 Notification: Following iteration variables are selected by the user for strong component 2 (DAE kind: simulation):
 t2:VARIABLE(min = -2.0 max = 0.5 start = 1.0 )  type: Real
 t1:VARIABLE(min = -0.4 start = 1.0 )  type: Real
 "
 {"Files Equal!"}

Equation mismatch: omc-diff says:
--------------------------------------------------------------------------------------------------------------------------Failed 'N' '['
Line 94: Text differs:
expected: Notification: Following iteration variables are selected by the user for strong component 
got:      [BackEnd/SymbolicJacobian.mo:

== 1 out of 1 tests failed [openmodelica/cruntime/optimization/basic/testAlgLoop5.mos_temp6795, time: 10]