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.000906/0.000906, allocations: 93.06 kB / 19.65 MB, free: 280 kB / 13.93 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.0009026/0.0009026, allocations: 173 kB / 23.02 MB, free: 1.551 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.8866/0.8866, allocations: 177.2 MB / 203.4 MB, free: 5.641 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.13/2.13, allocations: 429.5 MB / 0.6732 GB, free: 4.051 MB / 0.6355 GB " [Timeout remaining time 177] Using package Buildings with version 14.0.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.683e-06/1.683e-06, allocations: 0 / 0.8782 GB, free: 6.258 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.628e-05/2.796e-05, allocations: 4.984 kB / 0.8782 GB, free: 6.254 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze): time 0.003269/0.003296, allocations: 2.2 MB / 0.8804 GB, free: 4.062 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.001351/0.004647, allocations: 0.5985 MB / 0.881 GB, free: 3.461 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001748/0.004822, allocations: 4 kB / 0.881 GB, free: 3.457 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 0.0001727/0.004995, allocations: 31.61 kB / 0.881 GB, free: 3.426 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 0.0001309/0.005126, allocations: 45.73 kB / 0.8811 GB, free: 3.383 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003645/0.00549, allocations: 95.81 kB / 0.8811 GB, free: 3.289 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 0.0003738/0.005864, allocations: 291.9 kB / 0.8814 GB, free: 3.004 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002932/0.006157, allocations: 91.58 kB / 0.8815 GB, free: 2.914 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002643/0.006421, allocations: 176.6 kB / 0.8817 GB, free: 2.742 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000149/0.00657, allocations: 95.67 kB / 0.8818 GB, free: 2.648 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 5.608e-05/0.006626, allocations: 28.75 kB / 0.8818 GB, free: 2.621 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 4.559e-05/0.006672, allocations: 28 kB / 0.8818 GB, free: 2.594 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 6.788e-05/0.00674, allocations: 64.3 kB / 0.8819 GB, free: 2.531 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 0.0001132/0.006853, allocations: 87.19 kB / 0.882 GB, free: 2.449 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0003574/0.007211, allocations: 215.2 kB / 0.8822 GB, free: 2.238 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 4.599e-06/0.007215, allocations: 0 / 0.8822 GB, free: 2.238 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.453e-06/0.007217, allocations: 0 / 0.8822 GB, free: 2.238 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 6.993e-06/0.007224, allocations: 0 / 0.8822 GB, free: 2.238 MB / 0.8386 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.001069/0.008292, allocations: 0.6694 MB / 0.8828 GB, free: 1.516 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 5.495e-05/0.008347, allocations: 8.656 kB / 0.8828 GB, free: 1.508 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000114/0.008461, allocations: 40.8 kB / 0.8829 GB, free: 1.469 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003301/0.008791, allocations: 209.6 kB / 0.8831 GB, free: 1.234 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.419e-05/0.008826, allocations: 17.75 kB / 0.8831 GB, free: 1.219 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.034e-05/0.008866, allocations: 24.38 kB / 0.8831 GB, free: 1.195 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005219/0.009388, allocations: 309.4 kB / 0.8834 GB, free: 0.8633 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.231e-05/0.0094, allocations: 5.656 kB / 0.8834 GB, free: 0.8594 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.878e-05/0.009429, allocations: 8.375 kB / 0.8834 GB, free: 0.8516 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.45e-05/0.009443, allocations: 7.938 kB / 0.8834 GB, free: 0.8438 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002073/0.009651, allocations: 74.94 kB / 0.8835 GB, free: 0.7695 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008103/0.01046, allocations: 0.5602 MB / 0.884 GB, free: 180 kB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001798/0.01064, allocations: 95.02 kB / 0.8841 GB, free: 72 kB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.951e-05/0.0107, allocations: 35.61 kB / 0.8842 GB, free: 32 kB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.453e-05/0.01072, allocations: 4 kB / 0.8842 GB, free: 28 kB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002297/0.01095, allocations: 137.8 kB / 0.8843 GB, free: 15.88 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=20): time 3.486e-06/0.01096, allocations: 4 kB / 0.8843 GB, free: 15.88 MB / 0.8542 GB Notification: Performance of matching and sorting (n=20): time 0.0003749/0.01133, allocations: 191.5 kB / 0.8845 GB, free: 15.68 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.821e-05/0.0114, allocations: 114.7 kB / 0.8846 GB, free: 15.55 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002095/0.01161, allocations: 269.7 kB / 0.8849 GB, free: 15.27 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 4.283e-05/0.01165, allocations: 41.69 kB / 0.8849 GB, free: 15.22 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001311/0.01178, allocations: 203.2 kB / 0.8851 GB, free: 15.02 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 5.403e-05/0.01184, allocations: 55.56 kB / 0.8851 GB, free: 14.96 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001214/0.01196, allocations: 79.58 kB / 0.8852 GB, free: 14.88 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 0.0001525/0.01211, allocations: 0.5001 MB / 0.8857 GB, free: 14.36 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001682/0.01228, allocations: 129.3 kB / 0.8858 GB, free: 14.22 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003641/0.01265, allocations: 260.3 kB / 0.8861 GB, free: 13.9 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002666/0.01291, allocations: 227.6 kB / 0.8863 GB, free: 13.63 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.809e-06/0.01292, allocations: 0 / 0.8863 GB, free: 13.63 MB / 0.8542 GB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0004206/0.01334, allocations: 398.1 kB / 0.8867 GB, free: 13.2 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 5.328e-05/0.01339, allocations: 93.09 kB / 0.8868 GB, free: 13.09 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.737e-06/0.0134, allocations: 4.156 kB / 0.8868 GB, free: 13.09 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.995e-05/0.01342, allocations: 8 kB / 0.8868 GB, free: 13.08 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001782/0.0136, allocations: 47.91 kB / 0.8868 GB, free: 13.04 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.702e-06/0.0136, allocations: 0 / 0.8868 GB, free: 13.04 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001567/0.01376, allocations: 63.73 kB / 0.8869 GB, free: 12.97 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.85e-05/0.01378, allocations: 8 kB / 0.8869 GB, free: 12.96 MB / 0.8542 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,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,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 (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 0.0001238/0.0139, allocations: 186.7 kB / 0.8871 GB, free: 12.77 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.312e-05/0.01394, allocations: 27.84 kB / 0.8871 GB, free: 12.75 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002371/0.01417, allocations: 173.1 kB / 0.8873 GB, free: 12.57 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.16e-06/0.01418, allocations: 4 kB / 0.8873 GB, free: 12.57 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.647e-06/0.01418, allocations: 0 / 0.8873 GB, free: 12.57 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.789e-06/0.01419, allocations: 3.938 kB / 0.8873 GB, free: 12.57 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004497/0.01464, allocations: 493.1 kB / 0.8877 GB, free: 12.04 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.01464, allocations: 0 / 0.8877 GB, free: 12.04 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.564e-05/0.01471, allocations: 19.98 kB / 0.8878 GB, free: 12.02 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.237e-06/0.01472, allocations: 0 / 0.8878 GB, free: 12.02 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.452e-05/0.01473, allocations: 7.984 kB / 0.8878 GB, free: 12.02 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.057e-06/0.01474, allocations: 15.88 kB / 0.8878 GB, free: 12 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.233e-06/0.01474, allocations: 0 / 0.8878 GB, free: 12 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000222/0.01496, allocations: 305.8 kB / 0.8881 GB, free: 11.68 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 2.565e-05/0.01498, allocations: 27.8 kB / 0.8881 GB, free: 11.66 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.246e-05/0.01502, allocations: 8 kB / 0.8881 GB, free: 11.65 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000123/0.01514, allocations: 31.91 kB / 0.8881 GB, free: 11.62 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.511e-05/0.01524, allocations: 47.91 kB / 0.8882 GB, free: 11.57 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.993e-05/0.01526, allocations: 11.98 kB / 0.8882 GB, free: 11.56 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 8.195e-05/0.01534, allocations: 172.5 kB / 0.8884 GB, free: 11.39 MB / 0.8542 GB Notification: Performance of sort global known variables: time 6e-08/0.01534, allocations: 4 kB / 0.8884 GB, free: 11.39 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0002289/0.01557, allocations: 63.89 kB / 0.8884 GB, free: 11.32 MB / 0.8542 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 0.0001281/0.01569, allocations: 116.1 kB / 0.8885 GB, free: 11.2 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0003664/0.01606, allocations: 392.4 kB / 0.8889 GB, free: 10.76 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 2.866e-06/0.01606, allocations: 0 / 0.8889 GB, free: 10.76 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.0001082/0.01617, allocations: 69.34 kB / 0.889 GB, free: 10.69 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002803/0.01645, allocations: 45.03 kB / 0.889 GB, free: 10.65 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008072/0.01726, allocations: 381.2 kB / 0.8894 GB, free: 10.25 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.393e-05/0.01731, allocations: 76.33 kB / 0.8895 GB, free: 10.16 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 8.019e-05/0.01739, allocations: 17.95 kB / 0.8895 GB, free: 10.13 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.536e-05/0.01747, allocations: 32.48 kB / 0.8895 GB, free: 10.1 MB / 0.8542 GB Notification: Performance of SimCode: time 1.272e-06/0.01747, allocations: 4 kB / 0.8895 GB, free: 10.09 MB / 0.8542 GB Notification: Performance of Templates: time 0.006183/0.02365, allocations: 3.926 MB / 0.8933 GB, free: 6.242 MB / 0.8542 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.406147853937]