Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.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/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.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(IBPSA.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.OnOff,tolerance=1e-08,outputFormat="empty",numberOfIntervals=14400,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.OnOff") translateModel(IBPSA.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.OnOff,tolerance=1e-08,outputFormat="empty",numberOfIntervals=14400,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.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.00133/0.00133, allocations: 102.9 kB / 16.27 MB, free: 5.977 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.001378/0.001378, allocations: 186.4 kB / 17.19 MB, free: 5.605 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.324/1.324, allocations: 222.9 MB / 240.9 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7822/0.7822, allocations: 126.4 MB / 417.4 MB, free: 12.52 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001283/0.001283, allocations: 63.89 kB / 0.4954 GB, free: 3.059 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3189/0.3202, allocations: 78.78 MB / 0.5723 GB, free: 31.11 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.OnOff): time 0.003403/0.3237, allocations: 2.362 MB / 0.5746 GB, free: 29.48 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.001012/0.3247, allocations: 0.7178 MB / 0.5753 GB, free: 28.96 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001311/0.3249, allocations: 5.031 kB / 0.5753 GB, free: 28.96 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001376/0.325, allocations: 44.56 kB / 0.5753 GB, free: 28.93 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 8.512e-05/0.3251, allocations: 40.14 kB / 0.5754 GB, free: 28.9 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003474/0.3255, allocations: 157.2 kB / 0.5755 GB, free: 28.8 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003043/0.3258, allocations: 394.2 kB / 0.5759 GB, free: 28.6 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003361/0.3261, allocations: 238.3 kB / 0.5761 GB, free: 28.48 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001547/0.3263, allocations: 158 kB / 0.5763 GB, free: 28.38 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001515/0.3264, allocations: 156.9 kB / 0.5764 GB, free: 28.29 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 6.25e-05/0.3265, allocations: 51.16 kB / 0.5765 GB, free: 28.29 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.788e-05/0.3266, allocations: 49.53 kB / 0.5765 GB, free: 28.29 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 7.399e-05/0.3267, allocations: 95.86 kB / 0.5766 GB, free: 28.22 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001332/0.3268, allocations: 174.4 kB / 0.5768 GB, free: 28.1 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003901/0.3272, allocations: 0.4948 MB / 0.5773 GB, free: 27.81 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.926e-06/0.3272, allocations: 0 / 0.5773 GB, free: 27.81 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.3272, allocations: 0.8125 kB / 0.5773 GB, free: 27.81 MB / 446.1 MB Notification: Performance of Transformations before backend: time 6.622e-06/0.3272, allocations: 0 / 0.5773 GB, free: 27.81 MB / 446.1 MB 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.0008072/0.328, allocations: 0.6753 MB / 0.5779 GB, free: 27.19 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.32e-05/0.3281, allocations: 9.625 kB / 0.5779 GB, free: 27.19 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.707e-05/0.3282, allocations: 41.88 kB / 0.578 GB, free: 27.17 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002726/0.3284, allocations: 313.2 kB / 0.5783 GB, free: 26.86 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.625e-05/0.3285, allocations: 29.53 kB / 0.5783 GB, free: 26.84 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.713e-05/0.3285, allocations: 40.86 kB / 0.5784 GB, free: 26.83 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000508/0.329, allocations: 374.4 kB / 0.5787 GB, free: 26.59 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.899e-06/0.3291, allocations: 0.9375 kB / 0.5787 GB, free: 26.59 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.409e-05/0.3291, allocations: 20.27 kB / 0.5787 GB, free: 26.57 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.428e-06/0.3291, allocations: 7.625 kB / 0.5787 GB, free: 26.57 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003891/0.3295, allocations: 234.5 kB / 0.579 GB, free: 26.46 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001146/0.3307, allocations: 0.9307 MB / 0.5799 GB, free: 25.7 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00053/0.3312, allocations: 326.1 kB / 0.5802 GB, free: 25.52 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002092/0.3314, allocations: 175.4 kB / 0.5803 GB, free: 25.41 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.268e-05/0.3315, allocations: 4.094 kB / 0.5804 GB, free: 25.41 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003501/0.3318, allocations: 238.8 kB / 0.5806 GB, free: 25.25 MB / 446.1 MB Notification: Performance of pre-optimization done (n=33): time 2.244e-06/0.3318, allocations: 3.984 kB / 0.5806 GB, free: 25.25 MB / 446.1 MB Notification: Performance of matching and sorting (n=33): time 0.0007202/0.3326, allocations: 470 kB / 0.581 GB, free: 25.02 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.045e-05/0.3326, allocations: 115.8 kB / 0.5811 GB, free: 24.88 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001602/0.3328, allocations: 224.8 kB / 0.5814 GB, free: 24.71 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 2.849e-05/0.3328, allocations: 40.14 kB / 0.5814 GB, free: 24.67 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.044e-05/0.3329, allocations: 172.8 kB / 0.5816 GB, free: 24.52 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.848e-05/0.3329, allocations: 75.3 kB / 0.5816 GB, free: 24.45 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.531e-05/0.3331, allocations: 85.03 kB / 0.5817 GB, free: 24.4 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.007e-05/0.3331, allocations: 338.8 kB / 0.582 GB, free: 24.07 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001655/0.3333, allocations: 94.36 kB / 0.5821 GB, free: 24.02 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001732/0.3335, allocations: 171.5 kB / 0.5823 GB, free: 23.9 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002743/0.3337, allocations: 206.6 kB / 0.5825 GB, free: 23.77 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.215e-06/0.3338, allocations: 5.312 kB / 0.5825 GB, free: 23.77 MB / 446.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0004258/0.3342, allocations: 316 kB / 0.5828 GB, free: 23.61 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.307e-05/0.3342, allocations: 6.062 kB / 0.5828 GB, free: 23.61 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.52e-06/0.3342, allocations: 2.562 kB / 0.5828 GB, free: 23.61 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.716e-05/0.3342, allocations: 5.656 kB / 0.5828 GB, free: 23.6 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001449/0.3344, allocations: 39.48 kB / 0.5828 GB, free: 23.59 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.975e-06/0.3344, allocations: 3.125 kB / 0.5828 GB, free: 23.59 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001546/0.3346, allocations: 39.16 kB / 0.5829 GB, free: 23.57 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.206e-05/0.3346, allocations: 13.47 kB / 0.5829 GB, free: 23.56 MB / 446.1 MB 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.0001544/0.3348, allocations: 180.5 kB / 0.5831 GB, free: 23.41 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.473e-05/0.3348, allocations: 29.56 kB / 0.5831 GB, free: 23.39 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.77e-05/0.3349, allocations: 35.17 kB / 0.5831 GB, free: 23.36 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.238e-06/0.3349, allocations: 3.312 kB / 0.5831 GB, free: 23.36 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.057e-06/0.3349, allocations: 0 / 0.5831 GB, free: 23.36 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.629e-06/0.3349, allocations: 5.375 kB / 0.5831 GB, free: 23.36 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009805/0.3359, allocations: 0.8719 MB / 0.584 GB, free: 22.69 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.886e-06/0.3359, allocations: 0 / 0.584 GB, free: 22.69 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.665e-05/0.336, allocations: 22.33 kB / 0.584 GB, free: 22.68 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.386e-06/0.336, allocations: 2.812 kB / 0.584 GB, free: 22.68 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.414e-05/0.336, allocations: 10.7 kB / 0.584 GB, free: 22.68 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.496e-06/0.3361, allocations: 1.656 kB / 0.584 GB, free: 22.68 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.3361, allocations: 0 / 0.584 GB, free: 22.68 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005341/0.3366, allocations: 463.2 kB / 0.5845 GB, free: 22.39 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.946e-05/0.3367, allocations: 107.5 kB / 0.5846 GB, free: 22.27 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.977e-05/0.3367, allocations: 13.67 kB / 0.5846 GB, free: 22.26 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001773/0.3369, allocations: 26.62 kB / 0.5846 GB, free: 22.25 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001063/0.337, allocations: 44.94 kB / 0.5847 GB, free: 22.22 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.238e-05/0.3371, allocations: 19.02 kB / 0.5847 GB, free: 22.21 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0001055/0.3372, allocations: 150.8 kB / 0.5848 GB, free: 22.11 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3372, allocations: 0 / 0.5848 GB, free: 22.11 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0003506/0.3375, allocations: 80.41 kB / 0.5849 GB, free: 22.08 MB / 446.1 MB 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.0001538/0.3377, allocations: 128.7 kB / 0.585 GB, free: 21.97 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0006093/0.3383, allocations: 304.6 kB / 0.5853 GB, free: 21.84 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.3383, allocations: 0.5938 kB / 0.5853 GB, free: 21.84 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002967/0.3386, allocations: 227.7 kB / 0.5855 GB, free: 21.72 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002914/0.3389, allocations: 29.02 kB / 0.5855 GB, free: 21.7 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008948/0.3398, allocations: 0.5224 MB / 0.5861 GB, free: 21.36 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002041/0.34, allocations: 0.7713 MB / 0.5868 GB, free: 20.63 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0001053/0.3402, allocations: 28.53 kB / 0.5868 GB, free: 20.62 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.063e-05/0.3402, allocations: 33.17 kB / 0.5869 GB, free: 20.61 MB / 446.1 MB Notification: Performance of SimCode: time 2.41e-07/0.3403, allocations: 5.031 kB / 0.5869 GB, free: 20.6 MB / 446.1 MB Notification: Performance of Templates: time 0.006393/0.3467, allocations: 2.953 MB / 0.5898 GB, free: 19.21 MB / 446.1 MB make -j1 -f IBPSA_latest_IBPSA.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.OnOff.makefile (rm -f IBPSA_latest_IBPSA.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.OnOff.pipe ; mkfifo IBPSA_latest_IBPSA.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.OnOff.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.OnOff.pipe >> ../files/IBPSA_latest_IBPSA.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.OnOff.sim & ./IBPSA_latest_IBPSA.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.OnOff -abortSlowSimulation -alarm=480 -lv LOG_STATS > IBPSA_latest_IBPSA.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.OnOff.pipe 2>&1)