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.001069/0.001069, allocations: 108 kB / 15.6 MB, free: 132 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.001095/0.001095, allocations: 192.5 kB / 16.53 MB, free: 6.391 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.345/1.345, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2137/0.2137, allocations: 22.34 MB / 312.7 MB, free: 12.51 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002111/0.002112, allocations: 59.91 kB / 380.8 MB, free: 10.6 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3667/0.3689, allocations: 54.93 MB / 435.7 MB, free: 39.93 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003): time 0.004789/0.3737, allocations: 3.201 MB / 438.9 MB, free: 37.62 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002053/0.3758, allocations: 0.9109 MB / 439.9 MB, free: 36.96 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002077/0.3761, allocations: 5.969 kB / 439.9 MB, free: 36.96 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002302/0.3763, allocations: 68.2 kB / 439.9 MB, free: 36.93 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003386/0.3767, allocations: 159 kB / 440.1 MB, free: 36.82 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005997/0.3773, allocations: 209.4 kB / 440.3 MB, free: 36.7 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006909/0.378, allocations: 0.7366 MB / 441 MB, free: 36.35 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005719/0.3786, allocations: 447.6 kB / 441.5 MB, free: 36.17 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000295/0.3789, allocations: 313.6 kB / 441.8 MB, free: 36.03 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004937/0.3794, allocations: 392.9 kB / 442.2 MB, free: 35.84 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001227/0.3795, allocations: 79.03 kB / 442.2 MB, free: 35.84 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001324/0.3796, allocations: 79.16 kB / 442.3 MB, free: 35.84 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002007/0.3798, allocations: 200.6 kB / 442.5 MB, free: 35.73 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003325/0.3802, allocations: 336.1 kB / 442.8 MB, free: 35.53 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008372/0.381, allocations: 0.793 MB / 443.6 MB, free: 35.22 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.117e-06/0.3811, allocations: 0 / 443.6 MB, free: 35.22 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.637e-06/0.3811, allocations: 0 / 443.6 MB, free: 35.22 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.882e-05/0.3811, allocations: 0 / 443.6 MB, free: 35.22 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.002037/0.3831, allocations: 0.9046 MB / 444.5 MB, free: 34.6 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.196e-05/0.3832, allocations: 8.719 kB / 444.5 MB, free: 34.6 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001498/0.3833, allocations: 61.25 kB / 444.6 MB, free: 34.57 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005854/0.3839, allocations: 395.5 kB / 445 MB, free: 34.26 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001713/0.3841, allocations: 108.2 kB / 445.1 MB, free: 34.18 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001243/0.3843, allocations: 48.56 kB / 445.1 MB, free: 34.16 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001501/0.3858, allocations: 0.6903 MB / 445.8 MB, free: 33.91 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.057e-05/0.3858, allocations: 0 / 445.8 MB, free: 33.91 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.331e-05/0.3859, allocations: 21.62 kB / 445.8 MB, free: 33.89 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.378e-05/0.3859, allocations: 14.2 kB / 445.9 MB, free: 33.89 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001322/0.3872, allocations: 0.6049 MB / 446.5 MB, free: 33.7 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004717/0.3919, allocations: 2.582 MB / 449 MB, free: 32.31 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001122/0.3931, allocations: 0.5548 MB / 449.6 MB, free: 32.09 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000796/0.3939, allocations: 404.9 kB / 450 MB, free: 31.95 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.837e-05/0.394, allocations: 13.91 kB / 450 MB, free: 31.94 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.744e-05/0.394, allocations: 43.72 kB / 450.1 MB, free: 31.89 MB / 350.1 MB Notification: Performance of pre-optimization done (n=48): time 2.845e-06/0.394, allocations: 0 / 450.1 MB, free: 31.89 MB / 350.1 MB Notification: Performance of matching and sorting (n=52): time 0.005462/0.3995, allocations: 2.193 MB / 452.2 MB, free: 30.95 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.296e-05/0.3995, allocations: 57.88 kB / 452.3 MB, free: 30.88 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004016/0.3999, allocations: 357.4 kB / 452.7 MB, free: 30.7 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.489e-05/0.4, allocations: 32.83 kB / 452.7 MB, free: 30.66 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001215/0.4001, allocations: 228.9 kB / 452.9 MB, free: 30.48 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001335/0.4002, allocations: 190.6 kB / 453.1 MB, free: 30.33 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001706/0.4004, allocations: 90.28 kB / 453.2 MB, free: 30.28 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.926e-05/0.4005, allocations: 361 kB / 453.5 MB, free: 29.95 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007785/0.4013, allocations: 367.7 kB / 453.9 MB, free: 29.82 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008238/0.4021, allocations: 412 kB / 454.3 MB, free: 29.64 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006568/0.4087, allocations: 2.002 MB / 456.3 MB, free: 29.09 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.756e-06/0.4087, allocations: 0 / 456.3 MB, free: 29.09 MB / 350.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001991/0.4107, allocations: 0.8564 MB / 457.2 MB, free: 28.75 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.487e-05/0.4108, allocations: 5.594 kB / 457.2 MB, free: 28.75 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.046e-05/0.4108, allocations: 1.156 kB / 457.2 MB, free: 28.75 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.628e-05/0.4108, allocations: 4.375 kB / 457.2 MB, free: 28.75 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006196/0.417, allocations: 0.9089 MB / 458.1 MB, free: 28.72 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.391e-05/0.4171, allocations: 4.312 kB / 458.1 MB, free: 28.72 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006268/0.4177, allocations: 56.58 kB / 458.1 MB, free: 28.71 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.489e-05/0.4178, allocations: 25.02 kB / 458.2 MB, free: 28.7 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.000389/0.4182, allocations: 209 kB / 458.4 MB, free: 28.53 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001018/0.4183, allocations: 49.41 kB / 458.4 MB, free: 28.5 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002098/0.4204, allocations: 0.8348 MB / 459.2 MB, free: 28.18 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.136e-05/0.4204, allocations: 5.609 kB / 459.3 MB, free: 28.18 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.336e-06/0.4204, allocations: 1.625 kB / 459.3 MB, free: 28.18 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.108e-05/0.4204, allocations: 2.438 kB / 459.3 MB, free: 28.18 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003411/0.4238, allocations: 1.744 MB / 461 MB, free: 27.3 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.178e-06/0.4239, allocations: 0.6094 kB / 461 MB, free: 27.3 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006425/0.4303, allocations: 0.9024 MB / 461.9 MB, free: 27.27 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.442e-05/0.4303, allocations: 2.531 kB / 461.9 MB, free: 27.27 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.955e-05/0.4304, allocations: 16.94 kB / 461.9 MB, free: 27.26 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.864e-06/0.4304, allocations: 3.328 kB / 461.9 MB, free: 27.26 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.4304, allocations: 0 / 461.9 MB, free: 27.26 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002898/0.4333, allocations: 1.27 MB / 463.2 MB, free: 26.71 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001495/0.4335, allocations: 124.1 kB / 463.3 MB, free: 26.59 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.145e-05/0.4336, allocations: 13.55 kB / 463.3 MB, free: 26.58 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005256/0.4341, allocations: 53.39 kB / 463.4 MB, free: 26.57 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001963/0.4343, allocations: 79.33 kB / 463.5 MB, free: 26.55 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.593e-05/0.4344, allocations: 17.14 kB / 463.5 MB, free: 26.55 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000312/0.4347, allocations: 256.5 kB / 463.7 MB, free: 26.41 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4347, allocations: 4 kB / 463.7 MB, free: 26.41 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006252/0.4353, allocations: 145.3 kB / 463.9 MB, free: 26.39 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.0001499/0.4355, allocations: 116.3 kB / 464 MB, free: 26.29 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002071/0.4376, allocations: 0.844 MB / 464.8 MB, free: 26.02 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.865e-06/0.4376, allocations: 320 / 464.8 MB, free: 26.02 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008898/0.4385, allocations: 424 kB / 465.2 MB, free: 25.88 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005786/0.4391, allocations: 107.8 kB / 465.4 MB, free: 25.83 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004039/0.4431, allocations: 1.775 MB / 467.1 MB, free: 24.84 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003974/0.4435, allocations: 0.8516 MB / 468 MB, free: 24.12 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0005571/0.4441, allocations: 97.62 kB / 468.1 MB, free: 24.11 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002747/0.4444, allocations: 55.55 kB / 468.1 MB, free: 24.09 MB / 350.1 MB Notification: Performance of SimCode: time 8.72e-07/0.4444, allocations: 0 / 468.1 MB, free: 24.09 MB / 350.1 MB Notification: Performance of Templates: time 0.01635/0.4608, allocations: 8.342 MB / 476.5 MB, free: 20.93 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)