Dynamic analysis of open economies