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.001153/0.001153, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001187/0.001188, allocations: 195.7 kB / 16.14 MB, free: 6.645 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.319/1.319, allocations: 222.9 MB / 239.8 MB, free: 4.586 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2257/0.2257, allocations: 22.38 MB / 312.3 MB, free: 12.74 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001472/0.001472, allocations: 63.91 kB / 380.1 MB, free: 11.12 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2733/0.2748, allocations: 54.94 MB / 435.1 MB, free: 39.58 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Storage_management.Storage_tank_01_load_unload): time 0.00463/0.2795, allocations: 3.455 MB / 438.5 MB, free: 37.1 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001996/0.2815, allocations: 0.9298 MB / 439.4 MB, free: 36.43 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004181/0.282, allocations: 5.094 kB / 439.5 MB, free: 36.43 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002691/0.2822, allocations: 46.09 kB / 439.5 MB, free: 36.41 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006718/0.283, allocations: 156.4 kB / 439.7 MB, free: 36.3 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007582/0.2837, allocations: 169.5 kB / 439.8 MB, free: 36.2 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009394/0.2847, allocations: 0.8048 MB / 440.6 MB, free: 35.85 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005996/0.2853, allocations: 393.8 kB / 441 MB, free: 35.7 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004446/0.2858, allocations: 279.8 kB / 441.3 MB, free: 35.59 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005769/0.2863, allocations: 386.3 kB / 441.7 MB, free: 35.42 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001959/0.2866, allocations: 51.38 kB / 441.7 MB, free: 35.42 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002067/0.2868, allocations: 52.22 kB / 441.8 MB, free: 35.42 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002009/0.287, allocations: 180.7 kB / 441.9 MB, free: 35.33 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004014/0.2874, allocations: 310.7 kB / 442.2 MB, free: 35.16 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005865/0.288, allocations: 0.7733 MB / 443 MB, free: 34.87 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.288, allocations: 4 kB / 443 MB, free: 34.86 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.288, allocations: 0 / 443 MB, free: 34.86 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.287e-05/0.288, allocations: 0 / 443 MB, free: 34.86 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.001965/0.29, allocations: 0.8952 MB / 443.9 MB, free: 34.25 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.259e-05/0.2901, allocations: 14.56 kB / 443.9 MB, free: 34.25 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001334/0.2902, allocations: 60.25 kB / 444 MB, free: 34.22 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004463/0.2907, allocations: 390.3 kB / 444.4 MB, free: 33.91 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001075/0.2908, allocations: 106.1 kB / 444.5 MB, free: 33.83 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.734e-05/0.2909, allocations: 51.16 kB / 444.5 MB, free: 33.82 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001361/0.2922, allocations: 0.6918 MB / 445.2 MB, free: 33.57 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.576e-05/0.2923, allocations: 0 / 445.2 MB, free: 33.57 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.854e-05/0.2923, allocations: 19.84 kB / 445.2 MB, free: 33.55 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.908e-06/0.2923, allocations: 11.44 kB / 445.2 MB, free: 33.55 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001294/0.2936, allocations: 0.6078 MB / 445.8 MB, free: 33.35 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004161/0.2978, allocations: 2.588 MB / 448.4 MB, free: 31.96 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009985/0.2988, allocations: 0.5509 MB / 449 MB, free: 31.74 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007549/0.2996, allocations: 409 kB / 449.4 MB, free: 31.59 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.088e-05/0.2996, allocations: 6.125 kB / 449.4 MB, free: 31.59 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.886e-05/0.2997, allocations: 37.72 kB / 449.4 MB, free: 31.54 MB / 350.1 MB Notification: Performance of pre-optimization done (n=48): time 1.834e-06/0.2997, allocations: 0 / 449.4 MB, free: 31.54 MB / 350.1 MB Notification: Performance of matching and sorting (n=52): time 0.004824/0.3045, allocations: 2.2 MB / 451.6 MB, free: 30.59 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.641e-05/0.3046, allocations: 60.81 kB / 451.7 MB, free: 30.53 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002838/0.3048, allocations: 355.6 kB / 452 MB, free: 30.35 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.092e-05/0.3049, allocations: 36.8 kB / 452.1 MB, free: 30.31 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.366e-05/0.305, allocations: 239.2 kB / 452.3 MB, free: 30.11 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001059/0.3051, allocations: 181.6 kB / 452.5 MB, free: 29.97 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001695/0.3053, allocations: 94.66 kB / 452.6 MB, free: 29.92 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.647e-05/0.3053, allocations: 357.1 kB / 452.9 MB, free: 29.59 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007162/0.3061, allocations: 369.6 kB / 453.3 MB, free: 29.46 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007226/0.3068, allocations: 413.7 kB / 453.7 MB, free: 29.28 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006133/0.3129, allocations: 1.996 MB / 455.7 MB, free: 28.73 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.305e-06/0.313, allocations: 0 / 455.7 MB, free: 28.73 MB / 350.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001722/0.3147, allocations: 0.8545 MB / 456.5 MB, free: 28.4 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.709e-05/0.3147, allocations: 5.375 kB / 456.5 MB, free: 28.4 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.553e-06/0.3147, allocations: 2.406 kB / 456.5 MB, free: 28.4 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.791e-05/0.3148, allocations: 3.875 kB / 456.6 MB, free: 28.4 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005541/0.3203, allocations: 0.9039 MB / 457.5 MB, free: 28.37 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.992e-05/0.3203, allocations: 7.312 kB / 457.5 MB, free: 28.37 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005666/0.3209, allocations: 55.41 kB / 457.5 MB, free: 28.36 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.466e-05/0.321, allocations: 25.92 kB / 457.5 MB, free: 28.35 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.0003292/0.3213, allocations: 201.5 kB / 457.7 MB, free: 28.19 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001069/0.3214, allocations: 44.47 kB / 457.8 MB, free: 28.16 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001914/0.3234, allocations: 0.8363 MB / 458.6 MB, free: 27.84 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.093e-06/0.3234, allocations: 8.375 kB / 458.6 MB, free: 27.84 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.753e-06/0.3234, allocations: 1.844 kB / 458.6 MB, free: 27.84 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.366e-06/0.3234, allocations: 2.719 kB / 458.6 MB, free: 27.84 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003151/0.3266, allocations: 1.743 MB / 460.4 MB, free: 26.96 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.757e-06/0.3266, allocations: 1.062 kB / 460.4 MB, free: 26.96 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005713/0.3323, allocations: 0.8983 MB / 461.3 MB, free: 26.93 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.073e-05/0.3323, allocations: 2.219 kB / 461.3 MB, free: 26.93 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001347/0.3325, allocations: 17.94 kB / 461.3 MB, free: 26.92 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.548e-06/0.3325, allocations: 6.125 kB / 461.3 MB, free: 26.91 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.516e-06/0.3325, allocations: 5.156 kB / 461.3 MB, free: 26.91 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002925/0.3354, allocations: 1.265 MB / 462.6 MB, free: 26.37 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001731/0.3356, allocations: 120.4 kB / 462.7 MB, free: 26.25 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001259/0.3358, allocations: 13.08 kB / 462.7 MB, free: 26.24 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005724/0.3363, allocations: 55.52 kB / 462.8 MB, free: 26.23 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002298/0.3366, allocations: 79.02 kB / 462.8 MB, free: 26.22 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.612e-05/0.3366, allocations: 14.23 kB / 462.8 MB, free: 26.22 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003299/0.337, allocations: 264.4 kB / 463.1 MB, free: 26.07 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.337, allocations: 3.938 kB / 463.1 MB, free: 26.07 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006334/0.3376, allocations: 149.1 kB / 463.3 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.0001703/0.3378, allocations: 115.4 kB / 463.4 MB, free: 25.95 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002045/0.3398, allocations: 0.7903 MB / 464.2 MB, free: 25.7 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.328e-06/0.3399, allocations: 0 / 464.2 MB, free: 25.7 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009914/0.3409, allocations: 416.4 kB / 464.6 MB, free: 25.56 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007103/0.3416, allocations: 103.8 kB / 464.7 MB, free: 25.52 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004322/0.3459, allocations: 1.965 MB / 466.6 MB, free: 24.35 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004468/0.3464, allocations: 0.8511 MB / 467.5 MB, free: 23.63 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0005806/0.347, allocations: 101.2 kB / 467.6 MB, free: 23.61 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003034/0.3473, allocations: 51.95 kB / 467.6 MB, free: 23.6 MB / 350.1 MB Notification: Performance of SimCode: time 7.11e-07/0.3473, allocations: 3.938 kB / 467.6 MB, free: 23.6 MB / 350.1 MB Notification: Performance of Templates: time 0.01615/0.3634, allocations: 7.662 MB / 475.3 MB, free: 21.3 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)