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.000946/0.000946, allocations: 82.64 kB / 20.68 MB, free: 3.816 MB / 18.57 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.00114/0.00114, allocations: 181 kB / 24.09 MB, free: 420 kB / 18.57 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 0.9284/0.9284, allocations: 177.1 MB / 204.5 MB, free: 5.5 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 1.853/1.853, allocations: 377.9 MB / 0.624 GB, free: 8.371 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-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: Performance of FrontEnd - loaded program: time 1.563e-06/1.563e-06, allocations: 0 / 0.8121 GB, free: 1.371 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.478e-05/2.634e-05, allocations: 2.312 kB / 0.8121 GB, free: 1.367 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze): time 0.002732/0.002759, allocations: 2.182 MB / 0.8142 GB, free: 15.19 MB / 0.7761 GB Notification: Performance of NFInst.instExpressions: time 0.0009055/0.003664, allocations: 0.6017 MB / 0.8148 GB, free: 14.58 MB / 0.7761 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001292/0.003793, allocations: 4 kB / 0.8148 GB, free: 14.58 MB / 0.7761 GB Notification: Performance of NFTyping.typeComponents: time 0.0001176/0.003911, allocations: 25.08 kB / 0.8148 GB, free: 14.55 MB / 0.7761 GB Notification: Performance of NFTyping.typeBindings: time 0.0001071/0.004018, allocations: 48.53 kB / 0.8149 GB, free: 14.51 MB / 0.7761 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002459/0.004264, allocations: 104.5 kB / 0.815 GB, free: 14.41 MB / 0.7761 GB Notification: Performance of NFFlatten.flatten: time 0.0002691/0.004533, allocations: 299.2 kB / 0.8152 GB, free: 14.11 MB / 0.7761 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001896/0.004723, allocations: 92.48 kB / 0.8153 GB, free: 14.02 MB / 0.7761 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004455/0.005168, allocations: 175.7 kB / 0.8155 GB, free: 13.85 MB / 0.7761 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000107/0.005275, allocations: 107.7 kB / 0.8156 GB, free: 13.75 MB / 0.7761 GB Notification: Performance of NFPackage.collectConstants: time 3.931e-05/0.005315, allocations: 28.66 kB / 0.8156 GB, free: 13.72 MB / 0.7761 GB Notification: Performance of NFFlatten.collectFunctions: time 2.858e-05/0.005343, allocations: 32.88 kB / 0.8157 GB, free: 13.69 MB / 0.7761 GB Notification: Performance of NFScalarize.scalarize: time 4.573e-05/0.005389, allocations: 67.73 kB / 0.8157 GB, free: 13.62 MB / 0.7761 GB Notification: Performance of NFVerifyModel.verify: time 6.302e-05/0.005452, allocations: 83.75 kB / 0.8158 GB, free: 13.54 MB / 0.7761 GB Notification: Performance of NFConvertDAE.convert: time 0.0002151/0.005667, allocations: 224.4 kB / 0.816 GB, free: 13.32 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 2.535e-06/0.005669, allocations: 0 / 0.816 GB, free: 13.32 MB / 0.7761 GB Notification: Performance of FrontEnd: time 1.102e-06/0.005671, allocations: 0 / 0.816 GB, free: 13.32 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 4.378e-06/0.005675, allocations: 1.781 kB / 0.816 GB, free: 13.32 MB / 0.7761 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.0006787/0.006354, allocations: 0.6978 MB / 0.8167 GB, free: 12.57 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 3.79e-05/0.006392, allocations: 8.031 kB / 0.8167 GB, free: 12.56 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.26e-05/0.006454, allocations: 44.8 kB / 0.8168 GB, free: 12.52 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002107/0.006665, allocations: 210.2 kB / 0.817 GB, free: 12.29 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.142e-05/0.006686, allocations: 20.88 kB / 0.817 GB, free: 12.27 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.682e-05/0.006713, allocations: 24.38 kB / 0.817 GB, free: 12.25 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003171/0.00703, allocations: 322.9 kB / 0.8173 GB, free: 11.89 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.907e-06/0.007039, allocations: 192 / 0.8173 GB, free: 11.89 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.665e-05/0.007056, allocations: 9.188 kB / 0.8173 GB, free: 11.88 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.955e-06/0.007064, allocations: 11.88 kB / 0.8173 GB, free: 11.87 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.754e-05/0.007151, allocations: 56.16 kB / 0.8174 GB, free: 11.82 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006471/0.007798, allocations: 0.5353 MB / 0.8179 GB, free: 11.25 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001394/0.007938, allocations: 86.95 kB / 0.818 GB, free: 11.16 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.037e-05/0.007978, allocations: 32.28 kB / 0.818 GB, free: 11.12 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 2.05e-05/0.007999, allocations: 4.719 kB / 0.818 GB, free: 11.12 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001758/0.008175, allocations: 138 kB / 0.8181 GB, free: 10.97 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=20): time 1.382e-06/0.008176, allocations: 0 / 0.8181 GB, free: 10.97 MB / 0.7761 GB Notification: Performance of matching and sorting (n=20): time 0.0002467/0.008423, allocations: 172.4 kB / 0.8183 GB, free: 10.8 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.94e-05/0.008472, allocations: 136.5 kB / 0.8184 GB, free: 10.63 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001394/0.008611, allocations: 275.5 kB / 0.8187 GB, free: 10.35 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 2.563e-05/0.008637, allocations: 37.7 kB / 0.8187 GB, free: 10.3 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 9.777e-05/0.008735, allocations: 215.3 kB / 0.8189 GB, free: 10.09 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 3.374e-05/0.008769, allocations: 60.56 kB / 0.819 GB, free: 10.03 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.777e-05/0.008846, allocations: 75.58 kB / 0.8191 GB, free: 9.949 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0001175/0.008964, allocations: 0.5078 MB / 0.8196 GB, free: 9.43 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.976e-05/0.009054, allocations: 118.4 kB / 0.8197 GB, free: 9.297 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001354/0.009189, allocations: 292.1 kB / 0.82 GB, free: 8.938 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001405/0.009329, allocations: 214.4 kB / 0.8202 GB, free: 8.688 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.009332, allocations: 1.344 kB / 0.8202 GB, free: 8.688 MB / 0.7761 GB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0002897/0.009622, allocations: 385.6 kB / 0.8205 GB, free: 8.27 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 4.284e-05/0.009665, allocations: 87.45 kB / 0.8206 GB, free: 8.168 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.459e-06/0.009669, allocations: 2.094 kB / 0.8206 GB, free: 8.168 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.429e-05/0.009683, allocations: 8.031 kB / 0.8206 GB, free: 8.16 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001298/0.009813, allocations: 55.89 kB / 0.8207 GB, free: 8.105 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.056e-06/0.009816, allocations: 0 / 0.8207 GB, free: 8.105 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001394/0.009955, allocations: 60.36 kB / 0.8207 GB, free: 8.047 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.644e-05/0.009972, allocations: 19.38 kB / 0.8208 GB, free: 8.031 MB / 0.7761 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,antFre.disErr.local_reset,antFre.disErr.local_set,antFre.intConOne.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) * 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 9.783e-05/0.01007, allocations: 179.1 kB / 0.8209 GB, free: 7.844 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.964e-05/0.0101, allocations: 31.84 kB / 0.821 GB, free: 7.812 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001948/0.01029, allocations: 160.3 kB / 0.8211 GB, free: 7.656 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.394e-06/0.0103, allocations: 3.938 kB / 0.8211 GB, free: 7.652 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.503e-06/0.0103, allocations: 0 / 0.8211 GB, free: 7.652 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.417e-06/0.0103, allocations: 0.5 kB / 0.8211 GB, free: 7.652 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003822/0.01068, allocations: 455.2 kB / 0.8216 GB, free: 7.176 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.936e-06/0.01069, allocations: 4.562 kB / 0.8216 GB, free: 7.172 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.391e-05/0.01075, allocations: 21.39 kB / 0.8216 GB, free: 7.152 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.334e-06/0.01075, allocations: 0 / 0.8216 GB, free: 7.152 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.289e-05/0.01077, allocations: 7.984 kB / 0.8216 GB, free: 7.145 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.575e-06/0.01077, allocations: 8.562 kB / 0.8216 GB, free: 7.137 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.01077, allocations: 0 / 0.8216 GB, free: 7.137 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002143/0.01098, allocations: 314.6 kB / 0.8219 GB, free: 6.812 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 2.5e-05/0.01101, allocations: 27.8 kB / 0.8219 GB, free: 6.785 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.864e-05/0.01104, allocations: 8.938 kB / 0.8219 GB, free: 6.777 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000119/0.01116, allocations: 36.61 kB / 0.822 GB, free: 6.742 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.674e-05/0.01124, allocations: 57.47 kB / 0.822 GB, free: 6.688 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.401e-05/0.01126, allocations: 3.984 kB / 0.822 GB, free: 6.684 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 7.551e-05/0.01133, allocations: 180.5 kB / 0.8222 GB, free: 6.508 MB / 0.7761 GB Notification: Performance of sort global known variables: time 7e-08/0.01133, allocations: 0 / 0.8222 GB, free: 6.508 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0004922/0.01183, allocations: 59.89 kB / 0.8223 GB, free: 6.449 MB / 0.7761 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.0001144/0.01194, allocations: 122.8 kB / 0.8224 GB, free: 6.324 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.0002673/0.01221, allocations: 372 kB / 0.8227 GB, free: 5.902 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.01221, allocations: 0 / 0.8227 GB, free: 5.902 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 8.042e-05/0.01229, allocations: 55.66 kB / 0.8228 GB, free: 5.844 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002416/0.01253, allocations: 40.81 kB / 0.8228 GB, free: 5.805 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006235/0.01315, allocations: 385.2 kB / 0.8232 GB, free: 5.398 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.984e-05/0.0132, allocations: 93.14 kB / 0.8233 GB, free: 5.289 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 7.88e-05/0.01328, allocations: 24.69 kB / 0.8233 GB, free: 5.262 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001464/0.01343, allocations: 127.5 kB / 0.8234 GB, free: 5.137 MB / 0.7761 GB Notification: Performance of SimCode: time 1.162e-06/0.01343, allocations: 0 / 0.8234 GB, free: 5.137 MB / 0.7761 GB Notification: Performance of Templates: time 0.005741/0.01917, allocations: 4.219 MB / 0.8275 GB, free: 1.008 MB / 0.7761 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=240 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 4.95371064869687]