Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_1.6_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_1.6_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_1.6_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.001754/0.001755, 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.002202/0.002202, allocations: 194.2 kB / 16.14 MB, free: 6.656 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.386/1.386, allocations: 222.9 MB / 239.8 MB, free: 4.617 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.713/2.713, allocations: 472.6 MB / 0.7447 GB, free: 4.922 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001187/0.001187, allocations: 66.61 kB / 0.9114 GB, free: 33.52 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3203/0.3215, allocations: 159.9 MB / 1.068 GB, free: 10.82 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.OnOff): time 0.003866/0.3254, allocations: 2.422 MB / 1.07 GB, free: 8.383 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001145/0.3266, allocations: 0.6973 MB / 1.071 GB, free: 7.68 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001289/0.3267, allocations: 8 kB / 1.071 GB, free: 7.672 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001617/0.3269, allocations: 27.72 kB / 1.071 GB, free: 7.645 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 9.206e-05/0.327, allocations: 27.78 kB / 1.071 GB, free: 7.617 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003537/0.3274, allocations: 147.8 kB / 1.071 GB, free: 7.473 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0003214/0.3277, allocations: 352.3 kB / 1.071 GB, free: 7.125 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003655/0.3281, allocations: 229.2 kB / 1.071 GB, free: 6.902 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001518/0.3282, allocations: 123.4 kB / 1.071 GB, free: 6.781 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001465/0.3284, allocations: 143.3 kB / 1.072 GB, free: 6.641 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 4.504e-05/0.3284, allocations: 28 kB / 1.072 GB, free: 6.613 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 4.712e-05/0.3285, allocations: 20 kB / 1.072 GB, free: 6.594 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 7.094e-05/0.3286, allocations: 67.69 kB / 1.072 GB, free: 6.527 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001547/0.3287, allocations: 159.1 kB / 1.072 GB, free: 6.371 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0004065/0.3291, allocations: 490.7 kB / 1.072 GB, free: 5.891 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.02e-06/0.3291, allocations: 0 / 1.072 GB, free: 5.891 MB / 0.8262 GB Notification: Performance of FrontEnd: time 9.31e-07/0.3292, allocations: 3.938 kB / 1.072 GB, free: 5.887 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 9.168e-06/0.3292, allocations: 4 kB / 1.072 GB, free: 5.883 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.001023/0.3302, allocations: 0.6712 MB / 1.073 GB, free: 5.152 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.361e-05/0.3302, allocations: 8.031 kB / 1.073 GB, free: 5.145 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.177e-05/0.3303, allocations: 40.56 kB / 1.073 GB, free: 5.105 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003477/0.3307, allocations: 300.2 kB / 1.073 GB, free: 4.77 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.138e-05/0.3307, allocations: 33.02 kB / 1.073 GB, free: 4.738 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.271e-05/0.3308, allocations: 36.38 kB / 1.073 GB, free: 4.703 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006245/0.3314, allocations: 378.1 kB / 1.074 GB, free: 4.32 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.598e-06/0.3314, allocations: 0 / 1.074 GB, free: 4.32 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.958e-05/0.3315, allocations: 23.98 kB / 1.074 GB, free: 4.297 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.758e-06/0.3315, allocations: 8 kB / 1.074 GB, free: 4.289 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004525/0.332, allocations: 230.5 kB / 1.074 GB, free: 4.059 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001402/0.3334, allocations: 0.9322 MB / 1.075 GB, free: 3.074 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006017/0.334, allocations: 326.5 kB / 1.075 GB, free: 2.75 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002595/0.3343, allocations: 176.8 kB / 1.075 GB, free: 2.574 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 3.199e-05/0.3343, allocations: 15.91 kB / 1.075 GB, free: 2.559 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004486/0.3348, allocations: 229.4 kB / 1.076 GB, free: 2.32 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=33): time 1.674e-06/0.3348, allocations: 0 / 1.076 GB, free: 2.32 MB / 0.8262 GB Notification: Performance of matching and sorting (n=33): time 0.0008131/0.3356, allocations: 478.7 kB / 1.076 GB, free: 1.848 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.33e-05/0.3357, allocations: 110.8 kB / 1.076 GB, free: 1.715 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001905/0.3359, allocations: 223.6 kB / 1.076 GB, free: 1.488 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 3.772e-05/0.3359, allocations: 41.7 kB / 1.076 GB, free: 1.441 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001046/0.336, allocations: 168.4 kB / 1.077 GB, free: 1.273 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 6.522e-05/0.3361, allocations: 78.98 kB / 1.077 GB, free: 1.195 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000113/0.3362, allocations: 86.11 kB / 1.077 GB, free: 1.105 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001161/0.3363, allocations: 338.8 kB / 1.077 GB, free: 0.7656 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001897/0.3365, allocations: 100.8 kB / 1.077 GB, free: 0.6641 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002264/0.3368, allocations: 166.1 kB / 1.077 GB, free: 492 kB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003233/0.3371, allocations: 208 kB / 1.078 GB, free: 268 kB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.677e-06/0.3371, allocations: 4 kB / 1.078 GB, free: 264 kB / 0.8262 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0004971/0.3376, allocations: 308.8 kB / 1.078 GB, free: 15.95 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.593e-05/0.3376, allocations: 4 kB / 1.078 GB, free: 15.95 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.161e-05/0.3376, allocations: 4 kB / 1.078 GB, free: 15.94 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.227e-05/0.3377, allocations: 0 / 1.078 GB, free: 15.94 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001647/0.3378, allocations: 48.03 kB / 1.078 GB, free: 15.89 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.939e-06/0.3379, allocations: 7.875 kB / 1.078 GB, free: 15.89 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001742/0.338, allocations: 39.67 kB / 1.078 GB, free: 15.85 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.524e-05/0.3381, allocations: 16 kB / 1.078 GB, free: 15.83 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.0001745/0.3382, allocations: 171 kB / 1.078 GB, free: 15.65 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.181e-05/0.3383, allocations: 27.72 kB / 1.078 GB, free: 15.62 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.787e-05/0.3384, allocations: 34.64 kB / 1.078 GB, free: 15.59 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.978e-06/0.3384, allocations: 7.938 kB / 1.078 GB, free: 15.58 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.823e-06/0.3384, allocations: 3.938 kB / 1.078 GB, free: 15.58 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.302e-06/0.3384, allocations: 7.969 kB / 1.078 GB, free: 15.57 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001098/0.3395, allocations: 0.866 MB / 1.079 GB, free: 14.65 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.426e-06/0.3395, allocations: 3.938 kB / 1.079 GB, free: 14.64 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000106/0.3396, allocations: 19.92 kB / 1.079 GB, free: 14.62 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.555e-06/0.3396, allocations: 4 kB / 1.079 GB, free: 14.62 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.619e-05/0.3397, allocations: 11.98 kB / 1.079 GB, free: 14.61 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.557e-06/0.3397, allocations: 4 kB / 1.079 GB, free: 14.61 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.3397, allocations: 0 / 1.079 GB, free: 14.61 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005721/0.3403, allocations: 455 kB / 1.08 GB, free: 14.14 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 5.559e-05/0.3403, allocations: 100.9 kB / 1.08 GB, free: 14.03 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.076e-05/0.3404, allocations: 11.98 kB / 1.08 GB, free: 14.02 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001885/0.3406, allocations: 27.97 kB / 1.08 GB, free: 13.99 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001096/0.3407, allocations: 43.94 kB / 1.08 GB, free: 13.95 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.197e-05/0.3407, allocations: 23.92 kB / 1.08 GB, free: 13.92 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0001179/0.3409, allocations: 145.5 kB / 1.08 GB, free: 13.78 MB / 0.8419 GB Notification: Performance of sort global known variables: time 2.01e-07/0.3409, allocations: 0 / 1.08 GB, free: 13.78 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0003243/0.3412, allocations: 79.69 kB / 1.08 GB, free: 13.7 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.0001621/0.3414, allocations: 130.8 kB / 1.08 GB, free: 13.57 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0004963/0.3419, allocations: 279.7 kB / 1.08 GB, free: 13.29 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/0.3419, allocations: 0 / 1.08 GB, free: 13.29 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0003148/0.3422, allocations: 232.4 kB / 1.081 GB, free: 13.07 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002952/0.3425, allocations: 29.86 kB / 1.081 GB, free: 13.04 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009657/0.3435, allocations: 0.6236 MB / 1.081 GB, free: 12.39 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002996/0.3438, allocations: 0.7765 MB / 1.082 GB, free: 11.59 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0001087/0.3439, allocations: 30.28 kB / 1.082 GB, free: 11.56 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.66e-05/0.344, allocations: 27.42 kB / 1.082 GB, free: 11.54 MB / 0.8419 GB Notification: Performance of SimCode: time 2.5e-07/0.344, allocations: 0 / 1.082 GB, free: 11.54 MB / 0.8419 GB Notification: Performance of Templates: time 0.005736/0.3498, allocations: 2.616 MB / 1.085 GB, free: 8.93 MB / 0.8419 GB make -j1 -f Buildings_1.6_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.OnOff.makefile (rm -f Buildings_1.6_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.OnOff.pipe ; mkfifo Buildings_1.6_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.OnOff.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.OnOff.pipe >> ../files/Buildings_1.6_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.OnOff.sim & ./Buildings_1.6_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.OnOff -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.OnOff.pipe 2>&1)