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.001565/0.001565, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001855/0.001856, allocations: 195 kB / 16.14 MB, free: 6.703 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.39/1.39, allocations: 222.9 MB / 239.8 MB, free: 4.609 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.748/2.748, allocations: 472.6 MB / 0.7447 GB, free: 4.969 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001256/0.001257, allocations: 68.23 kB / 0.9114 GB, free: 33.57 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3524/0.3536, allocations: 159.9 MB / 1.068 GB, free: 10.84 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.OnOff): time 0.004123/0.3578, allocations: 2.432 MB / 1.07 GB, free: 8.398 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001371/0.3592, allocations: 0.7012 MB / 1.071 GB, free: 7.691 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000269/0.3595, allocations: 11.94 kB / 1.071 GB, free: 7.68 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0002214/0.3597, allocations: 23.72 kB / 1.071 GB, free: 7.656 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0001389/0.3599, allocations: 27.78 kB / 1.071 GB, free: 7.629 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004259/0.3603, allocations: 139.8 kB / 1.071 GB, free: 7.492 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0004396/0.3608, allocations: 360.3 kB / 1.071 GB, free: 7.137 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004036/0.3612, allocations: 229.2 kB / 1.071 GB, free: 6.914 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001919/0.3614, allocations: 127.4 kB / 1.071 GB, free: 6.789 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001718/0.3616, allocations: 143.3 kB / 1.072 GB, free: 6.648 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 5.063e-05/0.3617, allocations: 20 kB / 1.072 GB, free: 6.629 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 4.562e-05/0.3617, allocations: 20 kB / 1.072 GB, free: 6.609 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 6.76e-05/0.3618, allocations: 75.69 kB / 1.072 GB, free: 6.535 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001477/0.3619, allocations: 151.1 kB / 1.072 GB, free: 6.387 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0004151/0.3624, allocations: 490.7 kB / 1.072 GB, free: 5.906 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 6.763e-06/0.3624, allocations: 0 / 1.072 GB, free: 5.906 MB / 0.8262 GB Notification: Performance of FrontEnd: time 7.21e-07/0.3624, allocations: 7.938 kB / 1.072 GB, free: 5.898 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.299e-05/0.3624, allocations: 0 / 1.072 GB, free: 5.898 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.001175/0.3636, allocations: 0.6673 MB / 1.073 GB, free: 5.172 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.883e-05/0.3636, allocations: 12.03 kB / 1.073 GB, free: 5.16 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.597e-05/0.3637, allocations: 40.55 kB / 1.073 GB, free: 5.121 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003788/0.3641, allocations: 300.2 kB / 1.073 GB, free: 4.785 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.206e-05/0.3642, allocations: 37.02 kB / 1.073 GB, free: 4.75 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.512e-05/0.3642, allocations: 40.36 kB / 1.073 GB, free: 4.711 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006607/0.3649, allocations: 378.1 kB / 1.074 GB, free: 4.328 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.044e-05/0.3649, allocations: 3.938 kB / 1.074 GB, free: 4.324 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.143e-05/0.365, allocations: 15.98 kB / 1.074 GB, free: 4.309 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.308e-05/0.365, allocations: 8 kB / 1.074 GB, free: 4.301 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005047/0.3655, allocations: 234.5 kB / 1.074 GB, free: 4.066 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001575/0.3671, allocations: 0.9322 MB / 1.075 GB, free: 3.082 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006705/0.3678, allocations: 326.8 kB / 1.075 GB, free: 2.754 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002512/0.368, allocations: 173.5 kB / 1.075 GB, free: 2.582 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.972e-05/0.3681, allocations: 7.938 kB / 1.075 GB, free: 2.574 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004698/0.3685, allocations: 237.4 kB / 1.076 GB, free: 2.328 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=33): time 2.124e-06/0.3686, allocations: 0 / 1.076 GB, free: 2.328 MB / 0.8262 GB Notification: Performance of matching and sorting (n=33): time 0.0009196/0.3695, allocations: 466.8 kB / 1.076 GB, free: 1.867 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.652e-05/0.3696, allocations: 118.7 kB / 1.076 GB, free: 1.727 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002129/0.3698, allocations: 219.6 kB / 1.076 GB, free: 1.504 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 4.163e-05/0.3699, allocations: 41.69 kB / 1.076 GB, free: 1.457 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001185/0.37, allocations: 168.4 kB / 1.077 GB, free: 1.289 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 6.944e-05/0.3701, allocations: 82.98 kB / 1.077 GB, free: 1.207 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001262/0.3702, allocations: 86.12 kB / 1.077 GB, free: 1.117 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001241/0.3703, allocations: 338.8 kB / 1.077 GB, free: 0.7773 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000202/0.3705, allocations: 100.8 kB / 1.077 GB, free: 0.6758 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002734/0.3708, allocations: 166.1 kB / 1.077 GB, free: 0.4922 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000415/0.3712, allocations: 208 kB / 1.078 GB, free: 280 kB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.075e-06/0.3713, allocations: 0 / 1.078 GB, free: 280 kB / 0.8262 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0005474/0.3718, allocations: 308.9 kB / 1.078 GB, free: 15.96 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.876e-05/0.3718, allocations: 8 kB / 1.078 GB, free: 15.95 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.823e-06/0.3718, allocations: 0 / 1.078 GB, free: 15.95 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.821e-05/0.3719, allocations: 4 kB / 1.078 GB, free: 15.95 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001736/0.372, allocations: 35.92 kB / 1.078 GB, free: 15.91 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.426e-05/0.3721, allocations: 7.938 kB / 1.078 GB, free: 15.91 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000175/0.3723, allocations: 47.59 kB / 1.078 GB, free: 15.86 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.628e-05/0.3723, allocations: 12 kB / 1.078 GB, free: 15.85 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.0002021/0.3725, allocations: 183.1 kB / 1.078 GB, free: 15.66 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.631e-05/0.3725, allocations: 27.72 kB / 1.078 GB, free: 15.63 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.376e-05/0.3726, allocations: 34.64 kB / 1.078 GB, free: 15.59 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.447e-06/0.3726, allocations: 0 / 1.078 GB, free: 15.59 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.675e-06/0.3727, allocations: 7.938 kB / 1.078 GB, free: 15.59 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.118e-06/0.3727, allocations: 0 / 1.078 GB, free: 15.59 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001202/0.3739, allocations: 0.8698 MB / 1.079 GB, free: 14.66 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.787e-06/0.3739, allocations: 7.875 kB / 1.079 GB, free: 14.66 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001043/0.374, allocations: 19.92 kB / 1.079 GB, free: 14.64 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.125e-06/0.374, allocations: 4 kB / 1.079 GB, free: 14.63 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.834e-05/0.374, allocations: 11.98 kB / 1.079 GB, free: 14.62 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.514e-06/0.374, allocations: 0 / 1.079 GB, free: 14.62 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.3741, allocations: 0 / 1.079 GB, free: 14.62 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006321/0.3747, allocations: 459 kB / 1.08 GB, free: 14.16 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 7.307e-05/0.3748, allocations: 100.8 kB / 1.08 GB, free: 14.04 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.524e-05/0.3748, allocations: 12 kB / 1.08 GB, free: 14.03 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001858/0.375, allocations: 27.97 kB / 1.08 GB, free: 14 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001257/0.3752, allocations: 43.92 kB / 1.08 GB, free: 13.96 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.986e-05/0.3752, allocations: 16 kB / 1.08 GB, free: 13.94 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0001416/0.3754, allocations: 141.5 kB / 1.08 GB, free: 13.8 MB / 0.8419 GB Notification: Performance of sort global known variables: time 2.3e-07/0.3754, allocations: 8 kB / 1.08 GB, free: 13.8 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0003723/0.3757, allocations: 83.67 kB / 1.08 GB, free: 13.71 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.0001951/0.3759, allocations: 132.5 kB / 1.08 GB, free: 13.58 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0005786/0.3765, allocations: 287.7 kB / 1.08 GB, free: 13.3 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.3766, allocations: 0 / 1.08 GB, free: 13.3 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.000328/0.3769, allocations: 224.6 kB / 1.081 GB, free: 13.08 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003413/0.3772, allocations: 32.48 kB / 1.081 GB, free: 13.05 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00118/0.3784, allocations: 0.6272 MB / 1.081 GB, free: 12.39 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003322/0.3788, allocations: 0.7726 MB / 1.082 GB, free: 11.6 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0001111/0.3789, allocations: 30.28 kB / 1.082 GB, free: 11.57 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.605e-05/0.379, allocations: 27.42 kB / 1.082 GB, free: 11.54 MB / 0.8419 GB Notification: Performance of SimCode: time 3.51e-07/0.379, allocations: 0 / 1.082 GB, free: 11.54 MB / 0.8419 GB Notification: Performance of Templates: time 0.00651/0.3855, allocations: 2.614 MB / 1.085 GB, free: 8.938 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)