Iceland voted in a referendum on whether to resume membership negotiations with the European Union, with a close race predicted and the final result expected late in the night or next morning.