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.0009769/0.0009767, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.001122/0.001122, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.441/1.441, allocations: 223.2 MB / 239.9 MB, free: 5.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.21/0.21, allocations: 22.34 MB / 313.3 MB, free: 13.12 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004556/0.0004559, allocations: 12 kB / 381.8 MB, free: 10.55 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2759/0.2764, allocations: 55.98 MB / 437.8 MB, free: 39.55 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001): time 0.002677/0.2791, allocations: 2.684 MB / 440.5 MB, free: 37.6 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001443/0.2806, allocations: 0.9328 MB / 441.4 MB, free: 36.93 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001538/0.2807, allocations: 5.312 kB / 441.4 MB, free: 36.93 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001496/0.2809, allocations: 55.3 kB / 441.5 MB, free: 36.9 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002459/0.2812, allocations: 169.6 kB / 441.6 MB, free: 36.77 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004524/0.2816, allocations: 147.7 kB / 441.8 MB, free: 36.69 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004279/0.2821, allocations: 462.5 kB / 442.2 MB, free: 36.45 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004206/0.2825, allocations: 356.8 kB / 442.6 MB, free: 36.32 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002326/0.2827, allocations: 244.3 kB / 442.8 MB, free: 36.23 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003213/0.2831, allocations: 333.1 kB / 443.2 MB, free: 36.09 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.147e-05/0.2831, allocations: 43.66 kB / 443.2 MB, free: 36.09 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.529e-05/0.2832, allocations: 47.31 kB / 443.2 MB, free: 36.09 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001262/0.2834, allocations: 154.2 kB / 443.4 MB, free: 36.02 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.814e-05/0.2835, allocations: 131.7 kB / 443.5 MB, free: 35.94 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004135/0.2839, allocations: 0.5807 MB / 444.1 MB, free: 35.81 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.557e-06/0.2839, allocations: 0 / 444.1 MB, free: 35.81 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.2839, allocations: 0 / 444.1 MB, free: 35.81 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.976e-06/0.2839, allocations: 0 / 444.1 MB, free: 35.81 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.001592/0.2855, allocations: 0.8125 MB / 444.9 MB, free: 35.25 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.918e-05/0.2856, allocations: 10.81 kB / 444.9 MB, free: 35.25 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001257/0.2857, allocations: 65.34 kB / 445 MB, free: 35.22 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004906/0.2862, allocations: 378.2 kB / 445.4 MB, free: 34.92 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001323/0.2863, allocations: 109.3 kB / 445.5 MB, free: 34.84 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.704e-05/0.2864, allocations: 48.41 kB / 445.5 MB, free: 34.82 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001405/0.2879, allocations: 0.7289 MB / 446.2 MB, free: 34.57 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.882e-05/0.2879, allocations: 0 / 446.2 MB, free: 34.57 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.324e-05/0.288, allocations: 21.28 kB / 446.3 MB, free: 34.55 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.794e-05/0.288, allocations: 11.12 kB / 446.3 MB, free: 34.55 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001275/0.2893, allocations: 0.6442 MB / 446.9 MB, free: 34.35 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004816/0.2941, allocations: 2.692 MB / 449.6 MB, free: 32.96 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001016/0.2951, allocations: 0.5686 MB / 450.2 MB, free: 32.74 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.603e-05/0.2952, allocations: 15.81 kB / 450.2 MB, free: 32.73 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.961e-05/0.2952, allocations: 30.94 kB / 450.2 MB, free: 32.7 MB / 350.1 MB Notification: Performance of pre-optimization done (n=46): time 1.854e-06/0.2952, allocations: 0 / 450.2 MB, free: 32.7 MB / 350.1 MB Notification: Performance of matching and sorting (n=50): time 0.005127/0.3003, allocations: 2.343 MB / 452.6 MB, free: 31.75 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.869e-05/0.3004, allocations: 61.28 kB / 452.6 MB, free: 31.68 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000299/0.3007, allocations: 357 kB / 453 MB, free: 31.5 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.234e-05/0.3008, allocations: 37.39 kB / 453 MB, free: 31.46 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001026/0.3009, allocations: 226.7 kB / 453.2 MB, free: 31.27 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001118/0.301, allocations: 177.2 kB / 453.4 MB, free: 31.13 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.405e-05/0.301, allocations: 11.38 kB / 453.4 MB, free: 31.12 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.568e-05/0.3011, allocations: 357.4 kB / 453.8 MB, free: 30.79 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000769/0.3019, allocations: 399.8 kB / 454.2 MB, free: 30.66 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007501/0.3026, allocations: 443.3 kB / 454.6 MB, free: 30.47 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000793/0.3034, allocations: 383.9 kB / 455 MB, free: 30.34 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.943e-06/0.3035, allocations: 0 / 455 MB, free: 30.34 MB / 350.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001853/0.3053, allocations: 0.9144 MB / 455.9 MB, free: 30 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.215e-05/0.3054, allocations: 5.156 kB / 455.9 MB, free: 30 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.183e-06/0.3054, allocations: 2.406 kB / 455.9 MB, free: 30 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.038e-05/0.3054, allocations: 4.094 kB / 455.9 MB, free: 30 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00619/0.3116, allocations: 1.195 MB / 457.1 MB, free: 29.93 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.213e-05/0.3116, allocations: 3.719 kB / 457.1 MB, free: 29.93 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006648/0.3123, allocations: 76.64 kB / 457.2 MB, free: 29.92 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.183e-05/0.3124, allocations: 21.28 kB / 457.2 MB, free: 29.91 MB / 350.1 MB Warning: Assuming fixed start value for the following 5 variables: H.Ec:VARIABLE(flow=false fixed = true ) type: Real H.Tfo:VARIABLE(min = 0.0 start = H.Tstart unit = "K" fixed = true nominal = 300.0 ) "outlet fluid temp" type: Real stank.Tcold:VARIABLE(min = 0.0 start = stank.Tcoldstart unit = "K" fixed = true nominal = 300.0 stateSelect=StateSelect.prefer ) type: Real stank.Thot:VARIABLE(min = 0.0 start = stank.Thotstart unit = "K" fixed = true nominal = 300.0 stateSelect=StateSelect.prefer ) type: Real stank.lcold:VARIABLE(start = stank.lcoldstart unit = "m" fixed = true stateSelect=StateSelect.prefer ) "cold height" 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003785/0.3128, allocations: 202.9 kB / 457.4 MB, free: 29.75 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.736e-05/0.3129, allocations: 44.62 kB / 457.4 MB, free: 29.73 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001956/0.3148, allocations: 0.886 MB / 458.3 MB, free: 29.41 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.027e-06/0.3148, allocations: 4.812 kB / 458.3 MB, free: 29.41 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.795e-06/0.3149, allocations: 9.766 kB / 458.3 MB, free: 29.4 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.246e-06/0.3149, allocations: 3.281 kB / 458.3 MB, free: 29.4 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003444/0.3183, allocations: 1.811 MB / 460.1 MB, free: 28.52 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.637e-06/0.3183, allocations: 1.156 kB / 460.1 MB, free: 28.52 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006141/0.3245, allocations: 1.181 MB / 461.3 MB, free: 28.45 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.632e-05/0.3245, allocations: 1.656 kB / 461.3 MB, free: 28.45 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.83e-05/0.3246, allocations: 17.08 kB / 461.3 MB, free: 28.44 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.033e-06/0.3246, allocations: 7.312 kB / 461.4 MB, free: 28.44 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.384e-06/0.3246, allocations: 0 / 461.4 MB, free: 28.44 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002766/0.3274, allocations: 1.375 MB / 462.7 MB, free: 27.86 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001413/0.3276, allocations: 115.8 kB / 462.8 MB, free: 27.74 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.825e-05/0.3277, allocations: 22.7 kB / 462.9 MB, free: 27.73 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005129/0.3282, allocations: 68.55 kB / 462.9 MB, free: 27.72 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001727/0.3284, allocations: 74.94 kB / 463 MB, free: 27.7 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.405e-05/0.3284, allocations: 16.95 kB / 463 MB, free: 27.7 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002657/0.3287, allocations: 255.6 kB / 463.3 MB, free: 27.56 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3287, allocations: 0 / 463.3 MB, free: 27.56 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005049/0.3292, allocations: 143.4 kB / 463.4 MB, free: 27.55 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001424/0.3294, allocations: 116.5 kB / 463.5 MB, free: 27.45 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001939/0.3313, allocations: 0.8462 MB / 464.4 MB, free: 27.18 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.594e-06/0.3313, allocations: 0 / 464.4 MB, free: 27.18 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000881/0.3322, allocations: 445.6 kB / 464.8 MB, free: 27.05 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004474/0.3327, allocations: 90.25 kB / 464.9 MB, free: 27.02 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003946/0.3366, allocations: 2.215 MB / 467.1 MB, free: 25.82 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003034/0.3369, allocations: 0.8629 MB / 468 MB, free: 25.11 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000451/0.3374, allocations: 95.16 kB / 468.1 MB, free: 25.09 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000236/0.3377, allocations: 47.38 kB / 468.1 MB, free: 25.09 MB / 350.1 MB Notification: Performance of SimCode: time 8.12e-07/0.3377, allocations: 0.9062 kB / 468.1 MB, free: 25.09 MB / 350.1 MB Notification: Performance of Templates: time 0.01229/0.35, allocations: 7.24 MB / 475.4 MB, free: 23.27 MB / 350.1 MB make -j1 -f AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: