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.001272/0.001272, allocations: 119.1 kB / 17.09 MB, free: 5.93 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.001217/0.001217, allocations: 196.6 kB / 18.03 MB, free: 5.008 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.283/1.283, allocations: 222.9 MB / 241.7 MB, free: 15.05 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7702/0.7702, allocations: 126.1 MB / 417.9 MB, free: 12.79 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001212/0.001212, allocations: 63.31 kB / 0.5738 GB, free: 27.12 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1432/0.1444, allocations: 78.7 MB / 0.6506 GB, free: 4.07 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.OnOff): time 0.003784/0.1483, allocations: 2.362 MB / 0.653 GB, free: 1.691 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001449/0.1497, allocations: 0.7246 MB / 0.6537 GB, free: 0.9648 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002919/0.1501, allocations: 4 kB / 0.6537 GB, free: 0.9609 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002223/0.1503, allocations: 47.47 kB / 0.6537 GB, free: 0.9141 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001798/0.1505, allocations: 39.59 kB / 0.6537 GB, free: 0.875 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004817/0.151, allocations: 155.8 kB / 0.6539 GB, free: 0.7227 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004277/0.1514, allocations: 396.2 kB / 0.6543 GB, free: 344 kB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000415/0.1519, allocations: 241.2 kB / 0.6545 GB, free: 96 kB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002371/0.1521, allocations: 147.5 kB / 0.6546 GB, free: 15.95 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002104/0.1523, allocations: 155.2 kB / 0.6548 GB, free: 15.8 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 7.853e-05/0.1524, allocations: 48 kB / 0.6548 GB, free: 15.75 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 6.043e-05/0.1525, allocations: 48 kB / 0.6549 GB, free: 15.7 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 8.341e-05/0.1526, allocations: 103.7 kB / 0.655 GB, free: 15.6 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001643/0.1527, allocations: 183.1 kB / 0.6552 GB, free: 15.42 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0005255/0.1533, allocations: 0.5098 MB / 0.6557 GB, free: 14.91 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.969e-06/0.1533, allocations: 4 kB / 0.6557 GB, free: 14.91 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.563e-06/0.1533, allocations: 0 / 0.6557 GB, free: 14.91 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.612e-05/0.1533, allocations: 0 / 0.6557 GB, free: 14.91 MB / 0.4981 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.001145/0.1545, allocations: 0.6864 MB / 0.6563 GB, free: 14.16 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.167e-05/0.1545, allocations: 12.03 kB / 0.6563 GB, free: 14.15 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001034/0.1546, allocations: 40.7 kB / 0.6564 GB, free: 14.11 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004304/0.1551, allocations: 300.5 kB / 0.6567 GB, free: 13.78 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.26e-05/0.1551, allocations: 33.02 kB / 0.6567 GB, free: 13.75 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.934e-05/0.1552, allocations: 39.94 kB / 0.6567 GB, free: 13.71 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000587/0.1558, allocations: 373.8 kB / 0.6571 GB, free: 13.32 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.237e-05/0.1558, allocations: 0 / 0.6571 GB, free: 13.32 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.684e-05/0.1558, allocations: 20 kB / 0.6571 GB, free: 13.3 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.315e-06/0.1558, allocations: 4 kB / 0.6571 GB, free: 13.3 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004277/0.1563, allocations: 242.5 kB / 0.6573 GB, free: 13.07 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001379/0.1577, allocations: 0.9208 MB / 0.6582 GB, free: 12.09 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005798/0.1583, allocations: 330.2 kB / 0.6586 GB, free: 11.77 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000233/0.1585, allocations: 176.8 kB / 0.6587 GB, free: 11.59 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 3.247e-05/0.1585, allocations: 4 kB / 0.6587 GB, free: 11.59 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003571/0.1589, allocations: 241.4 kB / 0.659 GB, free: 11.34 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=33): time 1.713e-06/0.1589, allocations: 0 / 0.659 GB, free: 11.34 MB / 0.4981 GB Notification: Performance of matching and sorting (n=33): time 0.0007561/0.1597, allocations: 470.8 kB / 0.6594 GB, free: 10.87 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.883e-05/0.1598, allocations: 110.8 kB / 0.6595 GB, free: 10.74 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000194/0.16, allocations: 227.7 kB / 0.6597 GB, free: 10.5 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 3.314e-05/0.16, allocations: 37.7 kB / 0.6598 GB, free: 10.46 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001096/0.1601, allocations: 176.6 kB / 0.6599 GB, free: 10.29 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 6.576e-05/0.1602, allocations: 83.38 kB / 0.66 GB, free: 10.2 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000112/0.1603, allocations: 90.11 kB / 0.6601 GB, free: 10.11 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.000105/0.1604, allocations: 334.8 kB / 0.6604 GB, free: 9.773 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001766/0.1606, allocations: 96.83 kB / 0.6605 GB, free: 9.68 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002034/0.1608, allocations: 158.3 kB / 0.6607 GB, free: 9.504 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000301/0.1611, allocations: 215.8 kB / 0.6609 GB, free: 9.277 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.1611, allocations: 4 kB / 0.6609 GB, free: 9.273 MB / 0.4981 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0004593/0.1616, allocations: 312.9 kB / 0.6612 GB, free: 8.961 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 2.669e-05/0.1616, allocations: 9.812 kB / 0.6612 GB, free: 8.953 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.133e-06/0.1616, allocations: 7.938 kB / 0.6612 GB, free: 8.945 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.65e-05/0.1617, allocations: 4 kB / 0.6612 GB, free: 8.941 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001457/0.1618, allocations: 39.91 kB / 0.6612 GB, free: 8.902 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.055e-05/0.1618, allocations: 7.938 kB / 0.6612 GB, free: 8.895 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001529/0.162, allocations: 35.86 kB / 0.6613 GB, free: 8.859 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.232e-05/0.162, allocations: 12 kB / 0.6613 GB, free: 8.848 MB / 0.4981 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.0001644/0.1622, allocations: 183.1 kB / 0.6615 GB, free: 8.656 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.092e-05/0.1622, allocations: 31.8 kB / 0.6615 GB, free: 8.625 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.476e-05/0.1623, allocations: 30.59 kB / 0.6615 GB, free: 8.598 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.228e-06/0.1623, allocations: 4 kB / 0.6615 GB, free: 8.594 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.5e-06/0.1623, allocations: 0 / 0.6615 GB, free: 8.594 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.244e-06/0.1623, allocations: 7.984 kB / 0.6615 GB, free: 8.586 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001053/0.1634, allocations: 0.8744 MB / 0.6624 GB, free: 7.656 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.495e-06/0.1634, allocations: 0 / 0.6624 GB, free: 7.656 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.823e-05/0.1635, allocations: 19.92 kB / 0.6624 GB, free: 7.637 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.669e-06/0.1635, allocations: 4 kB / 0.6624 GB, free: 7.633 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.521e-05/0.1636, allocations: 7.984 kB / 0.6624 GB, free: 7.625 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.868e-06/0.1636, allocations: 4 kB / 0.6624 GB, free: 7.621 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.1636, allocations: 0 / 0.6624 GB, free: 7.621 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005324/0.1641, allocations: 456.5 kB / 0.6629 GB, free: 7.16 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.595e-05/0.1642, allocations: 105 kB / 0.663 GB, free: 7.039 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.719e-05/0.1642, allocations: 11.98 kB / 0.663 GB, free: 7.027 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001631/0.1644, allocations: 23.97 kB / 0.663 GB, free: 7.004 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001014/0.1645, allocations: 51.92 kB / 0.663 GB, free: 6.953 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.102e-05/0.1645, allocations: 19.92 kB / 0.6631 GB, free: 6.934 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001111/0.1647, allocations: 149.5 kB / 0.6632 GB, free: 6.789 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1e-07/0.1647, allocations: 0 / 0.6632 GB, free: 6.789 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003076/0.165, allocations: 79.78 kB / 0.6633 GB, free: 6.711 MB / 0.4981 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.0001467/0.1651, allocations: 125.9 kB / 0.6634 GB, free: 6.574 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0004973/0.1656, allocations: 287.8 kB / 0.6637 GB, free: 6.293 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.1656, allocations: 0 / 0.6637 GB, free: 6.293 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.000281/0.1659, allocations: 239.7 kB / 0.6639 GB, free: 6.059 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002669/0.1662, allocations: 31.78 kB / 0.6639 GB, free: 6.027 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009196/0.1671, allocations: 0.5547 MB / 0.6645 GB, free: 5.441 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002908/0.1674, allocations: 0.7727 MB / 0.6652 GB, free: 4.645 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.095e-05/0.1675, allocations: 31.42 kB / 0.6653 GB, free: 4.613 MB / 0.4981 GB Notification: Performance of SimCode: time 3.3e-07/0.1675, allocations: 0 / 0.6653 GB, free: 4.613 MB / 0.4981 GB Notification: Performance of Templates: time 0.005494/0.173, allocations: 3.57 MB / 0.6687 GB, free: 1.047 MB / 0.4981 GB 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)