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.001434/0.001434, allocations: 102.4 kB / 15.98 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.001125/0.001125, allocations: 198.7 kB / 16.91 MB, free: 6.199 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.281/1.281, allocations: 222.9 MB / 240.6 MB, free: 13.72 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.8404/0.8404, allocations: 126.7 MB / 417.4 MB, free: 12.52 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00198/0.00198, allocations: 67.88 kB / 0.4954 GB, free: 3.035 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3309/0.3329, allocations: 78.86 MB / 0.5724 GB, free: 30.29 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate): time 0.002825/0.3357, allocations: 2.071 MB / 0.5744 GB, free: 28.86 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008063/0.3366, allocations: 0.5615 MB / 0.575 GB, free: 28.46 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001078/0.3367, allocations: 2.875 kB / 0.575 GB, free: 28.46 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001158/0.3368, allocations: 17.2 kB / 0.575 GB, free: 28.45 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001157/0.3369, allocations: 29.16 kB / 0.575 GB, free: 28.43 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001912/0.3371, allocations: 85.3 kB / 0.5751 GB, free: 28.38 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002845/0.3374, allocations: 288.2 kB / 0.5754 GB, free: 28.24 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002303/0.3377, allocations: 133.3 kB / 0.5755 GB, free: 28.17 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001247/0.3378, allocations: 117.4 kB / 0.5756 GB, free: 28.11 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001366/0.3379, allocations: 130.7 kB / 0.5757 GB, free: 28.05 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 4.791e-05/0.338, allocations: 28.75 kB / 0.5758 GB, free: 28.05 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.572e-05/0.338, allocations: 29.47 kB / 0.5758 GB, free: 28.05 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 5.573e-05/0.3381, allocations: 60.17 kB / 0.5759 GB, free: 28.01 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001018/0.3382, allocations: 124.5 kB / 0.576 GB, free: 27.93 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002931/0.3385, allocations: 299 kB / 0.5763 GB, free: 27.8 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.007e-06/0.3385, allocations: 1.875 kB / 0.5763 GB, free: 27.8 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.173e-06/0.3385, allocations: 0.7188 kB / 0.5763 GB, free: 27.8 MB / 446.1 MB Notification: Performance of Transformations before backend: time 6.182e-06/0.3385, allocations: 0 / 0.5763 GB, free: 27.8 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.001189/0.3397, allocations: 0.6512 MB / 0.5769 GB, free: 27.25 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.07e-05/0.3398, allocations: 10.33 kB / 0.5769 GB, free: 27.25 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.68e-05/0.3399, allocations: 57.56 kB / 0.577 GB, free: 27.2 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.329e-05/0.3399, allocations: 31.69 kB / 0.577 GB, free: 27.18 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002411/0.3402, allocations: 263.6 kB / 0.5772 GB, free: 26.93 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.31e-05/0.3402, allocations: 22.94 kB / 0.5773 GB, free: 26.92 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.785e-05/0.3403, allocations: 21.62 kB / 0.5773 GB, free: 26.91 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006343/0.3409, allocations: 295.3 kB / 0.5776 GB, free: 26.77 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.061e-05/0.3409, allocations: 0 / 0.5776 GB, free: 26.77 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.885e-05/0.341, allocations: 11.2 kB / 0.5776 GB, free: 26.77 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.825e-06/0.341, allocations: 6.344 kB / 0.5776 GB, free: 26.77 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007052/0.3417, allocations: 204.4 kB / 0.5778 GB, free: 26.72 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001115/0.3428, allocations: 0.6557 MB / 0.5784 GB, free: 26.3 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006233/0.3435, allocations: 200 kB / 0.5786 GB, free: 26.21 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002878/0.3437, allocations: 87.84 kB / 0.5787 GB, free: 26.17 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.037e-05/0.3438, allocations: 10.34 kB / 0.5787 GB, free: 26.16 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005186/0.3443, allocations: 197.3 kB / 0.5789 GB, free: 26.03 MB / 446.1 MB Notification: Performance of pre-optimization done (n=19): time 1.713e-06/0.3443, allocations: 0 / 0.5789 GB, free: 26.03 MB / 446.1 MB Notification: Performance of matching and sorting (n=19): time 0.001012/0.3453, allocations: 330.4 kB / 0.5792 GB, free: 25.88 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.245e-05/0.3454, allocations: 151.4 kB / 0.5793 GB, free: 25.71 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001505/0.3456, allocations: 212.7 kB / 0.5796 GB, free: 25.55 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 3.192e-05/0.3456, allocations: 38.64 kB / 0.5796 GB, free: 25.51 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.948e-05/0.3457, allocations: 161.9 kB / 0.5797 GB, free: 25.36 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.426e-05/0.3457, allocations: 48.19 kB / 0.5798 GB, free: 25.32 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.669e-05/0.3458, allocations: 71.97 kB / 0.5799 GB, free: 25.27 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.916e-05/0.3459, allocations: 332.2 kB / 0.5802 GB, free: 24.94 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003454/0.3462, allocations: 110.9 kB / 0.5803 GB, free: 24.89 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003558/0.3466, allocations: 193.7 kB / 0.5805 GB, free: 24.75 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005909/0.3472, allocations: 302.7 kB / 0.5808 GB, free: 24.53 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.504e-06/0.3472, allocations: 3.938 kB / 0.5808 GB, free: 24.53 MB / 446.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.00087/0.3481, allocations: 435.6 kB / 0.5812 GB, free: 24.26 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.892e-05/0.3481, allocations: 90.61 kB / 0.5813 GB, free: 24.16 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.702e-06/0.3481, allocations: 5.422 kB / 0.5813 GB, free: 24.16 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.538e-05/0.3482, allocations: 4.781 kB / 0.5813 GB, free: 24.16 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002203/0.3484, allocations: 35.44 kB / 0.5813 GB, free: 24.15 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.055e-06/0.3484, allocations: 7.219 kB / 0.5813 GB, free: 24.14 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003541/0.3488, allocations: 66.31 kB / 0.5814 GB, free: 24.11 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.933e-05/0.3488, allocations: 16.36 kB / 0.5814 GB, free: 24.11 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.0001197/0.3489, allocations: 147.7 kB / 0.5815 GB, free: 23.97 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.525e-05/0.349, allocations: 34.62 kB / 0.5816 GB, free: 23.95 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.349e-05/0.349, allocations: 30.42 kB / 0.5816 GB, free: 23.93 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.597e-06/0.349, allocations: 2.531 kB / 0.5816 GB, free: 23.93 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.669e-06/0.349, allocations: 0.6562 kB / 0.5816 GB, free: 23.93 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.557e-06/0.349, allocations: 0 / 0.5816 GB, free: 23.93 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009666/0.35, allocations: 0.6142 MB / 0.5822 GB, free: 23.43 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.505e-06/0.35, allocations: 4.578 kB / 0.5822 GB, free: 23.43 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001476/0.3502, allocations: 41.77 kB / 0.5822 GB, free: 23.41 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.274e-06/0.3502, allocations: 0 / 0.5822 GB, free: 23.41 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.852e-05/0.3502, allocations: 2.594 kB / 0.5822 GB, free: 23.41 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.764e-06/0.3502, allocations: 0 / 0.5822 GB, free: 23.41 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.3502, allocations: 3.984 kB / 0.5822 GB, free: 23.4 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006928/0.3509, allocations: 346.6 kB / 0.5826 GB, free: 23.18 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.256e-05/0.351, allocations: 94.05 kB / 0.5827 GB, free: 23.07 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.739e-05/0.351, allocations: 9.094 kB / 0.5827 GB, free: 23.07 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003358/0.3514, allocations: 42.66 kB / 0.5827 GB, free: 23.05 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001297/0.3515, allocations: 57.83 kB / 0.5828 GB, free: 23.02 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.393e-05/0.3515, allocations: 9.5 kB / 0.5828 GB, free: 23.01 MB / 446.1 MB Notification: Performance of sorting global known variables: time 9.469e-05/0.3516, allocations: 149.2 kB / 0.5829 GB, free: 22.9 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3516, allocations: 1.406 kB / 0.5829 GB, free: 22.9 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.000311/0.352, allocations: 61.41 kB / 0.583 GB, free: 22.89 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.001232/0.3532, allocations: 1.019 MB / 0.584 GB, free: 22.05 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0008454/0.3541, allocations: 431.6 kB / 0.5844 GB, free: 21.75 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.757e-06/0.3541, allocations: 3.984 kB / 0.5844 GB, free: 21.75 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003566/0.3544, allocations: 122.7 kB / 0.5845 GB, free: 21.7 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003649/0.3548, allocations: 30.2 kB / 0.5845 GB, free: 21.69 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0036/0.3584, allocations: 2.744 MB / 0.5872 GB, free: 19.58 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001715/0.3586, allocations: 0.7393 MB / 0.5879 GB, free: 18.86 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0001344/0.3588, allocations: 25.47 kB / 0.588 GB, free: 18.85 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001314/0.3589, allocations: 76.72 kB / 0.588 GB, free: 18.79 MB / 446.1 MB Notification: Performance of SimCode: time 9.81e-07/0.3589, allocations: 4.109 kB / 0.588 GB, free: 18.78 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03258/0.3915, allocations: 5.324 MB / 0.5932 GB, free: 16.24 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000154/0.3917, allocations: 243.1 kB / 0.5935 GB, free: 15.98 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.251/2.643, allocations: 0 / 0.5935 GB, free: 15.98 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)