Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002.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_002,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002") translateModel(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001091/0.001091, allocations: 110.1 kB / 16.41 MB, free: 6.496 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.001081/0.001081, allocations: 187 kB / 17.34 MB, free: 5.766 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.299/1.299, 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.09429/0.09429, allocations: 22.32 MB / 313.5 MB, free: 8.902 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001289/0.001289, allocations: 59.91 kB / 437.7 MB, free: 11.79 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08469/0.086, allocations: 54.95 MB / 492.7 MB, free: 4.797 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002): time 0.004852/0.09089, allocations: 4.199 MB / 496.9 MB, free: 0.5664 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002186/0.0931, allocations: 1.165 MB / 498 MB, free: 15.39 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003864/0.09351, allocations: 4 kB / 498 MB, free: 15.39 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000316/0.09386, allocations: 102.9 kB / 498.1 MB, free: 15.29 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006485/0.09452, allocations: 269.9 kB / 498.4 MB, free: 15.02 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007886/0.09532, allocations: 295.5 kB / 498.7 MB, free: 14.73 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.00125/0.09658, allocations: 1.194 MB / 499.9 MB, free: 13.54 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009014/0.0975, allocations: 0.6801 MB / 0.4888 GB, free: 12.84 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005957/0.0981, allocations: 478.6 kB / 0.4893 GB, free: 12.37 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008407/0.09895, allocations: 0.6073 MB / 0.4899 GB, free: 11.76 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002467/0.09921, allocations: 120 kB / 0.49 GB, free: 11.64 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002283/0.09945, allocations: 120 kB / 0.4901 GB, free: 11.53 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002487/0.0997, allocations: 327 kB / 0.4904 GB, free: 11.21 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004601/0.1002, allocations: 0.5212 MB / 0.4909 GB, free: 10.68 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009955/0.1012, allocations: 1.25 MB / 0.4921 GB, free: 9.43 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.1012, allocations: 4 kB / 0.4922 GB, free: 9.426 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.1012, allocations: 0 / 0.4922 GB, free: 9.426 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.236e-05/0.1012, allocations: 4 kB / 0.4922 GB, free: 9.422 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: 199 * Number of variables: 199 Notification: Performance of Generate backend data structure: time 0.002678/0.1039, allocations: 1.255 MB / 0.4934 GB, free: 8.117 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.478e-05/0.1039, allocations: 15.97 kB / 0.4934 GB, free: 8.102 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001809/0.1041, allocations: 95.91 kB / 0.4935 GB, free: 8.008 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006977/0.1048, allocations: 0.5151 MB / 0.494 GB, free: 7.453 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001592/0.105, allocations: 159.7 kB / 0.4941 GB, free: 7.281 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001513/0.1052, allocations: 88.22 kB / 0.4942 GB, free: 7.195 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002136/0.1073, allocations: 1.011 MB / 0.4952 GB, free: 6.176 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.122e-05/0.1073, allocations: 3.984 kB / 0.4952 GB, free: 6.172 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.527e-05/0.1074, allocations: 40 kB / 0.4953 GB, free: 6.133 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.3e-05/0.1075, allocations: 20 kB / 0.4953 GB, free: 6.113 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001939/0.1094, allocations: 0.8939 MB / 0.4961 GB, free: 5.219 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006631/0.1161, allocations: 3.539 MB / 0.4996 GB, free: 1.602 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001872/0.118, allocations: 0.9099 MB / 0.5005 GB, free: 0.6875 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001221/0.1192, allocations: 0.6235 MB / 0.5011 GB, free: 64 kB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.367e-05/0.1193, allocations: 8.656 kB / 0.5011 GB, free: 56 kB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.1797/0.299, allocations: 51 kB / 0.5012 GB, free: 22.33 MB / 382.1 MB Notification: Performance of pre-optimization done (n=79): time 1.053e-05/0.299, allocations: 0 / 0.5012 GB, free: 22.33 MB / 382.1 MB Notification: Performance of matching and sorting (n=83): time 0.007108/0.3061, allocations: 3.021 MB / 0.5041 GB, free: 22 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.461e-05/0.3062, allocations: 63.09 kB / 0.5042 GB, free: 21.94 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000507/0.3067, allocations: 0.5049 MB / 0.5047 GB, free: 21.82 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.489e-05/0.3068, allocations: 41.23 kB / 0.5047 GB, free: 21.79 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001652/0.3069, allocations: 328.5 kB / 0.505 GB, free: 21.63 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001872/0.3071, allocations: 299.1 kB / 0.5053 GB, free: 21.44 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002669/0.3074, allocations: 157.2 kB / 0.5055 GB, free: 21.42 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.676e-05/0.3075, allocations: 383.3 kB / 0.5058 GB, free: 21.11 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001111/0.3086, allocations: 0.5361 MB / 0.5063 GB, free: 21.09 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001101/0.3097, allocations: 0.6017 MB / 0.5069 GB, free: 21.01 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01013/0.3199, allocations: 3.033 MB / 0.5099 GB, free: 20.84 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.32e-06/0.3199, allocations: 0 / 0.5099 GB, free: 20.84 MB / 382.1 MB Notification: Performance of matching and sorting (n=112) (initialization): time 0.00267/0.3226, allocations: 1.27 MB / 0.5111 GB, free: 20.75 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.894e-05/0.3226, allocations: 9.375 kB / 0.5111 GB, free: 20.75 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.458e-06/0.3226, allocations: 3 kB / 0.5111 GB, free: 20.75 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.367e-05/0.3227, allocations: 6.938 kB / 0.5111 GB, free: 20.75 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007021/0.3297, allocations: 1.031 MB / 0.5122 GB, free: 20.72 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.187e-05/0.3297, allocations: 7.156 kB / 0.5122 GB, free: 20.72 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008233/0.3306, allocations: 72.02 kB / 0.5122 GB, free: 20.72 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.83e-05/0.3307, allocations: 33.67 kB / 0.5123 GB, free: 20.72 MB / 382.1 MB Warning: Assuming fixed start value for the following 7 variables: H.Ec:VARIABLE(flow=false fixed = true ) type: Real HnoTank.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 HnoTank.Tfo:VARIABLE(min = 0.0 start = HnoTank.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: 10 * Number of states: 0 () * Number of discrete variables: 1 (Hon.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (112): * Single equations (assignments): 112 * 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.0004229/0.3311, allocations: 255.6 kB / 0.5125 GB, free: 20.59 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001417/0.3312, allocations: 69.22 kB / 0.5126 GB, free: 20.55 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002669/0.3339, allocations: 1.196 MB / 0.5137 GB, free: 20.47 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.738e-06/0.3339, allocations: 8.891 kB / 0.5137 GB, free: 20.47 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.833e-06/0.3339, allocations: 1.25 kB / 0.5138 GB, free: 20.47 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.027e-05/0.334, allocations: 13.75 kB / 0.5138 GB, free: 20.46 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004667/0.3386, allocations: 2.373 MB / 0.5161 GB, free: 20.07 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.753e-06/0.3387, allocations: 5.891 kB / 0.5161 GB, free: 20.07 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007148/0.3458, allocations: 1.003 MB / 0.5171 GB, free: 20.04 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.388e-05/0.3458, allocations: 5.359 kB / 0.5171 GB, free: 20.04 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001224/0.346, allocations: 30.64 kB / 0.5171 GB, free: 20.04 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.534e-06/0.346, allocations: 6.688 kB / 0.5171 GB, free: 20.04 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.936e-06/0.346, allocations: 2.375 kB / 0.5171 GB, free: 20.04 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003549/0.3496, allocations: 1.817 MB / 0.5189 GB, free: 19.54 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001521/0.3497, allocations: 144.7 kB / 0.519 GB, free: 19.4 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001396/0.3499, allocations: 22.64 kB / 0.519 GB, free: 19.39 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007382/0.3506, allocations: 73.19 kB / 0.5191 GB, free: 19.38 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002307/0.3509, allocations: 105.1 kB / 0.5192 GB, free: 19.35 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.855e-05/0.3509, allocations: 26.44 kB / 0.5192 GB, free: 19.35 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003984/0.3513, allocations: 366.8 kB / 0.5196 GB, free: 19.18 MB / 382.1 MB Notification: Performance of sort global known variables: time 2e-07/0.3513, allocations: 0 / 0.5196 GB, free: 19.18 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007057/0.3521, allocations: 232.1 kB / 0.5198 GB, free: 19.16 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 17 (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],tubeNoTank.T[1],tubeNoTank.T[2],tubeNoTank.T[3],tubeNoTank.T[4],tubeNoTank.T[5],HnoTank.Tfo,HnoTank.Ec) * Number of discrete variables: 1 (Hon.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (85): * Single equations (assignments): 85 * 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.0001575/0.3522, allocations: 146.2 kB / 0.5199 GB, free: 19.04 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00238/0.3546, allocations: 1.15 MB / 0.5211 GB, free: 18.66 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/0.3546, allocations: 0.8438 kB / 0.5211 GB, free: 18.66 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001152/0.3558, allocations: 0.5764 MB / 0.5216 GB, free: 18.46 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007583/0.3566, allocations: 166.7 kB / 0.5218 GB, free: 18.41 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00515/0.3617, allocations: 2.802 MB / 0.5245 GB, free: 16.7 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003414/0.3621, allocations: 0.967 MB / 0.5255 GB, free: 15.88 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004926/0.3626, allocations: 76.81 kB / 0.5255 GB, free: 15.86 MB / 382.1 MB Notification: Performance of SimCode: time 5.21e-07/0.3626, allocations: 0 / 0.5255 GB, free: 15.86 MB / 382.1 MB Notification: Performance of Templates: time 0.01243/0.375, allocations: 11.44 MB / 0.5367 GB, free: 7.074 MB / 382.1 MB make -j1 -f AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002.makefile (rm -f AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002.pipe ; mkfifo AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002.pipe >> ../files/AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002.sim & ./AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002 -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002.pipe 2>&1)