This is going to be down to bad luck, or being in an area that only has spawns in specific time slots that you're not hitting. Check this page for the details:
https://pixelmonmod.com/wiki/Legendary_PokemonCheck this page for an explanation on what times are when:
https://pixelmonmod.com/wiki/Spawn_timesKeep in mind that spawns done through "/pokespawn" will not fire the event, and as such will not show the message. If you want to test things further, repeating "/legendaryspawn" a few times in different areas should eventually result in a spawn. This command does fire the event, though it has the same odds of working as a natural spawn attempt. (e.g. it fails often)
Closing this ticket as spawns most certainly work. Thanks for the report, though!
Side note: I would recommend updating Optifine to the current newest version for 1.12.2, G5. E3 will cause issues on your Forge build.