It's a problem with the imac hardware Federico. Hopefully Apple fix it soon, it's been dragging on for a few months. There's issues with the new CPUs not working properly with USB 3 ports and issues with the fusion drives. There's a long running thread on gearslutz...
http://www.gearslutz.com/board/music-computers/877537-potential-audio-problem-new-imacs.html