...
The workflow file similarly needs to know of your osm genmodel, so it can generate code that properly refers to osm code. Add the line referencedResource = "platform:/resource/no.hal.pgo.osm/model/osm.genmodel" to the GenerateXGr16xx.mwe2 file, as shown in the image below.
...