What happens to the nitrogen when an oxygen machine delivers only oxygen?
The nitrogen is returned to the air around the machine.  See Wikipedia's article on the oxygen concentrator for details about how the machine separates the nitrogen and oxygen.