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.001486/0.001486, allocations: 100.1 kB / 15.88 MB, free: 12 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.001093/0.001093, allocations: 200.6 kB / 16.79 MB, free: 6.809 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.297/1.297, allocations: 222.9 MB / 240.5 MB, free: 4.504 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1801/0.1801, allocations: 22.37 MB / 313 MB, free: 12.74 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001236/0.001236, allocations: 59.91 kB / 380.8 MB, free: 11.11 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2148/0.2161, allocations: 54.94 MB / 435.7 MB, free: 39.49 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001): time 0.003152/0.2192, allocations: 3.43 MB / 439.1 MB, free: 37.02 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001097/0.2204, allocations: 0.9283 MB / 440.1 MB, free: 36.35 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001456/0.2205, allocations: 9.156 kB / 440.1 MB, free: 36.35 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001581/0.2207, allocations: 52.31 kB / 440.1 MB, free: 36.32 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002442/0.2209, allocations: 145.3 kB / 440.3 MB, free: 36.23 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000364/0.2213, allocations: 167.1 kB / 440.4 MB, free: 36.12 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004748/0.2218, allocations: 0.8014 MB / 441.2 MB, free: 35.78 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000372/0.2222, allocations: 396.5 kB / 441.6 MB, free: 35.63 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002045/0.2224, allocations: 277.2 kB / 441.9 MB, free: 35.52 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003221/0.2227, allocations: 380.4 kB / 442.3 MB, free: 35.35 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.928e-05/0.2228, allocations: 59 kB / 442.3 MB, free: 35.34 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.846e-05/0.2229, allocations: 53.91 kB / 442.4 MB, free: 35.34 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001213/0.223, allocations: 182.4 kB / 442.5 MB, free: 35.25 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000223/0.2233, allocations: 311.3 kB / 442.9 MB, free: 35.08 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003208/0.2236, allocations: 0.6 MB / 443.5 MB, free: 34.89 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.005e-06/0.2236, allocations: 0 / 443.5 MB, free: 34.89 MB / 350.1 MB Notification: Performance of FrontEnd: time 6.72e-07/0.2236, allocations: 0 / 443.5 MB, free: 34.89 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.097e-05/0.2236, allocations: 0 / 443.5 MB, free: 34.89 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.001591/0.2252, allocations: 0.8978 MB / 444.4 MB, free: 34.28 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.837e-05/0.2253, allocations: 16.16 kB / 444.4 MB, free: 34.27 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001091/0.2254, allocations: 60.5 kB / 444.4 MB, free: 34.25 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004007/0.2258, allocations: 394.6 kB / 444.8 MB, free: 33.93 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001036/0.2259, allocations: 103.6 kB / 444.9 MB, free: 33.86 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.901e-05/0.226, allocations: 56.25 kB / 445 MB, free: 33.84 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001366/0.2274, allocations: 0.68 MB / 445.6 MB, free: 33.59 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.557e-05/0.2274, allocations: 0 / 445.6 MB, free: 33.59 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.913e-05/0.2275, allocations: 21.91 kB / 445.7 MB, free: 33.57 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.817e-06/0.2275, allocations: 12.06 kB / 445.7 MB, free: 33.57 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001279/0.2288, allocations: 0.6006 MB / 446.3 MB, free: 33.38 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004365/0.2331, allocations: 2.587 MB / 448.9 MB, free: 32 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009671/0.2341, allocations: 0.547 MB / 449.4 MB, free: 31.78 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007408/0.2349, allocations: 393.6 kB / 449.8 MB, free: 31.64 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.632e-05/0.2349, allocations: 10.05 kB / 449.8 MB, free: 31.63 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.654e-05/0.2349, allocations: 45.16 kB / 449.9 MB, free: 31.59 MB / 350.1 MB Notification: Performance of pre-optimization done (n=46): time 1.623e-06/0.235, allocations: 0 / 449.9 MB, free: 31.59 MB / 350.1 MB Notification: Performance of matching and sorting (n=50): time 0.004791/0.2397, allocations: 2.157 MB / 452 MB, free: 30.66 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.071e-05/0.2398, allocations: 58.41 kB / 452.1 MB, free: 30.59 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002851/0.2401, allocations: 359.4 kB / 452.4 MB, free: 30.41 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.278e-05/0.2401, allocations: 41.3 kB / 452.5 MB, free: 30.37 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.051e-05/0.2402, allocations: 229.6 kB / 452.7 MB, free: 30.18 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.792e-05/0.2403, allocations: 179.9 kB / 452.9 MB, free: 30.04 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001629/0.2405, allocations: 91.55 kB / 452.9 MB, free: 29.99 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.495e-05/0.2406, allocations: 359 kB / 453.3 MB, free: 29.66 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007273/0.2413, allocations: 370.8 kB / 453.7 MB, free: 29.52 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007239/0.242, allocations: 406.9 kB / 454.1 MB, free: 29.34 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006165/0.2482, allocations: 1.982 MB / 456 MB, free: 28.79 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.415e-06/0.2482, allocations: 0 / 456 MB, free: 28.79 MB / 350.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001709/0.2499, allocations: 0.8426 MB / 456.9 MB, free: 28.47 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.569e-05/0.25, allocations: 5.25 kB / 456.9 MB, free: 28.47 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.893e-06/0.25, allocations: 2.719 kB / 456.9 MB, free: 28.47 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.705e-05/0.25, allocations: 3.469 kB / 456.9 MB, free: 28.47 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005408/0.2554, allocations: 0.9017 MB / 457.8 MB, free: 28.43 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.079e-05/0.2554, allocations: 4.781 kB / 457.8 MB, free: 28.43 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005147/0.2559, allocations: 58.36 kB / 457.9 MB, free: 28.42 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.449e-05/0.256, allocations: 20.84 kB / 457.9 MB, free: 28.41 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.0002815/0.2563, allocations: 207.5 kB / 458.1 MB, free: 28.24 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.181e-05/0.2564, allocations: 49.11 kB / 458.1 MB, free: 28.21 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001824/0.2582, allocations: 0.814 MB / 458.9 MB, free: 27.91 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.143e-06/0.2582, allocations: 5.781 kB / 458.9 MB, free: 27.91 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.569e-06/0.2583, allocations: 3.938 kB / 459 MB, free: 27.9 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.232e-06/0.2583, allocations: 2.953 kB / 459 MB, free: 27.9 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003095/0.2614, allocations: 1.735 MB / 460.7 MB, free: 27.03 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.665e-06/0.2614, allocations: 0 / 460.7 MB, free: 27.03 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005584/0.267, allocations: 0.8836 MB / 461.6 MB, free: 27 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.582e-06/0.267, allocations: 2.875 kB / 461.6 MB, free: 27 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.993e-05/0.2671, allocations: 16.56 kB / 461.6 MB, free: 26.99 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.238e-06/0.2671, allocations: 3.219 kB / 461.6 MB, free: 26.99 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.783e-06/0.2671, allocations: 0 / 461.6 MB, free: 26.99 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002462/0.2695, allocations: 1.255 MB / 462.9 MB, free: 26.44 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.152e-05/0.2696, allocations: 118.9 kB / 463 MB, free: 26.32 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.188e-05/0.2697, allocations: 14.36 kB / 463 MB, free: 26.31 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005112/0.2702, allocations: 53.62 kB / 463 MB, free: 26.3 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001821/0.2704, allocations: 68.36 kB / 463.1 MB, free: 26.29 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.804e-05/0.2705, allocations: 17.47 kB / 463.1 MB, free: 26.29 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002483/0.2707, allocations: 262.5 kB / 463.4 MB, free: 26.15 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2708, allocations: 4 kB / 463.4 MB, free: 26.14 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004737/0.2712, allocations: 143.1 kB / 463.5 MB, free: 26.13 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.0001175/0.2714, allocations: 113 kB / 463.6 MB, free: 26.03 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001671/0.273, allocations: 0.7775 MB / 464.4 MB, free: 25.79 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.273, allocations: 1.562 kB / 464.4 MB, free: 25.79 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008071/0.2739, allocations: 409 kB / 464.8 MB, free: 25.65 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00057/0.2744, allocations: 102.9 kB / 464.9 MB, free: 25.61 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003769/0.2782, allocations: 2.084 MB / 467 MB, free: 24.41 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002639/0.2785, allocations: 0.8477 MB / 467.8 MB, free: 23.7 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003278/0.2788, allocations: 54.45 kB / 467.9 MB, free: 23.69 MB / 350.1 MB Notification: Performance of SimCode: time 3.41e-07/0.2788, allocations: 7.938 kB / 467.9 MB, free: 23.68 MB / 350.1 MB Notification: Performance of Templates: time 0.009349/0.2882, allocations: 7.269 MB / 475.2 MB, free: 21.5 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)