Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate.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.MinimalFlowRate,tolerance=1e-08,outputFormat="empty",numberOfIntervals=200,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate") translateModel(IBPSA.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate,tolerance=1e-08,outputFormat="empty",numberOfIntervals=200,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00148/0.00148, allocations: 111.1 kB / 15.99 MB, free: 6.355 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.001724/0.001724, allocations: 191 kB / 16.91 MB, free: 6.195 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.374/1.374, allocations: 222.9 MB / 240.6 MB, free: 13.7 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7679/0.7679, allocations: 126.1 MB / 416.8 MB, free: 13.04 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001393/0.001392, allocations: 63.91 kB / 0.4945 GB, free: 3.852 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.365/0.3665, allocations: 78.7 MB / 0.5713 GB, free: 30.55 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate): time 0.003728/0.3702, allocations: 2.077 MB / 0.5734 GB, free: 29.11 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.000996/0.3713, allocations: 0.5536 MB / 0.5739 GB, free: 28.72 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001231/0.3714, allocations: 6.719 kB / 0.5739 GB, free: 28.72 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001385/0.3715, allocations: 13.7 kB / 0.5739 GB, free: 28.71 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000135/0.3717, allocations: 37.73 kB / 0.574 GB, free: 28.68 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002392/0.372, allocations: 80.62 kB / 0.574 GB, free: 28.63 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003304/0.3723, allocations: 285.5 kB / 0.5743 GB, free: 28.5 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000249/0.3726, allocations: 116.6 kB / 0.5744 GB, free: 28.45 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001619/0.3727, allocations: 125.9 kB / 0.5745 GB, free: 28.38 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001708/0.3729, allocations: 131.2 kB / 0.5747 GB, free: 28.31 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 6.029e-05/0.373, allocations: 32.25 kB / 0.5747 GB, free: 28.31 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.258e-05/0.373, allocations: 29.59 kB / 0.5747 GB, free: 28.31 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 7.843e-05/0.3731, allocations: 58.02 kB / 0.5748 GB, free: 28.27 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001469/0.3733, allocations: 126.7 kB / 0.5749 GB, free: 28.19 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003737/0.3736, allocations: 294.2 kB / 0.5752 GB, free: 28.07 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.3737, allocations: 0.5938 kB / 0.5752 GB, free: 28.07 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.943e-06/0.3737, allocations: 2.812 kB / 0.5752 GB, free: 28.07 MB / 446.1 MB Notification: Performance of Transformations before backend: time 7.304e-06/0.3737, allocations: 0 / 0.5752 GB, free: 28.07 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: 47 * Number of variables: 47 Notification: Performance of Generate backend data structure: time 0.00123/0.3749, allocations: 0.6535 MB / 0.5758 GB, free: 27.51 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.039e-05/0.375, allocations: 9.531 kB / 0.5758 GB, free: 27.51 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.979e-05/0.3751, allocations: 29.7 kB / 0.5759 GB, free: 27.5 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002766/0.3753, allocations: 266 kB / 0.5761 GB, free: 27.25 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.569e-05/0.3754, allocations: 14.84 kB / 0.5761 GB, free: 27.24 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.552e-05/0.3754, allocations: 31.94 kB / 0.5762 GB, free: 27.23 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006628/0.3761, allocations: 286.5 kB / 0.5764 GB, free: 27.1 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.127e-05/0.3761, allocations: 3.938 kB / 0.5764 GB, free: 27.09 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.877e-05/0.3762, allocations: 6.969 kB / 0.5765 GB, free: 27.09 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.975e-06/0.3762, allocations: 6.969 kB / 0.5765 GB, free: 27.09 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006669/0.3768, allocations: 199.6 kB / 0.5766 GB, free: 27.04 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001154/0.378, allocations: 0.6521 MB / 0.5773 GB, free: 26.63 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006739/0.3787, allocations: 201.2 kB / 0.5775 GB, free: 26.56 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003087/0.379, allocations: 94.59 kB / 0.5776 GB, free: 26.54 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.49e-05/0.379, allocations: 2.219 kB / 0.5776 GB, free: 26.54 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005668/0.3796, allocations: 193.5 kB / 0.5778 GB, free: 26.46 MB / 446.1 MB Notification: Performance of pre-optimization done (n=19): time 2.084e-06/0.3796, allocations: 1.062 kB / 0.5778 GB, free: 26.46 MB / 446.1 MB Notification: Performance of matching and sorting (n=19): time 0.001153/0.3808, allocations: 346 kB / 0.5781 GB, free: 26.36 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.006e-05/0.3809, allocations: 135.9 kB / 0.5782 GB, free: 26.2 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002439/0.3811, allocations: 212 kB / 0.5784 GB, free: 26.06 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 4.475e-05/0.3812, allocations: 36.41 kB / 0.5785 GB, free: 26.02 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001272/0.3813, allocations: 163.3 kB / 0.5786 GB, free: 25.88 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.627e-05/0.3814, allocations: 49.02 kB / 0.5787 GB, free: 25.85 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001285/0.3815, allocations: 69.17 kB / 0.5787 GB, free: 25.81 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 7.75e-05/0.3816, allocations: 334.3 kB / 0.579 GB, free: 25.48 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003742/0.382, allocations: 114.7 kB / 0.5791 GB, free: 25.44 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004081/0.3824, allocations: 184.3 kB / 0.5793 GB, free: 25.31 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006449/0.383, allocations: 306 kB / 0.5796 GB, free: 25.08 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.246e-06/0.3831, allocations: 2.344 kB / 0.5796 GB, free: 25.08 MB / 446.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.000882/0.3839, allocations: 429.9 kB / 0.58 GB, free: 24.82 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.685e-05/0.384, allocations: 95.69 kB / 0.5801 GB, free: 24.71 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.756e-06/0.384, allocations: 1.969 kB / 0.5801 GB, free: 24.71 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.111e-05/0.3841, allocations: 2.75 kB / 0.5801 GB, free: 24.71 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002514/0.3843, allocations: 50.36 kB / 0.5802 GB, free: 24.7 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.012e-05/0.3843, allocations: 6.734 kB / 0.5802 GB, free: 24.69 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000367/0.3847, allocations: 65.16 kB / 0.5802 GB, free: 24.66 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.006e-05/0.3847, allocations: 12.25 kB / 0.5803 GB, free: 24.66 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 28 (minFloRatSaf.disErr.y,$PRE.minFloRatSaf.disErr.y,mEvaEmu_flow.count,$PRE.mEvaEmu_flow.count,mEvaEmu_flow.T_start,$PRE.mEvaEmu_flow.T_start,mConEmu_flow.count,$PRE.mConEmu_flow.count,mConEmu_flow.T_start,$PRE.mConEmu_flow.T_start,ySetPul.count,$PRE.ySetPul.count,ySetPul.T_start,$PRE.ySetPul.T_start,minFloRatSaf.hysEva.y,$PRE.minFloRatSaf.hysEva.y,minFloRatSaf.hysCon.y,$PRE.minFloRatSaf.hysCon.y,minFloRatSaf.booPasThr.y,hys.y,$PRE.hys.y,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,minFloRatSaf.intConOne.y,minFloRatSaf.disErr.local_set,minFloRatSaf.disErr.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 3 * 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.0001539/0.3849, allocations: 153.5 kB / 0.5804 GB, free: 24.52 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.398e-05/0.3849, allocations: 25.91 kB / 0.5804 GB, free: 24.5 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.834e-05/0.385, allocations: 30.55 kB / 0.5805 GB, free: 24.48 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.19e-06/0.385, allocations: 3.406 kB / 0.5805 GB, free: 24.48 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.043e-06/0.385, allocations: 0 / 0.5805 GB, free: 24.48 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.877e-06/0.385, allocations: 1.25 kB / 0.5805 GB, free: 24.48 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001006/0.3861, allocations: 0.6194 MB / 0.5811 GB, free: 23.98 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.053e-06/0.3861, allocations: 0 / 0.5811 GB, free: 23.98 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001626/0.3862, allocations: 29.45 kB / 0.5811 GB, free: 23.96 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.356e-06/0.3863, allocations: 2.094 kB / 0.5811 GB, free: 23.96 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.069e-05/0.3863, allocations: 5.375 kB / 0.5811 GB, free: 23.96 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.828e-06/0.3863, allocations: 5.484 kB / 0.5811 GB, free: 23.96 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.514e-06/0.3863, allocations: 1.781 kB / 0.5811 GB, free: 23.96 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000696/0.387, allocations: 347.8 kB / 0.5814 GB, free: 23.73 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.036e-05/0.387, allocations: 99.52 kB / 0.5815 GB, free: 23.62 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.97e-05/0.3871, allocations: 7.812 kB / 0.5815 GB, free: 23.62 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003343/0.3874, allocations: 46.56 kB / 0.5816 GB, free: 23.6 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001507/0.3876, allocations: 58.42 kB / 0.5816 GB, free: 23.56 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.76e-05/0.3876, allocations: 8.797 kB / 0.5816 GB, free: 23.56 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0001088/0.3878, allocations: 143.5 kB / 0.5818 GB, free: 23.45 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3878, allocations: 0 / 0.5818 GB, free: 23.45 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0003552/0.3881, allocations: 66.09 kB / 0.5818 GB, free: 23.43 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: 15 (minFloRatSaf.booPasThr.y,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,hys.y,minFloRatSaf.disErr.y,minFloRatSaf.hysCon.y,minFloRatSaf.hysEva.y,ySetPul.T_start,ySetPul.count,mConEmu_flow.T_start,mConEmu_flow.count,mEvaEmu_flow.T_start,mEvaEmu_flow.count) * Number of discrete states: 7 (mEvaEmu_flow.count,mConEmu_flow.count,ySetPul.count,minFloRatSaf.hysEva.y,minFloRatSaf.hysCon.y,hys.y,minFloRatSaf.disErr.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (19): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * 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.0001513/0.3883, allocations: 113.4 kB / 0.582 GB, free: 23.34 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0008908/0.3892, allocations: 442.3 kB / 0.5824 GB, free: 23.03 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.3892, allocations: 0 / 0.5824 GB, free: 23.03 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003723/0.3896, allocations: 129.1 kB / 0.5825 GB, free: 22.97 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004022/0.39, allocations: 32.7 kB / 0.5825 GB, free: 22.96 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008872/0.3909, allocations: 446.8 kB / 0.583 GB, free: 22.62 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001986/0.3911, allocations: 0.7392 MB / 0.5837 GB, free: 21.9 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.000131/0.3912, allocations: 20.39 kB / 0.5837 GB, free: 21.89 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.016e-05/0.3913, allocations: 28.98 kB / 0.5837 GB, free: 21.88 MB / 446.1 MB Notification: Performance of SimCode: time 4.61e-07/0.3913, allocations: 1 kB / 0.5837 GB, free: 21.88 MB / 446.1 MB Notification: Performance of Templates: time 0.007363/0.3987, allocations: 3.291 MB / 0.5869 GB, free: 20.29 MB / 446.1 MB make -j1 -f IBPSA_latest_IBPSA.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate.makefile (rm -f IBPSA_latest_IBPSA.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate.pipe ; mkfifo IBPSA_latest_IBPSA.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate.pipe >> ../files/IBPSA_latest_IBPSA.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate.sim & ./IBPSA_latest_IBPSA.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate -abortSlowSimulation -alarm=480 -lv LOG_STATS > IBPSA_latest_IBPSA.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate.pipe 2>&1)