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: "" <> buildModelFMU(IBPSA.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate,fileNamePrefix="IBPSA_latest_IBPSA_Fluid_HeatPumps_ModularReversible_Controls_Safety_Examples_MinimalFlowRate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate,fileNamePrefix="IBPSA_latest_IBPSA_Fluid_HeatPumps_ModularReversible_Controls_Safety_Examples_MinimalFlowRate",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001139/0.001139, allocations: 104.1 kB / 16.27 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.001102/0.001102, allocations: 190.5 kB / 17.2 MB, free: 5.574 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.273/1.273, allocations: 222.9 MB / 240.9 MB, free: 15.22 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7512/0.7512, allocations: 126.7 MB / 417.8 MB, free: 12.34 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001749/0.001749, allocations: 60.05 kB / 0.4959 GB, free: 2.676 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2605/0.2622, allocations: 78.87 MB / 0.5729 GB, free: 30.91 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate): time 0.002481/0.2648, allocations: 2.019 MB / 0.5749 GB, free: 29.52 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.000673/0.2654, allocations: 0.5653 MB / 0.5754 GB, free: 29.12 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.146e-05/0.2655, allocations: 8.094 kB / 0.5754 GB, free: 29.11 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 8.853e-05/0.2656, allocations: 21.77 kB / 0.5754 GB, free: 29.1 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001009/0.2657, allocations: 46 kB / 0.5755 GB, free: 29.06 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001736/0.2659, allocations: 91.36 kB / 0.5756 GB, free: 29.01 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002229/0.2662, allocations: 288.1 kB / 0.5759 GB, free: 28.88 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001875/0.2663, allocations: 127.9 kB / 0.576 GB, free: 28.81 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001021/0.2665, allocations: 117.6 kB / 0.5761 GB, free: 28.75 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000118/0.2666, allocations: 134.3 kB / 0.5762 GB, free: 28.68 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 4.492e-05/0.2666, allocations: 30.09 kB / 0.5762 GB, free: 28.68 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.922e-05/0.2667, allocations: 28.44 kB / 0.5763 GB, free: 28.68 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 5.015e-05/0.2667, allocations: 62.38 kB / 0.5763 GB, free: 28.64 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 8.909e-05/0.2668, allocations: 126 kB / 0.5765 GB, free: 28.55 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002454/0.2671, allocations: 293.7 kB / 0.5767 GB, free: 28.43 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.725e-06/0.2671, allocations: 3.938 kB / 0.5767 GB, free: 28.43 MB / 446.1 MB Notification: Performance of FrontEnd: time 9.52e-07/0.2671, allocations: 0 / 0.5767 GB, free: 28.43 MB / 446.1 MB Notification: Performance of Transformations before backend: time 5.069e-06/0.2671, allocations: 1.156 kB / 0.5767 GB, free: 28.43 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.0009142/0.268, allocations: 0.6513 MB / 0.5774 GB, free: 27.86 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.677e-05/0.2681, allocations: 9 kB / 0.5774 GB, free: 27.86 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.551e-05/0.2681, allocations: 61.06 kB / 0.5774 GB, free: 27.8 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.471e-05/0.2682, allocations: 33 kB / 0.5775 GB, free: 27.79 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001909/0.2684, allocations: 260.7 kB / 0.5777 GB, free: 27.52 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.881e-05/0.2684, allocations: 26.39 kB / 0.5777 GB, free: 27.5 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.263e-05/0.2684, allocations: 19.91 kB / 0.5778 GB, free: 27.5 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004981/0.2689, allocations: 291.3 kB / 0.578 GB, free: 27.3 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.787e-06/0.269, allocations: 1.5 kB / 0.578 GB, free: 27.3 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.234e-05/0.269, allocations: 13.19 kB / 0.5781 GB, free: 27.29 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.33e-06/0.269, allocations: 5.438 kB / 0.5781 GB, free: 27.29 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005732/0.2696, allocations: 205.9 kB / 0.5783 GB, free: 27.2 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008432/0.2704, allocations: 0.6603 MB / 0.5789 GB, free: 26.64 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005579/0.271, allocations: 194.9 kB / 0.5791 GB, free: 26.54 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002835/0.2713, allocations: 88 kB / 0.5792 GB, free: 26.5 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.267e-05/0.2713, allocations: 11.38 kB / 0.5792 GB, free: 26.49 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004003/0.2717, allocations: 196.3 kB / 0.5794 GB, free: 26.36 MB / 446.1 MB Notification: Performance of pre-optimization done (n=19): time 1.402e-06/0.2717, allocations: 0.7812 kB / 0.5794 GB, free: 26.36 MB / 446.1 MB Notification: Performance of matching and sorting (n=19): time 0.0009264/0.2727, allocations: 330.5 kB / 0.5797 GB, free: 26.21 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.64e-05/0.2727, allocations: 146 kB / 0.5798 GB, free: 26.04 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001289/0.2728, allocations: 208.2 kB / 0.58 GB, free: 25.88 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 2.517e-05/0.2729, allocations: 39.33 kB / 0.5801 GB, free: 25.84 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.672e-05/0.2729, allocations: 164.3 kB / 0.5802 GB, free: 25.7 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.8e-05/0.273, allocations: 46.56 kB / 0.5803 GB, free: 25.66 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.191e-05/0.273, allocations: 73.28 kB / 0.5803 GB, free: 25.61 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.783e-05/0.2731, allocations: 331.4 kB / 0.5806 GB, free: 25.28 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003249/0.2734, allocations: 115 kB / 0.5808 GB, free: 25.23 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003364/0.2738, allocations: 189.8 kB / 0.5809 GB, free: 25.09 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005507/0.2743, allocations: 306.9 kB / 0.5812 GB, free: 24.86 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.2743, allocations: 1.062 kB / 0.5812 GB, free: 24.86 MB / 446.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0007491/0.2751, allocations: 433.2 kB / 0.5816 GB, free: 24.59 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.868e-05/0.2751, allocations: 97.59 kB / 0.5817 GB, free: 24.49 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.388e-06/0.2751, allocations: 2.375 kB / 0.5817 GB, free: 24.49 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.11e-05/0.2752, allocations: 2.5 kB / 0.5817 GB, free: 24.49 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002014/0.2754, allocations: 37.97 kB / 0.5818 GB, free: 24.48 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.013e-06/0.2754, allocations: 10.61 kB / 0.5818 GB, free: 24.47 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003072/0.2757, allocations: 69 kB / 0.5819 GB, free: 24.44 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.161e-05/0.2757, allocations: 14.25 kB / 0.5819 GB, free: 24.43 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 9.467e-05/0.2758, allocations: 151.8 kB / 0.582 GB, free: 24.29 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.049e-05/0.2758, allocations: 25.88 kB / 0.582 GB, free: 24.28 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.479e-05/0.2759, allocations: 29.89 kB / 0.5821 GB, free: 24.25 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.983e-06/0.2759, allocations: 7.344 kB / 0.5821 GB, free: 24.25 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.775e-06/0.2759, allocations: 1.125 kB / 0.5821 GB, free: 24.25 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.835e-06/0.2759, allocations: 0 / 0.5821 GB, free: 24.25 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008081/0.2767, allocations: 0.6137 MB / 0.5827 GB, free: 23.75 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.554e-06/0.2767, allocations: 4.984 kB / 0.5827 GB, free: 23.75 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001356/0.2769, allocations: 33.84 kB / 0.5827 GB, free: 23.73 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.155e-06/0.2769, allocations: 2.406 kB / 0.5827 GB, free: 23.73 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.521e-05/0.2769, allocations: 6.266 kB / 0.5827 GB, free: 23.73 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.373e-06/0.2769, allocations: 0.5938 kB / 0.5827 GB, free: 23.73 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.2769, allocations: 1.812 kB / 0.5827 GB, free: 23.73 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006074/0.2775, allocations: 345.6 kB / 0.5831 GB, free: 23.5 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.502e-05/0.2776, allocations: 94.83 kB / 0.5831 GB, free: 23.4 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.198e-05/0.2776, allocations: 9.562 kB / 0.5831 GB, free: 23.39 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002957/0.2779, allocations: 46.52 kB / 0.5832 GB, free: 23.38 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.768e-05/0.278, allocations: 52.53 kB / 0.5832 GB, free: 23.34 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.831e-05/0.278, allocations: 9.016 kB / 0.5833 GB, free: 23.34 MB / 446.1 MB Notification: Performance of sorting global known variables: time 7.939e-05/0.2781, allocations: 152.4 kB / 0.5834 GB, free: 23.23 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2781, allocations: 1.531 kB / 0.5834 GB, free: 23.23 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002683/0.2784, allocations: 62.88 kB / 0.5835 GB, free: 23.21 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.001096/0.2795, allocations: 1.016 MB / 0.5845 GB, free: 22.38 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0007295/0.2803, allocations: 439.5 kB / 0.5849 GB, free: 22.07 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.2803, allocations: 0 / 0.5849 GB, free: 22.07 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003207/0.2806, allocations: 117.7 kB / 0.585 GB, free: 22.03 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003081/0.2809, allocations: 37.59 kB / 0.585 GB, free: 22.01 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003031/0.2839, allocations: 2.678 MB / 0.5876 GB, free: 19.96 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001144/0.2841, allocations: 0.7409 MB / 0.5884 GB, free: 19.24 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 9.111e-05/0.2842, allocations: 25.5 kB / 0.5884 GB, free: 19.23 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001046/0.2843, allocations: 79.66 kB / 0.5885 GB, free: 19.16 MB / 446.1 MB Notification: Performance of SimCode: time 1.91e-07/0.2843, allocations: 0 / 0.5885 GB, free: 19.16 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.359/2.643, allocations: 5.625 MB / 0.594 GB, free: 15.79 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.84/15.48, allocations: 20.94 kB / 0.594 GB, free: 15.77 MB / 446.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IBPSA_latest_IBPSA_Fluid_HeatPumps_ModularReversible_Controls_Safety_Examples_MinimalFlowRate_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-08 IBPSA_latest_IBPSA_Fluid_HeatPumps_ModularReversible_Controls_Safety_Examples_MinimalFlowRate.fmu > IBPSA_latest_IBPSA.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate.pipe 2>&1)