Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003.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_003,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003") translateModel(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.07882/0.07882, allocations: 17.69 MB / 33.64 MB, free: 1.734 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.0009374/0.0009374, allocations: 178.7 kB / 38.92 MB, free: 8 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.425/1.425, allocations: 205.4 MB / 249.5 MB, free: 2.441 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.0009543/0.0009543, allocations: 107.5 kB / 302.2 MB, free: 4.418 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006571/0.0006573, allocations: 16 kB / 366.9 MB, free: 3.617 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2883/0.2889, allocations: 51.98 MB / 418.9 MB, free: 24.39 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1061/0.3951, allocations: 82.88 MB / 0.49 GB, free: 5.391 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002666/0.3954, allocations: 79.95 kB / 0.4901 GB, free: 5.312 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3394/0.7348, allocations: 8.313 MB / 0.4982 GB, free: 80.96 MB / 362.7 MB Notification: Performance of FrontEnd: time 4.498e-06/0.7349, allocations: 0.6562 kB / 0.4982 GB, free: 80.96 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.815e-05/0.7349, allocations: 10.16 kB / 0.4982 GB, free: 80.96 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: 121 * Number of variables: 121 Notification: Performance of Generate backend data structure: time 0.002281/0.7372, allocations: 0.7964 MB / 0.499 GB, free: 80.44 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.986e-05/0.7373, allocations: 9.625 kB / 0.499 GB, free: 80.44 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001727/0.7375, allocations: 61.28 kB / 0.4991 GB, free: 80.41 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007153/0.7382, allocations: 384.1 kB / 0.4995 GB, free: 80.17 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002012/0.7384, allocations: 109.1 kB / 0.4996 GB, free: 80.11 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001518/0.7386, allocations: 55.02 kB / 0.4996 GB, free: 80.11 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002365/0.741, allocations: 0.766 MB / 0.5004 GB, free: 80.04 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.735e-05/0.741, allocations: 7.125 kB / 0.5004 GB, free: 80.04 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.961e-05/0.7411, allocations: 19.72 kB / 0.5004 GB, free: 80.04 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.207e-05/0.7411, allocations: 15.83 kB / 0.5004 GB, free: 80.04 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002057/0.7432, allocations: 0.619 MB / 0.501 GB, free: 79.96 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006972/0.7502, allocations: 2.622 MB / 0.5036 GB, free: 78.61 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001932/0.7522, allocations: 0.5669 MB / 0.5041 GB, free: 78.39 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001494/0.7537, allocations: 375.5 kB / 0.5045 GB, free: 78.27 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002201/0.7539, allocations: 95.09 kB / 0.5046 GB, free: 78.17 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.378e-05/0.754, allocations: 37.53 kB / 0.5046 GB, free: 78.12 MB / 362.7 MB Notification: Performance of pre-optimization done (n=46): time 5.009e-06/0.754, allocations: 0 / 0.5046 GB, free: 78.12 MB / 362.7 MB Notification: Performance of matching and sorting (n=50): time 0.00759/0.7616, allocations: 2.27 MB / 0.5068 GB, free: 77.21 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.297e-05/0.7617, allocations: 61.69 kB / 0.5069 GB, free: 77.15 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005325/0.7623, allocations: 350.5 kB / 0.5072 GB, free: 76.96 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.946e-05/0.7623, allocations: 43.11 kB / 0.5073 GB, free: 76.92 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001436/0.7625, allocations: 220 kB / 0.5075 GB, free: 76.73 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001725/0.7627, allocations: 177.7 kB / 0.5076 GB, free: 76.6 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.526e-05/0.7627, allocations: 11.19 kB / 0.5077 GB, free: 76.59 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000104/0.7628, allocations: 355.6 kB / 0.508 GB, free: 76.26 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001083/0.7639, allocations: 392.6 kB / 0.5084 GB, free: 76.13 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001126/0.7651, allocations: 428 kB / 0.5088 GB, free: 75.96 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009465/0.7746, allocations: 2.138 MB / 0.5109 GB, free: 75.39 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.246e-06/0.7746, allocations: 0 / 0.5109 GB, free: 75.39 MB / 362.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001731/0.7763, allocations: 0.8698 MB / 0.5117 GB, free: 74.52 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.717e-05/0.7764, allocations: 11.94 kB / 0.5117 GB, free: 74.51 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.076e-05/0.7764, allocations: 8.078 kB / 0.5117 GB, free: 74.5 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.37e-05/0.7764, allocations: 4 kB / 0.5117 GB, free: 74.5 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006504/0.7829, allocations: 1.284 MB / 0.513 GB, free: 73.21 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004309/0.7834, allocations: 0.5976 MB / 0.5136 GB, free: 72.59 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007518/0.7842, allocations: 80.06 kB / 0.5136 GB, free: 72.51 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.637e-05/0.7842, allocations: 19.98 kB / 0.5137 GB, free: 72.49 MB / 362.7 MB Warning: Assuming fixed start value for the following 5 variables: H.Ec:VARIABLE(fixed = true ) 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: 6 * 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 (65): * Single equations (assignments): 64 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * 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: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004712/0.7847, allocations: 200.9 kB / 0.5139 GB, free: 72.29 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.846e-05/0.7848, allocations: 39.53 kB / 0.5139 GB, free: 72.25 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001696/0.7865, allocations: 0.8635 MB / 0.5147 GB, free: 71.39 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.105e-06/0.7865, allocations: 4 kB / 0.5147 GB, free: 71.38 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.392e-06/0.7865, allocations: 0 / 0.5147 GB, free: 71.38 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.967e-06/0.7866, allocations: 3.984 kB / 0.5147 GB, free: 71.38 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002996/0.7896, allocations: 1.765 MB / 0.5165 GB, free: 69.56 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.639e-06/0.7896, allocations: 0 / 0.5165 GB, free: 69.56 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006331/0.7959, allocations: 1.288 MB / 0.5177 GB, free: 68.27 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.095e-05/0.796, allocations: 0 / 0.5177 GB, free: 68.27 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.564e-05/0.7961, allocations: 19.98 kB / 0.5177 GB, free: 68.25 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00028/0.7963, allocations: 0.5977 MB / 0.5183 GB, free: 67.63 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.844e-06/0.7964, allocations: 3.938 kB / 0.5183 GB, free: 67.63 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002373/0.7987, allocations: 1.3 MB / 0.5196 GB, free: 66.3 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001804/0.7989, allocations: 124.5 kB / 0.5197 GB, free: 66.16 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.024e-05/0.799, allocations: 12 kB / 0.5197 GB, free: 66.15 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005053/0.7995, allocations: 71.92 kB / 0.5198 GB, free: 66.08 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001775/0.7997, allocations: 72.31 kB / 0.5199 GB, free: 66.01 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.044e-05/0.7998, allocations: 19.98 kB / 0.5199 GB, free: 65.99 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002424/0.8, allocations: 251.2 kB / 0.5201 GB, free: 65.75 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.8, allocations: 0 / 0.5201 GB, free: 65.75 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005304/0.8006, allocations: 144 kB / 0.5203 GB, free: 65.61 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 10 (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]) * 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 (50): * Single equations (assignments): 49 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * 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: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002183/0.8008, allocations: 129.7 kB / 0.5204 GB, free: 65.47 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002743/0.8035, allocations: 0.9349 MB / 0.5213 GB, free: 64.54 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.747e-06/0.8036, allocations: 0 / 0.5213 GB, free: 64.54 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001839/0.8054, allocations: 0.5452 MB / 0.5218 GB, free: 64 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006547/0.8061, allocations: 107.2 kB / 0.5219 GB, free: 63.89 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003646/0.8097, allocations: 2.098 MB / 0.524 GB, free: 61.77 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002735/0.81, allocations: 0.8474 MB / 0.5248 GB, free: 60.9 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0004766/0.8105, allocations: 100.2 kB / 0.5249 GB, free: 60.8 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001978/0.8107, allocations: 39.42 kB / 0.5249 GB, free: 60.76 MB / 362.7 MB Notification: Performance of SimCode: time 5.21e-07/0.8107, allocations: 4 kB / 0.525 GB, free: 60.75 MB / 362.7 MB Notification: Performance of Templates: time 0.01142/0.8221, allocations: 7.183 MB / 0.532 GB, free: 53.59 MB / 362.7 MB make -j1 -f AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003.makefile (rm -f AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003.pipe ; mkfifo AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003.pipe >> ../files/AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003.sim & ./AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003 -abortSlowSimulation -alarm=480 -lv=LOG_STATS -s=dassl -lv LOG_STATS > AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003.pipe 2>&1)