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.001305/0.001305, allocations: 100.1 kB / 15.88 MB, free: 12 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001509/0.001509, allocations: 209.8 kB / 16.79 MB, free: 6.84 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.373/1.373, allocations: 222.9 MB / 240.5 MB, free: 4.59 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.8624/0.8624, allocations: 126.1 MB / 416.7 MB, free: 8.016 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001376/0.001376, allocations: 64.78 kB / 0.4943 GB, free: 10.87 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1783/0.1797, allocations: 78.71 MB / 0.5712 GB, free: 12.36 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.OnOff): time 0.00562/0.1854, allocations: 2.416 MB / 0.5735 GB, free: 9.922 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.001717/0.1872, allocations: 0.6896 MB / 0.5742 GB, free: 9.23 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003693/0.1876, allocations: 4 kB / 0.5742 GB, free: 9.227 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002743/0.1879, allocations: 31.66 kB / 0.5742 GB, free: 9.195 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002176/0.1881, allocations: 27.78 kB / 0.5743 GB, free: 9.168 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005594/0.1887, allocations: 139.8 kB / 0.5744 GB, free: 9.031 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005082/0.1892, allocations: 356.2 kB / 0.5747 GB, free: 8.684 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005573/0.1898, allocations: 237.1 kB / 0.575 GB, free: 8.449 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002784/0.1901, allocations: 115.5 kB / 0.5751 GB, free: 8.336 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002811/0.1904, allocations: 147.2 kB / 0.5752 GB, free: 8.191 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 7.834e-05/0.1904, allocations: 20 kB / 0.5752 GB, free: 8.172 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.217e-05/0.1905, allocations: 20 kB / 0.5753 GB, free: 8.152 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 9.012e-05/0.1906, allocations: 67.75 kB / 0.5753 GB, free: 8.086 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002363/0.1909, allocations: 159.1 kB / 0.5755 GB, free: 7.93 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006036/0.1915, allocations: 494.7 kB / 0.5759 GB, free: 7.445 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.502e-06/0.1915, allocations: 4 kB / 0.5759 GB, free: 7.441 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.844e-06/0.1915, allocations: 0 / 0.5759 GB, free: 7.441 MB / 446.1 MB Notification: Performance of Transformations before backend: time 2.503e-05/0.1915, allocations: 0 / 0.5759 GB, free: 7.441 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.001774/0.1933, allocations: 0.6634 MB / 0.5766 GB, free: 6.719 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.909e-05/0.1934, allocations: 8.031 kB / 0.5766 GB, free: 6.711 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001531/0.1935, allocations: 48.45 kB / 0.5766 GB, free: 6.664 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005784/0.1941, allocations: 304.3 kB / 0.5769 GB, free: 6.324 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.279e-05/0.1942, allocations: 32.97 kB / 0.577 GB, free: 6.293 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.644e-05/0.1943, allocations: 40.11 kB / 0.577 GB, free: 6.254 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007804/0.1951, allocations: 369.9 kB / 0.5774 GB, free: 5.879 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.396e-05/0.1951, allocations: 3.938 kB / 0.5774 GB, free: 5.875 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.419e-05/0.1951, allocations: 19.92 kB / 0.5774 GB, free: 5.855 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.236e-05/0.1951, allocations: 8 kB / 0.5774 GB, free: 5.848 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005055/0.1957, allocations: 238.5 kB / 0.5776 GB, free: 5.613 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001658/0.1973, allocations: 0.9323 MB / 0.5785 GB, free: 4.629 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006659/0.198, allocations: 333.3 kB / 0.5788 GB, free: 4.297 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002796/0.1983, allocations: 176.8 kB / 0.579 GB, free: 4.121 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.899e-05/0.1983, allocations: 7.938 kB / 0.579 GB, free: 4.113 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005545/0.1989, allocations: 237.3 kB / 0.5792 GB, free: 3.867 MB / 446.1 MB Notification: Performance of pre-optimization done (n=33): time 2.224e-06/0.1989, allocations: 4 kB / 0.5793 GB, free: 3.863 MB / 446.1 MB Notification: Performance of matching and sorting (n=33): time 0.000992/0.1999, allocations: 458.8 kB / 0.5797 GB, free: 3.41 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.838e-05/0.2, allocations: 114.8 kB / 0.5798 GB, free: 3.273 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002388/0.2003, allocations: 227.5 kB / 0.58 GB, free: 3.043 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 4.5e-05/0.2003, allocations: 49.62 kB / 0.5801 GB, free: 2.988 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001409/0.2005, allocations: 164.5 kB / 0.5802 GB, free: 2.824 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.173e-05/0.2006, allocations: 82.97 kB / 0.5803 GB, free: 2.742 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001456/0.2007, allocations: 82.12 kB / 0.5804 GB, free: 2.656 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001514/0.2009, allocations: 342.8 kB / 0.5807 GB, free: 2.312 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002057/0.2011, allocations: 88.84 kB / 0.5808 GB, free: 2.227 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002567/0.2014, allocations: 166.3 kB / 0.5809 GB, free: 2.043 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000372/0.2017, allocations: 203.9 kB / 0.5811 GB, free: 1.828 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.703e-06/0.2018, allocations: 7.984 kB / 0.5811 GB, free: 1.82 MB / 446.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0005372/0.2023, allocations: 316.7 kB / 0.5815 GB, free: 1.504 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.917e-05/0.2023, allocations: 4 kB / 0.5815 GB, free: 1.5 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.065e-06/0.2023, allocations: 4 kB / 0.5815 GB, free: 1.496 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.584e-05/0.2024, allocations: 3.938 kB / 0.5815 GB, free: 1.492 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000157/0.2025, allocations: 35.92 kB / 0.5815 GB, free: 1.457 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.795e-06/0.2025, allocations: 0 / 0.5815 GB, free: 1.457 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001675/0.2027, allocations: 39.94 kB / 0.5815 GB, free: 1.418 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.564e-05/0.2027, allocations: 20 kB / 0.5816 GB, free: 1.398 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.0001991/0.203, allocations: 182.9 kB / 0.5817 GB, free: 1.211 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.404e-05/0.203, allocations: 23.72 kB / 0.5818 GB, free: 1.188 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.617e-05/0.2031, allocations: 34.58 kB / 0.5818 GB, free: 1.152 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.998e-06/0.2031, allocations: 4 kB / 0.5818 GB, free: 1.148 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.779e-06/0.2031, allocations: 4 kB / 0.5818 GB, free: 1.145 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.737e-06/0.2031, allocations: 0 / 0.5818 GB, free: 1.145 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001191/0.2043, allocations: 0.8777 MB / 0.5826 GB, free: 216 kB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.755e-06/0.2043, allocations: 3.938 kB / 0.5827 GB, free: 212 kB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001021/0.2044, allocations: 15.98 kB / 0.5827 GB, free: 196 kB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.679e-06/0.2045, allocations: 4 kB / 0.5827 GB, free: 192 kB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.673e-05/0.2045, allocations: 7.984 kB / 0.5827 GB, free: 184 kB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.37e-06/0.2045, allocations: 4 kB / 0.5827 GB, free: 180 kB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.243e-06/0.2045, allocations: 3.938 kB / 0.5827 GB, free: 176 kB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3384/0.5429, allocations: 454.9 kB / 0.5831 GB, free: 19.79 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.116e-05/0.543, allocations: 101.2 kB / 0.5832 GB, free: 19.7 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.07e-05/0.5431, allocations: 9.781 kB / 0.5832 GB, free: 19.7 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002121/0.5433, allocations: 28 kB / 0.5833 GB, free: 19.7 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001442/0.5435, allocations: 41.89 kB / 0.5833 GB, free: 19.7 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.029e-05/0.5435, allocations: 17.28 kB / 0.5833 GB, free: 19.7 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0001527/0.5437, allocations: 148.1 kB / 0.5835 GB, free: 19.62 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5437, allocations: 0 / 0.5835 GB, free: 19.62 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0004029/0.5441, allocations: 83.69 kB / 0.5835 GB, free: 19.62 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.0001589/0.5442, allocations: 129.8 kB / 0.5837 GB, free: 19.53 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.000594/0.5448, allocations: 280.7 kB / 0.5839 GB, free: 19.53 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.5449, allocations: 1.844 kB / 0.5839 GB, free: 19.53 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003335/0.5452, allocations: 231.7 kB / 0.5841 GB, free: 19.53 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003101/0.5455, allocations: 28.42 kB / 0.5842 GB, free: 19.53 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001121/0.5466, allocations: 0.6291 MB / 0.5848 GB, free: 19.19 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002689/0.5469, allocations: 0.774 MB / 0.5855 GB, free: 18.49 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0001264/0.5471, allocations: 28.09 kB / 0.5856 GB, free: 18.49 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.214e-05/0.5472, allocations: 26.73 kB / 0.5856 GB, free: 18.48 MB / 446.1 MB Notification: Performance of SimCode: time 8.92e-07/0.5472, allocations: 0 / 0.5856 GB, free: 18.48 MB / 446.1 MB Notification: Performance of Templates: time 0.007394/0.5546, allocations: 2.617 MB / 0.5882 GB, free: 18.36 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)