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.001088/0.001088, allocations: 117 kB / 16.37 MB, free: 6.012 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.001118/0.001118, allocations: 188.9 kB / 17.3 MB, free: 5.613 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.345/1.345, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09196/0.09196, allocations: 22.34 MB / 313.5 MB, free: 8.902 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001216/0.001216, allocations: 62.16 kB / 382.2 MB, free: 41.09 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.092/0.09323, allocations: 54.98 MB / 437.2 MB, free: 12.28 MB / 318.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002): time 0.005303/0.09858, allocations: 4.189 MB / 441.4 MB, free: 8.059 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002339/0.101, allocations: 1.169 MB / 442.6 MB, free: 6.883 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002912/0.1013, allocations: 4 kB / 442.6 MB, free: 6.879 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002954/0.1016, allocations: 106.9 kB / 442.7 MB, free: 6.773 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005626/0.1022, allocations: 261.9 kB / 442.9 MB, free: 6.516 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007733/0.103, allocations: 299.5 kB / 443.2 MB, free: 6.223 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001115/0.1041, allocations: 1.19 MB / 444.4 MB, free: 5.031 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008979/0.105, allocations: 0.684 MB / 445.1 MB, free: 4.336 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005185/0.1056, allocations: 474.6 kB / 445.6 MB, free: 3.871 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007166/0.1063, allocations: 0.6034 MB / 446.2 MB, free: 3.266 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001548/0.1064, allocations: 124 kB / 446.3 MB, free: 3.145 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00017/0.1066, allocations: 120 kB / 446.4 MB, free: 3.027 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000274/0.1069, allocations: 327.1 kB / 446.7 MB, free: 2.707 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004613/0.1074, allocations: 0.525 MB / 447.3 MB, free: 2.18 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009937/0.1084, allocations: 1.246 MB / 448.5 MB, free: 0.9297 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.658e-06/0.1084, allocations: 0 / 448.5 MB, free: 0.9297 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.432e-06/0.1084, allocations: 4 kB / 448.5 MB, free: 0.9258 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.121e-05/0.1084, allocations: 0 / 448.5 MB, free: 0.9258 MB / 318.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.002695/0.1111, allocations: 1.267 MB / 449.8 MB, free: 15.61 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.165e-05/0.1112, allocations: 12.03 kB / 449.8 MB, free: 15.59 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001788/0.1114, allocations: 95.81 kB / 449.9 MB, free: 15.5 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008483/0.1122, allocations: 0.5035 MB / 450.4 MB, free: 14.96 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001627/0.1124, allocations: 171.5 kB / 450.5 MB, free: 14.77 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001746/0.1126, allocations: 84.28 kB / 450.6 MB, free: 14.69 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002072/0.1147, allocations: 1.015 MB / 451.6 MB, free: 13.66 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.541e-05/0.1147, allocations: 0 / 451.6 MB, free: 13.66 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.003e-05/0.1148, allocations: 32 kB / 451.7 MB, free: 13.63 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.518e-05/0.1148, allocations: 16 kB / 451.7 MB, free: 13.61 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002013/0.1168, allocations: 0.8978 MB / 452.6 MB, free: 12.72 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007047/0.1239, allocations: 3.551 MB / 456.1 MB, free: 9.086 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001874/0.1258, allocations: 0.9046 MB / 457 MB, free: 8.172 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001209/0.127, allocations: 0.6235 MB / 457.7 MB, free: 7.547 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.464e-05/0.1271, allocations: 12.64 kB / 457.7 MB, free: 7.531 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.128e-05/0.1271, allocations: 51.19 kB / 457.7 MB, free: 7.473 MB / 334.1 MB Notification: Performance of pre-optimization done (n=79): time 2.725e-06/0.1272, allocations: 4 kB / 457.7 MB, free: 7.469 MB / 334.1 MB Notification: Performance of matching and sorting (n=83): time 0.007201/0.1344, allocations: 3.02 MB / 460.8 MB, free: 4.395 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.754e-05/0.1344, allocations: 60.41 kB / 460.8 MB, free: 4.324 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006156/0.1351, allocations: 0.5144 MB / 461.3 MB, free: 3.801 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.908e-05/0.1351, allocations: 39.12 kB / 461.4 MB, free: 3.758 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002049/0.1353, allocations: 320.4 kB / 461.7 MB, free: 3.438 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000232/0.1356, allocations: 303.6 kB / 462 MB, free: 3.137 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002839/0.1359, allocations: 154.5 kB / 462.1 MB, free: 2.98 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000143/0.136, allocations: 382.7 kB / 462.5 MB, free: 2.598 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001127/0.1372, allocations: 0.5395 MB / 463 MB, free: 2.055 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00115/0.1383, allocations: 0.6047 MB / 463.6 MB, free: 1.422 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009636/0.148, allocations: 3.034 MB / 466.7 MB, free: 14.36 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.486e-06/0.148, allocations: 0 / 466.7 MB, free: 14.36 MB / 350.1 MB Notification: Performance of matching and sorting (n=112) (initialization): time 0.002588/0.1506, allocations: 1.274 MB / 468 MB, free: 13.08 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.341e-05/0.1506, allocations: 8 kB / 468 MB, free: 13.07 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.307e-06/0.1506, allocations: 4 kB / 468 MB, free: 13.07 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.113e-05/0.1507, allocations: 4 kB / 468 MB, free: 13.06 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006203/0.1569, allocations: 1.038 MB / 469 MB, free: 12.02 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.691e-05/0.1569, allocations: 4 kB / 469 MB, free: 12.02 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000731/0.1576, allocations: 79.91 kB / 469.1 MB, free: 11.94 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.984e-05/0.1577, allocations: 31.98 kB / 469.1 MB, free: 11.91 MB / 350.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.0004463/0.1582, allocations: 247.5 kB / 469.4 MB, free: 11.66 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001357/0.1583, allocations: 71.16 kB / 469.4 MB, free: 11.59 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002526/0.1609, allocations: 1.197 MB / 470.6 MB, free: 10.38 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.418e-06/0.1609, allocations: 15.94 kB / 470.6 MB, free: 10.36 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.022e-06/0.1609, allocations: 0 / 470.6 MB, free: 10.36 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.125e-06/0.1609, allocations: 3.984 kB / 470.6 MB, free: 10.36 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004409/0.1653, allocations: 2.376 MB / 473 MB, free: 7.91 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.486e-06/0.1654, allocations: 4 kB / 473 MB, free: 7.906 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00635/0.1717, allocations: 1.007 MB / 474 MB, free: 6.898 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.678e-05/0.1717, allocations: 8 kB / 474 MB, free: 6.891 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001074/0.1719, allocations: 23.98 kB / 474.1 MB, free: 6.867 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.314e-06/0.1719, allocations: 4 kB / 474.1 MB, free: 6.863 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.517e-06/0.1719, allocations: 3.938 kB / 474.1 MB, free: 6.859 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00357/0.1755, allocations: 1.815 MB / 475.9 MB, free: 5.012 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002419/0.1757, allocations: 148.3 kB / 476 MB, free: 4.848 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001518/0.1759, allocations: 23.98 kB / 476.1 MB, free: 4.824 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00072/0.1766, allocations: 71.91 kB / 476.1 MB, free: 4.754 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002272/0.1768, allocations: 104.5 kB / 476.2 MB, free: 4.652 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.775e-05/0.1769, allocations: 23.98 kB / 476.3 MB, free: 4.629 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004481/0.1774, allocations: 362.9 kB / 476.6 MB, free: 4.277 MB / 350.1 MB Notification: Performance of sort global known variables: time 2e-07/0.1774, allocations: 0 / 476.6 MB, free: 4.277 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006653/0.1781, allocations: 236 kB / 476.8 MB, free: 4.047 MB / 350.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.0001998/0.1783, allocations: 139 kB / 477 MB, free: 3.902 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002478/0.1808, allocations: 1.146 MB / 478.1 MB, free: 2.754 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.449e-06/0.1808, allocations: 0.5625 kB / 478.1 MB, free: 2.754 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001202/0.182, allocations: 0.5814 MB / 478.7 MB, free: 2.176 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007741/0.1828, allocations: 172.7 kB / 478.9 MB, free: 2.012 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005785/0.1886, allocations: 2.751 MB / 481.6 MB, free: 15.21 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005457/0.1891, allocations: 0.9659 MB / 482.6 MB, free: 14.22 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000709/0.1898, allocations: 165.9 kB / 482.7 MB, free: 14.05 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003804/0.1902, allocations: 75.41 kB / 482.8 MB, free: 13.98 MB / 366.1 MB Notification: Performance of SimCode: time 7.11e-07/0.1902, allocations: 0 / 482.8 MB, free: 13.98 MB / 366.1 MB Notification: Performance of Templates: time 0.0216/0.2119, allocations: 12.37 MB / 495.2 MB, free: 1.719 MB / 366.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 -s gbode -lv LOG_STATS > AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002.pipe 2>&1)