Episodes of war and peace in an estimated open economy model