Failed
tests / testsuite-clang / openmodelica_cppruntime.testVectorizedSolarSystem.mos (from (result.xml))
Stacktrace
Output mismatch (see stdout for details)
Standard Output
+ testVectorizedSolarSystem ... equation mismatch [time: 0] ==== Log /tmp/omc-rtest-unknown/openmodelica/cppruntime/testVectorizedSolarSystem.mos_temp3208/log-testVectorizedSolarSystem.mos true "" true "" true "" true "" false "Error: Failed to load package Modelica (default) using MODELICAPATH /var/lib/jenkins/ws/OpenModelica_maintenance_v1.14_2/build/bin/../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_temp3208/equations-expected2019-10-27 11:24:20.077296226 +0000 +++ /tmp/omc-rtest-unknown/openmodelica/cppruntime/testVectorizedSolarSystem.mos_temp3208/equations-got2019-10-27 11:24:20.313297067 +0000 @@ -4,132 +4,19 @@ "" true "" true "" +false +"Error: Failed to load package Modelica (default) using MODELICAPATH /var/lib/jenkins/ws/OpenModelica_maintenance_v1.14_2/build/bin/../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(unit = "W" ) type: Real -4: plant.on:VARIABLE() "Plant status" type: Boolean[1000] [1000] -5: plant.P_solar:VARIABLE(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 = 100.0:100.0:100000.0 [binding |0|0|0|0|] -7/5002 (1000): plant.on = true [binding |0|0|0|0|] - - -no matching - - - -BackendDAEType: simulation - - -Known variables only depending on parameters and constants - globalKnownVars (4) -======================================== -1: n:PARAM(final = true ) = 1000 type: Integer -2: plant.eta:PARAM() = 0.9 "Efficiency" type: Real[1000] [1000] -3: grid.n:PARAM(final = true ) = 1000 type: Integer -4: grid.V:PARAM(unit = "V" ) = 1000.0 type: Real - - - -######################################## -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(unit = "W" ) type: Real -4: plant.on:VARIABLE() "Plant status" type: Boolean[1000] [1000] -5: plant.P_solar:VARIABLE(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|] - - -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(unit = "V" ) = 1000.0 type: Real -2: grid.n:PARAM(final = true ) = 1000 type: Integer -3: plant.eta:PARAM() = 0.9 "Efficiency" type: Real[1000] [1000] -4: n:PARAM(final = true ) = 1000 type: Integer - - 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_temp3208, time: 0]