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.001444/0.001444, allocations: 104.3 kB / 16.4 MB, free: 6.5 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.001628/0.001628, allocations: 189.6 kB / 17.34 MB, free: 5.762 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 / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09076/0.09076, allocations: 22.32 MB / 313.5 MB, free: 8.887 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001221/0.001221, allocations: 59.91 kB / 437.7 MB, free: 11.77 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09003/0.09127, allocations: 54.95 MB / 492.7 MB, free: 4.762 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Storage_management.Storage_tank_01_load_unload): time 0.004859/0.09616, allocations: 3.207 MB / 495.9 MB, free: 1.527 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001777/0.09797, allocations: 0.9001 MB / 496.8 MB, free: 0.6211 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002986/0.09829, allocations: 4 kB / 496.8 MB, free: 0.6172 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002535/0.09856, allocations: 71.28 kB / 496.9 MB, free: 0.5469 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005471/0.09914, allocations: 170.7 kB / 497 MB, free: 388 kB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006703/0.09982, allocations: 191.7 kB / 497.2 MB, free: 196 kB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.00101/0.1008, allocations: 0.7522 MB / 498 MB, free: 15.44 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006857/0.1015, allocations: 437.8 kB / 498.4 MB, free: 15 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004402/0.102, allocations: 319.1 kB / 498.7 MB, free: 14.69 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007645/0.1028, allocations: 394.6 kB / 499.1 MB, free: 14.3 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000157/0.1029, allocations: 80 kB / 499.2 MB, free: 14.23 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001541/0.1031, allocations: 76 kB / 499.2 MB, free: 14.15 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002096/0.1033, allocations: 207.5 kB / 499.4 MB, free: 13.95 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004156/0.1037, allocations: 342.5 kB / 499.8 MB, free: 13.61 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007109/0.1045, allocations: 0.7788 MB / 0.4888 GB, free: 12.83 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.1045, allocations: 0 / 0.4888 GB, free: 12.83 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.665e-06/0.1045, allocations: 3.984 kB / 0.4888 GB, free: 12.83 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.226e-05/0.1045, allocations: 0 / 0.4888 GB, free: 12.83 MB / 382.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.002192/0.1067, allocations: 0.9081 MB / 0.4897 GB, free: 11.87 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.773e-05/0.1068, allocations: 15.97 kB / 0.4897 GB, free: 11.86 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001424/0.1069, allocations: 64.28 kB / 0.4898 GB, free: 11.79 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007102/0.1076, allocations: 388.1 kB / 0.4902 GB, free: 11.38 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001389/0.1078, allocations: 109 kB / 0.4903 GB, free: 11.26 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001115/0.1079, allocations: 52.36 kB / 0.4903 GB, free: 11.21 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001613/0.1095, allocations: 0.6897 MB / 0.491 GB, free: 10.52 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.668e-05/0.1095, allocations: 3.984 kB / 0.491 GB, free: 10.51 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.521e-05/0.1096, allocations: 20 kB / 0.491 GB, free: 10.49 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.579e-05/0.1096, allocations: 12 kB / 0.491 GB, free: 10.48 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001566/0.1112, allocations: 0.6011 MB / 0.4916 GB, free: 9.879 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005081/0.1163, allocations: 2.567 MB / 0.4941 GB, free: 7.242 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001182/0.1175, allocations: 0.5436 MB / 0.4946 GB, free: 6.691 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009107/0.1184, allocations: 405.9 kB / 0.495 GB, free: 6.293 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.55e-05/0.1185, allocations: 12.38 kB / 0.495 GB, free: 6.281 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.64e-05/0.1185, allocations: 35 kB / 0.4951 GB, free: 6.238 MB / 382.1 MB Notification: Performance of pre-optimization done (n=48): time 2.594e-06/0.1185, allocations: 0 / 0.4951 GB, free: 6.238 MB / 382.1 MB Notification: Performance of matching and sorting (n=52): time 0.005806/0.1243, allocations: 2.194 MB / 0.4972 GB, free: 3.988 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.41e-05/0.1244, allocations: 55.84 kB / 0.4973 GB, free: 3.922 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003759/0.1248, allocations: 361.6 kB / 0.4976 GB, free: 3.559 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.942e-05/0.1248, allocations: 37.64 kB / 0.4977 GB, free: 3.516 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001413/0.125, allocations: 236.4 kB / 0.4979 GB, free: 3.281 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001543/0.1251, allocations: 185.3 kB / 0.4981 GB, free: 3.098 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001826/0.1253, allocations: 90.23 kB / 0.4981 GB, free: 3.004 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001338/0.1255, allocations: 358.8 kB / 0.4985 GB, free: 2.645 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008826/0.1264, allocations: 374.7 kB / 0.4988 GB, free: 2.277 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008908/0.1273, allocations: 415.1 kB / 0.4992 GB, free: 1.852 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1947/0.322, allocations: 1.996 MB / 0.5012 GB, free: 22.05 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.777e-06/0.3221, allocations: 0 / 0.5012 GB, free: 22.05 MB / 382.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.00191/0.324, allocations: 0.8526 MB / 0.502 GB, free: 22.01 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.01e-05/0.324, allocations: 7.938 kB / 0.502 GB, free: 22.01 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.702e-06/0.324, allocations: 2.812 kB / 0.502 GB, free: 22.01 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.461e-05/0.3241, allocations: 5.062 kB / 0.502 GB, free: 22.01 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006004/0.3301, allocations: 0.907 MB / 0.5029 GB, free: 22.01 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.67e-05/0.3301, allocations: 4.5 kB / 0.5029 GB, free: 22.01 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005801/0.3307, allocations: 59.47 kB / 0.503 GB, free: 22.01 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.054e-05/0.3307, allocations: 21.66 kB / 0.503 GB, free: 22.01 MB / 382.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.0003189/0.3311, allocations: 200.8 kB / 0.5032 GB, free: 21.89 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.514e-05/0.3312, allocations: 42.75 kB / 0.5032 GB, free: 21.89 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001948/0.3331, allocations: 0.8336 MB / 0.5041 GB, free: 21.85 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.362e-06/0.3331, allocations: 7.812 kB / 0.5041 GB, free: 21.85 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.3e-06/0.3332, allocations: 2 kB / 0.5041 GB, free: 21.85 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.17e-06/0.3332, allocations: 2.438 kB / 0.5041 GB, free: 21.85 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003168/0.3363, allocations: 1.734 MB / 0.5058 GB, free: 21.48 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.188e-06/0.3364, allocations: 3.562 kB / 0.5058 GB, free: 21.48 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006408/0.3428, allocations: 0.8999 MB / 0.5066 GB, free: 21.48 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.011e-05/0.3428, allocations: 3.938 kB / 0.5066 GB, free: 21.48 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.3e-05/0.3429, allocations: 19.34 kB / 0.5067 GB, free: 21.48 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.572e-06/0.3429, allocations: 5.844 kB / 0.5067 GB, free: 21.48 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.244e-06/0.3429, allocations: 1.094 kB / 0.5067 GB, free: 21.48 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002737/0.3456, allocations: 1.269 MB / 0.5079 GB, free: 21.31 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001128/0.3458, allocations: 117 kB / 0.508 GB, free: 21.21 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.575e-05/0.3459, allocations: 17.66 kB / 0.508 GB, free: 21.21 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005525/0.3464, allocations: 52.83 kB / 0.5081 GB, free: 21.21 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001908/0.3466, allocations: 76.75 kB / 0.5082 GB, free: 21.21 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.391e-05/0.3467, allocations: 16.41 kB / 0.5082 GB, free: 21.21 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.00025/0.3469, allocations: 261.1 kB / 0.5084 GB, free: 21.12 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.3469, allocations: 0 / 0.5084 GB, free: 21.12 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004801/0.3474, allocations: 143.2 kB / 0.5086 GB, free: 21.12 MB / 382.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.0001325/0.3476, allocations: 123 kB / 0.5087 GB, free: 21.04 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001838/0.3494, allocations: 0.7899 MB / 0.5094 GB, free: 21.02 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.3494, allocations: 0 / 0.5094 GB, free: 21.02 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009105/0.3503, allocations: 415.2 kB / 0.5098 GB, free: 21.02 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000565/0.3509, allocations: 105.8 kB / 0.5099 GB, free: 21.02 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00351/0.3544, allocations: 1.798 MB / 0.5117 GB, free: 20.25 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003297/0.3548, allocations: 0.8535 MB / 0.5125 GB, free: 19.55 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003453/0.3551, allocations: 53.3 kB / 0.5126 GB, free: 19.54 MB / 382.1 MB Notification: Performance of SimCode: time 1.283e-06/0.3551, allocations: 0 / 0.5126 GB, free: 19.54 MB / 382.1 MB Notification: Performance of Templates: time 0.01148/0.3666, allocations: 7.488 MB / 0.5199 GB, free: 17.33 MB / 382.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)