Complexity measurement of cyber physical systems