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.004576/0.004576, allocations: 101.6 kB / 15.88 MB, free: 5.867 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.001229/0.001229, allocations: 192.2 kB / 16.79 MB, free: 5.809 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.295/1.295, allocations: 222.9 MB / 240.5 MB, free: 4.578 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1869/0.1869, allocations: 22.36 MB / 313 MB, free: 12.69 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001324/0.001324, allocations: 63.91 kB / 380.8 MB, free: 11.11 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2228/0.2241, allocations: 54.94 MB / 435.7 MB, free: 39.71 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002): time 0.003742/0.2279, allocations: 4.54 MB / 440.2 MB, free: 36.42 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001535/0.2295, allocations: 1.225 MB / 441.5 MB, free: 35.53 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002174/0.2297, allocations: 5.125 kB / 441.5 MB, free: 35.53 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002097/0.2299, allocations: 76.03 kB / 441.5 MB, free: 35.49 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003705/0.2303, allocations: 233.5 kB / 441.8 MB, free: 35.34 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004957/0.2308, allocations: 260.1 kB / 442 MB, free: 35.18 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000717/0.2316, allocations: 1.286 MB / 443.3 MB, free: 34.63 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005332/0.2321, allocations: 0.5914 MB / 443.9 MB, free: 34.39 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003145/0.2324, allocations: 438.2 kB / 444.3 MB, free: 34.21 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000464/0.2329, allocations: 0.5917 MB / 444.9 MB, free: 33.95 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001312/0.233, allocations: 80.22 kB / 445 MB, free: 33.95 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001532/0.2332, allocations: 86.31 kB / 445.1 MB, free: 33.95 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001781/0.2334, allocations: 287 kB / 445.4 MB, free: 33.8 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003467/0.2337, allocations: 0.4926 MB / 445.9 MB, free: 33.53 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005039/0.2342, allocations: 0.9359 MB / 446.8 MB, free: 33.24 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.058e-06/0.2343, allocations: 0 / 446.8 MB, free: 33.24 MB / 350.1 MB Notification: Performance of FrontEnd: time 7.01e-07/0.2343, allocations: 3.938 kB / 446.8 MB, free: 33.23 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.172e-05/0.2343, allocations: 0 / 446.8 MB, free: 33.23 MB / 350.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.002352/0.2366, allocations: 1.258 MB / 448.1 MB, free: 32.45 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.049e-05/0.2367, allocations: 13.17 kB / 448.1 MB, free: 32.45 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001593/0.2368, allocations: 95.31 kB / 448.2 MB, free: 32.41 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005774/0.2374, allocations: 0.5141 MB / 448.7 MB, free: 32.02 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001226/0.2376, allocations: 160.8 kB / 448.8 MB, free: 31.9 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001316/0.2377, allocations: 88.69 kB / 448.9 MB, free: 31.87 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001869/0.2396, allocations: 1.005 MB / 449.9 MB, free: 31.5 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.979e-05/0.2396, allocations: 2.844 kB / 449.9 MB, free: 31.5 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.714e-05/0.2397, allocations: 29.72 kB / 450 MB, free: 31.48 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.255e-05/0.2397, allocations: 20.38 kB / 450 MB, free: 31.48 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001785/0.2415, allocations: 0.9089 MB / 450.9 MB, free: 31.18 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005763/0.2473, allocations: 3.572 MB / 454.5 MB, free: 29.4 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001707/0.249, allocations: 0.8923 MB / 455.4 MB, free: 29.06 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00112/0.2501, allocations: 0.6193 MB / 456 MB, free: 28.84 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.049e-05/0.2502, allocations: 16.83 kB / 456 MB, free: 28.82 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.419e-05/0.2502, allocations: 47.44 kB / 456 MB, free: 28.77 MB / 350.1 MB Notification: Performance of pre-optimization done (n=79): time 2.535e-06/0.2503, allocations: 0 / 456 MB, free: 28.77 MB / 350.1 MB Notification: Performance of matching and sorting (n=83): time 0.006782/0.257, allocations: 3.018 MB / 459.1 MB, free: 27.49 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.494e-05/0.2571, allocations: 61.69 kB / 459.1 MB, free: 27.43 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005479/0.2576, allocations: 0.5103 MB / 459.6 MB, free: 27.19 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.315e-05/0.2577, allocations: 42.08 kB / 459.7 MB, free: 27.14 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001684/0.2579, allocations: 321.4 kB / 460 MB, free: 26.89 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001976/0.2581, allocations: 299.9 kB / 460.3 MB, free: 26.65 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003273/0.2584, allocations: 153.8 kB / 460.4 MB, free: 26.57 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.512e-05/0.2585, allocations: 390.9 kB / 460.8 MB, free: 26.22 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001127/0.2597, allocations: 0.5325 MB / 461.3 MB, free: 26.03 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001097/0.2608, allocations: 0.6074 MB / 461.9 MB, free: 25.76 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009816/0.2706, allocations: 3.035 MB / 465 MB, free: 24.9 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.388e-06/0.2706, allocations: 1.25 kB / 465 MB, free: 24.9 MB / 350.1 MB Notification: Performance of matching and sorting (n=112) (initialization): time 0.002546/0.2732, allocations: 1.276 MB / 466.3 MB, free: 24.41 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.727e-05/0.2732, allocations: 6.672 kB / 466.3 MB, free: 24.41 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.937e-06/0.2732, allocations: 2.188 kB / 466.3 MB, free: 24.41 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.252e-05/0.2733, allocations: 6.781 kB / 466.3 MB, free: 24.41 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006249/0.2795, allocations: 1.033 MB / 467.3 MB, free: 24.36 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.635e-05/0.2795, allocations: 11.22 kB / 467.3 MB, free: 24.36 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007823/0.2803, allocations: 70.2 kB / 467.4 MB, free: 24.34 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.049e-05/0.2804, allocations: 33.92 kB / 467.4 MB, free: 24.34 MB / 350.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.0004073/0.2808, allocations: 250.2 kB / 467.7 MB, free: 24.14 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001339/0.281, allocations: 68.94 kB / 467.7 MB, free: 24.11 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002492/0.2835, allocations: 1.204 MB / 468.9 MB, free: 23.63 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.936e-06/0.2835, allocations: 9.625 kB / 468.9 MB, free: 23.63 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.41e-06/0.2835, allocations: 0 / 468.9 MB, free: 23.63 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.158e-06/0.2835, allocations: 4.547 kB / 468.9 MB, free: 23.63 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004127/0.2876, allocations: 2.378 MB / 471.3 MB, free: 22.52 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.759e-06/0.2877, allocations: 6.203 kB / 471.3 MB, free: 22.52 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006267/0.2939, allocations: 1.008 MB / 472.3 MB, free: 22.48 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.166e-05/0.294, allocations: 9.609 kB / 472.3 MB, free: 22.47 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.964e-05/0.2941, allocations: 27.19 kB / 472.4 MB, free: 22.46 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.171e-06/0.2941, allocations: 4.156 kB / 472.4 MB, free: 22.46 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.376e-06/0.2941, allocations: 6.047 kB / 472.4 MB, free: 22.46 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003406/0.2975, allocations: 1.813 MB / 474.2 MB, free: 21.66 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001356/0.2976, allocations: 145.1 kB / 474.3 MB, free: 21.52 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001372/0.2978, allocations: 22.83 kB / 474.4 MB, free: 21.51 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007322/0.2985, allocations: 67.7 kB / 474.4 MB, free: 21.5 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002397/0.2988, allocations: 102.9 kB / 474.5 MB, free: 21.48 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.239e-05/0.2989, allocations: 30.36 kB / 474.6 MB, free: 21.47 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003827/0.2992, allocations: 365 kB / 474.9 MB, free: 21.3 MB / 350.1 MB Notification: Performance of sort global known variables: time 5.31e-07/0.2993, allocations: 0 / 474.9 MB, free: 21.3 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006654/0.2999, allocations: 235.7 kB / 475.1 MB, free: 21.28 MB / 350.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.0001396/0.3001, allocations: 135.4 kB / 475.3 MB, free: 21.16 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00227/0.3023, allocations: 1.152 MB / 476.4 MB, free: 20.69 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.3024, allocations: 1 kB / 476.4 MB, free: 20.69 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001071/0.3034, allocations: 0.577 MB / 477 MB, free: 20.32 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007544/0.3042, allocations: 162.5 kB / 477.2 MB, free: 20.16 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004765/0.309, allocations: 3.117 MB / 480.3 MB, free: 17 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002662/0.3093, allocations: 0.9585 MB / 481.2 MB, free: 16.01 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004524/0.3097, allocations: 83.39 kB / 481.3 MB, free: 15.93 MB / 350.1 MB Notification: Performance of SimCode: time 3.21e-07/0.3097, allocations: 0 / 481.3 MB, free: 15.93 MB / 350.1 MB Notification: Performance of Templates: time 0.01056/0.3203, allocations: 11.34 MB / 492.7 MB, free: 4.621 MB / 350.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)