Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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.001272/0.001272, allocations: 79.86 kB / 19.18 MB, free: 2.527 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.001463/0.001463, allocations: 165.6 kB / 22.46 MB, free: 5.359 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.425/1.425, allocations: 177.1 MB / 202.8 MB, free: 9.188 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo): time 0.002476/0.002476, allocations: 249.3 kB / 259.4 MB, free: 484 kB / 238.1 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo): time 1.071/1.071, allocations: 138.4 MB / 454.3 MB, free: 2.016 MB / 366.1 MB " [Timeout remaining time 179] Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 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: translateModel(BuildingSystems.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze,tolerance=1e-08,outputFormat="empty",numberOfIntervals=100,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze") translateModel(BuildingSystems.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze,tolerance=1e-08,outputFormat="empty",numberOfIntervals=100,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 4.469e-06/4.469e-06, allocations: 4 kB / 0.6468 GB, free: 4.973 MB / 0.5606 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.373e-05/2.819e-05, allocations: 6.219 kB / 0.6468 GB, free: 4.965 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze): time 0.00348/0.003508, allocations: 2.061 MB / 0.6489 GB, free: 2.887 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0012/0.004708, allocations: 0.5726 MB / 0.6494 GB, free: 2.309 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000154/0.004862, allocations: 4 kB / 0.6494 GB, free: 2.305 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0001304/0.004992, allocations: 19.73 kB / 0.6494 GB, free: 2.285 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0001275/0.00512, allocations: 43.59 kB / 0.6495 GB, free: 2.242 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002955/0.005415, allocations: 99.73 kB / 0.6496 GB, free: 2.145 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0003642/0.00578, allocations: 263.3 kB / 0.6498 GB, free: 1.887 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002171/0.005997, allocations: 79.59 kB / 0.6499 GB, free: 1.809 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002537/0.00625, allocations: 159.7 kB / 0.6501 GB, free: 1.652 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001698/0.00642, allocations: 87.75 kB / 0.6501 GB, free: 1.566 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 5.916e-05/0.006479, allocations: 28 kB / 0.6502 GB, free: 1.539 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 4.293e-05/0.006522, allocations: 24 kB / 0.6502 GB, free: 1.516 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 7.1e-05/0.006593, allocations: 67.73 kB / 0.6503 GB, free: 1.449 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0001154/0.006709, allocations: 75.81 kB / 0.6503 GB, free: 1.375 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0003944/0.007103, allocations: 295.1 kB / 0.6506 GB, free: 1.086 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 6.552e-06/0.00711, allocations: 4 kB / 0.6506 GB, free: 1.082 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.011e-06/0.007111, allocations: 0 / 0.6506 GB, free: 1.082 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 7.604e-06/0.007118, allocations: 0 / 0.6506 GB, free: 1.082 MB / 0.5606 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.001325/0.008444, allocations: 0.5772 MB / 0.6512 GB, free: 464 kB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.857e-05/0.008482, allocations: 8.75 kB / 0.6512 GB, free: 456 kB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.064e-05/0.008563, allocations: 24.8 kB / 0.6512 GB, free: 432 kB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003688/0.008932, allocations: 197.9 kB / 0.6514 GB, free: 208 kB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.546e-05/0.008957, allocations: 12.75 kB / 0.6514 GB, free: 196 kB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.398e-05/0.009001, allocations: 24.38 kB / 0.6514 GB, free: 172 kB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2635/0.2725, allocations: 319.3 kB / 0.6517 GB, free: 56.93 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.852e-05/0.2726, allocations: 1.734 kB / 0.6517 GB, free: 56.93 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.443e-05/0.2726, allocations: 11.45 kB / 0.6518 GB, free: 56.93 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.925e-06/0.2726, allocations: 4.719 kB / 0.6518 GB, free: 56.93 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007107/0.2733, allocations: 197.2 kB / 0.6519 GB, free: 56.93 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001085/0.2744, allocations: 495.1 kB / 0.6524 GB, free: 56.73 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008462/0.2752, allocations: 220.2 kB / 0.6526 GB, free: 56.7 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003015/0.2755, allocations: 80.39 kB / 0.6527 GB, free: 56.7 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 3.347e-05/0.2756, allocations: 4.531 kB / 0.6527 GB, free: 56.7 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004723/0.276, allocations: 193.9 kB / 0.6529 GB, free: 56.65 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=18): time 2.295e-06/0.276, allocations: 0 / 0.6529 GB, free: 56.65 MB / 0.5606 GB Notification: Performance of matching and sorting (n=18): time 0.001089/0.2771, allocations: 330.1 kB / 0.6532 GB, free: 56.61 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.805e-05/0.2772, allocations: 115.7 kB / 0.6533 GB, free: 56.48 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001624/0.2774, allocations: 211.6 kB / 0.6535 GB, free: 56.38 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 3.377e-05/0.2774, allocations: 36.58 kB / 0.6536 GB, free: 56.34 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 8.454e-05/0.2775, allocations: 158.6 kB / 0.6537 GB, free: 56.24 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 3.567e-05/0.2775, allocations: 48.78 kB / 0.6538 GB, free: 56.21 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.546e-05/0.2776, allocations: 63.98 kB / 0.6538 GB, free: 56.2 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 6.221e-05/0.2777, allocations: 329.1 kB / 0.6541 GB, free: 55.88 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003659/0.278, allocations: 195.9 kB / 0.6543 GB, free: 55.75 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004195/0.2785, allocations: 308.7 kB / 0.6546 GB, free: 55.49 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006217/0.2791, allocations: 312.8 kB / 0.6549 GB, free: 55.3 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.296e-06/0.2791, allocations: 6.312 kB / 0.6549 GB, free: 55.3 MB / 0.5606 GB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0008454/0.2799, allocations: 0.4908 MB / 0.6554 GB, free: 55.01 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 4.905e-05/0.28, allocations: 97.14 kB / 0.6555 GB, free: 54.91 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.582e-06/0.28, allocations: 0.9688 kB / 0.6555 GB, free: 54.91 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.081e-05/0.28, allocations: 7.25 kB / 0.6555 GB, free: 54.91 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002262/0.2802, allocations: 44.7 kB / 0.6555 GB, free: 54.9 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.365e-06/0.2802, allocations: 3.062 kB / 0.6555 GB, free: 54.9 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003105/0.2805, allocations: 70.19 kB / 0.6556 GB, free: 54.88 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.42e-05/0.2806, allocations: 6.094 kB / 0.6556 GB, free: 54.88 MB / 0.5606 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 (31): * Single equations (assignments): 28 * 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.0001242/0.2807, allocations: 151.1 kB / 0.6558 GB, free: 54.75 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.034e-05/0.2807, allocations: 21.3 kB / 0.6558 GB, free: 54.74 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007227/0.2814, allocations: 268.9 kB / 0.656 GB, free: 54.65 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.168e-06/0.2814, allocations: 3.938 kB / 0.656 GB, free: 54.64 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.93e-06/0.2815, allocations: 0 / 0.656 GB, free: 54.64 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.381e-06/0.2815, allocations: 3.656 kB / 0.656 GB, free: 54.64 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008638/0.2823, allocations: 493.7 kB / 0.6565 GB, free: 54.35 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.933e-06/0.2823, allocations: 0 / 0.6565 GB, free: 54.35 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001578/0.2825, allocations: 32.83 kB / 0.6565 GB, free: 54.35 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.398e-06/0.2825, allocations: 6.438 kB / 0.6565 GB, free: 54.34 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.893e-05/0.2825, allocations: 16.06 kB / 0.6566 GB, free: 54.34 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.743e-06/0.2825, allocations: 0 / 0.6566 GB, free: 54.34 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.2825, allocations: 0 / 0.6566 GB, free: 54.34 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006996/0.2832, allocations: 351.9 kB / 0.6569 GB, free: 54.16 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 2.564e-05/0.2832, allocations: 23.08 kB / 0.6569 GB, free: 54.15 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.43e-05/0.2833, allocations: 11.06 kB / 0.6569 GB, free: 54.14 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002789/0.2836, allocations: 46.91 kB / 0.657 GB, free: 54.14 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001089/0.2837, allocations: 37.59 kB / 0.657 GB, free: 54.13 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.444e-05/0.2837, allocations: 9.625 kB / 0.657 GB, free: 54.13 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 9.708e-05/0.2838, allocations: 139.4 kB / 0.6572 GB, free: 54.04 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2838, allocations: 0.5938 kB / 0.6572 GB, free: 54.04 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0002986/0.2841, allocations: 57.44 kB / 0.6572 GB, free: 54.02 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (18): * Single equations (assignments): 11 * 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.0001145/0.2842, allocations: 113.2 kB / 0.6573 GB, free: 53.93 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0008057/0.285, allocations: 498.3 kB / 0.6578 GB, free: 53.59 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.285, allocations: 3.938 kB / 0.6578 GB, free: 53.58 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0003321/0.2853, allocations: 98.56 kB / 0.6579 GB, free: 53.57 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003636/0.2857, allocations: 38.98 kB / 0.6579 GB, free: 53.56 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007501/0.2865, allocations: 365.4 kB / 0.6583 GB, free: 53.32 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.765e-05/0.2865, allocations: 124.3 kB / 0.6584 GB, free: 53.24 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 8.27e-05/0.2866, allocations: 19.02 kB / 0.6584 GB, free: 53.23 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.298e-05/0.2867, allocations: 21.73 kB / 0.6584 GB, free: 53.23 MB / 0.5606 GB Notification: Performance of SimCode: time 3.9e-07/0.2867, allocations: 0 / 0.6584 GB, free: 53.23 MB / 0.5606 GB Notification: Performance of Templates: time 0.006474/0.2932, allocations: 3.42 MB / 0.6618 GB, free: 52.98 MB / 0.5606 GB " [Timeout remaining time 660] make -j1 -f BuildingSystems_BuildingSystems.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.makefile [Timeout 660] (rm -f BuildingSystems_BuildingSystems.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.sim & ./BuildingSystems_BuildingSystems.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 5.903968948870897] Failed to read output from testmodel.py, exit status != 0: 0.30066704750061035 0.31165511300000004 0.30138532100000004 Calling exit ...