Skip to content

Failed

tests / 05 testsuite-clang 2/3 / simulation_modelica_NBackend_basics.implicitEquation.mos (from (result.xml))

Failing for the past 1 build (Since #10 )
Took 2 sec.

Stacktrace

Output mismatch (see stdout for details)

Standard Output

 + implicitEquation                                                                  ... equation mismatch [time: 2]

==== Log /tmp/omc-rtest-omtmpuser/simulation/modelica/NBackend/basics/implicitEquation.mos_temp7838/log-implicitEquation.mos
true
""
true
##################################

SimCode (implicitEquation)

##################################
============
SimVars 
============
Algebraic Variables (2)
*************************
  (0)[ALGB] (1) Real x
  (1)[ALGB] (1) Real $FUN_1

Residual Variables (1)
************************
  (0)[RES-] (1) Real $RES_SIM_0

Initial Partition
-------------------
  (4) $FUN_1 := sin(time)
  (3) Nonlinear System (size = 1, homotopy = false, mixed = false, torn = true)
  --Iteration Vars:{x}
  --(1) 0 = $FUN_1 - ((x + x ^ 3.0) - x ^ 2.0)

Algebraic Partition 1
-----------------------
  (6) Alias of 4
  (5) Alias of 3

Event Partition
-----------------
  (6) Alias of 4
  (5) Alias of 3

==========================================================
SimCode Jacobian INI_NLS_JAC_1(idx = 0, partition = 0)
==========================================================

ColumnVars (size = 1)
***********************
  (0)[JVAR] (1) Real $pDER_INI_NLS_JAC_1.$RES_SIM_0

SeedVars (size = 1)
*********************
  (0)[SEED] (1) Real $SEED_INI_NLS_JAC_1.x

Column Equations (size = 1)
-----------------------------
  (2) $pDER_INI_NLS_JAC_1.$RES_SIM_0 := -(($SEED_INI_NLS_JAC_1.x + 3.0 * x ^ 2.0 * $SEED_INI_NLS_JAC_1.x) - 2.0 * x * $SEED_INI_NLS_JAC_1.x)

Sparsity Pattern Cols
***********************
  0:{0}

Sparsity Pattern Rows
***********************
  0:{0}

Sparsity Coloring Groups
**************************
  {0}

======================================================
[EMPTY] SimCode Jacobian A(idx = 1, partition = 0)
======================================================

======================================================
[EMPTY] SimCode Jacobian B(idx = 2, partition = 0)
======================================================

======================================================
[EMPTY] SimCode Jacobian C(idx = 3, partition = 0)
======================================================

======================================================
[EMPTY] SimCode Jacobian D(idx = 4, partition = 0)
======================================================

======================================================
[EMPTY] SimCode Jacobian F(idx = 5, partition = 0)
======================================================

======================================================
[EMPTY] SimCode Jacobian H(idx = 6, partition = 0)
======================================================



*********************
* SimCode Equations *
*********************


allEquations:
========================================

6: alias of 4
5: alias of 3
========================================



odeEquations (0 systems):
========================================
========================================



algebraicEquations (1 systems):
========================================
6: alias of 4
5: alias of 3
========================================


clockPartitions (0 systems):

========================================



initialEquations: (2)
========================================
4: $FUN_1=sin(time) [Real]
3:  (NONLINEAR) index:0 jacobian: true
crefs: x
1: $FUN_1 - (x + x ^ 3.0 - x ^ 2.0) (RESIDUAL)
Jacobian idx: 0
2: $pDER_INI_NLS_JAC_1.$RES_SIM_0=-($SEED_INI_NLS_JAC_1.x + 3.0 * x ^ 2.0 * $SEED_INI_NLS_JAC_1.x - 2.0 * x * $SEED_INI_NLS_JAC_1.x) [Real]

columnVars(1)
----------------------
index:0: $pDER_INI_NLS_JAC_1.$RES_SIM_0 (no alias)  initial: no arrCref index:(1) []

========================================



initialEquations_lambda0: (0)
========================================

removedInitialEquations:
========================================

startValueEquations:
========================================

nominalValueEquations:
========================================

minValueEquations:
========================================

maxValueEquations:
========================================

parameterEquations:
========================================

removedEquations:
========================================

algorithmAndEquationAsserts:
========================================

equationsForZeroCrossings:
========================================

generic calls:
========================================

jacobianEquations:
========================================

jacobianMatrices:
========================================
Jacobian idx: 0
2: $pDER_INI_NLS_JAC_1.$RES_SIM_0=-($SEED_INI_NLS_JAC_1.x + 3.0 * x ^ 2.0 * $SEED_INI_NLS_JAC_1.x - 2.0 * x * $SEED_INI_NLS_JAC_1.x) [Real]

columnVars(1)
----------------------
index:0: $pDER_INI_NLS_JAC_1.$RES_SIM_0 (no alias)  initial: no arrCref index:(1) []
Jacobian idx: 1

Jacobian idx: 2

Jacobian idx: 3

Jacobian idx: 4

Jacobian idx: 5

Jacobian idx: 6


modelInfo:
========================================
algVars (2)
----------------------
index:0: x (no alias)  initial: no arrCref index:(1) []
index:1: $FUN_1 (no alias)  hideResult  initial: no arrCref index:(2) []
functions:
-----------

record SimulationResult
    resultFile = "implicitEquation_res.mat",
    simulationOptions = "startTime = 0.0, stopTime = 1.0, numberOfIntervals = 500, tolerance = 1e-6, method = 'dassl', fileNamePrefix = 'implicitEquation', 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-omtmpuser/simulation/modelica/NBackend/basics/implicitEquation.mos_temp7838/equations-expected2024-06-28 19:13:21.053238363 +0000
+++ /tmp/omc-rtest-omtmpuser/simulation/modelica/NBackend/basics/implicitEquation.mos_temp7838/equations-got2024-06-28 19:13:23.629219058 +0000
@@ -18,47 +18,75 @@
 ************************
 (0)[RES-] (1) Real $RES_SIM_0
 
 Initial Partition
 -------------------
-(3) $FUN_1 := sin(time)
-(2) Nonlinear System (size = 1, homotopy = false, mixed = false, torn = true)
+(4) $FUN_1 := sin(time)
+(3) Nonlinear System (size = 1, homotopy = false, mixed = false, torn = true)
 --Iteration Vars:{x}
 --(1) 0 = $FUN_1 - ((x + x ^ 3.0) - x ^ 2.0)
 
 Algebraic Partition 1
 -----------------------
+(6) Alias of 4
 (5) Alias of 3
-(4) Alias of 2
 
 Event Partition
 -----------------
+(6) Alias of 4
 (5) Alias of 3
-(4) Alias of 2
+
+==========================================================
+SimCode Jacobian INI_NLS_JAC_1(idx = 0, partition = 0)
+==========================================================
+
+ColumnVars (size = 1)
+***********************
+(0)[JVAR] (1) Real $pDER_INI_NLS_JAC_1.$RES_SIM_0
+
+SeedVars (size = 1)
+*********************
+(0)[SEED] (1) Real $SEED_INI_NLS_JAC_1.x
+
+Column Equations (size = 1)
+-----------------------------
+(2) $pDER_INI_NLS_JAC_1.$RES_SIM_0 := -(($SEED_INI_NLS_JAC_1.x + 3.0 * x ^ 2.0 * $SEED_INI_NLS_JAC_1.x) - 2.0 * x * $SEED_INI_NLS_JAC_1.x)
+
+Sparsity Pattern Cols
+***********************
+0: {0}
+
+Sparsity Pattern Rows
+***********************
+0: {0}
+
+Sparsity Coloring Groups
+**************************
+{0}
 
 ======================================================
-[EMPTY] SimCode Jacobian A(idx = 0, partition = 0)
+[EMPTY] SimCode Jacobian A(idx = 1, partition = 0)
 ======================================================
 
 ======================================================
-[EMPTY] SimCode Jacobian B(idx = 1, partition = 0)
+[EMPTY] SimCode Jacobian B(idx = 2, partition = 0)
 ======================================================
 
 ======================================================
-[EMPTY] SimCode Jacobian C(idx = 2, partition = 0)
+[EMPTY] SimCode Jacobian C(idx = 3, partition = 0)
 ======================================================
 
 ======================================================
-[EMPTY] SimCode Jacobian D(idx = 3, partition = 0)
+[EMPTY] SimCode Jacobian D(idx = 4, partition = 0)
 ======================================================
 
 ======================================================
-[EMPTY] SimCode Jacobian F(idx = 4, partition = 0)
+[EMPTY] SimCode Jacobian F(idx = 5, partition = 0)
 ======================================================
 
 ======================================================
-[EMPTY] SimCode Jacobian H(idx = 5, partition = 0)
+[EMPTY] SimCode Jacobian H(idx = 6, partition = 0)
 ======================================================
 
 
 
 *********************
@@ -67,12 +95,12 @@
 
 
 allEquations:
 ========================================
 
+6: alias of 4
 5: alias of 3
-4: alias of 2
 ========================================
 
 
 
 odeEquations (0 systems):
@@ -81,12 +109,12 @@
 
 
 
 algebraicEquations (1 systems):
 ========================================
+6: alias of 4
 5: alias of 3
-4: alias of 2
 ========================================
 
 
 clockPartitions (0 systems):
 
@@ -94,14 +122,20 @@
 
 
 
 initialEquations: (2)
 ========================================
-3: $FUN_1=sin(time) [Real]
-2:  (NONLINEAR) index:0 jacobian: false
+4: $FUN_1=sin(time) [Real]
+3: (NONLINEAR) index:0 jacobian: true
 crefs: x
 1: $FUN_1 - (x + x ^ 3.0 - x ^ 2.0) (RESIDUAL)
+Jacobian idx: 0
+2: $pDER_INI_NLS_JAC_1.$RES_SIM_0=-($SEED_INI_NLS_JAC_1.x + 3.0 * x ^ 2.0 * $SEED_INI_NLS_JAC_1.x - 2.0 * x * $SEED_INI_NLS_JAC_1.x) [Real]
+
+columnVars(1)
+----------------------
+index:0: $pDER_INI_NLS_JAC_1.$RES_SIM_0 (no alias)  initial: no arrCref index:(1) []
 
 ========================================
 
 
 
@@ -142,21 +176,27 @@
 ========================================
 
 jacobianMatrices:
 ========================================
 Jacobian idx: 0
+2: $pDER_INI_NLS_JAC_1.$RES_SIM_0=-($SEED_INI_NLS_JAC_1.x + 3.0 * x ^ 2.0 * $SEED_INI_NLS_JAC_1.x - 2.0 * x * $SEED_INI_NLS_JAC_1.x) [Real]
 
+columnVars(1)
+----------------------
+index:0: $pDER_INI_NLS_JAC_1.$RES_SIM_0 (no alias)  initial: no arrCref index:(1) []
 Jacobian idx: 1
 
 Jacobian idx: 2
 
 Jacobian idx: 3
 
 Jacobian idx: 4
 
 Jacobian idx: 5
 
+Jacobian idx: 6
+
 
 modelInfo:
 ========================================
 algVars (2)
 ----------------------

Equation mismatch: omc-diff says:
--------------------------------------Line 23: Integer 3 != 4

== 1 out of 1 tests failed [simulation/modelica/NBackend/basics/implicitEquation.mos_temp7838, time: 2]