Correlation between magnetism and crystal symmetry in the mixed valence system of Sr1−xCaxRu0.5Mn0.5O3