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.001394/0.001394, allocations: 110.1 kB / 19.73 MB, free: 2.242 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.001542/0.001542, allocations: 218.4 kB / 23.04 MB, free: 5.074 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.296/1.296, allocations: 230.6 MB / 256.8 MB, free: 7.98 MB / 206.1 MB " [Timeout remaining time 179] 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.831/2.831, allocations: 0.5003 GB / 0.8061 GB, free: 26.79 MB / 0.6231 GB " [Timeout remaining time 177] 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.001795/0.001795, allocations: 66.41 kB / 1.171 GB, free: 19.76 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2818/0.2836, allocations: 179 MB / 1.345 GB, free: 416 kB / 1.029 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate): time 0.003432/0.287, allocations: 2.125 MB / 1.347 GB, free: 14.27 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.001045/0.2881, allocations: 0.6234 MB / 1.348 GB, free: 13.64 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001047/0.2882, allocations: 4 kB / 1.348 GB, free: 13.64 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 0.0001252/0.2883, allocations: 31.61 kB / 1.348 GB, free: 13.61 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 0.0001352/0.2884, allocations: 51.56 kB / 1.348 GB, free: 13.55 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002462/0.2887, allocations: 95.89 kB / 1.348 GB, free: 13.46 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0003373/0.289, allocations: 303.3 kB / 1.349 GB, free: 13.16 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002313/0.2892, allocations: 104.4 kB / 1.349 GB, free: 13.05 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001717/0.2894, allocations: 139.5 kB / 1.349 GB, free: 12.92 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001681/0.2896, allocations: 151.3 kB / 1.349 GB, free: 12.77 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 4.797e-05/0.2896, allocations: 32 kB / 1.349 GB, free: 12.74 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 4.304e-05/0.2897, allocations: 32 kB / 1.349 GB, free: 12.71 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 6.69e-05/0.2897, allocations: 75.69 kB / 1.349 GB, free: 12.63 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 0.0001208/0.2899, allocations: 131.3 kB / 1.349 GB, free: 12.5 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0003339/0.2902, allocations: 318.7 kB / 1.349 GB, free: 12.19 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 3.998e-06/0.2902, allocations: 0 / 1.349 GB, free: 12.19 MB / 1.045 GB Notification: Performance of FrontEnd: time 9.72e-07/0.2902, allocations: 0 / 1.349 GB, free: 12.19 MB / 1.045 GB Notification: Performance of Transformations before backend: time 5.57e-06/0.2902, allocations: 0 / 1.349 GB, free: 12.19 MB / 1.045 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.001149/0.2914, allocations: 0.62 MB / 1.35 GB, free: 11.52 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 3.432e-05/0.2914, allocations: 12.03 kB / 1.35 GB, free: 11.51 MB / 1.045 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.158e-05/0.2914, allocations: 8.609 kB / 1.35 GB, free: 11.5 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.192e-05/0.2915, allocations: 59.23 kB / 1.35 GB, free: 11.43 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.123e-05/0.2916, allocations: 44.73 kB / 1.35 GB, free: 11.39 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003547/0.2919, allocations: 210.7 kB / 1.35 GB, free: 11.16 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.896e-05/0.292, allocations: 24.81 kB / 1.35 GB, free: 11.14 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.166e-05/0.292, allocations: 36.11 kB / 1.35 GB, free: 11.1 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006561/0.2927, allocations: 325.2 kB / 1.351 GB, free: 10.76 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.14e-05/0.2927, allocations: 3.953 kB / 1.351 GB, free: 10.76 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.085e-05/0.2927, allocations: 12 kB / 1.351 GB, free: 10.75 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.953e-06/0.2927, allocations: 4 kB / 1.351 GB, free: 10.74 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006897/0.2934, allocations: 229.7 kB / 1.351 GB, free: 10.52 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001202/0.2946, allocations: 0.6615 MB / 1.352 GB, free: 9.812 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006565/0.2953, allocations: 214.8 kB / 1.352 GB, free: 9.594 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000318/0.2956, allocations: 108.7 kB / 1.352 GB, free: 9.484 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 1.66e-05/0.2956, allocations: 7.984 kB / 1.352 GB, free: 9.477 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005021/0.2961, allocations: 219 kB / 1.352 GB, free: 9.25 MB / 1.045 GB Notification: Performance of pre-optimization done (n=25): time 1.503e-06/0.2961, allocations: 0 / 1.352 GB, free: 9.25 MB / 1.045 GB Notification: Performance of matching and sorting (n=27): time 0.001612/0.2977, allocations: 0.5491 MB / 1.353 GB, free: 8.699 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.518e-05/0.2978, allocations: 140.7 kB / 1.353 GB, free: 8.531 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002065/0.298, allocations: 227.8 kB / 1.353 GB, free: 8.301 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 4.512e-05/0.2981, allocations: 41.7 kB / 1.353 GB, free: 8.254 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001144/0.2982, allocations: 168.7 kB / 1.353 GB, free: 8.086 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 7.045e-05/0.2982, allocations: 75.41 kB / 1.353 GB, free: 8.012 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001276/0.2984, allocations: 85.42 kB / 1.353 GB, free: 7.922 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001387/0.2985, allocations: 342.8 kB / 1.354 GB, free: 7.578 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003918/0.2989, allocations: 132.3 kB / 1.354 GB, free: 7.449 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004349/0.2993, allocations: 208 kB / 1.354 GB, free: 7.219 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007095/0.3, allocations: 335.3 kB / 1.354 GB, free: 6.852 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.433e-06/0.3, allocations: 0 / 1.354 GB, free: 6.852 MB / 1.045 GB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0009676/0.301, allocations: 468.8 kB / 1.355 GB, free: 6.371 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 7.007e-05/0.3011, allocations: 89.27 kB / 1.355 GB, free: 6.266 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.284e-05/0.3011, allocations: 11.98 kB / 1.355 GB, free: 6.254 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.367e-05/0.3011, allocations: 0 / 1.355 GB, free: 6.254 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002522/0.3014, allocations: 55.89 kB / 1.355 GB, free: 6.199 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.222e-06/0.3014, allocations: 4 kB / 1.355 GB, free: 6.195 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003329/0.3017, allocations: 51.94 kB / 1.355 GB, free: 6.145 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.012e-05/0.3017, allocations: 16 kB / 1.355 GB, free: 6.129 MB / 1.045 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.0001711/0.3019, allocations: 164.3 kB / 1.355 GB, free: 5.961 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.118e-05/0.3019, allocations: 27.8 kB / 1.355 GB, free: 5.934 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.622e-05/0.302, allocations: 38.58 kB / 1.355 GB, free: 5.895 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.698e-06/0.302, allocations: 4 kB / 1.355 GB, free: 5.891 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.209e-06/0.302, allocations: 0 / 1.355 GB, free: 5.891 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.757e-06/0.302, allocations: 0 / 1.355 GB, free: 5.891 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001365/0.3034, allocations: 0.7229 MB / 1.356 GB, free: 5.105 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.3034, allocations: 0 / 1.356 GB, free: 5.105 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001748/0.3036, allocations: 51.83 kB / 1.356 GB, free: 5.055 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.655e-06/0.3036, allocations: 0 / 1.356 GB, free: 5.055 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.491e-05/0.3036, allocations: 11.98 kB / 1.356 GB, free: 5.043 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.017e-06/0.3036, allocations: 4 kB / 1.356 GB, free: 5.039 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.846e-06/0.3036, allocations: 4 kB / 1.356 GB, free: 5.035 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007871/0.3044, allocations: 410.9 kB / 1.356 GB, free: 4.605 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 2.98e-05/0.3044, allocations: 31.73 kB / 1.356 GB, free: 4.574 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.946e-05/0.3045, allocations: 15.98 kB / 1.356 GB, free: 4.559 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000321/0.3048, allocations: 43.94 kB / 1.357 GB, free: 4.516 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001418/0.3049, allocations: 63.89 kB / 1.357 GB, free: 4.453 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.084e-05/0.305, allocations: 11.98 kB / 1.357 GB, free: 4.441 MB / 1.045 GB Notification: Performance of sorting global known variables: time 0.0001359/0.3051, allocations: 156.6 kB / 1.357 GB, free: 4.289 MB / 1.045 GB Notification: Performance of sort global known variables: time 7e-08/0.3051, allocations: 0 / 1.357 GB, free: 4.289 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0003005/0.3054, allocations: 56 kB / 1.357 GB, free: 4.234 MB / 1.045 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.001522/0.3069, allocations: 1.094 MB / 1.358 GB, free: 3.102 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0009198/0.3078, allocations: 457.7 kB / 1.358 GB, free: 2.617 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.3078, allocations: 0 / 1.358 GB, free: 2.617 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.0004438/0.3083, allocations: 156.3 kB / 1.358 GB, free: 2.465 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003778/0.3087, allocations: 48.69 kB / 1.358 GB, free: 2.422 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004364/0.313, allocations: 2.929 MB / 1.361 GB, free: 15.34 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003468/0.3134, allocations: 0.7562 MB / 1.362 GB, free: 14.55 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 0.0001178/0.3135, allocations: 26.28 kB / 1.362 GB, free: 14.52 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001636/0.3137, allocations: 91.39 kB / 1.362 GB, free: 14.43 MB / 1.061 GB Notification: Performance of SimCode: time 5.41e-07/0.3137, allocations: 0 / 1.362 GB, free: 14.43 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0268/0.3405, allocations: 6.821 MB / 1.369 GB, free: 7.816 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.5/10.84, allocations: 7.938 kB / 1.369 GB, free: 7.809 MB / 1.061 GB " [Timeout remaining time 289] (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: 16.702495053003076] Failed to read output from testmodel.py, exit status != 0: 11.010309742006939 11.027794445 10.734223218 Calling exit ...