Skip to content

Failed

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

Failing for the past 9 builds (Since #16 )
Took 1 sec.

Stacktrace

Output mismatch (see stdout for details)

Standard Output

 + testVectorizedSolarSystem                                                         ... equation mismatch [time: 1]

==== Log /tmp/omc-rtest-unknown/openmodelica/cppruntime/testVectorizedSolarSystem.mos_temp4291/log-testVectorizedSolarSystem.mos
true
""
true
""
true
""
true
""
false
"Error: Failed to load package Modelica (default) using MODELICAPATH /var/lib/jenkins/workspace/OpenModelica_maintenance_v1.13/build/lib/omlibrary.
"
true
""
record SimulationResult
    resultFile = "",
    simulationOptions = "startTime = 0.0, stopTime = 1.0, numberOfIntervals = 500, tolerance = 1e-06, method = 'dassl', fileNamePrefix = 'VectorizedSolarSystemTest', options = '', outputFormat = 'mat', variableFilter = '.*', cflags = '', simflags = ''",
    messages = "Failed to build model: VectorizedSolarSystemTest"
end SimulationResult;
"[openmodelica/cppruntime/VectorizedSolarSystem.mo:2:3-2:31:writable] Error: Import Modelica.SIunits not found in scope <top>.
[openmodelica/cppruntime/VectorizedSolarSystem.mo:6:5-6:22:writable] Error: Class SI.Current not found in scope Terminal.
"


Equation mismatch: diff says:
--- /tmp/omc-rtest-unknown/openmodelica/cppruntime/testVectorizedSolarSystem.mos_temp4291/equations-expected2019-01-31 14:14:35.973591133 +0000
+++ /tmp/omc-rtest-unknown/openmodelica/cppruntime/testVectorizedSolarSystem.mos_temp4291/equations-got2019-01-31 14:14:36.133590422 +0000
@@ -4,244 +4,19 @@
 ""
 true
 ""
 true
 ""
+false
+"Error: Failed to load package Modelica (default) using MODELICAPATH /var/lib/jenkins/workspace/OpenModelica_maintenance_v1.13/build/lib/omlibrary.
+"
 true
 ""
-true
-""
-
-########################################
-dumpDAE
-########################################
-
-
-unspecified partition
-========================================
-
-Variables (7)
-========================================
-1: grid.terms.v:VARIABLE(flow=false unit = "V" )  type: Real[1000]  [1000]
-2: grid.terms.i:VARIABLE(flow=true unit = "A" )  type: Real[1000]  [1000]
-3: grid.P_grid:VARIABLE(flow=false unit = "W" )  type: Real 
-4: plant.on:VARIABLE(flow=false )  "Plant status" type: Boolean[1000]  [1000]
-5: plant.P_solar:VARIABLE(flow=false unit = "W" )  "Solar power" type: Real[1000]  [1000]
-6: plant.term.v:VARIABLE(flow=false unit = "V" )  type: Real[1000]  [1000]
-7: plant.term.i:VARIABLE(flow=true unit = "A" )  type: Real[1000]  [1000]
-
-
-Equations (7, 7)
-========================================
-1/1 (1000): plant.term.v = grid.terms.v   [dynamic |0|0|0|0|]
-2/1001 (1000): plant.term.i + grid.terms.i = 0.0   [dynamic |0|0|0|0|]
-3/2001 (1000): for $i in 1 : 1000 loop 
-plant[$i].term.v * plant[$i].term.i = if plant[$i].on then plant[$i].eta * plant[$i].P_solar else 0.0; end for;    [dynamic |0|0|0|0|]
-4/3001 (1000): for i in 1 : 1000 loop 
-grid.terms[i].v = grid.V; end for;    [dynamic |0|0|0|0|]
-5/4001 (1): 0.0 = grid.P_grid + grid.terms.v * grid.terms.i   [dynamic |0|0|0|0|]
-6/4002 (1000): plant.P_solar = /*Real[max(div(n * 100 - 100, 100) + 1, 0)]*/(100:100:100000)   [binding |0|0|0|0|]
-7/5002 (1000): plant.on = true   [binding |0|0|0|0|]
-
-
-Simple Equations (0, 0)
-========================================
-
-
-State Sets
-========================================
-
-
-no matching
-
-
-
-BackendDAEType: simulation
-
-
-Known variables only depending on parameters and constants - globalKnownVars (4)
-========================================
-1: n:PARAM(flow=false )  = 1000  type: Integer 
-2: plant.eta:PARAM(flow=false )  = 0.9  "Efficiency" type: Real[1000]  [1000]
-3: grid.n:PARAM(flow=false )  = 1000  type: Integer 
-4: grid.V:PARAM(flow=false unit = "V" )  = 1000.0  type: Real 
-
-
-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 (0)
-========================================
-
-
-Sub partitions (0)
-========================================
-
-
-
-########################################
-dumpDAE
-########################################
-
-
-unspecified partition
-========================================
-
-Variables (7)
-========================================
-1: grid.terms.v:VARIABLE(flow=false unit = "V" )  type: Real[1000]  [1000]
-2: grid.terms.i:VARIABLE(flow=true unit = "A" )  type: Real[1000]  [1000]
-3: grid.P_grid:VARIABLE(flow=false unit = "W" )  type: Real 
-4: plant.on:VARIABLE(flow=false )  "Plant status" type: Boolean[1000]  [1000]
-5: plant.P_solar:VARIABLE(flow=false unit = "W" )  "Solar power" type: Real[1000]  [1000]
-6: plant.term.v:VARIABLE(flow=false unit = "V" )  type: Real[1000]  [1000]
-7: plant.term.i:VARIABLE(flow=true unit = "A" )  type: Real[1000]  [1000]
-
-
-Equations (7, 7)
-========================================
-1/1 (1000): plant.term.v = grid.terms.v   [dynamic |0|0|0|0|]
-2/1001 (1000): plant.term.i + grid.terms.i = 0.0   [dynamic |0|0|0|0|]
-3/2001 (1000): for $i in 1 : 1000 loop 
-plant[$i].term.v * plant[$i].term.i = if plant[$i].on then plant[$i].eta * plant[$i].P_solar else 0.0; end for;    [dynamic |0|0|0|0|]
-4/3001 (1000): for i in 1 : 1000 loop 
-grid.terms[i].v = grid.V; end for;    [dynamic |0|0|0|0|]
-5/4001 (1): grid.P_grid = -grid.terms.v * grid.terms.i   [dynamic |0|0|0|0|]
-6/4002 (1000): plant.P_solar = 100.0:100.0:100000.0   [binding |0|0|0|0|]
-7/5002 (1000): plant.on = true   [binding |0|0|0|0|]
-
-
-Simple Equations (0, 0)
-========================================
-
-
-State Sets
-========================================
-
-
-Matching
-========================================
-7 variables and equations
-var 1 is solved in eqn 4
-var 2 is solved in eqn 2
-var 3 is solved in eqn 5
-var 4 is solved in eqn 7
-var 5 is solved in eqn 6
-var 6 is solved in eqn 1
-var 7 is solved in eqn 3
-
-
-StrongComponents
-========================================
-Array  {{7:4}}
-Array  {{6:5}}
-{4:1}
-Array  {{1:6}}
-{3:7}
-Array  {{2:2}}
-{5:3}
-
-
-
-BackendDAEType: simulation
-
-
-Known variables only depending on parameters and constants - globalKnownVars (4)
-========================================
-1: grid.V:PARAM(flow=false unit = "V" )  = 1000.0  type: Real 
-2: grid.n:PARAM(flow=false )  = 1000  type: Integer 
-3: plant.eta:PARAM(flow=false )  = 0.9  "Efficiency" type: Real[1000]  [1000]
-4: n:PARAM(flow=false )  = 1000  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 (0)
-========================================
-
-
-Sub partitions (0)
-========================================
-
-
 record SimulationResult
-resultFile = "VectorizedSolarSystemTest_res.mat",
+resultFile = "",
 simulationOptions = "startTime = 0.0, stopTime = 1.0, numberOfIntervals = 500, tolerance = 1e-06, method = 'dassl', fileNamePrefix = 'VectorizedSolarSystemTest', options = '', outputFormat = 'mat', variableFilter = '.*', cflags = '', simflags = ''",
-messages = ""
+messages = "Failed to build model: VectorizedSolarSystemTest"
 end SimulationResult;
-""
-45045000.0
+"[openmodelica/cppruntime/VectorizedSolarSystem.mo:2:3-2:31:writable] Error: Import Modelica.SIunits not found in scope <top>.
+[openmodelica/cppruntime/VectorizedSolarSystem.mo:6:5-6:22:writable] Error: Class SI.Current not found in scope Terminal.
+"
+

Equation mismatch: omc-diff says:
Failed 't' 'f'
Line 9: Text differs:
expected: true
got:      false

== 1 out of 1 tests failed [openmodelica/cppruntime/testVectorizedSolarSystem.mos_temp4291, time: 1]