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.001442/0.001442, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.001515/0.001515, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.45/1.45, allocations: 223.2 MB / 239.9 MB, free: 5.43 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2393/0.2393, allocations: 22.33 MB / 313.3 MB, free: 13.24 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004574/0.0004575, allocations: 8 kB / 381.8 MB, free: 10.66 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3559/0.3564, allocations: 55.98 MB / 437.8 MB, free: 39.21 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Storage_management.Storage_tank_01_load_unload): time 0.00281/0.3593, allocations: 2.71 MB / 440.5 MB, free: 37.23 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001618/0.361, allocations: 0.9297 MB / 441.5 MB, free: 36.57 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001665/0.3611, allocations: 6.781 kB / 441.5 MB, free: 36.56 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001715/0.3613, allocations: 52.17 kB / 441.5 MB, free: 36.54 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002819/0.3616, allocations: 177.2 kB / 441.7 MB, free: 36.41 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004989/0.3621, allocations: 142.9 kB / 441.8 MB, free: 36.32 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004956/0.3626, allocations: 466.2 kB / 442.3 MB, free: 36.09 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004674/0.3631, allocations: 348.2 kB / 442.6 MB, free: 35.96 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002526/0.3634, allocations: 256.1 kB / 442.9 MB, free: 35.86 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003819/0.3637, allocations: 331.6 kB / 443.2 MB, free: 35.72 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.842e-05/0.3638, allocations: 46.28 kB / 443.2 MB, free: 35.72 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.452e-05/0.3639, allocations: 46.28 kB / 443.3 MB, free: 35.72 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001363/0.3641, allocations: 162.7 kB / 443.4 MB, free: 35.64 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001031/0.3642, allocations: 125.3 kB / 443.6 MB, free: 35.57 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004032/0.3646, allocations: 0.5809 MB / 444.1 MB, free: 35.45 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.745e-06/0.3646, allocations: 0 / 444.1 MB, free: 35.45 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.3646, allocations: 2.594 kB / 444.1 MB, free: 35.45 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.965e-06/0.3646, allocations: 0 / 444.1 MB, free: 35.45 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.0016/0.3662, allocations: 0.8102 MB / 445 MB, free: 34.89 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.699e-05/0.3663, allocations: 9.75 kB / 445 MB, free: 34.89 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001198/0.3664, allocations: 64.28 kB / 445 MB, free: 34.86 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005144/0.3669, allocations: 381.1 kB / 445.4 MB, free: 34.55 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001311/0.3671, allocations: 110.8 kB / 445.5 MB, free: 34.47 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.402e-05/0.3672, allocations: 55.19 kB / 445.6 MB, free: 34.45 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001465/0.3686, allocations: 0.7233 MB / 446.3 MB, free: 34.2 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.151e-05/0.3687, allocations: 6.781 kB / 446.3 MB, free: 34.2 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.548e-05/0.3687, allocations: 19.09 kB / 446.3 MB, free: 34.18 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.451e-05/0.3688, allocations: 12.03 kB / 446.3 MB, free: 34.18 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001347/0.3701, allocations: 0.6516 MB / 447 MB, free: 33.98 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004536/0.3747, allocations: 2.669 MB / 449.6 MB, free: 32.59 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001097/0.3758, allocations: 0.5877 MB / 450.2 MB, free: 32.37 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.858e-05/0.3759, allocations: 17.19 kB / 450.2 MB, free: 32.36 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.922e-05/0.3759, allocations: 38.88 kB / 450.3 MB, free: 32.31 MB / 350.1 MB Notification: Performance of pre-optimization done (n=48): time 2.084e-06/0.3759, allocations: 0 / 450.3 MB, free: 32.31 MB / 350.1 MB Notification: Performance of matching and sorting (n=52): time 0.005272/0.3812, allocations: 2.372 MB / 452.7 MB, free: 31.36 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.57e-05/0.3812, allocations: 55.72 kB / 452.7 MB, free: 31.29 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003191/0.3816, allocations: 361.6 kB / 453.1 MB, free: 31.11 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.836e-05/0.3816, allocations: 37.55 kB / 453.1 MB, free: 31.07 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000119/0.3817, allocations: 222.8 kB / 453.3 MB, free: 30.88 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001216/0.3819, allocations: 192.4 kB / 453.5 MB, free: 30.73 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.637e-05/0.3819, allocations: 11.38 kB / 453.5 MB, free: 30.72 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.824e-05/0.382, allocations: 352.8 kB / 453.9 MB, free: 30.39 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007848/0.3828, allocations: 403.4 kB / 454.3 MB, free: 30.26 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009406/0.3838, allocations: 445.1 kB / 454.7 MB, free: 30.08 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008256/0.3846, allocations: 384.9 kB / 455.1 MB, free: 29.95 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.3846, allocations: 0 / 455.1 MB, free: 29.95 MB / 350.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.002346/0.387, allocations: 0.9145 MB / 456 MB, free: 29.62 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.04e-05/0.387, allocations: 12.53 kB / 456 MB, free: 29.61 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.094e-05/0.387, allocations: 1.25 kB / 456 MB, free: 29.61 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.504e-05/0.387, allocations: 4.156 kB / 456 MB, free: 29.61 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006555/0.3936, allocations: 1.203 MB / 457.2 MB, free: 29.54 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.603e-05/0.3937, allocations: 12.11 kB / 457.2 MB, free: 29.54 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000879/0.3946, allocations: 79.92 kB / 457.3 MB, free: 29.52 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.616e-05/0.3947, allocations: 21.5 kB / 457.3 MB, free: 29.52 MB / 350.1 MB Warning: Assuming fixed start value for the following 5 variables: H.Ec:VARIABLE(flow=false fixed = true ) type: Real H.Tfo:VARIABLE(min = 0.0 start = H.Tstart unit = "K" fixed = true nominal = 300.0 ) "outlet fluid temp" type: Real stank.Tcold:VARIABLE(min = 0.0 start = stank.Tcoldstart unit = "K" fixed = true nominal = 300.0 stateSelect=StateSelect.prefer ) type: Real stank.Thot:VARIABLE(min = 0.0 start = stank.Thotstart unit = "K" fixed = true nominal = 300.0 stateSelect=StateSelect.prefer ) type: Real stank.lcold:VARIABLE(start = stank.lcoldstart unit = "m" fixed = true stateSelect=StateSelect.prefer ) "cold height" 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006036/0.3953, allocations: 192 kB / 457.5 MB, free: 29.36 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001386/0.3954, allocations: 40.16 kB / 457.5 MB, free: 29.34 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002391/0.3978, allocations: 0.9068 MB / 458.4 MB, free: 29 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.514e-05/0.3978, allocations: 5.562 kB / 458.5 MB, free: 29 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.424e-06/0.3979, allocations: 0 / 458.5 MB, free: 29 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.165e-05/0.3979, allocations: 12.19 kB / 458.5 MB, free: 29 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004385/0.4023, allocations: 1.831 MB / 460.3 MB, free: 28.1 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.939e-06/0.4023, allocations: 1.062 kB / 460.3 MB, free: 28.1 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006753/0.4091, allocations: 1.191 MB / 461.5 MB, free: 28.04 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.245e-05/0.4091, allocations: 2.469 kB / 461.5 MB, free: 28.04 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.942e-05/0.4092, allocations: 17.44 kB / 461.5 MB, free: 28.03 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.175e-06/0.4092, allocations: 2.25 kB / 461.5 MB, free: 28.03 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.887e-06/0.4092, allocations: 1.5 kB / 461.5 MB, free: 28.03 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003102/0.4123, allocations: 1.392 MB / 462.9 MB, free: 27.44 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001834/0.4125, allocations: 117.6 kB / 463 MB, free: 27.32 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.55e-05/0.4126, allocations: 18.12 kB / 463 MB, free: 27.31 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005994/0.4133, allocations: 73.66 kB / 463.1 MB, free: 27.3 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00022/0.4135, allocations: 77.33 kB / 463.2 MB, free: 27.29 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.086e-05/0.4135, allocations: 18.09 kB / 463.2 MB, free: 27.28 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000397/0.4139, allocations: 252.9 kB / 463.4 MB, free: 27.14 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.122e-06/0.414, allocations: 1.125 kB / 463.4 MB, free: 27.14 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006676/0.4146, allocations: 144.7 kB / 463.6 MB, free: 27.13 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001885/0.4148, allocations: 126.5 kB / 463.7 MB, free: 27.02 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002199/0.417, allocations: 0.8521 MB / 464.6 MB, free: 26.77 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.129e-06/0.4171, allocations: 1.375 kB / 464.6 MB, free: 26.77 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00106/0.4181, allocations: 454.3 kB / 465 MB, free: 26.62 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000504/0.4186, allocations: 95.77 kB / 465.1 MB, free: 26.59 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003963/0.4226, allocations: 2.127 MB / 467.2 MB, free: 25.39 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004724/0.4231, allocations: 0.8689 MB / 468.1 MB, free: 24.68 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0005208/0.4236, allocations: 92.2 kB / 468.2 MB, free: 24.66 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002422/0.4239, allocations: 48.14 kB / 468.2 MB, free: 24.65 MB / 350.1 MB Notification: Performance of SimCode: time 8.22e-07/0.4239, allocations: 0 / 468.2 MB, free: 24.65 MB / 350.1 MB Notification: Performance of Templates: time 0.01523/0.4391, allocations: 7.306 MB / 475.5 MB, free: 22.93 MB / 350.1 MB make -j1 -f AES_AES.Coursework.ThermSys_control_problems.Storage_management.Storage_tank_01_load_unload.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: