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.0009967/0.0009967, allocations: 98.19 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.007845/0.007845, allocations: 169.1 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.441/1.441, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2576/0.2576, allocations: 22.34 MB / 313.8 MB, free: 13.1 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004819/0.000482, allocations: 8.281 kB / 382.6 MB, free: 10.14 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3838/0.3843, allocations: 55.98 MB / 438.6 MB, free: 39.29 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Storage_management.Storage_tank_01_load_unload): time 0.002955/0.3873, allocations: 3.058 MB / 441.6 MB, free: 37.02 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001511/0.3888, allocations: 0.9313 MB / 442.6 MB, free: 36.34 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001616/0.389, allocations: 4.75 kB / 442.6 MB, free: 36.34 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001688/0.3892, allocations: 54.39 kB / 442.6 MB, free: 36.32 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000312/0.3895, allocations: 149.9 kB / 442.8 MB, free: 36.22 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004797/0.39, allocations: 161.3 kB / 442.9 MB, free: 36.12 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000694/0.3907, allocations: 0.8021 MB / 443.7 MB, free: 35.77 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000475/0.3912, allocations: 384.8 kB / 444.1 MB, free: 35.63 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002814/0.3914, allocations: 263.2 kB / 444.4 MB, free: 35.53 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000434/0.3919, allocations: 372.9 kB / 444.7 MB, free: 35.37 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.871e-05/0.392, allocations: 46.22 kB / 444.8 MB, free: 35.37 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.596e-05/0.3921, allocations: 46.5 kB / 444.8 MB, free: 35.37 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000137/0.3922, allocations: 174.7 kB / 445 MB, free: 35.28 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002513/0.3925, allocations: 328.9 kB / 445.3 MB, free: 35.09 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005745/0.3931, allocations: 0.7561 MB / 446.1 MB, free: 34.86 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.598e-06/0.3931, allocations: 0 / 446.1 MB, free: 34.86 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.843e-06/0.3931, allocations: 0 / 446.1 MB, free: 34.86 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.125e-06/0.3931, allocations: 0 / 446.1 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.001551/0.3947, allocations: 0.8026 MB / 446.9 MB, free: 34.3 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.369e-05/0.3947, allocations: 12.41 kB / 446.9 MB, free: 34.29 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001155/0.3948, allocations: 70.28 kB / 447 MB, free: 34.26 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004685/0.3953, allocations: 382.3 kB / 447.3 MB, free: 33.96 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000137/0.3954, allocations: 112.3 kB / 447.4 MB, free: 33.88 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000105/0.3956, allocations: 52.66 kB / 447.5 MB, free: 33.86 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001527/0.3971, allocations: 0.7331 MB / 448.2 MB, free: 33.6 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.804e-05/0.3971, allocations: 3.984 kB / 448.2 MB, free: 33.6 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.447e-05/0.3972, allocations: 21.59 kB / 448.2 MB, free: 33.58 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.124e-05/0.3972, allocations: 20.03 kB / 448.3 MB, free: 33.57 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001419/0.3986, allocations: 0.6413 MB / 448.9 MB, free: 33.38 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004542/0.4032, allocations: 2.684 MB / 451.6 MB, free: 31.98 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001136/0.4043, allocations: 0.5886 MB / 452.2 MB, free: 31.75 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008366/0.4052, allocations: 442.1 kB / 452.6 MB, free: 31.6 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.384e-05/0.4052, allocations: 7.531 kB / 452.6 MB, free: 31.6 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.829e-05/0.4053, allocations: 39 kB / 452.7 MB, free: 31.55 MB / 350.1 MB Notification: Performance of pre-optimization done (n=48): time 3.767e-06/0.4053, allocations: 3.984 kB / 452.7 MB, free: 31.55 MB / 350.1 MB Notification: Performance of matching and sorting (n=52): time 0.005522/0.4108, allocations: 2.374 MB / 455 MB, free: 30.59 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.238e-05/0.4109, allocations: 58.28 kB / 455.1 MB, free: 30.53 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003864/0.4113, allocations: 358 kB / 455.4 MB, free: 30.34 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.475e-05/0.4113, allocations: 35.95 kB / 455.5 MB, free: 30.3 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001238/0.4115, allocations: 233.2 kB / 455.7 MB, free: 30.11 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001434/0.4116, allocations: 190.4 kB / 455.9 MB, free: 29.96 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001002/0.4117, allocations: 51.78 kB / 455.9 MB, free: 29.93 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.054e-05/0.4118, allocations: 357.1 kB / 456.3 MB, free: 29.6 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009772/0.4128, allocations: 407.1 kB / 456.7 MB, free: 29.46 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009566/0.4138, allocations: 450.5 kB / 457.1 MB, free: 29.29 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007099/0.4209, allocations: 2.238 MB / 459.4 MB, free: 28.71 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.006e-06/0.4209, allocations: 0 / 459.4 MB, free: 28.71 MB / 350.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.002232/0.4231, allocations: 0.9178 MB / 460.3 MB, free: 28.38 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.458e-05/0.4232, allocations: 5.438 kB / 460.3 MB, free: 28.38 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.937e-06/0.4232, allocations: 5.281 kB / 460.3 MB, free: 28.37 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.948e-05/0.4232, allocations: 3.562 kB / 460.3 MB, free: 28.37 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006665/0.4299, allocations: 1.199 MB / 461.5 MB, free: 28.3 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.187e-05/0.4299, allocations: 8.391 kB / 461.5 MB, free: 28.3 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006751/0.4306, allocations: 75.14 kB / 461.6 MB, free: 28.29 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.616e-05/0.4307, allocations: 25.94 kB / 461.6 MB, free: 28.28 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.0003955/0.4311, allocations: 199.9 kB / 461.8 MB, free: 28.12 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.792e-05/0.4312, allocations: 51.94 kB / 461.8 MB, free: 28.09 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002228/0.4334, allocations: 0.9065 MB / 462.8 MB, free: 27.75 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.504e-06/0.4335, allocations: 4.875 kB / 462.8 MB, free: 27.75 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.017e-06/0.4335, allocations: 0.9062 kB / 462.8 MB, free: 27.75 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.186e-06/0.4335, allocations: 11.3 kB / 462.8 MB, free: 27.75 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003581/0.4371, allocations: 1.827 MB / 464.6 MB, free: 26.86 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.6e-06/0.4371, allocations: 5.312 kB / 464.6 MB, free: 26.86 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006737/0.4438, allocations: 1.19 MB / 465.8 MB, free: 26.79 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.487e-05/0.4439, allocations: 2.75 kB / 465.8 MB, free: 26.79 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.123e-05/0.444, allocations: 17.44 kB / 465.8 MB, free: 26.79 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.75e-06/0.444, allocations: 2.75 kB / 465.8 MB, free: 26.79 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.745e-06/0.444, allocations: 0 / 465.8 MB, free: 26.79 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003712/0.4477, allocations: 1.376 MB / 467.2 MB, free: 26.23 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002324/0.448, allocations: 119.2 kB / 467.3 MB, free: 26.11 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000134/0.4481, allocations: 18.11 kB / 467.3 MB, free: 26.09 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000695/0.4488, allocations: 73.41 kB / 467.4 MB, free: 26.08 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002895/0.4491, allocations: 71.53 kB / 467.5 MB, free: 26.07 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.175e-05/0.4492, allocations: 17.91 kB / 467.5 MB, free: 26.07 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004327/0.4496, allocations: 256.4 kB / 467.7 MB, free: 25.93 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.4497, allocations: 0 / 467.7 MB, free: 25.93 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008227/0.4505, allocations: 149.8 kB / 467.9 MB, free: 25.91 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.0002207/0.4507, allocations: 117.6 kB / 468 MB, free: 25.81 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003173/0.4539, allocations: 0.8571 MB / 468.9 MB, free: 25.55 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.602e-06/0.4539, allocations: 0 / 468.9 MB, free: 25.55 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001637/0.4556, allocations: 457 kB / 469.3 MB, free: 25.41 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001156/0.4568, allocations: 101.9 kB / 469.4 MB, free: 25.37 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006377/0.4632, allocations: 2.157 MB / 471.6 MB, free: 24.14 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006547/0.4638, allocations: 0.8534 MB / 472.4 MB, free: 23.43 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0009384/0.4648, allocations: 99.27 kB / 472.5 MB, free: 23.4 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003919/0.4652, allocations: 48.31 kB / 472.6 MB, free: 23.4 MB / 350.1 MB Notification: Performance of SimCode: time 1.323e-06/0.4652, allocations: 0 / 472.6 MB, free: 23.4 MB / 350.1 MB Notification: Performance of Templates: time 0.02554/0.4908, allocations: 7.581 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)