"If you are treated as a resident of a foreign country under a tax treaty, you are treated as a nonresident alien in figuring your U.S. income tax. For purposes other than figuring your tax, you will be treated as a U.S. resident. For example, the rules discussed here do not affect your residency time periods."