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.001006/0.001006, allocations: 91.06 kB / 15.36 MB, free: 0.7383 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.00727/0.00727, allocations: 172.4 kB / 16.26 MB, free: 6.613 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.349/1.349, allocations: 223.3 MB / 240.3 MB, free: 5.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.847/2.847, allocations: 473.4 MB / 0.7469 GB, free: 6.043 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003501/0.0003501, allocations: 16.53 kB / 0.9158 GB, free: 33.14 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3397/0.34, allocations: 162.2 MB / 1.074 GB, free: 7.473 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.OnOff): time 0.002575/0.3427, allocations: 2.048 MB / 1.076 GB, free: 5.414 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001073/0.3437, allocations: 0.6973 MB / 1.077 GB, free: 4.711 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001145/0.3439, allocations: 8 kB / 1.077 GB, free: 4.703 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001213/0.344, allocations: 31.66 kB / 1.077 GB, free: 4.672 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 9.001e-05/0.3441, allocations: 27.78 kB / 1.077 GB, free: 4.645 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003299/0.3444, allocations: 135.8 kB / 1.077 GB, free: 4.512 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0003123/0.3448, allocations: 364.2 kB / 1.077 GB, free: 4.152 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003399/0.3451, allocations: 221.2 kB / 1.078 GB, free: 3.938 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001224/0.3452, allocations: 91.45 kB / 1.078 GB, free: 3.848 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001282/0.3454, allocations: 107.3 kB / 1.078 GB, free: 3.742 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 3.244e-05/0.3454, allocations: 12 kB / 1.078 GB, free: 3.73 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 2.528e-05/0.3454, allocations: 12 kB / 1.078 GB, free: 3.719 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 5.261e-05/0.3455, allocations: 47.77 kB / 1.078 GB, free: 3.672 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001341/0.3456, allocations: 164.8 kB / 1.078 GB, free: 3.504 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0004034/0.3461, allocations: 474.6 kB / 1.078 GB, free: 3.039 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.068e-06/0.3461, allocations: 0 / 1.078 GB, free: 3.039 MB / 0.8262 GB Notification: Performance of FrontEnd: time 4.018e-06/0.3461, allocations: 0 / 1.078 GB, free: 3.039 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 7.213e-06/0.3461, allocations: 3.938 kB / 1.078 GB, free: 3.035 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.001074/0.3472, allocations: 0.6166 MB / 1.079 GB, free: 2.359 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 5.567e-05/0.3472, allocations: 8.031 kB / 1.079 GB, free: 2.352 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000117/0.3474, allocations: 40.56 kB / 1.079 GB, free: 2.312 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004538/0.3478, allocations: 296.3 kB / 1.079 GB, free: 1.98 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.008e-05/0.3479, allocations: 33.02 kB / 1.079 GB, free: 1.949 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.51e-05/0.348, allocations: 40.38 kB / 1.079 GB, free: 1.91 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007094/0.3487, allocations: 382.2 kB / 1.08 GB, free: 1.523 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.311e-05/0.3487, allocations: 0 / 1.08 GB, free: 1.523 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.222e-05/0.3487, allocations: 12 kB / 1.08 GB, free: 1.512 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.154e-05/0.3488, allocations: 11.94 kB / 1.08 GB, free: 1.5 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004929/0.3493, allocations: 242.5 kB / 1.08 GB, free: 1.258 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001669/0.3509, allocations: 0.9401 MB / 1.081 GB, free: 272 kB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009157/0.3519, allocations: 338.8 kB / 1.081 GB, free: 15.93 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004054/0.3523, allocations: 185.5 kB / 1.081 GB, free: 15.74 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 4.623e-05/0.3524, allocations: 0 / 1.081 GB, free: 15.74 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005423/0.3529, allocations: 245.2 kB / 1.082 GB, free: 15.49 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=33): time 2.365e-06/0.3529, allocations: 0 / 1.082 GB, free: 15.49 MB / 0.8419 GB Notification: Performance of matching and sorting (n=33): time 0.0009553/0.3539, allocations: 474.8 kB / 1.082 GB, free: 15.02 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000119/0.354, allocations: 110.8 kB / 1.082 GB, free: 14.89 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002933/0.3543, allocations: 223.6 kB / 1.083 GB, free: 14.66 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 7.213e-05/0.3544, allocations: 41.7 kB / 1.083 GB, free: 14.61 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001664/0.3546, allocations: 176.4 kB / 1.083 GB, free: 14.43 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001214/0.3547, allocations: 82.89 kB / 1.083 GB, free: 14.35 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.826e-05/0.3548, allocations: 61.69 kB / 1.083 GB, free: 14.29 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001923/0.355, allocations: 338.8 kB / 1.083 GB, free: 13.95 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001981/0.3552, allocations: 100.8 kB / 1.083 GB, free: 13.84 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002745/0.3555, allocations: 162.1 kB / 1.083 GB, free: 13.66 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003653/0.3559, allocations: 212 kB / 1.084 GB, free: 13.44 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.3559, allocations: 0 / 1.084 GB, free: 13.44 MB / 0.8419 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0005975/0.3565, allocations: 316.8 kB / 1.084 GB, free: 13.12 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 2.454e-05/0.3565, allocations: 4 kB / 1.084 GB, free: 13.12 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.255e-05/0.3565, allocations: 4 kB / 1.084 GB, free: 13.12 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.585e-05/0.3565, allocations: 0 / 1.084 GB, free: 13.12 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001717/0.3567, allocations: 43.91 kB / 1.084 GB, free: 13.07 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.167e-05/0.3567, allocations: 7.938 kB / 1.084 GB, free: 13.07 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001863/0.3569, allocations: 43.89 kB / 1.084 GB, free: 13.02 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.881e-05/0.357, allocations: 16 kB / 1.084 GB, free: 13.01 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.0002144/0.3572, allocations: 182.9 kB / 1.084 GB, free: 12.82 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.726e-05/0.3572, allocations: 27.72 kB / 1.084 GB, free: 12.79 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.33e-05/0.3573, allocations: 30.64 kB / 1.084 GB, free: 12.76 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.52e-06/0.3574, allocations: 8 kB / 1.084 GB, free: 12.75 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.766e-06/0.3574, allocations: 3.938 kB / 1.084 GB, free: 12.75 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.42e-06/0.3574, allocations: 3.984 kB / 1.084 GB, free: 12.74 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001216/0.3586, allocations: 0.8699 MB / 1.085 GB, free: 11.82 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.95e-06/0.3586, allocations: 3.938 kB / 1.085 GB, free: 11.81 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.44e-05/0.3587, allocations: 15.98 kB / 1.085 GB, free: 11.8 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.781e-06/0.3587, allocations: 8 kB / 1.085 GB, free: 11.79 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.633e-05/0.3588, allocations: 11.98 kB / 1.085 GB, free: 11.78 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.094e-06/0.3588, allocations: 0 / 1.085 GB, free: 11.78 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.539e-06/0.3588, allocations: 3.938 kB / 1.085 GB, free: 11.77 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005992/0.3594, allocations: 459 kB / 1.086 GB, free: 11.31 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 8.659e-05/0.3595, allocations: 104.8 kB / 1.086 GB, free: 11.19 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.035e-05/0.3595, allocations: 15.98 kB / 1.086 GB, free: 11.17 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001856/0.3597, allocations: 31.97 kB / 1.086 GB, free: 11.14 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001154/0.3598, allocations: 43.94 kB / 1.086 GB, free: 11.1 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.301e-05/0.3599, allocations: 15.98 kB / 1.086 GB, free: 11.08 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0001192/0.36, allocations: 145.5 kB / 1.086 GB, free: 10.94 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.3e-07/0.36, allocations: 4 kB / 1.086 GB, free: 10.94 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0003211/0.3603, allocations: 79.69 kB / 1.086 GB, free: 10.86 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.0002014/0.3606, allocations: 134.8 kB / 1.086 GB, free: 10.72 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.000615/0.3612, allocations: 283.7 kB / 1.086 GB, free: 10.44 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.796e-06/0.3612, allocations: 256 / 1.086 GB, free: 10.44 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0003317/0.3615, allocations: 236.4 kB / 1.087 GB, free: 10.21 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003025/0.3618, allocations: 31.92 kB / 1.087 GB, free: 10.18 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001188/0.363, allocations: 0.6314 MB / 1.087 GB, free: 9.527 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004431/0.3635, allocations: 0.7726 MB / 1.088 GB, free: 8.73 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0001114/0.3636, allocations: 30.28 kB / 1.088 GB, free: 8.703 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.441e-05/0.3637, allocations: 31.42 kB / 1.088 GB, free: 8.672 MB / 0.8419 GB Notification: Performance of SimCode: time 2.3e-07/0.3637, allocations: 0 / 1.088 GB, free: 8.672 MB / 0.8419 GB Notification: Performance of Templates: time 0.006817/0.3705, allocations: 2.58 MB / 1.091 GB, free: 6.105 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)