Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003.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_003,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003") translateModel(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001217/0.001217, 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.001605/0.001605, 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.425/1.425, allocations: 223.2 MB / 239.9 MB, free: 5.371 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2155/0.2155, allocations: 22.33 MB / 313.3 MB, free: 13.15 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002936/0.0002937, allocations: 12 kB / 381.8 MB, free: 10.61 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2716/0.272, allocations: 55.97 MB / 437.8 MB, free: 39.12 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003): time 0.002476/0.2745, allocations: 2.697 MB / 440.5 MB, free: 37.14 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001503/0.276, allocations: 0.9413 MB / 441.4 MB, free: 36.47 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001675/0.2762, allocations: 5.312 kB / 441.4 MB, free: 36.47 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001519/0.2764, allocations: 51.83 kB / 441.5 MB, free: 36.45 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000265/0.2766, allocations: 171.5 kB / 441.7 MB, free: 36.32 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004031/0.277, allocations: 148.1 kB / 441.8 MB, free: 36.23 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003788/0.2774, allocations: 463.8 kB / 442.3 MB, free: 36 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003871/0.2778, allocations: 348.2 kB / 442.6 MB, free: 35.88 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002178/0.2781, allocations: 252.3 kB / 442.8 MB, free: 35.78 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003034/0.2784, allocations: 324.9 kB / 443.2 MB, free: 35.64 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.853e-05/0.2784, allocations: 48.06 kB / 443.2 MB, free: 35.64 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.851e-05/0.2785, allocations: 43.81 kB / 443.3 MB, free: 35.64 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00012/0.2787, allocations: 166.3 kB / 443.4 MB, free: 35.56 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.752e-05/0.2788, allocations: 131.2 kB / 443.5 MB, free: 35.48 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003617/0.2791, allocations: 0.579 MB / 444.1 MB, free: 35.36 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.366e-06/0.2791, allocations: 4 kB / 444.1 MB, free: 35.36 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.864e-06/0.2791, allocations: 0 / 444.1 MB, free: 35.36 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.694e-06/0.2792, allocations: 0 / 444.1 MB, free: 35.36 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: 123 * Number of variables: 123 Notification: Performance of Generate backend data structure: time 0.001586/0.2807, allocations: 0.811 MB / 444.9 MB, free: 34.8 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.216e-05/0.2808, allocations: 7.812 kB / 444.9 MB, free: 34.8 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001313/0.2809, allocations: 69.84 kB / 445 MB, free: 34.76 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004836/0.2814, allocations: 376.1 kB / 445.4 MB, free: 34.47 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000124/0.2816, allocations: 112.5 kB / 445.5 MB, free: 34.38 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.66e-05/0.2817, allocations: 50.62 kB / 445.5 MB, free: 34.37 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001387/0.2831, allocations: 0.7301 MB / 446.3 MB, free: 34.11 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.846e-05/0.2831, allocations: 0 / 446.3 MB, free: 34.11 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.324e-05/0.2832, allocations: 21.75 kB / 446.3 MB, free: 34.09 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.314e-05/0.2832, allocations: 11.16 kB / 446.3 MB, free: 34.09 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001285/0.2845, allocations: 0.6432 MB / 446.9 MB, free: 33.89 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004485/0.289, allocations: 2.683 MB / 449.6 MB, free: 32.5 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001065/0.29, allocations: 0.5795 MB / 450.2 MB, free: 32.28 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.703e-05/0.2901, allocations: 9.062 kB / 450.2 MB, free: 32.28 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.556e-05/0.2901, allocations: 37.62 kB / 450.3 MB, free: 32.23 MB / 350.1 MB Notification: Performance of pre-optimization done (n=48): time 1.694e-06/0.2901, allocations: 0 / 450.3 MB, free: 32.23 MB / 350.1 MB Notification: Performance of matching and sorting (n=52): time 0.005285/0.2954, allocations: 2.377 MB / 452.6 MB, free: 31.27 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.356e-05/0.2955, allocations: 62.62 kB / 452.7 MB, free: 31.21 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000289/0.2958, allocations: 355.8 kB / 453 MB, free: 31.02 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.382e-05/0.2958, allocations: 36.73 kB / 453.1 MB, free: 30.98 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.37e-05/0.2959, allocations: 231.6 kB / 453.3 MB, free: 30.79 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001061/0.296, allocations: 185.1 kB / 453.5 MB, free: 30.65 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.547e-05/0.2961, allocations: 8 kB / 453.5 MB, free: 30.64 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.324e-05/0.2961, allocations: 357.7 kB / 453.8 MB, free: 30.31 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007926/0.2969, allocations: 403.9 kB / 454.2 MB, free: 30.18 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007927/0.2977, allocations: 446 kB / 454.7 MB, free: 30 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007625/0.2985, allocations: 382 kB / 455 MB, free: 29.87 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.2985, allocations: 3.438 kB / 455 MB, free: 29.87 MB / 350.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001829/0.3004, allocations: 0.9216 MB / 456 MB, free: 29.53 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.823e-05/0.3004, allocations: 9.188 kB / 456 MB, free: 29.52 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.903e-06/0.3004, allocations: 2.375 kB / 456 MB, free: 29.52 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.655e-05/0.3004, allocations: 3.719 kB / 456 MB, free: 29.52 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006045/0.3065, allocations: 1.198 MB / 457.2 MB, free: 29.46 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.559e-05/0.3065, allocations: 7.891 kB / 457.2 MB, free: 29.45 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005731/0.3071, allocations: 82.09 kB / 457.3 MB, free: 29.43 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.956e-05/0.3072, allocations: 20.94 kB / 457.3 MB, free: 29.43 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: 6 * Number of states: 0 () * Number of discrete variables: 1 (H.ON) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (67): * Single equations (assignments): 67 * 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.0003159/0.3075, allocations: 203.3 kB / 457.5 MB, free: 29.27 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.603e-05/0.3076, allocations: 40.47 kB / 457.5 MB, free: 29.25 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0019/0.3095, allocations: 0.9101 MB / 458.4 MB, free: 28.91 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.177e-06/0.3095, allocations: 5.156 kB / 458.4 MB, free: 28.91 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.35e-06/0.3095, allocations: 0 / 458.4 MB, free: 28.91 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.655e-06/0.3095, allocations: 8.062 kB / 458.5 MB, free: 28.91 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003283/0.3128, allocations: 1.832 MB / 460.3 MB, free: 28.01 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.498e-06/0.3128, allocations: 5 kB / 460.3 MB, free: 28.01 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006427/0.3193, allocations: 1.186 MB / 461.5 MB, free: 27.95 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.489e-05/0.3193, allocations: 4.156 kB / 461.5 MB, free: 27.95 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.95e-05/0.3194, allocations: 16.97 kB / 461.5 MB, free: 27.94 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.54e-06/0.3194, allocations: 2.469 kB / 461.5 MB, free: 27.94 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.906e-06/0.3194, allocations: 11.94 kB / 461.5 MB, free: 27.93 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00283/0.3223, allocations: 1.379 MB / 462.9 MB, free: 27.35 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001352/0.3224, allocations: 124.2 kB / 463 MB, free: 27.23 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.594e-05/0.3225, allocations: 13.11 kB / 463 MB, free: 27.22 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005596/0.3231, allocations: 71.55 kB / 463.1 MB, free: 27.21 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001711/0.3233, allocations: 75.53 kB / 463.2 MB, free: 27.2 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.545e-05/0.3233, allocations: 20.17 kB / 463.2 MB, free: 27.2 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002669/0.3236, allocations: 252.1 kB / 463.4 MB, free: 27.06 MB / 350.1 MB Notification: Performance of sort global known variables: time 5.71e-07/0.3236, allocations: 4 kB / 463.4 MB, free: 27.05 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005581/0.3242, allocations: 146.3 kB / 463.6 MB, free: 27.04 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: 1 (H.ON) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (53): * Single equations (assignments): 53 * 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.0001787/0.3244, allocations: 116.2 kB / 463.7 MB, free: 26.94 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00199/0.3264, allocations: 0.862 MB / 464.6 MB, free: 26.67 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.966e-06/0.3264, allocations: 0 / 464.6 MB, free: 26.67 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009446/0.3273, allocations: 450.5 kB / 465 MB, free: 26.53 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004783/0.3278, allocations: 94.69 kB / 465.1 MB, free: 26.5 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003491/0.3313, allocations: 2.122 MB / 467.2 MB, free: 25.31 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000308/0.3316, allocations: 0.8672 MB / 468.1 MB, free: 24.59 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004602/0.3321, allocations: 96.44 kB / 468.2 MB, free: 24.57 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002355/0.3324, allocations: 51.03 kB / 468.2 MB, free: 24.56 MB / 350.1 MB Notification: Performance of SimCode: time 6.01e-07/0.3324, allocations: 3.938 kB / 468.2 MB, free: 24.56 MB / 350.1 MB Notification: Performance of Templates: time 0.01443/0.3468, allocations: 7.293 MB / 475.5 MB, free: 22.8 MB / 350.1 MB make -j1 -f AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003.makefile Environment - environmentSimulation: (rm -f AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003.pipe ; mkfifo AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003.pipe >> ../files/AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003.sim & ./AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003 -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003.pipe 2>&1) Environment - environmentSimulation: