Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_control_problems.Storage_management.Storage_tank_01_load_unload.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_control_problems.Storage_management.Storage_tank_01_load_unload,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_control_problems.Storage_management.Storage_tank_01_load_unload") translateModel(AES.Coursework.ThermSys_control_problems.Storage_management.Storage_tank_01_load_unload,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_control_problems.Storage_management.Storage_tank_01_load_unload") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000767/0.0007669, allocations: 98.56 kB / 16.02 MB, free: 76 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.0008925/0.0008925, allocations: 188 kB / 16.92 MB, free: 6.75 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.317/1.317, allocations: 223.3 MB / 241 MB, free: 5.238 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.202/0.202, allocations: 22.35 MB / 314.4 MB, free: 13.06 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004495/0.0004495, allocations: 8 kB / 383.3 MB, free: 10.12 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2885/0.289, allocations: 55.98 MB / 439.2 MB, free: 39.32 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Storage_management.Storage_tank_01_load_unload): time 0.002294/0.2913, allocations: 3.065 MB / 442.3 MB, free: 37.05 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001064/0.2924, allocations: 0.9273 MB / 443.2 MB, free: 36.38 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001295/0.2925, allocations: 4.844 kB / 443.2 MB, free: 36.38 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001293/0.2927, allocations: 49.3 kB / 443.3 MB, free: 36.35 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002501/0.2929, allocations: 151.4 kB / 443.4 MB, free: 36.25 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003733/0.2933, allocations: 165.9 kB / 443.6 MB, free: 36.15 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004834/0.2938, allocations: 0.8055 MB / 444.4 MB, free: 35.8 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003764/0.2942, allocations: 379.3 kB / 444.8 MB, free: 35.66 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002093/0.2944, allocations: 266.4 kB / 445 MB, free: 35.56 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003264/0.2947, allocations: 366.1 kB / 445.4 MB, free: 35.4 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.19e-05/0.2948, allocations: 46.91 kB / 445.4 MB, free: 35.4 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.902e-05/0.2949, allocations: 46.19 kB / 445.5 MB, free: 35.4 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001112/0.295, allocations: 176.6 kB / 445.7 MB, free: 35.32 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002077/0.2952, allocations: 329.4 kB / 446 MB, free: 35.12 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003233/0.2956, allocations: 0.581 MB / 446.6 MB, free: 35 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.2956, allocations: 0 / 446.6 MB, free: 35 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.184e-06/0.2956, allocations: 3.938 kB / 446.6 MB, free: 34.99 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.693e-06/0.2956, allocations: 3.938 kB / 446.6 MB, free: 34.99 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: 123 * Number of variables: 123 Notification: Performance of Generate backend data structure: time 0.001401/0.297, allocations: 0.8025 MB / 447.4 MB, free: 34.43 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.185e-05/0.297, allocations: 15.66 kB / 447.4 MB, free: 34.43 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001123/0.2972, allocations: 64.78 kB / 447.4 MB, free: 34.39 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003951/0.2976, allocations: 384 kB / 447.8 MB, free: 34.09 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001095/0.2977, allocations: 114.6 kB / 447.9 MB, free: 34.01 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.446e-05/0.2978, allocations: 58.66 kB / 448 MB, free: 33.98 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001425/0.2992, allocations: 0.7377 MB / 448.7 MB, free: 33.73 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.589e-05/0.2992, allocations: 0 / 448.7 MB, free: 33.73 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.109e-05/0.2993, allocations: 19.03 kB / 448.7 MB, free: 33.71 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.187e-06/0.2993, allocations: 11.62 kB / 448.8 MB, free: 33.71 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001336/0.3007, allocations: 0.6452 MB / 449.4 MB, free: 33.52 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004282/0.305, allocations: 2.683 MB / 452.1 MB, free: 32.11 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001094/0.3061, allocations: 0.5797 MB / 452.7 MB, free: 31.89 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008359/0.3069, allocations: 448.8 kB / 453.1 MB, free: 31.74 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.462e-05/0.307, allocations: 14.36 kB / 453.1 MB, free: 31.73 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.92e-05/0.307, allocations: 44.8 kB / 453.2 MB, free: 31.68 MB / 350.1 MB Notification: Performance of pre-optimization done (n=48): time 1.763e-06/0.307, allocations: 0 / 453.2 MB, free: 31.68 MB / 350.1 MB Notification: Performance of matching and sorting (n=52): time 0.005452/0.3125, allocations: 2.372 MB / 455.5 MB, free: 30.73 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.441e-05/0.3125, allocations: 59.16 kB / 455.6 MB, free: 30.66 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003373/0.3128, allocations: 361.3 kB / 455.9 MB, free: 30.47 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.844e-05/0.3129, allocations: 36.2 kB / 456 MB, free: 30.43 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001051/0.313, allocations: 229 kB / 456.2 MB, free: 30.25 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001181/0.3131, allocations: 189.5 kB / 456.4 MB, free: 30.1 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.932e-05/0.3132, allocations: 51.08 kB / 456.4 MB, free: 30.06 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.174e-05/0.3133, allocations: 355.8 kB / 456.8 MB, free: 29.73 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009207/0.3142, allocations: 411.2 kB / 457.2 MB, free: 29.59 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009016/0.3151, allocations: 448.4 kB / 457.6 MB, free: 29.42 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006806/0.322, allocations: 2.238 MB / 459.9 MB, free: 28.84 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.322, allocations: 0 / 459.9 MB, free: 28.84 MB / 350.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001945/0.3239, allocations: 0.921 MB / 460.8 MB, free: 28.5 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.631e-05/0.324, allocations: 6.328 kB / 460.8 MB, free: 28.5 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.861e-06/0.324, allocations: 1.469 kB / 460.8 MB, free: 28.5 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.433e-05/0.324, allocations: 4.5 kB / 460.8 MB, free: 28.5 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00661/0.3306, allocations: 1.202 MB / 462 MB, free: 28.43 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.384e-05/0.3306, allocations: 4.797 kB / 462 MB, free: 28.43 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005832/0.3312, allocations: 76.41 kB / 462.1 MB, free: 28.42 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.98e-05/0.3313, allocations: 20.84 kB / 462.1 MB, free: 28.42 MB / 350.1 MB Warning: Assuming fixed start value for the following 5 variables: H.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 Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 1 (H.ON) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (67): * Single equations (assignments): 67 * 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.0003229/0.3316, allocations: 198.5 kB / 462.3 MB, free: 28.25 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.118e-05/0.3317, allocations: 49.67 kB / 462.3 MB, free: 28.23 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002049/0.3338, allocations: 0.9097 MB / 463.2 MB, free: 27.89 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.224e-06/0.3338, allocations: 9.516 kB / 463.3 MB, free: 27.89 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.55e-06/0.3338, allocations: 0 / 463.3 MB, free: 27.89 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.057e-06/0.3338, allocations: 4.375 kB / 463.3 MB, free: 27.89 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003292/0.3371, allocations: 1.826 MB / 465.1 MB, free: 27 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.935e-06/0.3371, allocations: 0 / 465.1 MB, free: 27 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006639/0.3438, allocations: 1.196 MB / 466.3 MB, free: 26.93 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.189e-05/0.3438, allocations: 6.125 kB / 466.3 MB, free: 26.93 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.687e-05/0.3439, allocations: 12.88 kB / 466.3 MB, free: 26.93 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.439e-06/0.3439, allocations: 2.75 kB / 466.3 MB, free: 26.93 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.047e-06/0.3439, allocations: 6.203 kB / 466.3 MB, free: 26.92 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00285/0.3467, allocations: 1.377 MB / 467.7 MB, free: 26.36 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.922e-05/0.3468, allocations: 123.7 kB / 467.8 MB, free: 26.23 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.626e-05/0.3469, allocations: 10.64 kB / 467.8 MB, free: 26.23 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005708/0.3475, allocations: 73.75 kB / 467.9 MB, free: 26.22 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001835/0.3477, allocations: 70.41 kB / 468 MB, free: 26.21 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.569e-05/0.3478, allocations: 17.56 kB / 468 MB, free: 26.21 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000256/0.348, allocations: 258 kB / 468.2 MB, free: 26.07 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.348, allocations: 0 / 468.2 MB, free: 26.07 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005017/0.3485, allocations: 148.5 kB / 468.4 MB, free: 26.05 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 10 (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]) * Number of discrete variables: 1 (H.ON) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (53): * Single equations (assignments): 53 * 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.0001323/0.3487, allocations: 124 kB / 468.5 MB, free: 25.95 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001929/0.3506, allocations: 0.8553 MB / 469.4 MB, free: 25.68 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.3506, allocations: 5.281 kB / 469.4 MB, free: 25.68 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009221/0.3516, allocations: 455.2 kB / 469.8 MB, free: 25.54 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005927/0.3522, allocations: 99.59 kB / 469.9 MB, free: 25.5 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003511/0.3557, allocations: 2.191 MB / 472.1 MB, free: 24.24 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002757/0.356, allocations: 0.8534 MB / 472.9 MB, free: 23.52 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003117/0.3563, allocations: 54.95 kB / 473 MB, free: 23.52 MB / 350.1 MB Notification: Performance of SimCode: time 2.8e-07/0.3563, allocations: 0 / 473 MB, free: 23.52 MB / 350.1 MB Notification: Performance of Templates: time 0.009008/0.3653, allocations: 7.341 MB / 480.3 MB, free: 19.62 MB / 350.1 MB make -j1 -f AES_AES.Coursework.ThermSys_control_problems.Storage_management.Storage_tank_01_load_unload.makefile (rm -f AES_AES.Coursework.ThermSys_control_problems.Storage_management.Storage_tank_01_load_unload.pipe ; mkfifo AES_AES.Coursework.ThermSys_control_problems.Storage_management.Storage_tank_01_load_unload.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_control_problems.Storage_management.Storage_tank_01_load_unload.pipe >> ../files/AES_AES.Coursework.ThermSys_control_problems.Storage_management.Storage_tank_01_load_unload.sim & ./AES_AES.Coursework.ThermSys_control_problems.Storage_management.Storage_tank_01_load_unload -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ThermSys_control_problems.Storage_management.Storage_tank_01_load_unload.pipe 2>&1)