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.001004/0.001004, allocations: 71.75 kB / 20.97 MB, free: 3.582 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.001625/0.001625, allocations: 169.3 kB / 24.28 MB, free: 280 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.9647/0.9647, allocations: 177.1 MB / 204.6 MB, free: 5.59 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.801/1.801, allocations: 359 MB / 0.6055 GB, free: 10.99 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 1.633e-06/1.633e-06, allocations: 0 / 0.7871 GB, free: 12.74 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.412e-05/2.575e-05, allocations: 3.844 kB / 0.7872 GB, free: 12.74 MB / 0.7448 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze): time 0.002802/0.002827, allocations: 2.147 MB / 0.7892 GB, free: 10.6 MB / 0.7448 GB Notification: Performance of NFInst.instExpressions: time 0.0009613/0.003789, allocations: 0.5822 MB / 0.7898 GB, free: 10.02 MB / 0.7448 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001222/0.003911, allocations: 9.344 kB / 0.7898 GB, free: 10.01 MB / 0.7448 GB Notification: Performance of NFTyping.typeComponents: time 0.0001212/0.004032, allocations: 19.73 kB / 0.7898 GB, free: 9.988 MB / 0.7448 GB Notification: Performance of NFTyping.typeBindings: time 8.151e-05/0.004114, allocations: 40.44 kB / 0.7899 GB, free: 9.949 MB / 0.7448 GB Notification: Performance of NFTyping.typeClassSections: time 0.000268/0.004381, allocations: 88.44 kB / 0.79 GB, free: 9.863 MB / 0.7448 GB Notification: Performance of NFFlatten.flatten: time 0.0002662/0.004648, allocations: 264 kB / 0.7902 GB, free: 9.605 MB / 0.7448 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002084/0.004856, allocations: 83.58 kB / 0.7903 GB, free: 9.523 MB / 0.7448 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001843/0.00504, allocations: 164.5 kB / 0.7905 GB, free: 9.363 MB / 0.7448 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001071/0.005147, allocations: 91.73 kB / 0.7905 GB, free: 9.273 MB / 0.7448 GB Notification: Performance of NFPackage.collectConstants: time 3.68e-05/0.005184, allocations: 24 kB / 0.7906 GB, free: 9.25 MB / 0.7448 GB Notification: Performance of NFFlatten.collectFunctions: time 2.584e-05/0.00521, allocations: 28.66 kB / 0.7906 GB, free: 9.223 MB / 0.7448 GB Notification: Performance of NFScalarize.scalarize: time 4.556e-05/0.005256, allocations: 61 kB / 0.7907 GB, free: 9.164 MB / 0.7448 GB Notification: Performance of NFVerifyModel.verify: time 7.601e-05/0.005332, allocations: 75.81 kB / 0.7907 GB, free: 9.09 MB / 0.7448 GB Notification: Performance of NFConvertDAE.convert: time 0.000231/0.005563, allocations: 191.3 kB / 0.7909 GB, free: 8.902 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 3.417e-06/0.005566, allocations: 0 / 0.7909 GB, free: 8.902 MB / 0.7448 GB Notification: Performance of FrontEnd: time 1.363e-06/0.005567, allocations: 1.594 kB / 0.7909 GB, free: 8.902 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 5.009e-06/0.005572, allocations: 0 / 0.7909 GB, free: 8.902 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.0007764/0.006349, allocations: 0.6586 MB / 0.7915 GB, free: 8.188 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 4.268e-05/0.006391, allocations: 12.03 kB / 0.7916 GB, free: 8.176 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.375e-05/0.006475, allocations: 43.98 kB / 0.7916 GB, free: 8.137 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002497/0.006725, allocations: 196.8 kB / 0.7918 GB, free: 7.918 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.407e-05/0.006749, allocations: 20.75 kB / 0.7918 GB, free: 7.898 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.029e-05/0.006779, allocations: 24.38 kB / 0.7918 GB, free: 7.875 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003788/0.007158, allocations: 287.3 kB / 0.7921 GB, free: 7.562 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.905e-06/0.007166, allocations: 4.125 kB / 0.7921 GB, free: 7.559 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.184e-05/0.007188, allocations: 12.84 kB / 0.7921 GB, free: 7.547 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.646e-06/0.007197, allocations: 4 kB / 0.7921 GB, free: 7.543 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001334/0.00733, allocations: 65.59 kB / 0.7922 GB, free: 7.48 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007292/0.008059, allocations: 0.5272 MB / 0.7927 GB, free: 6.918 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002588/0.008318, allocations: 104.8 kB / 0.7928 GB, free: 6.805 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.94e-05/0.008377, allocations: 43.61 kB / 0.7928 GB, free: 6.758 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 2.309e-05/0.0084, allocations: 4 kB / 0.7929 GB, free: 6.754 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001938/0.008594, allocations: 128.9 kB / 0.793 GB, free: 6.613 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=18): time 1.613e-06/0.008596, allocations: 1.344 kB / 0.793 GB, free: 6.613 MB / 0.7448 GB Notification: Performance of matching and sorting (n=18): time 0.0003256/0.008921, allocations: 175.2 kB / 0.7931 GB, free: 6.438 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.618e-05/0.008978, allocations: 114.8 kB / 0.7933 GB, free: 6.301 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001507/0.009128, allocations: 255.2 kB / 0.7935 GB, free: 6.035 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 2.609e-05/0.009154, allocations: 33.7 kB / 0.7935 GB, free: 5.996 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 9.978e-05/0.009254, allocations: 203.1 kB / 0.7937 GB, free: 5.793 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 3.181e-05/0.009286, allocations: 47.67 kB / 0.7938 GB, free: 5.746 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.895e-05/0.009365, allocations: 71.86 kB / 0.7938 GB, free: 5.668 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0001176/0.009483, allocations: 0.5056 MB / 0.7943 GB, free: 5.152 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001133/0.009596, allocations: 121.4 kB / 0.7944 GB, free: 5.012 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001621/0.009758, allocations: 254.5 kB / 0.7947 GB, free: 4.699 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001834/0.009941, allocations: 222.1 kB / 0.7949 GB, free: 4.441 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.216e-06/0.009945, allocations: 0.5 kB / 0.7949 GB, free: 4.441 MB / 0.7448 GB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0003957/0.01034, allocations: 387.1 kB / 0.7953 GB, free: 4.023 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 6.077e-05/0.0104, allocations: 93.09 kB / 0.7954 GB, free: 3.914 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.043e-06/0.01041, allocations: 4 kB / 0.7954 GB, free: 3.91 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.697e-05/0.01042, allocations: 4.5 kB / 0.7954 GB, free: 3.906 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001401/0.01057, allocations: 44.44 kB / 0.7954 GB, free: 3.863 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.745e-06/0.01057, allocations: 5.375 kB / 0.7954 GB, free: 3.859 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001422/0.01072, allocations: 51.75 kB / 0.7955 GB, free: 3.809 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.189e-05/0.01074, allocations: 21.08 kB / 0.7955 GB, free: 3.789 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.0001132/0.01085, allocations: 183.3 kB / 0.7957 GB, free: 3.602 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.444e-05/0.01089, allocations: 27.84 kB / 0.7957 GB, free: 3.574 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002552/0.01115, allocations: 166.4 kB / 0.7958 GB, free: 3.406 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.855e-06/0.01115, allocations: 0 / 0.7958 GB, free: 3.406 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.597e-06/0.01116, allocations: 1.344 kB / 0.7958 GB, free: 3.406 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.947e-06/0.01116, allocations: 0 / 0.7958 GB, free: 3.406 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003853/0.01155, allocations: 457.1 kB / 0.7963 GB, free: 2.918 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.305e-06/0.01155, allocations: 0 / 0.7963 GB, free: 2.918 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.555e-05/0.01162, allocations: 20.86 kB / 0.7963 GB, free: 2.898 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.216e-06/0.01163, allocations: 0 / 0.7963 GB, free: 2.898 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.616e-05/0.01164, allocations: 10.27 kB / 0.7963 GB, free: 2.891 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.086e-06/0.01165, allocations: 4 kB / 0.7963 GB, free: 2.887 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.532e-06/0.01165, allocations: 4 kB / 0.7963 GB, free: 2.883 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002268/0.01187, allocations: 305.7 kB / 0.7966 GB, free: 2.566 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 2.276e-05/0.0119, allocations: 19.84 kB / 0.7966 GB, free: 2.547 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.314e-05/0.01193, allocations: 11.98 kB / 0.7966 GB, free: 2.535 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001625/0.01209, allocations: 27.41 kB / 0.7967 GB, free: 2.512 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001218/0.01221, allocations: 47.86 kB / 0.7967 GB, free: 2.465 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.292e-05/0.01224, allocations: 7.984 kB / 0.7967 GB, free: 2.457 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 0.0001052/0.01234, allocations: 174.9 kB / 0.7969 GB, free: 2.289 MB / 0.7448 GB Notification: Performance of sort global known variables: time 1.8e-07/0.01234, allocations: 0 / 0.7969 GB, free: 2.289 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0002253/0.01257, allocations: 55.88 kB / 0.7969 GB, free: 2.234 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.0001228/0.01269, allocations: 118.2 kB / 0.7971 GB, free: 2.113 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0003274/0.01302, allocations: 372 kB / 0.7974 GB, free: 1.691 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 1.562e-06/0.01302, allocations: 0 / 0.7974 GB, free: 1.691 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 9.574e-05/0.01312, allocations: 60.59 kB / 0.7975 GB, free: 1.629 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002723/0.01339, allocations: 46.7 kB / 0.7975 GB, free: 1.586 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007537/0.01414, allocations: 363.1 kB / 0.7979 GB, free: 1.211 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.866e-05/0.01419, allocations: 76.64 kB / 0.7979 GB, free: 1.117 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 6.883e-05/0.01426, allocations: 15.83 kB / 0.7979 GB, free: 1.105 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.879e-05/0.01433, allocations: 31.55 kB / 0.798 GB, free: 1.078 MB / 0.7448 GB Notification: Performance of SimCode: time 1.042e-06/0.01433, allocations: 0 / 0.798 GB, free: 1.078 MB / 0.7448 GB Notification: Performance of Templates: time 0.005281/0.01961, allocations: 3.438 MB / 0.8013 GB, free: 13.71 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: 5.068644388113171]