Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_3.0.0_Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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: translateModel(Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown") translateModel(Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001368/0.001368, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.00162/0.00162, allocations: 192.1 kB / 16.25 MB, free: 6.617 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.425/1.425, allocations: 222.9 MB / 239.9 MB, free: 4.531 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.797/2.797, allocations: 472.6 MB / 0.7448 GB, free: 4.852 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001149/0.001149, allocations: 65.75 kB / 0.9115 GB, free: 33.5 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.326/0.3272, allocations: 159.9 MB / 1.068 GB, free: 10.8 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown): time 0.00496/0.3322, allocations: 2.884 MB / 1.071 GB, free: 7.898 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.002942/0.3352, allocations: 1.666 MB / 1.072 GB, free: 6.227 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002343/0.3354, allocations: 11.94 kB / 1.072 GB, free: 6.215 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.001002/0.3364, allocations: 291.3 kB / 1.072 GB, free: 5.93 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0004625/0.3369, allocations: 155.4 kB / 1.073 GB, free: 5.777 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009677/0.3379, allocations: 325.2 kB / 1.073 GB, free: 5.461 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.000847/0.3388, allocations: 0.7456 MB / 1.074 GB, free: 4.715 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006624/0.3394, allocations: 483.8 kB / 1.074 GB, free: 4.238 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003241/0.3398, allocations: 263.1 kB / 1.074 GB, free: 3.98 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003486/0.3401, allocations: 298.6 kB / 1.075 GB, free: 3.688 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 8.378e-05/0.3402, allocations: 55.94 kB / 1.075 GB, free: 3.633 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002356/0.3405, allocations: 104 kB / 1.075 GB, free: 3.531 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.000201/0.3407, allocations: 203.3 kB / 1.075 GB, free: 3.332 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.000336/0.341, allocations: 326 kB / 1.075 GB, free: 3.012 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0008461/0.3419, allocations: 0.7708 MB / 1.076 GB, free: 2.238 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.3419, allocations: 0 / 1.076 GB, free: 2.238 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.593e-06/0.3419, allocations: 0 / 1.076 GB, free: 2.238 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.049e-05/0.3419, allocations: 4 kB / 1.076 GB, free: 2.234 MB / 0.8262 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 127 * Number of variables: 127 Notification: Performance of Generate backend data structure: time 0.001621/0.3435, allocations: 1.031 MB / 1.077 GB, free: 1.145 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.451e-05/0.3436, allocations: 12.03 kB / 1.077 GB, free: 1.133 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001554/0.3437, allocations: 91.89 kB / 1.077 GB, free: 1.043 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006833/0.3444, allocations: 0.4889 MB / 1.078 GB, free: 0.5117 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.158e-05/0.3445, allocations: 45.67 kB / 1.078 GB, free: 480 kB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.382e-05/0.3446, allocations: 67.92 kB / 1.078 GB, free: 412 kB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001097/0.3457, allocations: 0.613 MB / 1.078 GB, free: 15.73 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.142e-05/0.3457, allocations: 4 kB / 1.078 GB, free: 15.72 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.404e-05/0.3458, allocations: 23.98 kB / 1.078 GB, free: 15.7 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.41e-05/0.3458, allocations: 12 kB / 1.078 GB, free: 15.69 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000717/0.3465, allocations: 383.5 kB / 1.079 GB, free: 15.31 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002887/0.3494, allocations: 2.576 MB / 1.081 GB, free: 12.62 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006863/0.3501, allocations: 383.5 kB / 1.082 GB, free: 12.2 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002709/0.3504, allocations: 181 kB / 1.082 GB, free: 12 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 3.735e-05/0.3505, allocations: 7.859 kB / 1.082 GB, free: 12 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005194/0.351, allocations: 297.3 kB / 1.082 GB, free: 11.68 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=44): time 2.635e-06/0.351, allocations: 0 / 1.082 GB, free: 11.68 MB / 0.8419 GB Notification: Performance of matching and sorting (n=44): time 0.001059/0.3521, allocations: 0.4993 MB / 1.083 GB, free: 11.17 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000137/0.3522, allocations: 229.6 kB / 1.083 GB, free: 10.9 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007128/0.3529, allocations: 0.6157 MB / 1.083 GB, free: 10.27 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 5.209e-05/0.353, allocations: 45.7 kB / 1.083 GB, free: 10.22 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002785/0.3533, allocations: 344.6 kB / 1.084 GB, free: 9.879 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001203/0.3534, allocations: 110.6 kB / 1.084 GB, free: 9.77 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001967/0.3536, allocations: 150.2 kB / 1.084 GB, free: 9.613 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001782/0.3538, allocations: 382.8 kB / 1.084 GB, free: 9.23 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002661/0.3541, allocations: 141.2 kB / 1.084 GB, free: 9.094 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003955/0.3545, allocations: 354.9 kB / 1.085 GB, free: 8.66 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000571/0.3551, allocations: 429 kB / 1.085 GB, free: 8.16 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.466e-06/0.3551, allocations: 0 / 1.085 GB, free: 8.16 MB / 0.8419 GB Notification: Performance of matching and sorting (n=82) (initialization): time 0.0008346/0.3559, allocations: 0.5384 MB / 1.086 GB, free: 7.613 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 2.226e-05/0.3559, allocations: 12.12 kB / 1.086 GB, free: 7.602 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.252e-05/0.356, allocations: 4 kB / 1.086 GB, free: 7.598 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.36e-05/0.356, allocations: 15.94 kB / 1.086 GB, free: 7.582 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002545/0.3563, allocations: 75.78 kB / 1.086 GB, free: 7.508 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.819e-05/0.3563, allocations: 23.8 kB / 1.086 GB, free: 7.484 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002512/0.3565, allocations: 59.38 kB / 1.086 GB, free: 7.426 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.445e-05/0.3566, allocations: 31.98 kB / 1.086 GB, free: 7.395 MB / 0.8419 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 26 * Number of states: 0 () * Number of discrete variables: 64 ($PRE.transition2.enableFire,$PRE.transition1.enableFire,$PRE.transition4.enableFire,$PRE.transition3.enableFire,$PRE.transition5.enableFire,$PRE.runSig.combiTimeTable.nextTimeEvent,$whenCondition1,transition2.t_start,$PRE.transition2.t_start,transition1.t_start,$PRE.transition1.t_start,transition4.t_start,$PRE.transition4.t_start,transition3.t_start,$PRE.transition3.t_start,transition5.t_start,$PRE.transition5.t_start,transition5.condition,stateGraphRoot.resume,stateGraphRoot.suspend,transition5.enableFire,timer.entryTime,$PRE.timer.entryTime,timer.passed,$PRE.timer.passed,transition3.enableFire,off.oldActive,$PRE.off.oldActive,off.newActive,$PRE.off.newActive,off.localActive,$PRE.off.localActive,off.active,transition4.enableFire,transition1.enableFire,transition2.enableFire,stateGraphRoot.activeSteps,norm.oldActive,$PRE.norm.oldActive,norm.newActive,$PRE.norm.newActive,norm.outPort[2].available,norm.inPort[2].occupied,norm.localActive,$PRE.norm.localActive,norm.active,cooDow.active,cooDow.oldActive,$PRE.cooDow.oldActive,cooDow.newActive,$PRE.cooDow.newActive,cooDow.outPort[2].available,cooDow.inPort[2].occupied,cooDow.localActive,$PRE.cooDow.localActive,and1.y,runSig.combiTimeTable.nextTimeEventScaled,$PRE.runSig.combiTimeTable.nextTimeEventScaled,runSig.combiTimeTable.nextTimeEvent,runSig.y,actMod,$whenCondition4,$whenCondition3,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (82): * Single equations (assignments): 82 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000343/0.357, allocations: 269.6 kB / 1.086 GB, free: 7.121 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.768e-05/0.3571, allocations: 63.25 kB / 1.086 GB, free: 7.059 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007099/0.3578, allocations: 411.2 kB / 1.087 GB, free: 6.648 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.057e-05/0.3578, allocations: 11.98 kB / 1.087 GB, free: 6.637 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.446e-06/0.3578, allocations: 3.938 kB / 1.087 GB, free: 6.633 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.235e-06/0.3578, allocations: 4 kB / 1.087 GB, free: 6.629 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001455/0.3593, allocations: 1.075 MB / 1.088 GB, free: 5.492 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.642e-06/0.3593, allocations: 3.938 kB / 1.088 GB, free: 5.488 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001032/0.3594, allocations: 27.92 kB / 1.088 GB, free: 5.461 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.677e-06/0.3594, allocations: 0 / 1.088 GB, free: 5.461 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.116e-05/0.3595, allocations: 15.98 kB / 1.088 GB, free: 5.445 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.809e-06/0.3595, allocations: 4 kB / 1.088 GB, free: 5.441 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.445e-06/0.3595, allocations: 0 / 1.088 GB, free: 5.441 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006948/0.3602, allocations: 0.533 MB / 1.088 GB, free: 4.871 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001101/0.3603, allocations: 136.1 kB / 1.088 GB, free: 4.719 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.147e-05/0.3604, allocations: 19.98 kB / 1.088 GB, free: 4.699 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001713/0.3606, allocations: 19.98 kB / 1.088 GB, free: 4.68 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001191/0.3607, allocations: 43.89 kB / 1.089 GB, free: 4.637 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.768e-05/0.3607, allocations: 23.98 kB / 1.089 GB, free: 4.613 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0004348/0.3612, allocations: 398.8 kB / 1.089 GB, free: 4.227 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3612, allocations: 0 / 1.089 GB, free: 4.227 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0005689/0.3617, allocations: 139.6 kB / 1.089 GB, free: 4.09 MB / 0.8419 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 42 (transition5.t_start,transition3.t_start,transition4.t_start,transition1.t_start,transition2.t_start,off.active,norm.active,cooDow.active,cooDow.localActive,$cse1,$cse2,$cse3,$cse4,$cse5,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition1,actMod,runSig.y,runSig.combiTimeTable.nextTimeEvent,runSig.combiTimeTable.nextTimeEventScaled,and1.y,cooDow.inPort[2].occupied,cooDow.outPort[2].available,cooDow.newActive,cooDow.oldActive,norm.localActive,norm.inPort[2].occupied,norm.outPort[2].available,norm.newActive,norm.oldActive,stateGraphRoot.activeSteps,transition2.enableFire,transition1.enableFire,transition4.enableFire,off.localActive,off.newActive,off.oldActive,transition3.enableFire,timer.passed,timer.entryTime) * Number of discrete states: 11 (runSig.combiTimeTable.nextTimeEvent,cooDow.newActive,timer.entryTime,norm.newActive,off.newActive,runSig.combiTimeTable.nextTimeEventScaled,transition2.t_start,transition1.t_start,transition4.t_start,transition3.t_start,transition5.t_start) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (49): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 12 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00126/0.363, allocations: 455.2 kB / 1.089 GB, free: 3.801 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0009256/0.364, allocations: 446.5 kB / 1.09 GB, free: 3.371 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 4.799e-06/0.364, allocations: 4.125 kB / 1.09 GB, free: 3.367 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0003264/0.3643, allocations: 195.7 kB / 1.09 GB, free: 3.176 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006264/0.3649, allocations: 105.2 kB / 1.09 GB, free: 3.078 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002223/0.3672, allocations: 1.346 MB / 1.092 GB, free: 1.688 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005976/0.3678, allocations: 0.9299 MB / 1.092 GB, free: 0.7344 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0002643/0.3681, allocations: 80.36 kB / 1.093 GB, free: 0.6562 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001271/0.3682, allocations: 51.42 kB / 1.093 GB, free: 0.6055 MB / 0.8419 GB Notification: Performance of SimCode: time 8.31e-07/0.3682, allocations: 0 / 1.093 GB, free: 0.6055 MB / 0.8419 GB Notification: Performance of Templates: time 0.01191/0.3801, allocations: 5.505 MB / 1.098 GB, free: 11.14 MB / 0.8575 GB make -j1 -f Buildings_3.0.0_Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown.makefile (rm -f Buildings_3.0.0_Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown.pipe ; mkfifo Buildings_3.0.0_Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown.pipe ; head -c 1048576 < Buildings_3.0.0_Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown.pipe >> ../files/Buildings_3.0.0_Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown.sim & ./Buildings_3.0.0_Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_3.0.0_Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown.pipe 2>&1)