Skip to content

Failed

tests / 02 testsuite-gcc 2/3 / simulation_modelica_NBackend_array_handling.simple_for.mos (from (result.xml))

Failing for the past 2 builds (Since #1 )
Took 11 sec.

Stacktrace

Output mismatch (see stdout for details)

Standard Output

 + simple_for                                                                        ... equation mismatch [time: 11]

==== Log /tmp/omc-rtest-omtmpuser/simulation/modelica/NBackend/array_handling/simple_for.mos_temp89/log-simple_for.mos
true
""
true
#################################################

[ODE] Differential-Algebraic: (Causalize)

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

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

BLOCK 1: Sliced Component (status = Solve.UNPROCESSED)
--------------------------------------------------------
### Variable:
$FUN_1[$i1]
### Equation:
[FOR-] (10) ($RES_$AUX_2)
[----] for $i1 in 1:10 loop
[----]   [SCAL] (1) $FUN_1[$i1] = sin($i1 * time) ($RES_$AUX_3)
[----] end for;
 slice: {9, 8, 7, 6, 5, 4, 3, 2, 1, 0}

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

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

[ODE] Differential-Algebraic: (Causalize)

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

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

BLOCK 1: Sliced Component (status = Solve.UNPROCESSED)
--------------------------------------------------------
### Variable:
$FUN_1[$i1]
### Equation:
[FOR-] (10) ($RES_$AUX_2)
[----] for $i1 in 1:10 loop
[----]   [SCAL] (1) $FUN_1[$i1] = sin($i1 * time) ($RES_$AUX_3)
[----] end for;
 slice: {9, 8, 7, 6, 5, 4, 3, 2, 1, 0}

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

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

[INI] Initialization: (Causalize)

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

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

BLOCK 1: Sliced Component (status = Solve.UNPROCESSED)
--------------------------------------------------------
### Variable:
$FUN_1[$i1]
### Equation:
[FOR-] (10) ($RES_$AUX_2)
[----] for $i1 in 1:10 loop
[----]   [SCAL] (1) $FUN_1[$i1] = sin($i1 * time) ($RES_$AUX_3)
[----] end for;
 slice: {9, 8, 7, 6, 5, 4, 3, 2, 1, 0}

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

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

[ALG] Algebraic: (Solve)

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

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

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

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

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

[INI] Initialization: (Solve)

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

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

BLOCK 1: Generic Component (status = Solve.EXPLICIT)
------------------------------------------------------
### Variable:
$FUN_1[$i1]
### Equation:
[FOR-] (10) ($RES_$AUX_2)
[----] for $i1 in 1:10 loop
[----]   [SCAL] (1) $FUN_1[$i1] = sin($i1 * time) ($RES_$AUX_3)
[----] end for;
 slice: {9, 8, 7, 6, 5, 4, 3, 2, 1, 0}

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

record SimulationResult
    resultFile = "simple_for1_res.mat",
    simulationOptions = "startTime = 0.0, stopTime = 1.0, numberOfIntervals = 500, tolerance = 1e-6, method = 'dassl', fileNamePrefix = 'simple_for1', options = '', outputFormat = 'mat', variableFilter = '.*', cflags = '', simflags = ''",
    messages = "LOG_SUCCESS       | info    | The initialization finished successfully without homotopy method.
LOG_SUCCESS       | info    | The simulation finished successfully.
"
end SimulationResult;
""
0.1411200080598672
#################################################

[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_3)

BLOCK 2: Sliced Component (status = Solve.UNPROCESSED)
--------------------------------------------------------
### Variable:
x[11]
### Equation:
[SCAL] (1) x[11] = $FUN_2 ($RES_SIM_0)
 slice: {}

BLOCK 3: Sliced Component (status = Solve.UNPROCESSED)
--------------------------------------------------------
### Variable:
$FUN_1[$i1]
### Equation:
[FOR-] (10) ($RES_$AUX_4)
[----] for $i1 in 1:10 loop
[----]   [SCAL] (1) $FUN_1[$i1] = sin($i1 * time) ($RES_$AUX_5)
[----] end for;
 slice: {9, 8, 7, 6, 5, 4, 3, 2, 1, 0}

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

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

[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_3)

BLOCK 2: Sliced Component (status = Solve.UNPROCESSED)
--------------------------------------------------------
### Variable:
x[11]
### Equation:
[SCAL] (1) x[11] = $FUN_2 ($RES_SIM_0)
 slice: {}

BLOCK 3: Sliced Component (status = Solve.UNPROCESSED)
--------------------------------------------------------
### Variable:
$FUN_1[$i1]
### Equation:
[FOR-] (10) ($RES_$AUX_4)
[----] for $i1 in 1:10 loop
[----]   [SCAL] (1) $FUN_1[$i1] = sin($i1 * time) ($RES_$AUX_5)
[----] end for;
 slice: {9, 8, 7, 6, 5, 4, 3, 2, 1, 0}

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

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

[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_3)

BLOCK 2: Sliced Component (status = Solve.UNPROCESSED)
--------------------------------------------------------
### Variable:
x[11]
### Equation:
[SCAL] (1) x[11] = $FUN_2 ($RES_SIM_0)
 slice: {}

BLOCK 3: Sliced Component (status = Solve.UNPROCESSED)
--------------------------------------------------------
### Variable:
$FUN_1[$i1]
### Equation:
[FOR-] (10) ($RES_$AUX_4)
[----] for $i1 in 1:10 loop
[----]   [SCAL] (1) $FUN_1[$i1] = sin($i1 * time) ($RES_$AUX_5)
[----] end for;
 slice: {9, 8, 7, 6, 5, 4, 3, 2, 1, 0}

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

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

[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_3)

--- Alias of INI[1 | 2] ---
BLOCK 2: Sliced Component (status = Solve.EXPLICIT)
-----------------------------------------------------
### Variable:
x[11]
### Equation:
[SCAL] (1) x[11] = $FUN_2 ($RES_SIM_0)
 slice: {}

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

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

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

[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_3)

BLOCK 2: Sliced Component (status = Solve.EXPLICIT)
-----------------------------------------------------
### Variable:
x[11]
### Equation:
[SCAL] (1) x[11] = $FUN_2 ($RES_SIM_0)
 slice: {}

BLOCK 3: Generic Component (status = Solve.EXPLICIT)
------------------------------------------------------
### Variable:
$FUN_1[$i1]
### Equation:
[FOR-] (10) ($RES_$AUX_4)
[----] for $i1 in 1:10 loop
[----]   [SCAL] (1) $FUN_1[$i1] = sin($i1 * time) ($RES_$AUX_5)
[----] end for;
 slice: {9, 8, 7, 6, 5, 4, 3, 2, 1, 0}

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

record SimulationResult
    resultFile = "simple_for2_res.mat",
    simulationOptions = "startTime = 0.0, stopTime = 1.0, numberOfIntervals = 500, tolerance = 1e-6, method = 'dassl', fileNamePrefix = 'simple_for2', options = '', outputFormat = 'mat', variableFilter = '.*', cflags = '', simflags = ''",
    messages = "LOG_SUCCESS       | info    | The initialization finished successfully without homotopy method.
LOG_SUCCESS       | info    | The simulation finished successfully.
"
end SimulationResult;
""
0.1411200080598672
#################################################

[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_3)

BLOCK 2: Sliced Component (status = Solve.UNPROCESSED)
--------------------------------------------------------
### Variable:
x[1]
### Equation:
[SCAL] (1) x[1] = $FUN_2 ($RES_SIM_0)
 slice: {}

BLOCK 3: Sliced Component (status = Solve.UNPROCESSED)
--------------------------------------------------------
### Variable:
$FUN_1[$i1]
### Equation:
[FOR-] (10) ($RES_$AUX_4)
[----] for $i1 in 1:10 loop
[----]   [SCAL] (1) $FUN_1[$i1] = sin($i1 * time) ($RES_$AUX_5)
[----] end for;
 slice: {9, 8, 7, 6, 5, 4, 3, 2, 1, 0}

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

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

[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_3)

BLOCK 2: Sliced Component (status = Solve.UNPROCESSED)
--------------------------------------------------------
### Variable:
x[1]
### Equation:
[SCAL] (1) x[1] = $FUN_2 ($RES_SIM_0)
 slice: {}

BLOCK 3: Sliced Component (status = Solve.UNPROCESSED)
--------------------------------------------------------
### Variable:
$FUN_1[$i1]
### Equation:
[FOR-] (10) ($RES_$AUX_4)
[----] for $i1 in 1:10 loop
[----]   [SCAL] (1) $FUN_1[$i1] = sin($i1 * time) ($RES_$AUX_5)
[----] end for;
 slice: {9, 8, 7, 6, 5, 4, 3, 2, 1, 0}

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

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

[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_3)

BLOCK 2: Sliced Component (status = Solve.UNPROCESSED)
--------------------------------------------------------
### Variable:
x[1]
### Equation:
[SCAL] (1) x[1] = $FUN_2 ($RES_SIM_0)
 slice: {}

BLOCK 3: Sliced Component (status = Solve.UNPROCESSED)
--------------------------------------------------------
### Variable:
$FUN_1[$i1]
### Equation:
[FOR-] (10) ($RES_$AUX_4)
[----] for $i1 in 1:10 loop
[----]   [SCAL] (1) $FUN_1[$i1] = sin($i1 * time) ($RES_$AUX_5)
[----] end for;
 slice: {9, 8, 7, 6, 5, 4, 3, 2, 1, 0}

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

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

[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_3)

--- Alias of INI[1 | 2] ---
BLOCK 2: Sliced Component (status = Solve.EXPLICIT)
-----------------------------------------------------
### Variable:
x[1]
### Equation:
[SCAL] (1) x[1] = $FUN_2 ($RES_SIM_0)
 slice: {}

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

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

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

[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_3)

BLOCK 2: Sliced Component (status = Solve.EXPLICIT)
-----------------------------------------------------
### Variable:
x[1]
### Equation:
[SCAL] (1) x[1] = $FUN_2 ($RES_SIM_0)
 slice: {}

BLOCK 3: Generic Component (status = Solve.EXPLICIT)
------------------------------------------------------
### Variable:
$FUN_1[$i1]
### Equation:
[FOR-] (10) ($RES_$AUX_4)
[----] for $i1 in 1:10 loop
[----]   [SCAL] (1) $FUN_1[$i1] = sin($i1 * time) ($RES_$AUX_5)
[----] end for;
 slice: {9, 8, 7, 6, 5, 4, 3, 2, 1, 0}

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

record SimulationResult
    resultFile = "simple_for3_res.mat",
    simulationOptions = "startTime = 0.0, stopTime = 1.0, numberOfIntervals = 500, tolerance = 1e-6, method = 'dassl', fileNamePrefix = 'simple_for3', options = '', outputFormat = 'mat', variableFilter = '.*', cflags = '', simflags = ''",
    messages = "LOG_SUCCESS       | info    | The initialization finished successfully without homotopy method.
LOG_SUCCESS       | info    | The simulation finished successfully.
"
end SimulationResult;
""
-1.2104661057654384

Equation mismatch: diff says:
--- /tmp/omc-rtest-omtmpuser/simulation/modelica/NBackend/array_handling/simple_for.mos_temp89/equations-expected2024-06-15 01:37:59.050992805 +0000
+++ /tmp/omc-rtest-omtmpuser/simulation/modelica/NBackend/array_handling/simple_for.mos_temp89/equations-got2024-06-15 01:38:10.086831245 +0000
@@ -457,11 +457,11 @@
 slice: {9, 8, 7, 6, 5, 4, 3, 2, 1, 0}
 
 BLOCK 4: Sliced Component (status = Solve.UNPROCESSED)
 --------------------------------------------------------
 ### Variable:
-x[1 + $i1]
+x[$i1 + 1]
 ### Equation:
 [FOR-] (10) ($RES_SIM_1)
 [----] for $i1 in 1:10 loop
 [----]   [SCAL] (1) x[$i1] = x[$i1 + 1] + $FUN_1[$i1] ($RES_SIM_2)
 [----] end for;
@@ -504,11 +504,11 @@
 slice: {9, 8, 7, 6, 5, 4, 3, 2, 1, 0}
 
 BLOCK 4: Sliced Component (status = Solve.UNPROCESSED)
 --------------------------------------------------------
 ### Variable:
-x[1 + $i1]
+x[$i1 + 1]
 ### Equation:
 [FOR-] (10) ($RES_SIM_1)
 [----] for $i1 in 1:10 loop
 [----]   [SCAL] (1) x[$i1] = x[$i1 + 1] + $FUN_1[$i1] ($RES_SIM_2)
 [----] end for;
@@ -551,11 +551,11 @@
 slice: {9, 8, 7, 6, 5, 4, 3, 2, 1, 0}
 
 BLOCK 4: Sliced Component (status = Solve.UNPROCESSED)
 --------------------------------------------------------
 ### Variable:
-x[1 + $i1]
+x[$i1 + 1]
 ### Equation:
 [FOR-] (10) ($RES_SIM_1)
 [----] for $i1 in 1:10 loop
 [----]   [SCAL] (1) x[$i1] = x[$i1 + 1] + $FUN_1[$i1] ($RES_SIM_2)
 [----] end for;
@@ -602,15 +602,15 @@
 
 --- Alias of INI[1 | 4] ---
 BLOCK 4: Generic Component (status = Solve.EXPLICIT)
 ------------------------------------------------------
 ### Variable:
-x[1 + $i1]
+x[$i1 + 1]
 ### Equation:
 [FOR-] (10) ($RES_SIM_1)
 [----] for $i1 in 1:10 loop
-[----]   [SCAL] (1) x[1 + $i1] = -($FUN_1[$i1] - x[$i1]) ($RES_SIM_2)
+[----] [SCAL] (1) x[$i1 + 1] = -($FUN_1[$i1] - x[$i1]) ($RES_SIM_2)
 [----] end for;
 slice: {9, 8, 7, 6, 5, 4, 3, 2, 1, 0}
 
 #####################################
 
@@ -649,15 +649,15 @@
 slice: {9, 8, 7, 6, 5, 4, 3, 2, 1, 0}
 
 BLOCK 4: Generic Component (status = Solve.EXPLICIT)
 ------------------------------------------------------
 ### Variable:
-x[1 + $i1]
+x[$i1 + 1]
 ### Equation:
 [FOR-] (10) ($RES_SIM_1)
 [----] for $i1 in 1:10 loop
-[----]   [SCAL] (1) x[1 + $i1] = -($FUN_1[$i1] - x[$i1]) ($RES_SIM_2)
+[----] [SCAL] (1) x[$i1 + 1] = -($FUN_1[$i1] - x[$i1]) ($RES_SIM_2)
 [----] end for;
 slice: {9, 8, 7, 6, 5, 4, 3, 2, 1, 0}
 
 record SimulationResult
 resultFile = "simple_for3_res.mat",

Equation mismatch: omc-diff says:
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------Line 462: Text differs:
expected: x[
got:      x[$i

== 1 out of 1 tests failed [simulation/modelica/NBackend/array_handling/simple_for.mos_temp89, time: 11]