Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001.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_001,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001") translateModel(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001409/0.001409, allocations: 105.8 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.001392/0.001392, allocations: 187 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.315/1.315, 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.09198/0.09198, allocations: 22.32 MB / 313.5 MB, free: 8.902 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001444/0.001444, allocations: 63.91 kB / 437.7 MB, free: 11.79 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1027/0.1041, 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_001): time 0.004354/0.1085, allocations: 3.182 MB / 495.8 MB, free: 1.57 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001871/0.1104, allocations: 0.9002 MB / 496.7 MB, free: 0.6641 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003497/0.1108, allocations: 7.938 kB / 496.8 MB, free: 0.6562 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002864/0.1111, allocations: 59.36 kB / 496.8 MB, free: 0.5977 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005406/0.1117, allocations: 174.7 kB / 497 MB, free: 436 kB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006504/0.1124, allocations: 195.6 kB / 497.2 MB, free: 240 kB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009475/0.1133, allocations: 0.7484 MB / 497.9 MB, free: 15.48 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006958/0.114, allocations: 437.8 kB / 498.4 MB, free: 15.05 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000465/0.1145, allocations: 303.1 kB / 498.6 MB, free: 14.75 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006392/0.1152, allocations: 398.6 kB / 499 MB, free: 14.36 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001999/0.1154, allocations: 76 kB / 499.1 MB, free: 14.29 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000193/0.1156, allocations: 76 kB / 499.2 MB, free: 14.21 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002079/0.1158, allocations: 203.5 kB / 499.4 MB, free: 14.02 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004564/0.1163, allocations: 342.5 kB / 499.7 MB, free: 13.68 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007476/0.117, allocations: 0.7904 MB / 0.4888 GB, free: 12.89 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.788e-06/0.117, allocations: 0 / 0.4888 GB, free: 12.89 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.117, allocations: 0 / 0.4888 GB, free: 12.89 MB / 382.1 MB Notification: Performance of Transformations before backend: time 3.167e-05/0.1171, allocations: 4 kB / 0.4888 GB, free: 12.88 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: 122 * Number of variables: 122 Notification: Performance of Generate backend data structure: time 0.002203/0.1193, allocations: 0.9042 MB / 0.4897 GB, free: 11.93 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.237e-05/0.1193, allocations: 12.03 kB / 0.4897 GB, free: 11.92 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001548/0.1195, allocations: 60.28 kB / 0.4897 GB, free: 11.86 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005896/0.1201, allocations: 396.1 kB / 0.4901 GB, free: 11.44 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001429/0.1202, allocations: 112.9 kB / 0.4902 GB, free: 11.32 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001121/0.1204, allocations: 48.38 kB / 0.4903 GB, free: 11.27 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001584/0.122, allocations: 0.6857 MB / 0.4909 GB, free: 10.58 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.669e-05/0.122, allocations: 3.938 kB / 0.4909 GB, free: 10.57 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.132e-05/0.1221, allocations: 20 kB / 0.491 GB, free: 10.55 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.5e-05/0.1221, allocations: 12 kB / 0.491 GB, free: 10.54 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001453/0.1235, allocations: 0.6011 MB / 0.4916 GB, free: 9.941 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005374/0.1289, allocations: 2.571 MB / 0.4941 GB, free: 7.297 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001197/0.1301, allocations: 0.5269 MB / 0.4946 GB, free: 6.762 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008746/0.131, allocations: 401.5 kB / 0.495 GB, free: 6.367 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.11e-05/0.1311, allocations: 12.86 kB / 0.495 GB, free: 6.355 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.642e-05/0.1312, allocations: 34.94 kB / 0.495 GB, free: 6.312 MB / 382.1 MB Notification: Performance of pre-optimization done (n=46): time 2.966e-06/0.1312, allocations: 0 / 0.495 GB, free: 6.312 MB / 382.1 MB Notification: Performance of matching and sorting (n=50): time 0.005731/0.1369, allocations: 2.168 MB / 0.4971 GB, free: 4.094 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.636e-05/0.137, allocations: 55.84 kB / 0.4972 GB, free: 4.027 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004024/0.1374, allocations: 361.6 kB / 0.4975 GB, free: 3.664 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.106e-05/0.1374, allocations: 33.7 kB / 0.4976 GB, free: 3.625 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001521/0.1376, allocations: 228.4 kB / 0.4978 GB, free: 3.398 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001494/0.1378, allocations: 177.4 kB / 0.4979 GB, free: 3.223 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002051/0.138, allocations: 106.1 kB / 0.498 GB, free: 3.113 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001316/0.1381, allocations: 354.8 kB / 0.4984 GB, free: 2.758 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008305/0.139, allocations: 366.7 kB / 0.4987 GB, free: 2.398 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008331/0.1398, allocations: 408 kB / 0.4991 GB, free: 1.977 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2184/0.3582, allocations: 1.98 MB / 0.5011 GB, free: 22.14 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.322e-06/0.3583, allocations: 0 / 0.5011 GB, free: 22.14 MB / 382.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.002042/0.3603, allocations: 0.8363 MB / 0.5019 GB, free: 22.11 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.321e-05/0.3604, allocations: 11.38 kB / 0.5019 GB, free: 22.11 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.205e-06/0.3604, allocations: 2.281 kB / 0.5019 GB, free: 22.11 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.16e-05/0.3604, allocations: 4.375 kB / 0.5019 GB, free: 22.11 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005801/0.3662, allocations: 0.9016 MB / 0.5028 GB, free: 22.11 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.095e-05/0.3663, allocations: 8.219 kB / 0.5028 GB, free: 22.11 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005915/0.3669, allocations: 51.23 kB / 0.5028 GB, free: 22.11 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.609e-05/0.3669, allocations: 20.38 kB / 0.5028 GB, free: 22.11 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: 7 * 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 (66): * Single equations (assignments): 66 * 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.0003495/0.3673, allocations: 198.3 kB / 0.503 GB, free: 21.99 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001005/0.3674, allocations: 46.97 kB / 0.5031 GB, free: 21.99 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001928/0.3693, allocations: 0.8235 MB / 0.5039 GB, free: 21.94 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.622e-06/0.3694, allocations: 3.312 kB / 0.5039 GB, free: 21.94 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.292e-06/0.3694, allocations: 0.625 kB / 0.5039 GB, free: 21.94 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.318e-06/0.3694, allocations: 4.375 kB / 0.5039 GB, free: 21.94 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003238/0.3726, allocations: 1.725 MB / 0.5056 GB, free: 21.57 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.458e-06/0.3727, allocations: 0 / 0.5056 GB, free: 21.57 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005965/0.3786, allocations: 0.8868 MB / 0.5064 GB, free: 21.57 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.601e-05/0.3787, allocations: 8.875 kB / 0.5065 GB, free: 21.57 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001295/0.3788, allocations: 24.06 kB / 0.5065 GB, free: 21.57 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.804e-06/0.3788, allocations: 2.125 kB / 0.5065 GB, free: 21.57 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.096e-06/0.3788, allocations: 0.7031 kB / 0.5065 GB, free: 21.57 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002674/0.3815, allocations: 1.246 MB / 0.5077 GB, free: 21.41 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001336/0.3817, allocations: 120.8 kB / 0.5078 GB, free: 21.32 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.575e-05/0.3818, allocations: 13.58 kB / 0.5078 GB, free: 21.32 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005325/0.3823, allocations: 52.5 kB / 0.5079 GB, free: 21.32 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001885/0.3825, allocations: 74.84 kB / 0.5079 GB, free: 21.31 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.85e-05/0.3826, allocations: 20.12 kB / 0.508 GB, free: 21.31 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002818/0.3829, allocations: 261.3 kB / 0.5082 GB, free: 21.23 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3829, allocations: 0 / 0.5082 GB, free: 21.23 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004925/0.3834, allocations: 142.5 kB / 0.5084 GB, free: 21.23 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (51): * Single equations (assignments): 51 * 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.0001261/0.3835, allocations: 111.3 kB / 0.5085 GB, free: 21.14 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001765/0.3853, allocations: 0.7814 MB / 0.5092 GB, free: 21.12 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.447e-06/0.3853, allocations: 0 / 0.5092 GB, free: 21.12 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008656/0.3861, allocations: 406.4 kB / 0.5096 GB, free: 21.12 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005605/0.3867, allocations: 106.5 kB / 0.5097 GB, free: 21.11 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003953/0.3907, allocations: 1.885 MB / 0.5116 GB, free: 20.35 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002849/0.391, allocations: 0.8584 MB / 0.5124 GB, free: 19.65 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000345/0.3913, allocations: 54.75 kB / 0.5124 GB, free: 19.64 MB / 382.1 MB Notification: Performance of SimCode: time 6.61e-07/0.3914, allocations: 0 / 0.5124 GB, free: 19.64 MB / 382.1 MB Notification: Performance of Templates: time 0.01242/0.4038, allocations: 7.287 MB / 0.5196 GB, free: 17.59 MB / 382.1 MB make -j1 -f AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001.makefile (rm -f AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001.pipe ; mkfifo AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001.pipe >> ../files/AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001.sim & ./AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001 -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001.pipe 2>&1)