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.001422/0.001422, 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.001654/0.001654, allocations: 191.7 kB / 16.13 MB, free: 6.695 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.364/1.364, allocations: 222.9 MB / 239.8 MB, free: 4.629 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1963/0.1963, allocations: 22.35 MB / 312.3 MB, free: 12.66 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001316/0.001316, allocations: 59.89 kB / 380.1 MB, free: 11.15 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2703/0.2717, allocations: 54.93 MB / 435 MB, free: 39.56 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003): time 0.003632/0.2753, allocations: 3.441 MB / 438.5 MB, free: 37.09 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00148/0.2768, allocations: 0.9317 MB / 439.4 MB, free: 36.41 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003296/0.2772, allocations: 9.188 kB / 439.4 MB, free: 36.41 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002335/0.2775, allocations: 52.27 kB / 439.5 MB, free: 36.39 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000401/0.2779, allocations: 151 kB / 439.6 MB, free: 36.29 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005051/0.2784, allocations: 166.7 kB / 439.8 MB, free: 36.18 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006521/0.279, allocations: 0.8014 MB / 440.6 MB, free: 35.84 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004157/0.2795, allocations: 398.5 kB / 441 MB, free: 35.69 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000251/0.2797, allocations: 277.1 kB / 441.2 MB, free: 35.58 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003486/0.2801, allocations: 385.1 kB / 441.6 MB, free: 35.41 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001007/0.2802, allocations: 54.91 kB / 441.7 MB, free: 35.41 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001076/0.2803, allocations: 50.81 kB / 441.7 MB, free: 35.41 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001301/0.2805, allocations: 184.6 kB / 441.9 MB, free: 35.31 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000227/0.2807, allocations: 314.8 kB / 442.2 MB, free: 35.14 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004552/0.2811, allocations: 0.7669 MB / 443 MB, free: 34.85 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.957e-06/0.2812, allocations: 0 / 443 MB, free: 34.85 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.2812, allocations: 0 / 443 MB, free: 34.85 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.208e-05/0.2812, allocations: 0 / 443 MB, free: 34.85 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.001653/0.2828, allocations: 0.8985 MB / 443.9 MB, free: 34.24 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.191e-05/0.2829, allocations: 12.41 kB / 443.9 MB, free: 34.23 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001155/0.283, allocations: 61.06 kB / 443.9 MB, free: 34.21 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004053/0.2834, allocations: 388.4 kB / 444.3 MB, free: 33.9 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000109/0.2835, allocations: 113.2 kB / 444.4 MB, free: 33.81 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.859e-05/0.2836, allocations: 53.12 kB / 444.5 MB, free: 33.8 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001404/0.285, allocations: 0.6919 MB / 445.2 MB, free: 33.54 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.704e-05/0.2851, allocations: 0 / 445.2 MB, free: 33.54 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.035e-05/0.2851, allocations: 25.34 kB / 445.2 MB, free: 33.52 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.498e-06/0.2852, allocations: 14.62 kB / 445.2 MB, free: 33.52 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001281/0.2864, allocations: 0.6028 MB / 445.8 MB, free: 33.33 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004329/0.2908, allocations: 2.584 MB / 448.4 MB, free: 31.94 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009809/0.2918, allocations: 0.5512 MB / 449 MB, free: 31.71 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007418/0.2925, allocations: 403.4 kB / 449.3 MB, free: 31.57 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.642e-05/0.2926, allocations: 5.688 kB / 449.4 MB, free: 31.57 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.356e-05/0.2926, allocations: 45.05 kB / 449.4 MB, free: 31.52 MB / 350.1 MB Notification: Performance of pre-optimization done (n=48): time 2.425e-06/0.2926, allocations: 0 / 449.4 MB, free: 31.52 MB / 350.1 MB Notification: Performance of matching and sorting (n=52): time 0.00506/0.2977, allocations: 2.196 MB / 451.6 MB, free: 30.58 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.99e-05/0.2977, allocations: 61.88 kB / 451.7 MB, free: 30.51 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003268/0.2981, allocations: 356.1 kB / 452 MB, free: 30.33 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.645e-05/0.2981, allocations: 36.8 kB / 452 MB, free: 30.29 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001071/0.2982, allocations: 230.9 kB / 452.3 MB, free: 30.1 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001236/0.2984, allocations: 184.5 kB / 452.4 MB, free: 29.95 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001698/0.2986, allocations: 92.67 kB / 452.5 MB, free: 29.91 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.648e-05/0.2986, allocations: 356.6 kB / 452.9 MB, free: 29.57 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007541/0.2994, allocations: 372.2 kB / 453.2 MB, free: 29.44 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007322/0.3001, allocations: 412.7 kB / 453.6 MB, free: 29.27 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006035/0.3062, allocations: 1.999 MB / 455.6 MB, free: 28.71 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.567e-06/0.3062, allocations: 0 / 455.6 MB, free: 28.71 MB / 350.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001762/0.308, allocations: 0.8493 MB / 456.5 MB, free: 28.39 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.93e-05/0.308, allocations: 6.375 kB / 456.5 MB, free: 28.39 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.695e-06/0.308, allocations: 5.375 kB / 456.5 MB, free: 28.39 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.772e-05/0.308, allocations: 3.812 kB / 456.5 MB, free: 28.39 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005417/0.3135, allocations: 0.9077 MB / 457.4 MB, free: 28.35 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.91e-05/0.3135, allocations: 3.688 kB / 457.4 MB, free: 28.35 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006413/0.3141, allocations: 60.72 kB / 457.5 MB, free: 28.34 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.553e-05/0.3142, allocations: 20.12 kB / 457.5 MB, free: 28.34 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: 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004091/0.3146, allocations: 206.5 kB / 457.7 MB, free: 28.16 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001197/0.3148, allocations: 44.34 kB / 457.7 MB, free: 28.14 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001928/0.3167, allocations: 0.8321 MB / 458.6 MB, free: 27.82 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.085e-06/0.3167, allocations: 10.47 kB / 458.6 MB, free: 27.82 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.723e-06/0.3167, allocations: 0 / 458.6 MB, free: 27.82 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.003e-06/0.3167, allocations: 6.516 kB / 458.6 MB, free: 27.82 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003189/0.3199, allocations: 1.741 MB / 460.3 MB, free: 26.94 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.607e-06/0.32, allocations: 1.062 kB / 460.3 MB, free: 26.94 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005577/0.3255, allocations: 0.9011 MB / 461.2 MB, free: 26.9 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.124e-05/0.3256, allocations: 2.781 kB / 461.2 MB, free: 26.9 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.551e-05/0.3257, allocations: 16.66 kB / 461.3 MB, free: 26.89 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.454e-06/0.3257, allocations: 2.562 kB / 461.3 MB, free: 26.89 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.226e-06/0.3257, allocations: 1.734 kB / 461.3 MB, free: 26.89 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002694/0.3284, allocations: 1.27 MB / 462.5 MB, free: 26.35 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001607/0.3286, allocations: 123.9 kB / 462.7 MB, free: 26.23 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001104/0.3287, allocations: 12.47 kB / 462.7 MB, free: 26.22 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005266/0.3292, allocations: 59.39 kB / 462.7 MB, free: 26.21 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002014/0.3294, allocations: 70.55 kB / 462.8 MB, free: 26.2 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.425e-05/0.3295, allocations: 17 kB / 462.8 MB, free: 26.2 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003024/0.3298, allocations: 258.3 kB / 463.1 MB, free: 26.06 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3298, allocations: 0 / 463.1 MB, free: 26.06 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005454/0.3303, allocations: 148.6 kB / 463.2 MB, free: 26.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 (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.0001449/0.3305, allocations: 118.8 kB / 463.3 MB, free: 25.94 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001788/0.3323, allocations: 0.7854 MB / 464.1 MB, free: 25.68 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.3323, allocations: 1.062 kB / 464.1 MB, free: 25.68 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008618/0.3332, allocations: 420.5 kB / 464.5 MB, free: 25.55 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005897/0.3338, allocations: 104.5 kB / 464.6 MB, free: 25.5 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003704/0.3375, allocations: 1.968 MB / 466.6 MB, free: 24.32 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003966/0.3379, allocations: 0.8499 MB / 467.4 MB, free: 23.61 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000534/0.3384, allocations: 99.22 kB / 467.5 MB, free: 23.59 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002921/0.3387, allocations: 47.55 kB / 467.6 MB, free: 23.59 MB / 350.1 MB Notification: Performance of SimCode: time 7.11e-07/0.3387, allocations: 0 / 467.6 MB, free: 23.59 MB / 350.1 MB Notification: Performance of Templates: time 0.01522/0.354, allocations: 7.663 MB / 475.2 MB, free: 21.28 MB / 350.1 MB make -j1 -f AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003.makefile (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)