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.0009813/0.0009813, allocations: 81.95 kB / 19.87 MB, free: 4.617 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.0008916/0.0008916, allocations: 173.7 kB / 23.28 MB, free: 1.219 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.9009/0.9009, allocations: 177.1 MB / 203.7 MB, free: 5.492 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.21/2.21, allocations: 438.1 MB / 0.682 GB, free: 14.14 MB / 0.6511 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 1.393e-06/1.393e-06, allocations: 0 / 0.8897 GB, free: 9.738 MB / 0.8542 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.554e-05/1.693e-05, allocations: 5.406 kB / 0.8897 GB, free: 9.734 MB / 0.8542 GB Notification: Performance of NFInst.instantiate(Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus): time 0.00335/0.003367, allocations: 2.24 MB / 0.8919 GB, free: 7.477 MB / 0.8542 GB Notification: Performance of NFInst.instExpressions: time 0.002022/0.005389, allocations: 1.38 MB / 0.8933 GB, free: 6.09 MB / 0.8542 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00013/0.005519, allocations: 7.938 kB / 0.8933 GB, free: 6.082 MB / 0.8542 GB Notification: Performance of NFTyping.typeComponents: time 0.0003472/0.005866, allocations: 171.2 kB / 0.8934 GB, free: 5.914 MB / 0.8542 GB Notification: Performance of NFTyping.typeBindings: time 0.0003464/0.006212, allocations: 230.8 kB / 0.8937 GB, free: 5.688 MB / 0.8542 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002953/0.006508, allocations: 191.4 kB / 0.8938 GB, free: 5.5 MB / 0.8542 GB Notification: Performance of NFFlatten.flatten: time 0.000365/0.006873, allocations: 438.8 kB / 0.8943 GB, free: 5.07 MB / 0.8542 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001404/0.007013, allocations: 65.55 kB / 0.8943 GB, free: 5 MB / 0.8542 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006264/0.007639, allocations: 314.6 kB / 0.8946 GB, free: 4.73 MB / 0.8542 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001743/0.007814, allocations: 151.6 kB / 0.8948 GB, free: 4.582 MB / 0.8542 GB Notification: Performance of NFPackage.collectConstants: time 3.189e-05/0.007846, allocations: 24 kB / 0.8948 GB, free: 4.559 MB / 0.8542 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001147/0.00796, allocations: 83.89 kB / 0.8949 GB, free: 4.477 MB / 0.8542 GB Notification: Performance of NFScalarize.scalarize: time 8.633e-05/0.008047, allocations: 111.6 kB / 0.895 GB, free: 4.367 MB / 0.8542 GB Notification: Performance of NFVerifyModel.verify: time 6.956e-05/0.008116, allocations: 99.64 kB / 0.8951 GB, free: 4.27 MB / 0.8542 GB Notification: Performance of NFConvertDAE.convert: time 0.0003093/0.008425, allocations: 322.8 kB / 0.8954 GB, free: 3.953 MB / 0.8542 GB Notification: Performance of FrontEnd - DAE generated: time 1.754e-06/0.008427, allocations: 0 / 0.8954 GB, free: 3.953 MB / 0.8542 GB Notification: Performance of FrontEnd: time 5.21e-07/0.008428, allocations: 7.938 kB / 0.8954 GB, free: 3.945 MB / 0.8542 GB Notification: Performance of Transformations before backend: time 3.556e-06/0.008431, allocations: 0 / 0.8954 GB, free: 3.945 MB / 0.8542 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.0006268/0.009058, allocations: 0.7554 MB / 0.8961 GB, free: 3.152 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 3.24e-05/0.00909, allocations: 8.625 kB / 0.8961 GB, free: 3.145 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.307e-05/0.009154, allocations: 56.66 kB / 0.8962 GB, free: 3.09 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002929/0.009446, allocations: 333.3 kB / 0.8965 GB, free: 2.742 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.156e-05/0.009468, allocations: 16.38 kB / 0.8965 GB, free: 2.727 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.772e-05/0.009486, allocations: 16.31 kB / 0.8965 GB, free: 2.711 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001806/0.009666, allocations: 179.6 kB / 0.8967 GB, free: 2.508 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.167e-06/0.009676, allocations: 3.938 kB / 0.8967 GB, free: 2.504 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.056e-05/0.009686, allocations: 4 kB / 0.8967 GB, free: 2.5 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.783e-06/0.009693, allocations: 4 kB / 0.8967 GB, free: 2.496 MB / 0.8542 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.545e-05/0.009748, allocations: 39.89 kB / 0.8968 GB, free: 2.457 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005793/0.01033, allocations: 0.7319 MB / 0.8975 GB, free: 1.688 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000124/0.01045, allocations: 114.3 kB / 0.8976 GB, free: 1.551 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.27e-05/0.01048, allocations: 35.36 kB / 0.8976 GB, free: 1.508 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 1.179e-05/0.0105, allocations: 4 kB / 0.8976 GB, free: 1.504 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001123/0.01061, allocations: 108.4 kB / 0.8977 GB, free: 1.375 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=12): time 1.914e-06/0.01061, allocations: 7.984 kB / 0.8977 GB, free: 1.367 MB / 0.8542 GB Notification: Performance of matching and sorting (n=12): time 0.0002234/0.01083, allocations: 165.3 kB / 0.8979 GB, free: 1.199 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.781e-05/0.01087, allocations: 118.7 kB / 0.898 GB, free: 1.059 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002817/0.01115, allocations: 474.4 kB / 0.8984 GB, free: 0.5781 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 2.619e-05/0.01118, allocations: 41.69 kB / 0.8985 GB, free: 0.5312 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001288/0.01131, allocations: 263.2 kB / 0.8987 GB, free: 276 kB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 2.678e-05/0.01134, allocations: 39.72 kB / 0.8988 GB, free: 236 kB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.476e-05/0.01141, allocations: 87.25 kB / 0.8989 GB, free: 140 kB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 0.0001615/0.01157, allocations: 0.5312 MB / 0.8994 GB, free: 15.59 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.503e-05/0.01162, allocations: 31.97 kB / 0.8994 GB, free: 15.56 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001089/0.01173, allocations: 188.3 kB / 0.8996 GB, free: 15.33 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001061/0.01183, allocations: 130.5 kB / 0.8997 GB, free: 15.19 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.01183, allocations: 0 / 0.8997 GB, free: 15.19 MB / 0.8698 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0002172/0.01205, allocations: 225.2 kB / 0.8999 GB, free: 14.96 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 3.292e-05/0.01208, allocations: 7.938 kB / 0.8999 GB, free: 14.95 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.901e-06/0.01209, allocations: 4 kB / 0.8999 GB, free: 14.95 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.088e-05/0.0121, allocations: 0 / 0.8999 GB, free: 14.95 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001078/0.01221, allocations: 43.92 kB / 0.9 GB, free: 14.91 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.709e-06/0.01221, allocations: 7.984 kB / 0.9 GB, free: 14.9 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.352e-05/0.0123, allocations: 31.97 kB / 0.9 GB, free: 14.87 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.97e-05/0.01232, allocations: 12 kB / 0.9 GB, free: 14.86 MB / 0.8698 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,tanSta.gre.y,TTanBot.tab.nextTimeEventScaled,$PRE.TTanBot.tab.nextTimeEventScaled,TTanBot.tab.nextTimeEvent,tanSta.hysEmp.y,$PRE.tanSta.hysEmp.y,TTanTop.tab.nextTimeEventScaled,$PRE.TTanTop.tab.nextTimeEventScaled,TTanTop.tab.nextTimeEvent,tanSta.hysCha.y,$PRE.tanSta.hysCha.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 9.278e-05/0.01241, allocations: 174.5 kB / 0.9002 GB, free: 14.67 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.666e-05/0.01245, allocations: 51.7 kB / 0.9002 GB, free: 14.62 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001738/0.01262, allocations: 156.9 kB / 0.9004 GB, free: 14.46 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.044e-06/0.01262, allocations: 0 / 0.9004 GB, free: 14.46 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.573e-06/0.01262, allocations: 0 / 0.9004 GB, free: 14.46 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.819e-06/0.01263, allocations: 4 kB / 0.9004 GB, free: 14.46 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001489/0.01278, allocations: 205.6 kB / 0.9006 GB, free: 14.23 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.223e-06/0.01278, allocations: 4 kB / 0.9006 GB, free: 14.23 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.577e-05/0.0128, allocations: 12 kB / 0.9006 GB, free: 14.21 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.645e-06/0.01281, allocations: 4 kB / 0.9006 GB, free: 14.21 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.225e-06/0.01281, allocations: 7.984 kB / 0.9006 GB, free: 14.2 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.154e-06/0.01282, allocations: 3.938 kB / 0.9006 GB, free: 14.2 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.894e-06/0.01282, allocations: 7.938 kB / 0.9006 GB, free: 14.19 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001834/0.013, allocations: 196 kB / 0.9008 GB, free: 13.97 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 3.696e-05/0.01304, allocations: 43.69 kB / 0.9009 GB, free: 13.93 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.514e-05/0.01306, allocations: 4 kB / 0.9009 GB, free: 13.93 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.667e-05/0.01312, allocations: 15.98 kB / 0.9009 GB, free: 13.91 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.257e-05/0.01316, allocations: 35.83 kB / 0.9009 GB, free: 13.88 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.867e-06/0.01317, allocations: 4 kB / 0.9009 GB, free: 13.87 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 0.0001495/0.01332, allocations: 287 kB / 0.9012 GB, free: 13.59 MB / 0.8698 GB Notification: Performance of sort global known variables: time 6.1e-08/0.01332, allocations: 0 / 0.9012 GB, free: 13.59 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.0001976/0.01352, allocations: 75.88 kB / 0.9013 GB, free: 13.52 MB / 0.8698 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.0008201/0.01434, allocations: 409.3 kB / 0.9017 GB, free: 13.25 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.0001809/0.01452, allocations: 112.1 kB / 0.9018 GB, free: 13.14 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.01452, allocations: 3.938 kB / 0.9018 GB, free: 13.13 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 5.299e-05/0.01458, allocations: 35.67 kB / 0.9018 GB, free: 13.09 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002886/0.01486, allocations: 111.5 kB / 0.9019 GB, free: 13 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008008/0.01566, allocations: 0.5562 MB / 0.9025 GB, free: 12.41 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.505e-05/0.01573, allocations: 116.5 kB / 0.9026 GB, free: 12.27 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 8.741e-05/0.01582, allocations: 47.25 kB / 0.9026 GB, free: 12.23 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002361/0.01605, allocations: 146.2 kB / 0.9027 GB, free: 12.08 MB / 0.8698 GB Notification: Performance of SimCode: time 6.41e-07/0.01605, allocations: 4 kB / 0.9028 GB, free: 12.08 MB / 0.8698 GB Notification: Performance of Templates: time 0.007026/0.02308, allocations: 5.486 MB / 0.9081 GB, free: 6.691 MB / 0.8698 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.106761016882956]