Digital Twin and its Application to Power Grid Online Analysis