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.0009524/0.0009525, allocations: 92.16 kB / 16.02 MB, free: 80 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.001184/0.001184, allocations: 172.9 kB / 16.92 MB, free: 6.652 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.29/1.29, 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.1876/0.1876, allocations: 22.34 MB / 314.4 MB, free: 13.09 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003072/0.0003073, allocations: 8 kB / 383.2 MB, free: 10.18 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2221/0.2224, allocations: 55.98 MB / 439.2 MB, free: 39.24 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001): time 0.002309/0.2247, allocations: 3.042 MB / 442.3 MB, free: 36.98 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001305/0.2261, allocations: 0.9185 MB / 443.2 MB, free: 36.31 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001999/0.2263, allocations: 7.688 kB / 443.2 MB, free: 36.31 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001464/0.2264, allocations: 49.47 kB / 443.2 MB, free: 36.29 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002945/0.2267, allocations: 143.2 kB / 443.4 MB, free: 36.19 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004082/0.2271, allocations: 170.2 kB / 443.5 MB, free: 36.09 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004942/0.2277, allocations: 0.7975 MB / 444.3 MB, free: 35.75 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003874/0.228, allocations: 388.5 kB / 444.7 MB, free: 35.6 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002076/0.2283, allocations: 271.1 kB / 445 MB, free: 35.49 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003275/0.2286, allocations: 361 kB / 445.3 MB, free: 35.34 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.044e-05/0.2287, allocations: 45.06 kB / 445.4 MB, free: 35.34 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.083e-05/0.2288, allocations: 50.62 kB / 445.4 MB, free: 35.33 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001101/0.2289, allocations: 176.3 kB / 445.6 MB, free: 35.25 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002025/0.2291, allocations: 330.6 kB / 445.9 MB, free: 35.05 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003197/0.2294, allocations: 0.5863 MB / 446.5 MB, free: 34.92 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.915e-06/0.2294, allocations: 0 / 446.5 MB, free: 34.92 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.2294, allocations: 0 / 446.5 MB, free: 34.92 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.03e-05/0.2295, allocations: 3.844 kB / 446.5 MB, free: 34.92 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.00142/0.2309, allocations: 0.7947 MB / 447.3 MB, free: 34.36 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.965e-05/0.2309, allocations: 15.5 kB / 447.3 MB, free: 34.36 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001015/0.231, allocations: 68.19 kB / 447.4 MB, free: 34.32 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003903/0.2314, allocations: 391.5 kB / 447.8 MB, free: 34.02 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001095/0.2315, allocations: 112.3 kB / 447.9 MB, free: 33.93 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.723e-05/0.2316, allocations: 52.34 kB / 447.9 MB, free: 33.91 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001437/0.2331, allocations: 0.7279 MB / 448.7 MB, free: 33.66 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.554e-05/0.2331, allocations: 0 / 448.7 MB, free: 33.66 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.296e-05/0.2332, allocations: 23.03 kB / 448.7 MB, free: 33.64 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.328e-06/0.2332, allocations: 11.81 kB / 448.7 MB, free: 33.64 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001357/0.2346, allocations: 0.649 MB / 449.4 MB, free: 33.44 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004536/0.2391, allocations: 2.697 MB / 452.1 MB, free: 32.04 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001053/0.2402, allocations: 0.5667 MB / 452.6 MB, free: 31.83 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008176/0.241, allocations: 434.6 kB / 453 MB, free: 31.68 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.053e-05/0.2411, allocations: 12.69 kB / 453.1 MB, free: 31.67 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.385e-05/0.2411, allocations: 34.91 kB / 453.1 MB, free: 31.63 MB / 350.1 MB Notification: Performance of pre-optimization done (n=46): time 1.573e-06/0.2411, allocations: 0 / 453.1 MB, free: 31.63 MB / 350.1 MB Notification: Performance of matching and sorting (n=50): time 0.005339/0.2464, allocations: 2.343 MB / 455.4 MB, free: 30.68 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.287e-05/0.2465, allocations: 58.81 kB / 455.5 MB, free: 30.61 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000283/0.2467, allocations: 362.9 kB / 455.8 MB, free: 30.43 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.593e-05/0.2468, allocations: 36.98 kB / 455.9 MB, free: 30.39 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.678e-05/0.2469, allocations: 222.6 kB / 456.1 MB, free: 30.21 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001024/0.247, allocations: 184.6 kB / 456.3 MB, free: 30.06 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.517e-05/0.2471, allocations: 52.05 kB / 456.3 MB, free: 30.03 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.328e-05/0.2471, allocations: 354.7 kB / 456.7 MB, free: 29.7 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008743/0.248, allocations: 402.4 kB / 457.1 MB, free: 29.56 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008814/0.2489, allocations: 446.6 kB / 457.5 MB, free: 29.38 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006877/0.2558, allocations: 2.223 MB / 459.7 MB, free: 28.8 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.2558, allocations: 1 kB / 459.7 MB, free: 28.8 MB / 350.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001934/0.2578, allocations: 0.9135 MB / 460.6 MB, free: 28.47 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.424e-05/0.2578, allocations: 5.906 kB / 460.6 MB, free: 28.47 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.129e-05/0.2578, allocations: 1.125 kB / 460.6 MB, free: 28.47 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.361e-05/0.2578, allocations: 4.156 kB / 460.7 MB, free: 28.47 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006568/0.2644, allocations: 1.195 MB / 461.8 MB, free: 28.39 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.099e-05/0.2644, allocations: 8.922 kB / 461.9 MB, free: 28.39 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005386/0.265, allocations: 73.89 kB / 461.9 MB, free: 28.38 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.919e-05/0.265, allocations: 21.7 kB / 461.9 MB, free: 28.38 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: 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002571/0.2653, allocations: 197.9 kB / 462.1 MB, free: 28.21 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.822e-05/0.2654, allocations: 51.94 kB / 462.2 MB, free: 28.18 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00204/0.2674, allocations: 0.8877 MB / 463.1 MB, free: 27.86 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.473e-06/0.2674, allocations: 4.938 kB / 463.1 MB, free: 27.86 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.121e-06/0.2674, allocations: 1.375 kB / 463.1 MB, free: 27.86 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.163e-06/0.2675, allocations: 6.844 kB / 463.1 MB, free: 27.86 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003284/0.2707, allocations: 1.828 MB / 464.9 MB, free: 26.97 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.316e-06/0.2708, allocations: 0.5625 kB / 464.9 MB, free: 26.97 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0065/0.2773, allocations: 1.177 MB / 466.1 MB, free: 26.9 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.119e-06/0.2773, allocations: 2.688 kB / 466.1 MB, free: 26.9 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.231e-05/0.2773, allocations: 17.41 kB / 466.1 MB, free: 26.89 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.128e-06/0.2774, allocations: 5.828 kB / 466.1 MB, free: 26.89 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.2774, allocations: 1.641 kB / 466.1 MB, free: 26.89 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002726/0.2801, allocations: 1.355 MB / 467.5 MB, free: 26.33 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.6e-05/0.2802, allocations: 120.7 kB / 467.6 MB, free: 26.21 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.163e-05/0.2803, allocations: 17.33 kB / 467.6 MB, free: 26.2 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000539/0.2808, allocations: 72.52 kB / 467.7 MB, free: 26.19 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001634/0.281, allocations: 69.42 kB / 467.8 MB, free: 26.18 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.384e-05/0.281, allocations: 13.09 kB / 467.8 MB, free: 26.18 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.00023/0.2813, allocations: 265.8 kB / 468 MB, free: 26.04 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2813, allocations: 0 / 468 MB, free: 26.04 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004467/0.2817, allocations: 140.5 kB / 468.2 MB, free: 26.02 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 (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.0001156/0.2818, allocations: 118.5 kB / 468.3 MB, free: 25.92 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001868/0.2837, allocations: 0.8473 MB / 469.1 MB, free: 25.66 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.2837, allocations: 1.406 kB / 469.1 MB, free: 25.66 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009225/0.2847, allocations: 445.8 kB / 469.6 MB, free: 25.52 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005708/0.2852, allocations: 101.3 kB / 469.7 MB, free: 25.48 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003948/0.2892, allocations: 2.275 MB / 471.9 MB, free: 24.23 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002794/0.2895, allocations: 0.8513 MB / 472.8 MB, free: 23.52 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000308/0.2898, allocations: 50.34 kB / 472.8 MB, free: 23.51 MB / 350.1 MB Notification: Performance of SimCode: time 2.61e-07/0.2898, allocations: 1 kB / 472.8 MB, free: 23.51 MB / 350.1 MB Notification: Performance of Templates: time 0.008632/0.2984, allocations: 7.249 MB / 480.1 MB, free: 19.86 MB / 350.1 MB make -j1 -f AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001.makefile (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)