Fixed bug with redeclared replaceables. Maxsearchsize is not needed anymore

Used the FMU XML file to find the model structure.
Replaced the Maxsearchsize with pre initialisation with cat- strucures