Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.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.001336/0.001336, 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.001466/0.001466, allocations: 219.9 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.977 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.629/2.629, allocations: 476.7 MB / 0.7715 GB, free: 4.281 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.AntiFreeze,fileNamePrefix="Buildings_11_Buildings_Fluid_HeatPumps_ModularReversible_Controls_Safety_Examples_AntiFreeze",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze,fileNamePrefix="Buildings_11_Buildings_Fluid_HeatPumps_ModularReversible_Controls_Safety_Examples_AntiFreeze",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.001899/0.001899, allocations: 61.7 kB / 1.118 GB, free: 40.34 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2802/0.2821, allocations: 170 MB / 1.284 GB, free: 11.68 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze): time 0.003381/0.2855, allocations: 2.135 MB / 1.286 GB, free: 9.535 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001062/0.2865, allocations: 0.6078 MB / 1.287 GB, free: 8.922 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001115/0.2866, allocations: 4 kB / 1.287 GB, free: 8.918 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0001153/0.2868, allocations: 27.67 kB / 1.287 GB, free: 8.891 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 9.352e-05/0.2869, allocations: 35.66 kB / 1.287 GB, free: 8.855 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.000253/0.2871, allocations: 87.83 kB / 1.287 GB, free: 8.77 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0002941/0.2874, allocations: 259.4 kB / 1.287 GB, free: 8.516 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002233/0.2876, allocations: 87.11 kB / 1.287 GB, free: 8.43 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001673/0.2878, allocations: 123.5 kB / 1.287 GB, free: 8.309 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001811/0.288, allocations: 119.5 kB / 1.288 GB, free: 8.191 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 5.408e-05/0.288, allocations: 28 kB / 1.288 GB, free: 8.164 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 3.706e-05/0.2881, allocations: 24 kB / 1.288 GB, free: 8.141 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 6.939e-05/0.2881, allocations: 59.81 kB / 1.288 GB, free: 8.082 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0001267/0.2883, allocations: 115.4 kB / 1.288 GB, free: 7.969 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0003591/0.2886, allocations: 275.6 kB / 1.288 GB, free: 7.699 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.406e-06/0.2886, allocations: 0 / 1.288 GB, free: 7.699 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.442e-06/0.2886, allocations: 0 / 1.288 GB, free: 7.699 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 9.337e-06/0.2886, allocations: 4 kB / 1.288 GB, free: 7.695 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: 45 * Number of variables: 45 Notification: Performance of Generate backend data structure: time 0.001099/0.2897, allocations: 0.5811 MB / 1.289 GB, free: 7.062 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.695e-05/0.2898, allocations: 8.031 kB / 1.289 GB, free: 7.055 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.496e-05/0.2898, allocations: 8.625 kB / 1.289 GB, free: 7.047 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.107e-05/0.2899, allocations: 59.16 kB / 1.289 GB, free: 6.98 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.677e-05/0.2899, allocations: 36.69 kB / 1.289 GB, free: 6.945 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003299/0.2903, allocations: 195.3 kB / 1.289 GB, free: 6.73 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.164e-05/0.2903, allocations: 12.81 kB / 1.289 GB, free: 6.719 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.596e-05/0.2904, allocations: 32.11 kB / 1.289 GB, free: 6.688 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006305/0.291, allocations: 278.5 kB / 1.289 GB, free: 6.402 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.997e-06/0.291, allocations: 4 kB / 1.289 GB, free: 6.398 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.817e-05/0.291, allocations: 8 kB / 1.289 GB, free: 6.391 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.002e-05/0.291, allocations: 7.938 kB / 1.289 GB, free: 6.383 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006675/0.2917, allocations: 209.5 kB / 1.289 GB, free: 6.18 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001153/0.2929, allocations: 0.6146 MB / 1.29 GB, free: 5.516 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008262/0.2937, allocations: 222.4 kB / 1.29 GB, free: 5.289 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003179/0.294, allocations: 101.1 kB / 1.29 GB, free: 5.188 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.026e-05/0.294, allocations: 4 kB / 1.29 GB, free: 5.184 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004909/0.2945, allocations: 207 kB / 1.291 GB, free: 4.969 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=22): time 1.543e-06/0.2945, allocations: 0 / 1.291 GB, free: 4.969 MB / 0.9825 GB Notification: Performance of matching and sorting (n=24): time 0.001619/0.2961, allocations: 0.5194 MB / 1.291 GB, free: 4.445 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.26e-05/0.2962, allocations: 114.8 kB / 1.291 GB, free: 4.309 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002101/0.2964, allocations: 208.1 kB / 1.291 GB, free: 4.098 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 3.966e-05/0.2965, allocations: 33.7 kB / 1.291 GB, free: 4.059 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001147/0.2966, allocations: 160.7 kB / 1.292 GB, free: 3.898 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 6.875e-05/0.2966, allocations: 71.42 kB / 1.292 GB, free: 3.828 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001146/0.2968, allocations: 65.69 kB / 1.292 GB, free: 3.758 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001411/0.2969, allocations: 342.8 kB / 1.292 GB, free: 3.414 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003729/0.2973, allocations: 116.2 kB / 1.292 GB, free: 3.297 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004112/0.2977, allocations: 180.7 kB / 1.292 GB, free: 3.098 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007071/0.2984, allocations: 323.2 kB / 1.293 GB, free: 2.746 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.963e-06/0.2984, allocations: 4 kB / 1.293 GB, free: 2.742 MB / 0.9825 GB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0009639/0.2993, allocations: 453.8 kB / 1.293 GB, free: 2.277 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 7.283e-05/0.2994, allocations: 87.61 kB / 1.293 GB, free: 2.176 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.542e-06/0.2994, allocations: 4.156 kB / 1.293 GB, free: 2.172 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.68e-05/0.2994, allocations: 4 kB / 1.293 GB, free: 2.168 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002528/0.2997, allocations: 59.88 kB / 1.293 GB, free: 2.109 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.052e-05/0.2997, allocations: 4 kB / 1.293 GB, free: 2.105 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000302/0.3, allocations: 43.95 kB / 1.293 GB, free: 2.062 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.914e-05/0.3, allocations: 15.98 kB / 1.293 GB, free: 2.047 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: 25 (antFre.disErr.y,$PRE.antFre.disErr.y,TEvaOutEmu.count,$PRE.TEvaOutEmu.count,TEvaOutEmu.T_start,$PRE.TEvaOutEmu.T_start,TConInEmu.count,$PRE.TConInEmu.count,TConInEmu.T_start,$PRE.TConInEmu.T_start,ySetPul.count,$PRE.ySetPul.count,ySetPul.T_start,$PRE.ySetPul.T_start,antFre.hys.y,$PRE.antFre.hys.y,hys.y,$PRE.hys.y,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,antFre.intConOne.y,antFre.disErr.local_set,antFre.disErr.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (37): * Single equations (assignments): 34 * 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.000184/0.3002, allocations: 151.7 kB / 1.293 GB, free: 1.891 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.596e-05/0.3003, allocations: 23.86 kB / 1.293 GB, free: 1.867 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008102/0.3011, allocations: 295.2 kB / 1.294 GB, free: 1.57 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.362e-06/0.3011, allocations: 11.94 kB / 1.294 GB, free: 1.559 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.05e-06/0.3011, allocations: 0 / 1.294 GB, free: 1.559 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.991e-06/0.3011, allocations: 3.984 kB / 1.294 GB, free: 1.555 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001312/0.3024, allocations: 0.6699 MB / 1.294 GB, free: 0.8242 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.735e-06/0.3024, allocations: 0 / 1.294 GB, free: 0.8242 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001856/0.3026, allocations: 43.91 kB / 1.294 GB, free: 0.7812 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.442e-06/0.3026, allocations: 4 kB / 1.294 GB, free: 0.7773 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.33e-05/0.3026, allocations: 11.86 kB / 1.294 GB, free: 0.7656 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.83e-06/0.3026, allocations: 4.125 kB / 1.294 GB, free: 0.7617 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.803e-06/0.3026, allocations: 4 kB / 1.294 GB, free: 0.7578 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007873/0.3034, allocations: 401.4 kB / 1.295 GB, free: 348 kB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 2.809e-05/0.3034, allocations: 11.91 kB / 1.295 GB, free: 336 kB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.974e-05/0.3035, allocations: 15.92 kB / 1.295 GB, free: 320 kB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000287/0.3038, allocations: 43.95 kB / 1.295 GB, free: 276 kB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001214/0.3039, allocations: 55.84 kB / 1.295 GB, free: 220 kB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.224e-05/0.3039, allocations: 16 kB / 1.295 GB, free: 204 kB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0001419/0.3041, allocations: 139.3 kB / 1.295 GB, free: 64 kB / 0.9825 GB Notification: Performance of sort global known variables: time 7e-08/0.3041, allocations: 0 / 1.295 GB, free: 64 kB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003215/0.3044, allocations: 52 kB / 1.295 GB, free: 12 kB / 0.9825 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 13 ($whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,hys.y,antFre.disErr.y,antFre.hys.y,ySetPul.T_start,ySetPul.count,TConInEmu.T_start,TConInEmu.count,TEvaOutEmu.T_start,TEvaOutEmu.count) * Number of discrete states: 6 (TEvaOutEmu.count,TConInEmu.count,ySetPul.count,antFre.hys.y,hys.y,antFre.disErr.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 17 * 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.001547/0.3059, allocations: 1.058 MB / 1.296 GB, free: 14.91 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0009135/0.3069, allocations: 442.9 kB / 1.297 GB, free: 14.45 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.915e-06/0.3069, allocations: 0 / 1.297 GB, free: 14.45 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0004288/0.3073, allocations: 151.8 kB / 1.297 GB, free: 14.3 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003987/0.3077, allocations: 30.86 kB / 1.297 GB, free: 14.27 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004361/0.312, allocations: 2.744 MB / 1.299 GB, free: 11.38 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003455/0.3124, allocations: 0.744 MB / 1.3 GB, free: 10.61 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0001089/0.3125, allocations: 25.94 kB / 1.3 GB, free: 10.58 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001412/0.3126, allocations: 75.41 kB / 1.3 GB, free: 10.5 MB / 0.9981 GB Notification: Performance of SimCode: time 6.51e-07/0.3126, allocations: 4 kB / 1.3 GB, free: 10.5 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02593/0.3386, allocations: 5.951 MB / 1.306 GB, free: 4.727 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.99/11.33, allocations: 4.062 kB / 1.306 GB, free: 4.723 MB / 0.9981 GB " [Timeout remaining time 288] (rm -f Buildings_11_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.pipe ; mkfifo Buildings_11_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.pipe ; head -c 1048576 < Buildings_11_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.pipe >> ../files/Buildings_11_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze_res.mat --tempDir=temp_Buildings_11_Buildings_Fluid_HeatPumps_ModularReversible_Controls_Safety_Examples_AntiFreeze_fmu --startTime=0 --stopTime=100 --stepSize=1 --timeout=400 --tolerance=1e-08 Buildings_11_Buildings_Fluid_HeatPumps_ModularReversible_Controls_Safety_Examples_AntiFreeze.fmu > Buildings_11_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.pipe 2>&1) [Timeout 420.0] [Calling os._exit(0), Time elapsed: 17.416149374039378] Failed to read output from testmodel.py, exit status != 0: 11.896231075981632 11.503498638 11.211654129 Calling exit ...