Skip to content

Failed

tests / testsuite-gcc / openmodelica_cppruntime.testVectorizedBlocks.mos (from (result.xml))

Failing for the past 10 builds (Since #16 )
Took 8 sec.

Stacktrace

Output mismatch (see stdout for details)

Standard Output

 + testVectorizedBlocks                                                              ... equation mismatch [time: 8]

==== Log /tmp/omc-rtest-unknown/openmodelica/cppruntime/testVectorizedBlocks.mos_temp4077/log-testVectorizedBlocks.mos
true
""
true
""
true
""
true
""
true
""
true
""

########################################
dumpDAE
########################################


clocked partition(1)
========================================

Variables (5)
========================================
1: output y:VARIABLE(flow=false )  type: Real[10]  [10]
2: integrator1.u:VARIABLE(flow=false )  "Connector of Real input signal" type: Real[10]  [10]
3: integrator1.y:VARIABLE(flow=false start = integrator1.y_start )  "Connector of Real output signal" type: Real[10]  [10]
4: assignClock1.y:VARIABLE(flow=false )  "Connector of clocked, Real output signal" type: Real[10]  [10]
5: assignClock1.u:VARIABLE(flow=false )  "Connector of clocked, Real input signal" type: Real[10]  [10]


Equations (5, 5)
========================================
1/1 (10): u = assignClock1.u   [dynamic |0|0|0|0|]
2/11 (10): assignClock1.y = integrator1.u   [dynamic |0|0|0|0|]
3/21 (10): integrator1.y = y   [dynamic |0|0|0|0|]
4/31 (10): assignClock1.y = assignClock1.u   [dynamic |0|0|0|0|]
5/41 (10): for $i in 1 : 10 loop 
    der(integrator1[$i].y) = integrator1[$i].k * integrator1[$i].u; end for;    [dynamic |0|0|0|0|]


Simple Equations (0, 0)
========================================


State Sets
========================================


no matching



BackendDAEType: simulation


Known variables only depending on parameters and constants - globalKnownVars (9)
========================================
1: n:PARAM(flow=false )  = 10  type: Integer 
2: input u:VARIABLE(flow=false start = /*Real[n]*/(1:10) )  type: Real[10]  [10]
3: periodicClock1.period:PARAM(flow=false unit = "s" final = true )  = 0.1  "Period of clock (defined as Real number)" type: Real 
4: periodicClock1.useSolver:PARAM(flow=false final = true )  = true  "= true, if solverMethod shall be explicitly defined" type: Boolean 
5: periodicClock1.solverMethod:PARAM(flow=false )  = "ImplicitEuler"  "Integration method used for discretized continuous-time partitions" type: String 
6: assignClock1.n:PARAM(flow=false min = 1 )  = 10  "Size of input signal vector u (= size of output signal vector y)" type: Integer 
7: integrator1.y_start:PARAM(flow=false )  = /*Real[n]*/(1:10)  "Initial or guess value of output (= state)" type: Real[10]  [10]
8: integrator1.initType:PARAM(flow=false final = true )  = Modelica.Blocks.Types.Init.InitialState  "Type of initialization (1: no init, 2: steady state, 3,4: initial output)" type: enumeration(NoInit, SteadyState, InitialState, InitialOutput)[10]  [10]
9: integrator1.k:PARAM(flow=false unit = "1" )  = 1.0  "Integrator gain" type: Real[10]  [10]


Known variables only depending on states and inputs - localKnownVars (0)
========================================


External Objects (0)
========================================


Classes of External Objects (0)
========================================


Alias Variables (0)
========================================


Simple Shared Equations (0, 0)
========================================


Initial Equations (1, 1)
========================================
1/1 (10): integrator1.y = integrator1.y_start   [dynamic |0|0|0|0|]


Zero Crossings (0)
========================================


Relations (0)
========================================


Samples (0)
========================================


Constraints (0)
========================================


Base partitions (1)
========================================
1: Clock(0.1)[1]


Sub partitions (1)
========================================
1: factor(1/1) shift(0/1) solver(ImplicitEuler) event(false)



########################################
dumpDAE
########################################


clocked partition(1)
========================================

Variables (6)
========================================
1: output y:VARIABLE(flow=false )  type: Real[10]  [10]
2: integrator1.u:VARIABLE(flow=false )  "Connector of Real input signal" type: Real[10]  [10]
3: integrator1.y:CLOCKED_STATE(flow=false start = integrator1.y_start fixed = true )  "Connector of Real output signal" type: Real[10]  [10]
4: assignCloUnexpected end of /proc/mounts line `overlay / overlay rw,relatime,lowerdir=/var/lib/docker/overlay2/l/HARPE5PKGUCTTU7KPWYDQXZC5S:/var/lib/docker/overlay2/l/AKUSGG2DJ2VNFFSFKIZ77OVOVT:/var/lib/docker/overlay2/l/6EAWHLLNQ4VNIHV6JWX763TT3V:/var/lib/docker/overlay2/l/CSHIUSYFZCK4EBRLHZTUP4D54K:/var/lib/docker/overlay2/l/STL54MVTFWD2TABVXYNZ7IPE74:/var/lib/docker/overlay2/l/GGYGSX4UHIVXAQSELYLXSV4LV6:/var/lib/docker/overlay2/l/FGCIUGECWESRTLJ22UYYTVRTIF:/var/lib/docker/overlay2/l/QEFCR6W3IF3JFHZSD6HWLTY5FM:/var/lib/docker/overlay2/l/D6VBA3BXFB2KX'
Unexpected end of /proc/mounts line `overlay / overlay rw,relatime,lowerdir=/var/lib/docker/overlay2/l/HARPE5PKGUCTTU7KPWYDQXZC5S:/var/lib/docker/overlay2/l/AKUSGG2DJ2VNFFSFKIZ77OVOVT:/var/lib/docker/overlay2/l/6EAWHLLNQ4VNIHV6JWX763TT3V:/var/lib/docker/overlay2/l/CSHIUSYFZCK4EBRLHZTUP4D54K:/var/lib/docker/overlay2/l/STL54MVTFWD2TABVXYNZ7IPE74:/var/lib/docker/overlay2/l/GGYGSX4UHIVXAQSELYLXSV4LV6:/var/lib/docker/overlay2/l/FGCIUGECWESRTLJ22UYYTVRTIF:/var/lib/docker/overlay2/l/QEFCR6W3IF3JFHZSD6HWLTY5FM:/var/lib/docker/overlay2/l/D6VBA3BXFB2KX'
ck1.y:VARIABLE(flow=false )  "Connector of clocked, Real output signal" type: Real[10]  [10]
5: assignClock1.u:VARIABLE(flow=false )  "Connector of clocked, Real input signal" type: Real[10]  [10]
6: $DER.integrator1.y:VARIABLE()  type: Real[10]  [10]


Equations (6, 6)
========================================
1/1 (10): u = assignClock1.u   [dynamic |0|0|0|0|]
2/11 (10): assignClock1.y = integrator1.u   [dynamic |0|0|0|0|]
3/21 (10): integrator1.y = y   [dynamic |0|0|0|0|]
4/31 (10): assignClock1.y = assignClock1.u   [dynamic |0|0|0|0|]
5/41 (10): for $i in 1 : 10 loop 
    $DER.integrator1[$i].y = integrator1[$i].k * integrator1[$i].u; end for;    [dynamic |0|0|0|0|]
6/51 (10): for i in 1 : 10 loop 
    (integrator1[i].y - previous(integrator1[i].y)) / interval() = if firstTick() then 0.0 else $DER.integrator1[i].y; end for;    [dynamic |0|0|0|0|]


Simple Equations (0, 0)
========================================


State Sets
========================================


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


StrongComponents
========================================
Array  {{1:5}}
Array  {{4:4}}
Array  {{2:2}}
{5:6}
{6:3}
Array  {{3:1}}



BackendDAEType: simulation


Known variables only depending on parameters and constants - globalKnownVars (9)
========================================
1: integrator1.k:PARAM(flow=false unit = "1" )  = 1.0  "Integrator gain" type: Real[10]  [10]
2: integrator1.initType:PARAM(flow=false final = true )  = Modelica.Blocks.Types.Init.InitialState  "Type of initialization (1: no init, 2: steady state, 3,4: initial output)" type: enumeration(NoInit, SteadyState, InitialState, InitialOutput)[10]  [10]
3: integrator1.y_start:PARAM(flow=false )  = 1.0:10.0  "Initial or guess value of output (= state)" type: Real[10]  [10]
4: assignClock1.n:PARAM(flow=false min = 1 )  = 10  "Size of input signal vector u (= size of output signal vector y)" type: Integer 
5: periodicClock1.solverMethod:PARAM(flow=false )  = "ImplicitEuler"  "Integration method used for discretized continuous-time partitions" type: String 
6: periodicClock1.useSolver:PARAM(flow=false final = true )  = true  "= true, if solverMethod shall be explicitly defined" type: Boolean 
7: periodicClock1.period:PARAM(flow=false unit = "s" final = true )  = 0.1  "Period of clock (defined as Real number)" type: Real 
8: input u:VARIABLE(flow=false start = 1.0:10.0 fixed = true )  type: Real[10]  [10]
9: n:PARAM(flow=false )  = 10  type: Integer 


Known variables only depending on states and inputs - localKnownVars (0)
========================================


External Objects (0)
========================================


Classes of External Objects (0)
========================================


Alias Variables (0)
========================================


Simple Shared Equations (0, 0)
========================================


Initial Equations (0, 0)
========================================


Zero Crossings (0)
========================================


Relations (0)
========================================


Samples (0)
========================================


Constraints (0)
========================================


Base partitions (1)
========================================
1: Clock(0.1)[1]


Sub partitions (1)
========================================
1: factor(1/1) shift(0/1) solver(ImplicitEuler) event(false)


record SimulationResult
    resultFile = "VectorizedBlocksTest_res.mat",
    simulationOptions = "startTime = 0.0, stopTime = 1.0, numberOfIntervals = 500, tolerance = 1e-06, method = 'dassl', fileNamePrefix = 'VectorizedBlocksTest', options = '', outputFormat = 'mat', variableFilter = '.*', cflags = '', simflags = ''",
    messages = ""
end SimulationResult;
"Notification: Automatically loaded package Modelica 3.2.2 due to uses annotation.
Notification: Automatically loaded package Complex 3.2.2 due to uses annotation.
Notification: Automatically loaded package ModelicaServices 3.2.2 due to uses annotation.
Notification: Automatically loaded package Modelica_Synchronous 0.92.1 due to uses annotation.
Warning: The initial conditions are over specified. For more information set -d=initialization. In OMEdit Tools->Options->Simulation->OMCFlags, in OMNotebook call setCommandLineOptions("-d=initialization").
"
10.0
20.0

Equation mismatch: diff says:
--- /tmp/omc-rtest-unknown/openmodelica/cppruntime/testVectorizedBlocks.mos_temp4077/equations-expected2019-10-28 13:30:28.079437939 +0000
+++ /tmp/omc-rtest-unknown/openmodelica/cppruntime/testVectorizedBlocks.mos_temp4077/equations-got2019-10-28 13:30:36.391350196 +0000
@@ -129,11 +129,12 @@
 Variables (6)
 ========================================
 1: output y:VARIABLE(flow=false )  type: Real[10]  [10]
 2: integrator1.u:VARIABLE(flow=false )  "Connector of Real input signal" type: Real[10]  [10]
 3: integrator1.y:CLOCKED_STATE(flow=false start = integrator1.y_start fixed = true )  "Connector of Real output signal" type: Real[10]  [10]
-4: assignClock1.y:VARIABLE(flow=false )  "Connector of clocked, Real output signal" type: Real[10]  [10]
+4: assignCloUnexpected end of /proc/mounts line `overlay / overlay rw,relatime,lowerdir=/var/lib/docker/overlay2/l/HARPE5PKGUCTTU7KPWYDQXZC5S:/var/lib/docker/overlay2/l/AKUSGG2DJ2VNFFSFKIZ77OVOVT:/var/lib/docker/overlay2/l/6EAWHLLNQ4VNIHV6JWX763TT3V:/var/lib/docker/overlay2/l/CSHIUSYFZCK4EBRLHZTUP4D54K:/var/lib/docker/overlay2/l/STL54MVTFWD2TABVXYNZ7IPE74:/var/lib/docker/overlay2/l/GGYGSX4UHIVXAQSELYLXSV4LV6:/var/lib/docker/overlay2/l/FGCIUGECWESRTLJ22UYYTVRTIF:/var/lib/docker/overlay2/l/QEFCR6W3IF3JFHZSD6HWLTY5FM:/var/lib/docker/overlay2/l/D6VBA3BXFB2KX'
+ck1.y:VARIABLE(flow=false )  "Connector of clocked, Real output signal" type: Real[10]  [10]
 5: assignClock1.u:VARIABLE(flow=false )  "Connector of clocked, Real input signal" type: Real[10]  [10]
 6: $DER.integrator1.y:VARIABLE()  type: Real[10]  [10]
 
 
 Equations (6, 6)

Equation mismatch: omc-diff says:
Failed 'c' 'U'
Line 134: Text differs:
expected: : assignClock
got:      : assignCloUnexpected end of /proc/mounts line `overlay / overlay rw,relatime,lowerdir=/var/lib/docker/overlay

== 1 out of 1 tests failed [openmodelica/cppruntime/testVectorizedBlocks.mos_temp4077, time: 8]