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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze,tolerance=1e-08,outputFormat="mat",numberOfIntervals=200,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=200,variableFilter="time|ySet|yOut|antFre.sigBus.TConInMea|antFre.sigBus.TEvaOutMea|antFre.TAntFre",fileNamePrefix="Buildings_latest_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000834/0.0008341, allocations: 92.23 kB / 15.36 MB, free: 0.7383 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.006338/0.006338, allocations: 170.2 kB / 16.26 MB, free: 6.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.378/1.378, allocations: 223.3 MB / 240.3 MB, free: 5.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.8/2.8, allocations: 473.5 MB / 0.747 GB, free: 6.004 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0004463/0.0004464, allocations: 11.19 kB / 0.9158 GB, free: 33.08 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3663/0.3667, allocations: 162.2 MB / 1.074 GB, free: 7.406 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze): time 0.002376/0.3691, allocations: 1.775 MB / 1.076 GB, free: 5.621 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0009659/0.3701, allocations: 0.5495 MB / 1.076 GB, free: 5.066 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001096/0.3703, allocations: 4 kB / 1.076 GB, free: 5.062 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001076/0.3704, allocations: 19.8 kB / 1.077 GB, free: 5.043 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0001001/0.3705, allocations: 27.78 kB / 1.077 GB, free: 5.016 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002527/0.3707, allocations: 79.91 kB / 1.077 GB, free: 4.938 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0002569/0.371, allocations: 243.3 kB / 1.077 GB, free: 4.699 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002534/0.3713, allocations: 102.9 kB / 1.077 GB, free: 4.598 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001153/0.3714, allocations: 83.61 kB / 1.077 GB, free: 4.516 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001334/0.3715, allocations: 107.4 kB / 1.077 GB, free: 4.41 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 3.245e-05/0.3716, allocations: 8 kB / 1.077 GB, free: 4.402 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 2.494e-05/0.3716, allocations: 12 kB / 1.077 GB, free: 4.391 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 4.301e-05/0.3717, allocations: 31.84 kB / 1.077 GB, free: 4.359 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001117/0.3718, allocations: 121.1 kB / 1.077 GB, free: 4.234 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002419/0.372, allocations: 247.3 kB / 1.078 GB, free: 3.992 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.372, allocations: 0 / 1.078 GB, free: 3.992 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.144e-06/0.372, allocations: 0 / 1.078 GB, free: 3.992 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.219e-06/0.3721, allocations: 0 / 1.078 GB, free: 3.992 MB / 0.8262 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 45 * Number of variables: 45 Notification: Performance of Generate backend data structure: time 0.001128/0.3732, allocations: 0.6138 MB / 1.078 GB, free: 3.309 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.849e-05/0.3732, allocations: 8.031 kB / 1.078 GB, free: 3.301 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.15e-05/0.3733, allocations: 32.59 kB / 1.078 GB, free: 3.27 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000273/0.3736, allocations: 248.5 kB / 1.078 GB, free: 2.988 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.705e-05/0.3736, allocations: 16.75 kB / 1.078 GB, free: 2.973 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.4e-05/0.3737, allocations: 24.36 kB / 1.078 GB, free: 2.949 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006415/0.3743, allocations: 290.5 kB / 1.079 GB, free: 2.652 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.388e-06/0.3744, allocations: 0 / 1.079 GB, free: 2.652 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.669e-05/0.3744, allocations: 7.938 kB / 1.079 GB, free: 2.645 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.807e-06/0.3744, allocations: 4 kB / 1.079 GB, free: 2.641 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007443/0.3751, allocations: 239.8 kB / 1.079 GB, free: 2.406 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001169/0.3763, allocations: 0.6403 MB / 1.08 GB, free: 1.715 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008868/0.3772, allocations: 266.5 kB / 1.08 GB, free: 1.445 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003357/0.3776, allocations: 108.8 kB / 1.08 GB, free: 1.336 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.789e-05/0.3776, allocations: 4 kB / 1.08 GB, free: 1.332 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005437/0.3782, allocations: 200.9 kB / 1.08 GB, free: 1.125 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=18): time 3.307e-06/0.3782, allocations: 0 / 1.08 GB, free: 1.125 MB / 0.8262 GB Notification: Performance of matching and sorting (n=18): time 0.001154/0.3793, allocations: 385 kB / 1.081 GB, free: 0.7422 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.454e-05/0.3794, allocations: 106.8 kB / 1.081 GB, free: 0.6133 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001738/0.3796, allocations: 216.2 kB / 1.081 GB, free: 404 kB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 3.617e-05/0.3796, allocations: 37.7 kB / 1.081 GB, free: 360 kB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 9.823e-05/0.3797, allocations: 156.2 kB / 1.081 GB, free: 200 kB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 5.279e-05/0.3798, allocations: 51.42 kB / 1.081 GB, free: 148 kB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.204e-05/0.3799, allocations: 37.7 kB / 1.081 GB, free: 104 kB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001158/0.38, allocations: 330.8 kB / 1.081 GB, free: 15.77 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003928/0.3804, allocations: 120.2 kB / 1.082 GB, free: 15.65 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004211/0.3808, allocations: 195.7 kB / 1.082 GB, free: 15.43 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000722/0.3815, allocations: 343 kB / 1.082 GB, free: 15.06 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.3816, allocations: 0 / 1.082 GB, free: 15.06 MB / 0.8419 GB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0009422/0.3825, allocations: 455.9 kB / 1.082 GB, free: 14.59 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 7.329e-05/0.3826, allocations: 90.34 kB / 1.083 GB, free: 14.49 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.342e-06/0.3826, allocations: 0 / 1.083 GB, free: 14.49 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.893e-05/0.3826, allocations: 7.938 kB / 1.083 GB, free: 14.48 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002363/0.3829, allocations: 60.02 kB / 1.083 GB, free: 14.42 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.103e-05/0.3829, allocations: 4 kB / 1.083 GB, free: 14.42 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003528/0.3832, allocations: 75.69 kB / 1.083 GB, free: 14.34 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.737e-05/0.3833, allocations: 12 kB / 1.083 GB, free: 14.33 MB / 0.8419 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 25 (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,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 (31): * Single equations (assignments): 28 * 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.0001406/0.3834, allocations: 141.6 kB / 1.083 GB, free: 14.19 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.638e-05/0.3835, allocations: 23.81 kB / 1.083 GB, free: 14.16 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008185/0.3843, allocations: 295.2 kB / 1.083 GB, free: 13.87 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.171e-06/0.3843, allocations: 3.938 kB / 1.083 GB, free: 13.87 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.324e-06/0.3843, allocations: 0 / 1.083 GB, free: 13.87 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.32e-06/0.3843, allocations: 11.92 kB / 1.083 GB, free: 13.86 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001032/0.3854, allocations: 0.6097 MB / 1.084 GB, free: 13.19 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.305e-06/0.3854, allocations: 0 / 1.084 GB, free: 13.19 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001763/0.3856, allocations: 35.91 kB / 1.084 GB, free: 13.16 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.705e-06/0.3856, allocations: 4 kB / 1.084 GB, free: 13.15 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.959e-05/0.3856, allocations: 7.984 kB / 1.084 GB, free: 13.14 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.754e-06/0.3856, allocations: 3.938 kB / 1.084 GB, free: 13.14 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.008e-06/0.3856, allocations: 11.94 kB / 1.084 GB, free: 13.13 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007946/0.3864, allocations: 367.1 kB / 1.084 GB, free: 12.75 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 4.988e-05/0.3865, allocations: 100.8 kB / 1.084 GB, free: 12.64 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.326e-05/0.3865, allocations: 8 kB / 1.084 GB, free: 12.63 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003282/0.3869, allocations: 51.94 kB / 1.084 GB, free: 12.58 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001328/0.387, allocations: 47.94 kB / 1.084 GB, free: 12.53 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.359e-05/0.387, allocations: 7.984 kB / 1.084 GB, free: 12.52 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0001118/0.3872, allocations: 147 kB / 1.085 GB, free: 12.38 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.8e-07/0.3872, allocations: 0 / 1.085 GB, free: 12.38 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0003196/0.3875, allocations: 55.84 kB / 1.085 GB, free: 12.32 MB / 0.8419 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 13 ($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) * Number of discrete states: 6 (TEvaOutEmu.count,TConInEmu.count,ySetPul.count,antFre.hys.y,hys.y,antFre.disErr.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 11 * 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.00015/0.3876, allocations: 111.5 kB / 1.085 GB, free: 12.2 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0009332/0.3886, allocations: 458.3 kB / 1.085 GB, free: 11.72 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.786e-06/0.3886, allocations: 0 / 1.085 GB, free: 11.72 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0003951/0.389, allocations: 135.9 kB / 1.085 GB, free: 11.59 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003936/0.3894, allocations: 35.69 kB / 1.085 GB, free: 11.55 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008366/0.3902, allocations: 432.9 kB / 1.086 GB, free: 11.11 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002593/0.3905, allocations: 0.7323 MB / 1.086 GB, free: 10.35 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0001019/0.3906, allocations: 17.55 kB / 1.086 GB, free: 10.33 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.223e-05/0.3907, allocations: 27.36 kB / 1.086 GB, free: 10.3 MB / 0.8419 GB Notification: Performance of SimCode: time 4.91e-07/0.3907, allocations: 0 / 1.086 GB, free: 10.3 MB / 0.8419 GB Notification: Performance of Templates: time 0.005875/0.3966, allocations: 2.766 MB / 1.089 GB, free: 7.586 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.makefile (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=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.pipe 2>&1) 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) Reference file matches