Refiners are trimming output and in some cases closing down because of falling demand at home and abroad. Storage space is running low in pipelines and tanks. Wells, which pump from some of the world’s biggest crude reserves, are dialing down production.