Reproducibility of problems in Modelling Toolkit (MTK)

We are trying to cache the simplified model of an MTK model in a file. Currently we using the serialize() function of base Julia.

Observation: The serialized file is different each time we generate it, even if the original DAE system is the same.

Is this to-be-expected? Is there a way to avoid that?

What is different? Can you show the diff?