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.0009747/0.0009747, allocations: 98.8 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001092/0.001092, allocations: 181.4 kB / 16.92 MB, free: 6.918 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: 223.3 MB / 241 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1948/0.1948, allocations: 22.34 MB / 314.4 MB, free: 13.17 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002994/0.0002995, allocations: 12 kB / 383.3 MB, free: 10.16 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2525/0.2529, allocations: 55.98 MB / 439.2 MB, free: 39.4 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002): time 0.002991/0.2559, allocations: 4.125 MB / 443.4 MB, free: 36.32 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001635/0.2576, allocations: 1.205 MB / 444.6 MB, free: 35.43 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002183/0.2578, allocations: 12.53 kB / 444.6 MB, free: 35.43 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001803/0.258, allocations: 77.56 kB / 444.7 MB, free: 35.39 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003984/0.2584, allocations: 238.8 kB / 444.9 MB, free: 35.24 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005323/0.2589, allocations: 253.5 kB / 445.1 MB, free: 35.08 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007951/0.2597, allocations: 1.285 MB / 446.4 MB, free: 34.54 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005653/0.2603, allocations: 0.5721 MB / 447 MB, free: 34.3 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000319/0.2606, allocations: 415.3 kB / 447.4 MB, free: 34.14 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005022/0.2611, allocations: 0.5668 MB / 448 MB, free: 33.89 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001089/0.2613, allocations: 70.28 kB / 448 MB, free: 33.89 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001245/0.2614, allocations: 68.66 kB / 448.1 MB, free: 33.89 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001692/0.2616, allocations: 275.1 kB / 448.4 MB, free: 33.76 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003206/0.2619, allocations: 0.493 MB / 448.9 MB, free: 33.46 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005087/0.2624, allocations: 0.9182 MB / 449.8 MB, free: 33.27 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.115e-06/0.2624, allocations: 0 / 449.8 MB, free: 33.27 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.2624, allocations: 0 / 449.8 MB, free: 33.27 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.699e-06/0.2624, allocations: 0 / 449.8 MB, free: 33.27 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.002206/0.2647, allocations: 1.111 MB / 450.9 MB, free: 32.58 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.301e-05/0.2647, allocations: 14.41 kB / 450.9 MB, free: 32.57 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001706/0.2649, allocations: 99.03 kB / 451 MB, free: 32.53 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006384/0.2655, allocations: 0.5106 MB / 451.5 MB, free: 32.15 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000144/0.2657, allocations: 163.9 kB / 451.7 MB, free: 32.02 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001421/0.2658, allocations: 80.78 kB / 451.8 MB, free: 32 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001987/0.2678, allocations: 1.063 MB / 452.8 MB, free: 31.61 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.113e-05/0.2679, allocations: 2.438 kB / 452.8 MB, free: 31.61 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.755e-05/0.268, allocations: 30.97 kB / 452.8 MB, free: 31.59 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.417e-05/0.268, allocations: 18.94 kB / 452.9 MB, free: 31.59 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001847/0.2698, allocations: 0.9451 MB / 453.8 MB, free: 31.29 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006022/0.2759, allocations: 3.662 MB / 457.5 MB, free: 29.51 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001907/0.2778, allocations: 0.9442 MB / 458.4 MB, free: 29.15 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001259/0.2791, allocations: 0.6615 MB / 459.1 MB, free: 28.92 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.842e-05/0.2791, allocations: 12.91 kB / 459.1 MB, free: 28.91 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.987e-05/0.2792, allocations: 43.67 kB / 459.1 MB, free: 28.86 MB / 350.1 MB Notification: Performance of pre-optimization done (n=79): time 2.705e-06/0.2792, allocations: 1.312 kB / 459.1 MB, free: 28.86 MB / 350.1 MB Notification: Performance of matching and sorting (n=83): time 0.007534/0.2867, allocations: 3.209 MB / 462.3 MB, free: 27.55 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.582e-05/0.2867, allocations: 61.02 kB / 462.4 MB, free: 27.49 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005422/0.2873, allocations: 0.5117 MB / 462.9 MB, free: 27.25 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.915e-05/0.2874, allocations: 44.84 kB / 463 MB, free: 27.21 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001471/0.2875, allocations: 314.9 kB / 463.3 MB, free: 26.95 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001821/0.2877, allocations: 307.3 kB / 463.6 MB, free: 26.71 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001164/0.2878, allocations: 76.3 kB / 463.6 MB, free: 26.67 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.42e-05/0.2879, allocations: 388.6 kB / 464 MB, free: 26.32 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001194/0.2891, allocations: 0.565 MB / 464.6 MB, free: 26.12 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001235/0.2904, allocations: 0.6407 MB / 465.2 MB, free: 25.85 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01108/0.3015, allocations: 3.341 MB / 468.6 MB, free: 24.95 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.408e-06/0.3015, allocations: 0 / 468.6 MB, free: 24.95 MB / 350.1 MB Notification: Performance of matching and sorting (n=112) (initialization): time 0.002822/0.3043, allocations: 1.338 MB / 469.9 MB, free: 24.46 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.245e-05/0.3044, allocations: 12.83 kB / 469.9 MB, free: 24.45 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.488e-06/0.3044, allocations: 2.062 kB / 469.9 MB, free: 24.45 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.189e-05/0.3044, allocations: 6.25 kB / 469.9 MB, free: 24.45 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007447/0.3119, allocations: 1.323 MB / 471.2 MB, free: 24.38 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.039e-05/0.3119, allocations: 13.09 kB / 471.3 MB, free: 24.37 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008795/0.3128, allocations: 96.17 kB / 471.4 MB, free: 24.35 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.875e-05/0.3129, allocations: 32.09 kB / 471.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.0004471/0.3133, allocations: 260 kB / 471.6 MB, free: 24.14 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001292/0.3135, allocations: 68.56 kB / 471.7 MB, free: 24.11 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002818/0.3163, allocations: 1.267 MB / 473 MB, free: 23.63 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.011e-05/0.3163, allocations: 12.53 kB / 473 MB, free: 23.62 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.692e-06/0.3163, allocations: 4.609 kB / 473 MB, free: 23.62 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.355e-05/0.3164, allocations: 5.031 kB / 473 MB, free: 23.62 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004605/0.321, allocations: 2.474 MB / 475.5 MB, free: 22.5 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.522e-06/0.321, allocations: 2.359 kB / 475.5 MB, free: 22.5 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00763/0.3286, allocations: 1.302 MB / 476.8 MB, free: 22.42 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.753e-05/0.3287, allocations: 4.188 kB / 476.8 MB, free: 22.42 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001635/0.3288, allocations: 26.75 kB / 476.8 MB, free: 22.41 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.506e-06/0.3289, allocations: 9.156 kB / 476.8 MB, free: 22.41 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.935e-06/0.3289, allocations: 2.094 kB / 476.8 MB, free: 22.41 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003929/0.3328, allocations: 1.919 MB / 478.7 MB, free: 21.18 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000214/0.333, allocations: 152.3 kB / 478.9 MB, free: 21.02 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001327/0.3332, allocations: 20 kB / 478.9 MB, free: 21 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007808/0.334, allocations: 87.91 kB / 479 MB, free: 20.91 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002089/0.3342, allocations: 96.5 kB / 479.1 MB, free: 20.82 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.153e-05/0.3343, allocations: 23.98 kB / 479.1 MB, free: 20.79 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000351/0.3346, allocations: 370.8 kB / 479.5 MB, free: 20.43 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3346, allocations: 0 / 479.5 MB, free: 20.43 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006553/0.3353, allocations: 236 kB / 479.7 MB, free: 20.2 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.0001692/0.3355, allocations: 131.1 kB / 479.8 MB, free: 20.07 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002381/0.3378, allocations: 1.22 MB / 481 MB, free: 18.85 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.3379, allocations: 0 / 481 MB, free: 18.85 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001117/0.339, allocations: 0.6094 MB / 481.7 MB, free: 18.23 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009208/0.3399, allocations: 162.1 kB / 481.8 MB, free: 18.08 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005211/0.3451, allocations: 3.385 MB / 485.2 MB, free: 14.64 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003072/0.3455, allocations: 0.9624 MB / 486.2 MB, free: 13.64 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005079/0.346, allocations: 75.41 kB / 486.2 MB, free: 13.57 MB / 350.1 MB Notification: Performance of SimCode: time 5.41e-07/0.346, allocations: 0 / 486.2 MB, free: 13.57 MB / 350.1 MB Notification: Performance of Templates: time 0.01252/0.3585, allocations: 11.29 MB / 497.5 MB, free: 2.312 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)