Please note sample of Inf is not supported for optimizations. You need to have explicit sample time set on the constant blocks or set to inherited (-1).
can you please run "hdlmodelchecker(<path_to_XADC>)" command on the subsystem? The hdlmodelchecker has an advisor check for fixing constants with unsupported configurations.
please share the model if you cannot resolve the issue with the suggestion and we can take a look and debug the issue.