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.00113/0.00113, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001215/0.001215, allocations: 192.7 kB / 16.53 MB, free: 6.391 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.357/1.357, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2479/0.2479, allocations: 22.35 MB / 312.7 MB, free: 12.44 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001446/0.001446, allocations: 63.91 kB / 380.8 MB, free: 10.49 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.313/0.3144, allocations: 54.94 MB / 435.8 MB, free: 40.01 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002): time 0.004965/0.3194, allocations: 4.181 MB / 440 MB, free: 36.97 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002101/0.3216, allocations: 1.176 MB / 441.1 MB, free: 36.12 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002704/0.3219, allocations: 9.625 kB / 441.1 MB, free: 36.11 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000275/0.3222, allocations: 109 kB / 441.2 MB, free: 36.05 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004571/0.3226, allocations: 264.1 kB / 441.5 MB, free: 35.87 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006778/0.3233, allocations: 302.2 kB / 441.8 MB, free: 35.7 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008661/0.3242, allocations: 1.178 MB / 443 MB, free: 35.14 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006939/0.3249, allocations: 0.6848 MB / 443.7 MB, free: 34.84 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003894/0.3253, allocations: 482.2 kB / 444.1 MB, free: 34.63 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00057/0.3259, allocations: 0.6019 MB / 444.7 MB, free: 34.34 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001432/0.326, allocations: 118.9 kB / 444.8 MB, free: 34.34 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001614/0.3262, allocations: 119.1 kB / 445 MB, free: 34.34 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002177/0.3264, allocations: 327.7 kB / 445.3 MB, free: 34.16 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004171/0.3269, allocations: 0.5265 MB / 445.8 MB, free: 33.85 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008089/0.3277, allocations: 1.237 MB / 447 MB, free: 33.37 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.3277, allocations: 0 / 447 MB, free: 33.37 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.196e-06/0.3277, allocations: 0 / 447 MB, free: 33.37 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.074e-05/0.3277, allocations: 3.938 kB / 447.1 MB, free: 33.37 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.002507/0.3302, allocations: 1.257 MB / 448.3 MB, free: 32.59 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.684e-05/0.3303, allocations: 7.719 kB / 448.3 MB, free: 32.59 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001992/0.3305, allocations: 104.5 kB / 448.4 MB, free: 32.54 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006374/0.3311, allocations: 0.5151 MB / 448.9 MB, free: 32.15 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001351/0.3313, allocations: 164.4 kB / 449.1 MB, free: 32.02 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001302/0.3314, allocations: 83.03 kB / 449.2 MB, free: 31.99 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001811/0.3332, allocations: 1.01 MB / 450.2 MB, free: 31.62 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.296e-05/0.3333, allocations: 0 / 450.2 MB, free: 31.62 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.64e-05/0.3334, allocations: 36.94 kB / 450.2 MB, free: 31.59 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.593e-05/0.3334, allocations: 16.81 kB / 450.2 MB, free: 31.59 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001753/0.3351, allocations: 0.9016 MB / 451.1 MB, free: 31.31 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006049/0.3412, allocations: 3.574 MB / 454.7 MB, free: 29.53 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001963/0.3432, allocations: 0.894 MB / 455.6 MB, free: 29.18 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001259/0.3445, allocations: 0.6294 MB / 456.2 MB, free: 28.95 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.387e-05/0.3445, allocations: 12.36 kB / 456.2 MB, free: 28.94 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.975e-05/0.3446, allocations: 51.05 kB / 456.3 MB, free: 28.89 MB / 350.1 MB Notification: Performance of pre-optimization done (n=79): time 2.645e-06/0.3446, allocations: 0 / 456.3 MB, free: 28.89 MB / 350.1 MB Notification: Performance of matching and sorting (n=83): time 0.007764/0.3524, allocations: 3.023 MB / 459.3 MB, free: 27.59 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.494e-05/0.3524, allocations: 60.38 kB / 459.4 MB, free: 27.53 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006787/0.3531, allocations: 0.5082 MB / 459.9 MB, free: 27.29 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.567e-05/0.3532, allocations: 45.58 kB / 459.9 MB, free: 27.25 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001748/0.3534, allocations: 317.4 kB / 460.2 MB, free: 26.99 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002088/0.3536, allocations: 303.4 kB / 460.5 MB, free: 26.75 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002798/0.3539, allocations: 153 kB / 460.7 MB, free: 26.68 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001063/0.354, allocations: 388.7 kB / 461.1 MB, free: 26.33 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001183/0.3552, allocations: 0.5392 MB / 461.6 MB, free: 26.13 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001292/0.3565, allocations: 0.6044 MB / 462.2 MB, free: 25.86 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01013/0.3666, allocations: 3.041 MB / 465.3 MB, free: 25 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.367e-06/0.3667, allocations: 0 / 465.3 MB, free: 25 MB / 350.1 MB Notification: Performance of matching and sorting (n=112) (initialization): time 0.002642/0.3693, allocations: 1.276 MB / 466.5 MB, free: 24.51 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.074e-05/0.3693, allocations: 6.203 kB / 466.5 MB, free: 24.51 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.929e-06/0.3693, allocations: 2.75 kB / 466.5 MB, free: 24.51 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.189e-05/0.3694, allocations: 5.5 kB / 466.5 MB, free: 24.51 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00649/0.3759, allocations: 1.03 MB / 467.6 MB, free: 24.46 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.43e-05/0.3759, allocations: 7.062 kB / 467.6 MB, free: 24.46 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008235/0.3767, allocations: 73.16 kB / 467.7 MB, free: 24.45 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.55e-05/0.3768, allocations: 34.73 kB / 467.7 MB, free: 24.44 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.0004482/0.3773, allocations: 259.3 kB / 467.9 MB, free: 24.23 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001329/0.3774, allocations: 73.72 kB / 468 MB, free: 24.2 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002572/0.38, allocations: 1.204 MB / 469.2 MB, free: 23.72 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.051e-05/0.38, allocations: 9.562 kB / 469.2 MB, free: 23.72 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.772e-06/0.38, allocations: 0 / 469.2 MB, free: 23.72 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.22e-05/0.38, allocations: 4.453 kB / 469.2 MB, free: 23.72 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004535/0.3846, allocations: 2.378 MB / 471.6 MB, free: 22.62 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.891e-06/0.3846, allocations: 1.281 kB / 471.6 MB, free: 22.62 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006869/0.3915, allocations: 1.008 MB / 472.6 MB, free: 22.58 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.865e-05/0.3915, allocations: 5.25 kB / 472.6 MB, free: 22.58 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001136/0.3916, allocations: 30.78 kB / 472.7 MB, free: 22.57 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.696e-06/0.3917, allocations: 8.75 kB / 472.7 MB, free: 22.56 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.479e-06/0.3917, allocations: 6.094 kB / 472.7 MB, free: 22.56 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003917/0.3956, allocations: 1.806 MB / 474.5 MB, free: 21.76 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002442/0.3958, allocations: 150.2 kB / 474.6 MB, free: 21.62 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000137/0.396, allocations: 22.25 kB / 474.6 MB, free: 21.61 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007196/0.3967, allocations: 70.44 kB / 474.7 MB, free: 21.57 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002366/0.397, allocations: 106.2 kB / 474.8 MB, free: 21.51 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.406e-05/0.397, allocations: 25.55 kB / 474.8 MB, free: 21.5 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004558/0.3975, allocations: 363.2 kB / 475.2 MB, free: 21.29 MB / 350.1 MB Notification: Performance of sort global known variables: time 4.21e-07/0.3975, allocations: 0 / 475.2 MB, free: 21.29 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008473/0.3984, allocations: 235 kB / 475.4 MB, free: 21.27 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.0001686/0.3985, allocations: 127.9 kB / 475.5 MB, free: 21.16 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00292/0.4015, allocations: 1.305 MB / 476.9 MB, free: 20.44 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.877e-06/0.4015, allocations: 4.062 kB / 476.9 MB, free: 20.43 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001036/0.4025, allocations: 0.5775 MB / 477.4 MB, free: 19.86 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000755/0.4033, allocations: 174 kB / 477.6 MB, free: 19.69 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004919/0.4082, allocations: 2.777 MB / 480.4 MB, free: 16.87 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003251/0.4085, allocations: 0.9582 MB / 481.3 MB, free: 15.88 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0006265/0.4092, allocations: 169.8 kB / 481.5 MB, free: 15.71 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000308/0.4095, allocations: 75.41 kB / 481.6 MB, free: 15.64 MB / 350.1 MB Notification: Performance of SimCode: time 6.32e-07/0.4095, allocations: 0 / 481.6 MB, free: 15.64 MB / 350.1 MB Notification: Performance of Templates: time 0.01585/0.4254, allocations: 12.36 MB / 493.9 MB, free: 3.406 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)