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.005149/0.005149, allocations: 98.98 kB / 15.73 MB, free: 6.449 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.001204/0.001204, allocations: 197 kB / 16.67 MB, free: 6.348 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.375/1.375, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2018/0.2018, allocations: 22.38 MB / 312.9 MB, free: 12.52 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002239/0.00224, allocations: 62.16 kB / 437.1 MB, free: 33.73 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1219/0.1241, allocations: 54.97 MB / 492.1 MB, free: 1.184 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002): time 0.004721/0.1289, allocations: 4.202 MB / 496.3 MB, free: 12.95 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002345/0.1313, allocations: 1.154 MB / 497.4 MB, free: 11.79 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000457/0.1318, allocations: 7.938 kB / 497.4 MB, free: 11.79 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003614/0.1321, allocations: 106.9 kB / 497.5 MB, free: 11.68 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007183/0.1329, allocations: 269.9 kB / 497.8 MB, free: 11.41 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008115/0.1337, allocations: 295.5 kB / 498.1 MB, free: 11.12 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001294/0.135, allocations: 1.194 MB / 499.3 MB, free: 9.93 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001012/0.136, allocations: 0.6801 MB / 499.9 MB, free: 9.23 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005319/0.1366, allocations: 474.6 kB / 0.4887 GB, free: 8.766 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006594/0.1372, allocations: 0.6111 MB / 0.4893 GB, free: 8.152 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001564/0.1374, allocations: 120 kB / 0.4894 GB, free: 8.035 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001763/0.1376, allocations: 120 kB / 0.4895 GB, free: 7.918 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002553/0.1378, allocations: 327.1 kB / 0.4898 GB, free: 7.598 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004393/0.1383, allocations: 0.525 MB / 0.4903 GB, free: 7.07 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00102/0.1393, allocations: 1.249 MB / 0.4916 GB, free: 5.816 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.501e-06/0.1393, allocations: 0 / 0.4916 GB, free: 5.816 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.884e-06/0.1393, allocations: 0 / 0.4916 GB, free: 5.816 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.377e-05/0.1394, allocations: 4 kB / 0.4916 GB, free: 5.812 MB / 366.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.002487/0.1419, allocations: 1.278 MB / 0.4928 GB, free: 4.484 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.763e-05/0.1419, allocations: 16.02 kB / 0.4928 GB, free: 4.469 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001724/0.1421, allocations: 100.3 kB / 0.4929 GB, free: 4.371 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000678/0.1428, allocations: 0.5115 MB / 0.4934 GB, free: 3.82 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001557/0.1429, allocations: 167.6 kB / 0.4936 GB, free: 3.641 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000132/0.1431, allocations: 84.33 kB / 0.4937 GB, free: 3.559 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001965/0.145, allocations: 1.011 MB / 0.4946 GB, free: 2.539 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.35e-05/0.1451, allocations: 4 kB / 0.4946 GB, free: 2.535 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.547e-05/0.1452, allocations: 32 kB / 0.4947 GB, free: 2.504 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.687e-05/0.1452, allocations: 16 kB / 0.4947 GB, free: 2.488 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001923/0.1471, allocations: 0.9017 MB / 0.4956 GB, free: 1.586 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006457/0.1536, allocations: 3.559 MB / 0.499 GB, free: 13.95 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001819/0.1554, allocations: 0.9124 MB / 0.4999 GB, free: 13.03 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001177/0.1566, allocations: 0.621 MB / 0.5005 GB, free: 12.41 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.22e-05/0.1567, allocations: 16.64 kB / 0.5006 GB, free: 12.39 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.591e-05/0.1567, allocations: 43.16 kB / 0.5006 GB, free: 12.34 MB / 382.1 MB Notification: Performance of pre-optimization done (n=79): time 2.736e-06/0.1568, allocations: 0 / 0.5006 GB, free: 12.34 MB / 382.1 MB Notification: Performance of matching and sorting (n=83): time 0.00724/0.164, allocations: 3.033 MB / 0.5036 GB, free: 9.258 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.03e-05/0.1641, allocations: 60.41 kB / 0.5036 GB, free: 9.188 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006639/0.1648, allocations: 0.5105 MB / 0.5041 GB, free: 8.668 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.2e-05/0.1648, allocations: 45.69 kB / 0.5042 GB, free: 8.617 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000238/0.1651, allocations: 332.9 kB / 0.5045 GB, free: 8.285 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000256/0.1654, allocations: 321.2 kB / 0.5048 GB, free: 7.969 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003071/0.1657, allocations: 150.6 kB / 0.5049 GB, free: 7.812 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001834/0.1659, allocations: 382.7 kB / 0.5053 GB, free: 7.43 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001122/0.167, allocations: 0.5356 MB / 0.5058 GB, free: 6.891 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001153/0.1682, allocations: 0.6086 MB / 0.5064 GB, free: 6.254 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009782/0.1779, allocations: 3.042 MB / 0.5094 GB, free: 3.176 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.178, allocations: 0 / 0.5094 GB, free: 3.176 MB / 382.1 MB Notification: Performance of matching and sorting (n=112) (initialization): time 0.002614/0.1806, allocations: 1.27 MB / 0.5106 GB, free: 1.898 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.28e-05/0.1806, allocations: 8 kB / 0.5106 GB, free: 1.891 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.211e-05/0.1806, allocations: 4 kB / 0.5106 GB, free: 1.887 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.293e-05/0.1807, allocations: 7.938 kB / 0.5106 GB, free: 1.879 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006388/0.1871, allocations: 1.026 MB / 0.5116 GB, free: 0.8516 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.774e-05/0.1871, allocations: 7.938 kB / 0.5117 GB, free: 0.8438 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007868/0.1879, allocations: 75.91 kB / 0.5117 GB, free: 0.7695 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000101/0.188, allocations: 35.98 kB / 0.5118 GB, free: 0.7344 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.0004896/0.1885, allocations: 252.7 kB / 0.512 GB, free: 492 kB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001583/0.1887, allocations: 75.53 kB / 0.5121 GB, free: 416 kB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002673/0.1913, allocations: 1.19 MB / 0.5132 GB, free: 15.2 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.064e-05/0.1914, allocations: 16 kB / 0.5132 GB, free: 15.18 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.023e-06/0.1914, allocations: 0 / 0.5132 GB, free: 15.18 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.808e-06/0.1914, allocations: 3.984 kB / 0.5133 GB, free: 15.18 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004432/0.1958, allocations: 2.376 MB / 0.5156 GB, free: 12.74 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.662e-06/0.1959, allocations: 4 kB / 0.5156 GB, free: 12.73 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006604/0.2025, allocations: 1.003 MB / 0.5166 GB, free: 11.73 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.661e-05/0.2025, allocations: 8 kB / 0.5166 GB, free: 11.72 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001049/0.2026, allocations: 27.98 kB / 0.5166 GB, free: 11.7 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.506e-06/0.2026, allocations: 8 kB / 0.5166 GB, free: 11.69 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.609e-06/0.2026, allocations: 4 kB / 0.5166 GB, free: 11.68 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003671/0.2063, allocations: 1.815 MB / 0.5184 GB, free: 9.836 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000214/0.2066, allocations: 152.6 kB / 0.5185 GB, free: 9.668 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001532/0.2067, allocations: 23.98 kB / 0.5185 GB, free: 9.645 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007328/0.2075, allocations: 67.92 kB / 0.5186 GB, free: 9.578 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002297/0.2077, allocations: 100.5 kB / 0.5187 GB, free: 9.48 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.642e-05/0.2078, allocations: 27.98 kB / 0.5187 GB, free: 9.453 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0004321/0.2082, allocations: 370.8 kB / 0.5191 GB, free: 9.094 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2082, allocations: 0 / 0.5191 GB, free: 9.094 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000685/0.2089, allocations: 232 kB / 0.5193 GB, free: 8.867 MB / 398.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.0002181/0.2091, allocations: 135 kB / 0.5194 GB, free: 8.727 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002569/0.2117, allocations: 1.154 MB / 0.5206 GB, free: 7.574 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.508e-06/0.2117, allocations: 0 / 0.5206 GB, free: 7.574 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001235/0.213, allocations: 0.5821 MB / 0.5211 GB, free: 6.992 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000827/0.2138, allocations: 176.6 kB / 0.5213 GB, free: 6.824 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005733/0.2196, allocations: 2.78 MB / 0.524 GB, free: 3.988 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005406/0.2201, allocations: 0.9621 MB / 0.525 GB, free: 2.996 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0007121/0.2208, allocations: 165.9 kB / 0.5251 GB, free: 2.832 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003656/0.2212, allocations: 75.41 kB / 0.5252 GB, free: 2.758 MB / 398.1 MB Notification: Performance of SimCode: time 7.21e-07/0.2212, allocations: 0 / 0.5252 GB, free: 2.758 MB / 398.1 MB Notification: Performance of Templates: time 0.0205/0.2417, allocations: 12.54 MB / 0.5374 GB, free: 6.32 MB / 414.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)