Evolution of Class 0 protostars: models versus observations