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.001717/0.001717, allocations: 100.8 kB / 19.74 MB, free: 2.07 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.002129/0.002129, allocations: 213.8 kB / 23.04 MB, free: 4.863 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.457/1.457, allocations: 230.6 MB / 256.8 MB, free: 7.785 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.066/3.066, allocations: 0.49 GB / 0.7959 GB, free: 35.4 MB / 0.6231 GB " [Timeout remaining time 177] 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.001981/0.001981, allocations: 71.36 kB / 1.155 GB, free: 25.24 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3561/0.3581, allocations: 176.1 MB / 1.327 GB, free: 0.9375 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze): time 0.004036/0.3622, allocations: 2.123 MB / 1.329 GB, free: 14.8 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.001244/0.3634, allocations: 0.5845 MB / 1.33 GB, free: 14.21 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001347/0.3635, allocations: 4 kB / 1.33 GB, free: 14.21 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.000136/0.3637, allocations: 23.67 kB / 1.33 GB, free: 14.18 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.000113/0.3638, allocations: 43.59 kB / 1.33 GB, free: 14.14 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003247/0.3641, allocations: 107.8 kB / 1.33 GB, free: 14.04 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0003877/0.3645, allocations: 295.3 kB / 1.33 GB, free: 13.75 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000275/0.3648, allocations: 99.44 kB / 1.33 GB, free: 13.64 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001809/0.3649, allocations: 127.6 kB / 1.331 GB, free: 13.52 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001757/0.3651, allocations: 119.4 kB / 1.331 GB, free: 13.4 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 5.717e-05/0.3652, allocations: 32 kB / 1.331 GB, free: 13.37 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 4.407e-05/0.3652, allocations: 32 kB / 1.331 GB, free: 13.34 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 9.151e-05/0.3653, allocations: 71.75 kB / 1.331 GB, free: 13.27 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001246/0.3654, allocations: 99.52 kB / 1.331 GB, free: 13.17 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0004211/0.3659, allocations: 326.7 kB / 1.331 GB, free: 12.85 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.3659, allocations: 0 / 1.331 GB, free: 12.85 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.613e-06/0.3659, allocations: 0 / 1.331 GB, free: 12.85 MB / 1.029 GB Notification: Performance of Transformations before backend: time 6.483e-06/0.3659, allocations: 0 / 1.331 GB, free: 12.85 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.001299/0.3672, allocations: 0.6123 MB / 1.332 GB, free: 12.19 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.089e-05/0.3672, allocations: 8.031 kB / 1.332 GB, free: 12.18 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.268e-05/0.3673, allocations: 32.75 kB / 1.332 GB, free: 12.15 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004102/0.3677, allocations: 202.7 kB / 1.332 GB, free: 11.93 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.886e-05/0.3677, allocations: 20.75 kB / 1.332 GB, free: 11.91 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.635e-05/0.3678, allocations: 24.38 kB / 1.332 GB, free: 11.89 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007187/0.3685, allocations: 384.7 kB / 1.332 GB, free: 11.47 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.29e-05/0.3685, allocations: 0 / 1.332 GB, free: 11.47 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.96e-05/0.3686, allocations: 8 kB / 1.332 GB, free: 11.46 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.694e-06/0.3686, allocations: 4 kB / 1.332 GB, free: 11.46 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006849/0.3692, allocations: 209.6 kB / 1.333 GB, free: 11.25 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001207/0.3705, allocations: 0.5333 MB / 1.333 GB, free: 10.69 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000716/0.3712, allocations: 206.3 kB / 1.333 GB, free: 10.48 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003214/0.3715, allocations: 88.78 kB / 1.333 GB, free: 10.39 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 3.094e-05/0.3715, allocations: 0 / 1.333 GB, free: 10.39 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005395/0.3721, allocations: 204.9 kB / 1.334 GB, free: 10.18 MB / 1.029 GB Notification: Performance of pre-optimization done (n=20): time 1.933e-06/0.3721, allocations: 3.938 kB / 1.334 GB, free: 10.17 MB / 1.029 GB Notification: Performance of matching and sorting (n=20): time 0.00114/0.3732, allocations: 354.2 kB / 1.334 GB, free: 9.82 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.884e-05/0.3733, allocations: 140.5 kB / 1.334 GB, free: 9.652 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002467/0.3735, allocations: 219.8 kB / 1.334 GB, free: 9.426 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 4.557e-05/0.3736, allocations: 41.69 kB / 1.334 GB, free: 9.379 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001442/0.3737, allocations: 168.6 kB / 1.335 GB, free: 9.211 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 5.189e-05/0.3738, allocations: 47.64 kB / 1.335 GB, free: 9.164 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001299/0.3739, allocations: 73.95 kB / 1.335 GB, free: 9.086 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001624/0.3741, allocations: 330.8 kB / 1.335 GB, free: 8.754 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004283/0.3745, allocations: 205.3 kB / 1.335 GB, free: 8.535 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005418/0.3751, allocations: 351 kB / 1.335 GB, free: 8.129 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007161/0.3758, allocations: 323 kB / 1.336 GB, free: 7.777 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.36e-06/0.3758, allocations: 4 kB / 1.336 GB, free: 7.773 MB / 1.029 GB Notification: Performance of matching and sorting (n=37) (initialization): time 0.001034/0.3768, allocations: 0.5123 MB / 1.336 GB, free: 7.219 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 8.309e-05/0.3769, allocations: 89.09 kB / 1.336 GB, free: 7.113 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.556e-06/0.3769, allocations: 0 / 1.336 GB, free: 7.113 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.504e-05/0.3769, allocations: 7.938 kB / 1.336 GB, free: 7.105 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002504/0.3772, allocations: 47.89 kB / 1.336 GB, free: 7.059 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.877e-06/0.3772, allocations: 4 kB / 1.336 GB, free: 7.055 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003496/0.3775, allocations: 75.84 kB / 1.336 GB, free: 6.98 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.12e-05/0.3776, allocations: 15.98 kB / 1.337 GB, free: 6.965 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.0001899/0.3778, allocations: 152.4 kB / 1.337 GB, free: 6.805 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.952e-05/0.3778, allocations: 19.86 kB / 1.337 GB, free: 6.785 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008119/0.3786, allocations: 284.5 kB / 1.337 GB, free: 6.504 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.6e-06/0.3786, allocations: 4 kB / 1.337 GB, free: 6.5 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.332e-06/0.3786, allocations: 3.984 kB / 1.337 GB, free: 6.496 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.927e-06/0.3786, allocations: 0 / 1.337 GB, free: 6.496 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00114/0.3798, allocations: 0.5408 MB / 1.337 GB, free: 5.918 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.789e-06/0.3798, allocations: 3.938 kB / 1.337 GB, free: 5.914 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001738/0.38, allocations: 39.89 kB / 1.338 GB, free: 5.875 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.446e-06/0.38, allocations: 0 / 1.338 GB, free: 5.875 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.884e-05/0.38, allocations: 4 kB / 1.338 GB, free: 5.871 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.605e-06/0.38, allocations: 0 / 1.338 GB, free: 5.871 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.38, allocations: 0 / 1.338 GB, free: 5.871 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007852/0.3808, allocations: 361.1 kB / 1.338 GB, free: 5.504 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 3.752e-05/0.3808, allocations: 23.8 kB / 1.338 GB, free: 5.48 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.799e-05/0.3808, allocations: 11.98 kB / 1.338 GB, free: 5.469 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003059/0.3812, allocations: 43.94 kB / 1.338 GB, free: 5.426 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001396/0.3813, allocations: 51.92 kB / 1.338 GB, free: 5.375 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.086e-05/0.3813, allocations: 15.98 kB / 1.338 GB, free: 5.359 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.000142/0.3815, allocations: 148.6 kB / 1.338 GB, free: 5.215 MB / 1.029 GB Notification: Performance of sort global known variables: time 1.21e-07/0.3815, allocations: 3.938 kB / 1.338 GB, free: 5.211 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003445/0.3818, allocations: 63.89 kB / 1.338 GB, free: 5.148 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.0001735/0.382, allocations: 119.2 kB / 1.338 GB, free: 5.02 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.001035/0.383, allocations: 0.5001 MB / 1.339 GB, free: 4.465 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.383, allocations: 0 / 1.339 GB, free: 4.465 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0003782/0.3834, allocations: 117 kB / 1.339 GB, free: 4.352 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003893/0.3838, allocations: 48.14 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.0009632/0.3848, allocations: 420.1 kB / 1.339 GB, free: 3.867 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000142/0.3849, allocations: 134 kB / 1.34 GB, free: 3.719 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.593e-05/0.385, allocations: 31.42 kB / 1.34 GB, free: 3.688 MB / 1.029 GB Notification: Performance of SimCode: time 2.9e-07/0.385, allocations: 0 / 1.34 GB, free: 3.688 MB / 1.029 GB Notification: Performance of Templates: time 0.005878/0.3909, allocations: 3.272 MB / 1.343 GB, free: 436 kB / 1.029 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 -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: 11.26467328099534]