Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.001782/0.001782, allocations: 98.33 kB / 19.73 MB, free: 2.23 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.002436/0.002436, allocations: 216.7 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.391/1.391, allocations: 230.6 MB / 256.8 MB, free: 7.961 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo): time 2.63/2.63, allocations: 476.7 MB / 0.7715 GB, free: 4.23 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/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_11_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_11_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.001937/0.001937, allocations: 64.28 kB / 1.118 GB, free: 39.68 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2662/0.2682, allocations: 170 MB / 1.284 GB, free: 11.5 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate): time 0.003461/0.2716, allocations: 2.078 MB / 1.286 GB, free: 9.41 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001141/0.2728, allocations: 0.6272 MB / 1.287 GB, free: 8.777 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001255/0.2729, allocations: 4 kB / 1.287 GB, free: 8.773 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0001342/0.273, allocations: 23.67 kB / 1.287 GB, free: 8.75 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0001426/0.2732, allocations: 43.59 kB / 1.287 GB, free: 8.707 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002296/0.2734, allocations: 91.88 kB / 1.287 GB, free: 8.617 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0003252/0.2737, allocations: 287.3 kB / 1.287 GB, free: 8.336 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002233/0.2739, allocations: 91.92 kB / 1.287 GB, free: 8.242 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001566/0.2741, allocations: 123.6 kB / 1.287 GB, free: 8.121 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001809/0.2743, allocations: 131.4 kB / 1.288 GB, free: 7.992 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 4.941e-05/0.2743, allocations: 32 kB / 1.288 GB, free: 7.961 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 4.022e-05/0.2744, allocations: 28 kB / 1.288 GB, free: 7.934 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 6.699e-05/0.2744, allocations: 63.81 kB / 1.288 GB, free: 7.871 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.000133/0.2746, allocations: 119.4 kB / 1.288 GB, free: 7.754 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0003657/0.2749, allocations: 300.2 kB / 1.288 GB, free: 7.461 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.296e-06/0.2749, allocations: 0 / 1.288 GB, free: 7.461 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.473e-06/0.2749, allocations: 3.938 kB / 1.288 GB, free: 7.457 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 6.071e-06/0.2749, allocations: 0 / 1.288 GB, free: 7.457 MB / 0.9825 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.0012/0.2761, allocations: 0.6006 MB / 1.289 GB, free: 6.805 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.636e-05/0.2762, allocations: 8.031 kB / 1.289 GB, free: 6.797 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 4.178e-05/0.2762, allocations: 12.58 kB / 1.289 GB, free: 6.785 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.992e-05/0.2763, allocations: 63.16 kB / 1.289 GB, free: 6.715 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.49e-05/0.2764, allocations: 32.75 kB / 1.289 GB, free: 6.684 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003513/0.2767, allocations: 207.5 kB / 1.289 GB, free: 6.453 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.49e-05/0.2768, allocations: 20.81 kB / 1.289 GB, free: 6.434 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.189e-05/0.2768, allocations: 28.11 kB / 1.289 GB, free: 6.406 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006596/0.2775, allocations: 303.4 kB / 1.289 GB, free: 6.094 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.027e-06/0.2775, allocations: 0 / 1.289 GB, free: 6.094 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.873e-05/0.2775, allocations: 8 kB / 1.289 GB, free: 6.086 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.344e-06/0.2775, allocations: 4 kB / 1.289 GB, free: 6.082 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007019/0.2782, allocations: 217.5 kB / 1.29 GB, free: 5.871 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001227/0.2794, allocations: 0.6302 MB / 1.29 GB, free: 5.195 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007162/0.2802, allocations: 210.4 kB / 1.29 GB, free: 4.98 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003287/0.2805, allocations: 96.77 kB / 1.29 GB, free: 4.883 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.336e-05/0.2805, allocations: 4 kB / 1.29 GB, free: 4.879 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005221/0.281, allocations: 207.5 kB / 1.291 GB, free: 4.664 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=23): time 1.643e-06/0.281, allocations: 0 / 1.291 GB, free: 4.664 MB / 0.9825 GB Notification: Performance of matching and sorting (n=25): time 0.001704/0.2827, allocations: 0.5306 MB / 1.291 GB, free: 4.129 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.628e-05/0.2828, allocations: 132.5 kB / 1.291 GB, free: 3.969 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002225/0.283, allocations: 218.8 kB / 1.292 GB, free: 3.746 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 4.751e-05/0.2831, allocations: 45.69 kB / 1.292 GB, free: 3.695 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001127/0.2832, allocations: 156.8 kB / 1.292 GB, free: 3.539 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 6.584e-05/0.2833, allocations: 71.47 kB / 1.292 GB, free: 3.469 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000126/0.2834, allocations: 77.97 kB / 1.292 GB, free: 3.387 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001498/0.2835, allocations: 330.8 kB / 1.292 GB, free: 3.055 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003976/0.2839, allocations: 124.2 kB / 1.292 GB, free: 2.934 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004437/0.2844, allocations: 196.5 kB / 1.292 GB, free: 2.715 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000735/0.2851, allocations: 331.6 kB / 1.293 GB, free: 2.355 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.2851, allocations: 4 kB / 1.293 GB, free: 2.352 MB / 0.9825 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0009946/0.2861, allocations: 456.7 kB / 1.293 GB, free: 1.883 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 7.12e-05/0.2862, allocations: 89.11 kB / 1.293 GB, free: 1.777 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.472e-06/0.2862, allocations: 160 / 1.293 GB, free: 1.777 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.726e-05/0.2862, allocations: 11.98 kB / 1.293 GB, free: 1.766 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002659/0.2865, allocations: 55.89 kB / 1.293 GB, free: 1.711 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.037e-05/0.2865, allocations: 4 kB / 1.293 GB, free: 1.707 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003432/0.2868, allocations: 51.94 kB / 1.293 GB, free: 1.656 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.78e-05/0.2869, allocations: 15.94 kB / 1.293 GB, free: 1.641 MB / 0.9825 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 (39): * Single equations (assignments): 36 * 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.0001814/0.287, allocations: 156.4 kB / 1.294 GB, free: 1.477 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.538e-05/0.2871, allocations: 31.73 kB / 1.294 GB, free: 1.445 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.721e-05/0.2872, allocations: 25.97 kB / 1.294 GB, free: 1.418 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.376e-06/0.2872, allocations: 0 / 1.294 GB, free: 1.418 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.522e-06/0.2872, allocations: 4 kB / 1.294 GB, free: 1.414 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.219e-06/0.2872, allocations: 3.984 kB / 1.294 GB, free: 1.41 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001418/0.2886, allocations: 0.6977 MB / 1.294 GB, free: 0.6523 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.736e-06/0.2886, allocations: 0 / 1.294 GB, free: 0.6523 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000189/0.2888, allocations: 48.08 kB / 1.294 GB, free: 0.6055 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.639e-06/0.2888, allocations: 0 / 1.294 GB, free: 0.6055 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.515e-05/0.2888, allocations: 11.98 kB / 1.294 GB, free: 0.5938 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.57e-06/0.2888, allocations: 4 kB / 1.294 GB, free: 0.5898 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.677e-06/0.2888, allocations: 3.938 kB / 1.294 GB, free: 0.5859 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008446/0.2897, allocations: 400.9 kB / 1.295 GB, free: 172 kB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 3.585e-05/0.2897, allocations: 19.86 kB / 1.295 GB, free: 152 kB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.715e-05/0.2898, allocations: 12 kB / 1.295 GB, free: 140 kB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003331/0.2901, allocations: 55.92 kB / 1.295 GB, free: 84 kB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001388/0.2902, allocations: 63.78 kB / 1.295 GB, free: 20 kB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.895e-05/0.2903, allocations: 8 kB / 1.295 GB, free: 12 kB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0001637/0.2904, allocations: 148.7 kB / 1.295 GB, free: 15.87 MB / 0.9981 GB Notification: Performance of sort global known variables: time 7e-08/0.2904, allocations: 0 / 1.295 GB, free: 15.87 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0003487/0.2908, allocations: 55.98 kB / 1.295 GB, free: 15.81 MB / 0.9981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 (25): * Single equations (assignments): 18 * 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.001568/0.2923, allocations: 1.082 MB / 1.296 GB, free: 14.69 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0009675/0.2933, allocations: 446.5 kB / 1.297 GB, free: 14.22 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 3.056e-06/0.2933, allocations: 0 / 1.297 GB, free: 14.22 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0004675/0.2938, allocations: 155.5 kB / 1.297 GB, free: 14.07 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004146/0.2942, allocations: 39.97 kB / 1.297 GB, free: 14.03 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004644/0.2988, allocations: 2.836 MB / 1.3 GB, free: 11.05 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003689/0.2992, allocations: 0.7441 MB / 1.3 GB, free: 10.28 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0001172/0.2993, allocations: 29.94 kB / 1.3 GB, free: 10.25 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001622/0.2995, allocations: 79.41 kB / 1.3 GB, free: 10.17 MB / 0.9981 GB Notification: Performance of SimCode: time 7.12e-07/0.2995, allocations: 3.938 kB / 1.3 GB, free: 10.17 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02716/0.3266, allocations: 6.445 MB / 1.307 GB, free: 3.934 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.13/11.45, allocations: 7.984 kB / 1.307 GB, free: 3.926 MB / 0.9981 GB " [Timeout remaining time 288] (rm -f Buildings_11_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate.pipe ; mkfifo Buildings_11_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate.pipe ; head -c 1048576 < Buildings_11_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate.pipe >> ../files/Buildings_11_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate_res.mat --tempDir=temp_Buildings_11_Buildings_Fluid_HeatPumps_ModularReversible_Controls_Safety_Examples_MinimalFlowRate_fmu --startTime=0 --stopTime=100 --stepSize=1 --timeout=400 --tolerance=1e-08 Buildings_11_Buildings_Fluid_HeatPumps_ModularReversible_Controls_Safety_Examples_MinimalFlowRate.fmu > Buildings_11_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate.pipe 2>&1) [Timeout 420.0] [Calling os._exit(0), Time elapsed: 17.528817412036005] Failed to read output from testmodel.py, exit status != 0: 12.023521388007794 11.633194914 11.354389172 Calling exit ...