DEFINE_PROFILE is called several times not only once even before running. One case use UDF to prescribe the gauge pressure at inlet. Are you sure you are providing the profile in the field total pressure? Static pressure is not used for subsonic flows.