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.001145/0.001145, allocations: 104.9 kB / 16.27 MB, free: 6.414 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.001168/0.001168, allocations: 189.8 kB / 17.2 MB, free: 5.953 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.323/1.323, allocations: 222.9 MB / 240.9 MB, free: 15.26 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09436/0.09436, allocations: 22.31 MB / 313.4 MB, free: 8.984 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001414/0.001414, allocations: 68.11 kB / 381.5 MB, free: 41.36 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07732/0.07876, allocations: 54.96 MB / 436.4 MB, free: 13.07 MB / 318.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001): time 0.004393/0.08319, allocations: 3.173 MB / 439.6 MB, free: 9.879 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001867/0.08509, allocations: 0.9041 MB / 440.5 MB, free: 8.969 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003101/0.08542, allocations: 7.938 kB / 440.5 MB, free: 8.961 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002347/0.08567, allocations: 63.36 kB / 440.6 MB, free: 8.898 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004634/0.08619, allocations: 166.7 kB / 440.7 MB, free: 8.734 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005852/0.08678, allocations: 203.5 kB / 440.9 MB, free: 8.535 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008149/0.08761, allocations: 0.733 MB / 441.7 MB, free: 7.801 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005491/0.08817, allocations: 453.7 kB / 442.1 MB, free: 7.355 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003233/0.0885, allocations: 307.1 kB / 442.4 MB, free: 7.055 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004458/0.08896, allocations: 390.6 kB / 442.8 MB, free: 6.672 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001078/0.08907, allocations: 76 kB / 442.9 MB, free: 6.598 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000122/0.08921, allocations: 79.94 kB / 442.9 MB, free: 6.52 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001861/0.0894, allocations: 203.5 kB / 443.1 MB, free: 6.32 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003204/0.08973, allocations: 338.5 kB / 443.5 MB, free: 5.988 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006629/0.0904, allocations: 0.7829 MB / 444.2 MB, free: 5.203 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/0.09041, allocations: 0 / 444.2 MB, free: 5.203 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.09042, allocations: 0 / 444.2 MB, free: 5.203 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.576e-06/0.09043, allocations: 4 kB / 444.2 MB, free: 5.199 MB / 318.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.001871/0.09231, allocations: 0.9043 MB / 445.2 MB, free: 4.242 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.549e-05/0.09235, allocations: 12.03 kB / 445.2 MB, free: 4.23 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001345/0.09249, allocations: 60.28 kB / 445.2 MB, free: 4.172 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004956/0.09299, allocations: 392.1 kB / 445.6 MB, free: 3.754 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001365/0.09314, allocations: 105 kB / 445.7 MB, free: 3.641 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.691e-05/0.09325, allocations: 52.38 kB / 445.8 MB, free: 3.59 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001526/0.09478, allocations: 0.6896 MB / 446.4 MB, free: 2.895 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.628e-05/0.09482, allocations: 0 / 446.4 MB, free: 2.895 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.486e-05/0.09489, allocations: 20 kB / 446.5 MB, free: 2.875 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.307e-05/0.09491, allocations: 12 kB / 446.5 MB, free: 2.863 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001453/0.09636, allocations: 0.5972 MB / 447.1 MB, free: 2.266 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005152/0.1015, allocations: 2.594 MB / 449.7 MB, free: 15.59 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001131/0.1027, allocations: 0.5331 MB / 450.2 MB, free: 15.05 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008707/0.1036, allocations: 401.4 kB / 450.6 MB, free: 14.66 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.375e-05/0.1036, allocations: 4.375 kB / 450.6 MB, free: 14.66 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.436e-05/0.1036, allocations: 38.94 kB / 450.6 MB, free: 14.61 MB / 334.1 MB Notification: Performance of pre-optimization done (n=46): time 2.144e-06/0.1037, allocations: 0 / 450.6 MB, free: 14.61 MB / 334.1 MB Notification: Performance of matching and sorting (n=50): time 0.005732/0.1094, allocations: 2.164 MB / 452.8 MB, free: 12.39 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.297e-05/0.1095, allocations: 55.84 kB / 452.9 MB, free: 12.32 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003825/0.1099, allocations: 361.7 kB / 453.2 MB, free: 11.96 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.015e-05/0.1099, allocations: 37.7 kB / 453.2 MB, free: 11.92 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001477/0.1101, allocations: 228.9 kB / 453.5 MB, free: 11.7 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001487/0.1102, allocations: 185.3 kB / 453.7 MB, free: 11.51 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001895/0.1104, allocations: 94.23 kB / 453.7 MB, free: 11.41 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001298/0.1106, allocations: 358.8 kB / 454.1 MB, free: 11.05 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008589/0.1114, allocations: 358.3 kB / 454.4 MB, free: 10.7 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008742/0.1123, allocations: 423.9 kB / 454.9 MB, free: 10.27 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006795/0.1191, allocations: 1.971 MB / 456.8 MB, free: 8.273 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.1191, allocations: 0 / 456.8 MB, free: 8.273 MB / 334.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001947/0.1211, allocations: 0.8496 MB / 457.7 MB, free: 7.414 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.723e-05/0.1211, allocations: 11.94 kB / 457.7 MB, free: 7.402 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.456e-06/0.1211, allocations: 3.984 kB / 457.7 MB, free: 7.398 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.826e-05/0.1212, allocations: 7.938 kB / 457.7 MB, free: 7.391 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006108/0.1273, allocations: 0.8935 MB / 458.6 MB, free: 6.496 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.632e-05/0.1273, allocations: 11.92 kB / 458.6 MB, free: 6.484 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005518/0.1279, allocations: 51.94 kB / 458.7 MB, free: 6.434 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.299e-05/0.1279, allocations: 27.98 kB / 458.7 MB, free: 6.406 MB / 334.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.0003337/0.1283, allocations: 199.2 kB / 458.9 MB, free: 6.203 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001012/0.1284, allocations: 47.38 kB / 458.9 MB, free: 6.156 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001995/0.1304, allocations: 0.8249 MB / 459.8 MB, free: 5.324 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.484e-06/0.1304, allocations: 4 kB / 459.8 MB, free: 5.32 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.762e-06/0.1304, allocations: 0 / 459.8 MB, free: 5.32 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.941e-06/0.1304, allocations: 0 / 459.8 MB, free: 5.32 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00342/0.1338, allocations: 1.74 MB / 461.5 MB, free: 3.52 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.897e-06/0.1339, allocations: 0 / 461.5 MB, free: 3.52 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006102/0.14, allocations: 0.8856 MB / 462.4 MB, free: 2.633 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.027e-05/0.14, allocations: 4 kB / 462.4 MB, free: 2.629 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.973e-05/0.1401, allocations: 11.98 kB / 462.4 MB, free: 2.617 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.282e-06/0.1401, allocations: 7.922 kB / 462.4 MB, free: 2.609 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.834e-06/0.1401, allocations: 4 kB / 462.4 MB, free: 2.605 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002718/0.1428, allocations: 1.246 MB / 463.7 MB, free: 1.344 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001312/0.143, allocations: 120.5 kB / 463.8 MB, free: 1.207 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.422e-05/0.1431, allocations: 15.98 kB / 463.8 MB, free: 1.191 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005182/0.1436, allocations: 51.94 kB / 463.8 MB, free: 1.141 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001556/0.1438, allocations: 72.33 kB / 463.9 MB, free: 1.07 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.268e-05/0.1438, allocations: 15.98 kB / 463.9 MB, free: 1.055 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002641/0.1441, allocations: 267.1 kB / 464.2 MB, free: 0.793 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1441, allocations: 0 / 464.2 MB, free: 0.793 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004924/0.1446, allocations: 144 kB / 464.3 MB, free: 0.6523 MB / 334.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.0001449/0.1447, allocations: 115.2 kB / 464.4 MB, free: 0.5312 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001984/0.1467, allocations: 0.8257 MB / 465.3 MB, free: 15.7 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.1467, allocations: 0 / 465.3 MB, free: 15.7 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009103/0.1476, allocations: 406.5 kB / 465.7 MB, free: 15.3 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005725/0.1482, allocations: 107.8 kB / 465.8 MB, free: 15.2 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004369/0.1526, allocations: 1.896 MB / 467.7 MB, free: 13.27 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004215/0.1531, allocations: 0.851 MB / 468.5 MB, free: 12.39 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003316/0.1534, allocations: 59.34 kB / 468.6 MB, free: 12.33 MB / 350.1 MB Notification: Performance of SimCode: time 5.41e-07/0.1534, allocations: 0 / 468.6 MB, free: 12.33 MB / 350.1 MB Notification: Performance of Templates: time 0.0106/0.164, allocations: 7.273 MB / 475.8 MB, free: 5.094 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)