Where in your knee is the pain?

Did your seatpost actually slip to where your seat height was lower than you normally set it?

Are the crankarms on your new bike the same length as on your old bike?

Get a torque wrench for your seatpost clamp bolt...