Skip to content

Failed

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

Failing for the past 4 builds (Since #3809 )
Took 17 sec.

Stacktrace

Output mismatch (see stdout for details)

Standard Output

 + parameterTest2                                                                    ... equation mismatch [time: 4]

==== Log C:\Windows\TEMP/omc-rtest-OpenModelica/simulation/modelica/parameters/parameterTest2.mos_temp5989/log-parameterTest2.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 (5)
========================================
1: e:PARAM()  = 5.0 + b  type: Real
2: d:PARAM()  = a + b  type: Real
3: c:PARAM()  = 2.0 * b  type: Real
4: b:PARAM()  = 5.0  type: Real
5: a:PARAM(final = true )  = b + c + e  type: Real



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

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

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

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


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

All replacements:
Replacements: (4)
========================================
b -> 5.0
c -> 10.0
e -> 10.0
a -> 25.0

Replacements that will be replaced in the DAE:
Replacements: (4)
========================================
b -> 5.0
c -> 10.0
e -> 10.0
a -> 25.0

globalKnownVars (5)
========================================
1: e:PARAM(final = true )  = 5.0 + b  type: Real
2: d:PARAM()  = a + b  type: Real
3: c:PARAM(final = true )  = 2.0 * b  type: Real
4: b:PARAM(final = true )  = 5.0  type: Real
5: a:PARAM(final = true )  = 25.0  type: Real


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


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


After replacing the evaluated parameters in parameter bindings:
================================================================================
All replacements:
Replacements: (5)
========================================
b -> 5.0
c -> 10.0
e -> 10.0
a -> 25.0
d -> 30.0

Replacements that will be replaced in the DAE:
Replacements: (5)
========================================
b -> 5.0
c -> 10.0
e -> 10.0
a -> 25.0
d -> 30.0

globalKnownVars (5)
========================================
1: e:PARAM(final = true )  = 10.0  type: Real
2: d:PARAM(final = true )  = 30.0  type: Real
3: c:PARAM(final = true )  = 10.0  type: Real
4: b:PARAM(final = true )  = 5.0  type: Real
5: a:PARAM(final = true )  = 25.0  type: Real


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


After replacing the evaluated parameters in variable bindings and start attributes:
================================================================================
All replacements:
Replacements: (5)
========================================
b -> 5.0
c -> 10.0
e -> 10.0
a -> 25.0
d -> 30.0

Replacements that will be replaced in the DAE:
Replacements: (5)
========================================
b -> 5.0
c -> 10.0
e -> 10.0
a -> 25.0
d -> 30.0

globalKnownVars (5)
========================================
1: e:PARAM(final = true )  = 10.0  type: Real
2: d:PARAM(final = true )  = 30.0  type: Real
3: c:PARAM(final = true )  = 10.0  type: Real
4: b:PARAM(final = true )  = 5.0  type: Real
5: a:PARAM(final = true )  = 25.0  type: Real


mark: 1
markarr: 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 (5)
========================================
1: e:PARAM(final = true )  = 10.0  type: Real
2: d:PARAM(final = true )  = 30.0  type: Real
3: c:PARAM(final = true )  = 10.0  type: Real
4: b:PARAM(final = true )  = 5.0  type: Real
5: a:PARAM(final = true )  = 25.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 = 'parameterTest2', options = '', outputFormat = 'mat', variableFilter = '.*', cflags = '', simflags = ''",
    messages = "Failed to build model: parameterTest2"
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/PA8949~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=parameterTest2 -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 parameterTest2.o parameterTest2.c
LLVM ERROR: out of memory
Allocation failed
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace, preprocessed source, and associated run script.
Stack dump:
0.Program arguments: C:\\\\OMDevUCRT\\\\tools\\\\msys\\\\ucrt64\\\\bin\\\\clang.exe -municode -O0 -DOM_HAVE_PTHREADS -Wno-parentheses-equality -falign-functions -mstackrealign -msse2 -mfpmath=sse -IC:/dev/jenkins/ws/Windows/OM_Win/build/include/omc/c -IC:/dev/jenkins/ws/Windows/OM_Win/build/include/omc -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=parameterTest2 -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 parameterTest2.o parameterTest2.c
1.C:/OMDevUCRT/tools/msys/ucrt64/include/sys/stat.h:127:81: current parser token ';'
Exception Code: 0xC000001D
 #0 0x00007ffb4909b736 (C:\\OMDevUCRT\\tools\\msys\\ucrt64\\bin\\libLLVM-17.dll+0x1b736)
 #1 0x00007ffb89b3e6d5 (C:\\Windows\\System32\\ucrtbase.dll+0x7e6d5)
 #2 0x00007ffb89b3f6e1 (C:\\Windows\\System32\\ucrtbase.dll+0x7f6e1)
 #3 0x00007ffb4b058d08 (C:\\OMDevUCRT\\tools\\msys\\ucrt64\\bin\\libLLVM-17.dll+0x1fd8d08)
 #4 0x00007ffb494c7962 (C:\\OMDevUCRT\\tools\\msys\\ucrt64\\bin\\libLLVM-17.dll+0x447962)
 #5 0x00007ffb6a3e1f4c (C:\\OMDevUCRT\\tools\\msys\\ucrt64\\bin\\libstdc++-6.dll+0x131f4c)
 #6 0x00007ffb50898be2 (C:\\OMDevUCRT\\tools\\msys\\ucrt64\\bin\\libclang-cpp.dll+0x718be2)
 #7 0x00007ffb527c8d41 (C:\\OMDevUCRT\\tools\\msys\\ucrt64\\bin\\libclang-cpp.dll+0x2648d41)
 #8 0x00007ffb503162b6 (C:\\OMDevUCRT\\tools\\msys\\ucrt64\\bin\\libclang-cpp.dll+0x1962b6)
 #9 0x00007ffb51c3a932 (C:\\OMDevUCRT\\tools\\msys\\ucrt64\\bin\\libclang-cpp.dll+0x1aba932)
#10 0x00007ffb51bcea9c (C:\\OMDevUCRT\\tools\\msys\\ucrt64\\bin\\libclang-cpp.dll+0x1a4ea9c)
#11 0x00007ffb51bbb2c2 (C:\\OMDevUCRT\\tools\\msys\\ucrt64\\bin\\libclang-cpp.dll+0x1a3b2c2)
#12 0x00007ffb520162ea (C:\\OMDevUCRT\\tools\\msys\\ucrt64\\bin\\libclang-cpp.dll+0x1e962ea)
#13 0x00007ffb51f5f9c2 (C:\\OMDevUCRT\\tools\\msys\\ucrt64\\bin\\libclang-cpp.dll+0x1ddf9c2)
#14 0x00007ffb51fe7d6d (C:\\OMDevUCRT\\tools\\msys\\ucrt64\\bin\\libclang-cpp.dll+0x1e67d6d)
#15 0x00007ffb520035d1 (C:\\OMDevUCRT\\tools\\msys\\ucrt64\\bin\\libclang-cpp.dll+0x1e835d1)
#16 0x00007ffb51fb2943 (C:\\OMDevUCRT\\tools\\msys\\ucrt64\\bin\\libclang-cpp.dll+0x1e32943)
#17 0x00007ffb51f708a8 (C:\\OMDevUCRT\\tools\\msys\\ucrt64\\bin\\libclang-cpp.dll+0x1df08a8)
#18 0x00007ffb52571d4e (C:\\OMDevUCRT\\tools\\msys\\ucrt64\\bin\\libclang-cpp.dll+0x23f1d4e)
#19 0x00007ffb50e0d078 (C:\\OMDevUCRT\\tools\\msys\\ucrt64\\bin\\libclang-cpp.dll+0xc8d078)
#20 0x00007ffb50f2f0c4 (C:\\OMDevUCRT\\tools\\msys\\ucrt64\\bin\\libclang-cpp.dll+0xdaf0c4)
#21 0x00007ffb51b5247c (C:\\OMDevUCRT\\tools\\msys\\ucrt64\\bin\\libclang-cpp.dll+0x19d247c)
#22 0x00007ff710d2f4a8 (C:\\OMDevUCRT\\tools\\msys\\ucrt64\\bin\\clang.exe+0xf4a8)
#23 0x00007ff710d2fada (C:\\OMDevUCRT\\tools\\msys\\ucrt64\\bin\\clang.exe+0xfada)
#24 0x00007ffb507fed4d (C:\\OMDevUCRT\\tools\\msys\\ucrt64\\bin\\libclang-cpp.dll+0x67ed4d)
#25 0x00007ffb4af30154 (C:\\OMDevUCRT\\tools\\msys\\ucrt64\\bin\\libLLVM-17.dll+0x1eb0154)
#26 0x00007ffb5293b954 (C:\\OMDevUCRT\\tools\\msys\\ucrt64\\bin\\libclang-cpp.dll+0x27bb954)
#27 0x00007ffb52978ab5 (C:\\OMDevUCRT\\tools\\msys\\ucrt64\\bin\\libclang-cpp.dll+0x27f8ab5)
#28 0x00007ffb5297876f (C:\\OMDevUCRT\\tools\\msys\\ucrt64\\bin\\libclang-cpp.dll+0x27f876f)
#29 0x00007ffb520a729b (C:\\OMDevUCRT\\tools\\msys\\ucrt64\\bin\\libclang-cpp.dll+0x1f2729b)
#30 0x00007ff710d2c1b8 (C:\\OMDevUCRT\\tools\\msys\\ucrt64\\bin\\clang.exe+0xc1b8)
#31 0x00007ff710d34eb9 (C:\\OMDevUCRT\\tools\\msys\\ucrt64\\bin\\clang.exe+0x14eb9)
#32 0x00007ff710d212ee (C:\\OMDevUCRT\\tools\\msys\\ucrt64\\bin\\clang.exe+0x12ee)
#33 0x00007ff710d21406 (C:\\OMDevUCRT\\tools\\msys\\ucrt64\\bin\\clang.exe+0x1406)
#34 0x00007ffb8b30257d (C:\\Windows\\System32\\KERNEL32.DLL+0x1257d)
#35 0x00007ffb8c50af28 (C:\\Windows\\SYSTEM32\\ntdll.dll+0x5af28)
clang: error: clang frontend command failed due to signal (use -v to see invocation)
clang version 17.0.6
Target: x86_64-w64-windows-gnu
Thread model: posix
InstalledDir: C:/OMDevUCRT/tools/msys/ucrt64/bin
clang: note: diagnostic msg: 
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang: note: diagnostic msg: C:/Windows/TEMP/parameterTest2-b49654.c
clang: note: diagnostic msg: C:/Windows/TEMP/parameterTest2-b49654.sh
clang: note: diagnostic msg: 

********************
make: *** [<builtin>: parameterTest2.o] Error 1
make: Leaving directory '/c/dev/jenkins/ws/Windows/OM_Win/TESTSU~1/SIMULA~1/modelica/PARAME~1/PA8949~1.MOS'
RESULT: 2
"
'' 
Equation mismatch: diff says: 
--- "C:\\Windows\\TEMP/omc-rtest-OpenModelica/simulation/modelica/parameters/parameterTest2.mos_temp5989/equations-expected"2024-06-13 15:16:57.731745600 +0200
+++ "C:\\Windows\\TEMP/omc-rtest-OpenModelica/simulation/modelica/parameters/parameterTest2.mos_temp5989/equations-got"2024-06-13 15:17:01.134644700 +0200
@@ -195,12 +195,73 @@
 
 END of preOptModule 'evaluateParameters'
 ********************************************************************************
 
 record SimulationResult
-resultFile = "parameterTest2_res.mat",
-simulationOptions = "startTime = 0.0, stopTime = 1.0, numberOfIntervals = 500, tolerance = 1e-06, method = 'dassl', fileNamePrefix = 'parameterTest2', 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 = 'parameterTest2', options = '', outputFormat = 'mat', variableFilter = '.*', cflags = '', simflags = ''",
+messages = "Failed to build model: parameterTest2"
 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/PA8949~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=parameterTest2 -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 parameterTest2.o parameterTest2.c
+LLVM ERROR: out of memory
+Allocation failed
+PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace, preprocessed source, and associated run script.
+Stack dump:
+0. Program arguments: C:\\\\OMDevUCRT\\\\tools\\\\msys\\\\ucrt64\\\\bin\\\\clang.exe -municode -O0 -DOM_HAVE_PTHREADS -Wno-parentheses-equality -falign-functions -mstackrealign -msse2 -mfpmath=sse -IC:/dev/jenkins/ws/Windows/OM_Win/build/include/omc/c -IC:/dev/jenkins/ws/Windows/OM_Win/build/include/omc -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=parameterTest2 -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 parameterTest2.o parameterTest2.c
+1. C:/OMDevUCRT/tools/msys/ucrt64/include/sys/stat.h:127:81: current parser token ';'
+Exception Code: 0xC000001D
+#0 0x00007ffb4909b736 (C:\\OMDevUCRT\\tools\\msys\\ucrt64\\bin\\libLLVM-17.dll+0x1b736)
+#1 0x00007ffb89b3e6d5 (C:\\Windows\\System32\\ucrtbase.dll+0x7e6d5)
+#2 0x00007ffb89b3f6e1 (C:\\Windows\\System32\\ucrtbase.dll+0x7f6e1)
+#3 0x00007ffb4b058d08 (C:\\OMDevUCRT\\tools\\msys\\ucrt64\\bin\\libLLVM-17.dll+0x1fd8d08)
+#4 0x00007ffb494c7962 (C:\\OMDevUCRT\\tools\\msys\\ucrt64\\bin\\libLLVM-17.dll+0x447962)
+#5 0x00007ffb6a3e1f4c (C:\\OMDevUCRT\\tools\\msys\\ucrt64\\bin\\libstdc++-6.dll+0x131f4c)
+#6 0x00007ffb50898be2 (C:\\OMDevUCRT\\tools\\msys\\ucrt64\\bin\\libclang-cpp.dll+0x718be2)
+#7 0x00007ffb527c8d41 (C:\\OMDevUCRT\\tools\\msys\\ucrt64\\bin\\libclang-cpp.dll+0x2648d41)
+#8 0x00007ffb503162b6 (C:\\OMDevUCRT\\tools\\msys\\ucrt64\\bin\\libclang-cpp.dll+0x1962b6)
+#9 0x00007ffb51c3a932 (C:\\OMDevUCRT\\tools\\msys\\ucrt64\\bin\\libclang-cpp.dll+0x1aba932)
+#10 0x00007ffb51bcea9c (C:\\OMDevUCRT\\tools\\msys\\ucrt64\\bin\\libclang-cpp.dll+0x1a4ea9c)
+#11 0x00007ffb51bbb2c2 (C:\\OMDevUCRT\\tools\\msys\\ucrt64\\bin\\libclang-cpp.dll+0x1a3b2c2)
+#12 0x00007ffb520162ea (C:\\OMDevUCRT\\tools\\msys\\ucrt64\\bin\\libclang-cpp.dll+0x1e962ea)
+#13 0x00007ffb51f5f9c2 (C:\\OMDevUCRT\\tools\\msys\\ucrt64\\bin\\libclang-cpp.dll+0x1ddf9c2)
+#14 0x00007ffb51fe7d6d (C:\\OMDevUCRT\\tools\\msys\\ucrt64\\bin\\libclang-cpp.dll+0x1e67d6d)
+#15 0x00007ffb520035d1 (C:\\OMDevUCRT\\tools\\msys\\ucrt64\\bin\\libclang-cpp.dll+0x1e835d1)
+#16 0x00007ffb51fb2943 (C:\\OMDevUCRT\\tools\\msys\\ucrt64\\bin\\libclang-cpp.dll+0x1e32943)
+#17 0x00007ffb51f708a8 (C:\\OMDevUCRT\\tools\\msys\\ucrt64\\bin\\libclang-cpp.dll+0x1df08a8)
+#18 0x00007ffb52571d4e (C:\\OMDevUCRT\\tools\\msys\\ucrt64\\bin\\libclang-cpp.dll+0x23f1d4e)
+#19 0x00007ffb50e0d078 (C:\\OMDevUCRT\\tools\\msys\\ucrt64\\bin\\libclang-cpp.dll+0xc8d078)
+#20 0x00007ffb50f2f0c4 (C:\\OMDevUCRT\\tools\\msys\\ucrt64\\bin\\libclang-cpp.dll+0xdaf0c4)
+#21 0x00007ffb51b5247c (C:\\OMDevUCRT\\tools\\msys\\ucrt64\\bin\\libclang-cpp.dll+0x19d247c)
+#22 0x00007ff710d2f4a8 (C:\\OMDevUCRT\\tools\\msys\\ucrt64\\bin\\clang.exe+0xf4a8)
+#23 0x00007ff710d2fada (C:\\OMDevUCRT\\tools\\msys\\ucrt64\\bin\\clang.exe+0xfada)
+#24 0x00007ffb507fed4d (C:\\OMDevUCRT\\tools\\msys\\ucrt64\\bin\\libclang-cpp.dll+0x67ed4d)
+#25 0x00007ffb4af30154 (C:\\OMDevUCRT\\tools\\msys\\ucrt64\\bin\\libLLVM-17.dll+0x1eb0154)
+#26 0x00007ffb5293b954 (C:\\OMDevUCRT\\tools\\msys\\ucrt64\\bin\\libclang-cpp.dll+0x27bb954)
+#27 0x00007ffb52978ab5 (C:\\OMDevUCRT\\tools\\msys\\ucrt64\\bin\\libclang-cpp.dll+0x27f8ab5)
+#28 0x00007ffb5297876f (C:\\OMDevUCRT\\tools\\msys\\ucrt64\\bin\\libclang-cpp.dll+0x27f876f)
+#29 0x00007ffb520a729b (C:\\OMDevUCRT\\tools\\msys\\ucrt64\\bin\\libclang-cpp.dll+0x1f2729b)
+#30 0x00007ff710d2c1b8 (C:\\OMDevUCRT\\tools\\msys\\ucrt64\\bin\\clang.exe+0xc1b8)
+#31 0x00007ff710d34eb9 (C:\\OMDevUCRT\\tools\\msys\\ucrt64\\bin\\clang.exe+0x14eb9)
+#32 0x00007ff710d212ee (C:\\OMDevUCRT\\tools\\msys\\ucrt64\\bin\\clang.exe+0x12ee)
+#33 0x00007ff710d21406 (C:\\OMDevUCRT\\tools\\msys\\ucrt64\\bin\\clang.exe+0x1406)
+#34 0x00007ffb8b30257d (C:\\Windows\\System32\\KERNEL32.DLL+0x1257d)
+#35 0x00007ffb8c50af28 (C:\\Windows\\SYSTEM32\\ntdll.dll+0x5af28)
+clang: error: clang frontend command failed due to signal (use -v to see invocation)
+clang version 17.0.6
+Target: x86_64-w64-windows-gnu
+Thread model: posix
+InstalledDir: C:/OMDevUCRT/tools/msys/ucrt64/bin
+clang: note: diagnostic msg: 
+********************
+
+PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
+Preprocessed source(s) and associated run script(s) are located at:
+clang: note: diagnostic msg: C:/Windows/TEMP/parameterTest2-b49654.c
+clang: note: diagnostic msg: C:/Windows/TEMP/parameterTest2-b49654.sh
+clang: note: diagnostic msg: 
+
+********************
+make: *** [<builtin>: parameterTest2.o] Error 1
+make: Leaving directory '/c/dev/jenkins/ws/Windows/OM_Win/TESTSU~1/SIMULA~1/modelica/PARAME~1/PA8949~1.MOS'
+RESULT: 2
+"
'' 
Equation mismatch: omc-diff says: 
Failed 'p' '"'
Line 200: Text differs:
expected: resultFile = "parameterTest
got:      resultFile = "",

== 1 out of 1 tests failed [simulation/modelica/parameters/parameterTest2.mos_temp5989, time: 17]