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.001021/0.001021, allocations: 83.59 kB / 20.45 MB, free: 4.117 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.00112/0.00112, allocations: 165 kB / 23.82 MB, free: 0.7461 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 1.005/1.005, allocations: 177.1 MB / 204.2 MB, free: 5.625 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.842/1.842, allocations: 377.9 MB / 0.6236 GB, free: 8.527 MB / 0.5886 GB " [Timeout remaining time 178] 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.553e-06/1.553e-06, allocations: 0 / 0.8115 GB, free: 1.727 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.404e-05/2.559e-05, allocations: 7.125 kB / 0.8115 GB, free: 1.719 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus): time 0.002894/0.00292, allocations: 2.268 MB / 0.8138 GB, free: 15.45 MB / 0.7761 GB Notification: Performance of NFInst.instExpressions: time 0.001861/0.004781, allocations: 1.4 MB / 0.8151 GB, free: 14.05 MB / 0.7761 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001695/0.00495, allocations: 11.88 kB / 0.8151 GB, free: 14.04 MB / 0.7761 GB Notification: Performance of NFTyping.typeComponents: time 0.0004265/0.005377, allocations: 172.7 kB / 0.8153 GB, free: 13.87 MB / 0.7761 GB Notification: Performance of NFTyping.typeBindings: time 0.000426/0.005803, allocations: 223 kB / 0.8155 GB, free: 13.65 MB / 0.7761 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003201/0.006123, allocations: 192 kB / 0.8157 GB, free: 13.46 MB / 0.7761 GB Notification: Performance of NFFlatten.flatten: time 0.000449/0.006572, allocations: 438.7 kB / 0.8161 GB, free: 13.04 MB / 0.7761 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001637/0.006736, allocations: 62.48 kB / 0.8162 GB, free: 12.97 MB / 0.7761 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002184/0.006954, allocations: 231.4 kB / 0.8164 GB, free: 12.75 MB / 0.7761 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001877/0.007142, allocations: 169.1 kB / 0.8165 GB, free: 12.58 MB / 0.7761 GB Notification: Performance of NFPackage.collectConstants: time 3.576e-05/0.007177, allocations: 24 kB / 0.8166 GB, free: 12.56 MB / 0.7761 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000136/0.007313, allocations: 79.91 kB / 0.8166 GB, free: 12.48 MB / 0.7761 GB Notification: Performance of NFScalarize.scalarize: time 0.0001054/0.007419, allocations: 124.3 kB / 0.8168 GB, free: 12.36 MB / 0.7761 GB Notification: Performance of NFVerifyModel.verify: time 8.37e-05/0.007503, allocations: 91.64 kB / 0.8169 GB, free: 12.27 MB / 0.7761 GB Notification: Performance of NFConvertDAE.convert: time 0.0003638/0.007866, allocations: 327.2 kB / 0.8172 GB, free: 11.95 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 2.895e-06/0.007869, allocations: 0 / 0.8172 GB, free: 11.95 MB / 0.7761 GB Notification: Performance of FrontEnd: time 8.91e-07/0.00787, allocations: 1.656 kB / 0.8172 GB, free: 11.95 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 5.921e-06/0.007876, allocations: 0 / 0.8172 GB, free: 11.95 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.0009131/0.008789, allocations: 0.7594 MB / 0.8179 GB, free: 11.15 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 4.51e-05/0.008834, allocations: 12.53 kB / 0.8179 GB, free: 11.14 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.619e-05/0.00892, allocations: 53.25 kB / 0.818 GB, free: 11.09 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003874/0.009308, allocations: 335.5 kB / 0.8183 GB, free: 10.74 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.674e-05/0.009335, allocations: 17.53 kB / 0.8183 GB, free: 10.72 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.337e-05/0.009358, allocations: 12.38 kB / 0.8183 GB, free: 10.71 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002365/0.009594, allocations: 191.4 kB / 0.8185 GB, free: 10.5 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.137e-05/0.009606, allocations: 1.375 kB / 0.8185 GB, free: 10.5 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.545e-05/0.009621, allocations: 4 kB / 0.8185 GB, free: 10.49 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.645e-06/0.009629, allocations: 0 / 0.8185 GB, free: 10.49 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.061e-05/0.00972, allocations: 55.89 kB / 0.8186 GB, free: 10.44 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000728/0.01045, allocations: 0.7995 MB / 0.8193 GB, free: 9.594 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001647/0.01061, allocations: 108.6 kB / 0.8194 GB, free: 9.465 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.961e-05/0.01066, allocations: 39.36 kB / 0.8195 GB, free: 9.418 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 1.677e-05/0.01068, allocations: 0 / 0.8195 GB, free: 9.418 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001546/0.01083, allocations: 135 kB / 0.8196 GB, free: 9.266 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=12): time 1.182e-06/0.01083, allocations: 4 kB / 0.8196 GB, free: 9.262 MB / 0.7761 GB Notification: Performance of matching and sorting (n=12): time 0.000289/0.01112, allocations: 173.3 kB / 0.8198 GB, free: 9.086 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.459e-05/0.01117, allocations: 102.8 kB / 0.8199 GB, free: 8.961 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003594/0.01153, allocations: 498.6 kB / 0.8204 GB, free: 8.457 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 2.073e-05/0.01155, allocations: 37.69 kB / 0.8204 GB, free: 8.414 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001357/0.01168, allocations: 260.7 kB / 0.8206 GB, free: 8.156 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 2.87e-05/0.01171, allocations: 35.91 kB / 0.8207 GB, free: 8.121 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.291e-05/0.01181, allocations: 79.28 kB / 0.8207 GB, free: 8.035 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0004087/0.01221, allocations: 0.5352 MB / 0.8213 GB, free: 7.488 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.741e-05/0.01229, allocations: 40.47 kB / 0.8213 GB, free: 7.449 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000133/0.01242, allocations: 196.9 kB / 0.8215 GB, free: 7.211 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001407/0.01257, allocations: 129.5 kB / 0.8216 GB, free: 7.066 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.747e-06/0.01257, allocations: 4 kB / 0.8216 GB, free: 7.062 MB / 0.7761 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0002878/0.01286, allocations: 250.2 kB / 0.8219 GB, free: 6.816 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 1.403e-05/0.01287, allocations: 4 kB / 0.8219 GB, free: 6.812 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.372e-06/0.01288, allocations: 4 kB / 0.8219 GB, free: 6.809 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.609e-05/0.01289, allocations: 0 / 0.8219 GB, free: 6.809 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000129/0.01302, allocations: 44.42 kB / 0.8219 GB, free: 6.766 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.834e-06/0.01303, allocations: 8.516 kB / 0.8219 GB, free: 6.758 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.271e-05/0.01312, allocations: 28.41 kB / 0.8219 GB, free: 6.73 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.734e-05/0.01315, allocations: 21.12 kB / 0.822 GB, free: 6.711 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.0001087/0.01326, allocations: 179.4 kB / 0.8221 GB, free: 6.527 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.583e-05/0.0133, allocations: 47.66 kB / 0.8222 GB, free: 6.48 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002325/0.01354, allocations: 169.8 kB / 0.8223 GB, free: 6.312 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.967e-06/0.01354, allocations: 4 kB / 0.8224 GB, free: 6.309 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.627e-06/0.01354, allocations: 0.5625 kB / 0.8224 GB, free: 6.309 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.039e-06/0.01355, allocations: 3.984 kB / 0.8224 GB, free: 6.305 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002129/0.01376, allocations: 276.1 kB / 0.8226 GB, free: 6.004 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.01376, allocations: 0 / 0.8226 GB, free: 6.004 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.513e-05/0.0138, allocations: 19.92 kB / 0.8226 GB, free: 5.984 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.707e-06/0.0138, allocations: 3.938 kB / 0.8226 GB, free: 5.98 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.017e-05/0.01381, allocations: 4 kB / 0.8226 GB, free: 5.977 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.01382, allocations: 0 / 0.8226 GB, free: 5.977 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.422e-06/0.01382, allocations: 0 / 0.8226 GB, free: 5.977 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001921/0.01401, allocations: 211.8 kB / 0.8228 GB, free: 5.742 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 4.354e-05/0.01405, allocations: 43.72 kB / 0.8229 GB, free: 5.699 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.295e-05/0.01409, allocations: 13.48 kB / 0.8229 GB, free: 5.688 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.538e-05/0.01414, allocations: 11.98 kB / 0.8229 GB, free: 5.676 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.811e-05/0.0142, allocations: 23.91 kB / 0.8229 GB, free: 5.652 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.33e-05/0.01421, allocations: 16.03 kB / 0.823 GB, free: 5.637 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 0.0001967/0.01441, allocations: 300.1 kB / 0.8232 GB, free: 5.348 MB / 0.7761 GB Notification: Performance of sort global known variables: time 5e-08/0.01441, allocations: 0 / 0.8232 GB, free: 5.348 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0002173/0.01463, allocations: 71.89 kB / 0.8233 GB, free: 5.277 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.0008629/0.01549, allocations: 405.1 kB / 0.8237 GB, free: 5.031 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.0002248/0.01571, allocations: 126.6 kB / 0.8238 GB, free: 4.906 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 1.463e-06/0.01572, allocations: 0 / 0.8238 GB, free: 4.906 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 6.366e-05/0.01578, allocations: 52.19 kB / 0.8239 GB, free: 4.852 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003101/0.01609, allocations: 104.4 kB / 0.824 GB, free: 4.758 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00086/0.01695, allocations: 0.5608 MB / 0.8245 GB, free: 4.16 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.386e-05/0.01701, allocations: 108.6 kB / 0.8246 GB, free: 4.035 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 9.092e-05/0.0171, allocations: 54.92 kB / 0.8247 GB, free: 3.977 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.062e-05/0.01717, allocations: 36.48 kB / 0.8247 GB, free: 3.941 MB / 0.7761 GB Notification: Performance of SimCode: time 7.31e-07/0.01718, allocations: 4 kB / 0.8247 GB, free: 3.938 MB / 0.7761 GB Notification: Performance of Templates: time 0.007518/0.02469, allocations: 5.1 MB / 0.8297 GB, free: 14.93 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.493636919185519]