Automatic Data-Driven Partitioned Modeling Of Power System Dynamics With Smart Power Electronic Inverters