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.001637/0.001637, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001411/0.001411, allocations: 200.9 kB / 16.26 MB, free: 6.625 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.348/1.348, allocations: 222.9 MB / 239.9 MB, free: 4.559 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2251/0.2251, allocations: 22.35 MB / 312.4 MB, free: 12.65 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001244/0.001245, allocations: 59.91 kB / 380.3 MB, free: 10.99 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2936/0.2949, allocations: 54.94 MB / 435.2 MB, free: 39.61 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Storage_management.Storage_tank_01_load_unload): time 0.003748/0.2987, allocations: 3.443 MB / 438.7 MB, free: 37.13 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001303/0.3, allocations: 0.9338 MB / 439.6 MB, free: 36.46 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001764/0.3002, allocations: 5.688 kB / 439.6 MB, free: 36.46 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001938/0.3004, allocations: 49.47 kB / 439.7 MB, free: 36.44 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002705/0.3007, allocations: 147 kB / 439.8 MB, free: 36.34 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004396/0.3012, allocations: 167 kB / 440 MB, free: 36.23 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005203/0.3017, allocations: 0.7481 MB / 440.7 MB, free: 35.88 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004648/0.3022, allocations: 435.6 kB / 441.2 MB, free: 35.7 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002657/0.3024, allocations: 310.2 kB / 441.5 MB, free: 35.56 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003835/0.3028, allocations: 398.9 kB / 441.8 MB, free: 35.38 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.743e-05/0.3029, allocations: 78.84 kB / 441.9 MB, free: 35.38 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001058/0.3031, allocations: 81.31 kB / 442 MB, free: 35.38 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001483/0.3032, allocations: 205.9 kB / 442.2 MB, free: 35.26 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002404/0.3035, allocations: 342.5 kB / 442.5 MB, free: 35.06 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005743/0.304, allocations: 0.7918 MB / 443.3 MB, free: 34.75 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.469e-06/0.304, allocations: 0 / 443.3 MB, free: 34.75 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.444e-06/0.3041, allocations: 0 / 443.3 MB, free: 34.75 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.181e-05/0.3041, allocations: 7.172 kB / 443.3 MB, free: 34.75 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.001762/0.3058, allocations: 0.8967 MB / 444.2 MB, free: 34.13 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.012e-05/0.3059, allocations: 9.625 kB / 444.2 MB, free: 34.13 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001259/0.306, allocations: 62.78 kB / 444.3 MB, free: 34.11 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004658/0.3065, allocations: 387.1 kB / 444.7 MB, free: 33.8 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001237/0.3066, allocations: 107.8 kB / 444.8 MB, free: 33.71 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001006/0.3067, allocations: 54.94 kB / 444.8 MB, free: 33.7 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001387/0.3081, allocations: 0.6882 MB / 445.5 MB, free: 33.45 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.05e-05/0.3082, allocations: 0 / 445.5 MB, free: 33.45 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.225e-05/0.3082, allocations: 26.03 kB / 445.6 MB, free: 33.43 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.151e-05/0.3082, allocations: 12.12 kB / 445.6 MB, free: 33.43 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00126/0.3095, allocations: 0.6054 MB / 446.2 MB, free: 33.23 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004312/0.3138, allocations: 2.578 MB / 448.8 MB, free: 31.84 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001082/0.3149, allocations: 0.5594 MB / 449.3 MB, free: 31.62 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007683/0.3157, allocations: 410 kB / 449.7 MB, free: 31.47 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.234e-05/0.3158, allocations: 5.688 kB / 449.7 MB, free: 31.47 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.651e-05/0.3158, allocations: 41.66 kB / 449.8 MB, free: 31.42 MB / 350.1 MB Notification: Performance of pre-optimization done (n=48): time 2.515e-06/0.3158, allocations: 0 / 449.8 MB, free: 31.42 MB / 350.1 MB Notification: Performance of matching and sorting (n=52): time 0.004934/0.3208, allocations: 2.197 MB / 452 MB, free: 30.48 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.243e-05/0.3208, allocations: 61.06 kB / 452 MB, free: 30.41 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000323/0.3211, allocations: 356.6 kB / 452.4 MB, free: 30.23 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.65e-05/0.3212, allocations: 33.7 kB / 452.4 MB, free: 30.19 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.957e-05/0.3213, allocations: 231.1 kB / 452.6 MB, free: 30 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001149/0.3214, allocations: 190 kB / 452.8 MB, free: 29.85 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001721/0.3216, allocations: 93.91 kB / 452.9 MB, free: 29.8 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.498e-05/0.3217, allocations: 356 kB / 453.2 MB, free: 29.47 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007457/0.3224, allocations: 368 kB / 453.6 MB, free: 29.34 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007937/0.3232, allocations: 417 kB / 454 MB, free: 29.17 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006265/0.3295, allocations: 2 MB / 456 MB, free: 28.61 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.885e-06/0.3295, allocations: 0 / 456 MB, free: 28.61 MB / 350.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001728/0.3313, allocations: 0.8484 MB / 456.9 MB, free: 28.29 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.927e-05/0.3313, allocations: 12.75 kB / 456.9 MB, free: 28.28 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.774e-06/0.3313, allocations: 1.344 kB / 456.9 MB, free: 28.28 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.805e-05/0.3313, allocations: 3.438 kB / 456.9 MB, free: 28.28 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005561/0.3369, allocations: 0.9064 MB / 457.8 MB, free: 28.25 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.748e-05/0.3369, allocations: 8.531 kB / 457.8 MB, free: 28.25 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00057/0.3375, allocations: 58.98 kB / 457.8 MB, free: 28.23 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.506e-05/0.3376, allocations: 21.52 kB / 457.9 MB, free: 28.23 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.0003441/0.3379, allocations: 196 kB / 458.1 MB, free: 28.07 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.905e-05/0.338, allocations: 48.91 kB / 458.1 MB, free: 28.04 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001997/0.34, allocations: 0.8439 MB / 459 MB, free: 27.71 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.745e-06/0.3401, allocations: 5.406 kB / 459 MB, free: 27.71 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.38e-06/0.3401, allocations: 3.938 kB / 459 MB, free: 27.71 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.477e-06/0.3401, allocations: 3.469 kB / 459 MB, free: 27.71 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003267/0.3434, allocations: 1.737 MB / 460.7 MB, free: 26.84 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.366e-06/0.3434, allocations: 0 / 460.7 MB, free: 26.84 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005878/0.3493, allocations: 0.8975 MB / 461.6 MB, free: 26.8 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.248e-05/0.3493, allocations: 2.469 kB / 461.6 MB, free: 26.8 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.904e-05/0.3494, allocations: 18.36 kB / 461.6 MB, free: 26.8 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.142e-06/0.3494, allocations: 5.984 kB / 461.6 MB, free: 26.79 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.757e-06/0.3494, allocations: 5.469 kB / 461.6 MB, free: 26.79 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00272/0.3521, allocations: 1.266 MB / 462.9 MB, free: 26.25 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001439/0.3523, allocations: 118.9 kB / 463 MB, free: 26.13 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.309e-05/0.3524, allocations: 21.98 kB / 463 MB, free: 26.11 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005402/0.3529, allocations: 54.88 kB / 463.1 MB, free: 26.11 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002066/0.3532, allocations: 73.7 kB / 463.2 MB, free: 26.09 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.884e-05/0.3532, allocations: 17.41 kB / 463.2 MB, free: 26.09 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000301/0.3535, allocations: 257.1 kB / 463.4 MB, free: 25.95 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3535, allocations: 3.938 kB / 463.4 MB, free: 25.95 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005788/0.3541, allocations: 153.3 kB / 463.6 MB, free: 25.92 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.0001791/0.3543, allocations: 114.4 kB / 463.7 MB, free: 25.82 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00196/0.3563, allocations: 0.8443 MB / 464.5 MB, free: 25.55 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.3563, allocations: 0 / 464.5 MB, free: 25.55 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008426/0.3571, allocations: 417.5 kB / 464.9 MB, free: 25.42 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000616/0.3577, allocations: 112.2 kB / 465.1 MB, free: 25.37 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003668/0.3614, allocations: 1.967 MB / 467 MB, free: 24.19 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002971/0.3617, allocations: 0.8564 MB / 467.9 MB, free: 23.47 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004714/0.3622, allocations: 96.64 kB / 468 MB, free: 23.45 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002512/0.3625, allocations: 48.19 kB / 468 MB, free: 23.45 MB / 350.1 MB Notification: Performance of SimCode: time 8.41e-07/0.3625, allocations: 4 kB / 468 MB, free: 23.44 MB / 350.1 MB Notification: Performance of Templates: time 0.01434/0.3768, allocations: 8.084 MB / 476.1 MB, free: 20.88 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)