Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_3.0.0_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.OnOff.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.HeatPumps.ModularReversible.Controls.Safety.Examples.OnOff,tolerance=1e-08,outputFormat="empty",numberOfIntervals=14400,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.OnOff") translateModel(Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.OnOff,tolerance=1e-08,outputFormat="empty",numberOfIntervals=14400,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.OnOff") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000847/0.0008468, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.005099/0.005099, allocations: 168.9 kB / 16.26 MB, free: 6.648 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.393/1.393, allocations: 223.3 MB / 240.3 MB, free: 5.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.846/2.846, allocations: 473.4 MB / 0.7469 GB, free: 6.094 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.000336/0.000336, allocations: 15.81 kB / 0.9158 GB, free: 33.14 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3408/0.3412, allocations: 162.2 MB / 1.074 GB, free: 7.551 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.OnOff): time 0.003228/0.3445, allocations: 2.044 MB / 1.076 GB, free: 5.496 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001531/0.346, allocations: 0.7051 MB / 1.077 GB, free: 4.785 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002735/0.3463, allocations: 4 kB / 1.077 GB, free: 4.781 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001869/0.3465, allocations: 31.66 kB / 1.077 GB, free: 4.75 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0001591/0.3467, allocations: 23.78 kB / 1.077 GB, free: 4.727 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004726/0.3472, allocations: 139.9 kB / 1.077 GB, free: 4.59 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0005105/0.3477, allocations: 360.2 kB / 1.077 GB, free: 4.234 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004678/0.3482, allocations: 225.1 kB / 1.078 GB, free: 4.016 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000197/0.3484, allocations: 87.52 kB / 1.078 GB, free: 3.93 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001962/0.3486, allocations: 115.3 kB / 1.078 GB, free: 3.816 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 5.673e-05/0.3487, allocations: 16 kB / 1.078 GB, free: 3.801 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 3.926e-05/0.3487, allocations: 8 kB / 1.078 GB, free: 3.793 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 7.833e-05/0.3488, allocations: 47.77 kB / 1.078 GB, free: 3.746 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.000173/0.349, allocations: 164.8 kB / 1.078 GB, free: 3.578 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0004434/0.3494, allocations: 474.6 kB / 1.078 GB, free: 3.113 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.711e-06/0.3495, allocations: 0 / 1.078 GB, free: 3.113 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.204e-06/0.3495, allocations: 3.938 kB / 1.078 GB, free: 3.109 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.085e-05/0.3495, allocations: 0 / 1.078 GB, free: 3.109 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: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.001049/0.3505, allocations: 0.6088 MB / 1.079 GB, free: 2.441 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.36e-05/0.3506, allocations: 12.03 kB / 1.079 GB, free: 2.43 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001086/0.3507, allocations: 40.55 kB / 1.079 GB, free: 2.391 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000394/0.3511, allocations: 292.4 kB / 1.079 GB, free: 2.062 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.373e-05/0.3512, allocations: 29.03 kB / 1.079 GB, free: 2.035 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.63e-05/0.3512, allocations: 44.36 kB / 1.079 GB, free: 1.992 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006974/0.3519, allocations: 374.2 kB / 1.08 GB, free: 1.613 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.306e-05/0.352, allocations: 4 kB / 1.08 GB, free: 1.609 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.342e-05/0.352, allocations: 19.97 kB / 1.08 GB, free: 1.59 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.291e-05/0.352, allocations: 8 kB / 1.08 GB, free: 1.582 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005115/0.3526, allocations: 246.4 kB / 1.08 GB, free: 1.336 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001683/0.3542, allocations: 0.9401 MB / 1.081 GB, free: 352 kB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006732/0.3549, allocations: 342.8 kB / 1.081 GB, free: 0 / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002866/0.3552, allocations: 176.8 kB / 1.081 GB, free: 15.82 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 2.9e-05/0.3553, allocations: 7.938 kB / 1.082 GB, free: 15.82 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004651/0.3557, allocations: 241.2 kB / 1.082 GB, free: 15.57 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=33): time 2.174e-06/0.3558, allocations: 0 / 1.082 GB, free: 15.57 MB / 0.8419 GB Notification: Performance of matching and sorting (n=33): time 0.0008989/0.3567, allocations: 474.8 kB / 1.082 GB, free: 15.1 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.521e-05/0.3568, allocations: 114.8 kB / 1.082 GB, free: 14.96 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002368/0.357, allocations: 223.6 kB / 1.083 GB, free: 14.73 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 4.313e-05/0.3571, allocations: 41.7 kB / 1.083 GB, free: 14.68 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001338/0.3572, allocations: 168.5 kB / 1.083 GB, free: 14.52 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 8.247e-05/0.3573, allocations: 82.89 kB / 1.083 GB, free: 14.43 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.496e-05/0.3574, allocations: 57.69 kB / 1.083 GB, free: 14.37 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001369/0.3575, allocations: 338.8 kB / 1.083 GB, free: 14.03 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002101/0.3577, allocations: 104.8 kB / 1.083 GB, free: 13.93 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002505/0.358, allocations: 166.1 kB / 1.083 GB, free: 13.74 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003684/0.3584, allocations: 212 kB / 1.084 GB, free: 13.52 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.3584, allocations: 0 / 1.084 GB, free: 13.52 MB / 0.8419 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0005597/0.359, allocations: 316.8 kB / 1.084 GB, free: 13.2 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.897e-05/0.359, allocations: 4 kB / 1.084 GB, free: 13.2 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.593e-06/0.359, allocations: 0 / 1.084 GB, free: 13.2 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.838e-05/0.359, allocations: 4 kB / 1.084 GB, free: 13.2 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001685/0.3592, allocations: 40.05 kB / 1.084 GB, free: 13.16 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.081e-05/0.3592, allocations: 7.938 kB / 1.084 GB, free: 13.15 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000195/0.3594, allocations: 47.75 kB / 1.084 GB, free: 13.1 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.69e-05/0.3595, allocations: 15.98 kB / 1.084 GB, free: 13.09 MB / 0.8419 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 40 (onOffCtr.onOffFuzLog.devTurOff,$PRE.onOffCtr.onOffFuzLog.devTurOff,onOffCtr.onOffFuzLog.devNorOpe,$PRE.onOffCtr.onOffFuzLog.devNorOpe,onOffCtr.onOffFuzLog.devRunMin,$PRE.onOffCtr.onOffFuzLog.devRunMin,onOffCtr.onOffFuzLog.staOn,onOffCtr.onOffFuzLog.staOff,onOffCtr.onOffFuzLog.turOff,$PRE.onOffCtr.onOffFuzLog.turOff,onOffCtr.onOffFuzLog.turOn,$PRE.onOffCtr.onOffFuzLog.turOn,onOffCtr.andIsAblToTurOn.y,onOffCtr.runTimCtr.runTim.entryTime,$PRE.onOffCtr.runTimCtr.runTim.entryTime,onOffCtr.notIsOn.y,onOffCtr.locTimCtr.runTim.entryTime,$PRE.onOffCtr.locTimCtr.runTim.entryTime,onOffCtr.locTimCtr.y,onOffCtr.cycRatBou.triAdd.y,$PRE.onOffCtr.cycRatBou.triAdd.y,onOffCtr.cycRatBou.y,onOffCtr.preOnOff.u,$PRE.onOffCtr.preOnOff.u,onOffCtr.isAblToTurOff.y,onOffCtr.ySetOn.y,$PRE.onOffCtr.ySetOn.y,hys.y,$PRE.hys.y,$whenCondition1,$whenCondition2,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,onOffCtr.cycRatBou.intConPluOne.y,onOffCtr.cycRatBou.triAdd.local_set,onOffCtr.cycRatBou.triAdd.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (47): * Single equations (assignments): 47 * 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.0002091/0.3597, allocations: 179 kB / 1.084 GB, free: 12.9 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.924e-05/0.3597, allocations: 27.72 kB / 1.084 GB, free: 12.87 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.153e-05/0.3598, allocations: 30.64 kB / 1.084 GB, free: 12.84 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.909e-06/0.3598, allocations: 4 kB / 1.084 GB, free: 12.84 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.867e-06/0.3598, allocations: 3.938 kB / 1.084 GB, free: 12.83 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.439e-06/0.3599, allocations: 3.938 kB / 1.084 GB, free: 12.83 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001247/0.3611, allocations: 0.8738 MB / 1.085 GB, free: 11.9 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.911e-06/0.3611, allocations: 7.938 kB / 1.085 GB, free: 11.89 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001057/0.3612, allocations: 15.98 kB / 1.085 GB, free: 11.88 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.597e-06/0.3613, allocations: 0 / 1.085 GB, free: 11.88 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.793e-05/0.3613, allocations: 15.92 kB / 1.085 GB, free: 11.86 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.844e-06/0.3613, allocations: 0 / 1.085 GB, free: 11.86 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.614e-06/0.3613, allocations: 4 kB / 1.085 GB, free: 11.86 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000642/0.362, allocations: 466.9 kB / 1.086 GB, free: 11.38 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 7.065e-05/0.362, allocations: 104.8 kB / 1.086 GB, free: 11.26 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.083e-05/0.3621, allocations: 11.98 kB / 1.086 GB, free: 11.25 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002037/0.3623, allocations: 35.97 kB / 1.086 GB, free: 11.21 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001124/0.3624, allocations: 43.94 kB / 1.086 GB, free: 11.17 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.342e-05/0.3625, allocations: 19.98 kB / 1.086 GB, free: 11.15 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0001333/0.3626, allocations: 145.5 kB / 1.086 GB, free: 11.01 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3626, allocations: 0 / 1.086 GB, free: 11.01 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0003472/0.363, allocations: 83.67 kB / 1.086 GB, free: 10.93 MB / 0.8419 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 26 (onOffCtr.onOffFuzLog.staOn,onOffCtr.onOffFuzLog.staOff,onOffCtr.notIsOn.y,$whenCondition3,$whenCondition4,$whenCondition5,$whenCondition6,$whenCondition7,$whenCondition8,$whenCondition2,$whenCondition1,hys.y,onOffCtr.ySetOn.y,onOffCtr.isAblToTurOff.y,onOffCtr.preOnOff.u,onOffCtr.cycRatBou.y,onOffCtr.cycRatBou.triAdd.y,onOffCtr.locTimCtr.y,onOffCtr.locTimCtr.runTim.entryTime,onOffCtr.runTimCtr.runTim.entryTime,onOffCtr.andIsAblToTurOn.y,onOffCtr.onOffFuzLog.turOn,onOffCtr.onOffFuzLog.turOff,onOffCtr.onOffFuzLog.devRunMin,onOffCtr.onOffFuzLog.devTurOff,onOffCtr.onOffFuzLog.devNorOpe) * Number of discrete states: 6 (onOffCtr.preOnOff.u,onOffCtr.ySetOn.y,onOffCtr.onOffFuzLog.turOn,onOffCtr.onOffFuzLog.turOff,onOffCtr.cycRatBou.triAdd.y,hys.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * 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.00018/0.3631, allocations: 128.2 kB / 1.086 GB, free: 10.8 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0005529/0.3637, allocations: 291.7 kB / 1.086 GB, free: 10.51 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.886e-06/0.3637, allocations: 0 / 1.086 GB, free: 10.51 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0003409/0.3641, allocations: 224.5 kB / 1.087 GB, free: 10.29 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003112/0.3644, allocations: 31.91 kB / 1.087 GB, free: 10.26 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001094/0.3655, allocations: 0.6316 MB / 1.087 GB, free: 9.609 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003597/0.3659, allocations: 0.7765 MB / 1.088 GB, free: 8.809 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0001137/0.366, allocations: 30.28 kB / 1.088 GB, free: 8.781 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.698e-05/0.3661, allocations: 27.42 kB / 1.088 GB, free: 8.754 MB / 0.8419 GB Notification: Performance of SimCode: time 2.71e-07/0.3661, allocations: 0 / 1.088 GB, free: 8.754 MB / 0.8419 GB Notification: Performance of Templates: time 0.006687/0.3728, allocations: 2.569 MB / 1.091 GB, free: 6.195 MB / 0.8419 GB make -j1 -f Buildings_3.0.0_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.OnOff.makefile (rm -f Buildings_3.0.0_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.OnOff.pipe ; mkfifo Buildings_3.0.0_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.OnOff.pipe ; head -c 1048576 < Buildings_3.0.0_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.OnOff.pipe >> ../files/Buildings_3.0.0_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.OnOff.sim & ./Buildings_3.0.0_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.OnOff -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_3.0.0_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.OnOff.pipe 2>&1)