Hello All, first post!

I am working on a project where a single contiguous roof array will be divided up onto two separate inverters and interconnect to two separate electrical services. It is a residential project where a detached barn (~100' away from house) has it's own service, the house has the other and the array is located on the barn. Because of the single roof array, the array/racking EGC will be bonded to both services grounding electrodes. Is this permitted by the NEC? If not do any solutions exist other than physically separating the array sections?

Thank you!