Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.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.0009866/0.0009866, allocations: 92.22 kB / 19.65 MB, free: 276 kB / 13.93 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.0009399/0.0009399, allocations: 173 kB / 23.03 MB, free: 1.543 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.922/0.922, allocations: 177.1 MB / 203.4 MB, free: 5.633 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.04/2.04, allocations: 429.5 MB / 0.6733 GB, free: 4.055 MB / 0.6355 GB " [Timeout remaining time 177] Using package Buildings with version 14.0.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.DHC.Plants.Cooling.Controls.Validation.TankStatus,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|tanSta.TTan.[0-9,]+.|tanSta.THig|tanSta.TLow|tanSta.y.[0-9,]+.",fileNamePrefix="Buildings_latest_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus") translateModel(Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|tanSta.TTan.[0-9,]+.|tanSta.THig|tanSta.TLow|tanSta.y.[0-9,]+.",fileNamePrefix="Buildings_latest_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 3.667e-06/3.667e-06, allocations: 4.875 kB / 0.8782 GB, free: 6.336 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.461e-05/2.827e-05, allocations: 6.25 kB / 0.8782 GB, free: 6.328 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus): time 0.003043/0.003071, allocations: 2.272 MB / 0.8804 GB, free: 4.059 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.001801/0.004872, allocations: 1.394 MB / 0.8817 GB, free: 2.66 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001581/0.00503, allocations: 7.938 kB / 0.8818 GB, free: 2.652 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 0.0004336/0.005464, allocations: 176.7 kB / 0.8819 GB, free: 2.48 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 0.0004327/0.005897, allocations: 228.6 kB / 0.8821 GB, free: 2.258 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003485/0.006245, allocations: 187.5 kB / 0.8823 GB, free: 2.074 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 0.0004206/0.006666, allocations: 434.8 kB / 0.8827 GB, free: 1.648 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000174/0.00684, allocations: 65.48 kB / 0.8828 GB, free: 1.582 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006983/0.007538, allocations: 325.4 kB / 0.8831 GB, free: 1.297 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001795/0.007717, allocations: 159.5 kB / 0.8833 GB, free: 1.141 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 3.339e-05/0.007751, allocations: 24 kB / 0.8833 GB, free: 1.117 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001251/0.007876, allocations: 75.97 kB / 0.8834 GB, free: 1.043 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 0.0001032/0.007979, allocations: 115.6 kB / 0.8835 GB, free: 0.9297 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 8.148e-05/0.008061, allocations: 95.62 kB / 0.8836 GB, free: 0.8359 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0003637/0.008424, allocations: 323.5 kB / 0.8839 GB, free: 0.5195 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 2.295e-06/0.008426, allocations: 0 / 0.8839 GB, free: 0.5195 MB / 0.8386 GB Notification: Performance of FrontEnd: time 8.42e-07/0.008427, allocations: 4 kB / 0.8839 GB, free: 0.5156 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 5.961e-06/0.008433, allocations: 0 / 0.8839 GB, free: 0.5156 MB / 0.8386 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 29 * Number of variables: 29 Notification: Performance of Generate backend data structure: time 0.0007924/0.009226, allocations: 0.7516 MB / 0.8846 GB, free: 15.73 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 3.512e-05/0.009261, allocations: 8.031 kB / 0.8846 GB, free: 15.72 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.722e-05/0.009348, allocations: 68.53 kB / 0.8847 GB, free: 15.65 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003493/0.009697, allocations: 353.3 kB / 0.885 GB, free: 15.29 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.55e-05/0.009723, allocations: 12.38 kB / 0.885 GB, free: 15.27 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.962e-05/0.009742, allocations: 12.38 kB / 0.885 GB, free: 15.26 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00024/0.009982, allocations: 197.1 kB / 0.8852 GB, free: 15.04 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.085e-05/0.009993, allocations: 3.938 kB / 0.8852 GB, free: 15.04 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.603e-05/0.01001, allocations: 7.984 kB / 0.8852 GB, free: 15.03 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.628e-06/0.01002, allocations: 4 kB / 0.8852 GB, free: 15.03 MB / 0.8542 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.681e-05/0.01011, allocations: 43.91 kB / 0.8853 GB, free: 14.98 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007304/0.01084, allocations: 0.7978 MB / 0.8861 GB, free: 14.14 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001674/0.011, allocations: 114.4 kB / 0.8862 GB, free: 14 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.169e-05/0.01106, allocations: 35.36 kB / 0.8862 GB, free: 13.96 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 1.389e-05/0.01107, allocations: 4 kB / 0.8862 GB, free: 13.96 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001385/0.01121, allocations: 120.4 kB / 0.8863 GB, free: 13.82 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=12): time 1.012e-06/0.01121, allocations: 0 / 0.8863 GB, free: 13.82 MB / 0.8542 GB Notification: Performance of matching and sorting (n=12): time 0.0002832/0.01149, allocations: 177.3 kB / 0.8865 GB, free: 13.64 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.744e-05/0.01154, allocations: 110.8 kB / 0.8866 GB, free: 13.5 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000364/0.0119, allocations: 498.6 kB / 0.8871 GB, free: 13 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 2.225e-05/0.01193, allocations: 41.64 kB / 0.8871 GB, free: 12.95 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001309/0.01206, allocations: 259.3 kB / 0.8874 GB, free: 12.7 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 2.876e-05/0.01209, allocations: 39.72 kB / 0.8874 GB, free: 12.66 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.886e-05/0.01216, allocations: 79.3 kB / 0.8875 GB, free: 12.57 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 0.0001393/0.0123, allocations: 0.5313 MB / 0.888 GB, free: 12.03 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.971e-05/0.01237, allocations: 39.97 kB / 0.888 GB, free: 11.99 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000126/0.0125, allocations: 200.3 kB / 0.8882 GB, free: 11.75 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001396/0.01264, allocations: 133.2 kB / 0.8883 GB, free: 11.6 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.434e-06/0.01264, allocations: 0 / 0.8883 GB, free: 11.6 MB / 0.8542 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0002685/0.01291, allocations: 251.4 kB / 0.8886 GB, free: 11.35 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 1.181e-05/0.01292, allocations: 4 kB / 0.8886 GB, free: 11.34 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.64e-06/0.01293, allocations: 4.484 kB / 0.8886 GB, free: 11.34 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.364e-05/0.01294, allocations: 4 kB / 0.8886 GB, free: 11.34 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000118/0.01306, allocations: 43.92 kB / 0.8886 GB, free: 11.29 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.612e-06/0.01307, allocations: 4 kB / 0.8886 GB, free: 11.29 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.411e-05/0.01316, allocations: 40.02 kB / 0.8887 GB, free: 11.25 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.993e-05/0.01318, allocations: 8 kB / 0.8887 GB, free: 11.24 MB / 0.8542 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 15 ($PRE.TTanBot.tab.nextTimeEvent,$whenCondition2,$PRE.TTanTop.tab.nextTimeEvent,$whenCondition1,TTanTop.tab.nextTimeEventScaled,$PRE.TTanTop.tab.nextTimeEventScaled,TTanTop.tab.nextTimeEvent,tanSta.hysCha.y,$PRE.tanSta.hysCha.y,TTanBot.tab.nextTimeEventScaled,$PRE.TTanBot.tab.nextTimeEventScaled,TTanBot.tab.nextTimeEvent,tanSta.hysEmp.y,$PRE.tanSta.hysEmp.y,tanSta.gre.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (35): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 0 * 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.0001037/0.01328, allocations: 186.5 kB / 0.8889 GB, free: 11.05 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.993e-05/0.01332, allocations: 51.69 kB / 0.8889 GB, free: 11 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002/0.01352, allocations: 161 kB / 0.8891 GB, free: 10.84 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.715e-06/0.01353, allocations: 4 kB / 0.8891 GB, free: 10.83 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.985e-06/0.01353, allocations: 0 / 0.8891 GB, free: 10.83 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.527e-06/0.01353, allocations: 0 / 0.8891 GB, free: 10.83 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001898/0.01372, allocations: 272.4 kB / 0.8893 GB, free: 10.53 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.142e-06/0.01372, allocations: 4 kB / 0.8893 GB, free: 10.53 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.773e-05/0.01375, allocations: 15.98 kB / 0.8894 GB, free: 10.51 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.314e-06/0.01375, allocations: 0 / 0.8894 GB, free: 10.51 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.071e-05/0.01376, allocations: 3.938 kB / 0.8894 GB, free: 10.51 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.725e-06/0.01377, allocations: 4 kB / 0.8894 GB, free: 10.5 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.01377, allocations: 3.938 kB / 0.8894 GB, free: 10.5 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001897/0.01396, allocations: 207.8 kB / 0.8896 GB, free: 10.27 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 4.045e-05/0.014, allocations: 43.69 kB / 0.8896 GB, free: 10.23 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.155e-05/0.01403, allocations: 11.94 kB / 0.8896 GB, free: 10.21 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.61e-05/0.01409, allocations: 15.98 kB / 0.8896 GB, free: 10.2 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.345e-05/0.01414, allocations: 27.95 kB / 0.8897 GB, free: 10.17 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.367e-06/0.01415, allocations: 4 kB / 0.8897 GB, free: 10.17 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 0.0001982/0.01435, allocations: 307 kB / 0.89 GB, free: 9.867 MB / 0.8542 GB Notification: Performance of sort global known variables: time 5e-08/0.01435, allocations: 0 / 0.89 GB, free: 9.867 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0002113/0.01456, allocations: 67.89 kB / 0.89 GB, free: 9.801 MB / 0.8542 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition2,tanSta.hysEmp.y,TTanBot.tab.nextTimeEvent,TTanBot.tab.nextTimeEventScaled,$whenCondition1,tanSta.hysCha.y,TTanTop.tab.nextTimeEvent,TTanTop.tab.nextTimeEventScaled) * Number of discrete states: 6 (tanSta.hysCha.y,TTanTop.tab.nextTimeEvent,TTanTop.tab.nextTimeEventScaled,tanSta.hysEmp.y,TTanBot.tab.nextTimeEvent,TTanBot.tab.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.0008036/0.01536, allocations: 410 kB / 0.8904 GB, free: 9.543 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.000218/0.01558, allocations: 140.1 kB / 0.8905 GB, free: 9.402 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 1.654e-06/0.01558, allocations: 0 / 0.8905 GB, free: 9.402 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 6.404e-05/0.01565, allocations: 47.61 kB / 0.8906 GB, free: 9.352 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003042/0.01595, allocations: 102 kB / 0.8907 GB, free: 9.254 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008497/0.0168, allocations: 0.5566 MB / 0.8912 GB, free: 8.66 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.931e-05/0.01687, allocations: 104.6 kB / 0.8913 GB, free: 8.539 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 9.164e-05/0.01696, allocations: 46.94 kB / 0.8914 GB, free: 8.492 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.16e-05/0.01703, allocations: 40.48 kB / 0.8914 GB, free: 8.453 MB / 0.8542 GB Notification: Performance of SimCode: time 1.062e-06/0.01703, allocations: 4 kB / 0.8914 GB, free: 8.449 MB / 0.8542 GB Notification: Performance of Templates: time 0.007778/0.02481, allocations: 5.411 MB / 0.8967 GB, free: 3.121 MB / 0.8542 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe ; mkfifo Buildings_latest_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe ; head -c 1048576 < Buildings_latest_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe >> ../files/Buildings_latest_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.sim & ./Buildings_latest_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_DHC_Plants_Cooling_Controls_Validation_TankStatus.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.191091265995055]