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.001184/0.001184, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001217/0.001217, allocations: 197.9 kB / 16.14 MB, free: 6.711 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.327/1.327, allocations: 222.9 MB / 239.8 MB, free: 4.625 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2237/0.2237, allocations: 22.36 MB / 312.3 MB, free: 12.71 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002111/0.002111, allocations: 59.91 kB / 380.1 MB, free: 11.16 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.354/0.3561, allocations: 54.94 MB / 435 MB, free: 39.5 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001): time 0.003607/0.3597, allocations: 3.43 MB / 438.5 MB, free: 37.03 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001233/0.361, allocations: 0.9258 MB / 439.4 MB, free: 36.36 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001461/0.3612, allocations: 5.438 kB / 439.4 MB, free: 36.36 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001673/0.3614, allocations: 44.91 kB / 439.4 MB, free: 36.34 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002491/0.3616, allocations: 150.3 kB / 439.6 MB, free: 36.25 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003901/0.362, allocations: 171.8 kB / 439.8 MB, free: 36.14 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004978/0.3625, allocations: 0.8041 MB / 440.6 MB, free: 35.79 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003871/0.3629, allocations: 391.8 kB / 440.9 MB, free: 35.64 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002203/0.3631, allocations: 279.7 kB / 441.2 MB, free: 35.53 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003262/0.3635, allocations: 387.2 kB / 441.6 MB, free: 35.36 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.257e-05/0.3636, allocations: 50.75 kB / 441.6 MB, free: 35.36 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001028/0.3637, allocations: 49.69 kB / 441.7 MB, free: 35.36 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001236/0.3638, allocations: 186.5 kB / 441.9 MB, free: 35.27 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002292/0.364, allocations: 309.4 kB / 442.2 MB, free: 35.1 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004564/0.3645, allocations: 0.7618 MB / 442.9 MB, free: 34.81 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.025e-06/0.3645, allocations: 0 / 442.9 MB, free: 34.81 MB / 350.1 MB Notification: Performance of FrontEnd: time 8.61e-07/0.3645, allocations: 0 / 442.9 MB, free: 34.81 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.299e-05/0.3645, allocations: 0 / 442.9 MB, free: 34.81 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.001657/0.3662, allocations: 0.9005 MB / 443.8 MB, free: 34.2 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.426e-05/0.3662, allocations: 19.31 kB / 443.9 MB, free: 34.19 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001151/0.3664, allocations: 58.91 kB / 443.9 MB, free: 34.16 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004114/0.3668, allocations: 393.6 kB / 444.3 MB, free: 33.85 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001079/0.3669, allocations: 111.9 kB / 444.4 MB, free: 33.77 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.803e-05/0.367, allocations: 51.53 kB / 444.5 MB, free: 33.75 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001337/0.3683, allocations: 0.6843 MB / 445.1 MB, free: 33.5 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.571e-05/0.3684, allocations: 4 kB / 445.2 MB, free: 33.5 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.886e-05/0.3684, allocations: 15.66 kB / 445.2 MB, free: 33.48 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.418e-06/0.3684, allocations: 15.7 kB / 445.2 MB, free: 33.48 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001241/0.3697, allocations: 0.6016 MB / 445.8 MB, free: 33.29 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004265/0.374, allocations: 2.593 MB / 448.4 MB, free: 31.9 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009413/0.3749, allocations: 0.5296 MB / 448.9 MB, free: 31.7 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007057/0.3756, allocations: 402.1 kB / 449.3 MB, free: 31.55 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.066e-05/0.3757, allocations: 14.25 kB / 449.3 MB, free: 31.54 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.757e-05/0.3757, allocations: 41.5 kB / 449.4 MB, free: 31.5 MB / 350.1 MB Notification: Performance of pre-optimization done (n=46): time 1.613e-06/0.3757, allocations: 0 / 449.4 MB, free: 31.5 MB / 350.1 MB Notification: Performance of matching and sorting (n=50): time 0.004656/0.3804, allocations: 2.157 MB / 451.5 MB, free: 30.57 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.861e-05/0.3804, allocations: 57.62 kB / 451.6 MB, free: 30.5 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002954/0.3807, allocations: 354.8 kB / 451.9 MB, free: 30.32 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.18e-05/0.3808, allocations: 36.92 kB / 451.9 MB, free: 30.29 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.961e-05/0.3809, allocations: 231.5 kB / 452.2 MB, free: 30.09 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001033/0.381, allocations: 181.5 kB / 452.4 MB, free: 29.95 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001647/0.3812, allocations: 100.5 kB / 452.5 MB, free: 29.9 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.814e-05/0.3812, allocations: 353.5 kB / 452.8 MB, free: 29.57 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007169/0.382, allocations: 373.8 kB / 453.2 MB, free: 29.43 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007335/0.3827, allocations: 408.5 kB / 453.6 MB, free: 29.25 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006005/0.3887, allocations: 1.974 MB / 455.5 MB, free: 28.71 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.527e-06/0.3887, allocations: 0 / 455.5 MB, free: 28.71 MB / 350.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001743/0.3905, allocations: 0.8471 MB / 456.4 MB, free: 28.38 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.829e-05/0.3905, allocations: 10.19 kB / 456.4 MB, free: 28.38 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.374e-06/0.3905, allocations: 1.312 kB / 456.4 MB, free: 28.38 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.862e-05/0.3906, allocations: 3.625 kB / 456.4 MB, free: 28.38 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005183/0.3958, allocations: 0.9024 MB / 457.3 MB, free: 28.34 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.21e-05/0.3958, allocations: 4.234 kB / 457.3 MB, free: 28.34 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006326/0.3964, allocations: 55.08 kB / 457.4 MB, free: 28.33 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.01e-05/0.3965, allocations: 20.58 kB / 457.4 MB, free: 28.32 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.0004216/0.3969, allocations: 194.5 kB / 457.6 MB, free: 28.16 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00012/0.3971, allocations: 49.53 kB / 457.6 MB, free: 28.14 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002071/0.3991, allocations: 0.8175 MB / 458.4 MB, free: 27.82 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.764e-06/0.3992, allocations: 5.031 kB / 458.4 MB, free: 27.82 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.38e-06/0.3992, allocations: 0 / 458.4 MB, free: 27.82 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.326e-06/0.3992, allocations: 4.344 kB / 458.4 MB, free: 27.82 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003451/0.4026, allocations: 1.742 MB / 460.2 MB, free: 26.94 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.448e-06/0.4027, allocations: 4 kB / 460.2 MB, free: 26.94 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005414/0.4081, allocations: 0.8875 MB / 461.1 MB, free: 26.9 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.3e-05/0.4081, allocations: 2.328 kB / 461.1 MB, free: 26.9 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.939e-05/0.4082, allocations: 20.89 kB / 461.1 MB, free: 26.89 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.031e-06/0.4082, allocations: 2.562 kB / 461.1 MB, free: 26.89 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/0.4082, allocations: 1.281 kB / 461.1 MB, free: 26.89 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002661/0.4109, allocations: 1.247 MB / 462.3 MB, free: 26.35 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001423/0.411, allocations: 119.8 kB / 462.5 MB, free: 26.23 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000109/0.4111, allocations: 12.44 kB / 462.5 MB, free: 26.22 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005294/0.4117, allocations: 57.56 kB / 462.5 MB, free: 26.21 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002118/0.4119, allocations: 69.28 kB / 462.6 MB, free: 26.2 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.248e-05/0.412, allocations: 17.53 kB / 462.6 MB, free: 26.2 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000284/0.4122, allocations: 261.1 kB / 462.9 MB, free: 26.05 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.81e-07/0.4123, allocations: 1.594 kB / 462.9 MB, free: 26.05 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005605/0.4128, allocations: 138.7 kB / 463 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: 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.0001387/0.413, allocations: 120.2 kB / 463.1 MB, free: 25.94 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001784/0.4148, allocations: 0.7766 MB / 463.9 MB, free: 25.7 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.016e-06/0.4148, allocations: 1.719 kB / 463.9 MB, free: 25.7 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008474/0.4156, allocations: 410.7 kB / 464.3 MB, free: 25.56 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006311/0.4163, allocations: 101.4 kB / 464.4 MB, free: 25.52 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004034/0.4203, allocations: 2.048 MB / 466.5 MB, free: 24.35 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003116/0.4206, allocations: 0.8558 MB / 467.3 MB, free: 23.64 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004734/0.4211, allocations: 95.88 kB / 467.4 MB, free: 23.62 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002729/0.4214, allocations: 46.86 kB / 467.5 MB, free: 23.61 MB / 350.1 MB Notification: Performance of SimCode: time 3.1e-07/0.4214, allocations: 4 kB / 467.5 MB, free: 23.61 MB / 350.1 MB Notification: Performance of Templates: time 0.01423/0.4356, allocations: 7.602 MB / 475.1 MB, free: 21.35 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)