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.001523/0.001523, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.002046/0.002047, allocations: 194.7 kB / 16.14 MB, free: 6.652 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.403/1.403, allocations: 222.9 MB / 239.8 MB, free: 4.512 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2974/0.2974, allocations: 22.35 MB / 312.3 MB, free: 12.65 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001412/0.001412, allocations: 63.89 kB / 380.1 MB, free: 11.13 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2571/0.2585, allocations: 54.95 MB / 435 MB, free: 39.44 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002): time 0.003955/0.2625, allocations: 4.542 MB / 439.6 MB, free: 36.14 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001515/0.2641, allocations: 1.221 MB / 440.8 MB, free: 35.25 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002038/0.2643, allocations: 11.59 kB / 440.8 MB, free: 35.25 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002144/0.2645, allocations: 76.44 kB / 440.9 MB, free: 35.21 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003599/0.2649, allocations: 239.4 kB / 441.1 MB, free: 35.06 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005187/0.2654, allocations: 250.8 kB / 441.4 MB, free: 34.9 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007245/0.2661, allocations: 1.284 MB / 442.7 MB, free: 34.36 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005399/0.2667, allocations: 0.604 MB / 443.3 MB, free: 34.11 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003108/0.267, allocations: 439.8 kB / 443.7 MB, free: 33.93 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004562/0.2675, allocations: 0.5878 MB / 444.3 MB, free: 33.67 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001192/0.2676, allocations: 80.94 kB / 444.4 MB, free: 33.67 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001518/0.2678, allocations: 77.84 kB / 444.4 MB, free: 33.67 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001764/0.2679, allocations: 290.7 kB / 444.7 MB, free: 33.52 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003357/0.2683, allocations: 0.4886 MB / 445.2 MB, free: 33.25 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006316/0.2689, allocations: 1.202 MB / 446.4 MB, free: 32.8 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.008e-06/0.2689, allocations: 0 / 446.4 MB, free: 32.8 MB / 350.1 MB Notification: Performance of FrontEnd: time 8.62e-07/0.2689, allocations: 4 kB / 446.4 MB, free: 32.79 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.019e-05/0.269, allocations: 0 / 446.4 MB, free: 32.79 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.002406/0.2714, allocations: 1.258 MB / 447.7 MB, free: 32.02 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.642e-05/0.2714, allocations: 12.75 kB / 447.7 MB, free: 32.01 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001645/0.2716, allocations: 96.16 kB / 447.8 MB, free: 31.97 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006069/0.2722, allocations: 0.5189 MB / 448.3 MB, free: 31.58 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001289/0.2723, allocations: 157.5 kB / 448.4 MB, free: 31.46 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001304/0.2725, allocations: 87.5 kB / 448.5 MB, free: 31.43 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001949/0.2744, allocations: 1.011 MB / 449.5 MB, free: 31.05 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.56e-05/0.2745, allocations: 0 / 449.5 MB, free: 31.05 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.684e-05/0.2746, allocations: 31 kB / 449.6 MB, free: 31.03 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.99e-05/0.2746, allocations: 17.97 kB / 449.6 MB, free: 31.03 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001764/0.2764, allocations: 0.905 MB / 450.5 MB, free: 30.74 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005855/0.2822, allocations: 3.564 MB / 454.1 MB, free: 28.97 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001688/0.2839, allocations: 0.8966 MB / 455 MB, free: 28.62 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001099/0.285, allocations: 0.6306 MB / 455.6 MB, free: 28.39 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.883e-05/0.2851, allocations: 12.64 kB / 455.6 MB, free: 28.38 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.229e-05/0.2851, allocations: 42.34 kB / 455.6 MB, free: 28.34 MB / 350.1 MB Notification: Performance of pre-optimization done (n=79): time 2.254e-06/0.2852, allocations: 1.062 kB / 455.6 MB, free: 28.34 MB / 350.1 MB Notification: Performance of matching and sorting (n=83): time 0.006783/0.2919, allocations: 3.023 MB / 458.7 MB, free: 27.05 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.331e-05/0.292, allocations: 60.09 kB / 458.7 MB, free: 26.99 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006214/0.2926, allocations: 0.5087 MB / 459.2 MB, free: 26.75 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.046e-05/0.2927, allocations: 45.02 kB / 459.3 MB, free: 26.7 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001789/0.2929, allocations: 322 kB / 459.6 MB, free: 26.45 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002128/0.2931, allocations: 298.8 kB / 459.9 MB, free: 26.21 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003049/0.2934, allocations: 153.5 kB / 460 MB, free: 26.13 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001068/0.2935, allocations: 388.2 kB / 460.4 MB, free: 25.79 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001099/0.2946, allocations: 0.531 MB / 460.9 MB, free: 25.59 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001167/0.2958, allocations: 0.6113 MB / 461.6 MB, free: 25.32 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01021/0.306, allocations: 3.037 MB / 464.6 MB, free: 24.46 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.672e-06/0.3061, allocations: 0 / 464.6 MB, free: 24.46 MB / 350.1 MB Notification: Performance of matching and sorting (n=112) (initialization): time 0.002817/0.3089, allocations: 1.273 MB / 465.9 MB, free: 23.97 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.538e-05/0.309, allocations: 10.44 kB / 465.9 MB, free: 23.96 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.195e-05/0.309, allocations: 1.375 kB / 465.9 MB, free: 23.96 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.538e-05/0.309, allocations: 7.531 kB / 465.9 MB, free: 23.96 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006168/0.3152, allocations: 1.029 MB / 466.9 MB, free: 23.92 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.198e-05/0.3152, allocations: 11.84 kB / 466.9 MB, free: 23.92 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008633/0.3161, allocations: 69.22 kB / 467 MB, free: 23.91 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001039/0.3162, allocations: 38.45 kB / 467 MB, free: 23.89 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.000552/0.3168, allocations: 255.6 kB / 467.3 MB, free: 23.7 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002171/0.317, allocations: 70.81 kB / 467.3 MB, free: 23.66 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002747/0.3198, allocations: 1.199 MB / 468.5 MB, free: 23.19 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.024e-05/0.3198, allocations: 13 kB / 468.6 MB, free: 23.18 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.203e-06/0.3198, allocations: 0.7969 kB / 468.6 MB, free: 23.18 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.152e-05/0.3198, allocations: 4.172 kB / 468.6 MB, free: 23.18 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00487/0.3247, allocations: 2.378 MB / 470.9 MB, free: 22.08 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.962e-06/0.3247, allocations: 1.531 kB / 470.9 MB, free: 22.08 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006421/0.3311, allocations: 1.008 MB / 471.9 MB, free: 22.04 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.82e-05/0.3312, allocations: 5.375 kB / 472 MB, free: 22.04 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002342/0.3314, allocations: 29.88 kB / 472 MB, free: 22.02 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.618e-05/0.3315, allocations: 5.094 kB / 472 MB, free: 22.02 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.536e-06/0.3315, allocations: 2.156 kB / 472 MB, free: 22.02 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003992/0.3355, allocations: 1.817 MB / 473.8 MB, free: 21.22 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003046/0.3358, allocations: 145.9 kB / 474 MB, free: 21.08 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002102/0.336, allocations: 21.92 kB / 474 MB, free: 21.07 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008278/0.3368, allocations: 71.3 kB / 474 MB, free: 21.05 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002736/0.3371, allocations: 100.6 kB / 474.1 MB, free: 21.04 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.125e-05/0.3372, allocations: 26.92 kB / 474.2 MB, free: 21.04 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005433/0.3378, allocations: 364.1 kB / 474.5 MB, free: 20.87 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.91e-07/0.3378, allocations: 3.938 kB / 474.5 MB, free: 20.86 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0009083/0.3387, allocations: 231.5 kB / 474.8 MB, free: 20.84 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.0002009/0.3389, allocations: 136.7 kB / 474.9 MB, free: 20.72 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002663/0.3416, allocations: 1.147 MB / 476 MB, free: 20.29 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.567e-06/0.3416, allocations: 0.5625 kB / 476 MB, free: 20.29 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001213/0.3428, allocations: 0.578 MB / 476.6 MB, free: 20.01 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009596/0.3438, allocations: 173.5 kB / 476.8 MB, free: 19.91 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005395/0.3492, allocations: 3.079 MB / 479.9 MB, free: 16.8 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004006/0.3496, allocations: 0.9624 MB / 480.8 MB, free: 15.8 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0007715/0.3504, allocations: 161.9 kB / 481 MB, free: 15.64 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003944/0.3508, allocations: 83.33 kB / 481.1 MB, free: 15.56 MB / 350.1 MB Notification: Performance of SimCode: time 7.62e-07/0.3508, allocations: 4 kB / 481.1 MB, free: 15.56 MB / 350.1 MB Notification: Performance of Templates: time 0.01652/0.3673, allocations: 11.44 MB / 492.5 MB, free: 4.242 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)