Running: ./testmodel.py --libraries=/var/lib/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 (/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 7.0.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: translateModel(Buildings.Fluid.CHPs.BaseClasses.Validation.WaterFlowControl,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Fluid.CHPs.BaseClasses.Validation.WaterFlowControl") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.471/2.471, allocations: 253.1 MB / 260.4 MB, free: 7.469 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001744/0.001743, allocations: 189.2 kB / 319.6 MB, free: 3.289 MB / 250.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.023/2.023, allocations: 205.4 MB / 0.5704 GB, free: 15.04 MB / 426.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001318/0.001317, allocations: 95.33 kB / 0.6746 GB, free: 4.391 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.221e-05/1.237e-05, allocations: 8 kB / 0.7843 GB, free: 102.5 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2515/0.2515, allocations: 106.2 MB / 0.8881 GB, free: 12.16 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7183/0.9699, allocations: 145.7 MB / 1.03 GB, free: 8.82 MB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003516/0.9703, allocations: 87.45 kB / 1.03 GB, free: 8.777 MB / 0.6511 GB Notification: Performance of FrontEnd: time 0.1636/1.134, allocations: 39.65 MB / 1.069 GB, free: 7.953 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 0.0002733/1.134, allocations: 51.92 kB / 1.069 GB, free: 7.902 MB / 0.6823 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.005182/1.139, allocations: 1.876 MB / 1.071 GB, free: 6.098 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 5.217e-05/1.14, allocations: 12.03 kB / 1.071 GB, free: 6.086 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009145/1.14, allocations: 252.9 kB / 1.071 GB, free: 5.836 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004309/1.145, allocations: 1.309 MB / 1.073 GB, free: 4.75 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001859/1.145, allocations: 95.11 kB / 1.073 GB, free: 4.656 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003106/1.145, allocations: 87.98 kB / 1.073 GB, free: 4.57 MB / 0.6823 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003505/1.149, allocations: 0.907 MB / 1.074 GB, free: 4.023 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006626/1.156, allocations: 1.284 MB / 1.075 GB, free: 2.965 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.363e-05/1.156, allocations: 4 kB / 1.075 GB, free: 2.961 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003487/1.156, allocations: 11.92 kB / 1.075 GB, free: 2.949 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.369e-05/1.156, allocations: 32 kB / 1.075 GB, free: 2.918 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01794/1.174, allocations: 5.782 MB / 1.081 GB, free: 14.08 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003156/1.177, allocations: 0.705 MB / 1.081 GB, free: 13.61 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001426/1.179, allocations: 370.5 kB / 1.082 GB, free: 13.4 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000478/1.179, allocations: 117.9 kB / 1.082 GB, free: 13.27 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001853/1.181, allocations: 461.9 kB / 1.082 GB, free: 12.95 MB / 0.698 GB Notification: Performance of pre-optimization done (n=103): time 6.963e-06/1.181, allocations: 0 / 1.082 GB, free: 12.95 MB / 0.698 GB Notification: Performance of matching and sorting (n=103): time 0.003906/1.185, allocations: 0.8077 MB / 1.083 GB, free: 12.31 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001413/1.185, allocations: 119.4 kB / 1.083 GB, free: 12.17 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00639/1.192, allocations: 1.793 MB / 1.085 GB, free: 10.81 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 0.0005168/1.192, allocations: 59.12 kB / 1.085 GB, free: 10.76 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.001025/1.193, allocations: 0.5674 MB / 1.085 GB, free: 10.29 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005845/1.194, allocations: 249.3 kB / 1.086 GB, free: 10.09 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001608/1.194, allocations: 0 / 1.086 GB, free: 10.09 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0002564/1.194, allocations: 365.2 kB / 1.086 GB, free: 9.746 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001932/1.196, allocations: 419.5 kB / 1.086 GB, free: 9.504 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002474/1.199, allocations: 0.8013 MB / 1.087 GB, free: 8.738 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002034/1.201, allocations: 431.5 kB / 1.088 GB, free: 8.449 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.991e-05/1.201, allocations: 4 kB / 1.088 GB, free: 8.445 MB / 0.698 GB Notification: Performance of matching and sorting (n=197) (initialization): time 0.005925/1.207, allocations: 1.296 MB / 1.089 GB, free: 7.43 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 3.26e-05/1.207, allocations: 8 kB / 1.089 GB, free: 7.422 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.796e-05/1.207, allocations: 8 kB / 1.089 GB, free: 7.414 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.462e-05/1.207, allocations: 23.94 kB / 1.089 GB, free: 7.391 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002266/1.21, allocations: 204.1 kB / 1.089 GB, free: 7.203 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.814e-05/1.21, allocations: 27.92 kB / 1.089 GB, free: 7.176 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002712/1.212, allocations: 115.4 kB / 1.089 GB, free: 7.062 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005454/1.213, allocations: 75.84 kB / 1.089 GB, free: 7 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 () * 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.0007638/1.214, allocations: 218.5 kB / 1.089 GB, free: 6.789 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009438/1.215, allocations: 193.5 kB / 1.09 GB, free: 6.598 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005468/1.22, allocations: 0.9478 MB / 1.091 GB, free: 5.914 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.198e-05/1.22, allocations: 15.94 kB / 1.091 GB, free: 5.898 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.617e-05/1.22, allocations: 3.906 kB / 1.091 GB, free: 5.895 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.618e-05/1.22, allocations: 3.984 kB / 1.091 GB, free: 5.891 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01115/1.232, allocations: 2.445 MB / 1.093 GB, free: 4.102 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.269e-05/1.232, allocations: 0 / 1.093 GB, free: 4.102 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001063/1.233, allocations: 85.7 kB / 1.093 GB, free: 4.023 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.403e-05/1.233, allocations: 4 kB / 1.093 GB, free: 4.02 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000163/1.233, allocations: 19.53 kB / 1.093 GB, free: 4.004 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.106e-05/1.233, allocations: 4 kB / 1.093 GB, free: 4 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.964e-06/1.233, allocations: 7.906 kB / 1.093 GB, free: 3.992 MB / 0.698 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003736/1.237, allocations: 0.9913 MB / 1.094 GB, free: 3.121 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001136/1.238, allocations: 386.5 kB / 1.094 GB, free: 2.723 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004188/1.238, allocations: 19.98 kB / 1.094 GB, free: 2.703 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001109/1.24, allocations: 59.86 kB / 1.095 GB, free: 2.645 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005988/1.24, allocations: 156.8 kB / 1.095 GB, free: 2.488 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001436/1.24, allocations: 43.98 kB / 1.095 GB, free: 2.445 MB / 0.698 GB Notification: Performance of sort global known variables: time 0.00326/1.244, allocations: 1.226 MB / 1.096 GB, free: 1.195 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.002266/1.246, allocations: 295.7 kB / 1.096 GB, free: 0.9062 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) * 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.001479/1.247, allocations: 466.6 kB / 1.097 GB, free: 0.5273 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.003161/1.251, allocations: 1.016 MB / 1.098 GB, free: 15.52 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 7.073e-06/1.251, allocations: 0 / 1.098 GB, free: 15.52 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.001307/1.252, allocations: 459.9 kB / 1.098 GB, free: 15.07 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00247/1.255, allocations: 256.3 kB / 1.098 GB, free: 14.82 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009095/1.264, allocations: 2.476 MB / 1.101 GB, free: 12.29 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002861/1.267, allocations: 1.668 MB / 1.102 GB, free: 10.58 MB / 0.7136 GB Notification: Performance of SimCode: time 1.593e-06/1.267, allocations: 0 / 1.102 GB, free: 10.58 MB / 0.7136 GB Notification: Performance of Templates: time 0.06193/1.329, allocations: 16.65 MB / 1.119 GB, free: 10.03 MB / 0.7292 GB