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.001142/0.001142, allocations: 105.1 kB / 15.98 MB, free: 6.352 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.001127/0.001127, allocations: 195.3 kB / 16.91 MB, free: 6.184 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.184/1.184, allocations: 222.9 MB / 240.6 MB, free: 13.73 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.08521/0.08521, allocations: 22.33 MB / 313.1 MB, free: 8.922 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001211/0.001211, allocations: 61.61 kB / 380.9 MB, free: 41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06954/0.07077, allocations: 54.96 MB / 435.9 MB, free: 13.39 MB / 318.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003): time 0.004058/0.07486, allocations: 3.437 MB / 439.3 MB, free: 9.926 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001282/0.07616, allocations: 0.9274 MB / 440.2 MB, free: 8.992 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001274/0.0763, allocations: 4 kB / 440.2 MB, free: 8.988 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000156/0.07648, allocations: 47.61 kB / 440.3 MB, free: 8.941 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002874/0.07677, allocations: 154.9 kB / 440.4 MB, free: 8.789 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003848/0.07717, allocations: 163.8 kB / 440.6 MB, free: 8.629 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000585/0.07776, allocations: 0.7446 MB / 441.3 MB, free: 7.883 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004555/0.07823, allocations: 433.8 kB / 441.8 MB, free: 7.457 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000267/0.0785, allocations: 315.1 kB / 442.1 MB, free: 7.148 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003963/0.07891, allocations: 406.7 kB / 442.5 MB, free: 6.75 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.753e-05/0.079, allocations: 76 kB / 442.5 MB, free: 6.676 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.653e-05/0.07911, allocations: 76 kB / 442.6 MB, free: 6.602 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001588/0.07927, allocations: 207.4 kB / 442.8 MB, free: 6.398 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002639/0.07954, allocations: 338.5 kB / 443.1 MB, free: 6.066 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004479/0.07999, allocations: 0.6042 MB / 443.8 MB, free: 5.461 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.346e-06/0.08, allocations: 0 / 443.8 MB, free: 5.461 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.052e-06/0.08001, allocations: 0 / 443.8 MB, free: 5.461 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.033e-06/0.08002, allocations: 0 / 443.8 MB, free: 5.461 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: 123 * Number of variables: 123 Notification: Performance of Generate backend data structure: time 0.001689/0.08172, allocations: 0.9043 MB / 444.7 MB, free: 4.504 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.145e-05/0.08176, allocations: 12.03 kB / 444.7 MB, free: 4.492 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001122/0.08187, allocations: 60.28 kB / 444.7 MB, free: 4.434 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004524/0.08233, allocations: 392.1 kB / 445.1 MB, free: 4.016 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001156/0.08246, allocations: 105 kB / 445.2 MB, free: 3.902 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.093e-05/0.08256, allocations: 52.38 kB / 445.3 MB, free: 3.852 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00143/0.08399, allocations: 0.6936 MB / 446 MB, free: 3.156 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.493e-05/0.08402, allocations: 0 / 446 MB, free: 3.156 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.605e-05/0.08409, allocations: 20 kB / 446 MB, free: 3.137 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.948e-06/0.0841, allocations: 12 kB / 446 MB, free: 3.125 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001325/0.08543, allocations: 0.6089 MB / 446.6 MB, free: 2.512 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004419/0.08986, allocations: 2.582 MB / 449.2 MB, free: 15.86 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001058/0.09093, allocations: 0.5499 MB / 449.7 MB, free: 15.3 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007929/0.09174, allocations: 405.9 kB / 450.1 MB, free: 14.9 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.63e-05/0.09179, allocations: 4.438 kB / 450.1 MB, free: 14.89 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.289e-05/0.09183, allocations: 43 kB / 450.2 MB, free: 14.84 MB / 334.1 MB Notification: Performance of pre-optimization done (n=48): time 1.483e-06/0.09183, allocations: 0 / 450.2 MB, free: 14.84 MB / 334.1 MB Notification: Performance of matching and sorting (n=52): time 0.005111/0.09695, allocations: 2.202 MB / 452.4 MB, free: 12.59 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.772e-05/0.097, allocations: 59.84 kB / 452.4 MB, free: 12.52 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003177/0.09732, allocations: 349.7 kB / 452.8 MB, free: 12.17 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.517e-05/0.09738, allocations: 37.7 kB / 452.8 MB, free: 12.13 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001258/0.09752, allocations: 232.3 kB / 453 MB, free: 11.9 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001412/0.09766, allocations: 189.3 kB / 453.2 MB, free: 11.71 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001724/0.09784, allocations: 90.23 kB / 453.3 MB, free: 11.62 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001233/0.09797, allocations: 362.8 kB / 453.7 MB, free: 11.25 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007811/0.09876, allocations: 362.3 kB / 454 MB, free: 10.89 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007848/0.09955, allocations: 419.1 kB / 454.4 MB, free: 10.47 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006129/0.1057, allocations: 2.001 MB / 456.4 MB, free: 8.445 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.1057, allocations: 0 / 456.4 MB, free: 8.445 MB / 334.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001738/0.1074, allocations: 0.8497 MB / 457.3 MB, free: 7.586 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.532e-05/0.1075, allocations: 8 kB / 457.3 MB, free: 7.578 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.622e-06/0.1075, allocations: 3.984 kB / 457.3 MB, free: 7.574 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.318e-05/0.1075, allocations: 4 kB / 457.3 MB, free: 7.57 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005543/0.113, allocations: 0.9129 MB / 458.2 MB, free: 6.656 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.486e-06/0.1131, allocations: 4 kB / 458.2 MB, free: 6.652 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004724/0.1135, allocations: 63.83 kB / 458.3 MB, free: 6.59 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.899e-05/0.1136, allocations: 19.98 kB / 458.3 MB, free: 6.57 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: 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.0002755/0.1139, allocations: 195.3 kB / 458.5 MB, free: 6.371 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.256e-05/0.114, allocations: 47.41 kB / 458.5 MB, free: 6.324 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001782/0.1158, allocations: 0.8367 MB / 459.4 MB, free: 5.477 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.3e-06/0.1158, allocations: 4 kB / 459.4 MB, free: 5.473 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.958e-06/0.1158, allocations: 0 / 459.4 MB, free: 5.473 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.131e-06/0.1158, allocations: 3.984 kB / 459.4 MB, free: 5.469 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002959/0.1188, allocations: 1.751 MB / 461.1 MB, free: 3.656 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.475e-06/0.1188, allocations: 0 / 461.1 MB, free: 3.656 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005614/0.1244, allocations: 0.909 MB / 462 MB, free: 2.746 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.2e-06/0.1244, allocations: 4 kB / 462 MB, free: 2.742 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.408e-05/0.1245, allocations: 15.98 kB / 462.1 MB, free: 2.727 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.268e-06/0.1245, allocations: 4 kB / 462.1 MB, free: 2.723 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.1245, allocations: 0 / 462.1 MB, free: 2.723 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002458/0.127, allocations: 1.265 MB / 463.3 MB, free: 1.445 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.514e-05/0.1271, allocations: 124.5 kB / 463.4 MB, free: 1.305 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.828e-05/0.1272, allocations: 12 kB / 463.5 MB, free: 1.293 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004931/0.1277, allocations: 55.92 kB / 463.5 MB, free: 1.238 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001586/0.1278, allocations: 72.36 kB / 463.6 MB, free: 1.168 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.624e-05/0.1279, allocations: 19.98 kB / 463.6 MB, free: 1.148 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002236/0.1281, allocations: 259.1 kB / 463.9 MB, free: 0.8945 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1281, allocations: 4 kB / 463.9 MB, free: 0.8906 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004177/0.1285, allocations: 152.1 kB / 464 MB, free: 0.7422 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: 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.0001366/0.1287, allocations: 114.3 kB / 464.1 MB, free: 0.625 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001799/0.1305, allocations: 0.841 MB / 465 MB, free: 15.78 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.1305, allocations: 320 / 465 MB, free: 15.78 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008192/0.1313, allocations: 422.2 kB / 465.4 MB, free: 15.37 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005144/0.1319, allocations: 105.4 kB / 465.5 MB, free: 15.27 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003324/0.1352, allocations: 2.009 MB / 467.5 MB, free: 13.22 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003446/0.1355, allocations: 0.8475 MB / 468.3 MB, free: 12.34 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002815/0.1358, allocations: 59.41 kB / 468.4 MB, free: 12.29 MB / 350.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1358, allocations: 0 / 468.4 MB, free: 12.29 MB / 350.1 MB Notification: Performance of Templates: time 0.008463/0.1443, allocations: 7.366 MB / 475.8 MB, free: 4.953 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)