Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
0c65ea128a66590b66e07e4488acf22f3c93b2d7
[simgrid.git] / examples / simdag / dot / test_simdag_dotload.tesh
1 #! ./tesh
2 p Test the loader of DAG written in the DOT format
3
4 $ $SG_TEST_EXENV ./dot_test ${srcdir:=..}/2clusters.xml ${srcdir:=.}/dag.dot
5 > [0.000000] [surf_workstation/INFO] surf_workstation_model_init_ptask_L07
6 > [0.000000] [test/INFO] ------------------- Display all tasks of the loaded DAG ---------------------------
7 > [0.000000] [sd_task/INFO] Displaying task root
8 > [0.000000] [sd_task/INFO]   - state:  schedulable  not runnable    
9 > [0.000000] [sd_task/INFO]   - kind: sequential computation
10 > [0.000000] [sd_task/INFO]   - amount: 0
11 > [0.000000] [sd_task/INFO]   - Dependencies to satisfy: 0
12 > [0.000000] [sd_task/INFO]   - post-dependencies:
13 > [0.000000] [sd_task/INFO]     0
14 > [0.000000] [sd_task/INFO]     root->5
15 > [0.000000] [sd_task/INFO] Displaying task 0
16 > [0.000000] [sd_task/INFO]   - state:    not runnable    
17 > [0.000000] [sd_task/INFO]   - kind: sequential computation
18 > [0.000000] [sd_task/INFO]   - amount: 10000000129
19 > [0.000000] [sd_task/INFO]   - Dependencies to satisfy: 1
20 > [0.000000] [sd_task/INFO]   - pre-dependencies:
21 > [0.000000] [sd_task/INFO]     root
22 > [0.000000] [sd_task/INFO]   - post-dependencies:
23 > [0.000000] [sd_task/INFO]     0->1
24 > [0.000000] [sd_task/INFO] Displaying task 1
25 > [0.000000] [sd_task/INFO]   - state:    not runnable    
26 > [0.000000] [sd_task/INFO]   - kind: sequential computation
27 > [0.000000] [sd_task/INFO]   - amount: 10000000131
28 > [0.000000] [sd_task/INFO]   - Dependencies to satisfy: 1
29 > [0.000000] [sd_task/INFO]   - pre-dependencies:
30 > [0.000000] [sd_task/INFO]     0->1
31 > [0.000000] [sd_task/INFO]   - post-dependencies:
32 > [0.000000] [sd_task/INFO]     1->2
33 > [0.000000] [sd_task/INFO] Displaying task 2
34 > [0.000000] [sd_task/INFO]   - state:    not runnable    
35 > [0.000000] [sd_task/INFO]   - kind: sequential computation
36 > [0.000000] [sd_task/INFO]   - amount: 10000000121
37 > [0.000000] [sd_task/INFO]   - Dependencies to satisfy: 1
38 > [0.000000] [sd_task/INFO]   - pre-dependencies:
39 > [0.000000] [sd_task/INFO]     1->2
40 > [0.000000] [sd_task/INFO]   - post-dependencies:
41 > [0.000000] [sd_task/INFO]     2->3
42 > [0.000000] [sd_task/INFO] Displaying task 3
43 > [0.000000] [sd_task/INFO]   - state:    not runnable    
44 > [0.000000] [sd_task/INFO]   - kind: sequential computation
45 > [0.000000] [sd_task/INFO]   - amount: 10000000231
46 > [0.000000] [sd_task/INFO]   - Dependencies to satisfy: 1
47 > [0.000000] [sd_task/INFO]   - pre-dependencies:
48 > [0.000000] [sd_task/INFO]     2->3
49 > [0.000000] [sd_task/INFO]   - post-dependencies:
50 > [0.000000] [sd_task/INFO]     4
51 > [0.000000] [sd_task/INFO] Displaying task 4
52 > [0.000000] [sd_task/INFO]   - state:    not runnable    
53 > [0.000000] [sd_task/INFO]   - kind: sequential computation
54 > [0.000000] [sd_task/INFO]   - amount: 10000000005
55 > [0.000000] [sd_task/INFO]   - Dependencies to satisfy: 1
56 > [0.000000] [sd_task/INFO]   - pre-dependencies:
57 > [0.000000] [sd_task/INFO]     3
58 > [0.000000] [sd_task/INFO]   - post-dependencies:
59 > [0.000000] [sd_task/INFO]     4->5
60 > [0.000000] [sd_task/INFO] Displaying task 5
61 > [0.000000] [sd_task/INFO]   - state:    not runnable    
62 > [0.000000] [sd_task/INFO]   - kind: sequential computation
63 > [0.000000] [sd_task/INFO]   - amount: 10000000046
64 > [0.000000] [sd_task/INFO]   - Dependencies to satisfy: 2
65 > [0.000000] [sd_task/INFO]   - pre-dependencies:
66 > [0.000000] [sd_task/INFO]     root->5
67 > [0.000000] [sd_task/INFO]     4->5
68 > [0.000000] [sd_task/INFO]   - post-dependencies:
69 > [0.000000] [sd_task/INFO]     6
70 > [0.000000] [sd_task/INFO] Displaying task 6
71 > [0.000000] [sd_task/INFO]   - state:    not runnable    
72 > [0.000000] [sd_task/INFO]   - kind: sequential computation
73 > [0.000000] [sd_task/INFO]   - amount: 10000000092
74 > [0.000000] [sd_task/INFO]   - Dependencies to satisfy: 1
75 > [0.000000] [sd_task/INFO]   - pre-dependencies:
76 > [0.000000] [sd_task/INFO]     5
77 > [0.000000] [sd_task/INFO]   - post-dependencies:
78 > [0.000000] [sd_task/INFO]     6->7
79 > [0.000000] [sd_task/INFO] Displaying task 7
80 > [0.000000] [sd_task/INFO]   - state:    not runnable    
81 > [0.000000] [sd_task/INFO]   - kind: sequential computation
82 > [0.000000] [sd_task/INFO]   - amount: 10000000041
83 > [0.000000] [sd_task/INFO]   - Dependencies to satisfy: 1
84 > [0.000000] [sd_task/INFO]   - pre-dependencies:
85 > [0.000000] [sd_task/INFO]     6->7
86 > [0.000000] [sd_task/INFO]   - post-dependencies:
87 > [0.000000] [sd_task/INFO]     7->end
88 > [0.000000] [sd_task/INFO]     7->8
89 > [0.000000] [sd_task/INFO] Displaying task 8
90 > [0.000000] [sd_task/INFO]   - state:    not runnable    
91 > [0.000000] [sd_task/INFO]   - kind: sequential computation
92 > [0.000000] [sd_task/INFO]   - amount: 10000000250
93 > [0.000000] [sd_task/INFO]   - Dependencies to satisfy: 1
94 > [0.000000] [sd_task/INFO]   - pre-dependencies:
95 > [0.000000] [sd_task/INFO]     7->8
96 > [0.000000] [sd_task/INFO]   - post-dependencies:
97 > [0.000000] [sd_task/INFO]     9
98 > [0.000000] [sd_task/INFO] Displaying task 9
99 > [0.000000] [sd_task/INFO]   - state:    not runnable    
100 > [0.000000] [sd_task/INFO]   - kind: sequential computation
101 > [0.000000] [sd_task/INFO]   - amount: 10000000079
102 > [0.000000] [sd_task/INFO]   - Dependencies to satisfy: 1
103 > [0.000000] [sd_task/INFO]   - pre-dependencies:
104 > [0.000000] [sd_task/INFO]     8
105 > [0.000000] [sd_task/INFO]   - post-dependencies:
106 > [0.000000] [sd_task/INFO]     end
107 > [0.000000] [sd_task/INFO] Displaying task 2->3
108 > [0.000000] [sd_task/INFO]   - state:    not runnable    
109 > [0.000000] [sd_task/INFO]   - kind: end-to-end communication
110 > [0.000000] [sd_task/INFO]   - amount: 10002
111 > [0.000000] [sd_task/INFO]   - Dependencies to satisfy: 1
112 > [0.000000] [sd_task/INFO]   - pre-dependencies:
113 > [0.000000] [sd_task/INFO]     2
114 > [0.000000] [sd_task/INFO]   - post-dependencies:
115 > [0.000000] [sd_task/INFO]     3
116 > [0.000000] [sd_task/INFO] Displaying task 6->7
117 > [0.000000] [sd_task/INFO]   - state:    not runnable    
118 > [0.000000] [sd_task/INFO]   - kind: end-to-end communication
119 > [0.000000] [sd_task/INFO]   - amount: 10005
120 > [0.000000] [sd_task/INFO]   - Dependencies to satisfy: 1
121 > [0.000000] [sd_task/INFO]   - pre-dependencies:
122 > [0.000000] [sd_task/INFO]     6
123 > [0.000000] [sd_task/INFO]   - post-dependencies:
124 > [0.000000] [sd_task/INFO]     7
125 > [0.000000] [sd_task/INFO] Displaying task root->5
126 > [0.000000] [sd_task/INFO]   - state:    not runnable    
127 > [0.000000] [sd_task/INFO]   - kind: end-to-end communication
128 > [0.000000] [sd_task/INFO]   - amount: 10014000
129 > [0.000000] [sd_task/INFO]   - Dependencies to satisfy: 1
130 > [0.000000] [sd_task/INFO]   - pre-dependencies:
131 > [0.000000] [sd_task/INFO]     root
132 > [0.000000] [sd_task/INFO]   - post-dependencies:
133 > [0.000000] [sd_task/INFO]     5
134 > [0.000000] [sd_task/INFO] Displaying task 1->2
135 > [0.000000] [sd_task/INFO]   - state:    not runnable    
136 > [0.000000] [sd_task/INFO]   - kind: end-to-end communication
137 > [0.000000] [sd_task/INFO]   - amount: 10004
138 > [0.000000] [sd_task/INFO]   - Dependencies to satisfy: 1
139 > [0.000000] [sd_task/INFO]   - pre-dependencies:
140 > [0.000000] [sd_task/INFO]     1
141 > [0.000000] [sd_task/INFO]   - post-dependencies:
142 > [0.000000] [sd_task/INFO]     2
143 > [0.000000] [sd_task/INFO] Displaying task 7->end
144 > [0.000000] [sd_task/INFO]   - state:    not runnable    
145 > [0.000000] [sd_task/INFO]   - kind: end-to-end communication
146 > [0.000000] [sd_task/INFO]   - amount: 10014000
147 > [0.000000] [sd_task/INFO]   - Dependencies to satisfy: 1
148 > [0.000000] [sd_task/INFO]   - pre-dependencies:
149 > [0.000000] [sd_task/INFO]     7
150 > [0.000000] [sd_task/INFO]   - post-dependencies:
151 > [0.000000] [sd_task/INFO]     end
152 > [0.000000] [sd_task/INFO] Displaying task 0->1
153 > [0.000000] [sd_task/INFO]   - state:    not runnable    
154 > [0.000000] [sd_task/INFO]   - kind: end-to-end communication
155 > [0.000000] [sd_task/INFO]   - amount: 10001
156 > [0.000000] [sd_task/INFO]   - Dependencies to satisfy: 1
157 > [0.000000] [sd_task/INFO]   - pre-dependencies:
158 > [0.000000] [sd_task/INFO]     0
159 > [0.000000] [sd_task/INFO]   - post-dependencies:
160 > [0.000000] [sd_task/INFO]     1
161 > [0.000000] [sd_task/INFO] Displaying task 4->5
162 > [0.000000] [sd_task/INFO]   - state:    not runnable    
163 > [0.000000] [sd_task/INFO]   - kind: end-to-end communication
164 > [0.000000] [sd_task/INFO]   - amount: 10029
165 > [0.000000] [sd_task/INFO]   - Dependencies to satisfy: 1
166 > [0.000000] [sd_task/INFO]   - pre-dependencies:
167 > [0.000000] [sd_task/INFO]     4
168 > [0.000000] [sd_task/INFO]   - post-dependencies:
169 > [0.000000] [sd_task/INFO]     5
170 > [0.000000] [sd_task/INFO] Displaying task 7->8
171 > [0.000000] [sd_task/INFO]   - state:    not runnable    
172 > [0.000000] [sd_task/INFO]   - kind: end-to-end communication
173 > [0.000000] [sd_task/INFO]   - amount: 10000
174 > [0.000000] [sd_task/INFO]   - Dependencies to satisfy: 1
175 > [0.000000] [sd_task/INFO]   - pre-dependencies:
176 > [0.000000] [sd_task/INFO]     7
177 > [0.000000] [sd_task/INFO]   - post-dependencies:
178 > [0.000000] [sd_task/INFO]     8
179 > [0.000000] [sd_task/INFO] Displaying task end
180 > [0.000000] [sd_task/INFO]   - state:    not runnable    
181 > [0.000000] [sd_task/INFO]   - kind: sequential computation
182 > [0.000000] [sd_task/INFO]   - amount: 0
183 > [0.000000] [sd_task/INFO]   - Dependencies to satisfy: 2
184 > [0.000000] [sd_task/INFO]   - pre-dependencies:
185 > [0.000000] [sd_task/INFO]     9
186 > [0.000000] [sd_task/INFO]     7->end
187 > [0.000000] [test/INFO] ------------------- Schedule tasks ---------------------------
188 > [0.000000] [test/INFO] ------------------- Run the schedule ---------------------------
189 > [131.443480] [test/INFO] ------------------- Produce the trace file---------------------------
190 > [131.443480] [test/INFO] Producing the trace of the run into ./dag.trace
191
192 $ cat ${srcdir:=.}/dag.trace
193 > [0.000000] C2-05 compute 0.000000 # root
194 > [0.000000] C2-06 compute 10000000129.452715 # 0
195 > [2.000600] C2-07 compute 10000000131.133657 # 1
196 > [4.001200] C2-08 compute 10000000121.124870 # 2
197 > [6.001800] C2-09 compute 10000000230.608025 # 3
198 > [8.001800] C1-00 compute 10000000004.994019 # 4
199 > [50.721440] C1-01 compute 10000000046.016401 # 5
200 > [60.721440] C1-02 compute 10000000091.598791 # 6
201 > [70.722040] C1-03 compute 10000000040.679438 # 7
202 > [80.722640] C1-04 compute 10000000250.490017 # 8
203 > [90.722641] C2-05 compute 10000000079.267649 # 9
204 > [6.001200] C2-08 send C2-09 10001.781645 # 2->3
205 > [6.001800] C2-09 recv C2-08 10001.781645 # 2->3
206 > [70.721440] C1-02 send C1-03 10004.920415 # 6->7
207 > [70.722040] C1-03 recv C1-02 10004.920415 # 6->7
208 > [0.000000] C2-05 send C1-01 10014000.000000 # root->5
209 > [50.721440] C1-01 recv C2-05 10014000.000000 # root->5
210 > [4.000600] C2-07 send C2-08 10004.164631 # 1->2
211 > [4.001200] C2-08 recv C2-07 10004.164631 # 1->2
212 > [80.722040] C1-03 send C2-05 10014000.000000 # 7->end
213 > [131.443480] C2-05 recv C1-03 10014000.000000 # 7->end
214 > [2.000000] C2-06 send C2-07 10001.389601 # 0->1
215 > [2.000600] C2-07 recv C2-06 10001.389601 # 0->1
216 > [18.001800] C1-00 send C1-01 10029.262823 # 4->5
217 > [18.002401] C1-01 recv C1-00 10029.262823 # 4->5
218 > [80.722040] C1-03 send C1-04 10000.234049 # 7->8
219 > [80.722640] C1-04 recv C1-03 10000.234049 # 7->8
220 > [131.443480] C2-05 compute 0.000000 # end
221
222 $ rm -f dag.trace
223
224 ! expect signal SIGABRT
225 $$ $SG_TEST_EXENV ./simulate_dot --log=no_loc  "--log=sd_dotparse.thres:verbose" ${srcdir:=..}/2clusters.xml ${srcdir:=.}/dag_with_bad_schedule.dot 
226 > [0.000000] [surf_workstation/INFO] surf_workstation_model_init_ptask_L07
227 > [0.000000] [sd_dotparse/VERBOSE] The schedule is ignored, there are not enough computers
228 > [0.000000] [sd_dotparse/WARNING]  is not an integer
229 > [0.000000] [sd_dotparse/VERBOSE] The schedule is ignored, the task 1 is not correctly scheduled
230 > [0.000000] [sd_dotparse/VERBOSE] The task 0 starts on the computer 1 at the position : 1 like the task 2
231 > [0.000000] [sd_dotparse/WARNING]  is not an integer
232 > [0.000000] [sd_dotparse/VERBOSE] The schedule is ignored, the task 3 is not correctly scheduled
233 > [0.000000] [sd_dotparse/WARNING]  is not an integer
234 > [0.000000] [sd_dotparse/WARNING]  is not an integer
235 > [0.000000] [sd_dotparse/VERBOSE] The schedule is ignored, the task root is not correctly scheduled
236 > [0.000000] [sd_dotparse/WARNING] The scheduling is ignored
237 > [0.000000] [xbt/CRITICAL] The dot file with the provided scheduling is wrong, more information with the option : --log=sd_dotparse.thres:verbose