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.001697/0.001697, allocations: 111.8 kB / 16.41 MB, free: 6.488 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.001893/0.001894, 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.352/1.352, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09025/0.09025, allocations: 22.32 MB / 313.5 MB, free: 8.887 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001509/0.001509, allocations: 63.89 kB / 437.7 MB, free: 11.77 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1044/0.106, allocations: 54.95 MB / 492.7 MB, free: 4.766 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Storage_management.Storage_tank_01_load_unload): time 0.004476/0.1105, allocations: 3.21 MB / 495.9 MB, free: 1.527 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001894/0.1124, allocations: 0.9002 MB / 496.8 MB, free: 0.6211 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003506/0.1128, allocations: 4 kB / 496.8 MB, free: 0.6172 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000275/0.1131, allocations: 71.28 kB / 496.9 MB, free: 0.5469 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004995/0.1136, allocations: 166.7 kB / 497 MB, free: 392 kB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006645/0.1143, allocations: 199.7 kB / 497.2 MB, free: 192 kB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009875/0.1153, allocations: 0.7522 MB / 498 MB, free: 15.43 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007239/0.1161, allocations: 433.8 kB / 498.4 MB, free: 15 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005116/0.1166, allocations: 315 kB / 498.7 MB, free: 14.7 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006294/0.1172, allocations: 398.6 kB / 499.1 MB, free: 14.3 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001525/0.1174, allocations: 76 kB / 499.2 MB, free: 14.23 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001626/0.1176, allocations: 84 kB / 499.2 MB, free: 14.15 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001928/0.1178, allocations: 199.5 kB / 499.4 MB, free: 13.95 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004067/0.1182, allocations: 338.5 kB / 499.8 MB, free: 13.62 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007788/0.119, allocations: 0.7943 MB / 0.4888 GB, free: 12.82 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.446e-06/0.119, allocations: 0 / 0.4888 GB, free: 12.82 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.119, allocations: 0 / 0.4888 GB, free: 12.82 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.185e-05/0.119, allocations: 0 / 0.4888 GB, free: 12.82 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.002181/0.1212, allocations: 0.9119 MB / 0.4897 GB, free: 11.86 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.183e-05/0.1212, allocations: 8.031 kB / 0.4897 GB, free: 11.86 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000167/0.1214, allocations: 64.28 kB / 0.4898 GB, free: 11.79 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005882/0.122, allocations: 388.1 kB / 0.4902 GB, free: 11.38 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001527/0.1222, allocations: 113 kB / 0.4903 GB, free: 11.26 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001107/0.1223, allocations: 52.36 kB / 0.4903 GB, free: 11.21 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001629/0.1239, allocations: 0.6897 MB / 0.491 GB, free: 10.51 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.956e-05/0.124, allocations: 0 / 0.491 GB, free: 10.51 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.385e-05/0.124, allocations: 16 kB / 0.491 GB, free: 10.5 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.206e-05/0.1241, allocations: 12 kB / 0.491 GB, free: 10.48 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001472/0.1255, allocations: 0.605 MB / 0.4916 GB, free: 9.879 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005234/0.1308, allocations: 2.563 MB / 0.4941 GB, free: 7.246 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001224/0.132, allocations: 0.5436 MB / 0.4946 GB, free: 6.695 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008855/0.1329, allocations: 405.9 kB / 0.495 GB, free: 6.297 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.113e-05/0.133, allocations: 13.06 kB / 0.495 GB, free: 6.285 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.32e-05/0.1331, allocations: 42.98 kB / 0.4951 GB, free: 6.234 MB / 382.1 MB Notification: Performance of pre-optimization done (n=48): time 2.585e-06/0.1331, allocations: 0 / 0.4951 GB, free: 6.234 MB / 382.1 MB Notification: Performance of matching and sorting (n=52): time 0.005828/0.1389, allocations: 2.193 MB / 0.4972 GB, free: 3.984 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.315e-05/0.139, allocations: 55.84 kB / 0.4973 GB, free: 3.918 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004419/0.1394, allocations: 361.6 kB / 0.4976 GB, free: 3.555 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.756e-05/0.1395, allocations: 33.69 kB / 0.4977 GB, free: 3.516 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001455/0.1396, allocations: 224.5 kB / 0.4979 GB, free: 3.293 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000159/0.1398, allocations: 185.3 kB / 0.4981 GB, free: 3.109 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001856/0.14, allocations: 94.23 kB / 0.4981 GB, free: 3.012 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001317/0.1401, allocations: 362.7 kB / 0.4985 GB, free: 2.648 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008632/0.141, allocations: 378.7 kB / 0.4988 GB, free: 2.277 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008641/0.1419, allocations: 411.1 kB / 0.4992 GB, free: 1.855 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2199/0.3618, allocations: 1.992 MB / 0.5012 GB, free: 22.11 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.618e-06/0.3619, allocations: 1.188 kB / 0.5012 GB, free: 22.11 MB / 382.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.002131/0.364, allocations: 0.8547 MB / 0.502 GB, free: 22.07 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.61e-05/0.3641, allocations: 6.281 kB / 0.502 GB, free: 22.07 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.347e-06/0.3641, allocations: 2.375 kB / 0.502 GB, free: 22.07 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.663e-05/0.3641, allocations: 6.625 kB / 0.502 GB, free: 22.07 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005969/0.3701, allocations: 0.9118 MB / 0.5029 GB, free: 22.07 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.346e-05/0.3702, allocations: 4.938 kB / 0.5029 GB, free: 22.07 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006478/0.3708, allocations: 57.2 kB / 0.503 GB, free: 22.07 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.655e-05/0.3709, allocations: 21.08 kB / 0.503 GB, free: 22.07 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.0004424/0.3714, allocations: 197.1 kB / 0.5032 GB, free: 21.95 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001749/0.3716, allocations: 45.14 kB / 0.5032 GB, free: 21.95 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002078/0.3736, allocations: 0.8311 MB / 0.5041 GB, free: 21.91 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.735e-06/0.3737, allocations: 5.562 kB / 0.5041 GB, free: 21.91 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.694e-06/0.3737, allocations: 0.75 kB / 0.5041 GB, free: 21.91 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.328e-06/0.3737, allocations: 6.344 kB / 0.5041 GB, free: 21.91 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003402/0.3771, allocations: 1.732 MB / 0.5058 GB, free: 21.54 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.232e-06/0.3772, allocations: 4.609 kB / 0.5058 GB, free: 21.54 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006251/0.3834, allocations: 0.9023 MB / 0.5066 GB, free: 21.54 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.875e-05/0.3835, allocations: 4.953 kB / 0.5066 GB, free: 21.54 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001218/0.3836, allocations: 17.08 kB / 0.5067 GB, free: 21.54 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.107e-05/0.3836, allocations: 6.5 kB / 0.5067 GB, free: 21.54 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.826e-06/0.3836, allocations: 2.188 kB / 0.5067 GB, free: 21.54 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002953/0.3866, allocations: 1.267 MB / 0.5079 GB, free: 21.37 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001704/0.3868, allocations: 117.7 kB / 0.508 GB, free: 21.28 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001186/0.3869, allocations: 19.67 kB / 0.508 GB, free: 21.27 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005998/0.3875, allocations: 60.28 kB / 0.5081 GB, free: 21.27 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002117/0.3877, allocations: 71.86 kB / 0.5082 GB, free: 21.27 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.427e-05/0.3878, allocations: 17.55 kB / 0.5082 GB, free: 21.27 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003118/0.3881, allocations: 254.9 kB / 0.5084 GB, free: 21.18 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.11e-07/0.3881, allocations: 0 / 0.5084 GB, free: 21.18 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005902/0.3887, allocations: 144.3 kB / 0.5086 GB, free: 21.18 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.0001629/0.3889, allocations: 119.1 kB / 0.5087 GB, free: 21.09 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002025/0.3909, allocations: 0.7885 MB / 0.5094 GB, free: 21.08 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.038e-06/0.3909, allocations: 0 / 0.5094 GB, free: 21.08 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009771/0.3919, allocations: 421 kB / 0.5098 GB, free: 21.08 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000647/0.3926, allocations: 112.2 kB / 0.51 GB, free: 21.07 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003812/0.3964, allocations: 1.791 MB / 0.5117 GB, free: 20.32 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003547/0.3968, allocations: 0.8563 MB / 0.5125 GB, free: 19.61 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003539/0.3972, allocations: 59.17 kB / 0.5126 GB, free: 19.6 MB / 382.1 MB Notification: Performance of SimCode: time 6.71e-07/0.3972, allocations: 0 / 0.5126 GB, free: 19.6 MB / 382.1 MB Notification: Performance of Templates: time 0.01598/0.4132, allocations: 7.422 MB / 0.5198 GB, free: 17.45 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)