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/AES main/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/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/AES main/package.mo): time 0.08351/0.08351, allocations: 17.69 MB / 33.63 MB, free: 1.789 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001654/0.001654, allocations: 169.9 kB / 38.91 MB, free: 28 kB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.498/1.498, allocations: 205.4 MB / 249.5 MB, free: 2.363 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009491/0.0009491, allocations: 88.95 kB / 302.2 MB, free: 4.426 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004182/0.0004182, allocations: 16 kB / 367 MB, free: 3.613 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2183/0.2187, allocations: 51.98 MB / 418.9 MB, free: 24.39 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1009/0.3197, allocations: 83.06 MB / 0.4902 GB, free: 5.203 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000307/0.32, allocations: 79.95 kB / 0.4903 GB, free: 5.125 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2341/0.5542, allocations: 12.75 MB / 0.5028 GB, free: 80.56 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.334e-06/0.5542, allocations: 0 / 0.5028 GB, free: 80.56 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.373e-05/0.5543, allocations: 15.69 kB / 0.5028 GB, free: 80.56 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 196 * Number of variables: 196 Notification: Performance of Generate backend data structure: time 0.003423/0.5577, allocations: 1.074 MB / 0.5038 GB, free: 79.89 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.418e-05/0.5578, allocations: 9.344 kB / 0.5038 GB, free: 79.89 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005363/0.5583, allocations: 98.09 kB / 0.5039 GB, free: 79.84 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001203/0.5595, allocations: 0.5047 MB / 0.5044 GB, free: 79.47 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002285/0.5598, allocations: 158.2 kB / 0.5046 GB, free: 79.34 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002446/0.5601, allocations: 86.25 kB / 0.5047 GB, free: 79.31 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002284/0.5624, allocations: 1.114 MB / 0.5057 GB, free: 78.9 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.472e-05/0.5624, allocations: 7.375 kB / 0.5057 GB, free: 78.89 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.937e-05/0.5625, allocations: 34.5 kB / 0.5058 GB, free: 78.87 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.181e-05/0.5626, allocations: 19.53 kB / 0.5058 GB, free: 78.87 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002007/0.5646, allocations: 0.8984 MB / 0.5067 GB, free: 78.5 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00665/0.5712, allocations: 3.611 MB / 0.5102 GB, free: 76.07 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001661/0.5729, allocations: 0.9183 MB / 0.5111 GB, free: 75.56 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009594/0.5739, allocations: 0.5401 MB / 0.5116 GB, free: 75.02 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001647/0.5741, allocations: 93.75 kB / 0.5117 GB, free: 74.91 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.244e-05/0.5741, allocations: 39.22 kB / 0.5118 GB, free: 74.87 MB / 362.7 MB Notification: Performance of pre-optimization done (n=76): time 3.166e-06/0.5741, allocations: 4 kB / 0.5118 GB, free: 74.86 MB / 362.7 MB Notification: Performance of matching and sorting (n=80): time 0.006486/0.5806, allocations: 3.038 MB / 0.5147 GB, free: 71.77 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.483e-05/0.5807, allocations: 64.06 kB / 0.5148 GB, free: 71.7 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005249/0.5812, allocations: 0.4942 MB / 0.5153 GB, free: 71.19 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 6.658e-05/0.5813, allocations: 41.7 kB / 0.5153 GB, free: 71.14 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001333/0.5814, allocations: 316.4 kB / 0.5156 GB, free: 70.83 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001687/0.5816, allocations: 299.5 kB / 0.5159 GB, free: 70.54 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.045e-05/0.5817, allocations: 12 kB / 0.5159 GB, free: 70.53 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.568e-05/0.5818, allocations: 390.7 kB / 0.5163 GB, free: 70.14 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000981/0.5828, allocations: 0.5337 MB / 0.5168 GB, free: 69.6 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009819/0.5837, allocations: 0.6055 MB / 0.5174 GB, free: 68.96 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0124/0.5962, allocations: 3.268 MB / 0.5206 GB, free: 65.67 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.161e-06/0.5962, allocations: 0 / 0.5206 GB, free: 65.67 MB / 362.7 MB Notification: Performance of matching and sorting (n=109) (initialization): time 0.002674/0.5989, allocations: 1.274 MB / 0.5218 GB, free: 64.39 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.503e-05/0.599, allocations: 4 kB / 0.5218 GB, free: 64.38 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.399e-05/0.599, allocations: 8.094 kB / 0.5218 GB, free: 64.38 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.935e-05/0.599, allocations: 7.984 kB / 0.5218 GB, free: 64.37 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007762/0.6068, allocations: 1.51 MB / 0.5233 GB, free: 62.86 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006052/0.6074, allocations: 1.188 MB / 0.5245 GB, free: 61.62 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009867/0.6084, allocations: 91.92 kB / 0.5246 GB, free: 61.53 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.522e-05/0.6085, allocations: 35.98 kB / 0.5246 GB, free: 61.5 MB / 362.7 MB Warning: Assuming fixed start value for the following 7 variables: HnoTank.Ec:VARIABLE(fixed = true ) type: Real H.Ec:VARIABLE(fixed = true ) type: Real HnoTank.Tfo:VARIABLE(min = 0.0 start = HnoTank.Tstart unit = "K" fixed = true nominal = 300.0 ) "outlet fluid temp" type: Real H.Tfo:VARIABLE(min = 0.0 start = H.Tstart unit = "K" fixed = true nominal = 300.0 ) "outlet fluid temp" type: Real stank.Tcold:VARIABLE(min = 0.0 start = stank.Tcoldstart unit = "K" fixed = true nominal = 300.0 stateSelect=StateSelect.prefer ) type: Real stank.Thot:VARIABLE(min = 0.0 start = stank.Thotstart unit = "K" fixed = true nominal = 300.0 stateSelect=StateSelect.prefer ) type: Real stank.lcold:VARIABLE(start = stank.lcoldstart unit = "m" fixed = true stateSelect=StateSelect.prefer ) "cold height" 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 (H.ON) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (109): * Single equations (assignments): 107 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005047/0.609, allocations: 239.6 kB / 0.5248 GB, free: 61.26 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001707/0.6092, allocations: 75.09 kB / 0.5249 GB, free: 61.18 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002267/0.6115, allocations: 1.189 MB / 0.5261 GB, free: 59.98 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.895e-06/0.6115, allocations: 8 kB / 0.5261 GB, free: 59.98 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.502e-06/0.6115, allocations: 0 / 0.5261 GB, free: 59.98 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.646e-06/0.6115, allocations: 3.984 kB / 0.5261 GB, free: 59.97 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004291/0.6158, allocations: 2.393 MB / 0.5284 GB, free: 57.53 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.434e-06/0.6159, allocations: 4 kB / 0.5284 GB, free: 57.53 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007667/0.6235, allocations: 1.479 MB / 0.5299 GB, free: 56.05 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.633e-05/0.6236, allocations: 4 kB / 0.5299 GB, free: 56.04 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001138/0.6237, allocations: 23.98 kB / 0.5299 GB, free: 56.02 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000462/0.6242, allocations: 1.187 MB / 0.531 GB, free: 54.79 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.737e-06/0.6242, allocations: 4.031 kB / 0.5311 GB, free: 54.78 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003087/0.6273, allocations: 1.794 MB / 0.5328 GB, free: 52.95 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002333/0.6275, allocations: 140.4 kB / 0.5329 GB, free: 52.8 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001572/0.6277, allocations: 23.98 kB / 0.533 GB, free: 52.77 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008741/0.6286, allocations: 95.84 kB / 0.5331 GB, free: 52.68 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002373/0.6288, allocations: 104.4 kB / 0.5332 GB, free: 52.58 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.16e-05/0.6289, allocations: 27.98 kB / 0.5332 GB, free: 52.55 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0004194/0.6293, allocations: 350.9 kB / 0.5335 GB, free: 52.21 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.71e-07/0.6294, allocations: 4 kB / 0.5335 GB, free: 52.21 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0008097/0.6302, allocations: 228 kB / 0.5337 GB, free: 51.98 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 (H.ON) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (80): * Single equations (assignments): 78 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {1,1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002267/0.6304, allocations: 142.8 kB / 0.5339 GB, free: 51.84 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.004345/0.6348, allocations: 1.39 MB / 0.5352 GB, free: 50.45 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 6.141e-06/0.6348, allocations: 4 kB / 0.5352 GB, free: 50.45 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003101/0.6379, allocations: 0.8239 MB / 0.536 GB, free: 49.62 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001157/0.6391, allocations: 152.3 kB / 0.5362 GB, free: 49.48 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005486/0.6446, allocations: 3.206 MB / 0.5393 GB, free: 46.23 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003605/0.645, allocations: 0.9543 MB / 0.5402 GB, free: 45.24 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0008234/0.6458, allocations: 169.6 kB / 0.5404 GB, free: 45.07 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000337/0.6462, allocations: 71.41 kB / 0.5405 GB, free: 45 MB / 362.7 MB Notification: Performance of SimCode: time 1.673e-06/0.6462, allocations: 0 / 0.5405 GB, free: 45 MB / 362.7 MB Notification: Performance of Templates: time 0.01711/0.6633, allocations: 10.68 MB / 0.5509 GB, free: 34.33 MB / 362.7 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 -abortSlowSimulation -alarm=480 -lv=LOG_STATS -s=dassl -lv LOG_STATS > AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002.pipe 2>&1)