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.00139/0.00139, allocations: 107.5 kB / 16.41 MB, free: 6.496 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.001596/0.001596, allocations: 189.5 kB / 17.34 MB, free: 5.766 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.342/1.342, allocations: 222.9 MB / 241 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09512/0.09512, allocations: 22.32 MB / 313.5 MB, free: 8.906 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001261/0.001261, allocations: 67.89 kB / 437.7 MB, free: 11.8 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08889/0.09016, allocations: 54.95 MB / 492.7 MB, free: 4.801 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002): time 0.005052/0.09525, allocations: 4.199 MB / 496.9 MB, free: 0.5703 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002396/0.09769, allocations: 1.154 MB / 498 MB, free: 15.41 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003798/0.09809, allocations: 4 kB / 498 MB, free: 15.41 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002844/0.09844, allocations: 102.9 kB / 498.1 MB, free: 15.3 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005337/0.09898, allocations: 273.9 kB / 498.4 MB, free: 15.04 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007352/0.09973, allocations: 295.5 kB / 498.7 MB, free: 14.75 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001111/0.1008, allocations: 1.19 MB / 499.9 MB, free: 13.55 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008645/0.1017, allocations: 0.6839 MB / 0.4888 GB, free: 12.85 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005317/0.1023, allocations: 474.6 kB / 0.4893 GB, free: 12.39 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007104/0.103, allocations: 0.6034 MB / 0.4899 GB, free: 11.78 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001756/0.1032, allocations: 120 kB / 0.49 GB, free: 11.66 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001891/0.1034, allocations: 120 kB / 0.4901 GB, free: 11.55 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002723/0.1036, allocations: 331 kB / 0.4904 GB, free: 11.22 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004907/0.1041, allocations: 0.5251 MB / 0.4909 GB, free: 10.7 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001027/0.1052, allocations: 1.246 MB / 0.4921 GB, free: 9.445 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.56e-06/0.1052, allocations: 7.922 kB / 0.4922 GB, free: 9.438 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.1052, allocations: 4 kB / 0.4922 GB, free: 9.434 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.22e-05/0.1052, allocations: 4 kB / 0.4922 GB, free: 9.43 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.002726/0.108, allocations: 1.255 MB / 0.4934 GB, free: 8.125 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.022e-05/0.108, allocations: 12.03 kB / 0.4934 GB, free: 8.113 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001878/0.1082, allocations: 95.91 kB / 0.4935 GB, free: 8.02 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007616/0.109, allocations: 0.519 MB / 0.494 GB, free: 7.461 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001607/0.1092, allocations: 159.6 kB / 0.4941 GB, free: 7.289 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001457/0.1093, allocations: 84.28 kB / 0.4942 GB, free: 7.207 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00213/0.1115, allocations: 1.011 MB / 0.4952 GB, free: 6.188 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.059e-05/0.1115, allocations: 0 / 0.4952 GB, free: 6.188 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.324e-05/0.1116, allocations: 32 kB / 0.4952 GB, free: 6.156 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.643e-05/0.1116, allocations: 20 kB / 0.4953 GB, free: 6.137 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00199/0.1136, allocations: 0.8978 MB / 0.4961 GB, free: 5.238 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007045/0.1207, allocations: 3.547 MB / 0.4996 GB, free: 1.613 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001964/0.1227, allocations: 0.9007 MB / 0.5005 GB, free: 0.707 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001244/0.1239, allocations: 0.6235 MB / 0.5011 GB, free: 84 kB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.568e-05/0.124, allocations: 12.64 kB / 0.5011 GB, free: 72 kB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.65e-05/0.1241, allocations: 47.19 kB / 0.5012 GB, free: 12 kB / 382.1 MB Notification: Performance of pre-optimization done (n=79): time 4.348e-06/0.1241, allocations: 3.984 kB / 0.5012 GB, free: 8 kB / 382.1 MB Notification: Performance of matching and sorting (n=83): time 0.1934/0.3175, allocations: 3.019 MB / 0.5041 GB, free: 22.19 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.383e-05/0.3176, allocations: 61.38 kB / 0.5042 GB, free: 22.12 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00053/0.3181, allocations: 0.509 MB / 0.5047 GB, free: 22.01 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.728e-05/0.3182, allocations: 40.17 kB / 0.5047 GB, free: 21.98 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001574/0.3184, allocations: 326.8 kB / 0.505 GB, free: 21.81 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001954/0.3186, allocations: 301.2 kB / 0.5053 GB, free: 21.62 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002706/0.3188, allocations: 151.6 kB / 0.5054 GB, free: 21.61 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.354e-05/0.3189, allocations: 384.9 kB / 0.5058 GB, free: 21.29 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001118/0.3201, allocations: 0.5357 MB / 0.5063 GB, free: 21.28 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001097/0.3212, allocations: 0.6062 MB / 0.5069 GB, free: 21.19 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01036/0.3315, allocations: 3.032 MB / 0.5099 GB, free: 21.02 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.831e-06/0.3316, allocations: 5.125 kB / 0.5099 GB, free: 21.02 MB / 382.1 MB Notification: Performance of matching and sorting (n=112) (initialization): time 0.00278/0.3344, allocations: 1.265 MB / 0.5111 GB, free: 20.93 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.045e-05/0.3344, allocations: 6.234 kB / 0.5111 GB, free: 20.93 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.046e-05/0.3344, allocations: 3.156 kB / 0.5111 GB, free: 20.93 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.464e-05/0.3345, allocations: 7.359 kB / 0.5111 GB, free: 20.93 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006753/0.3412, allocations: 1.03 MB / 0.5121 GB, free: 20.9 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.469e-05/0.3413, allocations: 12.52 kB / 0.5122 GB, free: 20.9 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008551/0.3421, allocations: 71.81 kB / 0.5122 GB, free: 20.9 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.675e-05/0.3422, allocations: 38 kB / 0.5123 GB, free: 20.9 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.0004286/0.3426, allocations: 249.1 kB / 0.5125 GB, free: 20.77 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001363/0.3428, allocations: 69 kB / 0.5126 GB, free: 20.74 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002656/0.3455, allocations: 1.201 MB / 0.5137 GB, free: 20.65 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.267e-05/0.3455, allocations: 11.77 kB / 0.5138 GB, free: 20.65 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.281e-06/0.3455, allocations: 1.781 kB / 0.5138 GB, free: 20.65 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.099e-05/0.3455, allocations: 4.312 kB / 0.5138 GB, free: 20.65 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004773/0.3503, allocations: 2.378 MB / 0.5161 GB, free: 20.25 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.873e-06/0.3503, allocations: 5.219 kB / 0.5161 GB, free: 20.25 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007037/0.3574, allocations: 1.003 MB / 0.5171 GB, free: 20.23 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.064e-05/0.3574, allocations: 11.16 kB / 0.5171 GB, free: 20.22 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000267/0.3577, allocations: 26.31 kB / 0.5171 GB, free: 20.22 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.235e-05/0.3577, allocations: 8.875 kB / 0.5171 GB, free: 20.22 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.081e-06/0.3577, allocations: 2.406 kB / 0.5171 GB, free: 20.22 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004323/0.3621, allocations: 1.813 MB / 0.5189 GB, free: 19.72 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002792/0.3624, allocations: 154 kB / 0.519 GB, free: 19.58 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001433/0.3625, allocations: 25.12 kB / 0.5191 GB, free: 19.56 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007533/0.3633, allocations: 63.34 kB / 0.5191 GB, free: 19.55 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002404/0.3635, allocations: 104.7 kB / 0.5192 GB, free: 19.54 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.788e-05/0.3636, allocations: 28.97 kB / 0.5192 GB, free: 19.53 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004081/0.364, allocations: 368.3 kB / 0.5196 GB, free: 19.36 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.364, allocations: 1.688 kB / 0.5196 GB, free: 19.36 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007341/0.3648, allocations: 231.3 kB / 0.5198 GB, free: 19.33 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 17 (stank.lcold,stank.Thot,stank.Tcold,H.Tfo,H.Ec,tube.T[1],tube.T[2],tube.T[3],tube.T[4],tube.T[5],tubeNoTank.T[1],tubeNoTank.T[2],tubeNoTank.T[3],tubeNoTank.T[4],tubeNoTank.T[5],HnoTank.Tfo,HnoTank.Ec) * 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 simulation (85): * Single equations (assignments): 85 * 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 Backend phase and start with SimCode phase: time 0.0001784/0.365, allocations: 132.4 kB / 0.5199 GB, free: 19.23 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002567/0.3675, allocations: 1.159 MB / 0.5211 GB, free: 18.84 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.58e-06/0.3676, allocations: 1.219 kB / 0.5211 GB, free: 18.84 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001202/0.3688, allocations: 0.5755 MB / 0.5216 GB, free: 18.65 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008307/0.3696, allocations: 166.8 kB / 0.5218 GB, free: 18.59 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005506/0.3751, allocations: 2.803 MB / 0.5245 GB, free: 16.89 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004017/0.3756, allocations: 0.9585 MB / 0.5255 GB, free: 16.08 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006174/0.3762, allocations: 90.8 kB / 0.5256 GB, free: 16.05 MB / 382.1 MB Notification: Performance of SimCode: time 6.62e-07/0.3762, allocations: 0 / 0.5256 GB, free: 16.05 MB / 382.1 MB Notification: Performance of Templates: time 0.01438/0.3906, allocations: 11.35 MB / 0.5366 GB, free: 7.355 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)