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.001192/0.001192, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.001533/0.001533, allocations: 177.3 kB / 15.94 MB, free: 228 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.414/1.414, allocations: 223.2 MB / 239.9 MB, free: 5.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2602/0.2602, allocations: 22.33 MB / 313.3 MB, free: 13.14 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000319/0.0003191, allocations: 15.92 kB / 381.8 MB, free: 10.62 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2837/0.2841, allocations: 55.97 MB / 437.8 MB, free: 39.1 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002): time 0.00313/0.2872, allocations: 3.573 MB / 441.4 MB, free: 36.49 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002001/0.2893, allocations: 1.237 MB / 442.6 MB, free: 35.6 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004269/0.2897, allocations: 9.938 kB / 442.6 MB, free: 35.59 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002619/0.29, allocations: 79.5 kB / 442.7 MB, free: 35.55 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005347/0.2905, allocations: 268.9 kB / 443 MB, free: 35.36 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006555/0.2912, allocations: 225.5 kB / 443.2 MB, free: 35.23 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008609/0.2921, allocations: 0.7169 MB / 443.9 MB, free: 34.86 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005517/0.2926, allocations: 0.5463 MB / 444.5 MB, free: 34.64 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003338/0.293, allocations: 390 kB / 444.8 MB, free: 34.49 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004533/0.2935, allocations: 0.51 MB / 445.3 MB, free: 34.27 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001012/0.2936, allocations: 69.66 kB / 445.4 MB, free: 34.27 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000118/0.2937, allocations: 68.78 kB / 445.5 MB, free: 34.27 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001697/0.2939, allocations: 259.9 kB / 445.7 MB, free: 34.15 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000141/0.294, allocations: 183.3 kB / 445.9 MB, free: 34.05 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005847/0.2946, allocations: 0.9175 MB / 446.8 MB, free: 33.85 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.675e-06/0.2946, allocations: 0 / 446.8 MB, free: 33.85 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.2946, allocations: 0 / 446.8 MB, free: 33.85 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.119e-05/0.2946, allocations: 4 kB / 446.8 MB, free: 33.85 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.002199/0.2968, allocations: 1.108 MB / 447.9 MB, free: 33.17 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.084e-05/0.2969, allocations: 13.16 kB / 448 MB, free: 33.16 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001817/0.2971, allocations: 96.34 kB / 448 MB, free: 33.12 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007/0.2978, allocations: 0.5027 MB / 448.5 MB, free: 32.75 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001431/0.2979, allocations: 161.9 kB / 448.7 MB, free: 32.62 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001453/0.2981, allocations: 84.59 kB / 448.8 MB, free: 32.59 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002057/0.3002, allocations: 1.043 MB / 449.8 MB, free: 32.22 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.729e-05/0.3002, allocations: 0 / 449.8 MB, free: 32.22 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.228e-05/0.3003, allocations: 39.56 kB / 449.9 MB, free: 32.19 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.961e-05/0.3003, allocations: 18.38 kB / 449.9 MB, free: 32.19 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001789/0.3021, allocations: 0.9389 MB / 450.8 MB, free: 31.89 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006113/0.3082, allocations: 3.663 MB / 454.5 MB, free: 30.12 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00165/0.3099, allocations: 0.9455 MB / 455.4 MB, free: 29.76 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.094e-05/0.31, allocations: 15.02 kB / 455.5 MB, free: 29.75 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.202e-05/0.31, allocations: 45.39 kB / 455.5 MB, free: 29.7 MB / 350.1 MB Notification: Performance of pre-optimization done (n=79): time 2.775e-06/0.31, allocations: 0 / 455.5 MB, free: 29.7 MB / 350.1 MB Notification: Performance of matching and sorting (n=83): time 0.006976/0.317, allocations: 3.199 MB / 458.7 MB, free: 28.4 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.244e-05/0.3171, allocations: 59.91 kB / 458.8 MB, free: 28.34 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005335/0.3176, allocations: 0.509 MB / 459.3 MB, free: 28.09 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.228e-05/0.3177, allocations: 41.3 kB / 459.3 MB, free: 28.05 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001826/0.3179, allocations: 323 kB / 459.6 MB, free: 27.79 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002264/0.3181, allocations: 302.3 kB / 459.9 MB, free: 27.55 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.48e-05/0.3182, allocations: 19.69 kB / 459.9 MB, free: 27.54 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001392/0.3183, allocations: 382.3 kB / 460.3 MB, free: 27.2 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001242/0.3196, allocations: 0.5631 MB / 460.9 MB, free: 27 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00127/0.3209, allocations: 0.635 MB / 461.5 MB, free: 26.72 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001205/0.3221, allocations: 0.5599 MB / 462.1 MB, free: 26.5 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.298e-06/0.3221, allocations: 5.297 kB / 462.1 MB, free: 26.5 MB / 350.1 MB Notification: Performance of matching and sorting (n=112) (initialization): time 0.00258/0.3247, allocations: 1.336 MB / 463.4 MB, free: 26 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.135e-05/0.3247, allocations: 4.969 kB / 463.4 MB, free: 26 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.148e-05/0.3247, allocations: 3.062 kB / 463.4 MB, free: 26 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.521e-05/0.3247, allocations: 6.906 kB / 463.4 MB, free: 26 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007322/0.3321, allocations: 1.322 MB / 464.7 MB, free: 25.93 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.535e-05/0.3321, allocations: 8 kB / 464.7 MB, free: 25.93 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009933/0.3331, allocations: 93.19 kB / 464.8 MB, free: 25.91 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.079e-05/0.3332, allocations: 35.69 kB / 464.9 MB, free: 25.9 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.0004712/0.3337, allocations: 246.6 kB / 465.1 MB, free: 25.71 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000127/0.3338, allocations: 77.08 kB / 465.2 MB, free: 25.66 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002691/0.3365, allocations: 1.266 MB / 466.5 MB, free: 25.18 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.086e-05/0.3366, allocations: 8.5 kB / 466.5 MB, free: 25.18 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.655e-06/0.3366, allocations: 0.7031 kB / 466.5 MB, free: 25.18 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.988e-06/0.3366, allocations: 9.359 kB / 466.5 MB, free: 25.18 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004456/0.3411, allocations: 2.473 MB / 468.9 MB, free: 24.06 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.51e-06/0.3411, allocations: 2.125 kB / 469 MB, free: 24.06 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007075/0.3482, allocations: 1.3 MB / 470.3 MB, free: 23.99 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.085e-05/0.3482, allocations: 3.531 kB / 470.3 MB, free: 23.99 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001778/0.3484, allocations: 30.83 kB / 470.3 MB, free: 23.97 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.17e-05/0.3484, allocations: 6.594 kB / 470.3 MB, free: 23.97 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.668e-06/0.3484, allocations: 0.7031 kB / 470.3 MB, free: 23.97 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004046/0.3525, allocations: 1.987 MB / 472.3 MB, free: 23.07 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002535/0.3528, allocations: 147.2 kB / 472.4 MB, free: 22.93 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002091/0.353, allocations: 21.02 kB / 472.4 MB, free: 22.91 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008653/0.3538, allocations: 87.84 kB / 472.5 MB, free: 22.9 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002776/0.3541, allocations: 99.81 kB / 472.6 MB, free: 22.89 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.542e-05/0.3542, allocations: 29.8 kB / 472.7 MB, free: 22.88 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005549/0.3548, allocations: 363.8 kB / 473 MB, free: 22.71 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.01e-07/0.3548, allocations: 1.312 kB / 473 MB, free: 22.71 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001075/0.3559, allocations: 230.7 kB / 473.2 MB, free: 22.68 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.0002249/0.3561, allocations: 138.1 kB / 473.4 MB, free: 22.57 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003391/0.3595, allocations: 1.223 MB / 474.6 MB, free: 22.17 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.713e-06/0.3595, allocations: 0 / 474.6 MB, free: 22.17 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001734/0.3613, allocations: 0.6109 MB / 475.2 MB, free: 21.97 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001075/0.3624, allocations: 147.9 kB / 475.3 MB, free: 21.91 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006569/0.3689, allocations: 3.267 MB / 478.6 MB, free: 19.88 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004747/0.3694, allocations: 0.9767 MB / 479.6 MB, free: 18.98 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0008185/0.3703, allocations: 169.7 kB / 479.8 MB, free: 18.85 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003563/0.3706, allocations: 75.41 kB / 479.8 MB, free: 18.77 MB / 350.1 MB Notification: Performance of SimCode: time 7.32e-07/0.3707, allocations: 0 / 479.8 MB, free: 18.77 MB / 350.1 MB Notification: Performance of Templates: time 0.01494/0.3856, allocations: 10.88 MB / 490.7 MB, free: 8.008 MB / 350.1 MB make -j1 -f AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: