text: from sysmpy import *
  import asyncio
  
  """
                              +---------------+
                              |               |
                              |     start     |
                              |               |
                              +---------------+
                                      | process1
                                      |
                                     (L)----------+
                                      |           |
                              +---------------+   |
                              |               |   |
                              |    Action1    |   |
                              |               |   |
                              +---------------+   |
                                      |           |
                                     (L)----------+
                                      |   2 times
                                      |
                              +---------------+
                              |               |
                              |    Action2    |
                              |               |
                              +---------------+
                                      |
                                      |
                              +---------------+
                              |               |
                              |      End      |
                              |               |
                              +---------------+                            
  """
  print('AD6_Loop_Test_2')
  
  ###############################################
  # 1 Define a model
  p = Process("process1")
  
  p1_1 = p.Loop("process1_1", times=2)
  
  l_act1 = p1_1.Action("Action1")
  
  p.Action("Action2")
  
  ###############################################
  # 2 Run a simulation
  asyncio.run(p.sim(print_out=True))