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.0008758/0.0008758, allocations: 86.72 kB / 15.06 MB, free: 1.09 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.001096/0.001096, allocations: 168.7 kB / 15.95 MB, free: 204 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.416/1.416, allocations: 223.3 MB / 240 MB, free: 5.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2513/0.2513, allocations: 22.34 MB / 313.4 MB, free: 13.17 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003349/0.000335, allocations: 12 kB / 381.9 MB, free: 10.56 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3022/0.3026, allocations: 55.96 MB / 437.9 MB, free: 39.42 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002): time 0.003259/0.3059, allocations: 3.905 MB / 441.8 MB, free: 36.55 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001802/0.3077, allocations: 1.177 MB / 443 MB, free: 35.7 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002253/0.308, allocations: 5.812 kB / 443 MB, free: 35.7 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002118/0.3082, allocations: 85.33 kB / 443.1 MB, free: 35.65 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004478/0.3087, allocations: 261.5 kB / 443.3 MB, free: 35.48 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006035/0.3093, allocations: 230 kB / 443.6 MB, free: 35.35 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009225/0.3102, allocations: 1.164 MB / 444.7 MB, free: 34.82 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006059/0.3108, allocations: 0.5499 MB / 445.3 MB, free: 34.6 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003414/0.3112, allocations: 411.2 kB / 445.7 MB, free: 34.45 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005227/0.3117, allocations: 0.5584 MB / 446.2 MB, free: 34.21 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001023/0.3118, allocations: 70.88 kB / 446.3 MB, free: 34.21 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001189/0.3119, allocations: 73.91 kB / 446.4 MB, free: 34.21 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001793/0.3121, allocations: 271.5 kB / 446.6 MB, free: 34.09 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001341/0.3123, allocations: 181.8 kB / 446.8 MB, free: 33.99 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005121/0.3128, allocations: 0.9246 MB / 447.7 MB, free: 33.79 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.109e-06/0.3128, allocations: 0 / 447.7 MB, free: 33.79 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.3128, allocations: 0 / 447.7 MB, free: 33.79 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.928e-06/0.3128, allocations: 0 / 447.7 MB, free: 33.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.001977/0.3148, allocations: 1.113 MB / 448.8 MB, free: 33.11 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.043e-05/0.3148, allocations: 8.469 kB / 448.9 MB, free: 33.11 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001474/0.315, allocations: 102.8 kB / 449 MB, free: 33.05 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00057/0.3156, allocations: 0.496 MB / 449.5 MB, free: 32.69 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001296/0.3157, allocations: 165.5 kB / 449.6 MB, free: 32.56 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001225/0.3158, allocations: 89.28 kB / 449.7 MB, free: 32.53 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001746/0.3176, allocations: 1.048 MB / 450.7 MB, free: 32.15 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.077e-05/0.3176, allocations: 0 / 450.7 MB, free: 32.15 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.999e-05/0.3177, allocations: 30.53 kB / 450.8 MB, free: 32.13 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.36e-05/0.3177, allocations: 18.72 kB / 450.8 MB, free: 32.13 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001651/0.3194, allocations: 0.9429 MB / 451.7 MB, free: 31.83 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005447/0.3248, allocations: 3.664 MB / 455.4 MB, free: 30.06 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001845/0.3267, allocations: 0.9383 MB / 456.3 MB, free: 29.7 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001144/0.3279, allocations: 0.6613 MB / 457 MB, free: 29.46 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.037e-05/0.328, allocations: 19.42 kB / 457 MB, free: 29.46 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.966e-05/0.328, allocations: 47.22 kB / 457.1 MB, free: 29.41 MB / 350.1 MB Notification: Performance of pre-optimization done (n=79): time 2.535e-06/0.328, allocations: 0 / 457.1 MB, free: 29.41 MB / 350.1 MB Notification: Performance of matching and sorting (n=83): time 0.006891/0.3349, allocations: 3.194 MB / 460.3 MB, free: 28.11 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.574e-05/0.335, allocations: 61.42 kB / 460.3 MB, free: 28.05 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006099/0.3356, allocations: 0.5069 MB / 460.8 MB, free: 27.8 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.838e-05/0.3357, allocations: 44.8 kB / 460.9 MB, free: 27.76 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000164/0.3358, allocations: 326.2 kB / 461.2 MB, free: 27.5 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001954/0.336, allocations: 299.6 kB / 461.5 MB, free: 27.26 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.918e-05/0.3361, allocations: 19.31 kB / 461.5 MB, free: 27.25 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001001/0.3362, allocations: 378.7 kB / 461.9 MB, free: 26.91 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001116/0.3373, allocations: 0.5661 MB / 462.4 MB, free: 26.71 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001222/0.3386, allocations: 0.6382 MB / 463.1 MB, free: 26.43 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00124/0.3398, allocations: 0.5602 MB / 463.6 MB, free: 26.21 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.687e-06/0.3398, allocations: 1.062 kB / 463.6 MB, free: 26.21 MB / 350.1 MB Notification: Performance of matching and sorting (n=112) (initialization): time 0.002633/0.3425, allocations: 1.343 MB / 465 MB, free: 25.71 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.096e-05/0.3425, allocations: 5.719 kB / 465 MB, free: 25.71 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.818e-06/0.3425, allocations: 6.781 kB / 465 MB, free: 25.7 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.998e-05/0.3425, allocations: 6.625 kB / 465 MB, free: 25.7 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006404/0.3489, allocations: 1.321 MB / 466.3 MB, free: 25.62 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.267e-05/0.349, allocations: 7.578 kB / 466.3 MB, free: 25.62 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009922/0.35, allocations: 90.94 kB / 466.4 MB, free: 25.61 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.679e-05/0.3501, allocations: 37.66 kB / 466.5 MB, free: 25.6 MB / 350.1 MB Warning: Assuming fixed start value for the following 7 variables: HnoTank.Ec:VARIABLE(flow=false fixed = true ) type: Real H.Ec:VARIABLE(flow=false fixed = true ) type: Real HnoTank.Tfo:VARIABLE(min = 0.0 start = HnoTank.Tstart unit = "K" fixed = true nominal = 300.0 ) "outlet fluid temp" 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: 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006335/0.3508, allocations: 253.3 kB / 466.7 MB, free: 25.4 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001912/0.351, allocations: 70.14 kB / 466.8 MB, free: 25.37 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002801/0.3538, allocations: 1.27 MB / 468 MB, free: 24.88 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.346e-05/0.3538, allocations: 7.844 kB / 468 MB, free: 24.88 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.384e-06/0.3538, allocations: 1.219 kB / 468 MB, free: 24.88 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.565e-05/0.3538, allocations: 3.984 kB / 468.1 MB, free: 24.88 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004752/0.3586, allocations: 2.475 MB / 470.5 MB, free: 23.76 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.943e-06/0.3586, allocations: 1.375 kB / 470.5 MB, free: 23.76 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006499/0.3651, allocations: 1.301 MB / 471.8 MB, free: 23.68 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.974e-05/0.3652, allocations: 9.062 kB / 471.8 MB, free: 23.68 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002395/0.3655, allocations: 27.16 kB / 471.9 MB, free: 23.67 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.128e-05/0.3655, allocations: 4.094 kB / 471.9 MB, free: 23.67 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.408e-06/0.3655, allocations: 6.656 kB / 471.9 MB, free: 23.66 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003909/0.3694, allocations: 1.922 MB / 473.8 MB, free: 22.85 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002581/0.3697, allocations: 145.9 kB / 473.9 MB, free: 22.71 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001341/0.3698, allocations: 21.36 kB / 474 MB, free: 22.7 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007124/0.3705, allocations: 83.62 kB / 474 MB, free: 22.69 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002637/0.3708, allocations: 108.1 kB / 474.1 MB, free: 22.67 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.415e-05/0.3709, allocations: 26.67 kB / 474.2 MB, free: 22.66 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004924/0.3714, allocations: 359.8 kB / 474.5 MB, free: 22.5 MB / 350.1 MB Notification: Performance of sort global known variables: time 4.7e-07/0.3714, allocations: 4 kB / 474.5 MB, free: 22.49 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000808/0.3722, allocations: 231.6 kB / 474.8 MB, free: 22.47 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 (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.0001964/0.3724, allocations: 140.5 kB / 474.9 MB, free: 22.35 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002872/0.3753, allocations: 1.215 MB / 476.1 MB, free: 21.96 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 8.736e-06/0.3753, allocations: 1 kB / 476.1 MB, free: 21.96 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001336/0.3767, allocations: 0.6147 MB / 476.7 MB, free: 21.66 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008971/0.3776, allocations: 166.4 kB / 476.9 MB, free: 21.52 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005114/0.3827, allocations: 3.265 MB / 480.2 MB, free: 18.56 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003123/0.3831, allocations: 0.9624 MB / 481.1 MB, free: 17.57 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0007851/0.3838, allocations: 169.9 kB / 481.3 MB, free: 17.41 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003271/0.3842, allocations: 71.41 kB / 481.4 MB, free: 17.34 MB / 350.1 MB Notification: Performance of SimCode: time 8.92e-07/0.3842, allocations: 0 / 481.4 MB, free: 17.34 MB / 350.1 MB Notification: Performance of Templates: time 0.01491/0.3991, allocations: 10.91 MB / 492.3 MB, free: 6.543 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)