Skip to content

Failed

simulation_modelica_NBackend_array_handling.simple_nested_for.mos (from (result.xml))

Failing for the past 383 builds (Since #3430 )
Took 15 sec.

Stacktrace

Output mismatch (see stdout for details)

Standard Output

 + simple_nested_for                                                                 ... equation mismatch [time: 3]

==== Log C:\Windows\TEMP/omc-rtest-OpenModelica/simulation/modelica/NBackend/array_handling/simple_nested_for.mos_temp1753/log-simple_nested_for.mos
true
""
true
#################################################

[ODE] Differential-Algebraic: (Causalize)

#################################################

===========================
CONTINUOUS 1 ODE System
===========================

BLOCK 1: Single Strong Component (status = Solve.UNPROCESSED)
---------------------------------------------------------------
### Variable:
Real $FUN_2
### Equation:
[SCAL] (1) $FUN_2 = cos(time) ($RES_$AUX_4)

BLOCK 2: Sliced Component (status = Solve.UNPROCESSED)
--------------------------------------------------------
### Variable:
x[4, $i1]
### Equation:
[FOR-] (3) ($RES_SIM_0)
[----] for $i1 in 1:3 loop
[----]   [SCAL] (1) x[4, $i1] = $i1 * $FUN_2 ($RES_SIM_1)
[----] end for;
 slice: {2, 1, 0}

BLOCK 3: Sliced Component (status = Solve.UNPROCESSED)
--------------------------------------------------------
### Variable:
$FUN_1[$i2]
### Equation:
[FOR-] (3) ($RES_$AUX_5)
[----] for $i2 in 1:3 loop
[----]   [SCAL] (1) $FUN_1[$i2] = sin($i2 * time) ($RES_$AUX_6)
[----] end for;
 slice: {2, 1, 0}

BLOCK 4: Sliced Component (status = Solve.UNPROCESSED)
--------------------------------------------------------
### Variable:
x[$i1, $i2]
### Equation:
[FOR-] (9) ($RES_SIM_2)
[----] for {$i1 in 1:3, $i2 in 1:3} loop
[----]   [SCAL] (1) x[$i1, $i2] = x[$i1 + 1, $i2] + $i1 * $FUN_1[$i2] ($RES_SIM_3)
[----] end for;
 slice: {2, 5, 8, 1, 4, 7, 0, 3, 6}

#################################################

[ODE] Differential-Algebraic: (Causalize)

#################################################

===========================
CONTINUOUS 1 ODE System
===========================

BLOCK 1: Single Strong Component (status = Solve.UNPROCESSED)
---------------------------------------------------------------
### Variable:
Real $FUN_2
### Equation:
[SCAL] (1) $FUN_2 = cos(time) ($RES_$AUX_4)

BLOCK 2: Sliced Component (status = Solve.UNPROCESSED)
--------------------------------------------------------
### Variable:
x[4, $i1]
### Equation:
[FOR-] (3) ($RES_SIM_0)
[----] for $i1 in 1:3 loop
[----]   [SCAL] (1) x[4, $i1] = $i1 * $FUN_2 ($RES_SIM_1)
[----] end for;
 slice: {2, 1, 0}

BLOCK 3: Sliced Component (status = Solve.UNPROCESSED)
--------------------------------------------------------
### Variable:
$FUN_1[$i2]
### Equation:
[FOR-] (3) ($RES_$AUX_5)
[----] for $i2 in 1:3 loop
[----]   [SCAL] (1) $FUN_1[$i2] = sin($i2 * time) ($RES_$AUX_6)
[----] end for;
 slice: {2, 1, 0}

BLOCK 4: Sliced Component (status = Solve.UNPROCESSED)
--------------------------------------------------------
### Variable:
x[$i1, $i2]
### Equation:
[FOR-] (9) ($RES_SIM_2)
[----] for {$i1 in 1:3, $i2 in 1:3} loop
[----]   [SCAL] (1) x[$i1, $i2] = x[$i1 + 1, $i2] + $i1 * $FUN_1[$i2] ($RES_SIM_3)
[----] end for;
 slice: {2, 5, 8, 1, 4, 7, 0, 3, 6}

#########################################

[INI] Initialization: (Causalize)

#########################################

===========================
CONTINUOUS 1 INI System
===========================

BLOCK 1: Single Strong Component (status = Solve.UNPROCESSED)
---------------------------------------------------------------
### Variable:
Real $FUN_2
### Equation:
[SCAL] (1) $FUN_2 = cos(time) ($RES_$AUX_4)

BLOCK 2: Sliced Component (status = Solve.UNPROCESSED)
--------------------------------------------------------
### Variable:
x[4, $i1]
### Equation:
[FOR-] (3) ($RES_SIM_0)
[----] for $i1 in 1:3 loop
[----]   [SCAL] (1) x[4, $i1] = $i1 * $FUN_2 ($RES_SIM_1)
[----] end for;
 slice: {2, 1, 0}

BLOCK 3: Sliced Component (status = Solve.UNPROCESSED)
--------------------------------------------------------
### Variable:
$FUN_1[$i2]
### Equation:
[FOR-] (3) ($RES_$AUX_5)
[----] for $i2 in 1:3 loop
[----]   [SCAL] (1) $FUN_1[$i2] = sin($i2 * time) ($RES_$AUX_6)
[----] end for;
 slice: {2, 1, 0}

BLOCK 4: Sliced Component (status = Solve.UNPROCESSED)
--------------------------------------------------------
### Variable:
x[$i1, $i2]
### Equation:
[FOR-] (9) ($RES_SIM_2)
[----] for {$i1 in 1:3, $i2 in 1:3} loop
[----]   [SCAL] (1) x[$i1, $i2] = x[$i1 + 1, $i2] + $i1 * $FUN_1[$i2] ($RES_SIM_3)
[----] end for;
 slice: {2, 5, 8, 1, 4, 7, 0, 3, 6}

################################

[ALG] Algebraic: (Solve)

################################

===========================
CONTINUOUS 1 ALG System
===========================

--- Alias of INI[1 | 1] ---
BLOCK 1: Single Strong Component (status = Solve.EXPLICIT)
------------------------------------------------------------
### Variable:
Real $FUN_2
### Equation:
[SCAL] (1) $FUN_2 = cos(time) ($RES_$AUX_4)

--- Alias of INI[1 | 2] ---
BLOCK 2: Generic Component (status = Solve.EXPLICIT)
------------------------------------------------------
### Variable:
x[4, $i1]
### Equation:
[FOR-] (3) ($RES_SIM_0)
[----] for $i1 in 1:3 loop
[----]   [SCAL] (1) x[4, $i1] = $i1 * $FUN_2 ($RES_SIM_1)
[----] end for;
 slice: {2, 1, 0}

--- Alias of INI[1 | 3] ---
BLOCK 3: Generic Component (status = Solve.EXPLICIT)
------------------------------------------------------
### Variable:
$FUN_1[$i2]
### Equation:
[FOR-] (3) ($RES_$AUX_5)
[----] for $i2 in 1:3 loop
[----]   [SCAL] (1) $FUN_1[$i2] = sin($i2 * time) ($RES_$AUX_6)
[----] end for;
 slice: {2, 1, 0}

--- Alias of INI[1 | 4] ---
BLOCK 4: Generic Component (status = Solve.EXPLICIT)
------------------------------------------------------
### Variable:
x[$i1, $i2]
### Equation:
[FOR-] (9) ($RES_SIM_2)
[----] for {$i1 in 1:3, $i2 in 1:3} loop
[----]   [SCAL] (1) x[$i1, $i2] = x[1 + $i1, $i2] + $i1 * $FUN_1[$i2] ($RES_SIM_3)
[----] end for;
 slice: {2, 5, 8, 1, 4, 7, 0, 3, 6}

#####################################

[INI] Initialization: (Solve)

#####################################

===========================
CONTINUOUS 1 INI System
===========================

BLOCK 1: Single Strong Component (status = Solve.EXPLICIT)
------------------------------------------------------------
### Variable:
Real $FUN_2
### Equation:
[SCAL] (1) $FUN_2 = cos(time) ($RES_$AUX_4)

BLOCK 2: Generic Component (status = Solve.EXPLICIT)
------------------------------------------------------
### Variable:
x[4, $i1]
### Equation:
[FOR-] (3) ($RES_SIM_0)
[----] for $i1 in 1:3 loop
[----]   [SCAL] (1) x[4, $i1] = $i1 * $FUN_2 ($RES_SIM_1)
[----] end for;
 slice: {2, 1, 0}

BLOCK 3: Generic Component (status = Solve.EXPLICIT)
------------------------------------------------------
### Variable:
$FUN_1[$i2]
### Equation:
[FOR-] (3) ($RES_$AUX_5)
[----] for $i2 in 1:3 loop
[----]   [SCAL] (1) $FUN_1[$i2] = sin($i2 * time) ($RES_$AUX_6)
[----] end for;
 slice: {2, 1, 0}

BLOCK 4: Generic Component (status = Solve.EXPLICIT)
------------------------------------------------------
### Variable:
x[$i1, $i2]
### Equation:
[FOR-] (9) ($RES_SIM_2)
[----] for {$i1 in 1:3, $i2 in 1:3} loop
[----]   [SCAL] (1) x[$i1, $i2] = x[1 + $i1, $i2] + $i1 * $FUN_1[$i2] ($RES_SIM_3)
[----] end for;
 slice: {2, 5, 8, 1, 4, 7, 0, 3, 6}

record SimulationResult
    resultFile = "",
    simulationOptions = "startTime = 0.0, stopTime = 1.0, numberOfIntervals = 500, tolerance = 1e-6, method = 'dassl', fileNamePrefix = 'simple_nested_for5', options = '', outputFormat = 'mat', variableFilter = '.*', cflags = '', simflags = ''",
    messages = "Failed to build model: simple_nested_for5"
end SimulationResult;
"Error: Error building simulator. Build log: make: Entering directory '/c/dev/jenkins/ws/Windows/OM_Win/TESTSU~1/SIMULA~1/modelica/NBackend/ARRAY_~1/SIMPLE~4.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=simple_nested_for5 -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 simple_nested_for5.o simple_nested_for5.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=simple_nested_for5 -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 simple_nested_for5_functions.o simple_nested_for5_functions.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=simple_nested_for5 -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 simple_nested_for5_records.o simple_nested_for5_records.c
Mingw-w64 runtime failure:
  VirtualProtect failed with code 0x5afmake: *** [<builtin>: simple_nested_for5_records.o] Error 127
make: Leaving directory '/c/dev/jenkins/ws/Windows/OM_Win/TESTSU~1/SIMULA~1/modelica/NBackend/ARRAY_~1/SIMPLE~4.MOS'
RESULT: 2
"

'' 
Equation mismatch: diff says: 
--- "C:\\Windows\\TEMP/omc-rtest-OpenModelica/simulation/modelica/NBackend/array_handling/simple_nested_for.mos_temp1753/equations-expected"2024-06-13 15:23:19.412996600 +0200
+++ "C:\\Windows\\TEMP/omc-rtest-OpenModelica/simulation/modelica/NBackend/array_handling/simple_nested_for.mos_temp1753/equations-got"2024-06-13 15:23:22.113151800 +0200
@@ -19,26 +19,26 @@
 [SCAL] (1) $FUN_2 = cos(time) ($RES_$AUX_4)
 
 BLOCK 2: Sliced Component (status = Solve.UNPROCESSED)
 --------------------------------------------------------
 ### Variable:
-$FUN_1[$i2]
+x[4, $i1]
 ### Equation:
-[FOR-] (3) ($RES_$AUX_5)
-[----] for $i2 in 1:3 loop
-[----]   [SCAL] (1) $FUN_1[$i2] = sin($i2 * time) ($RES_$AUX_6)
+[FOR-] (3) ($RES_SIM_0)
+[----] for $i1 in 1:3 loop
+[----] [SCAL] (1) x[4, $i1] = $i1 * $FUN_2 ($RES_SIM_1)
 [----] end for;
 slice: {2, 1, 0}
 
 BLOCK 3: Sliced Component (status = Solve.UNPROCESSED)
 --------------------------------------------------------
 ### Variable:
-x[4, $i1]
+$FUN_1[$i2]
 ### Equation:
-[FOR-] (3) ($RES_SIM_0)
-[----] for $i1 in 1:3 loop
-[----]   [SCAL] (1) x[4, $i1] = $i1 * $FUN_2 ($RES_SIM_1)
+[FOR-] (3) ($RES_$AUX_5)
+[----] for $i2 in 1:3 loop
+[----] [SCAL] (1) $FUN_1[$i2] = sin($i2 * time) ($RES_$AUX_6)
 [----] end for;
 slice: {2, 1, 0}
 
 BLOCK 4: Sliced Component (status = Solve.UNPROCESSED)
 --------------------------------------------------------
@@ -69,26 +69,26 @@
 [SCAL] (1) $FUN_2 = cos(time) ($RES_$AUX_4)
 
 BLOCK 2: Sliced Component (status = Solve.UNPROCESSED)
 --------------------------------------------------------
 ### Variable:
-$FUN_1[$i2]
+x[4, $i1]
 ### Equation:
-[FOR-] (3) ($RES_$AUX_5)
-[----] for $i2 in 1:3 loop
-[----]   [SCAL] (1) $FUN_1[$i2] = sin($i2 * time) ($RES_$AUX_6)
+[FOR-] (3) ($RES_SIM_0)
+[----] for $i1 in 1:3 loop
+[----] [SCAL] (1) x[4, $i1] = $i1 * $FUN_2 ($RES_SIM_1)
 [----] end for;
 slice: {2, 1, 0}
 
 BLOCK 3: Sliced Component (status = Solve.UNPROCESSED)
 --------------------------------------------------------
 ### Variable:
-x[4, $i1]
+$FUN_1[$i2]
 ### Equation:
-[FOR-] (3) ($RES_SIM_0)
-[----] for $i1 in 1:3 loop
-[----]   [SCAL] (1) x[4, $i1] = $i1 * $FUN_2 ($RES_SIM_1)
+[FOR-] (3) ($RES_$AUX_5)
+[----] for $i2 in 1:3 loop
+[----] [SCAL] (1) $FUN_1[$i2] = sin($i2 * time) ($RES_$AUX_6)
 [----] end for;
 slice: {2, 1, 0}
 
 BLOCK 4: Sliced Component (status = Solve.UNPROCESSED)
 --------------------------------------------------------
@@ -167,31 +167,31 @@
 ### Variable:
 Real $FUN_2
 ### Equation:
 [SCAL] (1) $FUN_2 = cos(time) ($RES_$AUX_4)
 
---- Alias of INI[1 | 3] ---
+--- Alias of INI[1 | 2] ---
 BLOCK 2: Generic Component (status = Solve.EXPLICIT)
 ------------------------------------------------------
 ### Variable:
-$FUN_1[$i2]
+x[4, $i1]
 ### Equation:
-[FOR-] (3) ($RES_$AUX_5)
-[----] for $i2 in 1:3 loop
-[----]   [SCAL] (1) $FUN_1[$i2] = sin($i2 * time) ($RES_$AUX_6)
+[FOR-] (3) ($RES_SIM_0)
+[----] for $i1 in 1:3 loop
+[----] [SCAL] (1) x[4, $i1] = $i1 * $FUN_2 ($RES_SIM_1)
 [----] end for;
 slice: {2, 1, 0}
 
---- Alias of INI[1 | 2] ---
+--- Alias of INI[1 | 3] ---
 BLOCK 3: Generic Component (status = Solve.EXPLICIT)
 ------------------------------------------------------
 ### Variable:
-x[4, $i1]
+$FUN_1[$i2]
 ### Equation:
-[FOR-] (3) ($RES_SIM_0)
-[----] for $i1 in 1:3 loop
-[----]   [SCAL] (1) x[4, $i1] = $i1 * $FUN_2 ($RES_SIM_1)
+[FOR-] (3) ($RES_$AUX_5)
+[----] for $i2 in 1:3 loop
+[----] [SCAL] (1) $FUN_1[$i2] = sin($i2 * time) ($RES_$AUX_6)
 [----] end for;
 slice: {2, 1, 0}
 
 --- Alias of INI[1 | 4] ---
 BLOCK 4: Generic Component (status = Solve.EXPLICIT)
@@ -254,13 +254,19 @@
 [----]   [SCAL] (1) x[$i1, $i2] = x[1 + $i1, $i2] + $i1 * $FUN_1[$i2] ($RES_SIM_3)
 [----] end for;
 slice: {2, 5, 8, 1, 4, 7, 0, 3, 6}
 
 record SimulationResult
-resultFile = "simple_nested_for5_res.mat",
+resultFile = "",
 simulationOptions = "startTime = 0.0, stopTime = 1.0, numberOfIntervals = 500, tolerance = 1e-6, method = 'dassl', fileNamePrefix = 'simple_nested_for5', options = '', outputFormat = 'mat', variableFilter = '.*', cflags = '', simflags = ''",
-messages = "LOG_SUCCESS       | info    | The initialization finished successfully without homotopy method.
-LOG_SUCCESS       | info    | The simulation finished successfully.
-"
+messages = "Failed to build model: simple_nested_for5"
 end SimulationResult;
-""
-3.274710254911388
+"Error: Error building simulator. Build log: make: Entering directory '/c/dev/jenkins/ws/Windows/OM_Win/TESTSU~1/SIMULA~1/modelica/NBackend/ARRAY_~1/SIMPLE~4.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=simple_nested_for5 -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 simple_nested_for5.o simple_nested_for5.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=simple_nested_for5 -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 simple_nested_for5_functions.o simple_nested_for5_functions.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=simple_nested_for5 -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 simple_nested_for5_records.o simple_nested_for5_records.c
+Mingw-w64 runtime failure:
+VirtualProtect failed with code 0x5afmake: *** [<builtin>: simple_nested_for5_records.o] Error 127
+make: Leaving directory '/c/dev/jenkins/ws/Windows/OM_Win/TESTSU~1/SIMULA~1/modelica/NBackend/ARRAY_~1/SIMPLE~4.MOS'
+RESULT: 2
+"
+
'' 
Equation mismatch: omc-diff says: 
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------Failed '$' 'x'
Line 24: Text differs:
expected: $FUN_
got:      x[

== 1 out of 1 tests failed [simulation/modelica/NBackend/array_handling/simple_nested_for.mos_temp1753, time: 15]