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.001362/0.001362, allocations: 102.1 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.001301/0.001301, allocations: 188.5 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.378/1.378, allocations: 222.9 MB / 240.9 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.8163/0.8163, allocations: 126.7 MB / 417.8 MB, free: 12.36 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001957/0.001958, allocations: 67.88 kB / 0.4959 GB, free: 2.688 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3474/0.3493, allocations: 78.86 MB / 0.5729 GB, free: 30.84 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate): time 0.002977/0.3524, allocations: 2.014 MB / 0.5749 GB, free: 29.45 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008538/0.3532, allocations: 0.5733 MB / 0.5754 GB, free: 29.04 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.951e-05/0.3533, allocations: 3.781 kB / 0.5754 GB, free: 29.04 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00011/0.3535, allocations: 25.03 kB / 0.5754 GB, free: 29.02 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001189/0.3536, allocations: 47.56 kB / 0.5755 GB, free: 28.98 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002068/0.3538, allocations: 89.64 kB / 0.5756 GB, free: 28.93 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002785/0.3541, allocations: 289.7 kB / 0.5758 GB, free: 28.8 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002341/0.3544, allocations: 122.5 kB / 0.576 GB, free: 28.73 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001326/0.3545, allocations: 118.2 kB / 0.5761 GB, free: 28.68 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001438/0.3546, allocations: 135.9 kB / 0.5762 GB, free: 28.61 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 5.85e-05/0.3547, allocations: 29.5 kB / 0.5762 GB, free: 28.61 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.279e-05/0.3548, allocations: 28.5 kB / 0.5763 GB, free: 28.61 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 7.683e-05/0.3549, allocations: 56.92 kB / 0.5763 GB, free: 28.57 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001405/0.355, allocations: 127.5 kB / 0.5764 GB, free: 28.48 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003078/0.3553, allocations: 292 kB / 0.5767 GB, free: 28.36 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.676e-06/0.3554, allocations: 0 / 0.5767 GB, free: 28.36 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.382e-06/0.3554, allocations: 1.438 kB / 0.5767 GB, free: 28.36 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.012e-05/0.3554, allocations: 0.6562 kB / 0.5767 GB, free: 28.36 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.001116/0.3565, allocations: 0.6544 MB / 0.5774 GB, free: 27.81 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.692e-05/0.3565, allocations: 9.625 kB / 0.5774 GB, free: 27.81 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.765e-05/0.3566, allocations: 57.64 kB / 0.5774 GB, free: 27.76 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.305e-05/0.3567, allocations: 31.69 kB / 0.5775 GB, free: 27.74 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002609/0.357, allocations: 263.4 kB / 0.5777 GB, free: 27.49 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.803e-05/0.357, allocations: 28.72 kB / 0.5777 GB, free: 27.48 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4e-05/0.357, allocations: 25 kB / 0.5778 GB, free: 27.47 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005807/0.3576, allocations: 289.2 kB / 0.578 GB, free: 27.29 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.978e-06/0.3577, allocations: 0 / 0.578 GB, free: 27.29 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.609e-05/0.3577, allocations: 10.75 kB / 0.578 GB, free: 27.28 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.634e-06/0.3577, allocations: 4.125 kB / 0.578 GB, free: 27.28 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006435/0.3583, allocations: 210.6 kB / 0.5782 GB, free: 27.18 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001036/0.3594, allocations: 0.6558 MB / 0.5789 GB, free: 26.63 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006611/0.3601, allocations: 196.1 kB / 0.5791 GB, free: 26.53 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003053/0.3604, allocations: 91.52 kB / 0.5792 GB, free: 26.49 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.105e-05/0.3604, allocations: 9.422 kB / 0.5792 GB, free: 26.48 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000507/0.3609, allocations: 196.6 kB / 0.5794 GB, free: 26.35 MB / 446.1 MB Notification: Performance of pre-optimization done (n=19): time 1.633e-06/0.3609, allocations: 5.188 kB / 0.5794 GB, free: 26.34 MB / 446.1 MB Notification: Performance of matching and sorting (n=19): time 0.001043/0.362, allocations: 333 kB / 0.5797 GB, free: 26.19 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.44e-05/0.3621, allocations: 135.2 kB / 0.5798 GB, free: 26.03 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001593/0.3622, allocations: 211.1 kB / 0.58 GB, free: 25.87 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 2.859e-05/0.3623, allocations: 43.5 kB / 0.5801 GB, free: 25.83 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.501e-05/0.3623, allocations: 162.3 kB / 0.5802 GB, free: 25.68 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.177e-05/0.3624, allocations: 42.86 kB / 0.5802 GB, free: 25.64 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.501e-05/0.3625, allocations: 75.44 kB / 0.5803 GB, free: 25.59 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.247e-05/0.3625, allocations: 331.1 kB / 0.5806 GB, free: 25.27 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003478/0.3629, allocations: 115.8 kB / 0.5807 GB, free: 25.21 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003626/0.3633, allocations: 195.5 kB / 0.5809 GB, free: 25.07 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006074/0.3639, allocations: 307.1 kB / 0.5812 GB, free: 24.84 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.056e-06/0.3639, allocations: 1.5 kB / 0.5812 GB, free: 24.84 MB / 446.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0008429/0.3647, allocations: 431.9 kB / 0.5816 GB, free: 24.58 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.962e-05/0.3648, allocations: 92.69 kB / 0.5817 GB, free: 24.48 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.165e-06/0.3648, allocations: 6.266 kB / 0.5817 GB, free: 24.47 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.664e-05/0.3648, allocations: 2.562 kB / 0.5817 GB, free: 24.47 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002343/0.3651, allocations: 45.05 kB / 0.5818 GB, free: 24.46 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.758e-06/0.3651, allocations: 3.531 kB / 0.5818 GB, free: 24.46 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003464/0.3655, allocations: 67.47 kB / 0.5818 GB, free: 24.43 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.624e-05/0.3655, allocations: 13.31 kB / 0.5819 GB, free: 24.42 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.0001293/0.3656, allocations: 151.3 kB / 0.582 GB, free: 24.28 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.423e-05/0.3657, allocations: 26.81 kB / 0.582 GB, free: 24.27 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.46e-05/0.3657, allocations: 26.39 kB / 0.5821 GB, free: 24.25 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.976e-06/0.3657, allocations: 0 / 0.5821 GB, free: 24.25 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.724e-06/0.3657, allocations: 3.688 kB / 0.5821 GB, free: 24.25 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.898e-06/0.3658, allocations: 0 / 0.5821 GB, free: 24.25 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009617/0.3667, allocations: 0.6233 MB / 0.5827 GB, free: 23.74 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.834e-06/0.3667, allocations: 0.5 kB / 0.5827 GB, free: 23.74 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001476/0.3669, allocations: 30.84 kB / 0.5827 GB, free: 23.73 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.294e-06/0.3669, allocations: 0.5 kB / 0.5827 GB, free: 23.73 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.752e-05/0.3669, allocations: 7.547 kB / 0.5827 GB, free: 23.72 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.3669, allocations: 0 / 0.5827 GB, free: 23.72 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/0.3669, allocations: 2.656 kB / 0.5827 GB, free: 23.72 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006711/0.3676, allocations: 351.2 kB / 0.583 GB, free: 23.49 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.478e-05/0.3677, allocations: 94.2 kB / 0.5831 GB, free: 23.39 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.697e-05/0.3677, allocations: 11.23 kB / 0.5831 GB, free: 23.38 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003179/0.368, allocations: 44.03 kB / 0.5832 GB, free: 23.36 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001234/0.3682, allocations: 52 kB / 0.5832 GB, free: 23.33 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.367e-05/0.3682, allocations: 10.3 kB / 0.5832 GB, free: 23.33 MB / 446.1 MB Notification: Performance of sorting global known variables: time 9.659e-05/0.3683, allocations: 148.1 kB / 0.5834 GB, free: 23.22 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3683, allocations: 3.938 kB / 0.5834 GB, free: 23.21 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0003065/0.3686, allocations: 64.25 kB / 0.5834 GB, free: 23.2 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.001274/0.3699, allocations: 1.015 MB / 0.5844 GB, free: 22.37 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0008281/0.3707, allocations: 438.4 kB / 0.5849 GB, free: 22.06 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.3707, allocations: 1.125 kB / 0.5849 GB, free: 22.06 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000344/0.3711, allocations: 117.7 kB / 0.585 GB, free: 22.02 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003574/0.3715, allocations: 44 kB / 0.585 GB, free: 21.99 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00364/0.3751, allocations: 2.688 MB / 0.5876 GB, free: 19.94 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001695/0.3753, allocations: 0.7404 MB / 0.5884 GB, free: 19.21 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0001134/0.3754, allocations: 22.14 kB / 0.5884 GB, free: 19.21 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00012/0.3755, allocations: 77.73 kB / 0.5885 GB, free: 19.14 MB / 446.1 MB Notification: Performance of SimCode: time 2e-07/0.3755, allocations: 3.938 kB / 0.5885 GB, free: 19.14 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02619/0.4017, allocations: 5.629 MB / 0.594 GB, free: 15.79 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.084/8.486, allocations: 20.17 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 & python3 -m fmpy simulate --output-file IBPSA_latest_IBPSA.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate_res.csv --start-time 0 --stop-time 100 --timeout 50 --relative-tolerance 1e-08 --interface-type ModelExchange --solver CVode --output-interval 1 IBPSA_latest_IBPSA_Fluid_HeatPumps_ModularReversible_Controls_Safety_Examples_MinimalFlowRate.fmu > IBPSA_latest_IBPSA.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate.pipe 2>&1)