Failed
openmodelica_cruntime_optimization_basic.TFC3.mos (from (result.xml))
Stacktrace
Output mismatch (see stdout for details)
Standard Output
+ testFinalCon_3 ... equation mismatch [time: 13] ==== Log C:\Users\OPENMO~1\AppData\Local\Temp/omc-rtest-OpenModelica/openmodelica/cruntime/optimization/basic/TFC3.mos_temp8560/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:\\Users\\OPENMO~1\\AppData\\Local\\Temp/omc-rtest-OpenModelica/openmodelica/cruntime/optimization/basic/TFC3.mos_temp8560/equations-expected"2024-09-23 17:05:20.097081100 +0200 +++ "C:\\Users\\OPENMO~1\\AppData\\Local\\Temp/omc-rtest-OpenModelica/openmodelica/cruntime/optimization/basic/TFC3.mos_temp8560/equations-got"2024-09-23 17:05:33.252080500 +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_temp8560, time: 13]