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.007374/0.007374, allocations: 100.9 kB / 15.73 MB, free: 5.562 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.001743/0.001743, allocations: 195.2 kB / 16.67 MB, free: 5.504 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.328/1.328, allocations: 222.9 MB / 240.4 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.09139/0.09139, allocations: 22.33 MB / 312.8 MB, free: 8.859 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001263/0.001263, allocations: 63.89 kB / 437.1 MB, free: 11.71 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09888/0.1002, allocations: 54.95 MB / 492 MB, free: 4.707 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Storage_management.Storage_tank_01_load_unload): time 0.005129/0.1053, allocations: 3.217 MB / 495.2 MB, free: 1.465 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001904/0.1073, allocations: 0.8924 MB / 496.1 MB, free: 0.5664 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001642/0.1075, allocations: 8 kB / 496.1 MB, free: 0.5586 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002286/0.1077, allocations: 71.28 kB / 496.2 MB, free: 500 kB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003279/0.1081, allocations: 166.7 kB / 496.3 MB, free: 332 kB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005593/0.1087, allocations: 199.6 kB / 496.5 MB, free: 132 kB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007206/0.1094, allocations: 0.7483 MB / 497.3 MB, free: 15.38 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005595/0.11, allocations: 449.7 kB / 497.7 MB, free: 14.93 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003112/0.1103, allocations: 307.1 kB / 498 MB, free: 14.63 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004967/0.1108, allocations: 398.6 kB / 498.4 MB, free: 14.24 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001025/0.1109, allocations: 76 kB / 498.5 MB, free: 14.17 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001103/0.111, allocations: 76 kB / 498.6 MB, free: 14.09 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001809/0.1112, allocations: 203.4 kB / 498.8 MB, free: 13.89 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002942/0.1115, allocations: 334.6 kB / 499.1 MB, free: 13.57 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006783/0.1122, allocations: 0.7982 MB / 499.9 MB, free: 12.77 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.139e-06/0.1122, allocations: 0 / 499.9 MB, free: 12.77 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.404e-06/0.1122, allocations: 4 kB / 499.9 MB, free: 12.76 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.067e-06/0.1122, allocations: 0 / 499.9 MB, free: 12.76 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.001923/0.1142, allocations: 0.9081 MB / 0.4891 GB, free: 11.8 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.744e-05/0.1142, allocations: 8.031 kB / 0.4891 GB, free: 11.8 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001356/0.1143, allocations: 64.28 kB / 0.4891 GB, free: 11.73 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005559/0.1149, allocations: 388.1 kB / 0.4895 GB, free: 11.32 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001401/0.1151, allocations: 109 kB / 0.4896 GB, free: 11.2 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.71e-05/0.1152, allocations: 48.38 kB / 0.4897 GB, free: 11.16 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001463/0.1166, allocations: 0.6974 MB / 0.4903 GB, free: 10.45 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.029e-05/0.1167, allocations: 0 / 0.4903 GB, free: 10.45 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.206e-05/0.1167, allocations: 20 kB / 0.4904 GB, free: 10.43 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.184e-05/0.1168, allocations: 12 kB / 0.4904 GB, free: 10.42 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001376/0.1181, allocations: 0.605 MB / 0.491 GB, free: 9.816 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004946/0.1231, allocations: 2.563 MB / 0.4935 GB, free: 7.184 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001095/0.1242, allocations: 0.5475 MB / 0.494 GB, free: 6.629 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008252/0.1251, allocations: 405.9 kB / 0.4944 GB, free: 6.23 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.006e-05/0.1251, allocations: 8.438 kB / 0.4944 GB, free: 6.223 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.199e-05/0.1252, allocations: 39 kB / 0.4944 GB, free: 6.176 MB / 382.1 MB Notification: Performance of pre-optimization done (n=48): time 2.184e-06/0.1252, allocations: 4 kB / 0.4944 GB, free: 6.172 MB / 382.1 MB Notification: Performance of matching and sorting (n=52): time 0.005531/0.1307, allocations: 2.198 MB / 0.4966 GB, free: 3.922 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.724e-05/0.1308, allocations: 59.78 kB / 0.4966 GB, free: 3.852 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003932/0.1312, allocations: 361.6 kB / 0.497 GB, free: 3.488 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.712e-05/0.1312, allocations: 33.7 kB / 0.497 GB, free: 3.449 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001636/0.1314, allocations: 228.4 kB / 0.4972 GB, free: 3.223 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001521/0.1316, allocations: 185.3 kB / 0.4974 GB, free: 3.039 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000187/0.1318, allocations: 94.23 kB / 0.4975 GB, free: 2.941 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001573/0.1319, allocations: 354.8 kB / 0.4978 GB, free: 2.586 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000798/0.1327, allocations: 378.7 kB / 0.4982 GB, free: 2.215 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008021/0.1335, allocations: 411.1 kB / 0.4986 GB, free: 1.793 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2404/0.3739, allocations: 1.999 MB / 0.5005 GB, free: 22.13 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.928e-06/0.374, allocations: 1.781 kB / 0.5005 GB, free: 22.13 MB / 382.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001951/0.3759, allocations: 0.8528 MB / 0.5014 GB, free: 22.09 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.525e-05/0.376, allocations: 5.688 kB / 0.5014 GB, free: 22.09 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.038e-05/0.376, allocations: 2.656 kB / 0.5014 GB, free: 22.09 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.427e-05/0.376, allocations: 2.594 kB / 0.5014 GB, free: 22.09 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005524/0.3815, allocations: 0.9109 MB / 0.5023 GB, free: 22.09 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.479e-05/0.3816, allocations: 4.984 kB / 0.5023 GB, free: 22.09 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005666/0.3821, allocations: 53.89 kB / 0.5023 GB, free: 22.09 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.822e-05/0.3822, allocations: 24 kB / 0.5023 GB, free: 22.09 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.0004178/0.3826, allocations: 200.5 kB / 0.5025 GB, free: 21.97 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.471e-05/0.3827, allocations: 46.38 kB / 0.5026 GB, free: 21.97 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002064/0.3848, allocations: 0.8248 MB / 0.5034 GB, free: 21.93 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.474e-06/0.3848, allocations: 5.922 kB / 0.5034 GB, free: 21.93 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.664e-06/0.3848, allocations: 1.688 kB / 0.5034 GB, free: 21.93 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.005e-05/0.3848, allocations: 8.438 kB / 0.5034 GB, free: 21.93 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003111/0.388, allocations: 1.735 MB / 0.5051 GB, free: 21.57 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.138e-06/0.388, allocations: 6.281 kB / 0.5051 GB, free: 21.57 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006474/0.3945, allocations: 0.8964 MB / 0.506 GB, free: 21.55 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.246e-05/0.3945, allocations: 6.938 kB / 0.506 GB, free: 21.55 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.739e-05/0.3946, allocations: 19.83 kB / 0.506 GB, free: 21.55 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.272e-06/0.3946, allocations: 3.859 kB / 0.506 GB, free: 21.55 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.186e-06/0.3946, allocations: 0 / 0.506 GB, free: 21.55 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002751/0.3973, allocations: 1.269 MB / 0.5072 GB, free: 21.38 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001039/0.3975, allocations: 116.5 kB / 0.5074 GB, free: 21.29 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.26e-05/0.3975, allocations: 16.78 kB / 0.5074 GB, free: 21.29 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004889/0.398, allocations: 58.25 kB / 0.5074 GB, free: 21.28 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002113/0.3983, allocations: 70.84 kB / 0.5075 GB, free: 21.28 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.114e-05/0.3983, allocations: 20.97 kB / 0.5075 GB, free: 21.28 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003234/0.3986, allocations: 252.9 kB / 0.5078 GB, free: 21.2 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.91e-07/0.3987, allocations: 3.625 kB / 0.5078 GB, free: 21.2 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000544/0.3992, allocations: 144 kB / 0.5079 GB, free: 21.2 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.0001612/0.3994, allocations: 119.5 kB / 0.508 GB, free: 21.11 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001938/0.4013, allocations: 0.7868 MB / 0.5088 GB, free: 21.09 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.885e-06/0.4013, allocations: 4.562 kB / 0.5088 GB, free: 21.09 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009354/0.4023, allocations: 422.7 kB / 0.5092 GB, free: 21.09 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005906/0.4029, allocations: 98.27 kB / 0.5093 GB, free: 21.09 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003792/0.4067, allocations: 1.763 MB / 0.511 GB, free: 20.36 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004206/0.4071, allocations: 0.8528 MB / 0.5118 GB, free: 19.65 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004141/0.4075, allocations: 95.34 kB / 0.5119 GB, free: 19.63 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003178/0.4079, allocations: 54.22 kB / 0.512 GB, free: 19.62 MB / 382.1 MB Notification: Performance of SimCode: time 4.01e-07/0.4079, allocations: 2.062 kB / 0.512 GB, free: 19.62 MB / 382.1 MB Notification: Performance of Templates: time 0.01793/0.4258, allocations: 8.699 MB / 0.5205 GB, free: 16.93 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)