model writing and debugging
Hello.
we do the dynamic simulation following: 
 1. Generate a user-defined model file .dll. 
2. Calculating the trend 
3. Import the .dyr file 
4. Initialization. 
5. dynamic simulation 
My qusetion is:
 In the whole process above, how is the mode 1-8 executed? and What is the order? (MODE4  MODE1 MODE3 MODE2  MODE3 MODE2...) 
Why does the PSS/E do follow the order? 
and how to use the WRITE(LPDEV,*) 
 and WRITE(DBUF01, 107) STATE(K) 
 CALL PROGRESS(DBUF01,1)? 
Thank you.
 