Rapid yet accurate Tile-circuit and device modeling for Analog In-Memory Computing