Digital twin driven smart factories: real time physics based co-simulation using edge a.i. and federated learning | Synapse