Regression
simulation_modelica_parameters.parameterTest4.mos (from (result.xml))
Stacktrace
Output mismatch (see stdout for details)
Standard Output
+ parameterTest4 ... equation mismatch [time: 2] ==== Log C:\Users\OPENMO~1\AppData\Local\Temp/omc-rtest-OpenModelica/simulation/modelica/parameters/parameterTest4.mos_temp1130/log-parameterTest4.mos true "" true "" BEGINNING of preOptModule 'evaluateParameters' ******************************************************************************** ######################################## DAE before evaluating parameters ######################################## unknown partition ======================================== no matching BackendDAEType: simulation Known variables only depending on parameters and constants - globalKnownVars (6) ======================================== 1: p4:PARAM() = if b2 then 0.0 else p3 type: Real 2: p3:PARAM() = if b2 then p4 else 0.0 type: Real 3: p2:PARAM() = if b1 then 0.0 else p1 type: Real 4: p1:PARAM() = if b1 then p2 else 0.0 type: Real 5: b2:PARAM(final = true ) = true type: Boolean 6: b1:PARAM(final = true ) = true type: Boolean Structural parameters and parameters with annotation(Evaluate=true) will be evaluated. START evaluating parameters: ================================================================================ Number of parameters: 6 Number of parameters selected for evaluation: 2 Selected parameters for evaluation: 6,5 Adjacency Matrix (row: equation) ======================================== number of rows: 6 1: 5 2 2: 5 1 3: 6 4 4: 6 3 5: 6: Transposed Adjacency Matrix (row: variable) ======================================== number of rows: 6 1: 2 1 2: 2 1 3: 4 3 4: 4 3 5: 5 2 1 6: 6 4 3 After evaluating the selected parameters: ================================================================================ All replacements: Replacements: (2) ======================================== b1 -> true b2 -> true Replacements that will be replaced in the DAE: Replacements: (2) ======================================== b1 -> true b2 -> true globalKnownVars (6) ======================================== 1: p4:PARAM() = if b2 then 0.0 else p3 type: Real 2: p3:PARAM() = if b2 then p4 else 0.0 type: Real 3: p2:PARAM() = if b1 then 0.0 else p1 type: Real 4: p1:PARAM() = if b1 then p2 else 0.0 type: Real 5: b2:PARAM(final = true ) = true type: Boolean 6: b1:PARAM(final = true ) = true type: Boolean mark: 1 markarr: -1,-1,-1,-1,1,1 After sorting parameters: ================================================================================ Order: 6 5 4,3 2,1 After replacing the evaluated parameters in parameter bindings: ================================================================================ All replacements: Replacements: (4) ======================================== b1 -> true b2 -> true p2 -> 0.0 p4 -> 0.0 Replacements that will be replaced in the DAE: Replacements: (4) ======================================== b1 -> true b2 -> true p2 -> 0.0 p4 -> 0.0 globalKnownVars (6) ======================================== 1: p4:PARAM(final = true ) = 0.0 type: Real 2: p3:PARAM() = p4 type: Real 3: p2:PARAM(final = true ) = 0.0 type: Real 4: p1:PARAM() = p2 type: Real 5: b2:PARAM(final = true ) = true type: Boolean 6: b1:PARAM(final = true ) = true type: Boolean mark: 1 markarr: -1,-1,-1,-1,1,1 After replacing the evaluated parameters in variable bindings and start attributes: ================================================================================ All replacements: Replacements: (4) ======================================== b1 -> true b2 -> true p2 -> 0.0 p4 -> 0.0 Replacements that will be replaced in the DAE: Replacements: (4) ======================================== b1 -> true b2 -> true p2 -> 0.0 p4 -> 0.0 globalKnownVars (6) ======================================== 1: p4:PARAM(final = true ) = 0.0 type: Real 2: p3:PARAM() = p4 type: Real 3: p2:PARAM(final = true ) = 0.0 type: Real 4: p1:PARAM() = p2 type: Real 5: b2:PARAM(final = true ) = true type: Boolean 6: b1:PARAM(final = true ) = true type: Boolean mark: 1 markarr: -1,-1,-1,-1,1,1 ######################################## DAE after replacing the evaluated parameters ######################################## unknown partition ======================================== no matching BackendDAEType: simulation Known variables only depending on parameters and constants - globalKnownVars (6) ======================================== 1: p4:PARAM(final = true ) = 0.0 type: Real 2: p3:PARAM() = p4 type: Real 3: p2:PARAM(final = true ) = 0.0 type: Real 4: p1:PARAM() = p2 type: Real 5: b2:PARAM(final = true ) = true type: Boolean 6: b1:PARAM(final = true ) = true type: Boolean END of preOptModule 'evaluateParameters' ******************************************************************************** record SimulationResult resultFile = "", simulationOptions = "startTime = 0.0, stopTime = 1.0, numberOfIntervals = 500, tolerance = 1e-6, method = 'dassl', fileNamePrefix = 'parameterTest4', options = '', outputFormat = 'mat', variableFilter = '.*', cflags = '', simflags = ''", messages = "Failed to build model: parameterTest4" end SimulationResult; "Error: Error building simulator. Build log: make: Entering directory '/c/dev/jenkins/ws/Windows/OM_Win/TESTSU~1/SIMULA~1/modelica/PARAME~1/PA4314~1.MOS' clang -municode -O0 -DOM_HAVE_PTHREADS -Wno-parentheses-equality -falign-functions -mstackrealign -msse2 -mfpmath=sse -I\"C:/dev/jenkins/ws/Windows/OM_Win/build/include/omc/c\" -I\"C:/dev/jenkins/ws/Windows/OM_Win/build/include/omc\" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=parameterTest4 -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=0 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o parameterTest4.o parameterTest4.c clang -municode -O0 -DOM_HAVE_PTHREADS -Wno-parentheses-equality -falign-functions -mstackrealign -msse2 -mfpmath=sse -I\"C:/dev/jenkins/ws/Windows/OM_Win/build/include/omc/c\" -I\"C:/dev/jenkins/ws/Windows/OM_Win/build/include/omc\" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=parameterTest4 -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=0 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o parameterTest4_functions.o parameterTest4_functions.c Mingw-w64 runtime failure: VirtualProtect failed with code 0x5afmake: *** [<builtin>: parameterTest4_functions.o] Error 127 make: Leaving directory '/c/dev/jenkins/ws/Windows/OM_Win/TESTSU~1/SIMULA~1/modelica/PARAME~1/PA4314~1.MOS' RESULT: 2 " '' Equation mismatch: diff says: --- "C:\\Users\\OPENMO~1\\AppData\\Local\\Temp/omc-rtest-OpenModelica/simulation/modelica/parameters/parameterTest4.mos_temp1130/equations-expected"2024-07-01 14:51:02.951939100 +0200 +++ "C:\\Users\\OPENMO~1\\AppData\\Local\\Temp/omc-rtest-OpenModelica/simulation/modelica/parameters/parameterTest4.mos_temp1130/equations-got"2024-07-01 14:51:04.560938700 +0200 @@ -193,12 +193,17 @@ END of preOptModule 'evaluateParameters' ******************************************************************************** record SimulationResult -resultFile = "parameterTest4_res.mat", -simulationOptions = "startTime = 0.0, stopTime = 1.0, numberOfIntervals = 500, tolerance = 1e-06, method = 'dassl', fileNamePrefix = 'parameterTest4', options = '', outputFormat = 'mat', variableFilter = '.*', cflags = '', simflags = ''", -messages = "LOG_SUCCESS | info | The initialization finished successfully without homotopy method. -LOG_SUCCESS | info | The simulation finished successfully. -" +resultFile = "", +simulationOptions = "startTime = 0.0, stopTime = 1.0, numberOfIntervals = 500, tolerance = 1e-6, method = 'dassl', fileNamePrefix = 'parameterTest4', options = '', outputFormat = 'mat', variableFilter = '.*', cflags = '', simflags = ''", +messages = "Failed to build model: parameterTest4" end SimulationResult; -"" +"Error: Error building simulator. Build log: make: Entering directory '/c/dev/jenkins/ws/Windows/OM_Win/TESTSU~1/SIMULA~1/modelica/PARAME~1/PA4314~1.MOS' +clang -municode -O0 -DOM_HAVE_PTHREADS -Wno-parentheses-equality -falign-functions -mstackrealign -msse2 -mfpmath=sse -I\"C:/dev/jenkins/ws/Windows/OM_Win/build/include/omc/c\" -I\"C:/dev/jenkins/ws/Windows/OM_Win/build/include/omc\" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=parameterTest4 -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=0 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o parameterTest4.o parameterTest4.c +clang -municode -O0 -DOM_HAVE_PTHREADS -Wno-parentheses-equality -falign-functions -mstackrealign -msse2 -mfpmath=sse -I\"C:/dev/jenkins/ws/Windows/OM_Win/build/include/omc/c\" -I\"C:/dev/jenkins/ws/Windows/OM_Win/build/include/omc\" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=parameterTest4 -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=0 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o parameterTest4_functions.o parameterTest4_functions.c +Mingw-w64 runtime failure: +VirtualProtect failed with code 0x5afmake: *** [<builtin>: parameterTest4_functions.o] Error 127 +make: Leaving directory '/c/dev/jenkins/ws/Windows/OM_Win/TESTSU~1/SIMULA~1/modelica/PARAME~1/PA4314~1.MOS' +RESULT: 2 +" '' Equation mismatch: omc-diff says: Failed 'p' '"' Line 198: Text differs: expected: resultFile = "parameterTest got: resultFile = "", == 1 out of 1 tests failed [simulation/modelica/parameters/parameterTest4.mos_temp1130, time: 22]