Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController,fileNamePrefix="Buildings_9_Buildings_Fluid_SolarCollectors_Controls_Examples_SolarPumpController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController,fileNamePrefix="Buildings_9_Buildings_Fluid_SolarCollectors_Controls_Examples_SolarPumpController",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008084/0.008084, allocations: 104.7 kB / 15.74 MB, free: 6.484 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001758/0.001758, allocations: 193.5 kB / 16.67 MB, free: 6.375 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.441/1.441, allocations: 222.9 MB / 240.4 MB, free: 4.293 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.429/2.429, allocations: 390.2 MB / 0.6648 GB, free: 184 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001391/0.001391, allocations: 70.73 kB / 0.9504 GB, free: 5.922 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3227/0.3241, allocations: 140.4 MB / 1.087 GB, free: 1.969 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController): time 0.0079/0.332, allocations: 4.674 MB / 1.092 GB, free: 13.27 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.1804/0.5125, allocations: 151 MB / 1.239 GB, free: 5.68 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001032/0.5135, allocations: 19.88 kB / 1.24 GB, free: 5.66 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.001037/0.5146, allocations: 215 kB / 1.24 GB, free: 5.449 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.003139/0.5178, allocations: 0.5687 MB / 1.24 GB, free: 4.883 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.003019/0.5208, allocations: 0.8521 MB / 1.241 GB, free: 4.035 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.002488/0.5233, allocations: 1.355 MB / 1.242 GB, free: 2.672 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001253/0.5246, allocations: 0.6418 MB / 1.243 GB, free: 2.008 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0008598/0.5255, allocations: 494.2 kB / 1.244 GB, free: 1.523 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0009347/0.5264, allocations: 0.5134 MB / 1.244 GB, free: 1.008 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.0003999/0.5268, allocations: 123.9 kB / 1.244 GB, free: 0.8867 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001205/0.5281, allocations: 0.4996 MB / 1.245 GB, free: 396 kB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.0003625/0.5284, allocations: 314.9 kB / 1.245 GB, free: 80 kB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.0007034/0.5291, allocations: 0.5712 MB / 1.245 GB, free: 15.5 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.002098/0.5312, allocations: 1.698 MB / 1.247 GB, free: 13.8 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 4.94e-06/0.5313, allocations: 0 / 1.247 GB, free: 13.8 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.593e-06/0.5313, allocations: 0 / 1.247 GB, free: 13.8 MB / 1.014 GB Notification: Performance of Transformations before backend: time 1.742e-05/0.5313, allocations: 0 / 1.247 GB, free: 13.8 MB / 1.014 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 217 * Number of variables: 217 Notification: Performance of Generate backend data structure: time 0.002577/0.5339, allocations: 1.504 MB / 1.249 GB, free: 12.24 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 4.637e-05/0.5339, allocations: 8.031 kB / 1.249 GB, free: 12.23 MB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001726/0.5341, allocations: 139.5 kB / 1.249 GB, free: 12.09 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009204/0.535, allocations: 195.3 kB / 1.249 GB, free: 11.9 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001212/0.5363, allocations: 0.8088 MB / 1.25 GB, free: 11.05 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.177e-05/0.5363, allocations: 58 kB / 1.25 GB, free: 10.99 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001104/0.5365, allocations: 84 kB / 1.25 GB, free: 10.91 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001537/0.538, allocations: 0.9456 MB / 1.251 GB, free: 9.922 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.094e-05/0.538, allocations: 0 / 1.251 GB, free: 9.922 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.098e-05/0.5381, allocations: 36 kB / 1.251 GB, free: 9.887 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.028e-05/0.5382, allocations: 20 kB / 1.251 GB, free: 9.867 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001832/0.54, allocations: 1.136 MB / 1.252 GB, free: 8.73 MB / 1.014 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003896/0.5439, allocations: 2.558 MB / 1.254 GB, free: 6.102 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001524/0.5454, allocations: 0.8266 MB / 1.255 GB, free: 5.273 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005664/0.546, allocations: 314.7 kB / 1.256 GB, free: 4.965 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000188/0.5462, allocations: 117.7 kB / 1.256 GB, free: 4.832 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008653/0.5471, allocations: 0.5108 MB / 1.256 GB, free: 4.301 MB / 1.014 GB Notification: Performance of pre-optimization done (n=82): time 2.244e-06/0.5471, allocations: 0 / 1.256 GB, free: 4.301 MB / 1.014 GB Notification: Performance of matching and sorting (n=82): time 0.003243/0.5503, allocations: 1.244 MB / 1.257 GB, free: 3.027 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001148/0.5505, allocations: 196.5 kB / 1.258 GB, free: 2.793 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008463/0.5513, allocations: 0.6842 MB / 1.258 GB, free: 2.105 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 6.679e-05/0.5514, allocations: 41.7 kB / 1.258 GB, free: 2.059 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003378/0.5517, allocations: 424.3 kB / 1.259 GB, free: 1.637 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002134/0.552, allocations: 264.2 kB / 1.259 GB, free: 1.375 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002169/0.5522, allocations: 146.6 kB / 1.259 GB, free: 1.227 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001344/0.5523, allocations: 341.9 kB / 1.259 GB, free: 0.8867 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00051/0.5528, allocations: 253.9 kB / 1.26 GB, free: 0.6406 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000651/0.5535, allocations: 374.5 kB / 1.26 GB, free: 248 kB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.5827/1.136, allocations: 0.6057 MB / 1.261 GB, free: 173.5 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.282e-06/1.136, allocations: 0 / 1.261 GB, free: 173.5 MB / 1.014 GB Notification: Performance of matching and sorting (n=90) (initialization): time 0.00237/1.139, allocations: 0.8404 MB / 1.261 GB, free: 173.4 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 2.662e-05/1.139, allocations: 9.438 kB / 1.261 GB, free: 173.4 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.128e-05/1.139, allocations: 5.109 kB / 1.261 GB, free: 173.4 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006393/1.139, allocations: 85.42 kB / 1.262 GB, free: 173.4 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007076/1.14, allocations: 153.3 kB / 1.262 GB, free: 173.4 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002044/1.142, allocations: 1.65 MB / 1.263 GB, free: 172.1 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008029/1.143, allocations: 88.22 kB / 1.263 GB, free: 172.1 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.723e-05/1.143, allocations: 30.83 kB / 1.263 GB, free: 172.1 MB / 1.014 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 15 (weaDat.decAng.tNext,$PRE.weaDat.decAng.tNext,weaDat.eqnTim.tNext,$PRE.weaDat.eqnTim.tNext,weaDat.conTim.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTimMin.tNext,weaDat.locTim.tNext,$PRE.weaDat.locTim.tNext,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (88): * Single equations (assignments): 87 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.000608/1.144, allocations: 285.6 kB / 1.264 GB, free: 171.9 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002032/1.144, allocations: 90.22 kB / 1.264 GB, free: 171.9 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002842/1.147, allocations: 1.098 MB / 1.265 GB, free: 171.8 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.439e-05/1.147, allocations: 10.59 kB / 1.265 GB, free: 171.8 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.888e-06/1.147, allocations: 9.719 kB / 1.265 GB, free: 171.8 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.88e-05/1.147, allocations: 5.047 kB / 1.265 GB, free: 171.8 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001651/1.148, allocations: 0.9549 MB / 1.266 GB, free: 171.3 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.12e-06/1.148, allocations: 1.953 kB / 1.266 GB, free: 171.3 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006914/1.149, allocations: 148.7 kB / 1.266 GB, free: 171.3 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000486/1.15, allocations: 76.14 kB / 1.266 GB, free: 171.3 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.947e-05/1.15, allocations: 25.98 kB / 1.266 GB, free: 171.3 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001785/1.151, allocations: 1.668 MB / 1.268 GB, free: 169.8 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/1.151, allocations: 0.6875 kB / 1.268 GB, free: 169.8 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00246/1.154, allocations: 0.9701 MB / 1.269 GB, free: 169.3 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005177/1.154, allocations: 286.9 kB / 1.269 GB, free: 169.1 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002012/1.155, allocations: 20.72 kB / 1.269 GB, free: 169.1 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007395/1.155, allocations: 64.94 kB / 1.269 GB, free: 169.1 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002077/1.156, allocations: 73.2 kB / 1.269 GB, free: 169.1 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001069/1.156, allocations: 42.12 kB / 1.269 GB, free: 169.1 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.0009272/1.157, allocations: 493 kB / 1.27 GB, free: 168.9 MB / 1.014 GB Notification: Performance of sort global known variables: time 2.61e-07/1.157, allocations: 0 / 1.27 GB, free: 168.9 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.001258/1.158, allocations: 310.3 kB / 1.27 GB, free: 168.8 MB / 1.014 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,weaDat.locTim.tNext,weaDat.conTimMin.tNext,weaDat.conTim.tNext,weaDat.eqnTim.tNext,weaDat.decAng.tNext) * Number of discrete states: 5 (weaDat.locTim.tNext,weaDat.conTimMin.tNext,weaDat.conTim.tNext,weaDat.eqnTim.tNext,weaDat.decAng.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (93): * Single equations (assignments): 87 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.004365/1.162, allocations: 2.038 MB / 1.272 GB, free: 167.8 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.002327/1.165, allocations: 0.8292 MB / 1.273 GB, free: 167.4 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 6.212e-06/1.165, allocations: 0.5938 kB / 1.273 GB, free: 167.4 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.001291/1.166, allocations: 0.5354 MB / 1.273 GB, free: 167.2 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001837/1.168, allocations: 310.8 kB / 1.273 GB, free: 167.1 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01531/1.183, allocations: 6.628 MB / 1.28 GB, free: 163.8 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008974/1.184, allocations: 1.044 MB / 1.281 GB, free: 163.1 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 0.00112/1.185, allocations: 256 kB / 1.281 GB, free: 163 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006838/1.186, allocations: 407.2 kB / 1.282 GB, free: 162.8 MB / 1.014 GB Notification: Performance of SimCode: time 9.22e-07/1.186, allocations: 1.094 kB / 1.282 GB, free: 162.8 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06317/1.249, allocations: 22.48 MB / 1.304 GB, free: 155.3 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.7/13.95, allocations: 20.23 kB / 1.304 GB, free: 155.3 MB / 1.014 GB (rm -f Buildings_9_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController.pipe ; mkfifo Buildings_9_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController.pipe >> ../files/Buildings_9_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController_res.csv --start-time 0 --stop-time 86400 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 34.56 Buildings_9_Buildings_Fluid_SolarCollectors_Controls_Examples_SolarPumpController.fmu > Buildings_9_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_SolarCollectors_Controls_Examples_SolarPumpController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Warning: Resultfile and Reference have different end time points! Reffile[502]=86400.000000 File[27]=1002.240000 Error: Could not read variable pumCon.weaBus.HDirNor in file Buildings_9_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController_res.csv. Warning: Get data of variable pumCon.weaBus.HDirNor from file Buildings_9_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController_res.csv failed! " Variables in the reference:time,pumCon.y,pumCon.criSol.G_TC,pumCon.weaBus.HDirNor Variables in the result:time,pumCon.add.y,pumCon.criSol.G_TC,pumCon.y,sine.y,weaDat.weaBus.HDifHor