Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Fluid.CHPs.BaseClasses.Validation.WaterFlowControl.conf.json Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.CHPs.BaseClasses.Validation.WaterFlowControl,fileNamePrefix="Buildings_7_0_0_Buildings_Fluid_CHPs_BaseClasses_Validation_WaterFlowControl",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.409/2.409, allocations: 251 MB / 265.9 MB, free: 11.7 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002174/0.002174, allocations: 174.7 kB / 325.5 MB, free: 2.918 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.38/2.38, allocations: 205.4 MB / 0.5764 GB, free: 20.81 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001218/0.001217, allocations: 91.89 kB / 0.6809 GB, free: 13.69 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0005226/0.0005228, allocations: 14.84 kB / 0.795 GB, free: 135.4 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2248/0.2253, allocations: 106.3 MB / 0.8988 GB, free: 65.52 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2593/0.4846, allocations: 145.5 MB / 1.041 GB, free: 15.86 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004054/0.4851, allocations: 107.9 kB / 1.041 GB, free: 15.75 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 0.7835/1.269, allocations: 40.7 MB / 1.081 GB, free: 145.2 MB / 0.698 GB Notification: Performance of FrontEnd: time 2.936e-06/1.269, allocations: 4 kB / 1.081 GB, free: 145.2 MB / 0.698 GB Notification: Performance of Transformations before backend: time 0.0003043/1.269, allocations: 50.91 kB / 1.081 GB, free: 145.1 MB / 0.698 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 329 * Number of variables: 329 Notification: Performance of Generate backend data structure: time 0.008097/1.277, allocations: 2.215 MB / 1.083 GB, free: 143.6 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 5.592e-05/1.277, allocations: 9.469 kB / 1.083 GB, free: 143.6 MB / 0.698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000914/1.278, allocations: 194.2 kB / 1.083 GB, free: 143.5 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001096/1.279, allocations: 251.6 kB / 1.083 GB, free: 143.4 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005284/1.285, allocations: 1.302 MB / 1.085 GB, free: 142.7 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003231/1.285, allocations: 146.7 kB / 1.085 GB, free: 142.7 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006463/1.286, allocations: 145.3 kB / 1.085 GB, free: 142.7 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004701/1.29, allocations: 1.504 MB / 1.086 GB, free: 142.1 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.474e-05/1.29, allocations: 0 / 1.086 GB, free: 142.1 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001954/1.291, allocations: 56.94 kB / 1.086 GB, free: 142.1 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.418e-05/1.291, allocations: 34.22 kB / 1.086 GB, free: 142.1 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00383/1.295, allocations: 1.066 MB / 1.088 GB, free: 141.7 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01223/1.307, allocations: 6.03 MB / 1.093 GB, free: 136.6 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002664/1.31, allocations: 0.832 MB / 1.094 GB, free: 136.2 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003277/1.31, allocations: 124.8 kB / 1.094 GB, free: 136.1 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00167/1.312, allocations: 0.534 MB / 1.095 GB, free: 135.7 MB / 0.698 GB Notification: Performance of pre-optimization done (n=103): time 4.589e-06/1.312, allocations: 4 kB / 1.095 GB, free: 135.7 MB / 0.698 GB Notification: Performance of matching and sorting (n=103): time 0.004228/1.316, allocations: 1.291 MB / 1.096 GB, free: 135.1 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.033e-05/1.316, allocations: 124.8 kB / 1.096 GB, free: 135 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004872/1.321, allocations: 1.914 MB / 1.098 GB, free: 133.9 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 0.0004335/1.321, allocations: 84.94 kB / 1.098 GB, free: 133.9 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.001176/1.323, allocations: 0.9265 MB / 1.099 GB, free: 133.1 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 0.000503/1.323, allocations: 256.1 kB / 1.099 GB, free: 132.9 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001776/1.323, allocations: 35.91 kB / 1.099 GB, free: 132.8 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.000125/1.323, allocations: 361.6 kB / 1.1 GB, free: 132.5 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001618/1.325, allocations: 479.8 kB / 1.1 GB, free: 132.2 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001785/1.327, allocations: 0.874 MB / 1.101 GB, free: 131.4 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001554/1.328, allocations: 482.2 kB / 1.101 GB, free: 130.9 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.15e-05/1.328, allocations: 4 kB / 1.101 GB, free: 130.9 MB / 0.698 GB Notification: Performance of matching and sorting (n=197) (initialization): time 0.004582/1.333, allocations: 1.498 MB / 1.103 GB, free: 129.4 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 3.427e-05/1.333, allocations: 12 kB / 1.103 GB, free: 129.4 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.331e-05/1.333, allocations: 8 kB / 1.103 GB, free: 129.4 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.366e-05/1.333, allocations: 20.78 kB / 1.103 GB, free: 129.4 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001413/1.335, allocations: 211.6 kB / 1.103 GB, free: 129.2 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.733e-05/1.335, allocations: 27.86 kB / 1.103 GB, free: 129.2 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001876/1.337, allocations: 151.2 kB / 1.103 GB, free: 129 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002359/1.337, allocations: 79.92 kB / 1.103 GB, free: 128.9 MB / 0.698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 46 * Number of states: 0 () * Number of discrete variables: 127 ($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,$PRE.con.timer.yAcc,con.timer.yAcc,$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,$whenCondition5,$whenCondition3,$whenCondition4,$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.u1,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.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,$PRE.con.timer.reset_internal,con.timer.reset_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (197): * Single equations (assignments): 197 * 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.001763/1.339, allocations: 0.5913 MB / 1.104 GB, free: 128.3 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007217/1.339, allocations: 193.5 kB / 1.104 GB, free: 128.1 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003383/1.343, allocations: 1.13 MB / 1.105 GB, free: 127 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.62e-05/1.343, allocations: 12 kB / 1.105 GB, free: 127 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.789e-06/1.343, allocations: 0 / 1.105 GB, free: 127 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.629e-05/1.343, allocations: 7.922 kB / 1.105 GB, free: 127 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007153/1.35, allocations: 2.79 MB / 1.108 GB, free: 124.1 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.378e-06/1.35, allocations: 0 / 1.108 GB, free: 124.1 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005906/1.351, allocations: 87.83 kB / 1.108 GB, free: 124 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.327e-05/1.351, allocations: 4 kB / 1.108 GB, free: 124 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.485e-05/1.351, allocations: 27.97 kB / 1.108 GB, free: 124 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.468e-06/1.351, allocations: 4 kB / 1.108 GB, free: 124 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.935e-06/1.351, allocations: 3.984 kB / 1.108 GB, free: 124 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003139/1.354, allocations: 1.159 MB / 1.109 GB, free: 122.8 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001137/1.355, allocations: 398.3 kB / 1.11 GB, free: 122.4 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004034/1.356, allocations: 32 kB / 1.11 GB, free: 122.4 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001018/1.357, allocations: 71.94 kB / 1.11 GB, free: 122.3 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004991/1.357, allocations: 156.8 kB / 1.11 GB, free: 122.1 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001285/1.357, allocations: 43.97 kB / 1.11 GB, free: 122.1 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.003175/1.361, allocations: 1.348 MB / 1.111 GB, free: 120.7 MB / 0.698 GB Notification: Performance of sort global known variables: time 7.62e-07/1.361, allocations: 0 / 1.111 GB, free: 120.7 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.002212/1.363, allocations: 331.8 kB / 1.112 GB, free: 120.4 MB / 0.698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 90 (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,$whenCondition5,$whenCondition3,$whenCondition4,$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.u1,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.entryTime,con.timer.yAcc,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.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,con.timer.y,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 (118): * Single equations (assignments): 101 * 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.005145/1.368, allocations: 2.174 MB / 1.114 GB, free: 118.4 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.003535/1.372, allocations: 1.145 MB / 1.115 GB, free: 117.2 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 6.372e-06/1.372, allocations: 0 / 1.115 GB, free: 117.2 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.001443/1.373, allocations: 0.5092 MB / 1.115 GB, free: 116.7 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002369/1.376, allocations: 274.4 kB / 1.116 GB, free: 116.5 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0131/1.389, allocations: 11.64 MB / 1.127 GB, free: 104.5 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001483/1.39, allocations: 1.523 MB / 1.128 GB, free: 103 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0018/1.392, allocations: 298.1 kB / 1.129 GB, free: 102.7 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002085/1.394, allocations: 0.8234 MB / 1.13 GB, free: 101.9 MB / 0.698 GB Notification: Performance of SimCode: time 1.523e-06/1.394, allocations: 0 / 1.13 GB, free: 101.9 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09556/1.49, allocations: 36.61 MB / 1.165 GB, free: 65.5 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001713/1.49, allocations: 236.8 kB / 1.166 GB, free: 65.25 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.274/5.764, allocations: 0 / 1.166 GB, free: 65.25 MB / 0.698 GB