Thanks Rob. I figured out the issue. In my DEFINE_PROFILE for Laser, the terms consist of Laser, Convective heat loss and Radiative heat loss. I ran the simulation with only Laser and Convective Loss and it worked. The issue of Invalid Cp, Floating point exception and Divergence in the solver comes when I add the radiative loss also. I don't know why this is happening.