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.001352/0.001352, allocations: 108 kB / 15.6 MB, free: 132 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.001603/0.001603, allocations: 193.7 kB / 16.53 MB, free: 6.391 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.46/1.46, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2071/0.2071, allocations: 22.35 MB / 312.7 MB, free: 12.59 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00212/0.00212, allocations: 59.89 kB / 380.8 MB, free: 10.57 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.376/0.3782, allocations: 54.94 MB / 435.8 MB, free: 39.98 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Storage_management.Storage_tank_01_load_unload): time 0.003931/0.3822, allocations: 3.21 MB / 439 MB, free: 37.67 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001345/0.3835, allocations: 0.9129 MB / 439.9 MB, free: 37.02 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001489/0.3837, allocations: 2.781 kB / 439.9 MB, free: 37.02 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001738/0.3839, allocations: 64.45 kB / 440 MB, free: 36.98 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002645/0.3841, allocations: 166 kB / 440.1 MB, free: 36.87 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004397/0.3846, allocations: 204.8 kB / 440.3 MB, free: 36.75 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005463/0.3852, allocations: 0.7333 MB / 441 MB, free: 36.4 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000489/0.3856, allocations: 449.5 kB / 441.5 MB, free: 36.22 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002514/0.3859, allocations: 304.9 kB / 441.8 MB, free: 36.08 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003669/0.3863, allocations: 395.2 kB / 442.2 MB, free: 35.9 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.943e-05/0.3864, allocations: 76.06 kB / 442.2 MB, free: 35.9 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001125/0.3865, allocations: 77.03 kB / 442.3 MB, free: 35.9 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001555/0.3867, allocations: 213.6 kB / 442.5 MB, free: 35.78 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002664/0.3869, allocations: 334.7 kB / 442.9 MB, free: 35.58 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005584/0.3875, allocations: 0.7876 MB / 443.6 MB, free: 35.28 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.871e-06/0.3875, allocations: 0 / 443.6 MB, free: 35.28 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.3875, allocations: 0 / 443.6 MB, free: 35.28 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.031e-05/0.3876, allocations: 0 / 443.6 MB, free: 35.28 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.001723/0.3893, allocations: 0.9062 MB / 444.5 MB, free: 34.66 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.571e-05/0.3893, allocations: 9.219 kB / 444.6 MB, free: 34.66 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001279/0.3895, allocations: 60.56 kB / 444.6 MB, free: 34.63 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000458/0.3899, allocations: 397 kB / 445 MB, free: 34.31 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001185/0.3901, allocations: 111.7 kB / 445.1 MB, free: 34.23 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.36e-05/0.3902, allocations: 52.88 kB / 445.2 MB, free: 34.21 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001357/0.3915, allocations: 0.6919 MB / 445.9 MB, free: 33.96 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.711e-05/0.3915, allocations: 3.938 kB / 445.9 MB, free: 33.96 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.952e-05/0.3916, allocations: 22.38 kB / 445.9 MB, free: 33.94 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.116e-05/0.3916, allocations: 8.812 kB / 445.9 MB, free: 33.94 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001296/0.3929, allocations: 0.6076 MB / 446.5 MB, free: 33.75 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004341/0.3973, allocations: 2.575 MB / 449.1 MB, free: 32.36 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001094/0.3984, allocations: 0.5571 MB / 449.6 MB, free: 32.14 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008246/0.3992, allocations: 411.3 kB / 450 MB, free: 31.99 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.887e-05/0.3993, allocations: 8.203 kB / 450 MB, free: 31.99 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.849e-05/0.3993, allocations: 37.97 kB / 450.1 MB, free: 31.94 MB / 350.1 MB Notification: Performance of pre-optimization done (n=48): time 2.525e-06/0.3994, allocations: 0 / 450.1 MB, free: 31.94 MB / 350.1 MB Notification: Performance of matching and sorting (n=52): time 0.005548/0.4049, allocations: 2.201 MB / 452.3 MB, free: 30.99 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.761e-05/0.405, allocations: 56.91 kB / 452.3 MB, free: 30.93 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004348/0.4054, allocations: 352.6 kB / 452.7 MB, free: 30.75 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.688e-05/0.4055, allocations: 36.86 kB / 452.7 MB, free: 30.71 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001359/0.4056, allocations: 229.7 kB / 452.9 MB, free: 30.52 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001482/0.4058, allocations: 188.6 kB / 453.1 MB, free: 30.38 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001842/0.4059, allocations: 93.41 kB / 453.2 MB, free: 30.33 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001036/0.4061, allocations: 357.5 kB / 453.6 MB, free: 29.99 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008223/0.4069, allocations: 367.8 kB / 453.9 MB, free: 29.87 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008879/0.4078, allocations: 416.2 kB / 454.3 MB, free: 29.69 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006403/0.4142, allocations: 2.001 MB / 456.3 MB, free: 29.13 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.277e-06/0.4142, allocations: 0 / 456.3 MB, free: 29.13 MB / 350.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001943/0.4162, allocations: 0.8506 MB / 457.2 MB, free: 28.8 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.524e-05/0.4162, allocations: 6.328 kB / 457.2 MB, free: 28.8 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.456e-06/0.4162, allocations: 1.312 kB / 457.2 MB, free: 28.8 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.609e-05/0.4163, allocations: 4.312 kB / 457.2 MB, free: 28.8 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005998/0.4223, allocations: 0.9096 MB / 458.1 MB, free: 28.77 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.694e-05/0.4223, allocations: 4.797 kB / 458.1 MB, free: 28.77 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005837/0.4229, allocations: 59.42 kB / 458.2 MB, free: 28.76 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.39e-05/0.4229, allocations: 20.06 kB / 458.2 MB, free: 28.75 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.0004017/0.4234, allocations: 197.8 kB / 458.4 MB, free: 28.59 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001031/0.4235, allocations: 48.25 kB / 458.4 MB, free: 28.57 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002169/0.4256, allocations: 0.84 MB / 459.3 MB, free: 28.24 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.044e-05/0.4257, allocations: 5.5 kB / 459.3 MB, free: 28.24 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.674e-06/0.4257, allocations: 1.094 kB / 459.3 MB, free: 28.24 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.065e-06/0.4257, allocations: 1.969 kB / 459.3 MB, free: 28.24 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003353/0.429, allocations: 1.744 MB / 461 MB, free: 27.36 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.861e-06/0.4291, allocations: 5.062 kB / 461 MB, free: 27.36 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006079/0.4352, allocations: 0.901 MB / 461.9 MB, free: 27.32 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.608e-05/0.4352, allocations: 3.188 kB / 461.9 MB, free: 27.32 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001221/0.4353, allocations: 20.78 kB / 461.9 MB, free: 27.31 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.781e-06/0.4353, allocations: 2.859 kB / 462 MB, free: 27.31 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.4353, allocations: 1.094 kB / 462 MB, free: 27.31 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002892/0.4382, allocations: 1.277 MB / 463.2 MB, free: 26.76 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001779/0.4384, allocations: 116.6 kB / 463.3 MB, free: 26.64 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.063e-05/0.4385, allocations: 16.8 kB / 463.4 MB, free: 26.63 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005474/0.4391, allocations: 54.33 kB / 463.4 MB, free: 26.62 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000183/0.4393, allocations: 70.38 kB / 463.5 MB, free: 26.61 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.479e-05/0.4393, allocations: 16.66 kB / 463.5 MB, free: 26.61 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000301/0.4396, allocations: 257.5 kB / 463.7 MB, free: 26.47 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.4396, allocations: 7.938 kB / 463.8 MB, free: 26.46 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005333/0.4402, allocations: 149 kB / 463.9 MB, free: 26.44 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.0001457/0.4403, allocations: 118.2 kB / 464 MB, free: 26.34 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002361/0.4427, allocations: 0.8444 MB / 464.9 MB, free: 26.07 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.011e-06/0.4427, allocations: 4.312 kB / 464.9 MB, free: 26.06 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009582/0.4437, allocations: 416.9 kB / 465.3 MB, free: 25.93 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005559/0.4443, allocations: 104.2 kB / 465.4 MB, free: 25.89 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003586/0.4479, allocations: 1.782 MB / 467.2 MB, free: 24.89 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003438/0.4482, allocations: 0.8528 MB / 468 MB, free: 24.18 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000422/0.4486, allocations: 96.97 kB / 468.1 MB, free: 24.16 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000228/0.4489, allocations: 51.53 kB / 468.2 MB, free: 24.15 MB / 350.1 MB Notification: Performance of SimCode: time 6.51e-07/0.4489, allocations: 0 / 468.2 MB, free: 24.15 MB / 350.1 MB Notification: Performance of Templates: time 0.01478/0.4637, allocations: 8.346 MB / 476.5 MB, free: 20.93 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)