Skip to content

Regression

simulation_modelica_parameters.parameterTest.mos (from (result.xml))

Failing for the past 1 build (Since #3747 )
Took 9 sec.

Stacktrace

Output mismatch (see stdout for details)

Standard Output

 + parameterTest                                                                     ... equation mismatch [time: 1]

==== Log C:\Windows\TEMP/omc-rtest-OpenModelica/simulation/modelica/parameters/parameterTest.mos_temp4407/log-parameterTest.mos
true
""
true
""

BEGINNING of preOptModule 'evaluateParameters'
********************************************************************************


########################################
DAE before evaluating parameters
########################################


unknown partition
========================================

Variables (1)
========================================
1: x:VARIABLE()  type: Real


Equations (1, 1)
========================================
1/1 (1): x = parameterTest.sub(p3, p1, p5, b2)   [dynamic |0|0|0|0|]


no matching



BackendDAEType: simulation


Known variables only depending on parameters and constants - globalKnownVars (7)
========================================
1: p5:PARAM()  = 5.0  type: Real
2: p4:PARAM()  = if b1 then p3 else parameterTest.sub(p3, p1, p5, b2)  type: Real
3: p3:PARAM()  = parameterTest.add(p1, p2)  type: Real
4: b2:PARAM(final = true )  = true  type: Boolean
5: b1:PARAM(final = true )  = false  type: Boolean
6: p2:PARAM()  = 2.0  type: Real
7: p1:PARAM(final = true )  = 1.0  type: Real



Structural parameters and parameters with annotation(Evaluate=true) will be evaluated.

START evaluating parameters:
================================================================================
Number of parameters: 7
Number of parameters selected for evaluation: 1
Selected parameters for evaluation:
6

Adjacency Matrix (row: equation)
========================================
number of rows: 7
1:
2: 7 5 4 3 1
3: 7 6
4:
5:
6:
7:

Transposed Adjacency Matrix (row: variable)
========================================
number of rows: 7
1: 2 1
2: 2
3: 3 2
4: 4 2
5: 5 2
6: 6 3
7: 7 3 2


After evaluating the selected parameters:
================================================================================

All replacements:
Replacements: (1)
========================================
p2 -> 2.0

Replacements that will be replaced in the DAE:
Replacements: (1)
========================================
p2 -> 2.0

globalKnownVars (7)
========================================
1: p5:PARAM()  = 5.0  type: Real
2: p4:PARAM()  = if b1 then p3 else parameterTest.sub(p3, p1, p5, b2)  type: Real
3: p3:PARAM()  = parameterTest.add(p1, p2)  type: Real
4: b2:PARAM(final = true )  = true  type: Boolean
5: b1:PARAM(final = true )  = false  type: Boolean
6: p2:PARAM(final = true )  = 2.0  type: Real
7: p1:PARAM(final = true )  = 1.0  type: Real


mark: 1
markarr: -1,-1,-1,-1,-1,1,-1


After sorting parameters:
================================================================================
Order:
7
6
5
4
3
1
2


After replacing the evaluated parameters in parameter bindings:
================================================================================
All replacements:
Replacements: (5)
========================================
p2 -> 2.0
p1 -> 1.0
b1 -> false
b2 -> true
p3 -> 3.0

Replacements that will be replaced in the DAE:
Replacements: (5)
========================================
p2 -> 2.0
p1 -> 1.0
b1 -> false
b2 -> true
p3 -> 3.0

globalKnownVars (7)
========================================
1: p5:PARAM()  = 5.0  type: Real
2: p4:PARAM()  = parameterTest.sub(3.0, 1.0, p5, true)  type: Real
3: p3:PARAM(final = true )  = 3.0  type: Real
4: b2:PARAM(final = true )  = true  type: Boolean
5: b1:PARAM(final = true )  = false  type: Boolean
6: p2:PARAM(final = true )  = 2.0  type: Real
7: p1:PARAM(final = true )  = 1.0  type: Real


mark: 1
markarr: -1,-1,-1,-1,-1,1,-1


After replacing the evaluated parameters in variable bindings and start attributes:
================================================================================
All replacements:
Replacements: (5)
========================================
p2 -> 2.0
p1 -> 1.0
b1 -> false
b2 -> true
p3 -> 3.0

Replacements that will be replaced in the DAE:
Replacements: (5)
========================================
p2 -> 2.0
p1 -> 1.0
b1 -> false
b2 -> true
p3 -> 3.0

globalKnownVars (7)
========================================
1: p5:PARAM()  = 5.0  type: Real
2: p4:PARAM()  = parameterTest.sub(3.0, 1.0, p5, true)  type: Real
3: p3:PARAM(final = true )  = 3.0  type: Real
4: b2:PARAM(final = true )  = true  type: Boolean
5: b1:PARAM(final = true )  = false  type: Boolean
6: p2:PARAM(final = true )  = 2.0  type: Real
7: p1:PARAM(final = true )  = 1.0  type: Real


mark: 1
markarr: -1,-1,-1,-1,-1,1,-1


########################################
DAE after replacing the evaluated parameters
########################################


unknown partition
========================================

Variables (1)
========================================
1: x:VARIABLE()  type: Real


Equations (1, 1)
========================================
1/1 (1): x = parameterTest.sub(3.0, 1.0, p5, true)   [dynamic |0|0|0|0|]


no matching



BackendDAEType: simulation


Known variables only depending on parameters and constants - globalKnownVars (7)
========================================
1: p5:PARAM()  = 5.0  type: Real
2: p4:PARAM()  = parameterTest.sub(3.0, 1.0, p5, true)  type: Real
3: p3:PARAM(final = true )  = 3.0  type: Real
4: b2:PARAM(final = true )  = true  type: Boolean
5: b1:PARAM(final = true )  = false  type: Boolean
6: p2:PARAM(final = true )  = 2.0  type: Real
7: p1:PARAM(final = true )  = 1.0  type: Real



END of preOptModule 'evaluateParameters'
********************************************************************************

record SimulationResult
    resultFile = "",
    simulationOptions = "startTime = 0.0, stopTime = 1.0, numberOfIntervals = 500, tolerance = 1e-6, method = 'dassl', fileNamePrefix = 'parameterTest', options = '', outputFormat = 'mat', variableFilter = '.*', cflags = '', simflags = '-output=p1,p2,p3,p4,p5,b1,b2'",
    messages = "Failed to build model: parameterTest"
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/PAEE09~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=parameterTest -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 parameterTest.o parameterTest.c
      0 [main] make 26420 dofork: child -1 - forked process 3825804 died unexpectedly, retry 0, exit code 0xC000012D, errno 11
make: *** [<builtin>: parameterTest.o] Error 127
make: Leaving directory '/c/dev/jenkins/ws/Windows/OM_Win/TESTSU~1/SIMULA~1/modelica/PARAME~1/PAEE09~1.MOS'
RESULT: 2
"
'' 
Equation mismatch: diff says: 
--- "C:\\Windows\\TEMP/omc-rtest-OpenModelica/simulation/modelica/parameters/parameterTest.mos_temp4407/equations-expected"2024-05-08 15:11:41.481310800 +0200
+++ "C:\\Windows\\TEMP/omc-rtest-OpenModelica/simulation/modelica/parameters/parameterTest.mos_temp4407/equations-got"2024-05-08 15:11:42.079311000 +0200
@@ -225,13 +225,16 @@
 
 END of preOptModule 'evaluateParameters'
 ********************************************************************************
 
 record SimulationResult
-resultFile = "parameterTest_res.mat",
-simulationOptions = "startTime = 0.0, stopTime = 1.0, numberOfIntervals = 500, tolerance = 1e-06, method = 'dassl', fileNamePrefix = 'parameterTest', options = '', outputFormat = 'mat', variableFilter = '.*', cflags = '', simflags = '-output=p1,p2,p3,p4,p5,b1,b2'",
-messages = "LOG_SUCCESS       | info    | The initialization finished successfully without homotopy method.
-time=1,p1=1,p2=2,p3=3,p4=-2,p5=5,b1=0,b2=1
-LOG_SUCCESS       | info    | The simulation finished successfully.
-"
+resultFile = "",
+simulationOptions = "startTime = 0.0, stopTime = 1.0, numberOfIntervals = 500, tolerance = 1e-6, method = 'dassl', fileNamePrefix = 'parameterTest', options = '', outputFormat = 'mat', variableFilter = '.*', cflags = '', simflags = '-output=p1,p2,p3,p4,p5,b1,b2'",
+messages = "Failed to build model: parameterTest"
 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/PAEE09~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=parameterTest -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 parameterTest.o parameterTest.c
+0 [main] make 26420 dofork: child -1 - forked process 3825804 died unexpectedly, retry 0, exit code 0xC000012D, errno 11
+make: *** [<builtin>: parameterTest.o] Error 127
+make: Leaving directory '/c/dev/jenkins/ws/Windows/OM_Win/TESTSU~1/SIMULA~1/modelica/PARAME~1/PAEE09~1.MOS'
+RESULT: 2
+"
'' 
Equation mismatch: omc-diff says: 
Failed 'p' '"'
Line 230: Text differs:
expected: resultFile = "parameterTest_res.mat",
got:      resultFile = "",

== 1 out of 1 tests failed [simulation/modelica/parameters/parameterTest.mos_temp4407, time: 9]