Failed
simulation_modelica_NBackend_array_handling.simple_nested_for.mos (from (result.xml))
Stacktrace
Output mismatch (see stdout for details)
Standard Output
+ simple_nested_for ... equation mismatch [time: 14] ==== Log C:\WINDOWS\TEMP/omc-rtest-OpenModelica/simulation/modelica/NBackend/array_handling/simple_nested_for.mos_temp5761/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 = "simple_nested_for5_res.mat", 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. " end SimulationResult; "" 3.274710254911388 '' Equation mismatch: diff says: --- "C:\\WINDOWS\\TEMP/omc-rtest-OpenModelica/simulation/modelica/NBackend/array_handling/simple_nested_for.mos_temp5761/equations-expected"2024-06-12 20:14:49.512547400 +0200 +++ "C:\\WINDOWS\\TEMP/omc-rtest-OpenModelica/simulation/modelica/NBackend/array_handling/simple_nested_for.mos_temp5761/equations-got"2024-06-12 20:15:03.546547500 +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) '' 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_temp5761, time: 15]