Skip to content

Failed

tests / 01 testsuite-gcc 1/3 / simulation_modelica_NBackend_array_handling.simple_der_for.mos (from (result.xml))

Failing for the past 53 builds (Since #34 )
Took 5 sec.

Stacktrace

Output mismatch (see stdout for details)

Standard Output

 + simple_der_for                                                                    ... equation mismatch [time: 5]

==== Log /tmp/omc-rtest-unknown/simulation/modelica/NBackend/array_handling/simple_der_for.mos_temp8197/log-simple_der_for.mos
true
""
true
#################################################

[symjacdump] Creating symbolic Jacobians:

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

===========================
CONTINUOUS 1 ODE 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:
$DER.x[3]
### Equation:
[SCAL] (1) $DER.x[3] = $FUN_2 ($RES_SIM_0)
 slice: {}

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

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

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

[ODE] Jacobian ODE_JAC: SIM

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

Partial Derivative Variables (3/22)
*************************************
(1)       [JVAR] (11) Real[11] $pDER_ODE_JAC.$DER.x
(2)       [JTMP] (10) Real[10] $pDER_ODE_JAC.$FUN_1
(3)       [JTMP] (1) Real $pDER_ODE_JAC.$FUN_2

Seed Variables (1/11)
***********************
(1)       [SEED] (11) Real[11] $SEED_ODE_JAC.x

BLOCK 1: Single Strong Component (status = Solve.EXPLICIT)
------------------------------------------------------------
### Variable:
Real $pDER_ODE_JAC.$FUN_2
### Equation:
[SCAL] (1) $pDER_ODE_JAC.$FUN_2 = -0.0 ($RES_ODE_JAC_0)

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

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

BLOCK 4: Generic Component (status = Solve.EXPLICIT)
------------------------------------------------------
### Variable:
$pDER_ODE_JAC.$DER.x[$i1]
### Equation:
[FOR-] (10) ($RES_ODE_JAC_4)
[----] for $i1 in 1:10 loop
[----]   [SCAL] (1) $pDER_ODE_JAC.$DER.x[$i1] = $SEED_ODE_JAC.x[$i1] + $pDER_ODE_JAC.$DER.x[1 + $i1] + $pDER_ODE_JAC.$FUN_1[$i1] ($RES_ODE_JAC_5)
[----] end for;
 slice: {0, 1}

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

==============================
Sparsity Pattern (nnz: 10)
==============================

### Seeds (col vars) ###
--------------------------
{x[11], x[10], x[9], x[8], x[7], x[6], x[5], x[4], x[3], x[2], x[1]}

### Partials (row vars) ###
-----------------------------
{$DER.x[11], $DER.x[10], $DER.x[9], $DER.x[8], $DER.x[7], $DER.x[6], $DER.x[5], $DER.x[4], $DER.x[3], $DER.x[2], $DER.x[1]}

### Columns ###
-----------------
(x[1]) affects:{$DER.x[2]}
(x[2]) affects:{$DER.x[3]}
(x[3]) affects:{$DER.x[4]}
(x[4]) affects:{$DER.x[5]}
(x[5]) affects:{$DER.x[6]}
(x[6]) affects:{$DER.x[7]}
(x[7]) affects:{$DER.x[8]}
(x[8]) affects:{$DER.x[9]}
(x[9]) affects:{$DER.x[9]}
(x[10]) affects:{$DER.x[10]}
(x[11]) affects:{}

##### Rows #####
------------------
($DER.x[1]) depends on:{}
($DER.x[2]) depends on:{x[1]}
($DER.x[3]) depends on:{x[2]}
($DER.x[4]) depends on:{x[3]}
($DER.x[5]) depends on:{x[4]}
($DER.x[6]) depends on:{x[5]}
($DER.x[7]) depends on:{x[6]}
($DER.x[8]) depends on:{x[7]}
($DER.x[9]) depends on:{x[8],x[9]}
($DER.x[10]) depends on:{x[10]}
($DER.x[11]) depends on:{}

=====================
Sparsity Coloring
=====================
Color (1)
  - Column: {x[1],x[2],x[3],x[4],x[5],x[6],x[7],x[9],x[10],x[11]}
  - Row:    {}

Color (2)
  - Column: {x[8]}
  - Row:    {}


record SimulationResult
    resultFile = "simple_der_for_res.mat",
    simulationOptions = "startTime = 0.0, stopTime = 1.0, numberOfIntervals = 500, tolerance = 1e-6, method = 'dassl', fileNamePrefix = 'simple_der_for', 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;
""

Equation mismatch: diff says:
--- /tmp/omc-rtest-unknown/simulation/modelica/NBackend/array_handling/simple_der_for.mos_temp8197/equations-expected2024-01-20 04:08:22.166384768 +0000
+++ /tmp/omc-rtest-unknown/simulation/modelica/NBackend/array_handling/simple_der_for.mos_temp8197/equations-got2024-01-20 04:08:27.166256843 +0000
@@ -70,17 +70,65 @@
 
 ###################################
 
 Partial Derivative Variables (3/22)
 *************************************
-(1)       [ALGB] (1) Real $FUN_2
-(2)       [ALGB] (10) Real[10] $FUN_1
-(3)       [DER-] (11) Real[11] $DER.x
+(1) [JVAR] (11) Real[11] $pDER_ODE_JAC.$DER.x
+(2) [JTMP] (10) Real[10] $pDER_ODE_JAC.$FUN_1
+(3) [JTMP] (1) Real $pDER_ODE_JAC.$FUN_2
 
 Seed Variables (1/11)
 ***********************
-(1)       [STAT] (11) Real[11] x (fixed = {true for $i1 in 1:11})
+(1) [SEED] (11) Real[11] $SEED_ODE_JAC.x
+
+BLOCK 1: Single Strong Component (status = Solve.EXPLICIT)
+------------------------------------------------------------
+### Variable:
+Real $pDER_ODE_JAC.$FUN_2
+### Equation:
+[SCAL] (1) $pDER_ODE_JAC.$FUN_2 = -0.0 ($RES_ODE_JAC_0)
+
+BLOCK 2: Sliced Component (status = Solve.EXPLICIT)
+-----------------------------------------------------
+### Variable:
+$pDER_ODE_JAC.$DER.x[3]
+### Equation:
+[SCAL] (1) $pDER_ODE_JAC.$DER.x[3] = $pDER_ODE_JAC.$FUN_2 ($RES_ODE_JAC_1)
+slice: {}
+
+BLOCK 3: Generic Component (status = Solve.EXPLICIT)
+------------------------------------------------------
+### Variable:
+$pDER_ODE_JAC.$FUN_1[$i1]
+### Equation:
+[FOR-] (10) ($RES_ODE_JAC_2)
+[----] for $i1 in 1:10 loop
+[----] [SCAL] (1) $pDER_ODE_JAC.$FUN_1[$i1] = 0.0 ($RES_ODE_JAC_3)
+[----] end for;
+slice: {9, 8, 7, 6, 5, 4, 3, 2, 1, 0}
+
+BLOCK 4: Generic Component (status = Solve.EXPLICIT)
+------------------------------------------------------
+### Variable:
+$pDER_ODE_JAC.$DER.x[$i1]
+### Equation:
+[FOR-] (10) ($RES_ODE_JAC_4)
+[----] for $i1 in 1:10 loop
+[----] [SCAL] (1) $pDER_ODE_JAC.$DER.x[$i1] = $SEED_ODE_JAC.x[$i1] + $pDER_ODE_JAC.$DER.x[1 + $i1] + $pDER_ODE_JAC.$FUN_1[$i1] ($RES_ODE_JAC_5)
+[----] end for;
+slice: {0, 1}
+
+BLOCK 5: Generic Component (status = Solve.EXPLICIT)
+------------------------------------------------------
+### Variable:
+$pDER_ODE_JAC.$DER.x[1 + $i1]
+### Equation:
+[FOR-] (10) ($RES_ODE_JAC_6)
+[----] for $i1 in 1:10 loop
+[----] [SCAL] (1) $pDER_ODE_JAC.$DER.x[1 + $i1] = -(($SEED_ODE_JAC.x[$i1] + $pDER_ODE_JAC.$FUN_1[$i1]) - $pDER_ODE_JAC.$DER.x[$i1]) ($RES_ODE_JAC_7)
+[----] end for;
+slice: {9, 8, 7, 6, 5, 4, 3, 2}
 
 ==============================
 Sparsity Pattern (nnz: 10)
 ==============================
 

Equation mismatch: omc-diff says:
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------Failed 'A' 'J'
Line 75: Text differs:
expected: )       [ALGB] (
got:      ) [JVAR] (

== 1 out of 1 tests failed [simulation/modelica/NBackend/array_handling/simple_der_for.mos_temp8197, time: 5]