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.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.001509/0.001509, allocations: 114.8 kB / 17.16 MB, free: 5.895 MB / 14.72 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.00166/0.00166, allocations: 210.3 kB / 20.13 MB, free: 2.949 MB / 14.72 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 1.445/1.445, allocations: 230.6 MB / 253.5 MB, free: 15.12 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 2.921/2.921, allocations: 0.5003 GB / 0.8026 GB, free: 6.707 MB / 0.6387 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 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(Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate,fileNamePrefix="Buildings_latest_Buildings_Fluid_HeatPumps_ModularReversible_Controls_Safety_Examples_MinimalFlowRate",fmuType="cs",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="cs",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001948/0.001948, allocations: 63.91 kB / 1.165 GB, free: 452 kB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8858/0.8878, allocations: 178.9 MB / 1.34 GB, free: 16.26 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate): time 0.00293/0.8907, allocations: 2.108 MB / 1.342 GB, free: 14.79 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.0009438/0.8916, allocations: 0.6205 MB / 1.343 GB, free: 14.35 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001133/0.8917, allocations: 2.969 kB / 1.343 GB, free: 14.35 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.0001195/0.8919, allocations: 30.02 kB / 1.343 GB, free: 14.33 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.0001269/0.892, allocations: 45.73 kB / 1.343 GB, free: 14.29 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002198/0.8922, allocations: 98.3 kB / 1.343 GB, free: 14.24 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0003102/0.8925, allocations: 311.8 kB / 1.343 GB, free: 14.09 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002099/0.8927, allocations: 100.9 kB / 1.343 GB, free: 14.04 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001484/0.8929, allocations: 135.4 kB / 1.344 GB, free: 13.97 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001519/0.893, allocations: 144.5 kB / 1.344 GB, free: 13.89 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 4.958e-05/0.8931, allocations: 30.38 kB / 1.344 GB, free: 13.89 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 3.771e-05/0.8931, allocations: 35.12 kB / 1.344 GB, free: 13.89 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 5.897e-05/0.8932, allocations: 74.86 kB / 1.344 GB, free: 13.84 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 0.0001028/0.8933, allocations: 134.3 kB / 1.344 GB, free: 13.75 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0003499/0.8936, allocations: 318.5 kB / 1.344 GB, free: 13.62 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.8936, allocations: 0 / 1.344 GB, free: 13.62 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.472e-06/0.8936, allocations: 0 / 1.344 GB, free: 13.62 MB / 1.061 GB Notification: Performance of Transformations before backend: time 7.163e-06/0.8936, allocations: 2.266 kB / 1.344 GB, free: 13.62 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: 52 * Number of variables: 52 Notification: Performance of Generate backend data structure: time 0.001109/0.8948, allocations: 0.6942 MB / 1.345 GB, free: 13.04 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.422e-05/0.8948, allocations: 10.22 kB / 1.345 GB, free: 13.04 MB / 1.061 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.345e-05/0.8948, allocations: 15.97 kB / 1.345 GB, free: 13.03 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.11e-05/0.8949, allocations: 62.78 kB / 1.345 GB, free: 12.97 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.691e-05/0.895, allocations: 33.81 kB / 1.345 GB, free: 12.96 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003398/0.8953, allocations: 281.8 kB / 1.345 GB, free: 12.71 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.071e-05/0.8953, allocations: 24.81 kB / 1.345 GB, free: 12.7 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.218e-05/0.8954, allocations: 34.73 kB / 1.345 GB, free: 12.68 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006436/0.896, allocations: 321.7 kB / 1.346 GB, free: 12.53 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.416e-05/0.896, allocations: 5.328 kB / 1.346 GB, free: 12.53 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.892e-05/0.8961, allocations: 11.36 kB / 1.346 GB, free: 12.52 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.144e-06/0.8961, allocations: 6.156 kB / 1.346 GB, free: 12.52 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006905/0.8968, allocations: 222.6 kB / 1.346 GB, free: 12.46 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001217/0.898, allocations: 0.7036 MB / 1.347 GB, free: 12.03 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006952/0.8987, allocations: 225.9 kB / 1.347 GB, free: 11.95 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003327/0.899, allocations: 105.1 kB / 1.347 GB, free: 11.92 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 2.237e-05/0.899, allocations: 1.75 kB / 1.347 GB, free: 11.92 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005236/0.8995, allocations: 218.6 kB / 1.347 GB, free: 11.83 MB / 1.061 GB Notification: Performance of pre-optimization done (n=25): time 2.124e-06/0.8995, allocations: 0 / 1.347 GB, free: 11.83 MB / 1.061 GB Notification: Performance of matching and sorting (n=27): time 0.001692/0.9012, allocations: 0.5501 MB / 1.348 GB, free: 11.65 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.55e-05/0.9013, allocations: 139.5 kB / 1.348 GB, free: 11.49 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001875/0.9015, allocations: 222.5 kB / 1.348 GB, free: 11.35 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 3.399e-05/0.9015, allocations: 41.17 kB / 1.348 GB, free: 11.31 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 7.768e-05/0.9016, allocations: 173 kB / 1.348 GB, free: 11.16 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 5.331e-05/0.9016, allocations: 77.67 kB / 1.348 GB, free: 11.1 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001178/0.9018, allocations: 83.58 kB / 1.348 GB, free: 11.05 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 5.762e-05/0.9018, allocations: 336.9 kB / 1.349 GB, free: 10.73 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003996/0.9022, allocations: 127.1 kB / 1.349 GB, free: 10.7 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004113/0.9026, allocations: 210.3 kB / 1.349 GB, free: 10.58 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006893/0.9033, allocations: 330.6 kB / 1.349 GB, free: 10.37 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.335e-06/0.9033, allocations: 1.125 kB / 1.349 GB, free: 10.37 MB / 1.061 GB Notification: Performance of matching and sorting (n=45) (initialization): time 0.000935/0.9043, allocations: 480.3 kB / 1.35 GB, free: 10.13 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 4.012e-05/0.9043, allocations: 91.98 kB / 1.35 GB, free: 10.04 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.024e-06/0.9043, allocations: 1.375 kB / 1.35 GB, free: 10.04 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.852e-05/0.9043, allocations: 3.625 kB / 1.35 GB, free: 10.04 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002618/0.9046, allocations: 56.09 kB / 1.35 GB, free: 10.03 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.405e-06/0.9046, allocations: 3.906 kB / 1.35 GB, free: 10.03 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003551/0.9049, allocations: 57.38 kB / 1.35 GB, free: 10.02 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.791e-05/0.905, allocations: 14.06 kB / 1.35 GB, free: 10.02 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: 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 (42): * Single equations (assignments): 39 * 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.0001329/0.9051, allocations: 166.1 kB / 1.35 GB, free: 9.867 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.152e-05/0.9051, allocations: 29.12 kB / 1.35 GB, free: 9.852 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.042e-05/0.9052, allocations: 33.69 kB / 1.35 GB, free: 9.824 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.39e-06/0.9052, allocations: 3.406 kB / 1.35 GB, free: 9.824 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.304e-06/0.9052, allocations: 0.7031 kB / 1.35 GB, free: 9.824 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.729e-06/0.9052, allocations: 1.172 kB / 1.35 GB, free: 9.824 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001832/0.9071, allocations: 0.7514 MB / 1.351 GB, free: 9.355 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.558e-06/0.9071, allocations: 0.9688 kB / 1.351 GB, free: 9.355 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002753/0.9073, allocations: 53.89 kB / 1.351 GB, free: 9.34 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.362e-06/0.9074, allocations: 2.656 kB / 1.351 GB, free: 9.34 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.385e-05/0.9074, allocations: 9.938 kB / 1.351 GB, free: 9.336 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.669e-06/0.9074, allocations: 2.562 kB / 1.351 GB, free: 9.336 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.407e-06/0.9074, allocations: 1.828 kB / 1.351 GB, free: 9.336 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001183/0.9086, allocations: 414.8 kB / 1.351 GB, free: 9.102 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 5.53e-05/0.9086, allocations: 109.1 kB / 1.352 GB, free: 8.984 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.368e-05/0.9087, allocations: 10.75 kB / 1.352 GB, free: 8.98 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005379/0.9092, allocations: 55.78 kB / 1.352 GB, free: 8.973 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00021/0.9095, allocations: 56.97 kB / 1.352 GB, free: 8.961 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.417e-05/0.9095, allocations: 14.88 kB / 1.352 GB, free: 8.957 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0001731/0.9097, allocations: 149.7 kB / 1.352 GB, free: 8.859 MB / 1.061 GB Notification: Performance of sort global known variables: time 9.1e-08/0.9097, allocations: 0 / 1.352 GB, free: 8.859 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0006217/0.9103, allocations: 62.33 kB / 1.352 GB, free: 8.848 MB / 1.061 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 (27): * Single equations (assignments): 20 * 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.002067/0.9124, allocations: 1.084 MB / 1.353 GB, free: 8.043 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.001423/0.9138, allocations: 461 kB / 1.353 GB, free: 7.777 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 4.057e-06/0.9138, allocations: 1.125 kB / 1.353 GB, free: 7.777 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0007272/0.9145, allocations: 158.6 kB / 1.354 GB, free: 7.734 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006889/0.9152, allocations: 39.38 kB / 1.354 GB, free: 7.719 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006572/0.9218, allocations: 2.937 MB / 1.356 GB, free: 5.727 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002535/0.922, allocations: 0.7529 MB / 1.357 GB, free: 5.027 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 0.0001956/0.9222, allocations: 27.69 kB / 1.357 GB, free: 5.02 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002352/0.9225, allocations: 87.06 kB / 1.357 GB, free: 4.961 MB / 1.061 GB Notification: Performance of SimCode: time 6.41e-07/0.9225, allocations: 1.25 kB / 1.357 GB, free: 4.961 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02808/0.9505, allocations: 6.57 MB / 1.364 GB, free: 4.25 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.275/9.225, allocations: 18.44 kB / 1.364 GB, free: 4.238 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_HeatPumps_ModularReversible_Controls_Safety_Examples_MinimalFlowRate_fmu --startTime=0 --stopTime=100 --stepSize=1 --timeout=800 --tolerance=1e-08 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 840.0] [Calling os._exit(0), Time elapsed: 15.420152042002883] Failed to read output from testmodel.py, exit status != 0: 9.367809790011961 9.386289823 8.488779307 Calling exit ...