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.001808/0.001808, 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.002303/0.002303, allocations: 211.2 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.477/1.477, allocations: 230.6 MB / 256.8 MB, free: 7.793 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.214/3.214, allocations: 0.49 GB / 0.7959 GB, free: 35.56 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.002012/0.002012, allocations: 70.08 kB / 1.155 GB, free: 25.17 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3152/0.3172, allocations: 176.1 MB / 1.327 GB, free: 1 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze): time 0.003741/0.3209, allocations: 2.123 MB / 1.329 GB, free: 14.86 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.001186/0.3221, allocations: 0.5884 MB / 1.33 GB, free: 14.27 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001285/0.3222, allocations: 7.938 kB / 1.33 GB, free: 14.26 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0001289/0.3224, allocations: 27.66 kB / 1.33 GB, free: 14.23 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0001164/0.3225, allocations: 47.59 kB / 1.33 GB, free: 14.19 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002923/0.3228, allocations: 99.88 kB / 1.33 GB, free: 14.09 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0003569/0.3231, allocations: 295.3 kB / 1.33 GB, free: 13.8 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002507/0.3234, allocations: 103.5 kB / 1.33 GB, free: 13.7 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001629/0.3236, allocations: 123.6 kB / 1.33 GB, free: 13.57 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001889/0.3237, allocations: 139.4 kB / 1.331 GB, free: 13.44 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 5.352e-05/0.3238, allocations: 28 kB / 1.331 GB, free: 13.41 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 5.389e-05/0.3239, allocations: 39.94 kB / 1.331 GB, free: 13.37 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 6.669e-05/0.3239, allocations: 59.83 kB / 1.331 GB, free: 13.31 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001322/0.3241, allocations: 115.4 kB / 1.331 GB, free: 13.2 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.000381/0.3244, allocations: 318.8 kB / 1.331 GB, free: 12.89 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.078e-06/0.3244, allocations: 0 / 1.331 GB, free: 12.89 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.382e-06/0.3244, allocations: 3.938 kB / 1.331 GB, free: 12.88 MB / 1.029 GB Notification: Performance of Transformations before backend: time 6.933e-06/0.3244, allocations: 0 / 1.331 GB, free: 12.88 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.001294/0.3257, allocations: 0.6122 MB / 1.332 GB, free: 12.22 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.359e-05/0.3258, allocations: 12.03 kB / 1.332 GB, free: 12.21 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.418e-05/0.3259, allocations: 32.75 kB / 1.332 GB, free: 12.18 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003799/0.3262, allocations: 210.6 kB / 1.332 GB, free: 11.95 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.766e-05/0.3263, allocations: 16.81 kB / 1.332 GB, free: 11.93 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.995e-05/0.3263, allocations: 24.38 kB / 1.332 GB, free: 11.91 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008164/0.3271, allocations: 380.6 kB / 1.332 GB, free: 11.5 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.095e-05/0.3271, allocations: 0 / 1.332 GB, free: 11.5 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.146e-05/0.3272, allocations: 8 kB / 1.332 GB, free: 11.49 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.055e-06/0.3272, allocations: 4 kB / 1.332 GB, free: 11.49 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007755/0.328, allocations: 213.6 kB / 1.333 GB, free: 11.28 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00125/0.3292, allocations: 0.5294 MB / 1.333 GB, free: 10.71 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007133/0.3299, allocations: 204.7 kB / 1.333 GB, free: 10.51 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000334/0.3303, allocations: 84.78 kB / 1.333 GB, free: 10.42 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.602e-05/0.3303, allocations: 4 kB / 1.333 GB, free: 10.42 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005379/0.3308, allocations: 203.1 kB / 1.334 GB, free: 10.21 MB / 1.029 GB Notification: Performance of pre-optimization done (n=20): time 1.873e-06/0.3308, allocations: 0 / 1.334 GB, free: 10.21 MB / 1.029 GB Notification: Performance of matching and sorting (n=20): time 0.001163/0.332, allocations: 346.6 kB / 1.334 GB, free: 9.863 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001134/0.3321, allocations: 148.5 kB / 1.334 GB, free: 9.688 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002512/0.3323, allocations: 223.8 kB / 1.334 GB, free: 9.457 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 4.871e-05/0.3324, allocations: 37.7 kB / 1.334 GB, free: 9.414 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001424/0.3325, allocations: 168.6 kB / 1.334 GB, free: 9.246 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 5.525e-05/0.3326, allocations: 51.62 kB / 1.334 GB, free: 9.195 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001262/0.3327, allocations: 73.91 kB / 1.335 GB, free: 9.117 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001681/0.3329, allocations: 330.8 kB / 1.335 GB, free: 8.785 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000442/0.3333, allocations: 197.3 kB / 1.335 GB, free: 8.574 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005391/0.3339, allocations: 359 kB / 1.335 GB, free: 8.16 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007165/0.3346, allocations: 315 kB / 1.336 GB, free: 7.816 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.786e-06/0.3346, allocations: 3.938 kB / 1.336 GB, free: 7.812 MB / 1.029 GB Notification: Performance of matching and sorting (n=37) (initialization): time 0.001067/0.3357, allocations: 0.5163 MB / 1.336 GB, free: 7.254 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 8.391e-05/0.3357, allocations: 89.09 kB / 1.336 GB, free: 7.148 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.478e-06/0.3357, allocations: 4 kB / 1.336 GB, free: 7.145 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.061e-05/0.3358, allocations: 3.938 kB / 1.336 GB, free: 7.141 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002654/0.336, allocations: 51.89 kB / 1.336 GB, free: 7.09 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.026e-05/0.336, allocations: 4 kB / 1.336 GB, free: 7.086 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003611/0.3364, allocations: 75.72 kB / 1.336 GB, free: 7.012 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.619e-05/0.3364, allocations: 16 kB / 1.336 GB, free: 6.996 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.0001746/0.3366, allocations: 157.7 kB / 1.337 GB, free: 6.832 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.375e-05/0.3367, allocations: 23.86 kB / 1.337 GB, free: 6.809 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008289/0.3375, allocations: 285.1 kB / 1.337 GB, free: 6.527 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.376e-06/0.3375, allocations: 0 / 1.337 GB, free: 6.527 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.3375, allocations: 0 / 1.337 GB, free: 6.527 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.336e-06/0.3375, allocations: 4 kB / 1.337 GB, free: 6.523 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001126/0.3386, allocations: 0.5346 MB / 1.337 GB, free: 5.953 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.928e-06/0.3386, allocations: 7.938 kB / 1.337 GB, free: 5.945 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001768/0.3388, allocations: 31.97 kB / 1.337 GB, free: 5.914 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.875e-06/0.3388, allocations: 0 / 1.337 GB, free: 5.914 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.045e-05/0.3388, allocations: 7.984 kB / 1.337 GB, free: 5.906 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.774e-06/0.3388, allocations: 0 / 1.337 GB, free: 5.906 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.3388, allocations: 0 / 1.337 GB, free: 5.906 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008538/0.3397, allocations: 363.2 kB / 1.338 GB, free: 5.535 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 3.982e-05/0.3397, allocations: 27.8 kB / 1.338 GB, free: 5.508 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.875e-05/0.3398, allocations: 8 kB / 1.338 GB, free: 5.5 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003344/0.3401, allocations: 47.94 kB / 1.338 GB, free: 5.453 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001255/0.3402, allocations: 47.91 kB / 1.338 GB, free: 5.406 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.204e-05/0.3403, allocations: 11.98 kB / 1.338 GB, free: 5.395 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0001379/0.3404, allocations: 152.6 kB / 1.338 GB, free: 5.246 MB / 1.029 GB Notification: Performance of sort global known variables: time 7.1e-08/0.3404, allocations: 0 / 1.338 GB, free: 5.246 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003266/0.3407, allocations: 63.89 kB / 1.338 GB, free: 5.184 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.0001546/0.3409, allocations: 115.2 kB / 1.338 GB, free: 5.059 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.00101/0.3419, allocations: 0.5058 MB / 1.339 GB, free: 4.5 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.3419, allocations: 0 / 1.339 GB, free: 4.5 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0003916/0.3423, allocations: 111.8 kB / 1.339 GB, free: 4.391 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003849/0.3427, allocations: 39.73 kB / 1.339 GB, free: 4.355 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008826/0.3436, allocations: 400.6 kB / 1.339 GB, free: 3.941 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001335/0.3437, allocations: 137.9 kB / 1.339 GB, free: 3.789 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 0.0001133/0.3438, allocations: 21.94 kB / 1.339 GB, free: 3.762 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.709e-05/0.3439, allocations: 31.42 kB / 1.339 GB, free: 3.73 MB / 1.029 GB Notification: Performance of SimCode: time 3.4e-07/0.3439, allocations: 7.938 kB / 1.339 GB, free: 3.723 MB / 1.029 GB Notification: Performance of Templates: time 0.008327/0.3522, allocations: 4.098 MB / 1.343 GB, free: 15.69 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 gbode -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: 8.840096554995398]