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/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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007397/0.007397, allocations: 101.5 kB / 15.73 MB, free: 6.035 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.001772/0.001772, allocations: 192.8 kB / 16.67 MB, free: 5.973 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.376/1.376, allocations: 222.9 MB / 240.4 MB, free: 4.301 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2128/0.2128, allocations: 22.34 MB / 312.9 MB, free: 12.41 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002153/0.002153, allocations: 62.03 kB / 437.1 MB, free: 33.78 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1267/0.1288, allocations: 54.96 MB / 492 MB, free: 1.238 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001): time 0.004219/0.1331, allocations: 3.19 MB / 495.2 MB, free: 14.02 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002039/0.1352, allocations: 0.9002 MB / 496.1 MB, free: 13.12 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003252/0.1355, allocations: 7.938 kB / 496.1 MB, free: 13.11 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002851/0.1358, allocations: 71.34 kB / 496.2 MB, free: 13.04 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004889/0.1363, allocations: 158.7 kB / 496.3 MB, free: 12.88 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006768/0.137, allocations: 203.6 kB / 496.5 MB, free: 12.68 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009082/0.1379, allocations: 0.7484 MB / 497.3 MB, free: 11.93 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007259/0.1387, allocations: 445.7 kB / 497.7 MB, free: 11.49 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005067/0.1392, allocations: 303.1 kB / 498 MB, free: 11.2 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006989/0.1399, allocations: 390.7 kB / 498.4 MB, free: 10.81 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001736/0.1401, allocations: 76 kB / 498.5 MB, free: 10.74 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000174/0.1403, allocations: 80 kB / 498.5 MB, free: 10.66 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000186/0.1405, allocations: 203.5 kB / 498.7 MB, free: 10.46 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003674/0.1408, allocations: 342.5 kB / 499.1 MB, free: 10.12 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008882/0.1417, allocations: 0.7905 MB / 499.9 MB, free: 9.332 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.062e-06/0.1418, allocations: 0 / 499.9 MB, free: 9.332 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.923e-06/0.1418, allocations: 0 / 499.9 MB, free: 9.332 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.49e-05/0.1418, allocations: 0 / 499.9 MB, free: 9.332 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: 122 * Number of variables: 122 Notification: Performance of Generate backend data structure: time 0.002327/0.1441, allocations: 0.9004 MB / 0.489 GB, free: 8.383 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.546e-05/0.1442, allocations: 11.97 kB / 0.489 GB, free: 8.371 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001562/0.1444, allocations: 64.19 kB / 0.4891 GB, free: 8.309 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005908/0.145, allocations: 384.2 kB / 0.4895 GB, free: 7.898 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001505/0.1451, allocations: 113 kB / 0.4896 GB, free: 7.777 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001029/0.1452, allocations: 56.27 kB / 0.4896 GB, free: 7.723 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001516/0.1468, allocations: 0.6858 MB / 0.4903 GB, free: 7.031 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.903e-05/0.1468, allocations: 4 kB / 0.4903 GB, free: 7.027 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.35e-05/0.1469, allocations: 20 kB / 0.4903 GB, free: 7.008 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.304e-05/0.1469, allocations: 12 kB / 0.4903 GB, free: 6.996 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001411/0.1483, allocations: 0.5972 MB / 0.4909 GB, free: 6.398 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005465/0.1538, allocations: 2.571 MB / 0.4934 GB, free: 3.754 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00122/0.155, allocations: 0.5368 MB / 0.494 GB, free: 3.211 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008424/0.1559, allocations: 399.1 kB / 0.4943 GB, free: 2.82 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.862e-05/0.1559, allocations: 8.469 kB / 0.4943 GB, free: 2.812 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.817e-05/0.156, allocations: 42.88 kB / 0.4944 GB, free: 2.762 MB / 366.1 MB Notification: Performance of pre-optimization done (n=46): time 2.124e-06/0.156, allocations: 0 / 0.4944 GB, free: 2.762 MB / 366.1 MB Notification: Performance of matching and sorting (n=50): time 0.005427/0.1614, allocations: 2.157 MB / 0.4965 GB, free: 0.5547 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.702e-05/0.1615, allocations: 59.84 kB / 0.4966 GB, free: 496 kB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003764/0.1618, allocations: 361.6 kB / 0.4969 GB, free: 124 kB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.425e-05/0.1619, allocations: 37.7 kB / 0.4969 GB, free: 80 kB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001663/0.1621, allocations: 228.4 kB / 0.4971 GB, free: 15.85 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001441/0.1622, allocations: 181.4 kB / 0.4973 GB, free: 15.67 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001817/0.1624, allocations: 90.23 kB / 0.4974 GB, free: 15.58 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001334/0.1626, allocations: 354.8 kB / 0.4977 GB, free: 15.22 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008428/0.1634, allocations: 370.7 kB / 0.4981 GB, free: 14.86 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008225/0.1642, allocations: 415.9 kB / 0.4985 GB, free: 14.43 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006538/0.1708, allocations: 1.977 MB / 0.5004 GB, free: 12.43 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.181e-06/0.1708, allocations: 4 kB / 0.5004 GB, free: 12.42 MB / 382.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001899/0.1727, allocations: 0.8379 MB / 0.5013 GB, free: 11.57 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.237e-05/0.1728, allocations: 11.94 kB / 0.5013 GB, free: 11.56 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.125e-06/0.1728, allocations: 0 / 0.5013 GB, free: 11.56 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.117e-05/0.1728, allocations: 4.188 kB / 0.5013 GB, free: 11.56 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005694/0.1785, allocations: 0.9011 MB / 0.5021 GB, free: 10.66 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.891e-05/0.1786, allocations: 4 kB / 0.5021 GB, free: 10.65 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006322/0.1792, allocations: 55.94 kB / 0.5022 GB, free: 10.6 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.428e-05/0.1793, allocations: 23.98 kB / 0.5022 GB, free: 10.57 MB / 382.1 MB Warning: Assuming fixed start value for the following 5 variables: H.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 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 (66): * Single equations (assignments): 66 * 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.0003924/0.1797, allocations: 207.2 kB / 0.5024 GB, free: 10.36 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.887e-05/0.1798, allocations: 43.47 kB / 0.5025 GB, free: 10.32 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001836/0.1816, allocations: 0.8133 MB / 0.5033 GB, free: 9.5 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.889e-06/0.1816, allocations: 4 kB / 0.5033 GB, free: 9.496 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.284e-06/0.1816, allocations: 8 kB / 0.5033 GB, free: 9.488 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.901e-06/0.1817, allocations: 0 / 0.5033 GB, free: 9.488 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003426/0.1851, allocations: 1.736 MB / 0.505 GB, free: 7.688 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.419e-06/0.1851, allocations: 4 kB / 0.505 GB, free: 7.684 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005585/0.1907, allocations: 0.8855 MB / 0.5058 GB, free: 6.797 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.578e-05/0.1907, allocations: 4 kB / 0.5058 GB, free: 6.793 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.813e-05/0.1908, allocations: 19.97 kB / 0.5059 GB, free: 6.773 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.442e-06/0.1908, allocations: 4 kB / 0.5059 GB, free: 6.77 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/0.1908, allocations: 4 kB / 0.5059 GB, free: 6.766 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002673/0.1935, allocations: 1.258 MB / 0.5071 GB, free: 5.484 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001795/0.1937, allocations: 120.5 kB / 0.5072 GB, free: 5.348 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001068/0.1938, allocations: 12 kB / 0.5072 GB, free: 5.336 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005303/0.1944, allocations: 47.94 kB / 0.5073 GB, free: 5.289 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001801/0.1945, allocations: 72.33 kB / 0.5073 GB, free: 5.219 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.516e-05/0.1946, allocations: 15.98 kB / 0.5073 GB, free: 5.203 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002943/0.1949, allocations: 267.1 kB / 0.5076 GB, free: 4.945 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1949, allocations: 0 / 0.5076 GB, free: 4.945 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005997/0.1955, allocations: 140 kB / 0.5077 GB, free: 4.809 MB / 382.1 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 (51): * Single equations (assignments): 51 * 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.0001753/0.1957, allocations: 113.5 kB / 0.5078 GB, free: 4.691 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001908/0.1976, allocations: 0.7867 MB / 0.5086 GB, free: 3.902 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/0.1976, allocations: 0 / 0.5086 GB, free: 3.902 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009396/0.1986, allocations: 406.3 kB / 0.509 GB, free: 3.508 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008128/0.1994, allocations: 108.1 kB / 0.5091 GB, free: 3.402 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004489/0.2039, allocations: 1.852 MB / 0.5109 GB, free: 1.523 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004527/0.2044, allocations: 0.8509 MB / 0.5117 GB, free: 0.6445 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004408/0.2048, allocations: 100.3 kB / 0.5118 GB, free: 0.543 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002537/0.2051, allocations: 47.42 kB / 0.5119 GB, free: 0.4961 MB / 382.1 MB Notification: Performance of SimCode: time 9.02e-07/0.2051, allocations: 0 / 0.5119 GB, free: 0.4961 MB / 382.1 MB Notification: Performance of Templates: time 0.01603/0.2211, allocations: 8.366 MB / 0.5201 GB, free: 8.195 MB / 398.1 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 -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001.pipe 2>&1)