Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003.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_Transport.Stratified_storage_tank_case_003,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003") translateModel(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001348/0.001348, allocations: 105.9 kB / 16.41 MB, free: 6.457 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.001518/0.001518, allocations: 189.5 kB / 17.34 MB, free: 5.719 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.281/1.281, 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.09204/0.09204, allocations: 22.33 MB / 313.5 MB, free: 8.891 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001289/0.001289, allocations: 63.89 kB / 437.7 MB, free: 11.78 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08939/0.0907, allocations: 54.96 MB / 492.7 MB, free: 4.777 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003): time 0.004253/0.09499, allocations: 3.203 MB / 495.9 MB, free: 1.547 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001804/0.09682, allocations: 0.9002 MB / 496.8 MB, free: 0.6406 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003005/0.09715, allocations: 4 kB / 496.8 MB, free: 0.6367 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002717/0.09746, allocations: 67.3 kB / 496.8 MB, free: 0.5703 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004622/0.09794, allocations: 166.7 kB / 497 MB, free: 416 kB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006159/0.09857, allocations: 199.7 kB / 497.2 MB, free: 216 kB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.000836/0.09942, allocations: 0.7483 MB / 497.9 MB, free: 15.46 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000638/0.1001, allocations: 445.7 kB / 498.4 MB, free: 15.02 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004103/0.1005, allocations: 311.2 kB / 498.7 MB, free: 14.71 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005731/0.1011, allocations: 394.6 kB / 499.1 MB, free: 14.33 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001606/0.1012, allocations: 76 kB / 499.1 MB, free: 14.25 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001582/0.1014, allocations: 80 kB / 499.2 MB, free: 14.18 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000198/0.1016, allocations: 199.5 kB / 499.4 MB, free: 13.98 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003865/0.102, allocations: 346.5 kB / 499.8 MB, free: 13.64 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007218/0.1028, allocations: 0.7904 MB / 0.4888 GB, free: 12.85 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.058e-06/0.1028, allocations: 0 / 0.4888 GB, free: 12.85 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.1028, allocations: 0 / 0.4888 GB, free: 12.85 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.253e-05/0.1028, allocations: 0 / 0.4888 GB, free: 12.85 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.002092/0.1049, allocations: 0.9042 MB / 0.4897 GB, free: 11.89 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.636e-05/0.1049, allocations: 8.031 kB / 0.4897 GB, free: 11.89 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001551/0.1051, allocations: 64.28 kB / 0.4898 GB, free: 11.82 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005594/0.1057, allocations: 396.1 kB / 0.4901 GB, free: 11.4 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001575/0.1058, allocations: 112.9 kB / 0.4903 GB, free: 11.28 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001106/0.106, allocations: 48.38 kB / 0.4903 GB, free: 11.23 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001653/0.1076, allocations: 0.6897 MB / 0.491 GB, free: 10.54 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.6e-05/0.1076, allocations: 0 / 0.491 GB, free: 10.54 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.61e-05/0.1077, allocations: 20 kB / 0.491 GB, free: 10.52 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.331e-05/0.1077, allocations: 12 kB / 0.491 GB, free: 10.51 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00149/0.1092, allocations: 0.6011 MB / 0.4916 GB, free: 9.906 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005254/0.1145, allocations: 2.563 MB / 0.4941 GB, free: 7.273 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001229/0.1158, allocations: 0.5514 MB / 0.4946 GB, free: 6.715 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009052/0.1167, allocations: 409.9 kB / 0.495 GB, free: 6.312 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.958e-05/0.1167, allocations: 5.141 kB / 0.495 GB, free: 6.309 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.029e-05/0.1168, allocations: 39 kB / 0.4951 GB, free: 6.262 MB / 382.1 MB Notification: Performance of pre-optimization done (n=48): time 2.285e-06/0.1168, allocations: 0 / 0.4951 GB, free: 6.262 MB / 382.1 MB Notification: Performance of matching and sorting (n=52): time 0.005966/0.1228, allocations: 2.196 MB / 0.4972 GB, free: 4.012 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.296e-05/0.1228, allocations: 55.84 kB / 0.4973 GB, free: 3.945 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004153/0.1232, allocations: 369.6 kB / 0.4976 GB, free: 3.574 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.481e-05/0.1233, allocations: 37.64 kB / 0.4976 GB, free: 3.531 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001548/0.1235, allocations: 224.5 kB / 0.4979 GB, free: 3.309 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000168/0.1236, allocations: 189.3 kB / 0.498 GB, free: 3.121 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001888/0.1238, allocations: 98.17 kB / 0.4981 GB, free: 3.02 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001407/0.124, allocations: 350.8 kB / 0.4985 GB, free: 2.668 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008826/0.1249, allocations: 378.7 kB / 0.4988 GB, free: 2.297 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009098/0.1258, allocations: 407.1 kB / 0.4992 GB, free: 1.879 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1944/0.3202, allocations: 1.994 MB / 0.5012 GB, free: 22.02 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.985e-06/0.3202, allocations: 3.031 kB / 0.5012 GB, free: 22.02 MB / 382.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001841/0.3221, allocations: 0.8519 MB / 0.502 GB, free: 21.98 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.888e-05/0.3221, allocations: 5.531 kB / 0.502 GB, free: 21.98 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.716e-06/0.3221, allocations: 1.766 kB / 0.502 GB, free: 21.98 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.082e-05/0.3221, allocations: 4.531 kB / 0.502 GB, free: 21.98 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005962/0.3281, allocations: 0.9115 MB / 0.5029 GB, free: 21.98 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.671e-05/0.3282, allocations: 8.688 kB / 0.5029 GB, free: 21.98 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005606/0.3287, allocations: 52.25 kB / 0.503 GB, free: 21.98 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.967e-05/0.3288, allocations: 25.05 kB / 0.503 GB, free: 21.98 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.0003378/0.3291, allocations: 202.7 kB / 0.5032 GB, free: 21.87 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.406e-05/0.3292, allocations: 45.38 kB / 0.5032 GB, free: 21.87 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001929/0.3312, allocations: 0.8304 MB / 0.504 GB, free: 21.82 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.881e-06/0.3312, allocations: 6.797 kB / 0.504 GB, free: 21.82 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.34e-06/0.3312, allocations: 0 / 0.504 GB, free: 21.82 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.624e-06/0.3312, allocations: 4.953 kB / 0.504 GB, free: 21.82 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003015/0.3342, allocations: 1.736 MB / 0.5057 GB, free: 21.46 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.588e-06/0.3342, allocations: 1.547 kB / 0.5057 GB, free: 21.46 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006111/0.3404, allocations: 0.8971 MB / 0.5066 GB, free: 21.46 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.326e-05/0.3404, allocations: 4.5 kB / 0.5066 GB, free: 21.46 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.441e-05/0.3405, allocations: 21.16 kB / 0.5066 GB, free: 21.46 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.909e-06/0.3405, allocations: 2.344 kB / 0.5066 GB, free: 21.46 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.3405, allocations: 1.344 kB / 0.5066 GB, free: 21.46 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002731/0.3432, allocations: 1.267 MB / 0.5079 GB, free: 21.29 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000113/0.3434, allocations: 118.6 kB / 0.508 GB, free: 21.2 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001082/0.3435, allocations: 23.36 kB / 0.508 GB, free: 21.19 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000541/0.344, allocations: 51.17 kB / 0.5081 GB, free: 21.19 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000175/0.3442, allocations: 72.91 kB / 0.5081 GB, free: 21.19 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.655e-05/0.3443, allocations: 17.94 kB / 0.5082 GB, free: 21.19 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002549/0.3445, allocations: 259.7 kB / 0.5084 GB, free: 21.11 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3445, allocations: 0 / 0.5084 GB, free: 21.11 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004866/0.345, allocations: 148.6 kB / 0.5085 GB, free: 21.1 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.0001288/0.3452, allocations: 117.3 kB / 0.5087 GB, free: 21.01 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001862/0.347, allocations: 0.7901 MB / 0.5094 GB, free: 21 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.945e-06/0.347, allocations: 0 / 0.5094 GB, free: 21 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008917/0.3479, allocations: 415.3 kB / 0.5098 GB, free: 21 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005818/0.3485, allocations: 107.4 kB / 0.5099 GB, free: 20.99 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003433/0.352, allocations: 1.803 MB / 0.5117 GB, free: 20.23 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003118/0.3523, allocations: 0.8572 MB / 0.5125 GB, free: 19.52 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003271/0.3526, allocations: 55.73 kB / 0.5126 GB, free: 19.52 MB / 382.1 MB Notification: Performance of SimCode: time 6.21e-07/0.3526, allocations: 0 / 0.5126 GB, free: 19.52 MB / 382.1 MB Notification: Performance of Templates: time 0.01265/0.3653, allocations: 7.425 MB / 0.5198 GB, free: 17.37 MB / 382.1 MB make -j1 -f AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003.makefile (rm -f AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003.pipe ; mkfifo AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003.pipe >> ../files/AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003.sim & ./AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003 -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003.pipe 2>&1)