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.0009474/0.0009474, allocations: 81.95 kB / 21.47 MB, free: 3.031 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.0009529/0.0009529, allocations: 164.7 kB / 24.87 MB, free: 8.891 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.9202/0.9202, allocations: 177.1 MB / 205.3 MB, free: 5.48 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo): time 1.788/1.788, allocations: 359 MB / 0.6063 GB, free: 10.86 MB / 0.573 GB " [Timeout remaining time 178] Using package Buildings with version 11.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-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: 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_11_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_11_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.773e-06/1.773e-06, allocations: 3.938 kB / 0.7884 GB, free: 12.13 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.745e-05/2.923e-05, allocations: 6.25 kB / 0.7884 GB, free: 12.12 MB / 0.7448 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze): time 0.00348/0.00351, allocations: 2.121 MB / 0.7904 GB, free: 10 MB / 0.7448 GB Notification: Performance of NFInst.instExpressions: time 0.001037/0.004547, allocations: 0.5759 MB / 0.791 GB, free: 9.426 MB / 0.7448 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001338/0.004681, allocations: 4 kB / 0.791 GB, free: 9.422 MB / 0.7448 GB Notification: Performance of NFTyping.typeComponents: time 0.0001277/0.004808, allocations: 19.73 kB / 0.791 GB, free: 9.402 MB / 0.7448 GB Notification: Performance of NFTyping.typeBindings: time 0.0001034/0.004912, allocations: 40.81 kB / 0.7911 GB, free: 9.363 MB / 0.7448 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002672/0.005179, allocations: 91.81 kB / 0.7912 GB, free: 9.273 MB / 0.7448 GB Notification: Performance of NFFlatten.flatten: time 0.0003003/0.005479, allocations: 267.9 kB / 0.7914 GB, free: 9.012 MB / 0.7448 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002166/0.005696, allocations: 88.98 kB / 0.7915 GB, free: 8.926 MB / 0.7448 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002151/0.005911, allocations: 151.7 kB / 0.7916 GB, free: 8.777 MB / 0.7448 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001389/0.00605, allocations: 95.67 kB / 0.7917 GB, free: 8.684 MB / 0.7448 GB Notification: Performance of NFPackage.collectConstants: time 4.729e-05/0.006097, allocations: 24 kB / 0.7918 GB, free: 8.66 MB / 0.7448 GB Notification: Performance of NFFlatten.collectFunctions: time 3.519e-05/0.006132, allocations: 28.91 kB / 0.7918 GB, free: 8.633 MB / 0.7448 GB Notification: Performance of NFScalarize.scalarize: time 5.611e-05/0.006188, allocations: 51.81 kB / 0.7918 GB, free: 8.582 MB / 0.7448 GB Notification: Performance of NFVerifyModel.verify: time 9.972e-05/0.006288, allocations: 84.23 kB / 0.7919 GB, free: 8.5 MB / 0.7448 GB Notification: Performance of NFConvertDAE.convert: time 0.0002663/0.006554, allocations: 191.3 kB / 0.7921 GB, free: 8.312 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 2.956e-06/0.006557, allocations: 0.8125 kB / 0.7921 GB, free: 8.312 MB / 0.7448 GB Notification: Performance of FrontEnd: time 9.72e-07/0.006558, allocations: 0 / 0.7921 GB, free: 8.312 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 5.931e-06/0.006564, allocations: 4.906 kB / 0.7921 GB, free: 8.309 MB / 0.7448 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.0009322/0.007497, allocations: 0.6588 MB / 0.7927 GB, free: 7.594 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 4.153e-05/0.007538, allocations: 8.031 kB / 0.7928 GB, free: 7.586 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.829e-05/0.007626, allocations: 42.45 kB / 0.7928 GB, free: 7.547 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002588/0.007885, allocations: 192.2 kB / 0.793 GB, free: 7.332 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.972e-05/0.007915, allocations: 24.73 kB / 0.793 GB, free: 7.309 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.669e-05/0.007952, allocations: 21.59 kB / 0.793 GB, free: 7.289 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004238/0.008375, allocations: 276.3 kB / 0.7933 GB, free: 6.984 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.199e-05/0.008387, allocations: 192 / 0.7933 GB, free: 6.984 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.588e-05/0.008413, allocations: 9.969 kB / 0.7933 GB, free: 6.977 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.12e-05/0.008424, allocations: 11.92 kB / 0.7933 GB, free: 6.965 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001297/0.008554, allocations: 47.33 kB / 0.7934 GB, free: 6.922 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00086/0.009414, allocations: 0.4929 MB / 0.7938 GB, free: 6.402 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002859/0.0097, allocations: 102.2 kB / 0.7939 GB, free: 6.293 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.539e-05/0.009765, allocations: 35.67 kB / 0.794 GB, free: 6.254 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 1.914e-05/0.009785, allocations: 4 kB / 0.794 GB, free: 6.25 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002072/0.009992, allocations: 130.8 kB / 0.7941 GB, free: 6.109 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=18): time 2.214e-06/0.009994, allocations: 0 / 0.7941 GB, free: 6.109 MB / 0.7448 GB Notification: Performance of matching and sorting (n=18): time 0.0003328/0.01033, allocations: 162 kB / 0.7942 GB, free: 5.945 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.802e-05/0.01038, allocations: 106.8 kB / 0.7944 GB, free: 5.816 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000175/0.01056, allocations: 255.8 kB / 0.7946 GB, free: 5.551 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 3.396e-05/0.01059, allocations: 34.23 kB / 0.7946 GB, free: 5.512 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001229/0.01072, allocations: 211 kB / 0.7948 GB, free: 5.301 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 4.204e-05/0.01076, allocations: 48.91 kB / 0.7949 GB, free: 5.254 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001044/0.01086, allocations: 71.27 kB / 0.7949 GB, free: 5.176 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0001572/0.01102, allocations: 0.5117 MB / 0.7954 GB, free: 4.652 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001184/0.01114, allocations: 117.8 kB / 0.7956 GB, free: 4.516 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001771/0.01132, allocations: 243.9 kB / 0.7958 GB, free: 4.215 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001903/0.01151, allocations: 209.9 kB / 0.796 GB, free: 3.969 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.01151, allocations: 0 / 0.796 GB, free: 3.969 MB / 0.7448 GB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0004088/0.01192, allocations: 376.2 kB / 0.7963 GB, free: 3.562 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 5.997e-05/0.01198, allocations: 93.09 kB / 0.7964 GB, free: 3.453 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.472e-06/0.01198, allocations: 0 / 0.7964 GB, free: 3.453 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.217e-05/0.012, allocations: 7.938 kB / 0.7964 GB, free: 3.445 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001678/0.01216, allocations: 42.12 kB / 0.7965 GB, free: 3.406 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.001e-06/0.01217, allocations: 7.938 kB / 0.7965 GB, free: 3.398 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001835/0.01235, allocations: 55.75 kB / 0.7965 GB, free: 3.344 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.423e-05/0.01238, allocations: 15.98 kB / 0.7966 GB, free: 3.328 MB / 0.7448 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,antFre.disErr.local_reset,antFre.disErr.local_set,antFre.intConOne.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) * 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.0001292/0.01251, allocations: 182.5 kB / 0.7967 GB, free: 3.145 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.028e-05/0.01255, allocations: 23.84 kB / 0.7968 GB, free: 3.121 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002615/0.01281, allocations: 157.6 kB / 0.7969 GB, free: 2.961 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.599e-06/0.01281, allocations: 4 kB / 0.7969 GB, free: 2.957 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.124e-06/0.01282, allocations: 0 / 0.7969 GB, free: 2.957 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.877e-06/0.01282, allocations: 0 / 0.7969 GB, free: 2.957 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004023/0.01322, allocations: 409.8 kB / 0.7973 GB, free: 2.523 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/0.01322, allocations: 0 / 0.7973 GB, free: 2.523 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.02e-05/0.01331, allocations: 19.98 kB / 0.7973 GB, free: 2.504 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.059e-06/0.01332, allocations: 4.484 kB / 0.7973 GB, free: 2.5 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.393e-05/0.01333, allocations: 4.5 kB / 0.7973 GB, free: 2.496 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/0.01333, allocations: 4.562 kB / 0.7973 GB, free: 2.492 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.01334, allocations: 0 / 0.7973 GB, free: 2.492 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002789/0.01361, allocations: 304.5 kB / 0.7976 GB, free: 2.18 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 2.358e-05/0.01364, allocations: 19.84 kB / 0.7976 GB, free: 2.16 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.633e-05/0.01367, allocations: 8 kB / 0.7977 GB, free: 2.152 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001701/0.01384, allocations: 38.16 kB / 0.7977 GB, free: 2.117 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.448e-05/0.01394, allocations: 35.92 kB / 0.7977 GB, free: 2.082 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.162e-05/0.01396, allocations: 11.98 kB / 0.7977 GB, free: 2.07 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 9.248e-05/0.01405, allocations: 172.1 kB / 0.7979 GB, free: 1.902 MB / 0.7448 GB Notification: Performance of sort global known variables: time 8e-08/0.01405, allocations: 0 / 0.7979 GB, free: 1.902 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0003248/0.01438, allocations: 56.8 kB / 0.798 GB, free: 1.848 MB / 0.7448 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.0001451/0.01452, allocations: 112 kB / 0.7981 GB, free: 1.73 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0003479/0.01487, allocations: 363.4 kB / 0.7984 GB, free: 1.32 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 1.863e-06/0.01487, allocations: 3.938 kB / 0.7984 GB, free: 1.316 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 0.0001076/0.01498, allocations: 59.58 kB / 0.7985 GB, free: 1.254 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003575/0.01534, allocations: 32.84 kB / 0.7985 GB, free: 1.223 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000834/0.01617, allocations: 363.2 kB / 0.7988 GB, free: 0.8477 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.105e-05/0.01623, allocations: 79.97 kB / 0.7989 GB, free: 0.75 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 8.987e-05/0.01632, allocations: 14.55 kB / 0.7989 GB, free: 0.7383 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001819/0.01651, allocations: 119.2 kB / 0.799 GB, free: 0.6211 MB / 0.7448 GB Notification: Performance of SimCode: time 1.092e-06/0.01651, allocations: 0 / 0.799 GB, free: 0.6211 MB / 0.7448 GB Notification: Performance of Templates: time 0.007174/0.02368, allocations: 3.797 MB / 0.8028 GB, free: 12.9 MB / 0.7605 GB " [Timeout remaining time 300] make -j1 -f Buildings_11_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.makefile [Timeout 300] (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 & ./Buildings_11_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_11_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/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.058292851317674]