Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001055/0.001055, allocations: 71.75 kB / 20.97 MB, free: 3.578 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.0009655/0.0009655, allocations: 169 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 1.008/1.008, allocations: 177.1 MB / 204.6 MB, free: 5.602 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 1.909/1.909, allocations: 377.9 MB / 0.6239 GB, free: 8.531 MB / 0.5886 GB " [Timeout remaining time 177] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.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.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_12_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_12_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.322e-06/1.322e-06, allocations: 0 / 0.8115 GB, free: 2.082 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.756e-05/1.888e-05, allocations: 2.312 kB / 0.8115 GB, free: 2.078 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus): time 0.0026/0.002619, allocations: 2.264 MB / 0.8137 GB, free: 15.82 MB / 0.7761 GB Notification: Performance of NFInst.instExpressions: time 0.001742/0.004361, allocations: 1.384 MB / 0.8151 GB, free: 14.43 MB / 0.7761 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001375/0.004499, allocations: 7.938 kB / 0.8151 GB, free: 14.43 MB / 0.7761 GB Notification: Performance of NFTyping.typeComponents: time 0.0003821/0.004881, allocations: 171.2 kB / 0.8153 GB, free: 14.26 MB / 0.7761 GB Notification: Performance of NFTyping.typeBindings: time 0.0003599/0.005241, allocations: 232.4 kB / 0.8155 GB, free: 14.03 MB / 0.7761 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002384/0.005479, allocations: 184.6 kB / 0.8157 GB, free: 13.85 MB / 0.7761 GB Notification: Performance of NFFlatten.flatten: time 0.0003318/0.005811, allocations: 446.6 kB / 0.8161 GB, free: 13.41 MB / 0.7761 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001505/0.005961, allocations: 61.55 kB / 0.8161 GB, free: 13.35 MB / 0.7761 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001969/0.006158, allocations: 232.8 kB / 0.8164 GB, free: 13.12 MB / 0.7761 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001657/0.006324, allocations: 163.5 kB / 0.8165 GB, free: 12.96 MB / 0.7761 GB Notification: Performance of NFPackage.collectConstants: time 3.186e-05/0.006356, allocations: 24 kB / 0.8165 GB, free: 12.94 MB / 0.7761 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001085/0.006464, allocations: 81.61 kB / 0.8166 GB, free: 12.86 MB / 0.7761 GB Notification: Performance of NFScalarize.scalarize: time 9.662e-05/0.006561, allocations: 123.6 kB / 0.8167 GB, free: 12.74 MB / 0.7761 GB Notification: Performance of NFVerifyModel.verify: time 8.353e-05/0.006644, allocations: 95.62 kB / 0.8168 GB, free: 12.65 MB / 0.7761 GB Notification: Performance of NFConvertDAE.convert: time 0.0003224/0.006967, allocations: 322.8 kB / 0.8171 GB, free: 12.33 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 2.345e-06/0.006969, allocations: 0 / 0.8171 GB, free: 12.33 MB / 0.7761 GB Notification: Performance of FrontEnd: time 6.51e-07/0.00697, allocations: 0.8438 kB / 0.8171 GB, free: 12.33 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 4.889e-06/0.006975, allocations: 0 / 0.8171 GB, free: 12.33 MB / 0.7761 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.0007288/0.007704, allocations: 0.7606 MB / 0.8179 GB, free: 11.54 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 3.428e-05/0.007738, allocations: 12.03 kB / 0.8179 GB, free: 11.52 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.787e-05/0.007816, allocations: 53.22 kB / 0.8179 GB, free: 11.47 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003595/0.008175, allocations: 336.7 kB / 0.8183 GB, free: 11.12 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.211e-05/0.008197, allocations: 16.36 kB / 0.8183 GB, free: 11.11 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.001e-05/0.008217, allocations: 12.38 kB / 0.8183 GB, free: 11.09 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002286/0.008446, allocations: 191.3 kB / 0.8185 GB, free: 10.88 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.666e-06/0.008455, allocations: 2.562 kB / 0.8185 GB, free: 10.88 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.537e-05/0.00847, allocations: 8 kB / 0.8185 GB, free: 10.87 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.186e-06/0.008478, allocations: 0 / 0.8185 GB, free: 10.87 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.715e-05/0.008565, allocations: 51.89 kB / 0.8185 GB, free: 10.82 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007001/0.009265, allocations: 0.7906 MB / 0.8193 GB, free: 9.984 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001551/0.00942, allocations: 111.6 kB / 0.8194 GB, free: 9.852 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.803e-05/0.009468, allocations: 36.98 kB / 0.8194 GB, free: 9.809 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 1.254e-05/0.009481, allocations: 4 kB / 0.8194 GB, free: 9.805 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001469/0.009628, allocations: 128.2 kB / 0.8196 GB, free: 9.656 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=12): time 1.232e-06/0.009629, allocations: 0.5938 kB / 0.8196 GB, free: 9.656 MB / 0.7761 GB Notification: Performance of matching and sorting (n=12): time 0.0002882/0.009917, allocations: 182.5 kB / 0.8197 GB, free: 9.473 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.312e-05/0.00997, allocations: 107.5 kB / 0.8198 GB, free: 9.344 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003567/0.01033, allocations: 0.4908 MB / 0.8203 GB, free: 8.836 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 2.329e-05/0.01035, allocations: 33.7 kB / 0.8204 GB, free: 8.797 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001367/0.01049, allocations: 264 kB / 0.8206 GB, free: 8.535 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 2.952e-05/0.01052, allocations: 31.8 kB / 0.8206 GB, free: 8.504 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.764e-05/0.01059, allocations: 80.33 kB / 0.8207 GB, free: 8.418 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0001426/0.01074, allocations: 0.5313 MB / 0.8212 GB, free: 7.875 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.385e-05/0.01081, allocations: 41.12 kB / 0.8213 GB, free: 7.836 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002176/0.01103, allocations: 200.3 kB / 0.8215 GB, free: 7.594 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001392/0.01117, allocations: 135.2 kB / 0.8216 GB, free: 7.445 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.386e-06/0.01117, allocations: 4 kB / 0.8216 GB, free: 7.441 MB / 0.7761 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0002654/0.01144, allocations: 243.8 kB / 0.8218 GB, free: 7.199 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 1.435e-05/0.01145, allocations: 4 kB / 0.8218 GB, free: 7.195 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.29e-06/0.01146, allocations: 6.844 kB / 0.8218 GB, free: 7.191 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.251e-05/0.01147, allocations: 0 / 0.8218 GB, free: 7.191 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001205/0.01159, allocations: 51.91 kB / 0.8219 GB, free: 7.141 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.014e-06/0.0116, allocations: 4 kB / 0.8219 GB, free: 7.137 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.336e-05/0.01169, allocations: 27.92 kB / 0.8219 GB, free: 7.109 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.539e-05/0.01171, allocations: 19.97 kB / 0.8219 GB, free: 7.09 MB / 0.7761 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.000102/0.01182, allocations: 176 kB / 0.8221 GB, free: 6.91 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.019e-05/0.01186, allocations: 51.66 kB / 0.8222 GB, free: 6.859 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002157/0.01207, allocations: 169 kB / 0.8223 GB, free: 6.691 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.805e-06/0.01208, allocations: 4.625 kB / 0.8223 GB, free: 6.688 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.506e-06/0.01208, allocations: 0 / 0.8223 GB, free: 6.688 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.258e-06/0.01208, allocations: 0.6562 kB / 0.8223 GB, free: 6.688 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001928/0.01228, allocations: 276.4 kB / 0.8226 GB, free: 6.383 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.01228, allocations: 1.844 kB / 0.8226 GB, free: 6.383 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.731e-05/0.0123, allocations: 12 kB / 0.8226 GB, free: 6.371 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.016e-06/0.01231, allocations: 3.938 kB / 0.8226 GB, free: 6.367 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.066e-05/0.01232, allocations: 3.984 kB / 0.8226 GB, free: 6.363 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.473e-06/0.01232, allocations: 5.344 kB / 0.8226 GB, free: 6.359 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.01232, allocations: 0 / 0.8226 GB, free: 6.359 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001847/0.01251, allocations: 211.8 kB / 0.8228 GB, free: 6.125 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 4.169e-05/0.01255, allocations: 47.7 kB / 0.8229 GB, free: 6.078 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.18e-05/0.01258, allocations: 9.031 kB / 0.8229 GB, free: 6.07 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.819e-05/0.01264, allocations: 15.98 kB / 0.8229 GB, free: 6.055 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.98e-05/0.0127, allocations: 28.55 kB / 0.8229 GB, free: 6.027 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.058e-05/0.01271, allocations: 8 kB / 0.8229 GB, free: 6.02 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 0.0001997/0.01291, allocations: 299.8 kB / 0.8232 GB, free: 5.73 MB / 0.7761 GB Notification: Performance of sort global known variables: time 5e-08/0.01291, allocations: 0 / 0.8232 GB, free: 5.73 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0002061/0.01311, allocations: 79.66 kB / 0.8233 GB, free: 5.656 MB / 0.7761 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.0008458/0.01396, allocations: 395.4 kB / 0.8237 GB, free: 5.414 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.0002124/0.01417, allocations: 135.8 kB / 0.8238 GB, free: 5.281 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.01417, allocations: 0 / 0.8238 GB, free: 5.281 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 6.266e-05/0.01424, allocations: 48.2 kB / 0.8238 GB, free: 5.23 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002944/0.01453, allocations: 101.7 kB / 0.8239 GB, free: 5.137 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000797/0.01533, allocations: 0.5614 MB / 0.8245 GB, free: 4.539 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.03e-05/0.01539, allocations: 112.6 kB / 0.8246 GB, free: 4.41 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 8.831e-05/0.01548, allocations: 46.94 kB / 0.8246 GB, free: 4.359 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.63e-05/0.01554, allocations: 40.42 kB / 0.8247 GB, free: 4.32 MB / 0.7761 GB Notification: Performance of SimCode: time 8.31e-07/0.01554, allocations: 0 / 0.8247 GB, free: 4.32 MB / 0.7761 GB Notification: Performance of Templates: time 0.007056/0.0226, allocations: 5.103 MB / 0.8297 GB, free: 15.3 MB / 0.7917 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.makefile [Timeout 300] (rm -f Buildings_12_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe ; mkfifo Buildings_12_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe ; head -c 1048576 < Buildings_12_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe >> ../files/Buildings_12_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.sim & ./Buildings_12_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_12_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/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.379486520076171]