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.001447/0.001447, allocations: 107.6 kB / 18.95 MB, free: 2.809 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.001535/0.001535, allocations: 211 kB / 22.24 MB, free: 5.117 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.544/1.544, allocations: 230.6 MB / 256 MB, free: 7.793 MB / 206.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 3.425/3.425, allocations: 0.5107 GB / 0.8158 GB, free: 17.85 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.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: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002117/0.002117, allocations: 68.84 kB / 1.186 GB, free: 13.51 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4358/0.4379, allocations: 181.9 MB / 1.364 GB, free: 13.57 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze): time 0.00394/0.4418, allocations: 2.104 MB / 1.366 GB, free: 11.45 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.001246/0.4431, allocations: 0.5845 MB / 1.367 GB, free: 10.86 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001248/0.4432, allocations: 4 kB / 1.367 GB, free: 10.86 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.0001416/0.4433, allocations: 23.67 kB / 1.367 GB, free: 10.83 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.0001128/0.4434, allocations: 43.58 kB / 1.367 GB, free: 10.79 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002932/0.4437, allocations: 99.89 kB / 1.367 GB, free: 10.69 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0004596/0.4442, allocations: 295.2 kB / 1.367 GB, free: 10.4 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003087/0.4445, allocations: 84.69 kB / 1.367 GB, free: 10.32 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001956/0.4447, allocations: 127.5 kB / 1.367 GB, free: 10.19 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001986/0.4449, allocations: 119.4 kB / 1.367 GB, free: 10.07 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 6.648e-05/0.445, allocations: 28 kB / 1.367 GB, free: 10.05 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 5.119e-05/0.445, allocations: 28 kB / 1.367 GB, free: 10.02 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 8.735e-05/0.4451, allocations: 59.83 kB / 1.367 GB, free: 9.961 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 0.0001337/0.4452, allocations: 107.5 kB / 1.367 GB, free: 9.855 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0003753/0.4456, allocations: 298.8 kB / 1.368 GB, free: 9.562 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 5.149e-06/0.4456, allocations: 4 kB / 1.368 GB, free: 9.559 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.864e-06/0.4456, allocations: 0 / 1.368 GB, free: 9.559 MB / 1.061 GB Notification: Performance of Transformations before backend: time 7.263e-06/0.4456, allocations: 0 / 1.368 GB, free: 9.559 MB / 1.061 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.001291/0.4469, allocations: 0.5968 MB / 1.368 GB, free: 8.914 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 4e-05/0.4469, allocations: 8.031 kB / 1.368 GB, free: 8.906 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.499e-05/0.447, allocations: 36.75 kB / 1.368 GB, free: 8.871 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00046/0.4475, allocations: 215.4 kB / 1.369 GB, free: 8.633 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.474e-05/0.4475, allocations: 16.8 kB / 1.369 GB, free: 8.617 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.384e-05/0.4476, allocations: 28.36 kB / 1.369 GB, free: 8.59 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007325/0.4483, allocations: 372.7 kB / 1.369 GB, free: 8.191 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.346e-05/0.4483, allocations: 0 / 1.369 GB, free: 8.191 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.866e-05/0.4484, allocations: 8 kB / 1.369 GB, free: 8.184 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.404e-06/0.4484, allocations: 8 kB / 1.369 GB, free: 8.176 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006848/0.449, allocations: 217.4 kB / 1.369 GB, free: 7.961 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001171/0.4502, allocations: 0.5177 MB / 1.37 GB, free: 7.41 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006849/0.4509, allocations: 192.5 kB / 1.37 GB, free: 7.215 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003134/0.4512, allocations: 96.77 kB / 1.37 GB, free: 7.117 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 2.433e-05/0.4512, allocations: 0 / 1.37 GB, free: 7.117 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005101/0.4518, allocations: 199.2 kB / 1.37 GB, free: 6.91 MB / 1.061 GB Notification: Performance of pre-optimization done (n=20): time 1.443e-06/0.4518, allocations: 0 / 1.37 GB, free: 6.91 MB / 1.061 GB Notification: Performance of matching and sorting (n=20): time 0.001131/0.4529, allocations: 347.1 kB / 1.371 GB, free: 6.566 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.12e-05/0.453, allocations: 110.8 kB / 1.371 GB, free: 6.434 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002391/0.4532, allocations: 223.1 kB / 1.371 GB, free: 6.203 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 4.092e-05/0.4533, allocations: 33.7 kB / 1.371 GB, free: 6.164 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001344/0.4534, allocations: 160.4 kB / 1.371 GB, free: 6.004 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 5.831e-05/0.4534, allocations: 63.53 kB / 1.371 GB, free: 5.941 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001114/0.4536, allocations: 69.95 kB / 1.371 GB, free: 5.867 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.00017/0.4537, allocations: 330.8 kB / 1.371 GB, free: 5.535 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004282/0.4542, allocations: 197.3 kB / 1.372 GB, free: 5.324 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005056/0.4547, allocations: 323.7 kB / 1.372 GB, free: 4.949 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007219/0.4554, allocations: 318.5 kB / 1.372 GB, free: 4.602 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.584e-06/0.4554, allocations: 0 / 1.372 GB, free: 4.602 MB / 1.061 GB Notification: Performance of matching and sorting (n=37) (initialization): time 0.001032/0.4564, allocations: 0.5089 MB / 1.373 GB, free: 4.051 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 8.472e-05/0.4565, allocations: 90.81 kB / 1.373 GB, free: 3.945 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.061e-06/0.4565, allocations: 0 / 1.373 GB, free: 3.945 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.959e-05/0.4565, allocations: 7.938 kB / 1.373 GB, free: 3.938 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002498/0.4568, allocations: 59.98 kB / 1.373 GB, free: 3.879 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.594e-06/0.4568, allocations: 0 / 1.373 GB, free: 3.879 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003253/0.4571, allocations: 63.78 kB / 1.373 GB, free: 3.816 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.785e-05/0.4571, allocations: 12 kB / 1.373 GB, free: 3.805 MB / 1.061 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.0001765/0.4573, allocations: 155.9 kB / 1.373 GB, free: 3.645 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.693e-05/0.4574, allocations: 19.86 kB / 1.373 GB, free: 3.625 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008037/0.4582, allocations: 277.7 kB / 1.373 GB, free: 3.348 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.208e-06/0.4582, allocations: 7.984 kB / 1.373 GB, free: 3.34 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.929e-06/0.4582, allocations: 0 / 1.373 GB, free: 3.34 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.647e-06/0.4582, allocations: 0 / 1.373 GB, free: 3.34 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001072/0.4592, allocations: 0.5291 MB / 1.374 GB, free: 2.773 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.857e-06/0.4593, allocations: 3.938 kB / 1.374 GB, free: 2.77 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001561/0.4594, allocations: 31.91 kB / 1.374 GB, free: 2.738 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.756e-06/0.4594, allocations: 7.984 kB / 1.374 GB, free: 2.73 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.167e-05/0.4594, allocations: 12 kB / 1.374 GB, free: 2.719 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.4594, allocations: 0 / 1.374 GB, free: 2.719 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.61e-07/0.4594, allocations: 0 / 1.374 GB, free: 2.719 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000812/0.4603, allocations: 361.1 kB / 1.374 GB, free: 2.352 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 3.178e-05/0.4603, allocations: 23.72 kB / 1.374 GB, free: 2.328 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.403e-05/0.4603, allocations: 8 kB / 1.374 GB, free: 2.32 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002992/0.4606, allocations: 51.94 kB / 1.374 GB, free: 2.27 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001259/0.4608, allocations: 51.91 kB / 1.374 GB, free: 2.219 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.444e-05/0.4608, allocations: 7.984 kB / 1.374 GB, free: 2.211 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0001458/0.4609, allocations: 148.4 kB / 1.375 GB, free: 2.066 MB / 1.061 GB Notification: Performance of sort global known variables: time 8e-08/0.4609, allocations: 0 / 1.375 GB, free: 2.066 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0003061/0.4612, allocations: 63.84 kB / 1.375 GB, free: 2.004 MB / 1.061 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.000166/0.4614, allocations: 119.7 kB / 1.375 GB, free: 1.875 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.001022/0.4624, allocations: 0.4958 MB / 1.375 GB, free: 1.324 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.285e-06/0.4624, allocations: 320 / 1.375 GB, free: 1.324 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0003651/0.4628, allocations: 115.8 kB / 1.375 GB, free: 1.211 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003807/0.4632, allocations: 44.28 kB / 1.375 GB, free: 1.172 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008879/0.4641, allocations: 386.8 kB / 1.376 GB, free: 0.7734 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001456/0.4642, allocations: 138 kB / 1.376 GB, free: 0.6211 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 0.0001064/0.4643, allocations: 21.95 kB / 1.376 GB, free: 0.5938 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.835e-05/0.4644, allocations: 23.42 kB / 1.376 GB, free: 0.5703 MB / 1.061 GB Notification: Performance of SimCode: time 3.21e-07/0.4644, allocations: 0 / 1.376 GB, free: 0.5703 MB / 1.061 GB Notification: Performance of Templates: time 0.008113/0.4725, allocations: 3.833 MB / 1.38 GB, free: 12.82 MB / 1.076 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: 9.647183327004313]