Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo", uses=false) Using package AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002") translateModel(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001041/0.001046, allocations: 106 kB / 16.41 MB, free: 6.457 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001022/0.001022, allocations: 192.3 kB / 17.35 MB, free: 5.715 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.32/1.32, allocations: 222.9 MB / 241 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09478/0.09478, allocations: 22.32 MB / 313.5 MB, free: 8.863 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00126/0.00126, allocations: 71.89 kB / 437.7 MB, free: 11.74 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08507/0.08634, allocations: 54.96 MB / 492.7 MB, free: 4.73 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002): time 0.004608/0.09097, allocations: 4.191 MB / 496.9 MB, free: 0.5078 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002024/0.09302, allocations: 1.165 MB / 498 MB, free: 15.34 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002835/0.09332, allocations: 8 kB / 498 MB, free: 15.33 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002758/0.09362, allocations: 114.9 kB / 498.2 MB, free: 15.21 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005351/0.09416, allocations: 270 kB / 498.4 MB, free: 14.95 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006824/0.09486, allocations: 303.4 kB / 498.7 MB, free: 14.65 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001079/0.09594, allocations: 1.186 MB / 499.9 MB, free: 13.46 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000796/0.09675, allocations: 0.6723 MB / 0.4888 GB, free: 12.77 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005037/0.09726, allocations: 490.5 kB / 0.4893 GB, free: 12.29 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006995/0.09797, allocations: 0.5995 MB / 0.4899 GB, free: 11.69 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001967/0.09818, allocations: 120 kB / 0.49 GB, free: 11.57 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002146/0.0984, allocations: 120 kB / 0.4901 GB, free: 11.46 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002733/0.09868, allocations: 335 kB / 0.4904 GB, free: 11.13 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005122/0.0992, allocations: 0.5212 MB / 0.491 GB, free: 10.61 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009856/0.1002, allocations: 1.254 MB / 0.4922 GB, free: 9.348 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.196e-06/0.1002, allocations: 0 / 0.4922 GB, free: 9.348 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.133e-06/0.1002, allocations: 0 / 0.4922 GB, free: 9.348 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.183e-05/0.1002, allocations: 0 / 0.4922 GB, free: 9.348 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 199 * Number of variables: 199 Notification: Performance of Generate backend data structure: time 0.002707/0.103, allocations: 1.255 MB / 0.4934 GB, free: 8.043 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.206e-05/0.103, allocations: 8.031 kB / 0.4934 GB, free: 8.035 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001836/0.1032, allocations: 95.91 kB / 0.4935 GB, free: 7.941 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007522/0.1039, allocations: 0.5228 MB / 0.494 GB, free: 7.379 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000158/0.1041, allocations: 159.6 kB / 0.4942 GB, free: 7.207 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001487/0.1043, allocations: 84.28 kB / 0.4942 GB, free: 7.125 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002133/0.1064, allocations: 1.007 MB / 0.4952 GB, free: 6.109 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.897e-05/0.1064, allocations: 3.938 kB / 0.4952 GB, free: 6.105 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.463e-05/0.1065, allocations: 36 kB / 0.4953 GB, free: 6.07 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.615e-05/0.1066, allocations: 20 kB / 0.4953 GB, free: 6.051 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00199/0.1086, allocations: 0.9056 MB / 0.4962 GB, free: 5.145 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006732/0.1153, allocations: 3.539 MB / 0.4996 GB, free: 1.527 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001873/0.1172, allocations: 0.906 MB / 0.5005 GB, free: 0.6172 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.175/0.2922, allocations: 0.6205 MB / 0.5011 GB, free: 22.94 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001345/0.2924, allocations: 12.64 kB / 0.5011 GB, free: 22.94 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.869e-05/0.2924, allocations: 46.62 kB / 0.5012 GB, free: 22.9 MB / 382.1 MB Notification: Performance of pre-optimization done (n=79): time 2.945e-06/0.2924, allocations: 0 / 0.5012 GB, free: 22.9 MB / 382.1 MB Notification: Performance of matching and sorting (n=83): time 0.00715/0.2996, allocations: 3.027 MB / 0.5041 GB, free: 22.57 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.122e-05/0.2996, allocations: 60.47 kB / 0.5042 GB, free: 22.5 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005249/0.3001, allocations: 0.5073 MB / 0.5047 GB, free: 22.39 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.735e-05/0.3002, allocations: 39.64 kB / 0.5047 GB, free: 22.36 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000164/0.3004, allocations: 323.6 kB / 0.505 GB, free: 22.19 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001897/0.3006, allocations: 304 kB / 0.5053 GB, free: 22 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002731/0.3009, allocations: 154.8 kB / 0.5055 GB, free: 21.98 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.976e-05/0.301, allocations: 386.8 kB / 0.5058 GB, free: 21.67 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001126/0.3021, allocations: 0.5335 MB / 0.5064 GB, free: 21.65 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001138/0.3033, allocations: 0.6056 MB / 0.5069 GB, free: 21.57 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01026/0.3135, allocations: 3.033 MB / 0.5099 GB, free: 21.41 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.095e-06/0.3136, allocations: 1.375 kB / 0.5099 GB, free: 21.41 MB / 382.1 MB Notification: Performance of matching and sorting (n=112) (initialization): time 0.00268/0.3162, allocations: 1.268 MB / 0.5111 GB, free: 21.32 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.738e-05/0.3163, allocations: 10.95 kB / 0.5112 GB, free: 21.32 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.478e-06/0.3163, allocations: 2.719 kB / 0.5112 GB, free: 21.32 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.229e-05/0.3163, allocations: 5.438 kB / 0.5112 GB, free: 21.32 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007156/0.3235, allocations: 1.029 MB / 0.5122 GB, free: 21.3 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.62e-05/0.3235, allocations: 13.36 kB / 0.5122 GB, free: 21.29 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007719/0.3243, allocations: 68.34 kB / 0.5122 GB, free: 21.29 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.919e-05/0.3244, allocations: 33.41 kB / 0.5123 GB, free: 21.29 MB / 382.1 MB Warning: Assuming fixed start value for the following 7 variables: H.Ec:VARIABLE(flow=false fixed = true ) type: Real HnoTank.Ec:VARIABLE(flow=false fixed = true ) type: Real stank.lcold:VARIABLE(start = stank.lcoldstart unit = "m" fixed = true stateSelect=StateSelect.prefer ) "cold height" type: Real stank.Thot:VARIABLE(min = 0.0 start = stank.Thotstart unit = "K" fixed = true nominal = 300.0 stateSelect=StateSelect.prefer ) type: Real stank.Tcold:VARIABLE(min = 0.0 start = stank.Tcoldstart unit = "K" fixed = true nominal = 300.0 stateSelect=StateSelect.prefer ) type: Real H.Tfo:VARIABLE(min = 0.0 start = H.Tstart unit = "K" fixed = true nominal = 300.0 ) "outlet fluid temp" type: Real HnoTank.Tfo:VARIABLE(min = 0.0 start = HnoTank.Tstart unit = "K" fixed = true nominal = 300.0 ) "outlet fluid temp" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 1 (Hon.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (112): * Single equations (assignments): 112 * 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.0003917/0.3248, allocations: 259.5 kB / 0.5125 GB, free: 21.16 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001379/0.3249, allocations: 69.02 kB / 0.5126 GB, free: 21.13 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002721/0.3276, allocations: 1.193 MB / 0.5138 GB, free: 21.04 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.122e-05/0.3277, allocations: 4.656 kB / 0.5138 GB, free: 21.04 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.757e-06/0.3277, allocations: 4.219 kB / 0.5138 GB, free: 21.04 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001081/0.3278, allocations: 153.2 kB / 0.5139 GB, free: 20.91 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001462/0.3279, allocations: 22.5 kB / 0.5139 GB, free: 20.91 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007675/0.3287, allocations: 68.42 kB / 0.514 GB, free: 20.91 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002237/0.329, allocations: 97.08 kB / 0.5141 GB, free: 20.91 MB / 382.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.008602/0.3376, allocations: 1.953 MB / 0.516 GB, free: 20.74 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.003759/0.3413, allocations: 1.906 MB / 0.5179 GB, free: 20.25 MB / 382.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001131/0.3425, allocations: 0.5438 MB / 0.5184 GB, free: 20.07 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003713/0.3429, allocations: 363.7 kB / 0.5187 GB, free: 19.9 MB / 382.1 MB Notification: Performance of Backend: time 6.51e-07/0.3429, allocations: 0.9375 kB / 0.5187 GB, free: 19.9 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001872/0.3447, allocations: 0.7963 MB / 0.5195 GB, free: 19.59 MB / 382.1 MB Notification: Performance of SimCode: time 0.002554/0.3473, allocations: 2.549 MB / 0.522 GB, free: 17.85 MB / 382.1 MB Notification: Performance of Templates: time 0.01767/0.365, allocations: 15.11 MB / 0.5368 GB, free: 7.441 MB / 382.1 MB make -j1 -f AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002.makefile (rm -f AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002.pipe ; mkfifo AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002.pipe >> ../files/AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002.sim & ./AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002 -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002.pipe 2>&1)