After your construct the models, modelA, modelB and modelC are not the actual models, they are just references to the model objects. When you do modelA=modelB=modelC, you are changing the first two references to point to the third. The models they previously point to, if not referenced by other variables, are lost.