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.001732/0.001732, allocations: 112.8 kB / 15.99 MB, free: 5.91 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.001939/0.001939, allocations: 196.6 kB / 16.91 MB, free: 5.754 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.447/1.447, allocations: 222.9 MB / 240.6 MB, free: 13.73 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.666/2.666, allocations: 472.7 MB / 0.7455 GB, free: 0.7852 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001958/0.001958, allocations: 60.16 kB / 0.9123 GB, free: 11.04 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3612/0.3632, allocations: 159.9 MB / 1.068 GB, free: 11.17 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze): time 0.003637/0.3668, allocations: 2.135 MB / 1.071 GB, free: 9.012 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001016/0.3679, allocations: 0.5495 MB / 1.071 GB, free: 8.457 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000111/0.368, allocations: 4 kB / 1.071 GB, free: 8.453 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0001345/0.3682, allocations: 15.8 kB / 1.071 GB, free: 8.438 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 9.235e-05/0.3682, allocations: 31.78 kB / 1.071 GB, free: 8.406 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002674/0.3685, allocations: 75.92 kB / 1.071 GB, free: 8.332 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0003375/0.3689, allocations: 275.3 kB / 1.071 GB, free: 8.062 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002601/0.3692, allocations: 110.9 kB / 1.072 GB, free: 7.953 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001422/0.3693, allocations: 103.7 kB / 1.072 GB, free: 7.852 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001557/0.3695, allocations: 127.4 kB / 1.072 GB, free: 7.727 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 4.833e-05/0.3695, allocations: 28 kB / 1.072 GB, free: 7.699 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 3.81e-05/0.3696, allocations: 24 kB / 1.072 GB, free: 7.676 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 6.846e-05/0.3696, allocations: 63.81 kB / 1.072 GB, free: 7.613 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0001192/0.3698, allocations: 111.5 kB / 1.072 GB, free: 7.504 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0002481/0.37, allocations: 195.8 kB / 1.072 GB, free: 7.312 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 5.029e-06/0.37, allocations: 3.938 kB / 1.072 GB, free: 7.309 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.703e-06/0.37, allocations: 0 / 1.072 GB, free: 7.309 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 6.382e-06/0.37, allocations: 0 / 1.072 GB, free: 7.309 MB / 0.8419 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.001243/0.3713, allocations: 0.6449 MB / 1.073 GB, free: 6.594 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.9e-05/0.3713, allocations: 11.97 kB / 1.073 GB, free: 6.582 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.596e-05/0.3714, allocations: 28.66 kB / 1.073 GB, free: 6.555 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003293/0.3718, allocations: 249.2 kB / 1.073 GB, free: 6.273 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.219e-05/0.3718, allocations: 16.75 kB / 1.073 GB, free: 6.258 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.622e-05/0.3719, allocations: 20.38 kB / 1.073 GB, free: 6.238 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006245/0.3725, allocations: 274.5 kB / 1.073 GB, free: 5.957 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.013e-05/0.3725, allocations: 0 / 1.073 GB, free: 5.957 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.149e-05/0.3725, allocations: 11.98 kB / 1.073 GB, free: 5.945 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.265e-05/0.3726, allocations: 11.98 kB / 1.073 GB, free: 5.934 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006465/0.3732, allocations: 191.8 kB / 1.074 GB, free: 5.746 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001188/0.3744, allocations: 0.6169 MB / 1.074 GB, free: 5.078 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007994/0.3752, allocations: 222.4 kB / 1.074 GB, free: 4.852 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003006/0.3755, allocations: 92.78 kB / 1.075 GB, free: 4.758 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 2.5e-05/0.3756, allocations: 0 / 1.075 GB, free: 4.758 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005866/0.3762, allocations: 193 kB / 1.075 GB, free: 4.559 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=18): time 1.613e-06/0.3762, allocations: 0 / 1.075 GB, free: 4.559 MB / 0.8419 GB Notification: Performance of matching and sorting (n=18): time 0.001081/0.3773, allocations: 333 kB / 1.075 GB, free: 4.227 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.493e-05/0.3774, allocations: 110.8 kB / 1.075 GB, free: 4.094 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002138/0.3776, allocations: 201.5 kB / 1.075 GB, free: 3.891 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 4.614e-05/0.3776, allocations: 37.7 kB / 1.075 GB, free: 3.848 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.000131/0.3778, allocations: 152.2 kB / 1.075 GB, free: 3.695 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 5.518e-05/0.3778, allocations: 51.34 kB / 1.076 GB, free: 3.645 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001096/0.378, allocations: 69.62 kB / 1.076 GB, free: 3.57 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001565/0.3781, allocations: 330.8 kB / 1.076 GB, free: 3.238 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003534/0.3785, allocations: 108.2 kB / 1.076 GB, free: 3.129 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003949/0.3789, allocations: 176.4 kB / 1.076 GB, free: 2.934 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006741/0.3796, allocations: 311.6 kB / 1.076 GB, free: 2.594 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/0.3796, allocations: 0 / 1.076 GB, free: 2.594 MB / 0.8419 GB Notification: Performance of matching and sorting (n=34) (initialization): time 0.00092/0.3805, allocations: 415.9 kB / 1.077 GB, free: 2.164 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 7.351e-05/0.3806, allocations: 95.28 kB / 1.077 GB, free: 2.055 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.873e-06/0.3806, allocations: 0 / 1.077 GB, free: 2.055 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.299e-05/0.3806, allocations: 7.938 kB / 1.077 GB, free: 2.047 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002177/0.3808, allocations: 39.95 kB / 1.077 GB, free: 2.008 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.045e-05/0.3809, allocations: 7.938 kB / 1.077 GB, free: 2 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000318/0.3812, allocations: 63.91 kB / 1.077 GB, free: 1.938 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.688e-05/0.3812, allocations: 8 kB / 1.077 GB, free: 1.93 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.0001683/0.3814, allocations: 144.9 kB / 1.077 GB, free: 1.781 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.784e-05/0.3814, allocations: 19.81 kB / 1.077 GB, free: 1.762 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007396/0.3822, allocations: 255.3 kB / 1.077 GB, free: 1.512 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.363e-06/0.3822, allocations: 7.938 kB / 1.078 GB, free: 1.504 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.658e-06/0.3822, allocations: 3.938 kB / 1.078 GB, free: 1.5 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.101e-06/0.3822, allocations: 3.984 kB / 1.078 GB, free: 1.496 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001016/0.3832, allocations: 0.5802 MB / 1.078 GB, free: 0.8594 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.004e-06/0.3833, allocations: 0 / 1.078 GB, free: 0.8594 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001574/0.3834, allocations: 35.91 kB / 1.078 GB, free: 0.8242 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.949e-06/0.3834, allocations: 3.984 kB / 1.078 GB, free: 0.8203 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.91e-05/0.3835, allocations: 3.984 kB / 1.078 GB, free: 0.8164 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.853e-06/0.3835, allocations: 0 / 1.078 GB, free: 0.8164 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.223e-06/0.3835, allocations: 8 kB / 1.078 GB, free: 0.8086 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007382/0.3842, allocations: 344.5 kB / 1.078 GB, free: 468 kB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 6.437e-05/0.3843, allocations: 92.86 kB / 1.079 GB, free: 356 kB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.598e-05/0.3843, allocations: 16 kB / 1.079 GB, free: 340 kB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002939/0.3846, allocations: 43.94 kB / 1.079 GB, free: 296 kB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001289/0.3848, allocations: 43.94 kB / 1.079 GB, free: 252 kB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.49e-05/0.3848, allocations: 4 kB / 1.079 GB, free: 248 kB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0001248/0.3849, allocations: 151 kB / 1.079 GB, free: 96 kB / 0.8419 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3849, allocations: 0 / 1.079 GB, free: 96 kB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0003087/0.3853, allocations: 51.84 kB / 1.079 GB, free: 44 kB / 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.5455/0.9308, allocations: 118.3 kB / 1.079 GB, free: 18.98 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.001162/0.932, allocations: 426 kB / 1.079 GB, free: 18.8 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 5.31e-06/0.932, allocations: 0.8125 kB / 1.079 GB, free: 18.8 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0003922/0.9324, allocations: 111.1 kB / 1.079 GB, free: 18.8 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004523/0.9329, allocations: 28.83 kB / 1.079 GB, free: 18.8 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001022/0.9339, allocations: 463.3 kB / 1.08 GB, free: 18.51 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002809/0.9342, allocations: 0.7393 MB / 1.081 GB, free: 17.82 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001015/0.9343, allocations: 25.56 kB / 1.081 GB, free: 17.81 MB / 0.8419 GB Notification: Performance of SimCode: time 3.71e-07/0.9343, allocations: 0.5 kB / 1.081 GB, free: 17.81 MB / 0.8419 GB Notification: Performance of Templates: time 0.007348/0.9417, allocations: 2.868 MB / 1.083 GB, free: 17.68 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/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) Reference file matches