Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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 11.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/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_11_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_11_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.009186/0.009186, allocations: 101.8 kB / 15.73 MB, free: 6.062 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.00171/0.00171, allocations: 195 kB / 16.68 MB, free: 5.973 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.449/1.449, allocations: 222.9 MB / 240.4 MB, free: 4.176 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.922/2.922, allocations: 469.8 MB / 0.7425 GB, free: 7.355 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001495/0.001495, allocations: 59.91 kB / 1.065 GB, free: 13.01 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3208/0.3223, allocations: 159.1 MB / 1.221 GB, free: 13.75 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze): time 0.003885/0.3262, allocations: 2.098 MB / 1.223 GB, free: 11.64 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001388/0.3276, allocations: 0.5572 MB / 1.223 GB, free: 11.08 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002105/0.3278, allocations: 4 kB / 1.223 GB, free: 11.08 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0001765/0.328, allocations: 23.67 kB / 1.223 GB, free: 11.05 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0001957/0.3282, allocations: 39.66 kB / 1.223 GB, free: 11.02 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003955/0.3286, allocations: 91.81 kB / 1.223 GB, free: 10.93 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0004334/0.329, allocations: 263.3 kB / 1.224 GB, free: 10.67 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002917/0.3293, allocations: 86.94 kB / 1.224 GB, free: 10.58 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000221/0.3295, allocations: 103.6 kB / 1.224 GB, free: 10.48 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002047/0.3297, allocations: 127.4 kB / 1.224 GB, free: 10.35 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 5.868e-05/0.3298, allocations: 28 kB / 1.224 GB, free: 10.32 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 5.905e-05/0.3298, allocations: 24 kB / 1.224 GB, free: 10.3 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 6.891e-05/0.3299, allocations: 55.81 kB / 1.224 GB, free: 10.25 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0001439/0.33, allocations: 111.5 kB / 1.224 GB, free: 10.14 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0004129/0.3304, allocations: 286.8 kB / 1.224 GB, free: 9.855 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 6.062e-06/0.3305, allocations: 0 / 1.224 GB, free: 9.855 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.883e-06/0.3305, allocations: 0 / 1.224 GB, free: 9.855 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 1.184e-05/0.3305, allocations: 4 kB / 1.224 GB, free: 9.852 MB / 0.9825 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.001414/0.3319, allocations: 0.6369 MB / 1.225 GB, free: 9.145 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.831e-05/0.3319, allocations: 12.03 kB / 1.225 GB, free: 9.133 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001007/0.332, allocations: 28.75 kB / 1.225 GB, free: 9.105 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000435/0.3325, allocations: 253 kB / 1.225 GB, free: 8.82 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.25e-05/0.3325, allocations: 24.73 kB / 1.225 GB, free: 8.797 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.614e-05/0.3325, allocations: 20.38 kB / 1.225 GB, free: 8.777 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006922/0.3332, allocations: 270.5 kB / 1.226 GB, free: 8.5 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.294e-05/0.3333, allocations: 0 / 1.226 GB, free: 8.5 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.962e-05/0.3333, allocations: 4 kB / 1.226 GB, free: 8.496 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.014e-05/0.3333, allocations: 7.984 kB / 1.226 GB, free: 8.488 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006968/0.334, allocations: 199.8 kB / 1.226 GB, free: 8.293 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001315/0.3353, allocations: 0.6132 MB / 1.226 GB, free: 7.629 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008866/0.3362, allocations: 222.4 kB / 1.227 GB, free: 7.402 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003022/0.3365, allocations: 84.78 kB / 1.227 GB, free: 7.316 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.602e-05/0.3365, allocations: 0 / 1.227 GB, free: 7.316 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005034/0.337, allocations: 195.1 kB / 1.227 GB, free: 7.113 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=18): time 1.704e-06/0.337, allocations: 0 / 1.227 GB, free: 7.113 MB / 0.9825 GB Notification: Performance of matching and sorting (n=18): time 0.001086/0.3381, allocations: 334.6 kB / 1.227 GB, free: 6.781 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.93e-05/0.3382, allocations: 110.8 kB / 1.227 GB, free: 6.648 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002074/0.3384, allocations: 204.3 kB / 1.228 GB, free: 6.438 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 4.667e-05/0.3384, allocations: 37.69 kB / 1.228 GB, free: 6.395 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001264/0.3386, allocations: 156.4 kB / 1.228 GB, free: 6.238 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 4.951e-05/0.3386, allocations: 51.62 kB / 1.228 GB, free: 6.188 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001155/0.3387, allocations: 61.69 kB / 1.228 GB, free: 6.121 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001293/0.3389, allocations: 330.8 kB / 1.228 GB, free: 5.789 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003552/0.3392, allocations: 108.2 kB / 1.228 GB, free: 5.68 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004099/0.3396, allocations: 179.2 kB / 1.228 GB, free: 5.48 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006676/0.3403, allocations: 311.6 kB / 1.229 GB, free: 5.141 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.446e-06/0.3403, allocations: 4 kB / 1.229 GB, free: 5.137 MB / 0.9825 GB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0009082/0.3412, allocations: 419.8 kB / 1.229 GB, free: 4.703 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 6.925e-05/0.3413, allocations: 95.28 kB / 1.229 GB, free: 4.594 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.558e-06/0.3413, allocations: 4 kB / 1.229 GB, free: 4.59 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.946e-05/0.3413, allocations: 3.938 kB / 1.229 GB, free: 4.586 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000243/0.3415, allocations: 47.95 kB / 1.229 GB, free: 4.539 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.926e-06/0.3416, allocations: 3.938 kB / 1.229 GB, free: 4.535 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003442/0.3419, allocations: 67.86 kB / 1.229 GB, free: 4.469 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.178e-05/0.3419, allocations: 15.98 kB / 1.229 GB, free: 4.453 MB / 0.9825 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.0001653/0.3421, allocations: 148 kB / 1.23 GB, free: 4.301 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.756e-05/0.3421, allocations: 15.91 kB / 1.23 GB, free: 4.285 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007659/0.3429, allocations: 255.4 kB / 1.23 GB, free: 4.031 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.199e-06/0.3429, allocations: 3.938 kB / 1.23 GB, free: 4.027 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.379e-06/0.3429, allocations: 0 / 1.23 GB, free: 4.027 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.787e-06/0.3429, allocations: 4 kB / 1.23 GB, free: 4.023 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001041/0.344, allocations: 0.5763 MB / 1.23 GB, free: 3.391 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.285e-06/0.344, allocations: 0 / 1.23 GB, free: 3.391 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000181/0.3441, allocations: 35.89 kB / 1.23 GB, free: 3.355 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.357e-06/0.3442, allocations: 0 / 1.23 GB, free: 3.355 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.139e-05/0.3442, allocations: 8 kB / 1.23 GB, free: 3.348 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.428e-06/0.3442, allocations: 3.984 kB / 1.23 GB, free: 3.344 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/0.3442, allocations: 0 / 1.23 GB, free: 3.344 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007426/0.3449, allocations: 345.2 kB / 1.231 GB, free: 2.992 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 7.342e-05/0.345, allocations: 104.8 kB / 1.231 GB, free: 2.871 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.015e-05/0.345, allocations: 4 kB / 1.231 GB, free: 2.867 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003051/0.3454, allocations: 51.88 kB / 1.231 GB, free: 2.816 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001284/0.3455, allocations: 47.94 kB / 1.231 GB, free: 2.77 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.265e-05/0.3455, allocations: 4 kB / 1.231 GB, free: 2.766 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0001282/0.3456, allocations: 140.2 kB / 1.231 GB, free: 2.629 MB / 0.9825 GB Notification: Performance of sort global known variables: time 9e-08/0.3456, allocations: 0 / 1.231 GB, free: 2.629 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.000338/0.346, allocations: 59.89 kB / 1.231 GB, free: 2.57 MB / 0.9825 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.0001631/0.3461, allocations: 120.9 kB / 1.231 GB, free: 2.441 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0009436/0.3471, allocations: 405.8 kB / 1.232 GB, free: 2.008 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.3471, allocations: 320 / 1.232 GB, free: 2.008 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0004003/0.3475, allocations: 110 kB / 1.232 GB, free: 1.902 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004032/0.3479, allocations: 33.09 kB / 1.232 GB, free: 1.871 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009252/0.3488, allocations: 367.8 kB / 1.232 GB, free: 1.488 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003124/0.3491, allocations: 0.732 MB / 1.233 GB, free: 0.7305 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.0001047/0.3492, allocations: 21.55 kB / 1.233 GB, free: 0.7031 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.468e-05/0.3493, allocations: 19.42 kB / 1.233 GB, free: 0.6836 MB / 0.9825 GB Notification: Performance of SimCode: time 1.483e-06/0.3493, allocations: 4 kB / 1.233 GB, free: 0.6797 MB / 0.9825 GB Notification: Performance of Templates: time 0.006622/0.3559, allocations: 3.18 MB / 1.236 GB, free: 13.52 MB / 0.9981 GB make -j1 -f Buildings_11_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.makefile (rm -f Buildings_11_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.pipe ; mkfifo Buildings_11_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.pipe ; head -c 1048576 < Buildings_11_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.pipe >> ../files/Buildings_11_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.sim & ./Buildings_11_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Fluid_HeatPumps_ModularReversible_Controls_Safety_Examples_AntiFreeze.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches