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.007729/0.007729, allocations: 99.34 kB / 15.73 MB, free: 6.008 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.001672/0.001672, allocations: 197.3 kB / 16.67 MB, free: 5.934 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.352/1.352, allocations: 222.9 MB / 240.4 MB, free: 4.336 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.514/2.514, allocations: 390.2 MB / 0.6648 GB, free: 180 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001314/0.001314, allocations: 66.73 kB / 0.9504 GB, free: 5.922 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.246/0.2473, allocations: 140.4 MB / 1.087 GB, free: 2.004 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController): time 0.00649/0.2539, allocations: 4.674 MB / 1.092 GB, free: 13.3 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.1674/0.4213, allocations: 151 MB / 1.239 GB, free: 5.711 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001103/0.4225, allocations: 19.88 kB / 1.24 GB, free: 5.691 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.0008879/0.4234, allocations: 218.2 kB / 1.24 GB, free: 5.477 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.002075/0.4255, allocations: 0.5751 MB / 1.24 GB, free: 4.902 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.002157/0.4277, allocations: 0.8565 MB / 1.241 GB, free: 4.051 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.001639/0.4293, allocations: 1.355 MB / 1.242 GB, free: 2.688 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001008/0.4304, allocations: 0.6534 MB / 1.243 GB, free: 2.012 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007406/0.4311, allocations: 494.2 kB / 1.244 GB, free: 1.527 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007017/0.4318, allocations: 0.5171 MB / 1.244 GB, free: 1.008 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.0002306/0.4321, allocations: 124 kB / 1.244 GB, free: 0.8867 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009544/0.433, allocations: 0.4957 MB / 1.245 GB, free: 400 kB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.000298/0.4333, allocations: 307 kB / 1.245 GB, free: 92 kB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.0006359/0.434, allocations: 0.5713 MB / 1.246 GB, free: 15.51 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.002191/0.4362, allocations: 1.708 MB / 1.247 GB, free: 13.8 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.4362, allocations: 0 / 1.247 GB, free: 13.8 MB / 1.014 GB Notification: Performance of FrontEnd: time 3.857e-06/0.4362, allocations: 0 / 1.247 GB, free: 13.8 MB / 1.014 GB Notification: Performance of Transformations before backend: time 3.444e-05/0.4363, allocations: 7.875 kB / 1.247 GB, free: 13.79 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.003044/0.4393, allocations: 1.533 MB / 1.249 GB, free: 12.2 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 3.731e-05/0.4394, allocations: 8.031 kB / 1.249 GB, free: 12.2 MB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001911/0.4396, allocations: 139.5 kB / 1.249 GB, free: 12.05 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009932/0.4406, allocations: 200 kB / 1.249 GB, free: 11.86 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001316/0.4419, allocations: 0.8017 MB / 1.25 GB, free: 11.01 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.375e-05/0.442, allocations: 70 kB / 1.25 GB, free: 10.95 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001204/0.4421, allocations: 84 kB / 1.25 GB, free: 10.86 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001706/0.4438, allocations: 0.9379 MB / 1.251 GB, free: 9.883 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.338e-05/0.4438, allocations: 4 kB / 1.251 GB, free: 9.879 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.412e-05/0.4439, allocations: 39.92 kB / 1.251 GB, free: 9.84 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.24e-05/0.444, allocations: 20 kB / 1.251 GB, free: 9.82 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001912/0.4459, allocations: 1.136 MB / 1.252 GB, free: 8.684 MB / 1.014 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004232/0.4501, allocations: 2.566 MB / 1.255 GB, free: 6.051 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001641/0.4518, allocations: 0.8365 MB / 1.255 GB, free: 5.211 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005988/0.4524, allocations: 318.7 kB / 1.256 GB, free: 4.898 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001966/0.4526, allocations: 117.7 kB / 1.256 GB, free: 4.766 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009604/0.4536, allocations: 0.5034 MB / 1.256 GB, free: 4.242 MB / 1.014 GB Notification: Performance of pre-optimization done (n=82): time 2.865e-06/0.4536, allocations: 0 / 1.256 GB, free: 4.242 MB / 1.014 GB Notification: Performance of matching and sorting (n=82): time 0.003488/0.4571, allocations: 1.249 MB / 1.257 GB, free: 2.965 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001018/0.4572, allocations: 200.5 kB / 1.258 GB, free: 2.727 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008981/0.4581, allocations: 0.6843 MB / 1.258 GB, free: 2.039 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 8.032e-05/0.4582, allocations: 41.7 kB / 1.258 GB, free: 1.992 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003523/0.4586, allocations: 429 kB / 1.259 GB, free: 1.566 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002495/0.4588, allocations: 277.6 kB / 1.259 GB, free: 1.293 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002308/0.4591, allocations: 150.6 kB / 1.259 GB, free: 1.141 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.000117/0.4592, allocations: 330 kB / 1.26 GB, free: 0.8125 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000561/0.4598, allocations: 265.9 kB / 1.26 GB, free: 0.5547 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006632/0.4604, allocations: 374.5 kB / 1.26 GB, free: 160 kB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.5302/0.9907, allocations: 0.6071 MB / 1.261 GB, free: 173.3 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.722e-06/0.9907, allocations: 1.25 kB / 1.261 GB, free: 173.3 MB / 1.014 GB Notification: Performance of matching and sorting (n=90) (initialization): time 0.002189/0.9929, allocations: 0.8367 MB / 1.262 GB, free: 173.3 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 2.203e-05/0.993, allocations: 9.688 kB / 1.262 GB, free: 173.3 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.077e-06/0.993, allocations: 1.578 kB / 1.262 GB, free: 173.3 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006225/0.9936, allocations: 83.36 kB / 1.262 GB, free: 173.2 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007023/0.9943, allocations: 158.9 kB / 1.262 GB, free: 173.2 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001912/0.9962, allocations: 1.641 MB / 1.263 GB, free: 171.9 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007892/0.997, allocations: 94.39 kB / 1.263 GB, free: 171.9 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.57e-05/0.9971, allocations: 32.11 kB / 1.263 GB, free: 171.9 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.0004601/0.9976, allocations: 283 kB / 1.264 GB, free: 171.8 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001935/0.9978, allocations: 94.7 kB / 1.264 GB, free: 171.8 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002728/1.001, allocations: 1.098 MB / 1.265 GB, free: 171.6 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.456e-05/1.001, allocations: 9.766 kB / 1.265 GB, free: 171.6 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.3e-06/1.001, allocations: 8.656 kB / 1.265 GB, free: 171.6 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.482e-05/1.001, allocations: 5.281 kB / 1.265 GB, free: 171.6 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001318/1.002, allocations: 0.9595 MB / 1.266 GB, free: 171.1 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.429e-06/1.002, allocations: 0 / 1.266 GB, free: 171.1 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000691/1.003, allocations: 147.6 kB / 1.266 GB, free: 171.1 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004853/1.003, allocations: 72.14 kB / 1.266 GB, free: 171.1 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.856e-05/1.003, allocations: 25.56 kB / 1.266 GB, free: 171.1 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001719/1.005, allocations: 1.676 MB / 1.268 GB, free: 169.6 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/1.005, allocations: 4 kB / 1.268 GB, free: 169.6 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002284/1.007, allocations: 0.971 MB / 1.269 GB, free: 169.1 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004305/1.008, allocations: 288.2 kB / 1.269 GB, free: 168.9 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000144/1.008, allocations: 20.61 kB / 1.269 GB, free: 168.9 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006913/1.009, allocations: 67.41 kB / 1.269 GB, free: 168.9 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001699/1.009, allocations: 73.69 kB / 1.269 GB, free: 168.9 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.592e-05/1.009, allocations: 36.88 kB / 1.269 GB, free: 168.9 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.000718/1.01, allocations: 493.5 kB / 1.27 GB, free: 168.7 MB / 1.014 GB Notification: Performance of sort global known variables: time 1.7e-07/1.01, allocations: 0 / 1.27 GB, free: 168.7 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.001004/1.011, allocations: 319.8 kB / 1.27 GB, free: 168.6 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.003792/1.014, allocations: 2.041 MB / 1.272 GB, free: 167.6 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.002311/1.017, allocations: 0.8292 MB / 1.273 GB, free: 167.2 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 4.618e-06/1.017, allocations: 1.219 kB / 1.273 GB, free: 167.2 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.001184/1.018, allocations: 0.537 MB / 1.273 GB, free: 167 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001552/1.019, allocations: 308.8 kB / 1.274 GB, free: 166.9 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01335/1.033, allocations: 6.672 MB / 1.28 GB, free: 163.6 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007238/1.034, allocations: 1.047 MB / 1.281 GB, free: 162.9 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 0.001539/1.035, allocations: 266.7 kB / 1.281 GB, free: 162.8 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008139/1.036, allocations: 403.2 kB / 1.282 GB, free: 162.5 MB / 1.014 GB Notification: Performance of SimCode: time 8.42e-07/1.036, allocations: 0 / 1.282 GB, free: 162.5 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07152/1.108, allocations: 22.47 MB / 1.304 GB, free: 155 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.21/14.32, allocations: 20.28 kB / 1.304 GB, free: 155 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