Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001602/0.001602, allocations: 96.42 kB / 19.7 MB, free: 2.133 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.002087/0.002087, allocations: 210.9 kB / 22.99 MB, free: 4.957 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.531/1.531, allocations: 230.6 MB / 256.8 MB, free: 7.77 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.332/3.332, allocations: 0.49 GB / 0.7959 GB, free: 35.52 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.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_12_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_12_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.002284/0.002284, allocations: 68.59 kB / 1.155 GB, free: 25.23 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4254/0.4276, allocations: 176.1 MB / 1.327 GB, free: 0.957 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze): time 0.004515/0.4322, allocations: 2.115 MB / 1.329 GB, free: 14.83 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.0014/0.4336, allocations: 0.5884 MB / 1.33 GB, free: 14.24 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001495/0.4337, allocations: 11.94 kB / 1.33 GB, free: 14.23 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0001691/0.4339, allocations: 23.67 kB / 1.33 GB, free: 14.2 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0001297/0.434, allocations: 47.58 kB / 1.33 GB, free: 14.16 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003231/0.4343, allocations: 99.88 kB / 1.33 GB, free: 14.06 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0003969/0.4347, allocations: 295.3 kB / 1.33 GB, free: 13.77 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002928/0.435, allocations: 103.5 kB / 1.33 GB, free: 13.66 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001861/0.4352, allocations: 123.6 kB / 1.33 GB, free: 13.54 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002161/0.4354, allocations: 147.4 kB / 1.331 GB, free: 13.4 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 6.33e-05/0.4355, allocations: 28 kB / 1.331 GB, free: 13.37 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 6.122e-05/0.4355, allocations: 32 kB / 1.331 GB, free: 13.34 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 9.419e-05/0.4356, allocations: 63.81 kB / 1.331 GB, free: 13.28 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.000149/0.4358, allocations: 111.4 kB / 1.331 GB, free: 13.17 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0004651/0.4363, allocations: 322.6 kB / 1.331 GB, free: 12.85 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 1.034e-05/0.4363, allocations: 8 kB / 1.331 GB, free: 12.84 MB / 1.029 GB Notification: Performance of FrontEnd: time 2.024e-06/0.4363, allocations: 0 / 1.331 GB, free: 12.84 MB / 1.029 GB Notification: Performance of Transformations before backend: time 7.624e-06/0.4363, allocations: 0 / 1.331 GB, free: 12.84 MB / 1.029 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.001427/0.4377, allocations: 0.6006 MB / 1.332 GB, free: 12.2 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.991e-05/0.4377, allocations: 11.97 kB / 1.332 GB, free: 12.18 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.576e-05/0.4378, allocations: 36.73 kB / 1.332 GB, free: 12.15 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004446/0.4383, allocations: 206.7 kB / 1.332 GB, free: 11.92 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.865e-05/0.4383, allocations: 20.8 kB / 1.332 GB, free: 11.9 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.178e-05/0.4384, allocations: 20.38 kB / 1.332 GB, free: 11.88 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007994/0.4392, allocations: 384.6 kB / 1.332 GB, free: 11.47 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.454e-05/0.4392, allocations: 3.984 kB / 1.332 GB, free: 11.46 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.477e-05/0.4392, allocations: 8 kB / 1.332 GB, free: 11.46 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.107e-06/0.4392, allocations: 4 kB / 1.332 GB, free: 11.45 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007459/0.44, allocations: 217.6 kB / 1.333 GB, free: 11.24 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001296/0.4413, allocations: 0.5294 MB / 1.333 GB, free: 10.68 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007191/0.442, allocations: 202.4 kB / 1.333 GB, free: 10.47 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003396/0.4423, allocations: 88.77 kB / 1.333 GB, free: 10.38 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 3.022e-05/0.4424, allocations: 4 kB / 1.333 GB, free: 10.38 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005587/0.4429, allocations: 203.1 kB / 1.334 GB, free: 10.16 MB / 1.029 GB Notification: Performance of pre-optimization done (n=20): time 2.344e-06/0.4429, allocations: 0 / 1.334 GB, free: 10.16 MB / 1.029 GB Notification: Performance of matching and sorting (n=20): time 0.001181/0.4441, allocations: 350.4 kB / 1.334 GB, free: 9.816 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001241/0.4442, allocations: 140.5 kB / 1.334 GB, free: 9.648 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002757/0.4445, allocations: 223.8 kB / 1.334 GB, free: 9.418 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 4.864e-05/0.4446, allocations: 37.7 kB / 1.334 GB, free: 9.375 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001593/0.4447, allocations: 168.5 kB / 1.334 GB, free: 9.207 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 6.223e-05/0.4448, allocations: 55.61 kB / 1.335 GB, free: 9.152 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001259/0.4449, allocations: 69.97 kB / 1.335 GB, free: 9.078 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001657/0.4451, allocations: 330.8 kB / 1.335 GB, free: 8.746 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004596/0.4455, allocations: 205.2 kB / 1.335 GB, free: 8.527 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000554/0.4461, allocations: 355 kB / 1.335 GB, free: 8.117 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007323/0.4468, allocations: 315 kB / 1.336 GB, free: 7.773 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.4468, allocations: 0 / 1.336 GB, free: 7.773 MB / 1.029 GB Notification: Performance of matching and sorting (n=37) (initialization): time 0.001075/0.4479, allocations: 0.5162 MB / 1.336 GB, free: 7.215 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 9.231e-05/0.448, allocations: 93.09 kB / 1.336 GB, free: 7.105 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.778e-06/0.448, allocations: 4 kB / 1.336 GB, free: 7.102 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.188e-05/0.448, allocations: 3.938 kB / 1.336 GB, free: 7.098 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002669/0.4483, allocations: 47.89 kB / 1.336 GB, free: 7.051 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.125e-06/0.4483, allocations: 0 / 1.336 GB, free: 7.051 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000391/0.4487, allocations: 79.78 kB / 1.336 GB, free: 6.973 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.028e-05/0.4487, allocations: 12 kB / 1.336 GB, free: 6.961 MB / 1.029 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,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,antFre.ySetOn.y,$PRE.antFre.ySetOn.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.0001961/0.4489, allocations: 150.2 kB / 1.337 GB, free: 6.805 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.666e-05/0.449, allocations: 27.84 kB / 1.337 GB, free: 6.777 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008508/0.4498, allocations: 288.7 kB / 1.337 GB, free: 6.492 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.028e-06/0.4498, allocations: 0 / 1.337 GB, free: 6.492 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.131e-06/0.4498, allocations: 0 / 1.337 GB, free: 6.492 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.618e-06/0.4498, allocations: 0 / 1.337 GB, free: 6.492 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001169/0.451, allocations: 0.5345 MB / 1.337 GB, free: 5.922 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.761e-06/0.451, allocations: 7.922 kB / 1.337 GB, free: 5.914 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001771/0.4512, allocations: 35.95 kB / 1.337 GB, free: 5.879 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.046e-06/0.4512, allocations: 0 / 1.337 GB, free: 5.879 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.429e-05/0.4512, allocations: 7.984 kB / 1.337 GB, free: 5.871 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.783e-06/0.4512, allocations: 0 / 1.337 GB, free: 5.871 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.395e-06/0.4512, allocations: 0 / 1.337 GB, free: 5.871 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008291/0.452, allocations: 365.2 kB / 1.338 GB, free: 5.5 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 4.758e-05/0.4521, allocations: 27.78 kB / 1.338 GB, free: 5.473 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.957e-05/0.4521, allocations: 4 kB / 1.338 GB, free: 5.469 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003197/0.4524, allocations: 51.94 kB / 1.338 GB, free: 5.418 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001626/0.4526, allocations: 55.91 kB / 1.338 GB, free: 5.363 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.053e-05/0.4526, allocations: 8 kB / 1.338 GB, free: 5.355 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0001595/0.4528, allocations: 152.6 kB / 1.338 GB, free: 5.207 MB / 1.029 GB Notification: Performance of sort global known variables: time 1e-07/0.4528, allocations: 3.938 kB / 1.338 GB, free: 5.203 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003447/0.4531, allocations: 63.89 kB / 1.338 GB, free: 5.141 MB / 1.029 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.ySetOn.y,antFre.hys.y,ySetPul.T_start,ySetPul.count,TConInEmu.T_start,TConInEmu.count,TEvaOutEmu.T_start,TEvaOutEmu.count) * Number of discrete states: 7 (TEvaOutEmu.count,TConInEmu.count,ySetPul.count,antFre.hys.y,antFre.ySetOn.y,hys.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.0001795/0.4533, allocations: 111.2 kB / 1.338 GB, free: 5.02 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.001047/0.4544, allocations: 0.5079 MB / 1.339 GB, free: 4.457 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 3.105e-06/0.4544, allocations: 0 / 1.339 GB, free: 4.457 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0003792/0.4548, allocations: 111.8 kB / 1.339 GB, free: 4.348 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004375/0.4552, allocations: 44.17 kB / 1.339 GB, free: 4.305 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00105/0.4562, allocations: 390.7 kB / 1.339 GB, free: 3.902 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001881/0.4564, allocations: 141.9 kB / 1.339 GB, free: 3.746 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 0.000119/0.4565, allocations: 21.95 kB / 1.339 GB, free: 3.719 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001096/0.4567, allocations: 31.42 kB / 1.339 GB, free: 3.688 MB / 1.029 GB Notification: Performance of SimCode: time 8.52e-07/0.4567, allocations: 3.938 kB / 1.339 GB, free: 3.684 MB / 1.029 GB Notification: Performance of Templates: time 0.009147/0.4658, allocations: 4.107 MB / 1.343 GB, free: 15.65 MB / 1.045 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.pipe ; mkfifo Buildings_12_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.pipe ; head -c 1048576 < Buildings_12_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.pipe >> ../files/Buildings_12_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.sim & ./Buildings_12_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze -abortSlowSimulation -alarm=400 -s cvode -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Fluid_HeatPumps_ModularReversible_Controls_Safety_Examples_AntiFreeze.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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.87882318701304]