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.006105/0.006105, allocations: 103.9 kB / 15.74 MB, free: 5.953 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.001651/0.001651, allocations: 188.9 kB / 16.67 MB, free: 5.883 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.313/1.313, allocations: 222.9 MB / 240.4 MB, free: 4.156 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2095/0.2095, allocations: 22.36 MB / 312.9 MB, free: 12.43 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001211/0.001211, allocations: 60.47 kB / 437.1 MB, free: 33.8 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09498/0.09621, allocations: 54.97 MB / 492 MB, free: 1.199 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002): time 0.00431/0.1006, allocations: 4.206 MB / 496.2 MB, free: 12.96 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.00172/0.1023, allocations: 1.157 MB / 497.4 MB, free: 11.8 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001805/0.1025, allocations: 4 kB / 497.4 MB, free: 11.8 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002401/0.1027, allocations: 110.9 kB / 497.5 MB, free: 11.69 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004276/0.1032, allocations: 262 kB / 497.8 MB, free: 11.43 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006389/0.1038, allocations: 303.4 kB / 498.1 MB, free: 11.13 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001011/0.1049, allocations: 1.194 MB / 499.3 MB, free: 9.938 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007867/0.1057, allocations: 0.6684 MB / 499.9 MB, free: 9.25 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000472/0.1061, allocations: 486.5 kB / 0.4887 GB, free: 8.773 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006665/0.1068, allocations: 0.6034 MB / 0.4893 GB, free: 8.168 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001413/0.107, allocations: 124 kB / 0.4894 GB, free: 8.047 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001538/0.1071, allocations: 120 kB / 0.4895 GB, free: 7.93 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002709/0.1074, allocations: 327.1 kB / 0.4898 GB, free: 7.609 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004709/0.1079, allocations: 0.5289 MB / 0.4903 GB, free: 7.078 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001093/0.109, allocations: 1.246 MB / 0.4915 GB, free: 5.828 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.751e-06/0.109, allocations: 0 / 0.4915 GB, free: 5.828 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.477e-06/0.109, allocations: 3.938 kB / 0.4915 GB, free: 5.824 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.391e-05/0.109, allocations: 4 kB / 0.4915 GB, free: 5.82 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.002647/0.1117, allocations: 1.255 MB / 0.4928 GB, free: 4.516 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.004e-05/0.1117, allocations: 12.03 kB / 0.4928 GB, free: 4.504 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001779/0.1119, allocations: 95.81 kB / 0.4929 GB, free: 4.41 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006926/0.1126, allocations: 0.5229 MB / 0.4934 GB, free: 3.848 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001616/0.1128, allocations: 159.7 kB / 0.4935 GB, free: 3.676 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000143/0.1129, allocations: 84.36 kB / 0.4936 GB, free: 3.594 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002007/0.115, allocations: 1.007 MB / 0.4946 GB, free: 2.578 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.266e-05/0.115, allocations: 3.906 kB / 0.4946 GB, free: 2.574 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.122e-05/0.1151, allocations: 36 kB / 0.4946 GB, free: 2.539 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.637e-05/0.1151, allocations: 16 kB / 0.4946 GB, free: 2.523 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001973/0.1171, allocations: 0.9056 MB / 0.4955 GB, free: 1.617 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006791/0.1239, allocations: 3.547 MB / 0.499 GB, free: 13.99 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001884/0.1258, allocations: 0.9008 MB / 0.4999 GB, free: 13.09 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001155/0.127, allocations: 0.621 MB / 0.5005 GB, free: 12.46 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.617e-05/0.1271, allocations: 12.64 kB / 0.5005 GB, free: 12.45 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.033e-05/0.1271, allocations: 55.14 kB / 0.5005 GB, free: 12.39 MB / 382.1 MB Notification: Performance of pre-optimization done (n=79): time 2.775e-06/0.1271, allocations: 0 / 0.5005 GB, free: 12.39 MB / 382.1 MB Notification: Performance of matching and sorting (n=83): time 0.007287/0.1344, allocations: 3.017 MB / 0.5035 GB, free: 9.32 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.291e-05/0.1345, allocations: 64.34 kB / 0.5036 GB, free: 9.246 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005814/0.1351, allocations: 0.5028 MB / 0.504 GB, free: 8.734 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.102e-05/0.1351, allocations: 41.7 kB / 0.5041 GB, free: 8.688 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002049/0.1354, allocations: 328.3 kB / 0.5044 GB, free: 8.359 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002286/0.1356, allocations: 299.6 kB / 0.5047 GB, free: 8.062 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002707/0.1359, allocations: 154.5 kB / 0.5048 GB, free: 7.902 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001739/0.1361, allocations: 386.7 kB / 0.5052 GB, free: 7.516 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001135/0.1372, allocations: 0.5356 MB / 0.5057 GB, free: 6.977 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001153/0.1384, allocations: 0.6047 MB / 0.5063 GB, free: 6.344 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009823/0.1482, allocations: 3.038 MB / 0.5093 GB, free: 3.27 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.807e-06/0.1482, allocations: 0 / 0.5093 GB, free: 3.27 MB / 382.1 MB Notification: Performance of matching and sorting (n=112) (initialization): time 0.002607/0.1508, allocations: 1.266 MB / 0.5105 GB, free: 1.996 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.159e-05/0.1509, allocations: 11.98 kB / 0.5105 GB, free: 1.984 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.827e-06/0.1509, allocations: 4 kB / 0.5105 GB, free: 1.98 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.874e-05/0.1509, allocations: 4 kB / 0.5105 GB, free: 1.977 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006636/0.1575, allocations: 1.03 MB / 0.5115 GB, free: 0.9453 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.655e-05/0.1576, allocations: 4 kB / 0.5115 GB, free: 0.9414 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007677/0.1584, allocations: 75.91 kB / 0.5116 GB, free: 0.8672 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.894e-05/0.1584, allocations: 35.98 kB / 0.5117 GB, free: 0.832 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.0004517/0.1589, allocations: 263.9 kB / 0.5119 GB, free: 0.5703 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001271/0.159, allocations: 71.16 kB / 0.512 GB, free: 0.5 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002659/0.1617, allocations: 1.205 MB / 0.5132 GB, free: 15.28 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.416e-06/0.1617, allocations: 12 kB / 0.5132 GB, free: 15.27 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.302e-06/0.1617, allocations: 0 / 0.5132 GB, free: 15.27 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.048e-05/0.1617, allocations: 7.969 kB / 0.5132 GB, free: 15.26 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004294/0.166, allocations: 2.365 MB / 0.5155 GB, free: 12.83 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.672e-06/0.1661, allocations: 7.984 kB / 0.5155 GB, free: 12.82 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006916/0.173, allocations: 1.007 MB / 0.5165 GB, free: 11.81 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.664e-05/0.173, allocations: 8 kB / 0.5165 GB, free: 11.8 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001054/0.1731, allocations: 27.97 kB / 0.5165 GB, free: 11.78 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.703e-06/0.1731, allocations: 8 kB / 0.5165 GB, free: 11.77 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.976e-06/0.1732, allocations: 4 kB / 0.5165 GB, free: 11.77 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003673/0.1768, allocations: 1.807 MB / 0.5183 GB, free: 9.926 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001906/0.177, allocations: 152.3 kB / 0.5184 GB, free: 9.758 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001722/0.1772, allocations: 23.98 kB / 0.5184 GB, free: 9.734 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007369/0.178, allocations: 67.92 kB / 0.5185 GB, free: 9.668 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002342/0.1782, allocations: 100.5 kB / 0.5186 GB, free: 9.57 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.896e-05/0.1783, allocations: 23.98 kB / 0.5186 GB, free: 9.547 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0004133/0.1787, allocations: 366.8 kB / 0.519 GB, free: 9.191 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.91e-07/0.1787, allocations: 0 / 0.519 GB, free: 9.191 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0006531/0.1794, allocations: 236 kB / 0.5192 GB, free: 8.961 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.0001799/0.1796, allocations: 135 kB / 0.5193 GB, free: 8.82 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002589/0.1821, allocations: 1.15 MB / 0.5205 GB, free: 7.672 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.16e-06/0.1822, allocations: 4.188 kB / 0.5205 GB, free: 7.668 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001196/0.1834, allocations: 0.5852 MB / 0.521 GB, free: 7.082 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007869/0.1842, allocations: 172.1 kB / 0.5212 GB, free: 6.918 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005477/0.1897, allocations: 2.747 MB / 0.5239 GB, free: 4.117 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004979/0.1902, allocations: 0.9621 MB / 0.5248 GB, free: 3.125 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0006036/0.1908, allocations: 165.8 kB / 0.525 GB, free: 2.961 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000365/0.1912, allocations: 75.41 kB / 0.525 GB, free: 2.887 MB / 398.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1912, allocations: 7.875 kB / 0.5251 GB, free: 2.879 MB / 398.1 MB Notification: Performance of Templates: time 0.02025/0.2114, allocations: 12.52 MB / 0.5373 GB, free: 6.457 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)