# power flow convergence，but Pgen is greater than Pmax

We are calculating the power flow convergence of some cases, but we encounter a strange phenomenon. The power flow calculation result is the system power flow convergence, but the Pgen of swing generator is greater than Pmax. The detailed results are as follows

SWING BUS SUMMARY:

BUS#-SCT X-- NAME --X BASKV PGEN PMAX PMIN QGEN QMAX QMIN

31 BUS-31 100.00 797.9* 600.0 0.0 262.1 99900.0-99900.0

- We can see that pgen is 797.7 and Pmax is 600, but the result is power flow convergence. We are very confused about this. Does anyone know how to solve this problem? At the same time, we want to know whether pgen and Pmax can be obtained through python. Then, we help judge the convergence by comparing their values.
- Is there a way to judge whether the system generator output, branch power flow and node voltage meet the limits through Python. Thank you very much.