I'm new to this community.
Check the answer to this question on StackExchange:
https://stats.stackexchange.com/questions/443655/why-arima-and-arima-give-different-aic-and-sigma2-while-giving-the-same