Changed the annotation of the instance material from Evaluate=true to false. This is required to be able to change in MATLAB (and in the Dymola GUI) the material properties in a compiled model.