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.001214/0.001214, allocations: 103.5 kB / 16.35 MB, free: 6.285 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.001077/0.001077, allocations: 193.5 kB / 17.29 MB, free: 5.863 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.524/1.524, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.08993/0.08993, allocations: 22.32 MB / 313.5 MB, free: 8.906 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001221/0.001221, allocations: 63.19 kB / 382.2 MB, free: 41.16 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08879/0.09002, allocations: 54.96 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.005315/0.09538, allocations: 4.193 MB / 441.4 MB, free: 8.055 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002327/0.09773, allocations: 1.165 MB / 442.6 MB, free: 6.883 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004062/0.09816, allocations: 8 kB / 442.6 MB, free: 6.875 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002795/0.09847, allocations: 106.9 kB / 442.7 MB, free: 6.77 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004898/0.09897, allocations: 261.9 kB / 442.9 MB, free: 6.512 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000729/0.0997, allocations: 295.5 kB / 443.2 MB, free: 6.223 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009987/0.1007, allocations: 1.19 MB / 444.4 MB, free: 5.031 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007536/0.1015, allocations: 0.6723 MB / 445.1 MB, free: 4.348 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004452/0.1019, allocations: 482.6 kB / 445.5 MB, free: 3.875 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006493/0.1026, allocations: 0.6111 MB / 446.2 MB, free: 3.262 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001478/0.1027, allocations: 116 kB / 446.3 MB, free: 3.148 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001564/0.1029, allocations: 128 kB / 446.4 MB, free: 3.023 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002757/0.1032, allocations: 319.1 kB / 446.7 MB, free: 2.711 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004542/0.1037, allocations: 0.5289 MB / 447.2 MB, free: 2.18 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009882/0.1047, allocations: 1.25 MB / 448.5 MB, free: 0.9258 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.147e-06/0.1047, allocations: 0 / 448.5 MB, free: 0.9258 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.1047, allocations: 0 / 448.5 MB, free: 0.9258 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.254e-05/0.1047, 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.002619/0.1073, allocations: 1.255 MB / 449.7 MB, free: 15.62 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.703e-05/0.1074, allocations: 15.95 kB / 449.8 MB, free: 15.6 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00018/0.1076, allocations: 99.81 kB / 449.9 MB, free: 15.5 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007773/0.1083, allocations: 0.5113 MB / 450.4 MB, free: 14.95 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001637/0.1085, allocations: 159.6 kB / 450.5 MB, free: 14.78 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001457/0.1087, allocations: 92.16 kB / 450.6 MB, free: 14.69 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001913/0.1106, allocations: 1.007 MB / 451.6 MB, free: 13.67 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.031e-05/0.1106, allocations: 0 / 451.6 MB, free: 13.67 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.573e-05/0.1107, allocations: 36 kB / 451.7 MB, free: 13.63 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.482e-05/0.1107, allocations: 20 kB / 451.7 MB, free: 13.61 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001881/0.1126, allocations: 0.9017 MB / 452.6 MB, free: 12.71 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006709/0.1193, allocations: 3.547 MB / 456.1 MB, free: 9.086 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001852/0.1212, allocations: 0.9018 MB / 457 MB, free: 8.176 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001195/0.1224, allocations: 0.6393 MB / 457.7 MB, free: 7.535 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.062e-05/0.1225, allocations: 8.656 kB / 457.7 MB, free: 7.523 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.838e-05/0.1226, allocations: 51.19 kB / 457.7 MB, free: 7.465 MB / 334.1 MB Notification: Performance of pre-optimization done (n=79): time 2.355e-06/0.1226, allocations: 0 / 457.7 MB, free: 7.465 MB / 334.1 MB Notification: Performance of matching and sorting (n=83): time 0.00692/0.1295, allocations: 3.022 MB / 460.7 MB, free: 4.391 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.366e-05/0.1296, allocations: 64.41 kB / 460.8 MB, free: 4.316 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005736/0.1301, allocations: 0.5105 MB / 461.3 MB, free: 3.797 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.809e-05/0.1302, allocations: 37.7 kB / 461.4 MB, free: 3.754 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002081/0.1304, allocations: 328.4 kB / 461.7 MB, free: 3.426 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002279/0.1307, allocations: 295.6 kB / 462 MB, free: 3.133 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002873/0.131, allocations: 154.5 kB / 462.1 MB, free: 2.977 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.00017/0.1312, allocations: 386.7 kB / 462.5 MB, free: 2.59 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001119/0.1323, allocations: 0.5317 MB / 463 MB, free: 2.055 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001145/0.1334, allocations: 0.6125 MB / 463.6 MB, free: 1.414 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009772/0.1432, allocations: 3.03 MB / 466.7 MB, free: 14.35 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.426e-06/0.1432, allocations: 0 / 466.7 MB, free: 14.35 MB / 350.1 MB Notification: Performance of matching and sorting (n=112) (initialization): time 0.002592/0.1458, allocations: 1.277 MB / 467.9 MB, free: 13.07 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.915e-05/0.1459, allocations: 6.344 kB / 468 MB, free: 13.07 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.668e-06/0.1459, allocations: 4 kB / 468 MB, free: 13.06 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.191e-05/0.1459, allocations: 8 kB / 468 MB, free: 13.05 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006383/0.1523, allocations: 1.026 MB / 469 MB, free: 12.03 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.375e-05/0.1524, allocations: 8 kB / 469 MB, free: 12.02 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007912/0.1532, allocations: 71.91 kB / 469.1 MB, free: 11.95 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.705e-05/0.1533, allocations: 35.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.0004473/0.1537, allocations: 255.5 kB / 469.4 MB, free: 11.65 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001346/0.1538, allocations: 67.16 kB / 469.4 MB, free: 11.59 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002605/0.1565, allocations: 1.201 MB / 470.6 MB, free: 10.38 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.997e-06/0.1565, allocations: 8 kB / 470.6 MB, free: 10.37 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.614e-06/0.1565, allocations: 0 / 470.6 MB, free: 10.37 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.428e-06/0.1565, allocations: 3.984 kB / 470.6 MB, free: 10.36 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004628/0.1611, allocations: 2.38 MB / 473 MB, free: 7.91 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.589e-06/0.1612, allocations: 0 / 473 MB, free: 7.91 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006328/0.1675, allocations: 1.011 MB / 474 MB, free: 6.898 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.464e-05/0.1675, allocations: 4 kB / 474 MB, free: 6.895 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001123/0.1677, allocations: 23.98 kB / 474 MB, free: 6.871 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.015e-05/0.1677, allocations: 8 kB / 474.1 MB, free: 6.863 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.368e-06/0.1677, allocations: 11.94 kB / 474.1 MB, free: 6.852 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003533/0.1712, allocations: 1.818 MB / 475.9 MB, free: 5 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001866/0.1714, allocations: 144.3 kB / 476 MB, free: 4.84 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001308/0.1716, allocations: 23.98 kB / 476.1 MB, free: 4.816 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006989/0.1723, allocations: 71.92 kB / 476.1 MB, free: 4.746 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002272/0.1725, allocations: 100.5 kB / 476.2 MB, free: 4.648 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.166e-05/0.1726, allocations: 23.98 kB / 476.2 MB, free: 4.625 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003924/0.173, allocations: 366.8 kB / 476.6 MB, free: 4.27 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.173, allocations: 0 / 476.6 MB, free: 4.27 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006291/0.1736, allocations: 232 kB / 476.8 MB, free: 4.043 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.0001733/0.1738, allocations: 135 kB / 477 MB, free: 3.902 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002386/0.1762, allocations: 1.161 MB / 478.1 MB, free: 2.738 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.966e-06/0.1762, allocations: 0.5625 kB / 478.1 MB, free: 2.738 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001164/0.1774, allocations: 0.5775 MB / 478.7 MB, free: 2.164 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007548/0.1782, allocations: 174.3 kB / 478.9 MB, free: 1.996 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005605/0.1838, allocations: 2.735 MB / 481.6 MB, free: 15.21 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000516/0.1843, allocations: 0.9698 MB / 482.6 MB, free: 14.21 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000625/0.1849, allocations: 173.8 kB / 482.7 MB, free: 14.04 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003548/0.1853, allocations: 71.41 kB / 482.8 MB, free: 13.97 MB / 366.1 MB Notification: Performance of SimCode: time 5.61e-07/0.1853, allocations: 0 / 482.8 MB, free: 13.97 MB / 366.1 MB Notification: Performance of Templates: time 0.01929/0.2046, 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 cvode -lv LOG_STATS > AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002.pipe 2>&1)