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.001019/0.001018, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.007814/0.007814, allocations: 170.7 kB / 16.27 MB, free: 6.652 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.407/1.407, allocations: 223.3 MB / 240.3 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2142/0.2142, allocations: 22.35 MB / 313.8 MB, free: 13.07 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003638/0.0003643, allocations: 12 kB / 382.6 MB, free: 10.13 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3083/0.3087, allocations: 55.98 MB / 438.6 MB, free: 39.43 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002): time 0.003643/0.3124, allocations: 4.126 MB / 442.7 MB, free: 36.35 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002279/0.3147, allocations: 1.213 MB / 443.9 MB, free: 35.46 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003082/0.315, allocations: 5.812 kB / 443.9 MB, free: 35.46 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002356/0.3153, allocations: 81.61 kB / 444 MB, free: 35.42 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004668/0.3158, allocations: 225.1 kB / 444.2 MB, free: 35.28 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00068/0.3165, allocations: 260.5 kB / 444.5 MB, free: 35.11 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009407/0.3174, allocations: 1.287 MB / 445.8 MB, free: 34.57 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007642/0.3182, allocations: 0.5683 MB / 446.3 MB, free: 34.34 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006252/0.3188, allocations: 414.1 kB / 446.7 MB, free: 34.17 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007251/0.3195, allocations: 0.5686 MB / 447.3 MB, free: 33.93 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001496/0.3197, allocations: 69.22 kB / 447.4 MB, free: 33.93 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000159/0.3199, allocations: 73.91 kB / 447.4 MB, free: 33.92 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002626/0.3201, allocations: 266.2 kB / 447.7 MB, free: 33.8 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005026/0.3207, allocations: 0.4966 MB / 448.2 MB, free: 33.5 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001158/0.3218, allocations: 1.176 MB / 449.4 MB, free: 33.15 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.196e-06/0.3218, allocations: 0 / 449.4 MB, free: 33.15 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.837e-06/0.3219, allocations: 0 / 449.4 MB, free: 33.15 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.551e-05/0.3219, allocations: 2.781 kB / 449.4 MB, free: 33.15 MB / 350.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.002963/0.3248, allocations: 1.102 MB / 450.5 MB, free: 32.46 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.787e-05/0.3249, allocations: 12.97 kB / 450.5 MB, free: 32.46 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002848/0.3252, allocations: 101.6 kB / 450.6 MB, free: 32.41 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008419/0.3261, allocations: 0.5119 MB / 451.1 MB, free: 32.03 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001928/0.3263, allocations: 164.2 kB / 451.3 MB, free: 31.91 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001608/0.3265, allocations: 103.5 kB / 451.4 MB, free: 31.86 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002032/0.3285, allocations: 1.049 MB / 452.4 MB, free: 31.49 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.472e-05/0.3285, allocations: 3 kB / 452.4 MB, free: 31.49 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.824e-05/0.3286, allocations: 30.75 kB / 452.4 MB, free: 31.46 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.576e-05/0.3286, allocations: 16.38 kB / 452.5 MB, free: 31.46 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001911/0.3306, allocations: 0.9473 MB / 453.4 MB, free: 31.17 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006665/0.3372, allocations: 3.661 MB / 457.1 MB, free: 29.39 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001931/0.3392, allocations: 0.9415 MB / 458 MB, free: 29.03 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001225/0.3404, allocations: 0.6637 MB / 458.7 MB, free: 28.8 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.252e-05/0.3405, allocations: 12.05 kB / 458.7 MB, free: 28.79 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.652e-05/0.3406, allocations: 51.72 kB / 458.7 MB, free: 28.73 MB / 350.1 MB Notification: Performance of pre-optimization done (n=79): time 2.525e-06/0.3406, allocations: 0 / 458.7 MB, free: 28.73 MB / 350.1 MB Notification: Performance of matching and sorting (n=83): time 0.007824/0.3484, allocations: 3.201 MB / 461.9 MB, free: 27.43 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.432e-05/0.3485, allocations: 60.41 kB / 462 MB, free: 27.37 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006084/0.3491, allocations: 0.5077 MB / 462.5 MB, free: 27.13 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.256e-05/0.3492, allocations: 41.52 kB / 462.5 MB, free: 27.09 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001663/0.3493, allocations: 323.1 kB / 462.9 MB, free: 26.83 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000202/0.3495, allocations: 306.3 kB / 463.2 MB, free: 26.59 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001343/0.3497, allocations: 77.27 kB / 463.2 MB, free: 26.55 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.362e-05/0.3498, allocations: 386.8 kB / 463.6 MB, free: 26.2 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001214/0.351, allocations: 0.5691 MB / 464.2 MB, free: 26 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001245/0.3523, allocations: 0.6417 MB / 464.8 MB, free: 25.72 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0113/0.3636, allocations: 3.336 MB / 468.2 MB, free: 24.83 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.571e-06/0.3636, allocations: 0 / 468.2 MB, free: 24.83 MB / 350.1 MB Notification: Performance of matching and sorting (n=112) (initialization): time 0.00307/0.3667, allocations: 1.343 MB / 469.5 MB, free: 24.33 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.693e-05/0.3667, allocations: 4.906 kB / 469.5 MB, free: 24.33 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.086e-05/0.3668, allocations: 2.5 kB / 469.5 MB, free: 24.33 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.758e-05/0.3668, allocations: 7.125 kB / 469.5 MB, free: 24.33 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007554/0.3744, allocations: 1.322 MB / 470.8 MB, free: 24.25 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.208e-05/0.3744, allocations: 5.891 kB / 470.8 MB, free: 24.25 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001129/0.3756, allocations: 93.98 kB / 470.9 MB, free: 24.23 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001052/0.3757, allocations: 34.2 kB / 471 MB, free: 24.23 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.0005728/0.3763, allocations: 257.8 kB / 471.2 MB, free: 24.02 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001645/0.3764, allocations: 72.88 kB / 471.3 MB, free: 23.98 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002961/0.3794, allocations: 1.268 MB / 472.6 MB, free: 23.51 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.11e-05/0.3794, allocations: 8.5 kB / 472.6 MB, free: 23.51 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.324e-06/0.3794, allocations: 4.938 kB / 472.6 MB, free: 23.5 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.118e-05/0.3795, allocations: 8.219 kB / 472.6 MB, free: 23.5 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005047/0.3845, allocations: 2.471 MB / 475.1 MB, free: 22.38 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.43e-06/0.3845, allocations: 2.234 kB / 475.1 MB, free: 22.38 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007548/0.3921, allocations: 1.302 MB / 476.4 MB, free: 22.3 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.486e-05/0.3922, allocations: 4.953 kB / 476.4 MB, free: 22.3 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002611/0.3924, allocations: 31 kB / 476.4 MB, free: 22.29 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.222e-05/0.3925, allocations: 4.016 kB / 476.4 MB, free: 22.29 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.418e-06/0.3925, allocations: 7.047 kB / 476.4 MB, free: 22.29 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004113/0.3966, allocations: 1.915 MB / 478.3 MB, free: 20.91 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002468/0.3969, allocations: 156.3 kB / 478.5 MB, free: 20.73 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001257/0.397, allocations: 23.98 kB / 478.5 MB, free: 20.71 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007763/0.3978, allocations: 83.92 kB / 478.6 MB, free: 20.63 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002304/0.398, allocations: 108.4 kB / 478.7 MB, free: 20.52 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.358e-05/0.3981, allocations: 23.98 kB / 478.7 MB, free: 20.5 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004541/0.3985, allocations: 362.9 kB / 479.1 MB, free: 20.15 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3986, allocations: 0 / 479.1 MB, free: 20.15 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007593/0.3993, allocations: 236 kB / 479.3 MB, free: 19.92 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.0001721/0.3995, allocations: 134.1 kB / 479.4 MB, free: 19.78 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002423/0.4019, allocations: 1.22 MB / 480.6 MB, free: 18.56 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.506e-06/0.402, allocations: 384 / 480.6 MB, free: 18.56 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001184/0.4031, allocations: 0.6168 MB / 481.3 MB, free: 17.94 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00105/0.4042, allocations: 160.3 kB / 481.4 MB, free: 17.79 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005534/0.4097, allocations: 3.329 MB / 484.7 MB, free: 14.41 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000354/0.4101, allocations: 0.9663 MB / 485.7 MB, free: 13.41 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0008213/0.411, allocations: 165.8 kB / 485.9 MB, free: 13.25 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003816/0.4114, allocations: 75.41 kB / 486 MB, free: 13.18 MB / 350.1 MB Notification: Performance of SimCode: time 8.52e-07/0.4114, allocations: 0 / 486 MB, free: 13.18 MB / 350.1 MB Notification: Performance of Templates: time 0.01729/0.4287, allocations: 11.3 MB / 497.3 MB, free: 1.992 MB / 350.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)