Skip to content

Failed

tests / 04 testsuite-clang 1/3 / openmodelica_cppruntime.testVectorizedBlocks.mos (from (result.xml))

Failing for the past 11 builds (Since #10 )
Took 5 sec.

Stacktrace

Output mismatch (see stdout for details)

Standard Output

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

==== Log /tmp/omc-rtest-omtmpuser/openmodelica/cppruntime/testVectorizedBlocks.mos_temp7721/log-testVectorizedBlocks.mos
true
""
true
""
true
""
true
""
true
""
true
"Notification: Automatically loaded package Modelica 3.2.2 due to uses annotation from VectorizedBlocksTest.
Notification: Automatically loaded package Complex 3.2.2 due to uses annotation from Modelica.
Notification: Automatically loaded package ModelicaServices 3.2.2 due to uses annotation from Modelica.
Notification: Automatically loaded package Modelica_Synchronous 0.93.0-dev due to uses annotation from VectorizedBlocksTest.
Warning: Requested package Modelica of version 3.2.3, but this package was already loaded with version 3.2.2. There are no conversion annotations for this version but 3.2.3 is newer than 3.2.2. There is a possibility that 3.2.2 remains backwards compatible, but it is not loaded so OpenModelica cannot verify this.
Warning: Requested package ModelicaServices of version 3.2.3, but this package was already loaded with version 3.2.2. There are no conversion annotations for this version but 3.2.3 is newer than 3.2.2. There is a possibility that 3.2.2 remains backwards compatible, but it is not loaded so OpenModelica cannot verify this.
"

########################################
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 $i1 in 1 : 10 loop
    der(integrator1[$i1].y) = integrator1[$i1].k * integrator1[$i1].u; end for;    [dynamic |0|0|0|0|]


no matching



BackendDAEType: simulation


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


Initial Equations (1, 1)
========================================
1/1 (10): integrator1.y = integrator1.y_start   [dynamic |0|0|0|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 = "",
    simulationOptions = "startTime = 0.0, stopTime = 1.0, numberOfIntervals = 500, tolerance = 1e-6, method = 'dassl', fileNamePrefix = 'VectorizedBlocksTest', options = '', outputFormat = 'mat', variableFilter = '.*', cflags = '', simflags = ''",
    messages = "Failed to build model: VectorizedBlocksTest"
end SimulationResult;
"Warning: Requested package Modelica_Synchronous of version 0.92.1, but this package was already loaded with version 0.93.0-dev. There are no conversion annotations and 0.92.1 is older than 0.93.0-dev, so the libraries are probably incompatible.
Warning: Requested package Modelica of version 3.2.3, but this package was already loaded with version 3.2.2. There are no conversion annotations for this version but 3.2.3 is newer than 3.2.2. There is a possibility that 3.2.2 remains backwards compatible, but it is not loaded so OpenModelica cannot verify this.
Warning: Requested package ModelicaServices of version 3.2.3, but this package was already loaded with version 3.2.2. There are no conversion annotations for this version but 3.2.3 is newer than 3.2.2. There is a possibility that 3.2.2 remains backwards compatible, but it is not loaded so OpenModelica cannot verify this.
[BackEnd/Initialization.mo:0:0-0:0:writable] Error: Internal error DAEUtil.getStartAttr failed because type array(Real)[10] has no default start value.
Error: No system for the symbolic initialization was generated
"



Equation mismatch: diff says:
--- /tmp/omc-rtest-omtmpuser/openmodelica/cppruntime/testVectorizedBlocks.mos_temp7721/equations-expected2024-04-20 01:39:47.673627130 +0000
+++ /tmp/omc-rtest-omtmpuser/openmodelica/cppruntime/testVectorizedBlocks.mos_temp7721/equations-got2024-04-20 01:39:52.005722214 +0000
@@ -77,96 +77,18 @@
 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: 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]
-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 $i1 in 1 : 10 loop
-$DER.integrator1[$i1].y = integrator1[$i1].k * integrator1[$i1].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|]
-
-
-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(unit = {"1", "1", "1", "1", "1", "1", "1", "1", "1", "1"} )  = {1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0}  "Integrator gain" type: Real[10] [10]
-2: integrator1.initType:PARAM(final = true )  = {Modelica.Blocks.Types.Init.InitialState, Modelica.Blocks.Types.Init.InitialState, Modelica.Blocks.Types.Init.InitialState, Modelica.Blocks.Types.Init.InitialState, Modelica.Blocks.Types.Init.InitialState, Modelica.Blocks.Types.Init.InitialState, Modelica.Blocks.Types.Init.InitialState, Modelica.Blocks.Types.Init.InitialState, Modelica.Blocks.Types.Init.InitialState, 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()  = 1.0:10.0  "Initial or guess value of output (= state)" type: Real[10] [10]
-4: assignClock1.n:PARAM(min = 1 final = true )  = 10  "Size of input signal vector u (= size of output signal vector y)" type: Integer
-5: periodicClock1.solverMethod:PARAM()  = "ImplicitEuler"  "Integration method used for discretized continuous-time partitions" type: String
-6: periodicClock1.useSolver:PARAM(final = true )  = true  "= true, if solverMethod shall be explicitly defined" type: Boolean
-7: periodicClock1.period:PARAM(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(final = true )  = 10  type: Integer
-
-
-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",
+resultFile = "",
 simulationOptions = "startTime = 0.0, stopTime = 1.0, numberOfIntervals = 500, tolerance = 1e-6, method = 'dassl', fileNamePrefix = 'VectorizedBlocksTest', options = '', outputFormat = 'mat', variableFilter = '.*', cflags = '', simflags = ''",
-messages = ""
+messages = "Failed to build model: VectorizedBlocksTest"
 end SimulationResult;
 "Warning: Requested package Modelica_Synchronous of version 0.92.1, but this package was already loaded with version 0.93.0-dev. There are no conversion annotations and 0.92.1 is older than 0.93.0-dev, so the libraries are probably incompatible.
 Warning: Requested package Modelica of version 3.2.3, but this package was already loaded with version 3.2.2. There are no conversion annotations for this version but 3.2.3 is newer than 3.2.2. There is a possibility that 3.2.2 remains backwards compatible, but it is not loaded so OpenModelica cannot verify this.
 Warning: Requested package ModelicaServices of version 3.2.3, but this package was already loaded with version 3.2.2. There are no conversion annotations for this version but 3.2.3 is newer than 3.2.2. There is a possibility that 3.2.2 remains backwards compatible, but it is not loaded so OpenModelica cannot verify this.
-Warning: The initial conditions are over specified. For more information set -d=initialization. In OMEdit Tools->Options->Simulation->Show additional information from the initialization process, in OMNotebook call setCommandLineOptions(\"-d=initialization\").
+[BackEnd/Initialization.mo:0:0-0:0:writable] Error: Internal error DAEUtil.getStartAttr failed because type array(Real)[10] has no default start value.
+Error: No system for the symbolic initialization was generated
 "
-10.0
-20.0
+
+

Equation mismatch: omc-diff says:
Line 82: Lexical token differs:
expected: 

got:      record SimulationResult

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