Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.0008654/0.0008654, allocations: 80.94 kB / 19.94 MB, free: 4.547 MB / 18.57 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.0009014/0.0009014, allocations: 177 kB / 23.36 MB, free: 1.133 MB / 18.57 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 0.9141/0.9141, allocations: 177.1 MB / 203.8 MB, free: 5.488 MB / 186.7 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.297/2.297, allocations: 438.8 MB / 0.6826 GB, free: 13.59 MB / 0.6511 GB " [Timeout remaining time 177] Using package Buildings with version 14.1.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: translateModel(Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze,tolerance=1e-08,outputFormat="mat",numberOfIntervals=100,variableFilter="time|ySet|yOut|antFre.sigBus.TConInMea|antFre.sigBus.TEvaOutMea|antFre.TAntFre",fileNamePrefix="Buildings_latest_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze") translateModel(Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze,tolerance=1e-08,outputFormat="mat",numberOfIntervals=100,variableFilter="time|ySet|yOut|antFre.sigBus.TConInMea|antFre.sigBus.TEvaOutMea|antFre.TAntFre",fileNamePrefix="Buildings_latest_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.403e-06/1.403e-06, allocations: 0 / 0.8387 GB, free: 14.13 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.12e-05/2.26e-05, allocations: 2.312 kB / 0.8387 GB, free: 14.13 MB / 0.8073 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze): time 0.002535/0.002557, allocations: 2.173 MB / 0.8408 GB, free: 11.95 MB / 0.8073 GB Notification: Performance of NFInst.instExpressions: time 0.0009369/0.003494, allocations: 0.6114 MB / 0.8414 GB, free: 11.33 MB / 0.8073 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001033/0.003598, allocations: 4 kB / 0.8414 GB, free: 11.32 MB / 0.8073 GB Notification: Performance of NFTyping.typeComponents: time 0.0001079/0.003705, allocations: 23.67 kB / 0.8414 GB, free: 11.3 MB / 0.8073 GB Notification: Performance of NFTyping.typeBindings: time 8.06e-05/0.003786, allocations: 43.59 kB / 0.8414 GB, free: 11.26 MB / 0.8073 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002294/0.004015, allocations: 103.7 kB / 0.8415 GB, free: 11.16 MB / 0.8073 GB Notification: Performance of NFFlatten.flatten: time 0.0002403/0.004256, allocations: 287.2 kB / 0.8418 GB, free: 10.88 MB / 0.8073 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001763/0.004432, allocations: 94.27 kB / 0.8419 GB, free: 10.79 MB / 0.8073 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000183/0.004615, allocations: 171.6 kB / 0.8421 GB, free: 10.62 MB / 0.8073 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001082/0.004723, allocations: 99.66 kB / 0.8422 GB, free: 10.52 MB / 0.8073 GB Notification: Performance of NFPackage.collectConstants: time 3.87e-05/0.004762, allocations: 28 kB / 0.8422 GB, free: 10.49 MB / 0.8073 GB Notification: Performance of NFFlatten.collectFunctions: time 2.674e-05/0.004789, allocations: 32 kB / 0.8422 GB, free: 10.46 MB / 0.8073 GB Notification: Performance of NFScalarize.scalarize: time 4.999e-05/0.004839, allocations: 59.81 kB / 0.8423 GB, free: 10.4 MB / 0.8073 GB Notification: Performance of NFVerifyModel.verify: time 6.86e-05/0.004907, allocations: 91.73 kB / 0.8424 GB, free: 10.31 MB / 0.8073 GB Notification: Performance of NFConvertDAE.convert: time 0.0002192/0.005127, allocations: 203.2 kB / 0.8426 GB, free: 10.11 MB / 0.8073 GB Notification: Performance of FrontEnd - DAE generated: time 2.134e-06/0.005129, allocations: 0 / 0.8426 GB, free: 10.11 MB / 0.8073 GB Notification: Performance of FrontEnd: time 7.31e-07/0.005129, allocations: 0 / 0.8426 GB, free: 10.11 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 3.557e-06/0.005133, allocations: 0 / 0.8426 GB, free: 10.11 MB / 0.8073 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.0005934/0.005726, allocations: 0.5637 MB / 0.8431 GB, free: 9.508 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 2.892e-05/0.005755, allocations: 8.625 kB / 0.8431 GB, free: 9.5 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.905e-05/0.005814, allocations: 40.91 kB / 0.8432 GB, free: 9.461 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001807/0.005995, allocations: 167.4 kB / 0.8433 GB, free: 9.27 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.257e-05/0.006018, allocations: 20.88 kB / 0.8433 GB, free: 9.246 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.935e-05/0.006047, allocations: 24.38 kB / 0.8434 GB, free: 9.223 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002722/0.006319, allocations: 288.1 kB / 0.8436 GB, free: 8.91 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.275e-06/0.006327, allocations: 192 / 0.8436 GB, free: 8.91 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.657e-05/0.006344, allocations: 8.375 kB / 0.8436 GB, free: 8.902 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.446e-06/0.006352, allocations: 11.94 kB / 0.8437 GB, free: 8.891 MB / 0.8073 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002647/0.006617, allocations: 47.47 kB / 0.8437 GB, free: 8.844 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005253/0.007142, allocations: 394.2 kB / 0.8441 GB, free: 8.441 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001161/0.007259, allocations: 86.5 kB / 0.8442 GB, free: 8.348 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.74e-05/0.007296, allocations: 21.08 kB / 0.8442 GB, free: 8.324 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 1.787e-05/0.007314, allocations: 7.938 kB / 0.8442 GB, free: 8.316 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001508/0.007465, allocations: 139.2 kB / 0.8443 GB, free: 8.168 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=20): time 1.283e-06/0.007466, allocations: 0 / 0.8443 GB, free: 8.168 MB / 0.8073 GB Notification: Performance of matching and sorting (n=20): time 0.0002335/0.007699, allocations: 119.5 kB / 0.8444 GB, free: 8.047 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.01e-05/0.00776, allocations: 118.8 kB / 0.8445 GB, free: 7.906 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001267/0.007886, allocations: 202.3 kB / 0.8447 GB, free: 7.695 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 2.592e-05/0.007912, allocations: 33.7 kB / 0.8448 GB, free: 7.656 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 6.406e-05/0.007976, allocations: 160 kB / 0.8449 GB, free: 7.496 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 3.068e-05/0.008007, allocations: 51.61 kB / 0.845 GB, free: 7.445 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.972e-05/0.008077, allocations: 77.91 kB / 0.845 GB, free: 7.363 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 7.381e-05/0.00815, allocations: 338.7 kB / 0.8454 GB, free: 7.023 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.234e-05/0.008223, allocations: 113.4 kB / 0.8455 GB, free: 6.895 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001171/0.00834, allocations: 228.1 kB / 0.8457 GB, free: 6.613 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001301/0.00847, allocations: 206.5 kB / 0.8459 GB, free: 6.375 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.046e-06/0.008473, allocations: 7.938 kB / 0.8459 GB, free: 6.367 MB / 0.8073 GB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0002192/0.008692, allocations: 324.4 kB / 0.8462 GB, free: 6.008 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 4.089e-05/0.008733, allocations: 93.09 kB / 0.8463 GB, free: 5.898 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.087e-06/0.008737, allocations: 0 / 0.8463 GB, free: 5.898 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.274e-05/0.00875, allocations: 4 kB / 0.8463 GB, free: 5.895 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001237/0.008873, allocations: 51.91 kB / 0.8463 GB, free: 5.844 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.607e-06/0.008877, allocations: 0 / 0.8463 GB, free: 5.844 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001275/0.009005, allocations: 55.8 kB / 0.8464 GB, free: 5.789 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.329e-05/0.009018, allocations: 12.16 kB / 0.8464 GB, free: 5.777 MB / 0.8073 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 (antFre.disErr.y,$PRE.antFre.disErr.y,antFre.disErr.local_reset,antFre.disErr.local_set,antFre.intConOne.y,ySetOn.y,$PRE.ySetOn.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,antFre.errAndSetOn.y,hys.y,$PRE.hys.y,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (34): * Single equations (assignments): 31 * 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 8.341e-05/0.009101, allocations: 143.8 kB / 0.8466 GB, free: 5.629 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.405e-05/0.009125, allocations: 19.97 kB / 0.8466 GB, free: 5.609 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001456/0.009271, allocations: 125.1 kB / 0.8467 GB, free: 5.484 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.074e-06/0.009273, allocations: 0 / 0.8467 GB, free: 5.484 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.283e-06/0.009274, allocations: 0 / 0.8467 GB, free: 5.484 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.327e-06/0.009278, allocations: 0 / 0.8467 GB, free: 5.484 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002685/0.009546, allocations: 306.5 kB / 0.847 GB, free: 5.16 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.282e-06/0.009547, allocations: 0 / 0.847 GB, free: 5.16 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.503e-05/0.009602, allocations: 23.98 kB / 0.847 GB, free: 5.137 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.653e-06/0.009604, allocations: 3.938 kB / 0.847 GB, free: 5.133 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.189e-05/0.009616, allocations: 11.98 kB / 0.847 GB, free: 5.121 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.009618, allocations: 0 / 0.847 GB, free: 5.121 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.82e-07/0.009618, allocations: 0 / 0.847 GB, free: 5.121 MB / 0.8073 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000126/0.009744, allocations: 209.6 kB / 0.8472 GB, free: 4.902 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 1.613e-05/0.00976, allocations: 19.8 kB / 0.8472 GB, free: 4.883 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.621e-05/0.009787, allocations: 8 kB / 0.8472 GB, free: 4.875 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001069/0.009894, allocations: 39.95 kB / 0.8473 GB, free: 4.836 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.831e-05/0.009962, allocations: 47.91 kB / 0.8473 GB, free: 4.789 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.429e-05/0.009976, allocations: 11.92 kB / 0.8473 GB, free: 4.777 MB / 0.8073 GB Notification: Performance of sorting global known variables: time 3.827e-05/0.01001, allocations: 52.8 kB / 0.8474 GB, free: 4.723 MB / 0.8073 GB Notification: Performance of sort global known variables: time 6e-08/0.01001, allocations: 0 / 0.8474 GB, free: 4.723 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0001796/0.01019, allocations: 59.89 kB / 0.8474 GB, free: 4.664 MB / 0.8073 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 15 (antFre.errAndSetOn.y,$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,ySetOn.y) * Number of discrete states: 7 (TEvaOutEmu.count,TConInEmu.count,ySetPul.count,antFre.hys.y,hys.y,ySetOn.y,antFre.disErr.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 13 * 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 9.015e-05/0.01028, allocations: 96.34 kB / 0.8475 GB, free: 4.562 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0002289/0.01051, allocations: 368.7 kB / 0.8479 GB, free: 4.145 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 6.041e-06/0.01052, allocations: 8 kB / 0.8479 GB, free: 4.137 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 7.165e-05/0.01059, allocations: 58.31 kB / 0.848 GB, free: 4.078 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001745/0.01077, allocations: 39.73 kB / 0.848 GB, free: 4.039 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005793/0.01134, allocations: 387.6 kB / 0.8484 GB, free: 3.633 MB / 0.8073 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.389e-05/0.01139, allocations: 84.27 kB / 0.8484 GB, free: 3.531 MB / 0.8073 GB Notification: Performance of simCode: alias equations: time 6.625e-05/0.01145, allocations: 21.95 kB / 0.8485 GB, free: 3.508 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001277/0.01158, allocations: 103.3 kB / 0.8486 GB, free: 3.406 MB / 0.8073 GB Notification: Performance of SimCode: time 6.41e-07/0.01158, allocations: 0 / 0.8486 GB, free: 3.406 MB / 0.8073 GB Notification: Performance of Templates: time 0.005178/0.01676, allocations: 3.742 MB / 0.8522 GB, free: 15.76 MB / 0.823 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.pipe ; mkfifo Buildings_latest_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.pipe >> ../files/Buildings_latest_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.sim & ./Buildings_latest_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_HeatPumps_ModularReversible_Controls_Safety_Examples_AntiFreeze.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.014420253224671]