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.001357/0.001357, allocations: 118.8 kB / 17.16 MB, free: 5.914 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.001502/0.001502, allocations: 206.2 kB / 20.13 MB, free: 2.969 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.435/1.435, allocations: 230.6 MB / 253.5 MB, free: 15.09 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.694/2.694, allocations: 476.7 MB / 0.7678 GB, free: 9.492 MB / 0.6075 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.00193/0.00193, allocations: 71.89 kB / 1.113 GB, free: 15.82 MB / 0.8575 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7915/0.7934, allocations: 169.9 MB / 1.279 GB, free: 11.75 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze): time 0.003773/0.7972, allocations: 2.129 MB / 1.281 GB, free: 10.27 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.001211/0.7984, allocations: 0.5979 MB / 1.282 GB, free: 9.848 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001257/0.7985, allocations: 6.438 kB / 1.282 GB, free: 9.844 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001427/0.7987, allocations: 20.34 kB / 1.282 GB, free: 9.828 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.0001055/0.7988, allocations: 40.95 kB / 1.282 GB, free: 9.797 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002933/0.7991, allocations: 91.83 kB / 1.282 GB, free: 9.742 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0004343/0.7995, allocations: 261 kB / 1.282 GB, free: 9.621 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002674/0.7998, allocations: 88.31 kB / 1.282 GB, free: 9.574 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001938/0.8, allocations: 112.8 kB / 1.282 GB, free: 9.52 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001933/0.8001, allocations: 123.2 kB / 1.282 GB, free: 9.457 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 5.059e-05/0.8002, allocations: 26.25 kB / 1.282 GB, free: 9.457 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 3.855e-05/0.8002, allocations: 26.62 kB / 1.282 GB, free: 9.457 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 7.225e-05/0.8003, allocations: 54.52 kB / 1.282 GB, free: 9.422 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001353/0.8004, allocations: 119.8 kB / 1.283 GB, free: 9.34 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0003601/0.8008, allocations: 280.2 kB / 1.283 GB, free: 9.219 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 4.068e-06/0.8008, allocations: 0.9688 kB / 1.283 GB, free: 9.219 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.864e-06/0.8008, allocations: 0.7969 kB / 1.283 GB, free: 9.219 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 6.191e-06/0.8008, allocations: 0 / 1.283 GB, free: 9.219 MB / 0.9981 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.00121/0.802, allocations: 0.6509 MB / 1.283 GB, free: 8.656 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.604e-05/0.8021, allocations: 10.31 kB / 1.283 GB, free: 8.656 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 4.146e-05/0.8021, allocations: 10.94 kB / 1.284 GB, free: 8.652 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.134e-05/0.8022, allocations: 60.64 kB / 1.284 GB, free: 8.598 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.017e-05/0.8023, allocations: 32.91 kB / 1.284 GB, free: 8.582 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003754/0.8026, allocations: 258 kB / 1.284 GB, free: 8.336 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.672e-05/0.8027, allocations: 16.88 kB / 1.284 GB, free: 8.332 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.27e-05/0.8027, allocations: 32.73 kB / 1.284 GB, free: 8.316 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006854/0.8034, allocations: 273.5 kB / 1.284 GB, free: 8.199 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.989e-06/0.8034, allocations: 1.188 kB / 1.284 GB, free: 8.199 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.292e-05/0.8034, allocations: 10.05 kB / 1.284 GB, free: 8.191 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.478e-06/0.8034, allocations: 9.766 kB / 1.284 GB, free: 8.188 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007137/0.8042, allocations: 210.1 kB / 1.284 GB, free: 8.133 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001247/0.8054, allocations: 0.6459 MB / 1.285 GB, free: 7.711 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008768/0.8063, allocations: 226.2 kB / 1.285 GB, free: 7.648 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003341/0.8066, allocations: 96.11 kB / 1.285 GB, free: 7.621 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.27e-05/0.8066, allocations: 6.656 kB / 1.285 GB, free: 7.617 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005207/0.8072, allocations: 209.8 kB / 1.286 GB, free: 7.527 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=22): time 2.064e-06/0.8072, allocations: 0 / 1.286 GB, free: 7.527 MB / 0.9981 GB Notification: Performance of matching and sorting (n=24): time 0.001677/0.8088, allocations: 0.5126 MB / 1.286 GB, free: 7.367 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.38e-05/0.8089, allocations: 114.3 kB / 1.286 GB, free: 7.238 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002184/0.8091, allocations: 210.5 kB / 1.286 GB, free: 7.09 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 4.044e-05/0.8092, allocations: 36.3 kB / 1.286 GB, free: 7.055 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001162/0.8093, allocations: 157.8 kB / 1.287 GB, free: 6.918 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 6.429e-05/0.8094, allocations: 67.86 kB / 1.287 GB, free: 6.867 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000118/0.8095, allocations: 74.39 kB / 1.287 GB, free: 6.824 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001569/0.8096, allocations: 338.6 kB / 1.287 GB, free: 6.496 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003809/0.81, allocations: 117.5 kB / 1.287 GB, free: 6.465 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000413/0.8104, allocations: 189.3 kB / 1.287 GB, free: 6.355 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007243/0.8112, allocations: 330 kB / 1.288 GB, free: 6.148 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.654e-06/0.8112, allocations: 0 / 1.288 GB, free: 6.148 MB / 0.9981 GB Notification: Performance of matching and sorting (n=40) (initialization): time 0.000995/0.8122, allocations: 449.1 kB / 1.288 GB, free: 5.926 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 7.554e-05/0.8122, allocations: 87.88 kB / 1.288 GB, free: 5.832 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.484e-06/0.8122, allocations: 2 kB / 1.288 GB, free: 5.832 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.85e-05/0.8123, allocations: 6.156 kB / 1.288 GB, free: 5.828 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002546/0.8125, allocations: 59.05 kB / 1.288 GB, free: 5.82 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.698e-06/0.8125, allocations: 3.484 kB / 1.288 GB, free: 5.82 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003211/0.8128, allocations: 48.61 kB / 1.288 GB, free: 5.812 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.136e-05/0.8129, allocations: 14.97 kB / 1.288 GB, free: 5.809 MB / 0.9981 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.0001825/0.8131, allocations: 150.9 kB / 1.288 GB, free: 5.672 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.238e-05/0.8131, allocations: 22.47 kB / 1.288 GB, free: 5.66 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008648/0.814, allocations: 297.1 kB / 1.289 GB, free: 5.551 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.15e-06/0.814, allocations: 3.422 kB / 1.289 GB, free: 5.551 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.814, allocations: 0 / 1.289 GB, free: 5.551 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.348e-06/0.814, allocations: 2.016 kB / 1.289 GB, free: 5.551 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001418/0.8154, allocations: 0.7024 MB / 1.289 GB, free: 5.098 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.206e-06/0.8154, allocations: 5.25 kB / 1.289 GB, free: 5.094 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001824/0.8156, allocations: 38.02 kB / 1.289 GB, free: 5.094 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.799e-06/0.8156, allocations: 10.62 kB / 1.289 GB, free: 5.086 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.554e-05/0.8156, allocations: 13.31 kB / 1.289 GB, free: 5.078 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.067e-06/0.8156, allocations: 2.938 kB / 1.289 GB, free: 5.078 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.8156, allocations: 2.375 kB / 1.289 GB, free: 5.078 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008329/0.8165, allocations: 394.2 kB / 1.29 GB, free: 4.855 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 6.715e-05/0.8165, allocations: 100.8 kB / 1.29 GB, free: 4.746 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.735e-05/0.8166, allocations: 17.53 kB / 1.29 GB, free: 4.734 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003054/0.8169, allocations: 48.06 kB / 1.29 GB, free: 4.727 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001221/0.817, allocations: 44.17 kB / 1.29 GB, free: 4.719 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.82e-05/0.817, allocations: 12.83 kB / 1.29 GB, free: 4.715 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0001226/0.8171, allocations: 136.7 kB / 1.29 GB, free: 4.625 MB / 0.9981 GB Notification: Performance of sort global known variables: time 9e-08/0.8171, allocations: 0 / 1.29 GB, free: 4.625 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0003324/0.8175, allocations: 56.78 kB / 1.29 GB, free: 4.613 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: 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.001622/0.8191, allocations: 1.055 MB / 1.291 GB, free: 3.816 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0009628/0.8201, allocations: 436 kB / 1.292 GB, free: 3.559 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.766e-06/0.8201, allocations: 1.406 kB / 1.292 GB, free: 3.559 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0004571/0.8205, allocations: 150.2 kB / 1.292 GB, free: 3.516 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003912/0.8209, allocations: 36.84 kB / 1.292 GB, free: 3.504 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004457/0.8254, allocations: 2.746 MB / 1.295 GB, free: 1.602 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003593/0.8257, allocations: 0.7425 MB / 1.295 GB, free: 0.9023 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0001132/0.8258, allocations: 23.88 kB / 1.295 GB, free: 0.8984 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001545/0.826, allocations: 74.14 kB / 1.295 GB, free: 0.8477 MB / 0.9981 GB Notification: Performance of SimCode: time 7.92e-07/0.826, allocations: 0 / 1.295 GB, free: 0.8477 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02373/0.8497, allocations: 5.712 MB / 1.301 GB, free: 192 kB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.325/9.174, allocations: 12.41 kB / 1.301 GB, free: 184 kB / 0.9981 GB " [Timeout remaining time 291] (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: 14.985878653009422] Failed to read output from testmodel.py, exit status != 0: 9.30094632296823 9.3191533 8.51547359 Calling exit ...