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.001474/0.001474, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001781/0.001781, allocations: 190.8 kB / 16.25 MB, free: 6.641 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.337/1.337, allocations: 222.9 MB / 239.9 MB, free: 4.523 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.198/0.198, allocations: 22.34 MB / 312.4 MB, free: 12.53 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001571/0.001571, allocations: 59.91 kB / 380.3 MB, free: 11 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2611/0.2627, allocations: 54.95 MB / 435.2 MB, free: 39.55 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001): time 0.003566/0.2663, allocations: 3.422 MB / 438.6 MB, free: 37.09 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00126/0.2676, allocations: 0.9352 MB / 439.6 MB, free: 36.42 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001502/0.2677, allocations: 4.875 kB / 439.6 MB, free: 36.42 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001698/0.2679, allocations: 52.83 kB / 439.6 MB, free: 36.39 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002643/0.2682, allocations: 154.6 kB / 439.8 MB, free: 36.29 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004159/0.2686, allocations: 157.9 kB / 439.9 MB, free: 36.19 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004827/0.2691, allocations: 0.7409 MB / 440.7 MB, free: 35.84 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000448/0.2696, allocations: 448 kB / 441.1 MB, free: 35.65 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002484/0.2698, allocations: 304.6 kB / 441.4 MB, free: 35.52 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003484/0.2702, allocations: 400.2 kB / 441.8 MB, free: 35.33 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.137e-05/0.2703, allocations: 75.16 kB / 441.9 MB, free: 35.33 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.242e-05/0.2704, allocations: 84.03 kB / 442 MB, free: 35.33 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001225/0.2705, allocations: 198.4 kB / 442.2 MB, free: 35.22 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000218/0.2707, allocations: 343.5 kB / 442.5 MB, free: 35.02 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004713/0.2712, allocations: 0.7863 MB / 443.3 MB, free: 34.71 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.007e-06/0.2712, allocations: 4 kB / 443.3 MB, free: 34.71 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.2712, allocations: 0 / 443.3 MB, free: 34.71 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.796e-06/0.2712, allocations: 0 / 443.3 MB, free: 34.71 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: 122 * Number of variables: 122 Notification: Performance of Generate backend data structure: time 0.001604/0.2729, allocations: 0.8983 MB / 444.2 MB, free: 34.09 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.377e-05/0.2729, allocations: 11.72 kB / 444.2 MB, free: 34.09 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001145/0.273, allocations: 59.97 kB / 444.2 MB, free: 34.07 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004002/0.2734, allocations: 387.9 kB / 444.6 MB, free: 33.76 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001103/0.2735, allocations: 111.2 kB / 444.7 MB, free: 33.68 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.323e-05/0.2736, allocations: 58.34 kB / 444.8 MB, free: 33.65 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001341/0.275, allocations: 0.6817 MB / 445.5 MB, free: 33.41 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.783e-05/0.275, allocations: 0 / 445.5 MB, free: 33.41 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.839e-05/0.2751, allocations: 21.59 kB / 445.5 MB, free: 33.39 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.848e-06/0.2751, allocations: 11.22 kB / 445.5 MB, free: 33.39 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001225/0.2763, allocations: 0.6005 MB / 446.1 MB, free: 33.2 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004544/0.2809, allocations: 2.597 MB / 448.7 MB, free: 31.81 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009764/0.2819, allocations: 0.5326 MB / 449.2 MB, free: 31.6 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007284/0.2826, allocations: 400.9 kB / 449.6 MB, free: 31.45 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.64e-05/0.2827, allocations: 14.16 kB / 449.6 MB, free: 31.45 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.075e-05/0.2827, allocations: 30.94 kB / 449.7 MB, free: 31.41 MB / 350.1 MB Notification: Performance of pre-optimization done (n=46): time 2.805e-06/0.2827, allocations: 2.719 kB / 449.7 MB, free: 31.41 MB / 350.1 MB Notification: Performance of matching and sorting (n=50): time 0.004942/0.2877, allocations: 2.16 MB / 451.8 MB, free: 30.47 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.142e-05/0.2877, allocations: 63.31 kB / 451.9 MB, free: 30.41 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002969/0.288, allocations: 353.5 kB / 452.2 MB, free: 30.23 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.498e-05/0.2881, allocations: 37.02 kB / 452.3 MB, free: 30.19 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001084/0.2882, allocations: 232.7 kB / 452.5 MB, free: 30 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001347/0.2883, allocations: 181.4 kB / 452.7 MB, free: 29.86 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001725/0.2885, allocations: 98.84 kB / 452.8 MB, free: 29.8 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.219e-05/0.2886, allocations: 352.9 kB / 453.1 MB, free: 29.47 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007244/0.2893, allocations: 364.2 kB / 453.5 MB, free: 29.34 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007613/0.2901, allocations: 415.6 kB / 453.9 MB, free: 29.16 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006129/0.2962, allocations: 1.975 MB / 455.9 MB, free: 28.61 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.877e-06/0.2962, allocations: 0 / 455.9 MB, free: 28.61 MB / 350.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001729/0.298, allocations: 0.8477 MB / 456.7 MB, free: 28.29 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.274e-05/0.298, allocations: 6.438 kB / 456.7 MB, free: 28.29 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.02e-05/0.298, allocations: 1.312 kB / 456.7 MB, free: 28.29 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.578e-05/0.2981, allocations: 7.688 kB / 456.7 MB, free: 28.28 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005551/0.3036, allocations: 0.8972 MB / 457.6 MB, free: 28.25 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.229e-05/0.3037, allocations: 4.312 kB / 457.6 MB, free: 28.25 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000676/0.3043, allocations: 58.17 kB / 457.7 MB, free: 28.23 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.986e-05/0.3044, allocations: 25.05 kB / 457.7 MB, free: 28.23 MB / 350.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.0004368/0.3049, allocations: 202.8 kB / 457.9 MB, free: 28.06 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001162/0.305, allocations: 53.66 kB / 458 MB, free: 28.03 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001989/0.307, allocations: 0.8129 MB / 458.8 MB, free: 27.72 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.156e-06/0.307, allocations: 5.562 kB / 458.8 MB, free: 27.72 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.171e-06/0.307, allocations: 3.938 kB / 458.8 MB, free: 27.72 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.955e-06/0.307, allocations: 3.984 kB / 458.8 MB, free: 27.72 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003279/0.3103, allocations: 1.74 MB / 460.5 MB, free: 26.84 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.418e-06/0.3103, allocations: 0 / 460.5 MB, free: 26.84 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005596/0.3159, allocations: 0.8906 MB / 461.4 MB, free: 26.8 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.245e-05/0.316, allocations: 1.625 kB / 461.4 MB, free: 26.8 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.129e-05/0.3161, allocations: 16.58 kB / 461.4 MB, free: 26.79 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.512e-06/0.3161, allocations: 3.156 kB / 461.4 MB, free: 26.79 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-06/0.3161, allocations: 1.5 kB / 461.4 MB, free: 26.79 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002642/0.3187, allocations: 1.243 MB / 462.7 MB, free: 26.25 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001273/0.3189, allocations: 119.5 kB / 462.8 MB, free: 26.13 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.315e-05/0.319, allocations: 17.73 kB / 462.8 MB, free: 26.12 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005391/0.3195, allocations: 53.67 kB / 462.9 MB, free: 26.11 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000179/0.3197, allocations: 72.23 kB / 462.9 MB, free: 26.1 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.852e-05/0.3198, allocations: 16.56 kB / 463 MB, free: 26.09 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002633/0.32, allocations: 261.6 kB / 463.2 MB, free: 25.95 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.32, allocations: 0 / 463.2 MB, free: 25.95 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005154/0.3206, allocations: 148.9 kB / 463.4 MB, free: 25.93 MB / 350.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.0001289/0.3207, allocations: 113.5 kB / 463.5 MB, free: 25.84 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00189/0.3226, allocations: 0.8288 MB / 464.3 MB, free: 25.57 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.3226, allocations: 1.375 kB / 464.3 MB, free: 25.57 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008651/0.3235, allocations: 411 kB / 464.7 MB, free: 25.44 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006007/0.3241, allocations: 109.7 kB / 464.8 MB, free: 25.39 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004065/0.3282, allocations: 2.048 MB / 466.8 MB, free: 24.22 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002794/0.3285, allocations: 0.8465 MB / 467.7 MB, free: 23.51 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000479/0.3289, allocations: 99.17 kB / 467.8 MB, free: 23.49 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002498/0.3292, allocations: 51.81 kB / 467.8 MB, free: 23.48 MB / 350.1 MB Notification: Performance of SimCode: time 6.32e-07/0.3292, allocations: 1.281 kB / 467.8 MB, free: 23.48 MB / 350.1 MB Notification: Performance of Templates: time 0.01309/0.3423, allocations: 8.021 MB / 475.9 MB, free: 21.01 MB / 350.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)