The ambitious endeavor is part of Mexican President Andres Manuel Lopez Obrador's drive to expand homegrown production of gasoline and diesel that Mexico now mostly buys from U.S. refiners.