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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0007799/0.0007799, allocations: 76.55 kB / 19.93 MB, free: 4.633 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0007644/0.0007644, allocations: 177.9 kB / 23.21 MB, free: 1.352 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8621/0.8621, allocations: 177.1 MB / 203.5 MB, free: 5.746 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA master/package.mo): time 0.5401/0.5401, allocations: 114 MB / 373.9 MB, free: 8.715 MB / 346.7 MB " [Timeout remaining time 179] Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.984e-06/1.984e-06, allocations: 0 / 0.5543 GB, free: 2.711 MB / 0.5105 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.9e-05/2.098e-05, allocations: 2.281 kB / 0.5543 GB, free: 2.707 MB / 0.5105 GB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate): time 0.003076/0.003097, allocations: 2.026 MB / 0.5562 GB, free: 0.6797 MB / 0.5105 GB Notification: Performance of NFInst.instExpressions: time 0.0009256/0.004023, allocations: 0.5882 MB / 0.5568 GB, free: 92 kB / 0.5105 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001338/0.004157, allocations: 4 kB / 0.5568 GB, free: 88 kB / 0.5105 GB Notification: Performance of NFTyping.typeComponents: time 0.0001312/0.004288, allocations: 35.66 kB / 0.5568 GB, free: 52 kB / 0.5105 GB Notification: Performance of NFTyping.typeBindings: time 0.0001392/0.004427, allocations: 47.52 kB / 0.5569 GB, free: 4 kB / 0.5105 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002717/0.004699, allocations: 99.86 kB / 0.557 GB, free: 15.91 MB / 0.5261 GB Notification: Performance of NFFlatten.flatten: time 0.0002748/0.004973, allocations: 311.2 kB / 0.5573 GB, free: 15.6 MB / 0.5261 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002194/0.005193, allocations: 96.39 kB / 0.5574 GB, free: 15.5 MB / 0.5261 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001884/0.005381, allocations: 187.6 kB / 0.5576 GB, free: 15.32 MB / 0.5261 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001141/0.005495, allocations: 107.7 kB / 0.5577 GB, free: 15.21 MB / 0.5261 GB Notification: Performance of NFPackage.collectConstants: time 4.374e-05/0.005539, allocations: 36 kB / 0.5577 GB, free: 15.18 MB / 0.5261 GB Notification: Performance of NFFlatten.collectFunctions: time 2.616e-05/0.005565, allocations: 35.94 kB / 0.5577 GB, free: 15.14 MB / 0.5261 GB Notification: Performance of NFScalarize.scalarize: time 4.771e-05/0.005613, allocations: 59.81 kB / 0.5578 GB, free: 15.09 MB / 0.5261 GB Notification: Performance of NFVerifyModel.verify: time 7.766e-05/0.005691, allocations: 95.73 kB / 0.5579 GB, free: 14.99 MB / 0.5261 GB Notification: Performance of NFConvertDAE.convert: time 0.0002825/0.005973, allocations: 338.9 kB / 0.5582 GB, free: 14.66 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 2.485e-06/0.005976, allocations: 3.938 kB / 0.5582 GB, free: 14.66 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.393e-06/0.005977, allocations: 4 kB / 0.5582 GB, free: 14.65 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 7.033e-06/0.005984, allocations: 0 / 0.5582 GB, free: 14.65 MB / 0.5261 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 52 * Number of variables: 52 Notification: Performance of Generate backend data structure: time 0.0008319/0.006816, allocations: 0.6203 MB / 0.5588 GB, free: 13.98 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 3.929e-05/0.006855, allocations: 12.56 kB / 0.5588 GB, free: 13.97 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.554e-05/0.006931, allocations: 63.22 kB / 0.5589 GB, free: 13.9 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.252e-05/0.006993, allocations: 36.75 kB / 0.5589 GB, free: 13.87 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003095/0.007303, allocations: 221.8 kB / 0.5591 GB, free: 13.62 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.3e-05/0.007326, allocations: 28.86 kB / 0.5592 GB, free: 13.59 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.006e-05/0.007356, allocations: 32.12 kB / 0.5592 GB, free: 13.56 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004392/0.007795, allocations: 416 kB / 0.5596 GB, free: 13.11 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.117e-06/0.007804, allocations: 0 / 0.5596 GB, free: 13.11 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.865e-05/0.007823, allocations: 8 kB / 0.5596 GB, free: 13.11 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.891e-06/0.007829, allocations: 4 kB / 0.5596 GB, free: 13.1 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003728/0.008201, allocations: 225.8 kB / 0.5598 GB, free: 12.88 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007788/0.00898, allocations: 0.5845 MB / 0.5604 GB, free: 12.25 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003576/0.009338, allocations: 206.4 kB / 0.5606 GB, free: 12.04 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001576/0.009495, allocations: 92.72 kB / 0.5607 GB, free: 11.95 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 1.36e-05/0.009509, allocations: 4 kB / 0.5607 GB, free: 11.94 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002957/0.009805, allocations: 208 kB / 0.5609 GB, free: 11.73 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=21): time 1.332e-06/0.009806, allocations: 0 / 0.5609 GB, free: 11.73 MB / 0.5261 GB Notification: Performance of matching and sorting (n=21): time 0.0006045/0.01041, allocations: 355.8 kB / 0.5612 GB, free: 11.38 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.047e-05/0.01047, allocations: 136.5 kB / 0.5613 GB, free: 11.21 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001473/0.01062, allocations: 231.7 kB / 0.5616 GB, free: 10.98 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 2.721e-05/0.01065, allocations: 41.7 kB / 0.5616 GB, free: 10.93 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 8.407e-05/0.01073, allocations: 164.7 kB / 0.5618 GB, free: 10.76 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 3.356e-05/0.01076, allocations: 63.58 kB / 0.5618 GB, free: 10.7 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.726e-05/0.01084, allocations: 73.62 kB / 0.5619 GB, free: 10.62 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 8.712e-05/0.01093, allocations: 334.8 kB / 0.5622 GB, free: 10.29 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004902/0.01142, allocations: 213.3 kB / 0.5624 GB, free: 10.05 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002634/0.01168, allocations: 351.1 kB / 0.5627 GB, free: 9.648 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003643/0.01205, allocations: 315.1 kB / 0.563 GB, free: 9.301 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.01205, allocations: 0 / 0.563 GB, free: 9.301 MB / 0.5261 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0005367/0.01258, allocations: 0.5295 MB / 0.5636 GB, free: 8.73 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 4.384e-05/0.01263, allocations: 89.09 kB / 0.5636 GB, free: 8.625 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.911e-06/0.01263, allocations: 0 / 0.5636 GB, free: 8.625 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.408e-05/0.01265, allocations: 4 kB / 0.5637 GB, free: 8.621 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001215/0.01277, allocations: 43.91 kB / 0.5637 GB, free: 8.578 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.049e-05/0.01278, allocations: 11.92 kB / 0.5637 GB, free: 8.566 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001821/0.01296, allocations: 71.84 kB / 0.5638 GB, free: 8.496 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.771e-05/0.01298, allocations: 16 kB / 0.5638 GB, free: 8.48 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 31 (minFloRatSaf.disErr.y,$PRE.minFloRatSaf.disErr.y,ySetOn.y,$PRE.ySetOn.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.canOpe,minFloRatSaf.errAndSetOn.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 (36): * Single equations (assignments): 33 * 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.0001144/0.01309, allocations: 160.4 kB / 0.5639 GB, free: 8.316 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.332e-05/0.01312, allocations: 23.8 kB / 0.564 GB, free: 8.293 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.196e-05/0.01316, allocations: 29.97 kB / 0.564 GB, free: 8.266 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.665e-06/0.01316, allocations: 0 / 0.564 GB, free: 8.266 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.502e-06/0.01317, allocations: 3.984 kB / 0.564 GB, free: 8.262 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.848e-06/0.01317, allocations: 7.938 kB / 0.564 GB, free: 8.254 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006323/0.01381, allocations: 0.5796 MB / 0.5646 GB, free: 7.625 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.01381, allocations: 0 / 0.5646 GB, free: 7.625 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.617e-05/0.01388, allocations: 31.91 kB / 0.5646 GB, free: 7.594 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.855e-06/0.01389, allocations: 4 kB / 0.5646 GB, free: 7.59 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.442e-05/0.0139, allocations: 7.984 kB / 0.5646 GB, free: 7.582 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.757e-06/0.0139, allocations: 7.938 kB / 0.5646 GB, free: 7.574 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.01391, allocations: 0 / 0.5646 GB, free: 7.574 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003905/0.0143, allocations: 366.4 kB / 0.565 GB, free: 7.203 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 1.833e-05/0.01431, allocations: 15.86 kB / 0.565 GB, free: 7.188 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.119e-05/0.01435, allocations: 16 kB / 0.565 GB, free: 7.172 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001517/0.0145, allocations: 47.92 kB / 0.565 GB, free: 7.125 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.686e-05/0.01459, allocations: 59.84 kB / 0.5651 GB, free: 7.066 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.935e-05/0.01461, allocations: 11.98 kB / 0.5651 GB, free: 7.055 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 8.09e-05/0.01469, allocations: 144.7 kB / 0.5653 GB, free: 6.914 MB / 0.5261 GB Notification: Performance of sort global known variables: time 5e-08/0.01469, allocations: 4 kB / 0.5653 GB, free: 6.91 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.0002171/0.01491, allocations: 67.83 kB / 0.5653 GB, free: 6.844 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 17 (minFloRatSaf.errAndSetOn.y,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,hys.y,minFloRatSaf.disErr.y,minFloRatSaf.canOpe,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,ySetOn.y) * Number of discrete states: 8 (mEvaEmu_flow.count,mConEmu_flow.count,ySetPul.count,minFloRatSaf.hysEva.y,minFloRatSaf.hysCon.y,ySetOn.y,hys.y,minFloRatSaf.disErr.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 14 * 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.0008147/0.01573, allocations: 1.035 MB / 0.5663 GB, free: 5.781 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.0005184/0.01624, allocations: 0.4991 MB / 0.5668 GB, free: 5.227 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.01625, allocations: 0 / 0.5668 GB, free: 5.227 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0001891/0.01644, allocations: 124.2 kB / 0.5669 GB, free: 5.105 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002493/0.01668, allocations: 32.64 kB / 0.567 GB, free: 5.07 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002904/0.01959, allocations: 3.121 MB / 0.57 GB, free: 1.758 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.466e-05/0.01967, allocations: 138.5 kB / 0.5701 GB, free: 1.598 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 8.58e-05/0.01976, allocations: 21.95 kB / 0.5702 GB, free: 1.578 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001139/0.01987, allocations: 88.45 kB / 0.5703 GB, free: 1.492 MB / 0.5261 GB Notification: Performance of SimCode: time 8.22e-07/0.01987, allocations: 0 / 0.5703 GB, free: 1.492 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02095/0.04082, allocations: 7.142 MB / 0.5772 GB, free: 10.62 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.091/7.132, allocations: 3.938 kB / 0.5772 GB, free: 10.62 MB / 0.5417 GB " [Timeout remaining time 653] (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) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 9.58491062745452] Failed to read output from testmodel.py, exit status != 0: 7.212949055247009 7.223303527 7.215330067 Calling exit ...