Galaxy S5 SM-G900F programmed as SM-9006V
Current Situation


I am afraid you have messed up things in a big way by flashing a ROM not meant for the device ,see this to get more understanding Can I install a ROM made for a different device?
Also surprised that you were actually able to successfully install CM meant for another device
I am not conversant with "dd" commands, but the probable reason it is not working now is that the partition information has been altered after flashing the wrong ROM 
Samsung phones do not come with two ROMs as you are speculating based on Kies output. One remote possibility that strikes me is that this is a refurbished phone which had traces of earlier ROM (if that is possible ), leading to Kies reporting inability to upgrade. You can verify, if your phone is refurbished or not and also obtain more details about your phone, see my answer How can I tell if my phone is refurbished


Next Steps


At this juncture, trying to solve things on your own may cause more damage than help, so  visit a service center to get it fixed. Leave it to the experts
If you still want to experiment, download correct stock ROM from Sammobile (requires registration) and flash stock using Odin as explained [Guide][Samsung] How to flash Stock ROM   


Edit


OP has confirmed that check by Phone Info Samsung shows it as  refurbished. My guess is that the refurbishment was not properly done in terms of OS, leaving traces of earlier ROM as well. This could possibly disrupt attempt to restore to stock. This complicates situation further and strengthens my earlier recomendation to have the service center handle it. Of course, this does not stop OP from trying to flash stock ROM



  
  On Kies  before changing to cyanogen rom it said it could not update the phone and reported the following:
  
  
  G900FXXU1POEC/G900FOJV1POF1/G9006VZNU1BOE3/G900FXXU1POEC  (XSG)


factually reported by Kies, shows this, which is further confusing, either all the actions done by OP are not correctly reflected or there is an issue with refurbished phone


G900FXXU1POEC is UAE lollipop for your device
G9006VZNU1BOE3 is lollipop for SM-G9006V 
G900FOJV1POF1 is lollipop UAE