I am an F1 student who was in the United States from September 2011 till August 2018. I completed my coursework in May 2015, and stayed in the US for another three years under the OPT provision. I pass the substantial presence test and my understanding is that I should file as a Resident Alien.
However, I left the country in August 2018, and as such was uninsured from August onward. Am I still required to pay the individual mandate penalty for being uninsured for the time I was not in the US? If not, what is the proper fields to indicate that on my 1040?