Skip to content

Regression

simulation_modelica_tearing.dynamicTearing3.mos (from (result.xml))

Failing for the past 1 build (Since #3713 )
Took 12 sec.

Stacktrace

Output mismatch (see stdout for details)

Standard Output

 + dynamicTearing3                                                                   ... equation mismatch [time: 12]

==== Log C:\Windows\TEMP/omc-rtest-OpenModelica/simulation/modelica/tearing/dynamicTearing3.mos_temp5749/log-dynamicTearing3.mos
true
""
true
""
true
""
true
""
true
""




================================================================================
Calling Tearing for initialization!
================================================================================
Handle strong component with index: 1
To disable tearing of this component use '--noTearingForComponent=1'.

Tearing of NONLINEAR component
Use Flag '-d=tearingdumpV' and '-d=iterationVars' for more details


Tearing type: heuristic
Tearing strictness: strict


###BEGIN print Strong Component#####################
(Function:CellierTearing)

unknown partition
========================================

Variables (4)
========================================
1: z:VARIABLE()  type: Real
2: y:VARIABLE()  type: Real
3: x:VARIABLE()  type: Real
4: a:VARIABLE()  type: Real


Equations (4, 4)
========================================
1/1 (1): algorithm
  a := $START.a;
  a := 2.0 * x;
   [dynamic |0|0|0|0|]
2/2 (1): g * a * x + time - y ^ 2.0 = 0.0   [dynamic |0|0|0|0|]
3/3 (1): g * a + x * z - y = 0.0   [dynamic |0|0|0|0|]
4/4 (1): a + 2.0 * y - k * z = 0.0   [dynamic |0|0|0|0|]


Adjacency Matrix (row: equation)
========================================
number of rows: 4
1: 4 3
2: 4 3 2
3: 4 3 2 1
4: 4 2 1

Transposed Adjacency Matrix (row: variable)
========================================
number of rows: 4
1: 4 3
2: 4 3 2
3: 3 2 1
4: 4 3 2 1

no matching


###END print Strong Component#######################
(Function:CellierTearing)




Determine STRICT TEARING SET
********************************************************************************


AdjacencyMatrixEnhanced:
Adjacency Matrix Enhanced (row == equation)
====================================
number of rows: 4
1:(3,unsolvable) (4,solved) 
2:(4,variable(false)) (3,variable(false)) (2,nonlinear) 
3:(4,param(false)) (3,variable(true)) (1,variable(true)) (2,constone) 
4:(4,constone) (2,const(true)) (1,param(true)) 

AdjacencyMatrixTransposedEnhanced:
Transpose Adjacency Matrix Enhanced (row == var)
=====================================
number of rows: 4
1:(4,param(true)) (3,variable(true)) 
2:(4,const(true)) (3,constone) (2,nonlinear) 
3:(3,variable(true)) (2,variable(false)) (1,unsolvable) 
4:(4,constone) (3,param(false)) (2,variable(false)) (1,solved) 

eqLinPoints:
100,150,62,17


Forced selection of Tearing Variables:
========================================
Unsolvables as tVars: 3
Variables with annotation attribute 'always' as tVars: 

Matching
========================================
4 variables and equations
var 1 is solved in eqn 8
var 2 is solved in eqn 3
var 3 is solved in eqn 8
var 4 is solved in eqn 1

order: 1,3
========================================


****************************************
* TEARING RESULTS - STRICT SET:
* (Local Indexes)
*
* No of equations in strong component: 4
* No of tVars: 2
*
* tVars: 3,1
*
* resEq: 4,2
*
* innerEquations ({eqn,vars}):
* {1:4}, {3:2}
*
****************************************

Note:
=====
No dynamic Tearing for this strong component. Check if
- flag 'dynamicTearing' is set proper
- strong component does not contain statesets
- system belongs to simulation
- SimCode target is 'C'





================================================================================
Calling Tearing for simulation!
================================================================================
Handle strong component with index: 2
To disable tearing of this component use '--noTearingForComponent=2'.

Tearing of NONLINEAR component
Use Flag '-d=tearingdumpV' and '-d=iterationVars' for more details


Tearing type: heuristic
Tearing strictness: strict


###BEGIN print Strong Component#####################
(Function:CellierTearing)

unknown partition
========================================

Variables (4)
========================================
1: y:VARIABLE()  type: Real
2: z:VARIABLE()  type: Real
3: a:VARIABLE()  type: Real
4: x:VARIABLE()  type: Real


Equations (4, 4)
========================================
1/1 (1): g * a * x + time - y ^ 2.0 = 0.0   [dynamic |0|0|0|0|]
2/2 (1): algorithm
  a := $START.a;
  a := 2.0 * x;
   [dynamic |0|0|0|0|]
3/3 (1): g * a + x * z - y = 0.0   [dynamic |0|0|0|0|]
4/4 (1): a + 2.0 * y - k * z = 0.0   [dynamic |0|0|0|0|]


Adjacency Matrix (row: equation)
========================================
number of rows: 4
1: 4 3 1
2: 4 3
3: 4 3 2 1
4: 3 2 1

Transposed Adjacency Matrix (row: variable)
========================================
number of rows: 4
1: 4 3 1
2: 4 3
3: 4 3 2 1
4: 3 2 1

no matching


###END print Strong Component#######################
(Function:CellierTearing)




Determine STRICT TEARING SET
********************************************************************************


AdjacencyMatrixEnhanced:
Adjacency Matrix Enhanced (row == equation)
====================================
number of rows: 4
1:(3,variable(false)) (4,variable(false)) (1,nonlinear) 
2:(4,unsolvable) (3,solved) 
3:(3,param(false)) (4,variable(true)) (2,variable(true)) (1,constone) 
4:(3,constone) (1,const(true)) (2,param(true)) 

AdjacencyMatrixTransposedEnhanced:
Transpose Adjacency Matrix Enhanced (row == var)
=====================================
number of rows: 4
1:(4,const(true)) (3,constone) (1,nonlinear) 
2:(4,param(true)) (3,variable(true)) 
3:(4,constone) (3,param(false)) (2,solved) (1,variable(false)) 
4:(3,variable(true)) (2,unsolvable) (1,variable(false)) 

eqLinPoints:
150,100,62,17


Forced selection of Tearing Variables:
========================================
Unsolvables as tVars: 4
Variables with annotation attribute 'always' as tVars: 

Matching
========================================
4 variables and equations
var 1 is solved in eqn 3
var 2 is solved in eqn 8
var 3 is solved in eqn 2
var 4 is solved in eqn 8

order: 2,3
========================================


****************************************
* TEARING RESULTS - STRICT SET:
* (Local Indexes)
*
* No of equations in strong component: 4
* No of tVars: 2
*
* tVars: 4,2
*
* resEq: 4,1
*
* innerEquations ({eqn,vars}):
* {2:3}, {3:1}
*
****************************************



Determine CASUAL TEARING SET
********************************************************************************


AdjacencyMatrixEnhanced:
Adjacency Matrix Enhanced (row == equation)
====================================
number of rows: 4
1:(3,variable(false),abs(g * x) > 1e-12 (local)) (4,variable(false),abs(g * a) > 1e-12 (local)) (1,solvable,g * a * x + time >= 0.0 (local)) 
2:(4,unsolvable) (3,solved) 
3:(3,param(false),abs(g) > 1e-12 (global)) (4,solvable,abs(z) > 1e-12 (local)) (2,solvable,abs(x) > 1e-12 (local)) (1,solvable) 
4:(3,solvable) (1,solvable) (2,solvable,abs(k) > 1e-12 (global)) 

AdjacencyMatrixTransposedEnhanced:
Transpose Adjacency Matrix Enhanced (row == var)
=====================================
number of rows: 4
1:(4,solvable) (3,solvable) (1,solvable,g * a * x + time >= 0.0 (local)) 
2:(4,solvable,abs(k) > 1e-12 (global)) (3,solvable,abs(x) > 1e-12 (local)) 
3:(4,solvable) (3,param(false),abs(g) > 1e-12 (global)) (2,solved) (1,variable(false),abs(g * x) > 1e-12 (local)) 
4:(3,solvable,abs(z) > 1e-12 (local)) (2,unsolvable) (1,variable(false),abs(g * a) > 1e-12 (local)) 

eqLinPoints:
150,100,62,17


Matching
========================================
4 variables and equations
var 1 is solved in eqn 1
var 2 is solved in eqn 3
var 3 is solved in eqn 2
var 4 is solved in eqn 8

order: 2,1,3
========================================


****************************************
* TEARING RESULTS - CASUAL SET:
* (Local Indexes)
*
* No of equations in strong component: 4
* No of tVars: 1
*
* tVars: 4
*
* resEq: 4
*
* innerEquations ({eqn,vars}):
* {2:3}, {1:1}, {3:2}
*
****************************************


Note:
=====
Nonlinear dynamic tearing for this strong component in model:
dynamicTearing3

Single Equation with constraint:
g * a * x + time - y ^ 2.0 = 0.0
Constraints:
g * a * x + time >= 0.0 (local)

Single Equation with constraint:
g * a + x * z - y = 0.0
Constraints:
abs(x) > 1e-12 (local)

record SimulationResult
    resultFile = "dynamicTearing3_res.mat",
    simulationOptions = "startTime = 0.0, stopTime = 2.0, numberOfIntervals = 500, tolerance = 1e-6, method = 'dassl', fileNamePrefix = 'dynamicTearing3', options = '', outputFormat = 'mat', variableFilter = '.*', cflags = '', simflags = '-lv=LOG_DT_CONS'",
    messages = "LOG_DT_CONS       | info    | The following local constraint is violated:
|                 | |       | abs(x) > 1e-12
LOG_SUCCESS       | info    | The initialization finished successfully without homotopy method.
LOG_DT_CONS       | info    | The following local constraint is violated:
|                 | |       | abs(x) > 1e-12
LOG_NLS           | error   | residualFunc10: Iteration variable `z` is inf or nan.
LOG_ASSERT        | debug   | residualFunc10 failed at time=0.004.
|                 | |       | For more information please use -lv LOG_NLS.
LOG_DT_CONS       | info    | The following local constraint is violated:
|                 | |       | abs(x) > 1e-12
LOG_DT_CONS       | info    | The following local constraint is violated:
|                 | |       | abs(x) > 1e-12
LOG_SUCCESS       | info    | The simulation finished successfully.
"
end SimulationResult;
""
'' 
Equation mismatch: diff says: 
--- "C:\\Windows\\TEMP/omc-rtest-OpenModelica/simulation/modelica/tearing/dynamicTearing3.mos_temp5749/equations-expected"2024-04-23 12:24:32.255942900 +0200
+++ "C:\\Windows\\TEMP/omc-rtest-OpenModelica/simulation/modelica/tearing/dynamicTearing3.mos_temp5749/equations-got"2024-04-23 12:24:44.641941700 +0200
@@ -355,11 +355,9 @@
 |                 | |       | For more information please use -lv LOG_NLS.
 LOG_DT_CONS       | info    | The following local constraint is violated:
 |                 | |       | abs(x) > 1e-12
 LOG_DT_CONS       | info    | The following local constraint is violated:
 |                 | |       | abs(x) > 1e-12
-LOG_DT_CONS       | info    | The following local constraint is violated:
-|                 | |       | abs(x) > 1e-12
 LOG_SUCCESS       | info    | The simulation finished successfully.
 "
 end SimulationResult;
 ""
'' 
Equation mismatch: omc-diff says: 
----Failed 'D' 'S'
Line 360: Text differs:
expected: LOG_DT_CONS       | info    | The following local constraint is violated:
got:      LOG_SUCCESS | info    | The simulation finished successfully.

== 1 out of 1 tests failed [simulation/modelica/tearing/dynamicTearing3.mos_temp5749, time: 12]