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.00148/0.00148, allocations: 104.9 kB / 16.27 MB, free: 6.414 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.001583/0.001583, allocations: 189.8 kB / 17.2 MB, free: 5.953 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.35/1.35, allocations: 222.9 MB / 240.9 MB, free: 15.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09698/0.09698, allocations: 22.32 MB / 313.4 MB, free: 8.98 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001352/0.001352, allocations: 68.48 kB / 381.5 MB, free: 41.48 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07206/0.07343, allocations: 54.96 MB / 436.4 MB, free: 13.03 MB / 318.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002): time 0.004782/0.07825, allocations: 4.192 MB / 440.6 MB, free: 8.812 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001822/0.08009, allocations: 1.161 MB / 441.8 MB, free: 7.645 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001847/0.08029, allocations: 7.938 kB / 441.8 MB, free: 7.637 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002337/0.08054, allocations: 106.9 kB / 441.9 MB, free: 7.531 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004452/0.081, allocations: 273.8 kB / 442.1 MB, free: 7.262 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006182/0.08162, allocations: 291.5 kB / 442.4 MB, free: 6.977 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000953/0.08259, allocations: 1.19 MB / 443.6 MB, free: 5.785 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007432/0.08334, allocations: 0.6723 MB / 444.3 MB, free: 5.102 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004316/0.08378, allocations: 478.6 kB / 444.8 MB, free: 4.633 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000651/0.08444, allocations: 0.6073 MB / 445.4 MB, free: 4.023 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001649/0.08462, allocations: 116 kB / 445.5 MB, free: 3.91 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001829/0.08481, allocations: 124 kB / 445.6 MB, free: 3.789 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002761/0.08509, allocations: 327 kB / 445.9 MB, free: 3.469 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004661/0.08556, allocations: 0.525 MB / 446.4 MB, free: 2.941 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000951/0.08652, allocations: 1.235 MB / 447.7 MB, free: 1.703 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.08653, allocations: 3.984 kB / 447.7 MB, free: 1.699 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.011e-06/0.08654, allocations: 0 / 447.7 MB, free: 1.699 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.052e-05/0.08656, allocations: 0 / 447.7 MB, free: 1.699 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.00264/0.0892, allocations: 1.267 MB / 449 MB, free: 388 kB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.121e-05/0.08924, allocations: 8.031 kB / 449 MB, free: 380 kB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001779/0.08942, allocations: 99.81 kB / 449.1 MB, free: 280 kB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006991/0.09013, allocations: 0.5073 MB / 449.6 MB, free: 15.73 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001636/0.09031, allocations: 163.7 kB / 449.7 MB, free: 15.55 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001427/0.09046, allocations: 84.28 kB / 449.8 MB, free: 15.46 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002097/0.09256, allocations: 1.011 MB / 450.8 MB, free: 14.45 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2e-05/0.09259, allocations: 4 kB / 450.8 MB, free: 14.44 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001026/0.0927, allocations: 32 kB / 450.9 MB, free: 14.41 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.454e-05/0.09272, allocations: 16 kB / 450.9 MB, free: 14.39 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002077/0.09481, allocations: 0.8978 MB / 451.8 MB, free: 13.5 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006908/0.1017, allocations: 3.574 MB / 455.3 MB, free: 9.84 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001975/0.1037, allocations: 0.9047 MB / 456.2 MB, free: 8.926 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001274/0.105, allocations: 0.6273 MB / 456.9 MB, free: 8.297 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.385e-05/0.1051, allocations: 16.64 kB / 456.9 MB, free: 8.277 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.838e-05/0.1051, allocations: 47.16 kB / 456.9 MB, free: 8.223 MB / 334.1 MB Notification: Performance of pre-optimization done (n=79): time 2.184e-06/0.1051, allocations: 0 / 456.9 MB, free: 8.223 MB / 334.1 MB Notification: Performance of matching and sorting (n=83): time 0.007557/0.1127, allocations: 3.026 MB / 460 MB, free: 5.145 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.926e-05/0.1128, allocations: 64.34 kB / 460 MB, free: 5.07 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005725/0.1133, allocations: 0.508 MB / 460.5 MB, free: 4.555 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 7.043e-05/0.1134, allocations: 41.7 kB / 460.6 MB, free: 4.508 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002067/0.1136, allocations: 316.4 kB / 460.9 MB, free: 4.191 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002484/0.1139, allocations: 303.6 kB / 461.2 MB, free: 3.891 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002845/0.1142, allocations: 158.5 kB / 461.3 MB, free: 3.73 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000153/0.1143, allocations: 382.7 kB / 461.7 MB, free: 3.348 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00122/0.1156, allocations: 0.5317 MB / 462.2 MB, free: 2.812 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001261/0.1168, allocations: 0.6125 MB / 462.9 MB, free: 2.168 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01074/0.1276, allocations: 3.049 MB / 465.9 MB, free: 15.09 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.975e-06/0.1276, allocations: 0 / 465.9 MB, free: 15.09 MB / 350.1 MB Notification: Performance of matching and sorting (n=112) (initialization): time 0.002798/0.1304, allocations: 1.27 MB / 467.2 MB, free: 13.82 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.899e-05/0.1305, allocations: 12.06 kB / 467.2 MB, free: 13.8 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.686e-06/0.1305, allocations: 0 / 467.2 MB, free: 13.8 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.79e-05/0.1305, allocations: 11.94 kB / 467.2 MB, free: 13.79 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007229/0.1377, allocations: 1.026 MB / 468.2 MB, free: 12.77 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.74e-05/0.1378, allocations: 7.984 kB / 468.2 MB, free: 12.76 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008246/0.1386, allocations: 71.92 kB / 468.3 MB, free: 12.69 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.011e-05/0.1387, allocations: 35.98 kB / 468.3 MB, free: 12.65 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.0004479/0.1391, allocations: 249.8 kB / 468.6 MB, free: 12.4 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001547/0.1393, allocations: 71.16 kB / 468.6 MB, free: 12.33 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002829/0.1421, allocations: 1.193 MB / 469.8 MB, free: 11.12 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.112e-05/0.1422, allocations: 15.98 kB / 469.9 MB, free: 11.11 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.481e-06/0.1422, allocations: 0 / 469.9 MB, free: 11.11 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.306e-06/0.1422, allocations: 7.984 kB / 469.9 MB, free: 11.1 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004726/0.1469, allocations: 2.376 MB / 472.2 MB, free: 8.656 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.011e-06/0.147, allocations: 4 kB / 472.2 MB, free: 8.652 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007475/0.1544, allocations: 1.003 MB / 473.2 MB, free: 7.648 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.144e-05/0.1545, allocations: 8 kB / 473.3 MB, free: 7.641 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001066/0.1546, allocations: 27.92 kB / 473.3 MB, free: 7.613 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.172e-06/0.1546, allocations: 4 kB / 473.3 MB, free: 7.609 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.428e-06/0.1546, allocations: 8 kB / 473.3 MB, free: 7.602 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003883/0.1585, allocations: 1.813 MB / 475.1 MB, free: 5.75 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001759/0.1587, allocations: 152.3 kB / 475.3 MB, free: 5.582 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001518/0.1588, allocations: 20 kB / 475.3 MB, free: 5.562 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007744/0.1596, allocations: 71.91 kB / 475.3 MB, free: 5.492 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000223/0.1599, allocations: 100.5 kB / 475.4 MB, free: 5.395 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.218e-05/0.1599, allocations: 27.98 kB / 475.5 MB, free: 5.367 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004239/0.1604, allocations: 362.9 kB / 475.8 MB, free: 5.016 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1604, allocations: 0 / 475.8 MB, free: 5.016 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006625/0.161, allocations: 232 kB / 476.1 MB, free: 4.789 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.0001799/0.1612, allocations: 139 kB / 476.2 MB, free: 4.645 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003098/0.1643, allocations: 1.31 MB / 477.5 MB, free: 3.336 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.387e-06/0.1644, allocations: 0 / 477.5 MB, free: 3.336 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001284/0.1656, allocations: 0.5743 MB / 478.1 MB, free: 2.762 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008083/0.1665, allocations: 174 kB / 478.2 MB, free: 2.594 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006041/0.1725, allocations: 2.807 MB / 481 MB, free: 15.73 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005195/0.1731, allocations: 0.9659 MB / 482 MB, free: 14.74 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004801/0.1735, allocations: 83.39 kB / 482.1 MB, free: 14.66 MB / 366.1 MB Notification: Performance of SimCode: time 4.71e-07/0.1735, allocations: 0 / 482.1 MB, free: 14.66 MB / 366.1 MB Notification: Performance of Templates: time 0.01583/0.1894, allocations: 11.35 MB / 493.4 MB, free: 3.324 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 -lv LOG_STATS > AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002.pipe 2>&1)