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.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.001215/0.001215, allocations: 87.58 kB / 20.45 MB, free: 4.121 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.0009598/0.0009598, allocations: 161 kB / 23.82 MB, free: 0.7539 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.9548/0.9548, allocations: 177.1 MB / 204.2 MB, free: 5.609 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo): time 1.67/1.67, allocations: 359 MB / 0.6052 GB, free: 11.02 MB / 0.573 GB " [Timeout remaining time 178] Using package Buildings with version 11.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.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_11_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_11_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.305e-06/2.305e-06, allocations: 0 / 0.7872 GB, free: 12.4 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.851e-05/4.082e-05, allocations: 7.844 kB / 0.7872 GB, free: 12.39 MB / 0.7448 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze): time 0.003379/0.00342, allocations: 2.146 MB / 0.7893 GB, free: 10.25 MB / 0.7448 GB Notification: Performance of NFInst.instExpressions: time 0.001204/0.004624, allocations: 0.5738 MB / 0.7898 GB, free: 9.672 MB / 0.7448 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002027/0.004826, allocations: 8.625 kB / 0.7898 GB, free: 9.664 MB / 0.7448 GB Notification: Performance of NFTyping.typeComponents: time 0.0001908/0.005017, allocations: 23.73 kB / 0.7899 GB, free: 9.641 MB / 0.7448 GB Notification: Performance of NFTyping.typeBindings: time 0.0001161/0.005133, allocations: 46.92 kB / 0.7899 GB, free: 9.598 MB / 0.7448 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004117/0.005545, allocations: 87.88 kB / 0.79 GB, free: 9.512 MB / 0.7448 GB Notification: Performance of NFFlatten.flatten: time 0.0003962/0.005941, allocations: 267.3 kB / 0.7902 GB, free: 9.25 MB / 0.7448 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002743/0.006215, allocations: 83.48 kB / 0.7903 GB, free: 9.168 MB / 0.7448 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002267/0.006442, allocations: 159.7 kB / 0.7905 GB, free: 9.012 MB / 0.7448 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001379/0.00658, allocations: 95.67 kB / 0.7906 GB, free: 8.918 MB / 0.7448 GB Notification: Performance of NFPackage.collectConstants: time 4.468e-05/0.006625, allocations: 25.91 kB / 0.7906 GB, free: 8.895 MB / 0.7448 GB Notification: Performance of NFFlatten.collectFunctions: time 2.95e-05/0.006654, allocations: 28 kB / 0.7906 GB, free: 8.867 MB / 0.7448 GB Notification: Performance of NFScalarize.scalarize: time 5.219e-05/0.006706, allocations: 55.81 kB / 0.7907 GB, free: 8.812 MB / 0.7448 GB Notification: Performance of NFVerifyModel.verify: time 8.392e-05/0.00679, allocations: 75.81 kB / 0.7907 GB, free: 8.738 MB / 0.7448 GB Notification: Performance of NFConvertDAE.convert: time 0.0002596/0.00705, allocations: 187.3 kB / 0.7909 GB, free: 8.555 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.007054, allocations: 0.7188 kB / 0.7909 GB, free: 8.555 MB / 0.7448 GB Notification: Performance of FrontEnd: time 1.593e-06/0.007056, allocations: 0 / 0.7909 GB, free: 8.555 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 5.861e-06/0.007061, allocations: 0.5312 kB / 0.7909 GB, free: 8.555 MB / 0.7448 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.0008407/0.007902, allocations: 0.6592 MB / 0.7916 GB, free: 7.84 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 5.339e-05/0.007955, allocations: 8.656 kB / 0.7916 GB, free: 7.832 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.406e-05/0.00805, allocations: 44.8 kB / 0.7916 GB, free: 7.789 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002622/0.008312, allocations: 205.1 kB / 0.7918 GB, free: 7.562 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.882e-05/0.008341, allocations: 12.75 kB / 0.7918 GB, free: 7.551 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.435e-05/0.008375, allocations: 29.47 kB / 0.7918 GB, free: 7.523 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004325/0.008807, allocations: 280.4 kB / 0.7921 GB, free: 7.215 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.304e-05/0.00882, allocations: 1.562 kB / 0.7921 GB, free: 7.215 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.515e-05/0.008846, allocations: 8.375 kB / 0.7921 GB, free: 7.207 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.506e-05/0.008861, allocations: 7.938 kB / 0.7921 GB, free: 7.199 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001393/0.009, allocations: 67.31 kB / 0.7922 GB, free: 7.137 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008675/0.009867, allocations: 0.528 MB / 0.7927 GB, free: 6.574 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003314/0.0102, allocations: 108.2 kB / 0.7928 GB, free: 6.457 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.978e-05/0.01027, allocations: 45.03 kB / 0.7929 GB, free: 6.41 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 2.758e-05/0.0103, allocations: 0 / 0.7929 GB, free: 6.41 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002262/0.01052, allocations: 136.9 kB / 0.793 GB, free: 6.262 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=18): time 1.743e-06/0.01052, allocations: 1.438 kB / 0.793 GB, free: 6.262 MB / 0.7448 GB Notification: Performance of matching and sorting (n=18): time 0.000349/0.01087, allocations: 175.1 kB / 0.7932 GB, free: 6.086 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.279e-05/0.01094, allocations: 110.8 kB / 0.7933 GB, free: 5.953 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001649/0.0111, allocations: 255.3 kB / 0.7935 GB, free: 5.688 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 2.647e-05/0.01113, allocations: 36.61 kB / 0.7935 GB, free: 5.648 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001118/0.01124, allocations: 203.1 kB / 0.7937 GB, free: 5.445 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 3.562e-05/0.01127, allocations: 47.67 kB / 0.7938 GB, free: 5.398 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.913e-05/0.01136, allocations: 71.3 kB / 0.7938 GB, free: 5.32 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.000132/0.0115, allocations: 0.5078 MB / 0.7943 GB, free: 4.801 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001154/0.01161, allocations: 121.4 kB / 0.7945 GB, free: 4.66 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001583/0.01177, allocations: 250.5 kB / 0.7947 GB, free: 4.352 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002527/0.01202, allocations: 223.1 kB / 0.7949 GB, free: 4.094 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.106e-06/0.01203, allocations: 0 / 0.7949 GB, free: 4.094 MB / 0.7448 GB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0003598/0.01239, allocations: 396 kB / 0.7953 GB, free: 3.668 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 5.971e-05/0.01244, allocations: 93.09 kB / 0.7954 GB, free: 3.559 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.312e-06/0.01245, allocations: 0 / 0.7954 GB, free: 3.559 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.129e-05/0.01247, allocations: 4 kB / 0.7954 GB, free: 3.555 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001379/0.01261, allocations: 43.91 kB / 0.7954 GB, free: 3.512 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.041e-05/0.01262, allocations: 4.844 kB / 0.7954 GB, free: 3.508 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001315/0.01275, allocations: 52.59 kB / 0.7955 GB, free: 3.457 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.059e-05/0.01277, allocations: 17.27 kB / 0.7955 GB, free: 3.441 MB / 0.7448 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.0001233/0.0129, allocations: 182.5 kB / 0.7957 GB, free: 3.254 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.186e-05/0.01293, allocations: 24.75 kB / 0.7957 GB, free: 3.23 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002554/0.01318, allocations: 165.1 kB / 0.7959 GB, free: 3.062 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.679e-06/0.01319, allocations: 0.6562 kB / 0.7959 GB, free: 3.062 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.919e-06/0.01319, allocations: 4 kB / 0.7959 GB, free: 3.059 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.609e-06/0.0132, allocations: 2.844 kB / 0.7959 GB, free: 3.059 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003898/0.01359, allocations: 453.1 kB / 0.7963 GB, free: 2.574 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.282e-06/0.01359, allocations: 0 / 0.7963 GB, free: 2.574 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.12e-05/0.01366, allocations: 19.98 kB / 0.7963 GB, free: 2.555 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.22e-06/0.01367, allocations: 4 kB / 0.7963 GB, free: 2.551 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.527e-05/0.01368, allocations: 3.984 kB / 0.7963 GB, free: 2.547 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.454e-06/0.01368, allocations: 4 kB / 0.7963 GB, free: 2.543 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.01368, allocations: 2.094 kB / 0.7963 GB, free: 2.543 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002249/0.01391, allocations: 314 kB / 0.7966 GB, free: 2.219 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 1.905e-05/0.01393, allocations: 15.84 kB / 0.7966 GB, free: 2.203 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.028e-05/0.01396, allocations: 11.98 kB / 0.7966 GB, free: 2.191 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001106/0.01407, allocations: 28.94 kB / 0.7967 GB, free: 2.164 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001016/0.01417, allocations: 39.92 kB / 0.7967 GB, free: 2.125 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.393e-05/0.01419, allocations: 21.03 kB / 0.7967 GB, free: 2.105 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 8.686e-05/0.01428, allocations: 172.2 kB / 0.7969 GB, free: 1.938 MB / 0.7448 GB Notification: Performance of sort global known variables: time 7e-08/0.01428, allocations: 0 / 0.7969 GB, free: 1.938 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0002067/0.01449, allocations: 60.91 kB / 0.797 GB, free: 1.879 MB / 0.7448 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.0001389/0.01463, allocations: 108.4 kB / 0.7971 GB, free: 1.766 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0003551/0.01498, allocations: 379 kB / 0.7974 GB, free: 1.34 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 2.855e-06/0.01499, allocations: 0 / 0.7974 GB, free: 1.34 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 9.228e-05/0.01508, allocations: 66.09 kB / 0.7975 GB, free: 1.273 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002896/0.01537, allocations: 37.3 kB / 0.7975 GB, free: 1.238 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008797/0.01625, allocations: 364.2 kB / 0.7979 GB, free: 0.8594 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.656e-05/0.0163, allocations: 87.8 kB / 0.798 GB, free: 0.7539 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 7.543e-05/0.01638, allocations: 17.64 kB / 0.798 GB, free: 0.7383 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.972e-05/0.01645, allocations: 24.48 kB / 0.798 GB, free: 0.7148 MB / 0.7448 GB Notification: Performance of SimCode: time 1.062e-06/0.01645, allocations: 8 kB / 0.798 GB, free: 0.707 MB / 0.7448 GB Notification: Performance of Templates: time 0.006245/0.02269, allocations: 3.626 MB / 0.8015 GB, free: 13.14 MB / 0.7605 GB " [Timeout remaining time 300] make -j1 -f Buildings_11_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.makefile [Timeout 300] (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=240 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.pipe 2>&1) [Timeout 240] 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","",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.944160994142294]