; and (B) in paragraph (2)— (i) in subparagraph (D), by striking and ; (ii) in subparagraph (E), by striking the period and inserting ; and ; and (iii) by inserting at the end the following: (F) to encourage the commercial application of advanced distribution automation technologies that improve system resilience. . 3. Smart grid modeling, visualization, architecture, and controls Title XIII of the Energy Independence and Security Act of 2007 ( 42 U.S.C. 17381 et seq.) is amended by inserting after section 1304 the following: 1304a. Smart grid modeling, visualization, architecture, and controls (a) In general Not later than 180 days after the enactment of the Grid Modernization Research and Development Act of 2019 , the Secretary shall establish a program of research, development, demonstration, and commercial application on electric grid modeling, sensing, visualization, architecture development, and advanced operation and controls. (b) Modeling research and development The Secretary shall support development of models of emerging technologies and systems to facilitate the secure and reliable design, planning, and operation of the electric grid for use by industry stakeholders. In particular, the Secretary shall support development of— (1) models to analyze and predict the effects of adverse physical and cyber events on the electric grid; (2) coupled models of electrical, physical, and cyber systems; (3) models of existing and emerging technologies being deployed on the electric grid due to projected changes in the electric generation mix and loads, for a variety of regional characteristics