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.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.001336/0.001336, allocations: 80.94 kB / 19.94 MB, free: 4.543 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.0009526/0.0009526, allocations: 177 kB / 23.36 MB, free: 1.129 MB / 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.9067/0.9067, allocations: 177.1 MB / 203.8 MB, free: 5.473 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 2.374/2.374, allocations: 438.8 MB / 0.6827 GB, free: 13.6 MB / 0.6511 GB " [Timeout remaining time 177] Using package Buildings with version 14.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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_latest_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_latest_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.433e-06/1.433e-06, allocations: 0 / 0.8387 GB, free: 14.1 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.914e-05/2.057e-05, allocations: 6.25 kB / 0.8387 GB, free: 14.09 MB / 0.8073 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze): time 0.003008/0.003028, allocations: 2.219 MB / 0.8409 GB, free: 11.86 MB / 0.8073 GB Notification: Performance of NFInst.instExpressions: time 0.0009373/0.003965, allocations: 0.6115 MB / 0.8415 GB, free: 11.24 MB / 0.8073 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001066/0.004072, allocations: 3.938 kB / 0.8415 GB, free: 11.24 MB / 0.8073 GB Notification: Performance of NFTyping.typeComponents: time 0.0001016/0.004174, allocations: 23.67 kB / 0.8415 GB, free: 11.21 MB / 0.8073 GB Notification: Performance of NFTyping.typeBindings: time 8.314e-05/0.004257, allocations: 47.59 kB / 0.8415 GB, free: 11.17 MB / 0.8073 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002328/0.00449, allocations: 95.81 kB / 0.8416 GB, free: 11.07 MB / 0.8073 GB Notification: Performance of NFFlatten.flatten: time 0.000249/0.004739, allocations: 295.2 kB / 0.8419 GB, free: 10.79 MB / 0.8073 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001748/0.004913, allocations: 98.14 kB / 0.842 GB, free: 10.69 MB / 0.8073 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001867/0.0051, allocations: 171.7 kB / 0.8422 GB, free: 10.52 MB / 0.8073 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001037/0.005204, allocations: 99.72 kB / 0.8423 GB, free: 10.43 MB / 0.8073 GB Notification: Performance of NFPackage.collectConstants: time 3.642e-05/0.00524, allocations: 28 kB / 0.8423 GB, free: 10.4 MB / 0.8073 GB Notification: Performance of NFFlatten.collectFunctions: time 2.427e-05/0.005264, allocations: 28 kB / 0.8423 GB, free: 10.37 MB / 0.8073 GB Notification: Performance of NFScalarize.scalarize: time 4.504e-05/0.005309, allocations: 59.77 kB / 0.8424 GB, free: 10.31 MB / 0.8073 GB Notification: Performance of NFVerifyModel.verify: time 6.898e-05/0.005378, allocations: 87.78 kB / 0.8424 GB, free: 10.23 MB / 0.8073 GB Notification: Performance of NFConvertDAE.convert: time 0.0002144/0.005593, allocations: 203.2 kB / 0.8426 GB, free: 10.03 MB / 0.8073 GB Notification: Performance of FrontEnd - DAE generated: time 2.544e-06/0.005595, allocations: 0 / 0.8426 GB, free: 10.03 MB / 0.8073 GB Notification: Performance of FrontEnd: time 7.12e-07/0.005596, allocations: 0 / 0.8426 GB, free: 10.03 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 3.937e-06/0.0056, allocations: 3.938 kB / 0.8426 GB, free: 10.02 MB / 0.8073 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.0006043/0.006204, allocations: 0.5599 MB / 0.8432 GB, free: 9.422 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.036e-05/0.006235, allocations: 12.62 kB / 0.8432 GB, free: 9.41 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.125e-05/0.006296, allocations: 36.91 kB / 0.8432 GB, free: 9.375 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001976/0.006494, allocations: 179.4 kB / 0.8434 GB, free: 9.172 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.981e-05/0.006513, allocations: 12.88 kB / 0.8434 GB, free: 9.156 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.523e-05/0.006539, allocations: 28.38 kB / 0.8434 GB, free: 9.129 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002784/0.006817, allocations: 280.2 kB / 0.8437 GB, free: 8.824 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.114e-05/0.006828, allocations: 8.125 kB / 0.8437 GB, free: 8.816 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.528e-05/0.006843, allocations: 8.375 kB / 0.8437 GB, free: 8.809 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.053e-06/0.00685, allocations: 7.938 kB / 0.8437 GB, free: 8.801 MB / 0.8073 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.451e-05/0.006935, allocations: 51.47 kB / 0.8438 GB, free: 8.75 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005567/0.007492, allocations: 394.2 kB / 0.8442 GB, free: 8.348 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001252/0.007617, allocations: 77.78 kB / 0.8442 GB, free: 8.266 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.861e-05/0.007656, allocations: 29.12 kB / 0.8443 GB, free: 8.234 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 1.797e-05/0.007673, allocations: 3.938 kB / 0.8443 GB, free: 8.23 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001607/0.007834, allocations: 140.8 kB / 0.8444 GB, free: 8.082 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=20): time 1.803e-06/0.007836, allocations: 0 / 0.8444 GB, free: 8.082 MB / 0.8073 GB Notification: Performance of matching and sorting (n=20): time 0.0001867/0.008023, allocations: 127 kB / 0.8445 GB, free: 7.953 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.477e-05/0.008067, allocations: 106.8 kB / 0.8446 GB, free: 7.824 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001165/0.008184, allocations: 206.2 kB / 0.8448 GB, free: 7.609 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 3.007e-05/0.008214, allocations: 41.69 kB / 0.8449 GB, free: 7.562 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 7.033e-05/0.008284, allocations: 164 kB / 0.845 GB, free: 7.398 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 3.023e-05/0.008315, allocations: 47.62 kB / 0.8451 GB, free: 7.352 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.24e-05/0.008387, allocations: 73.92 kB / 0.8451 GB, free: 7.273 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 8.279e-05/0.00847, allocations: 342.7 kB / 0.8455 GB, free: 6.93 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.159e-05/0.008551, allocations: 113.4 kB / 0.8456 GB, free: 6.801 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001192/0.008671, allocations: 228.1 kB / 0.8458 GB, free: 6.52 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001402/0.008811, allocations: 202.5 kB / 0.846 GB, free: 6.285 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/0.008813, allocations: 0 / 0.846 GB, free: 6.285 MB / 0.8073 GB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0002304/0.009044, allocations: 328.4 kB / 0.8463 GB, free: 5.922 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 4.587e-05/0.009089, allocations: 89.09 kB / 0.8464 GB, free: 5.816 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.689e-06/0.009094, allocations: 4 kB / 0.8464 GB, free: 5.812 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.274e-05/0.009107, allocations: 7.938 kB / 0.8464 GB, free: 5.805 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001529/0.00926, allocations: 47.97 kB / 0.8464 GB, free: 5.758 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.44e-06/0.009265, allocations: 7.938 kB / 0.8464 GB, free: 5.75 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001329/0.009398, allocations: 51.95 kB / 0.8465 GB, free: 5.699 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.559e-05/0.009414, allocations: 16 kB / 0.8465 GB, free: 5.684 MB / 0.8073 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,ySetOn.y,$PRE.ySetOn.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,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.266e-05/0.009506, allocations: 139.8 kB / 0.8466 GB, free: 5.539 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.626e-05/0.009533, allocations: 19.97 kB / 0.8467 GB, free: 5.52 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001506/0.009683, allocations: 125.8 kB / 0.8468 GB, free: 5.395 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.615e-06/0.009686, allocations: 0 / 0.8468 GB, free: 5.395 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.252e-06/0.009687, allocations: 4 kB / 0.8468 GB, free: 5.391 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.666e-06/0.009691, allocations: 0 / 0.8468 GB, free: 5.391 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000281/0.009972, allocations: 302.5 kB / 0.8471 GB, free: 5.07 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.392e-06/0.009973, allocations: 4 kB / 0.8471 GB, free: 5.066 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.047e-05/0.01004, allocations: 31.97 kB / 0.8471 GB, free: 5.035 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.996e-06/0.01005, allocations: 0 / 0.8471 GB, free: 5.035 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.043e-05/0.01006, allocations: 4 kB / 0.8471 GB, free: 5.031 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.424e-06/0.01006, allocations: 4 kB / 0.8471 GB, free: 5.027 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.01006, allocations: 0 / 0.8471 GB, free: 5.027 MB / 0.8073 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001498/0.01021, allocations: 209.2 kB / 0.8473 GB, free: 4.809 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 1.73e-05/0.01023, allocations: 27.73 kB / 0.8473 GB, free: 4.781 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.838e-05/0.01026, allocations: 11.98 kB / 0.8474 GB, free: 4.77 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001152/0.01037, allocations: 35.97 kB / 0.8474 GB, free: 4.734 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.412e-05/0.01046, allocations: 47.91 kB / 0.8474 GB, free: 4.688 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.774e-05/0.01047, allocations: 11.92 kB / 0.8474 GB, free: 4.676 MB / 0.8073 GB Notification: Performance of sorting global known variables: time 4.264e-05/0.01052, allocations: 52.8 kB / 0.8475 GB, free: 4.621 MB / 0.8073 GB Notification: Performance of sort global known variables: time 5e-08/0.01052, allocations: 0 / 0.8475 GB, free: 4.621 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.000191/0.01071, allocations: 59.89 kB / 0.8476 GB, free: 4.562 MB / 0.8073 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.hys.y,ySetPul.T_start,ySetPul.count,TConInEmu.T_start,TConInEmu.count,TEvaOutEmu.T_start,TEvaOutEmu.count,ySetOn.y) * Number of discrete states: 7 (TEvaOutEmu.count,TConInEmu.count,ySetPul.count,antFre.hys.y,hys.y,ySetOn.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.0001002/0.01081, allocations: 96.34 kB / 0.8476 GB, free: 4.461 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0002522/0.01106, allocations: 372.7 kB / 0.848 GB, free: 4.039 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 4.539e-06/0.01106, allocations: 0 / 0.848 GB, free: 4.039 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 8.265e-05/0.01115, allocations: 52.78 kB / 0.848 GB, free: 3.984 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002048/0.01135, allocations: 41.45 kB / 0.8481 GB, free: 3.945 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006312/0.01198, allocations: 390.9 kB / 0.8485 GB, free: 3.539 MB / 0.8073 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.536e-05/0.01203, allocations: 80.27 kB / 0.8485 GB, free: 3.441 MB / 0.8073 GB Notification: Performance of simCode: alias equations: time 8.386e-05/0.01211, allocations: 29.92 kB / 0.8486 GB, free: 3.41 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000144/0.01226, allocations: 99.34 kB / 0.8487 GB, free: 3.312 MB / 0.8073 GB Notification: Performance of SimCode: time 8.02e-07/0.01226, allocations: 0 / 0.8487 GB, free: 3.312 MB / 0.8073 GB Notification: Performance of Templates: time 0.005512/0.01777, allocations: 3.738 MB / 0.8523 GB, free: 15.67 MB / 0.823 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.makefile [Timeout 300] (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=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.pipe 2>&1) [Timeout 240] 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","",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.980772953014821]