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.001378/0.001378, allocations: 76.3 kB / 19.18 MB, free: 2.531 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.001482/0.001482, allocations: 173.8 kB / 22.46 MB, free: 5.355 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.472/1.472, allocations: 177.1 MB / 202.8 MB, free: 9.168 MB / 190.1 MB " [Timeout remaining time 178] 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.92/2.92, allocations: 389 MB / 0.633 GB, free: 1.004 MB / 0.5919 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.1 (/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.483e-06/1.483e-06, allocations: 0 / 1 GB, free: 7.227 MB / 0.9512 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.628e-05/2.776e-05, allocations: 2.281 kB / 1 GB, free: 7.223 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze): time 0.00367/0.003698, allocations: 2.109 MB / 1.002 GB, free: 5.105 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.001322/0.00502, allocations: 0.5766 MB / 1.003 GB, free: 4.523 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001554/0.005175, allocations: 3.938 kB / 1.003 GB, free: 4.52 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.000148/0.005323, allocations: 27.72 kB / 1.003 GB, free: 4.492 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.0001172/0.00544, allocations: 47.53 kB / 1.003 GB, free: 4.445 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002973/0.005738, allocations: 91.88 kB / 1.003 GB, free: 4.355 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0003948/0.006133, allocations: 291.2 kB / 1.003 GB, free: 4.07 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000314/0.006447, allocations: 95.56 kB / 1.003 GB, free: 3.977 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002774/0.006724, allocations: 175.6 kB / 1.004 GB, free: 3.805 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001612/0.006885, allocations: 95.67 kB / 1.004 GB, free: 3.711 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 5.926e-05/0.006944, allocations: 32 kB / 1.004 GB, free: 3.68 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 4.88e-05/0.006993, allocations: 32 kB / 1.004 GB, free: 3.648 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 8.131e-05/0.007074, allocations: 67.73 kB / 1.004 GB, free: 3.582 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.0001228/0.007197, allocations: 83.75 kB / 1.004 GB, free: 3.5 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0003998/0.007597, allocations: 311.1 kB / 1.004 GB, free: 3.195 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 3.256e-06/0.0076, allocations: 0 / 1.004 GB, free: 3.195 MB / 0.9512 GB Notification: Performance of FrontEnd: time 9.32e-07/0.007601, allocations: 0 / 1.004 GB, free: 3.195 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 4.919e-06/0.007606, allocations: 0 / 1.004 GB, free: 3.195 MB / 0.9512 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.001333/0.008939, allocations: 0.6084 MB / 1.005 GB, free: 2.535 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 4.692e-05/0.008986, allocations: 15.98 kB / 1.005 GB, free: 2.52 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.594e-05/0.009072, allocations: 40.67 kB / 1.005 GB, free: 2.48 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005089/0.009581, allocations: 198.9 kB / 1.005 GB, free: 2.258 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.202e-05/0.009613, allocations: 20.88 kB / 1.005 GB, free: 2.238 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.368e-05/0.009667, allocations: 20.38 kB / 1.005 GB, free: 2.219 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007787/0.01045, allocations: 374 kB / 1.005 GB, free: 1.82 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.237e-05/0.01046, allocations: 4.125 kB / 1.005 GB, free: 1.816 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.893e-05/0.0105, allocations: 16.12 kB / 1.005 GB, free: 1.801 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.398e-06/0.01051, allocations: 7.984 kB / 1.005 GB, free: 1.793 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000778/0.01128, allocations: 201.8 kB / 1.006 GB, free: 1.598 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001284/0.01257, allocations: 0.5258 MB / 1.006 GB, free: 1.039 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008041/0.01337, allocations: 198.4 kB / 1.006 GB, free: 0.8359 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003387/0.01371, allocations: 84.78 kB / 1.006 GB, free: 0.75 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 3.066e-05/0.01374, allocations: 4 kB / 1.006 GB, free: 0.7461 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005672/0.01431, allocations: 203.1 kB / 1.007 GB, free: 0.5352 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=20): time 1.814e-06/0.01431, allocations: 0 / 1.007 GB, free: 0.5352 MB / 0.9512 GB Notification: Performance of matching and sorting (n=20): time 0.001255/0.01557, allocations: 343 kB / 1.007 GB, free: 200 kB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.949e-05/0.01565, allocations: 110.8 kB / 1.007 GB, free: 64 kB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002781/0.01593, allocations: 223.2 kB / 1.007 GB, free: 15.84 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 4.911e-05/0.01598, allocations: 37.7 kB / 1.007 GB, free: 15.79 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001378/0.01612, allocations: 160.4 kB / 1.007 GB, free: 15.63 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 6.504e-05/0.01618, allocations: 59.56 kB / 1.007 GB, free: 15.57 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001389/0.01632, allocations: 65.97 kB / 1.008 GB, free: 15.5 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001699/0.01649, allocations: 330.8 kB / 1.008 GB, free: 15.17 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000465/0.01696, allocations: 197.3 kB / 1.008 GB, free: 14.96 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005844/0.01754, allocations: 324 kB / 1.008 GB, free: 14.59 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007839/0.01833, allocations: 315.1 kB / 1.009 GB, free: 14.24 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.016e-06/0.01833, allocations: 3.938 kB / 1.009 GB, free: 14.24 MB / 0.9669 GB Notification: Performance of matching and sorting (n=37) (initialization): time 0.001159/0.01949, allocations: 0.5123 MB / 1.009 GB, free: 13.68 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 8.523e-05/0.01957, allocations: 93.09 kB / 1.009 GB, free: 13.57 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.877e-06/0.01958, allocations: 4 kB / 1.009 GB, free: 13.57 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.942e-05/0.0196, allocations: 0 / 1.009 GB, free: 13.57 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003069/0.01991, allocations: 47.89 kB / 1.009 GB, free: 13.52 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.451e-05/0.01992, allocations: 7.938 kB / 1.009 GB, free: 13.52 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003646/0.02029, allocations: 63.92 kB / 1.009 GB, free: 13.45 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.4e-05/0.02032, allocations: 16 kB / 1.009 GB, free: 13.44 MB / 0.9669 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.0002048/0.02053, allocations: 147.9 kB / 1.009 GB, free: 13.29 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.162e-05/0.02057, allocations: 23.86 kB / 1.01 GB, free: 13.26 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008796/0.02145, allocations: 281.6 kB / 1.01 GB, free: 12.98 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.848e-06/0.02145, allocations: 0 / 1.01 GB, free: 12.98 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.282e-06/0.02146, allocations: 7.875 kB / 1.01 GB, free: 12.97 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.021e-06/0.02146, allocations: 3.984 kB / 1.01 GB, free: 12.96 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001158/0.02262, allocations: 0.5291 MB / 1.01 GB, free: 12.4 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.214e-06/0.02262, allocations: 4 kB / 1.01 GB, free: 12.39 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002021/0.02283, allocations: 39.89 kB / 1.01 GB, free: 12.36 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.795e-06/0.02283, allocations: 0 / 1.01 GB, free: 12.36 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.118e-05/0.02285, allocations: 3.938 kB / 1.01 GB, free: 12.35 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.994e-06/0.02285, allocations: 0 / 1.01 GB, free: 12.35 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.223e-06/0.02285, allocations: 4 kB / 1.01 GB, free: 12.35 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008232/0.02368, allocations: 357.6 kB / 1.011 GB, free: 11.98 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 3.527e-05/0.02371, allocations: 19.86 kB / 1.011 GB, free: 11.96 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.048e-05/0.02377, allocations: 15.92 kB / 1.011 GB, free: 11.95 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003216/0.02409, allocations: 43.94 kB / 1.011 GB, free: 11.91 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001601/0.02425, allocations: 51.86 kB / 1.011 GB, free: 11.86 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.795e-05/0.02428, allocations: 7.984 kB / 1.011 GB, free: 11.85 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.0001408/0.02442, allocations: 152.4 kB / 1.011 GB, free: 11.7 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.1e-07/0.02442, allocations: 0 / 1.011 GB, free: 11.7 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0003362/0.02476, allocations: 59.89 kB / 1.011 GB, free: 11.64 MB / 0.9669 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.0001764/0.02494, allocations: 111.2 kB / 1.011 GB, free: 11.52 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.001042/0.02598, allocations: 0.4919 MB / 1.012 GB, free: 10.98 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 4.589e-06/0.02598, allocations: 4 kB / 1.012 GB, free: 10.97 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0003993/0.02638, allocations: 115.8 kB / 1.012 GB, free: 10.86 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004075/0.02679, allocations: 30.14 kB / 1.012 GB, free: 10.83 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009027/0.02769, allocations: 391.2 kB / 1.012 GB, free: 10.43 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001458/0.02784, allocations: 138.2 kB / 1.012 GB, free: 10.27 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 9.329e-05/0.02793, allocations: 17.95 kB / 1.012 GB, free: 10.25 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.846e-05/0.02803, allocations: 28.48 kB / 1.012 GB, free: 10.23 MB / 0.9669 GB Notification: Performance of SimCode: time 4.01e-07/0.02803, allocations: 0 / 1.012 GB, free: 10.23 MB / 0.9669 GB Notification: Performance of Templates: time 0.00821/0.03624, allocations: 3.666 MB / 1.016 GB, free: 6.629 MB / 0.9669 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=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.pipe 2>&1) [Timeout 800] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 8.48835426568985]