The problem with flashing the older library version KiCad_stable-2013 to a newer version kicad-product-4.0.4-x86_64

Did you see this post yet @Slawomir_Pukas ?