Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_master_Buildings.Fluid.CHPs.BaseClasses.Validation.WaterFlowControl.conf.json Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 9.0.0 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo) Running command: translateModel(Buildings.Fluid.CHPs.BaseClasses.Validation.WaterFlowControl,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_master_Buildings.Fluid.CHPs.BaseClasses.Validation.WaterFlowControl") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo): time 4.901/4.901, allocations: 0.5623 GB / 0.5775 GB, free: 3.352 MB / 474.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002564/0.002564, allocations: 363 kB / 0.6446 GB, free: 185.6 MB / 474.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 4.105/4.105, allocations: 410.7 MB / 1.113 GB, free: 147.9 MB / 0.5886 GB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001853/0.001853, allocations: 183.6 kB / 1.226 GB, free: 35.98 MB / 0.5886 GB Notification: Performance of FrontEnd - loaded program: time 0.0007605/0.0007609, allocations: 16 kB / 1.349 GB, free: 121.7 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2321/0.2329, allocations: 115.3 MB / 1.461 GB, free: 6.621 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9934/1.226, allocations: 151.4 MB / 1.609 GB, free: 6.582 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003862/1.227, allocations: 101.9 kB / 1.609 GB, free: 6.527 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.1761/1.403, allocations: 40.81 MB / 1.649 GB, free: 3.984 MB / 0.7136 GB Notification: Performance of FrontEnd: time 2.425e-06/1.403, allocations: 0 / 1.649 GB, free: 3.984 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 0.0002567/1.403, allocations: 55.92 kB / 1.649 GB, free: 3.93 MB / 0.7136 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 326 * Number of variables: 326 Notification: Performance of Generate backend data structure: time 0.007083/1.41, allocations: 2.22 MB / 1.651 GB, free: 1.797 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 5.119e-05/1.41, allocations: 8.031 kB / 1.651 GB, free: 1.789 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009521/1.411, allocations: 256.8 kB / 1.652 GB, free: 1.535 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00431/1.416, allocations: 1.321 MB / 1.653 GB, free: 452 kB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002446/1.416, allocations: 146 kB / 1.653 GB, free: 348 kB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003888/1.416, allocations: 146.4 kB / 1.653 GB, free: 248 kB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004465/1.421, allocations: 1.51 MB / 1.655 GB, free: 15.07 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.115e-05/1.421, allocations: 7.938 kB / 1.655 GB, free: 15.06 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001883/1.421, allocations: 50 kB / 1.655 GB, free: 15.05 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.73e-05/1.421, allocations: 32 kB / 1.655 GB, free: 15.02 MB / 0.7292 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003726/1.425, allocations: 1.072 MB / 1.656 GB, free: 14.3 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01187/1.437, allocations: 6.037 MB / 1.662 GB, free: 9.285 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002745/1.44, allocations: 0.8397 MB / 1.663 GB, free: 8.734 MB / 0.7292 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00124/1.441, allocations: 433.8 kB / 1.663 GB, free: 8.469 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003337/1.441, allocations: 113.4 kB / 1.663 GB, free: 8.34 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001662/1.443, allocations: 0.544 MB / 1.664 GB, free: 7.938 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=102): time 4.218e-06/1.443, allocations: 0 / 1.664 GB, free: 7.938 MB / 0.7292 GB Notification: Performance of matching and sorting (n=102): time 0.00442/1.447, allocations: 1.306 MB / 1.665 GB, free: 6.969 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001199/1.448, allocations: 123.3 kB / 1.665 GB, free: 6.824 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004918/1.453, allocations: 2.133 MB / 1.667 GB, free: 5.203 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 0.0003876/1.453, allocations: 83.56 kB / 1.667 GB, free: 5.148 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 0.001351/1.454, allocations: 0.9255 MB / 1.668 GB, free: 4.656 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005452/1.455, allocations: 265.7 kB / 1.668 GB, free: 4.441 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001449/1.455, allocations: 29.94 kB / 1.668 GB, free: 4.434 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 0.0001932/1.455, allocations: 358.6 kB / 1.669 GB, free: 4.102 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001627/1.457, allocations: 475.2 kB / 1.669 GB, free: 3.805 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002067/1.459, allocations: 0.8791 MB / 1.67 GB, free: 2.969 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001647/1.461, allocations: 475.5 kB / 1.67 GB, free: 2.676 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.526e-05/1.461, allocations: 4 kB / 1.67 GB, free: 2.672 MB / 0.7292 GB Notification: Performance of matching and sorting (n=194) (initialization): time 0.005866/1.467, allocations: 1.494 MB / 1.672 GB, free: 1.547 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 4.655e-05/1.467, allocations: 12.16 kB / 1.672 GB, free: 1.535 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.163e-05/1.467, allocations: 12 kB / 1.672 GB, free: 1.523 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.15e-05/1.467, allocations: 16 kB / 1.672 GB, free: 1.508 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001859/1.469, allocations: 205.7 kB / 1.672 GB, free: 1.316 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.743e-05/1.469, allocations: 27.92 kB / 1.672 GB, free: 1.289 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002231/1.471, allocations: 147.9 kB / 1.672 GB, free: 1.168 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003096/1.471, allocations: 74.55 kB / 1.672 GB, free: 1.109 MB / 0.7292 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 45 * Number of states: 0 () * Number of discrete variables: 124 ($PRE.con.transition3.enableFire,$PRE.con.transition5.enableFire,$PRE.con.transition9.enableFire,$PRE.con.transition7.enableFire,$PRE.con.transition10.enableFire,$PRE.con.transition1.enableFire,$PRE.con.transition2.enableFire,$PRE.con.transition8.enableFire,$PRE.con.transition6.enableFire,$PRE.con.transition4.enableFire,$whenCondition8,$PRE.PEle.tab.nextTimeEvent,$whenCondition7,$PRE.avaSig.combiTimeTable.nextTimeEvent,$whenCondition6,$PRE.runSig.combiTimeTable.nextTimeEvent,$whenCondition1,$PRE.mWat_flow.tab.nextTimeEvent,stateGraphRoot.resume,stateGraphRoot.suspend,$whenCondition3,$whenCondition4,$whenCondition5,$whenCondition2,conWat.opeMod,conWat.offStaBy.y,stateGraphRoot.activeSteps,mWat_flow.tab.nextTimeEvent,$PRE.mWat_flow.tab.nextTimeEventScaled,mWat_flow.tab.nextTimeEventScaled,con.runSig,$PRE.con.staBy.localActive,con.staBy.localActive,con.staBy.outPort[2].available,$PRE.con.staBy.newActive,con.staBy.newActive,$PRE.con.staBy.oldActive,con.staBy.oldActive,con.staBy.active,$PRE.con.pumOn.localActive,con.pumOn.localActive,con.pumOn.outPort[2].available,$PRE.con.pumOn.newActive,con.pumOn.newActive,$PRE.con.pumOn.oldActive,con.pumOn.oldActive,con.pumOn.active,$PRE.con.warUp.localActive,con.warUp.localActive,con.warUp.inPort[2].occupied,con.warUp.outPort[2].available,$PRE.con.warUp.newActive,con.warUp.newActive,$PRE.con.warUp.oldActive,con.warUp.oldActive,con.warUp.active,$PRE.con.cooDow.localActive,con.cooDow.localActive,con.cooDow.inPort[2].occupied,con.cooDow.outPort[2].available,$PRE.con.cooDow.newActive,con.cooDow.newActive,$PRE.con.cooDow.oldActive,con.cooDow.oldActive,con.cooDow.active,$PRE.con.hys.y,con.hys.y,con.and1.u2,con.and1.y,con.transition3.enableFire,con.transition5.enableFire,con.transition9.enableFire,con.transition7.enableFire,con.and3.y,con.transition10.enableFire,con.and4.u2,con.and4.y,con.assWatMas.assMes.u,$PRE.con.assWatMas.hys.y,con.assWatMas.hys.y,con.transition1.enableFire,con.transition2.enableFire,$PRE.con.nor.localActive,con.nor.localActive,$PRE.con.nor.newActive,con.nor.newActive,$PRE.con.nor.oldActive,con.nor.oldActive,con.nor.active,con.transition8.enableFire,$PRE.con.warUpCtr.hysTem.y,con.warUpCtr.hysTem.y,$PRE.con.warUpCtr.hysPow.y,con.warUpCtr.hysPow.y,$PRE.con.warUpCtr.pre.u,con.warUpCtr.pre.u,con.transition6.enableFire,$PRE.con.plaOff.localActive,con.plaOff.localActive,con.plaOff.inPort[2].occupied,con.plaOff.inPort[3].occupied,$PRE.con.plaOff.newActive,con.plaOff.newActive,$PRE.con.plaOff.oldActive,con.plaOff.oldActive,con.plaOff.active,con.transition4.enableFire,con.transition4.fire,$PRE.con.transition4.t_start,con.transition4.t_start,$PRE.con.timer.passed,con.timer.passed,$PRE.con.timer.entryTime,con.timer.entryTime,runSig.combiTimeTable.nextTimeEvent,$PRE.runSig.combiTimeTable.nextTimeEventScaled,runSig.combiTimeTable.nextTimeEventScaled,avaSig.y,avaSig.combiTimeTable.nextTimeEvent,$PRE.avaSig.combiTimeTable.nextTimeEventScaled,avaSig.combiTimeTable.nextTimeEventScaled,PEle.tab.nextTimeEvent,$PRE.PEle.tab.nextTimeEventScaled,PEle.tab.nextTimeEventScaled) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (194): * Single equations (assignments): 194 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002092/1.473, allocations: 0.5967 MB / 1.673 GB, free: 0.6797 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007645/1.474, allocations: 189.6 kB / 1.673 GB, free: 0.4922 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004773/1.479, allocations: 1.133 MB / 1.674 GB, free: 15.7 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.315e-05/1.479, allocations: 12 kB / 1.674 GB, free: 15.69 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.625e-05/1.479, allocations: 3.984 kB / 1.674 GB, free: 15.68 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.05e-05/1.479, allocations: 7.922 kB / 1.674 GB, free: 15.68 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01019/1.489, allocations: 2.801 MB / 1.677 GB, free: 13.63 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.159e-05/1.489, allocations: 0 / 1.677 GB, free: 13.63 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008963/1.49, allocations: 87.19 kB / 1.677 GB, free: 13.55 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.27e-05/1.49, allocations: 4 kB / 1.677 GB, free: 13.55 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001383/1.491, allocations: 26.67 kB / 1.677 GB, free: 13.54 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.149e-05/1.491, allocations: 4 kB / 1.677 GB, free: 13.54 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.256e-06/1.491, allocations: 4 kB / 1.677 GB, free: 13.53 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004324/1.495, allocations: 1.17 MB / 1.678 GB, free: 12.61 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001225/1.496, allocations: 395.8 kB / 1.679 GB, free: 12.27 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004927/1.497, allocations: 36.88 kB / 1.679 GB, free: 12.25 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001412/1.498, allocations: 69.75 kB / 1.679 GB, free: 12.2 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000748/1.499, allocations: 165.4 kB / 1.679 GB, free: 12.07 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002063/1.499, allocations: 40.86 kB / 1.679 GB, free: 12.04 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 0.005101/1.504, allocations: 1.36 MB / 1.68 GB, free: 10.67 MB / 0.7448 GB Notification: Performance of sort global known variables: time 1.062e-06/1.504, allocations: 0 / 1.68 GB, free: 10.67 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.00294/1.507, allocations: 343.8 kB / 1.681 GB, free: 10.33 MB / 0.7448 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 89 (con.transition4.enableFire,con.plaOff.active,con.nor.active,con.cooDow.active,con.cooDow.localActive,con.warUp.active,con.pumOn.active,con.staBy.active,$cse4,$cse5,$cse6,$cse7,$cse8,$cse9,$cse10,$cse11,$cse12,$cse13,$cse14,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition5,$whenCondition2,$whenCondition1,conWat.opeMod,conWat.offStaBy.y,stateGraphRoot.activeSteps,mWat_flow.tab.nextTimeEvent,mWat_flow.tab.nextTimeEventScaled,con.runSig,con.staBy.localActive,con.staBy.outPort[2].available,con.staBy.newActive,con.staBy.oldActive,con.pumOn.localActive,con.pumOn.outPort[2].available,con.pumOn.newActive,con.pumOn.oldActive,con.warUp.localActive,con.warUp.inPort[2].occupied,con.warUp.outPort[2].available,con.warUp.newActive,con.warUp.oldActive,con.cooDow.inPort[2].occupied,con.cooDow.outPort[2].available,con.cooDow.newActive,con.cooDow.oldActive,con.hys.y,con.and1.u2,con.and1.y,con.transition3.enableFire,con.transition5.enableFire,con.transition9.enableFire,con.transition7.enableFire,con.and3.y,con.transition10.enableFire,con.and4.u2,con.and4.y,con.assWatMas.assMes.u,con.assWatMas.hys.y,con.transition1.enableFire,con.transition2.enableFire,con.nor.localActive,con.nor.newActive,con.nor.oldActive,con.transition8.enableFire,con.warUpCtr.hysTem.y,con.warUpCtr.hysPow.y,con.warUpCtr.pre.u,con.transition6.enableFire,con.plaOff.localActive,con.plaOff.inPort[2].occupied,con.plaOff.inPort[3].occupied,con.plaOff.newActive,con.plaOff.oldActive,con.transition4.fire,con.transition4.t_start,con.timer.passed,con.timer.entryTime,runSig.combiTimeTable.nextTimeEvent,runSig.combiTimeTable.nextTimeEventScaled,avaSig.y,avaSig.combiTimeTable.nextTimeEvent,avaSig.combiTimeTable.nextTimeEventScaled,PEle.tab.nextTimeEvent,PEle.tab.nextTimeEventScaled) * Number of discrete states: 20 (PEle.tab.nextTimeEvent,avaSig.combiTimeTable.nextTimeEvent,runSig.combiTimeTable.nextTimeEvent,mWat_flow.tab.nextTimeEvent,con.staBy.newActive,con.pumOn.newActive,con.warUp.newActive,con.cooDow.newActive,con.timer.entryTime,con.nor.newActive,con.warUpCtr.pre.u,con.plaOff.newActive,con.warUpCtr.hysTem.y,PEle.tab.nextTimeEventScaled,con.warUpCtr.hysPow.y,avaSig.combiTimeTable.nextTimeEventScaled,runSig.combiTimeTable.nextTimeEventScaled,mWat_flow.tab.nextTimeEventScaled,con.assWatMas.hys.y,con.hys.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (117): * Single equations (assignments): 100 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 17 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002344/1.51, allocations: 0.5652 MB / 1.681 GB, free: 9.922 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.005028/1.515, allocations: 1.14 MB / 1.682 GB, free: 8.789 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 6.251e-06/1.515, allocations: 1.375 kB / 1.682 GB, free: 8.789 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 0.002122/1.517, allocations: 0.5092 MB / 1.683 GB, free: 8.277 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003227/1.52, allocations: 306.4 kB / 1.683 GB, free: 7.973 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01144/1.532, allocations: 3.716 MB / 1.687 GB, free: 4.23 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002553/1.534, allocations: 1.52 MB / 1.688 GB, free: 2.676 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 0.002275/1.537, allocations: 306.1 kB / 1.688 GB, free: 2.371 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001094/1.538, allocations: 143.4 kB / 1.689 GB, free: 2.23 MB / 0.7448 GB Notification: Performance of SimCode: time 1.252e-06/1.538, allocations: 0 / 1.689 GB, free: 2.23 MB / 0.7448 GB Notification: Performance of Templates: time 0.06347/1.601, allocations: 18.38 MB / 1.707 GB, free: 15.97 MB / 0.7761 GB