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.001582/0.001582, allocations: 104.4 kB / 19.7 MB, free: 2.125 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.001787/0.001787, allocations: 212.8 kB / 22.99 MB, free: 4.945 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.489/1.489, allocations: 230.6 MB / 256.8 MB, free: 7.812 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.402/3.402, allocations: 0.5107 GB / 0.8166 GB, free: 17.81 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.002095/0.002095, allocations: 70.94 kB / 1.187 GB, free: 13.52 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.383/0.3851, allocations: 181.9 MB / 1.365 GB, free: 13.53 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze): time 0.004412/0.3895, allocations: 2.112 MB / 1.367 GB, free: 11.4 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.001473/0.3909, allocations: 0.5728 MB / 1.367 GB, free: 10.82 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002165/0.3912, allocations: 7.938 kB / 1.367 GB, free: 10.81 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.000177/0.3913, allocations: 23.67 kB / 1.367 GB, free: 10.79 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.0001698/0.3915, allocations: 43.59 kB / 1.367 GB, free: 10.75 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003991/0.3919, allocations: 99.88 kB / 1.367 GB, free: 10.65 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0004748/0.3924, allocations: 291.2 kB / 1.368 GB, free: 10.36 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000292/0.3927, allocations: 92.23 kB / 1.368 GB, free: 10.27 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000263/0.3929, allocations: 115.6 kB / 1.368 GB, free: 10.16 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002337/0.3932, allocations: 123.4 kB / 1.368 GB, free: 10.04 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 8.318e-05/0.3932, allocations: 28 kB / 1.368 GB, free: 10.01 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 5.94e-05/0.3933, allocations: 36 kB / 1.368 GB, free: 9.973 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 7.906e-05/0.3934, allocations: 59.81 kB / 1.368 GB, free: 9.914 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 0.0001391/0.3935, allocations: 99.52 kB / 1.368 GB, free: 9.816 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0004585/0.394, allocations: 306.7 kB / 1.369 GB, free: 9.516 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.394, allocations: 0 / 1.369 GB, free: 9.516 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.653e-06/0.394, allocations: 0 / 1.369 GB, free: 9.516 MB / 1.061 GB Notification: Performance of Transformations before backend: time 1.18e-05/0.394, allocations: 0 / 1.369 GB, free: 9.516 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.001401/0.3954, allocations: 0.6007 MB / 1.369 GB, free: 8.867 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 5.192e-05/0.3955, allocations: 8.031 kB / 1.369 GB, free: 8.859 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001135/0.3956, allocations: 36.73 kB / 1.369 GB, free: 8.824 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004988/0.3961, allocations: 203.5 kB / 1.369 GB, free: 8.598 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.424e-05/0.3961, allocations: 20.81 kB / 1.369 GB, free: 8.578 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.954e-05/0.3961, allocations: 28.36 kB / 1.369 GB, free: 8.551 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007634/0.3969, allocations: 376.6 kB / 1.37 GB, free: 8.148 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.227e-05/0.3969, allocations: 7.875 kB / 1.37 GB, free: 8.141 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.788e-05/0.397, allocations: 8 kB / 1.37 GB, free: 8.133 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.928e-06/0.397, allocations: 4 kB / 1.37 GB, free: 8.129 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007047/0.3977, allocations: 209.6 kB / 1.37 GB, free: 7.922 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001224/0.3989, allocations: 0.5177 MB / 1.371 GB, free: 7.371 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000685/0.3996, allocations: 194.4 kB / 1.371 GB, free: 7.172 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003071/0.3999, allocations: 88.78 kB / 1.371 GB, free: 7.082 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 2.625e-05/0.3999, allocations: 4 kB / 1.371 GB, free: 7.078 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005236/0.4004, allocations: 201 kB / 1.371 GB, free: 6.871 MB / 1.061 GB Notification: Performance of pre-optimization done (n=20): time 1.563e-06/0.4004, allocations: 0 / 1.371 GB, free: 6.871 MB / 1.061 GB Notification: Performance of matching and sorting (n=20): time 0.001111/0.4015, allocations: 349.2 kB / 1.371 GB, free: 6.523 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.209e-05/0.4016, allocations: 114.8 kB / 1.371 GB, free: 6.387 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002409/0.4019, allocations: 215.1 kB / 1.372 GB, free: 6.164 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 4.739e-05/0.4019, allocations: 45.69 kB / 1.372 GB, free: 6.113 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001255/0.4021, allocations: 152.4 kB / 1.372 GB, free: 5.961 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 5.975e-05/0.4021, allocations: 59.52 kB / 1.372 GB, free: 5.902 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001195/0.4022, allocations: 69.97 kB / 1.372 GB, free: 5.828 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001588/0.4024, allocations: 330.8 kB / 1.372 GB, free: 5.496 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004258/0.4028, allocations: 201.3 kB / 1.372 GB, free: 5.281 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005236/0.4033, allocations: 327.8 kB / 1.373 GB, free: 4.902 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006979/0.404, allocations: 318.5 kB / 1.373 GB, free: 4.555 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.424e-06/0.404, allocations: 0 / 1.373 GB, free: 4.555 MB / 1.061 GB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0009995/0.405, allocations: 0.509 MB / 1.374 GB, free: 4.004 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 8.075e-05/0.4051, allocations: 91.12 kB / 1.374 GB, free: 3.898 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.982e-06/0.4051, allocations: 4 kB / 1.374 GB, free: 3.895 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.25e-05/0.4051, allocations: 7.938 kB / 1.374 GB, free: 3.887 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002356/0.4054, allocations: 47.89 kB / 1.374 GB, free: 3.84 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.03e-05/0.4054, allocations: 4 kB / 1.374 GB, free: 3.836 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000321/0.4057, allocations: 63.91 kB / 1.374 GB, free: 3.773 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.382e-05/0.4057, allocations: 16 kB / 1.374 GB, free: 3.758 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.0001665/0.4059, allocations: 143.9 kB / 1.374 GB, free: 3.609 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.251e-05/0.406, allocations: 35.77 kB / 1.374 GB, free: 3.574 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007975/0.4068, allocations: 281.8 kB / 1.374 GB, free: 3.293 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.277e-06/0.4068, allocations: 0 / 1.374 GB, free: 3.293 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.428e-06/0.4068, allocations: 0 / 1.374 GB, free: 3.293 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.128e-06/0.4068, allocations: 4 kB / 1.374 GB, free: 3.289 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001064/0.4078, allocations: 0.5252 MB / 1.375 GB, free: 2.727 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.757e-06/0.4078, allocations: 7.938 kB / 1.375 GB, free: 2.719 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000159/0.408, allocations: 27.97 kB / 1.375 GB, free: 2.691 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.584e-06/0.408, allocations: 0 / 1.375 GB, free: 2.691 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.092e-05/0.408, allocations: 7.984 kB / 1.375 GB, free: 2.684 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.747e-06/0.408, allocations: 7.938 kB / 1.375 GB, free: 2.676 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.408, allocations: 0 / 1.375 GB, free: 2.676 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007704/0.4088, allocations: 365.2 kB / 1.375 GB, free: 2.305 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 3.773e-05/0.4088, allocations: 23.78 kB / 1.375 GB, free: 2.281 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.442e-05/0.4089, allocations: 8 kB / 1.375 GB, free: 2.273 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002934/0.4092, allocations: 43.94 kB / 1.375 GB, free: 2.23 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001409/0.4093, allocations: 51.91 kB / 1.375 GB, free: 2.18 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.412e-05/0.4093, allocations: 4 kB / 1.375 GB, free: 2.176 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0001461/0.4095, allocations: 160.2 kB / 1.375 GB, free: 2.02 MB / 1.061 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4095, allocations: 0 / 1.375 GB, free: 2.02 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.000325/0.4098, allocations: 63.84 kB / 1.375 GB, free: 1.957 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.0001715/0.41, allocations: 111.7 kB / 1.376 GB, free: 1.836 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0009913/0.411, allocations: 0.5037 MB / 1.376 GB, free: 1.277 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.411, allocations: 0 / 1.376 GB, free: 1.277 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0003628/0.4113, allocations: 103.9 kB / 1.376 GB, free: 1.176 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003828/0.4117, allocations: 50.33 kB / 1.376 GB, free: 1.129 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009352/0.4127, allocations: 416.3 kB / 1.377 GB, free: 0.6953 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001436/0.4128, allocations: 138.1 kB / 1.377 GB, free: 0.543 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001039/0.4129, allocations: 27.42 kB / 1.377 GB, free: 0.5156 MB / 1.061 GB Notification: Performance of SimCode: time 6.21e-07/0.4129, allocations: 4 kB / 1.377 GB, free: 0.5117 MB / 1.061 GB Notification: Performance of Templates: time 0.005712/0.4186, allocations: 3.155 MB / 1.38 GB, free: 13.37 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/jenkins1/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: 11.694675480015576]