Serial Communication Problem - Simulink/Arduino

UPDATE: I was testing my code and when I remove just the "analogWrite" line, it works just perfectly! I repeated this test several times to make sure it wasn´t just a coincidence. I have no idea why the "analogWrite" is causing this interference though.