My hand calculation shows 12.003 MPa, so a conclusion is easy: "Beam theory = 18MPa" is not a result of the classical beam theory...

Maybe you wrong use Mmax = qL^2/8 or you made other mistake.