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.0009021/0.0009022, 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.005346/0.005346, allocations: 169.4 kB / 16.26 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.444/1.444, allocations: 223.3 MB / 240.3 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2256/0.2256, allocations: 22.33 MB / 313.8 MB, free: 13.09 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003516/0.0003516, allocations: 8.281 kB / 382.6 MB, free: 10.15 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3371/0.3375, allocations: 55.99 MB / 438.6 MB, free: 39.35 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Storage_management.Storage_tank_01_load_unload): time 0.003325/0.3409, allocations: 3.056 MB / 441.6 MB, free: 37.09 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001593/0.3425, allocations: 0.9322 MB / 442.6 MB, free: 36.41 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001709/0.3427, allocations: 2.812 kB / 442.6 MB, free: 36.41 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000169/0.3429, allocations: 49.17 kB / 442.6 MB, free: 36.39 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003064/0.3432, allocations: 150.6 kB / 442.8 MB, free: 36.29 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004716/0.3437, allocations: 165.4 kB / 442.9 MB, free: 36.19 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006591/0.3443, allocations: 0.8052 MB / 443.7 MB, free: 35.84 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004932/0.3448, allocations: 380.9 kB / 444.1 MB, free: 35.7 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003104/0.3452, allocations: 270.9 kB / 444.4 MB, free: 35.59 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004328/0.3456, allocations: 370.1 kB / 444.7 MB, free: 35.43 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.339e-05/0.3457, allocations: 45.09 kB / 444.8 MB, free: 35.43 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.365e-05/0.3458, allocations: 44.69 kB / 444.8 MB, free: 35.43 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001508/0.3459, allocations: 173.5 kB / 445 MB, free: 35.35 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002977/0.3463, allocations: 327.5 kB / 445.3 MB, free: 35.16 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005717/0.3468, allocations: 0.7578 MB / 446.1 MB, free: 34.92 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.3468, allocations: 0 / 446.1 MB, free: 34.92 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.255e-06/0.3469, allocations: 4 kB / 446.1 MB, free: 34.92 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.616e-06/0.3469, allocations: 0 / 446.1 MB, free: 34.92 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.001674/0.3485, allocations: 0.7961 MB / 446.9 MB, free: 34.36 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.397e-05/0.3486, allocations: 13.03 kB / 446.9 MB, free: 34.36 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001382/0.3487, allocations: 74.02 kB / 446.9 MB, free: 34.32 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000523/0.3493, allocations: 380.4 kB / 447.3 MB, free: 34.02 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001412/0.3494, allocations: 111.9 kB / 447.4 MB, free: 33.94 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001123/0.3495, allocations: 52.38 kB / 447.5 MB, free: 33.92 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001571/0.3511, allocations: 0.735 MB / 448.2 MB, free: 33.67 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.956e-05/0.3512, allocations: 4 kB / 448.2 MB, free: 33.66 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.757e-05/0.3512, allocations: 18.84 kB / 448.2 MB, free: 33.65 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.245e-05/0.3513, allocations: 15.91 kB / 448.3 MB, free: 33.64 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001421/0.3527, allocations: 0.6475 MB / 448.9 MB, free: 33.45 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004977/0.3577, allocations: 2.684 MB / 451.6 MB, free: 32.04 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00124/0.3589, allocations: 0.5908 MB / 452.2 MB, free: 31.82 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008884/0.3598, allocations: 442 kB / 452.6 MB, free: 31.67 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.458e-05/0.3599, allocations: 8.156 kB / 452.6 MB, free: 31.66 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.653e-05/0.3599, allocations: 38.09 kB / 452.7 MB, free: 31.62 MB / 350.1 MB Notification: Performance of pre-optimization done (n=48): time 2.785e-06/0.36, allocations: 0 / 452.7 MB, free: 31.62 MB / 350.1 MB Notification: Performance of matching and sorting (n=52): time 0.005815/0.3658, allocations: 2.373 MB / 455 MB, free: 30.66 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.379e-05/0.3658, allocations: 57.38 kB / 455.1 MB, free: 30.6 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004391/0.3663, allocations: 362.5 kB / 455.4 MB, free: 30.41 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.233e-05/0.3663, allocations: 44.23 kB / 455.5 MB, free: 30.37 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001366/0.3665, allocations: 231 kB / 455.7 MB, free: 30.18 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001429/0.3666, allocations: 188 kB / 455.9 MB, free: 30.03 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.41e-05/0.3667, allocations: 53.31 kB / 455.9 MB, free: 29.99 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.979e-05/0.3668, allocations: 354.1 kB / 456.3 MB, free: 29.66 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009497/0.3678, allocations: 407.6 kB / 456.7 MB, free: 29.53 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009999/0.3688, allocations: 448.3 kB / 457.1 MB, free: 29.35 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007389/0.3762, allocations: 2.244 MB / 459.4 MB, free: 28.77 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.787e-06/0.3763, allocations: 0 / 459.4 MB, free: 28.77 MB / 350.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.002157/0.3784, allocations: 0.9228 MB / 460.3 MB, free: 28.43 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.49e-05/0.3785, allocations: 5.281 kB / 460.3 MB, free: 28.43 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.021e-05/0.3785, allocations: 1.125 kB / 460.3 MB, free: 28.43 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.226e-05/0.3785, allocations: 8.344 kB / 460.3 MB, free: 28.43 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007025/0.3855, allocations: 1.193 MB / 461.5 MB, free: 28.37 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.277e-05/0.3856, allocations: 8.953 kB / 461.5 MB, free: 28.36 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000744/0.3864, allocations: 75.78 kB / 461.6 MB, free: 28.35 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.085e-05/0.3864, allocations: 21.33 kB / 461.6 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.0004169/0.3868, allocations: 201.5 kB / 461.8 MB, free: 28.18 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001121/0.387, allocations: 50.17 kB / 461.8 MB, free: 28.16 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002302/0.3893, allocations: 0.9075 MB / 462.8 MB, free: 27.82 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.028e-05/0.3893, allocations: 5.281 kB / 462.8 MB, free: 27.82 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.795e-06/0.3893, allocations: 0 / 462.8 MB, free: 27.82 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.036e-05/0.3893, allocations: 11.41 kB / 462.8 MB, free: 27.82 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003709/0.393, allocations: 1.82 MB / 464.6 MB, free: 26.94 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.109e-06/0.3931, allocations: 2.016 kB / 464.6 MB, free: 26.94 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007113/0.4002, allocations: 1.191 MB / 465.8 MB, free: 26.87 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.789e-05/0.4002, allocations: 2.75 kB / 465.8 MB, free: 26.87 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001065/0.4004, allocations: 21.3 kB / 465.8 MB, free: 26.86 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.651e-06/0.4004, allocations: 1.375 kB / 465.8 MB, free: 26.86 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.657e-06/0.4004, allocations: 1.375 kB / 465.8 MB, free: 26.86 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003191/0.4036, allocations: 1.378 MB / 467.2 MB, free: 26.3 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001642/0.4037, allocations: 120.4 kB / 467.3 MB, free: 26.18 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001136/0.4039, allocations: 13.45 kB / 467.3 MB, free: 26.17 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006389/0.4045, allocations: 74.45 kB / 467.4 MB, free: 26.16 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002204/0.4047, allocations: 70.64 kB / 467.5 MB, free: 26.15 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.707e-05/0.4048, allocations: 18.05 kB / 467.5 MB, free: 26.14 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003545/0.4052, allocations: 256 kB / 467.7 MB, free: 26.01 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.2e-07/0.4052, allocations: 0 / 467.7 MB, free: 26.01 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007269/0.4059, allocations: 149.3 kB / 467.9 MB, free: 25.99 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.0001779/0.4061, allocations: 122.3 kB / 468 MB, free: 25.88 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00232/0.4084, allocations: 0.8565 MB / 468.8 MB, free: 25.62 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.197e-06/0.4085, allocations: 5.375 kB / 468.9 MB, free: 25.62 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001086/0.4095, allocations: 456.3 kB / 469.3 MB, free: 25.48 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007402/0.4103, allocations: 100.6 kB / 469.4 MB, free: 25.44 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004339/0.4146, allocations: 2.151 MB / 471.5 MB, free: 24.21 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004042/0.4151, allocations: 0.8573 MB / 472.4 MB, free: 23.49 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0005704/0.4157, allocations: 100.2 kB / 472.5 MB, free: 23.47 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002926/0.416, allocations: 47.06 kB / 472.6 MB, free: 23.46 MB / 350.1 MB Notification: Performance of SimCode: time 6.61e-07/0.416, allocations: 0 / 472.6 MB, free: 23.46 MB / 350.1 MB Notification: Performance of Templates: time 0.01827/0.4342, allocations: 7.579 MB / 480.1 MB, free: 19.23 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)