Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001.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_001,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001") translateModel(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.07501/0.07501, allocations: 17.69 MB / 33.64 MB, free: 1.738 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.0009053/0.0009052, allocations: 176.7 kB / 38.91 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.513/1.513, allocations: 205.4 MB / 249.5 MB, free: 2.434 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.0008256/0.0008257, allocations: 103.5 kB / 302.2 MB, free: 4.418 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004272/0.0004272, allocations: 12 kB / 366.9 MB, free: 3.625 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2366/0.237, allocations: 51.99 MB / 418.9 MB, free: 24.38 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1053/0.3424, allocations: 82.81 MB / 0.49 GB, free: 5.445 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002304/0.3426, allocations: 75.95 kB / 0.4901 GB, free: 5.371 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2134/0.5561, allocations: 8.259 MB / 0.4981 GB, free: 80.91 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.423e-06/0.5561, allocations: 0 / 0.4981 GB, free: 80.91 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.169e-05/0.5561, allocations: 9.625 kB / 0.4981 GB, free: 80.91 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: 120 * Number of variables: 120 Notification: Performance of Generate backend data structure: time 0.00207/0.5582, allocations: 0.8013 MB / 0.4989 GB, free: 80.39 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.579e-05/0.5583, allocations: 9.625 kB / 0.4989 GB, free: 80.39 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002652/0.5585, allocations: 61.28 kB / 0.499 GB, free: 80.36 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006993/0.5593, allocations: 382 kB / 0.4993 GB, free: 80.12 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001682/0.5594, allocations: 110.4 kB / 0.4994 GB, free: 80.05 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001559/0.5596, allocations: 49.72 kB / 0.4995 GB, free: 80.05 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001688/0.5613, allocations: 0.7668 MB / 0.5002 GB, free: 79.98 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.157e-05/0.5613, allocations: 3.938 kB / 0.5002 GB, free: 79.98 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.282e-05/0.5614, allocations: 19.31 kB / 0.5003 GB, free: 79.98 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.482e-05/0.5614, allocations: 11.47 kB / 0.5003 GB, free: 79.98 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001503/0.5629, allocations: 0.6184 MB / 0.5009 GB, free: 79.95 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005292/0.5682, allocations: 2.633 MB / 0.5035 GB, free: 78.62 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0013/0.5696, allocations: 0.5501 MB / 0.504 GB, free: 78.41 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008823/0.5705, allocations: 374.3 kB / 0.5043 GB, free: 78.28 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001474/0.5706, allocations: 95.59 kB / 0.5044 GB, free: 78.18 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.41e-05/0.5707, allocations: 36.91 kB / 0.5045 GB, free: 78.14 MB / 362.7 MB Notification: Performance of pre-optimization done (n=44): time 2.645e-06/0.5707, allocations: 0 / 0.5045 GB, free: 78.14 MB / 362.7 MB Notification: Performance of matching and sorting (n=48): time 0.005186/0.5759, allocations: 2.241 MB / 0.5067 GB, free: 77.23 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.265e-05/0.5759, allocations: 58.03 kB / 0.5067 GB, free: 77.17 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003637/0.5763, allocations: 356 kB / 0.5071 GB, free: 76.98 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.784e-05/0.5763, allocations: 29.7 kB / 0.5071 GB, free: 76.95 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001228/0.5765, allocations: 225.3 kB / 0.5073 GB, free: 76.77 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001295/0.5766, allocations: 171.9 kB / 0.5075 GB, free: 76.63 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.57e-05/0.5767, allocations: 11.97 kB / 0.5075 GB, free: 76.62 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001153/0.5768, allocations: 362.5 kB / 0.5078 GB, free: 76.29 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007767/0.5776, allocations: 379.1 kB / 0.5082 GB, free: 76.17 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008238/0.5784, allocations: 420.2 kB / 0.5086 GB, free: 75.99 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007064/0.5855, allocations: 2.125 MB / 0.5107 GB, free: 75.44 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.987e-06/0.5855, allocations: 0 / 0.5107 GB, free: 75.44 MB / 362.7 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001748/0.5873, allocations: 0.8723 MB / 0.5115 GB, free: 74.68 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.062e-05/0.5873, allocations: 7.938 kB / 0.5115 GB, free: 74.68 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.017e-06/0.5873, allocations: 4 kB / 0.5115 GB, free: 74.67 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.012e-05/0.5874, allocations: 4 kB / 0.5115 GB, free: 74.67 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006139/0.5935, allocations: 1.288 MB / 0.5128 GB, free: 73.38 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003623/0.5939, allocations: 0.5821 MB / 0.5134 GB, free: 72.77 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007286/0.5947, allocations: 72.06 kB / 0.5134 GB, free: 72.7 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.302e-05/0.5948, allocations: 23.98 kB / 0.5134 GB, free: 72.68 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: 7 * 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 (64): * Single equations (assignments): 63 * 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.0004441/0.5952, allocations: 204.7 kB / 0.5136 GB, free: 72.48 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001164/0.5953, allocations: 44.38 kB / 0.5137 GB, free: 72.43 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001723/0.5971, allocations: 0.8445 MB / 0.5145 GB, free: 71.58 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.424e-06/0.5971, allocations: 4 kB / 0.5145 GB, free: 71.57 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.871e-06/0.5971, allocations: 0 / 0.5145 GB, free: 71.57 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.925e-06/0.5971, allocations: 7.172 kB / 0.5145 GB, free: 71.57 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00313/0.6003, allocations: 1.78 MB / 0.5163 GB, free: 69.74 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.807e-06/0.6003, allocations: 0 / 0.5163 GB, free: 69.74 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006065/0.6064, allocations: 1.268 MB / 0.5175 GB, free: 68.47 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.182e-05/0.6064, allocations: 4 kB / 0.5175 GB, free: 68.47 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.013e-05/0.6065, allocations: 15.92 kB / 0.5175 GB, free: 68.45 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002684/0.6067, allocations: 0.5937 MB / 0.5181 GB, free: 67.84 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.547e-06/0.6068, allocations: 11.97 kB / 0.5181 GB, free: 67.82 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002332/0.6091, allocations: 1.285 MB / 0.5194 GB, free: 66.52 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001897/0.6093, allocations: 120.6 kB / 0.5195 GB, free: 66.39 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001045/0.6094, allocations: 8 kB / 0.5195 GB, free: 66.38 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005188/0.6099, allocations: 67.94 kB / 0.5195 GB, free: 66.31 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002115/0.6102, allocations: 72.3 kB / 0.5196 GB, free: 66.24 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.685e-05/0.6102, allocations: 19.98 kB / 0.5196 GB, free: 66.22 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002609/0.6105, allocations: 251.2 kB / 0.5199 GB, free: 65.98 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.6105, allocations: 0 / 0.5199 GB, free: 65.98 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005219/0.611, allocations: 144 kB / 0.52 GB, free: 65.84 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (48): * Single equations (assignments): 47 * 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.000176/0.6112, allocations: 123.2 kB / 0.5201 GB, free: 65.71 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002621/0.6138, allocations: 0.9194 MB / 0.521 GB, free: 64.79 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.617e-06/0.6139, allocations: 0 / 0.521 GB, free: 64.79 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001717/0.6156, allocations: 0.5374 MB / 0.5215 GB, free: 64.25 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006181/0.6162, allocations: 105.4 kB / 0.5217 GB, free: 64.14 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00377/0.62, allocations: 2.186 MB / 0.5238 GB, free: 61.94 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002429/0.6203, allocations: 0.8437 MB / 0.5246 GB, free: 61.07 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0004499/0.6207, allocations: 92.12 kB / 0.5247 GB, free: 60.97 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002033/0.6209, allocations: 51.41 kB / 0.5247 GB, free: 60.92 MB / 362.7 MB Notification: Performance of SimCode: time 4e-07/0.6209, allocations: 0 / 0.5247 GB, free: 60.92 MB / 362.7 MB Notification: Performance of Templates: time 0.01056/0.6315, allocations: 7.129 MB / 0.5317 GB, free: 53.8 MB / 362.7 MB make -j1 -f AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001.makefile (rm -f AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001.pipe ; mkfifo AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001.pipe >> ../files/AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001.sim & ./AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001 -abortSlowSimulation -alarm=480 -lv=LOG_STATS -s=dassl -lv LOG_STATS > AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001.pipe 2>&1)