Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001688/0.001688, allocations: 114.7 kB / 17.6 MB, free: 4.699 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001974/0.001974, allocations: 186 kB / 20.78 MB, free: 1.539 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.444/1.444, allocations: 225.6 MB / 249.4 MB, free: 3.172 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.901/2.901, allocations: 496.2 MB / 0.7819 GB, free: 12.28 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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(Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate,fileNamePrefix="Buildings_latest_Buildings_Fluid_HeatPumps_ModularReversible_Controls_Safety_Examples_MinimalFlowRate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate,fileNamePrefix="Buildings_latest_Buildings_Fluid_HeatPumps_ModularReversible_Controls_Safety_Examples_MinimalFlowRate",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.00209/0.00209, allocations: 67.89 kB / 1.135 GB, free: 12.91 MB / 0.92 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.872/0.8741, allocations: 173.6 MB / 1.305 GB, free: 33.13 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate): time 0.002517/0.8766, allocations: 2.073 MB / 1.307 GB, free: 31.71 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.0007553/0.8774, allocations: 0.5699 MB / 1.308 GB, free: 31.3 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.738e-05/0.8775, allocations: 6.844 kB / 1.308 GB, free: 31.3 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.0001045/0.8776, allocations: 30.44 kB / 1.308 GB, free: 31.27 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.0001167/0.8777, allocations: 36.61 kB / 1.308 GB, free: 31.25 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002068/0.8779, allocations: 108.9 kB / 1.308 GB, free: 31.18 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0002368/0.8781, allocations: 286.3 kB / 1.308 GB, free: 31.04 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001859/0.8783, allocations: 93.83 kB / 1.308 GB, free: 30.99 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001052/0.8784, allocations: 114 kB / 1.308 GB, free: 30.93 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001164/0.8786, allocations: 132.8 kB / 1.308 GB, free: 30.87 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 4.035e-05/0.8786, allocations: 27.56 kB / 1.308 GB, free: 30.87 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 3.448e-05/0.8786, allocations: 30.47 kB / 1.308 GB, free: 30.87 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 4.251e-05/0.8787, allocations: 67.17 kB / 1.309 GB, free: 30.82 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 7.828e-05/0.8788, allocations: 125.5 kB / 1.309 GB, free: 30.74 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0002384/0.879, allocations: 298.6 kB / 1.309 GB, free: 30.61 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.879, allocations: 4 kB / 1.309 GB, free: 30.61 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.082e-06/0.879, allocations: 0 / 1.309 GB, free: 30.61 MB / 1.061 GB Notification: Performance of Transformations before backend: time 1.15e-05/0.879, allocations: 0 / 1.309 GB, free: 30.61 MB / 1.061 GB 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.0009554/0.88, allocations: 0.6645 MB / 1.31 GB, free: 30.04 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.16e-05/0.88, allocations: 8.844 kB / 1.31 GB, free: 30.04 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.258e-05/0.8801, allocations: 60.09 kB / 1.31 GB, free: 29.98 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.583e-05/0.8801, allocations: 34.16 kB / 1.31 GB, free: 29.97 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002538/0.8804, allocations: 262.2 kB / 1.31 GB, free: 29.71 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.675e-05/0.8804, allocations: 23.91 kB / 1.31 GB, free: 29.71 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.513e-05/0.8804, allocations: 22.81 kB / 1.31 GB, free: 29.7 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005235/0.8809, allocations: 296 kB / 1.31 GB, free: 29.55 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.015e-05/0.881, allocations: 0 / 1.31 GB, free: 29.55 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.349e-05/0.881, allocations: 10.05 kB / 1.31 GB, free: 29.55 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.18e-06/0.881, allocations: 2.656 kB / 1.31 GB, free: 29.55 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005971/0.8816, allocations: 200.5 kB / 1.31 GB, free: 29.51 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009167/0.8825, allocations: 0.6573 MB / 1.311 GB, free: 29.08 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000577/0.8831, allocations: 192.6 kB / 1.311 GB, free: 29.02 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002796/0.8834, allocations: 84.8 kB / 1.311 GB, free: 29 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 1.45e-05/0.8834, allocations: 0 / 1.311 GB, free: 29 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004237/0.8838, allocations: 204.1 kB / 1.312 GB, free: 28.91 MB / 1.061 GB Notification: Performance of pre-optimization done (n=19): time 2.064e-06/0.8838, allocations: 3.984 kB / 1.312 GB, free: 28.9 MB / 1.061 GB Notification: Performance of matching and sorting (n=19): time 0.0009683/0.8848, allocations: 335.2 kB / 1.312 GB, free: 28.81 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.093e-05/0.8848, allocations: 135.6 kB / 1.312 GB, free: 28.65 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001428/0.8849, allocations: 219.6 kB / 1.312 GB, free: 28.5 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 2.793e-05/0.885, allocations: 39.33 kB / 1.312 GB, free: 28.46 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 6.58e-05/0.885, allocations: 163.4 kB / 1.312 GB, free: 28.32 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 3.117e-05/0.8851, allocations: 51.62 kB / 1.312 GB, free: 28.28 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.76e-05/0.8852, allocations: 74.19 kB / 1.313 GB, free: 28.23 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 4.585e-05/0.8852, allocations: 335.2 kB / 1.313 GB, free: 27.91 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003276/0.8855, allocations: 114 kB / 1.313 GB, free: 27.89 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000348/0.8859, allocations: 184.6 kB / 1.313 GB, free: 27.78 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005584/0.8864, allocations: 310.5 kB / 1.313 GB, free: 27.58 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.8864, allocations: 0 / 1.313 GB, free: 27.58 MB / 1.061 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0007625/0.8872, allocations: 434.6 kB / 1.314 GB, free: 27.36 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 3.531e-05/0.8872, allocations: 95.7 kB / 1.314 GB, free: 27.26 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.022e-06/0.8872, allocations: 2.938 kB / 1.314 GB, free: 27.26 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.551e-05/0.8873, allocations: 10.34 kB / 1.314 GB, free: 27.25 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002039/0.8875, allocations: 38.61 kB / 1.314 GB, free: 27.25 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.715e-06/0.8875, allocations: 11 kB / 1.314 GB, free: 27.25 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003152/0.8878, allocations: 67.41 kB / 1.314 GB, free: 27.23 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.437e-05/0.8878, allocations: 12.59 kB / 1.314 GB, free: 27.22 MB / 1.061 GB 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.0001098/0.8879, allocations: 149.5 kB / 1.314 GB, free: 27.09 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.143e-05/0.8879, allocations: 24.23 kB / 1.314 GB, free: 27.07 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.164e-05/0.888, allocations: 35.09 kB / 1.314 GB, free: 27.05 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.986e-06/0.888, allocations: 2.781 kB / 1.314 GB, free: 27.05 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.148e-06/0.888, allocations: 0 / 1.314 GB, free: 27.05 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.216e-06/0.888, allocations: 0 / 1.314 GB, free: 27.05 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008686/0.8889, allocations: 0.6126 MB / 1.315 GB, free: 26.65 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.8889, allocations: 4 kB / 1.315 GB, free: 26.65 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001399/0.889, allocations: 35.39 kB / 1.315 GB, free: 26.64 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.415e-06/0.889, allocations: 2.906 kB / 1.315 GB, free: 26.64 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.641e-05/0.889, allocations: 3.188 kB / 1.315 GB, free: 26.64 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.314e-06/0.889, allocations: 2.844 kB / 1.315 GB, free: 26.64 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.889, allocations: 0 / 1.315 GB, free: 26.64 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006308/0.8897, allocations: 346.4 kB / 1.315 GB, free: 26.46 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 3.162e-05/0.8897, allocations: 101.8 kB / 1.315 GB, free: 26.35 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.003e-05/0.8897, allocations: 6.844 kB / 1.315 GB, free: 26.34 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000298/0.89, allocations: 41.75 kB / 1.315 GB, free: 26.34 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001198/0.8902, allocations: 63.14 kB / 1.315 GB, free: 26.32 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.132e-05/0.8902, allocations: 8.906 kB / 1.315 GB, free: 26.32 MB / 1.061 GB Notification: Performance of sorting global known variables: time 8.39e-05/0.8903, allocations: 144.8 kB / 1.316 GB, free: 26.22 MB / 1.061 GB Notification: Performance of sort global known variables: time 8e-08/0.8903, allocations: 0 / 1.316 GB, free: 26.22 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002929/0.8906, allocations: 69.84 kB / 1.316 GB, free: 26.2 MB / 1.061 GB 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.001117/0.8917, allocations: 1.009 MB / 1.317 GB, free: 25.45 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0007338/0.8924, allocations: 420.4 kB / 1.317 GB, free: 25.2 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.365e-06/0.8924, allocations: 0 / 1.317 GB, free: 25.2 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.000325/0.8927, allocations: 114.6 kB / 1.317 GB, free: 25.17 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003329/0.8931, allocations: 34.41 kB / 1.317 GB, free: 25.16 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003237/0.8963, allocations: 2.7 MB / 1.32 GB, free: 23.33 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001282/0.8964, allocations: 0.7445 MB / 1.321 GB, free: 22.62 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 9.836e-05/0.8965, allocations: 24.39 kB / 1.321 GB, free: 22.62 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001208/0.8967, allocations: 74.61 kB / 1.321 GB, free: 22.57 MB / 1.061 GB Notification: Performance of SimCode: time 4.31e-07/0.8967, allocations: 2.938 kB / 1.321 GB, free: 22.57 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02689/0.9235, allocations: 5.742 MB / 1.326 GB, free: 21.91 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.152/9.076, allocations: 12.75 kB / 1.326 GB, free: 21.9 MB / 1.061 GB " [Timeout remaining time 291] (rm -f Buildings_latest_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate.pipe ; mkfifo Buildings_latest_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate.pipe >> ../files/Buildings_latest_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate_res.csv --start-time 0 --stop-time 100 --timeout 400 --relative-tolerance 1e-08 --interface-type ModelExchange --solver CVode --output-interval 1 Buildings_latest_Buildings_Fluid_HeatPumps_ModularReversible_Controls_Safety_Examples_MinimalFlowRate.fmu > Buildings_latest_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate.pipe 2>&1) [Timeout 420.0] [Calling os._exit(0), Time elapsed: 15.143917987006716] Failed to read output from testmodel.py, exit status != 0: 9.145945094001945 9.160850395 8.279039588 Calling exit ...