Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
b26135f098a6152f42e7dfe0ae073caa0a1fbe16
[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 --log=no_loc ${srcdir:=.}/../2clusters.xml ${srcdir:=.}/dag.dot
5 > [0.000000] [xbt_cfg/INFO] Switching to the L07 model to handle parallel tasks.
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]     root->5
14 > [0.000000] [sd_task/INFO]     0
15 > [0.000000] [sd_task/INFO] Displaying task 0
16 > [0.000000] [sd_task/INFO]   - state: not scheduled 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 scheduled 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 scheduled 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 scheduled 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 scheduled 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 scheduled 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]     4->5
67 > [0.000000] [sd_task/INFO]     root->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 scheduled 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 scheduled 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->8
88 > [0.000000] [sd_task/INFO]     7->end
89 > [0.000000] [sd_task/INFO] Displaying task 8
90 > [0.000000] [sd_task/INFO]   - state: not scheduled 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 scheduled 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 0->1
108 > [0.000000] [sd_task/INFO]   - state: not scheduled not runnable
109 > [0.000000] [sd_task/INFO]   - kind: end-to-end communication
110 > [0.000000] [sd_task/INFO]   - amount: 10001
111 > [0.000000] [sd_task/INFO]   - Dependencies to satisfy: 1
112 > [0.000000] [sd_task/INFO]   - pre-dependencies:
113 > [0.000000] [sd_task/INFO]     0
114 > [0.000000] [sd_task/INFO]   - post-dependencies:
115 > [0.000000] [sd_task/INFO]     1
116 > [0.000000] [sd_task/INFO] Displaying task 1->2
117 > [0.000000] [sd_task/INFO]   - state: not scheduled not runnable
118 > [0.000000] [sd_task/INFO]   - kind: end-to-end communication
119 > [0.000000] [sd_task/INFO]   - amount: 10004
120 > [0.000000] [sd_task/INFO]   - Dependencies to satisfy: 1
121 > [0.000000] [sd_task/INFO]   - pre-dependencies:
122 > [0.000000] [sd_task/INFO]     1
123 > [0.000000] [sd_task/INFO]   - post-dependencies:
124 > [0.000000] [sd_task/INFO]     2
125 > [0.000000] [sd_task/INFO] Displaying task 2->3
126 > [0.000000] [sd_task/INFO]   - state: not scheduled not runnable
127 > [0.000000] [sd_task/INFO]   - kind: end-to-end communication
128 > [0.000000] [sd_task/INFO]   - amount: 10002
129 > [0.000000] [sd_task/INFO]   - Dependencies to satisfy: 1
130 > [0.000000] [sd_task/INFO]   - pre-dependencies:
131 > [0.000000] [sd_task/INFO]     2
132 > [0.000000] [sd_task/INFO]   - post-dependencies:
133 > [0.000000] [sd_task/INFO]     3
134 > [0.000000] [sd_task/INFO] Displaying task 4->5
135 > [0.000000] [sd_task/INFO]   - state: not scheduled not runnable
136 > [0.000000] [sd_task/INFO]   - kind: end-to-end communication
137 > [0.000000] [sd_task/INFO]   - amount: 10029
138 > [0.000000] [sd_task/INFO]   - Dependencies to satisfy: 1
139 > [0.000000] [sd_task/INFO]   - pre-dependencies:
140 > [0.000000] [sd_task/INFO]     4
141 > [0.000000] [sd_task/INFO]   - post-dependencies:
142 > [0.000000] [sd_task/INFO]     5
143 > [0.000000] [sd_task/INFO] Displaying task 6->7
144 > [0.000000] [sd_task/INFO]   - state: not scheduled not runnable
145 > [0.000000] [sd_task/INFO]   - kind: end-to-end communication
146 > [0.000000] [sd_task/INFO]   - amount: 10005
147 > [0.000000] [sd_task/INFO]   - Dependencies to satisfy: 1
148 > [0.000000] [sd_task/INFO]   - pre-dependencies:
149 > [0.000000] [sd_task/INFO]     6
150 > [0.000000] [sd_task/INFO]   - post-dependencies:
151 > [0.000000] [sd_task/INFO]     7
152 > [0.000000] [sd_task/INFO] Displaying task 7->8
153 > [0.000000] [sd_task/INFO]   - state: not scheduled not runnable
154 > [0.000000] [sd_task/INFO]   - kind: end-to-end communication
155 > [0.000000] [sd_task/INFO]   - amount: 10000
156 > [0.000000] [sd_task/INFO]   - Dependencies to satisfy: 1
157 > [0.000000] [sd_task/INFO]   - pre-dependencies:
158 > [0.000000] [sd_task/INFO]     7
159 > [0.000000] [sd_task/INFO]   - post-dependencies:
160 > [0.000000] [sd_task/INFO]     8
161 > [0.000000] [sd_task/INFO] Displaying task 7->end
162 > [0.000000] [sd_task/INFO]   - state: not scheduled not runnable
163 > [0.000000] [sd_task/INFO]   - kind: end-to-end communication
164 > [0.000000] [sd_task/INFO]   - amount: 10014000
165 > [0.000000] [sd_task/INFO]   - Dependencies to satisfy: 1
166 > [0.000000] [sd_task/INFO]   - pre-dependencies:
167 > [0.000000] [sd_task/INFO]     7
168 > [0.000000] [sd_task/INFO]   - post-dependencies:
169 > [0.000000] [sd_task/INFO]     end
170 > [0.000000] [sd_task/INFO] Displaying task root->5
171 > [0.000000] [sd_task/INFO]   - state: not scheduled not runnable
172 > [0.000000] [sd_task/INFO]   - kind: end-to-end communication
173 > [0.000000] [sd_task/INFO]   - amount: 10014000
174 > [0.000000] [sd_task/INFO]   - Dependencies to satisfy: 1
175 > [0.000000] [sd_task/INFO]   - pre-dependencies:
176 > [0.000000] [sd_task/INFO]     root
177 > [0.000000] [sd_task/INFO]   - post-dependencies:
178 > [0.000000] [sd_task/INFO]     5
179 > [0.000000] [sd_task/INFO] Displaying task end
180 > [0.000000] [sd_task/INFO]   - state: not scheduled not runnable
181 > [0.000000] [sd_task/INFO]   - kind: sequential computation
182 > [0.000000] [sd_task/INFO]   - amount: 10000000129
183 > [0.000000] [sd_task/INFO]   - Dependencies to satisfy: 2
184 > [0.000000] [sd_task/INFO]   - pre-dependencies:
185 > [0.000000] [sd_task/INFO]     7->end
186 > [0.000000] [sd_task/INFO]     9
187 > [0.000000] [test/INFO] ------------------- Schedule tasks ---------------------------
188 > [0.000000] [test/INFO] ------------------- Run the schedule ---------------------------
189 > [62.002281] [test/INFO] ------------------- Produce the trace file---------------------------
190 > [62.002281] [test/INFO] Producing the trace of the run into dag.trace
191
192 $ cat ${srcdir:=.}/dag.trace
193 > [0.000000->0.000000] C2-05 compute 0.000000 flops # root
194 > [0.000000->2.000000] C2-06 compute 10000000129.452715 flops # 0
195 > [2.000380->4.000380] C2-07 compute 10000000131.133657 flops # 1
196 > [4.000760->6.000760] C2-08 compute 10000000121.124870 flops # 2
197 > [6.001140->8.001140] C2-09 compute 10000000230.608025 flops # 3
198 > [8.001140->18.001140] C1-00 compute 10000000004.994019 flops # 4
199 > [18.001520->28.001520] C1-01 compute 10000000046.016401 flops # 5
200 > [28.001520->38.001521] C1-02 compute 10000000091.598791 flops # 6
201 > [38.001901->48.001901] C1-03 compute 10000000040.679438 flops # 7
202 > [48.002281->58.002281] C1-04 compute 10000000250.490017 flops # 8
203 > [58.002281->60.002281] C2-05 compute 10000000079.267649 flops # 9
204 > [2.000000 -> 2.000380] C2-06 -> C2-07 transfer of 10001 bytes # 0->1
205 > [4.000380 -> 4.000760] C2-07 -> C2-08 transfer of 10004 bytes # 1->2
206 > [6.000760 -> 6.001140] C2-08 -> C2-09 transfer of 10002 bytes # 2->3
207 > [18.001140 -> 18.001520] C1-00 -> C1-01 transfer of 10029 bytes # 4->5
208 > [38.001521 -> 38.001901] C1-02 -> C1-03 transfer of 10005 bytes # 6->7
209 > [48.001901 -> 48.002281] C1-03 -> C1-04 transfer of 10000 bytes # 7->8
210 > [48.001901 -> 48.294118] C1-03 -> C2-05 transfer of 10014000 bytes # 7->end
211 > [0.000000 -> 0.292217] C2-05 -> C1-01 transfer of 10014000 bytes # root->5
212 > [60.002281->62.002281] C2-05 compute 10000000129.452715 flops # end
213
214 $ rm -f dag.trace
215
216 ! expect return 2
217 $ $SG_TEST_EXENV ./simulate_dot --log=no_loc  "--log=sd_dotparse.thres:verbose" ${srcdir:=.}/../2clusters.xml ${srcdir:=.}/dag_with_bad_schedule.dot
218 > [0.000000] [xbt_cfg/INFO] Switching to the L07 model to handle parallel tasks.
219 > [0.000000] [sd_dotparse/VERBOSE] The schedule is ignored, the task end is not correctly scheduled
220 > [0.000000] [sd_dotparse/VERBOSE] The schedule is ignored, the task 1 is not correctly scheduled
221 > [0.000000] [sd_dotparse/VERBOSE] The task 0 starts on the computer 1 at the position : 1 like the task 2
222 > [0.000000] [sd_dotparse/VERBOSE] The schedule is ignored, the task 3 is not correctly scheduled
223 > [0.000000] [sd_dotparse/VERBOSE] The schedule is ignored, the task root is not correctly scheduled
224 > [0.000000] [sd_dotparse/WARNING] The scheduling is ignored
225 > [0.000000] [test/CRITICAL] The dot file with the provided scheduling is wrong, more information with the option : --log=sd_dotparse.thres:verbose
226
227 $ $SG_TEST_EXENV ./simulate_dot --log=no_loc ${srcdir:=.}/../2clusters.xml ${srcdir:=.}/dag_with_good_schedule.dot
228 > [0.000000] [xbt_cfg/INFO] Switching to the L07 model to handle parallel tasks.
229 > [0.000000] [test/INFO] ------------------- Display all tasks of the loaded DAG ---------------------------
230 > [0.000000] [sd_task/INFO] Displaying task root
231 > [0.000000] [sd_task/INFO]   - state: runnable
232 > [0.000000] [sd_task/INFO]   - kind: sequential computation
233 > [0.000000] [sd_task/INFO]   - amount: 0
234 > [0.000000] [sd_task/INFO]   - Dependencies to satisfy: 0
235 > [0.000000] [sd_task/INFO]   - post-dependencies:
236 > [0.000000] [sd_task/INFO]     root->5
237 > [0.000000] [sd_task/INFO]     0
238 > [0.000000] [sd_task/INFO]     1
239 > [0.000000] [sd_task/INFO] Displaying task 0
240 > [0.000000] [sd_task/INFO]   - state: scheduled not runnable
241 > [0.000000] [sd_task/INFO]   - kind: sequential computation
242 > [0.000000] [sd_task/INFO]   - amount: 10000000129
243 > [0.000000] [sd_task/INFO]   - Dependencies to satisfy: 1
244 > [0.000000] [sd_task/INFO]   - pre-dependencies:
245 > [0.000000] [sd_task/INFO]     root
246 > [0.000000] [sd_task/INFO]   - post-dependencies:
247 > [0.000000] [sd_task/INFO]     0->2
248 > [0.000000] [sd_task/INFO]     2
249 > [0.000000] [sd_task/INFO] Displaying task 1
250 > [0.000000] [sd_task/INFO]   - state: scheduled not runnable
251 > [0.000000] [sd_task/INFO]   - kind: sequential computation
252 > [0.000000] [sd_task/INFO]   - amount: 10000000131
253 > [0.000000] [sd_task/INFO]   - Dependencies to satisfy: 1
254 > [0.000000] [sd_task/INFO]   - pre-dependencies:
255 > [0.000000] [sd_task/INFO]     root
256 > [0.000000] [sd_task/INFO]   - post-dependencies:
257 > [0.000000] [sd_task/INFO]     1->2
258 > [0.000000] [sd_task/INFO]     4
259 > [0.000000] [sd_task/INFO] Displaying task 2
260 > [0.000000] [sd_task/INFO]   - state: scheduled not runnable
261 > [0.000000] [sd_task/INFO]   - kind: sequential computation
262 > [0.000000] [sd_task/INFO]   - amount: 10000000121
263 > [0.000000] [sd_task/INFO]   - Dependencies to satisfy: 3
264 > [0.000000] [sd_task/INFO]   - pre-dependencies:
265 > [0.000000] [sd_task/INFO]     0->2
266 > [0.000000] [sd_task/INFO]     1->2
267 > [0.000000] [sd_task/INFO]     0
268 > [0.000000] [sd_task/INFO]   - post-dependencies:
269 > [0.000000] [sd_task/INFO]     2->3
270 > [0.000000] [sd_task/INFO]     3
271 > [0.000000] [sd_task/INFO] Displaying task 3
272 > [0.000000] [sd_task/INFO]   - state: scheduled not runnable
273 > [0.000000] [sd_task/INFO]   - kind: sequential computation
274 > [0.000000] [sd_task/INFO]   - amount: 10000000231
275 > [0.000000] [sd_task/INFO]   - Dependencies to satisfy: 2
276 > [0.000000] [sd_task/INFO]   - pre-dependencies:
277 > [0.000000] [sd_task/INFO]     2->3
278 > [0.000000] [sd_task/INFO]     2
279 > [0.000000] [sd_task/INFO]   - post-dependencies:
280 > [0.000000] [sd_task/INFO]     4
281 > [0.000000] [sd_task/INFO]     8
282 > [0.000000] [sd_task/INFO] Displaying task 4
283 > [0.000000] [sd_task/INFO]   - state: scheduled not runnable
284 > [0.000000] [sd_task/INFO]   - kind: sequential computation
285 > [0.000000] [sd_task/INFO]   - amount: 10000000005
286 > [0.000000] [sd_task/INFO]   - Dependencies to satisfy: 2
287 > [0.000000] [sd_task/INFO]   - pre-dependencies:
288 > [0.000000] [sd_task/INFO]     3
289 > [0.000000] [sd_task/INFO]     1
290 > [0.000000] [sd_task/INFO]   - post-dependencies:
291 > [0.000000] [sd_task/INFO]     4->5
292 > [0.000000] [sd_task/INFO]     5
293 > [0.000000] [sd_task/INFO] Displaying task 5
294 > [0.000000] [sd_task/INFO]   - state: scheduled not runnable
295 > [0.000000] [sd_task/INFO]   - kind: sequential computation
296 > [0.000000] [sd_task/INFO]   - amount: 10000000046
297 > [0.000000] [sd_task/INFO]   - Dependencies to satisfy: 3
298 > [0.000000] [sd_task/INFO]   - pre-dependencies:
299 > [0.000000] [sd_task/INFO]     root->5
300 > [0.000000] [sd_task/INFO]     4->5
301 > [0.000000] [sd_task/INFO]     4
302 > [0.000000] [sd_task/INFO]   - post-dependencies:
303 > [0.000000] [sd_task/INFO]     6
304 > [0.000000] [sd_task/INFO] Displaying task 6
305 > [0.000000] [sd_task/INFO]   - state: scheduled not runnable
306 > [0.000000] [sd_task/INFO]   - kind: sequential computation
307 > [0.000000] [sd_task/INFO]   - amount: 10000000092
308 > [0.000000] [sd_task/INFO]   - Dependencies to satisfy: 1
309 > [0.000000] [sd_task/INFO]   - pre-dependencies:
310 > [0.000000] [sd_task/INFO]     5
311 > [0.000000] [sd_task/INFO]   - post-dependencies:
312 > [0.000000] [sd_task/INFO]     6->7
313 > [0.000000] [sd_task/INFO]     7
314 > [0.000000] [sd_task/INFO] Displaying task 7
315 > [0.000000] [sd_task/INFO]   - state: scheduled not runnable
316 > [0.000000] [sd_task/INFO]   - kind: sequential computation
317 > [0.000000] [sd_task/INFO]   - amount: 10000000041
318 > [0.000000] [sd_task/INFO]   - Dependencies to satisfy: 2
319 > [0.000000] [sd_task/INFO]   - pre-dependencies:
320 > [0.000000] [sd_task/INFO]     6->7
321 > [0.000000] [sd_task/INFO]     6
322 > [0.000000] [sd_task/INFO]   - post-dependencies:
323 > [0.000000] [sd_task/INFO]     7->8
324 > [0.000000] [sd_task/INFO]     7->end
325 > [0.000000] [sd_task/INFO]     end
326 > [0.000000] [sd_task/INFO] Displaying task 8
327 > [0.000000] [sd_task/INFO]   - state: scheduled not runnable
328 > [0.000000] [sd_task/INFO]   - kind: sequential computation
329 > [0.000000] [sd_task/INFO]   - amount: 10000000250
330 > [0.000000] [sd_task/INFO]   - Dependencies to satisfy: 2
331 > [0.000000] [sd_task/INFO]   - pre-dependencies:
332 > [0.000000] [sd_task/INFO]     7->8
333 > [0.000000] [sd_task/INFO]     3
334 > [0.000000] [sd_task/INFO]   - post-dependencies:
335 > [0.000000] [sd_task/INFO]     9
336 > [0.000000] [sd_task/INFO] Displaying task 9
337 > [0.000000] [sd_task/INFO]   - state: scheduled not runnable
338 > [0.000000] [sd_task/INFO]   - kind: sequential computation
339 > [0.000000] [sd_task/INFO]   - amount: 10000000079
340 > [0.000000] [sd_task/INFO]   - Dependencies to satisfy: 1
341 > [0.000000] [sd_task/INFO]   - pre-dependencies:
342 > [0.000000] [sd_task/INFO]     8
343 > [0.000000] [sd_task/INFO]   - post-dependencies:
344 > [0.000000] [sd_task/INFO]     end
345 > [0.000000] [sd_task/INFO] Displaying task root->5
346 > [0.000000] [sd_task/INFO]   - state: scheduled not runnable
347 > [0.000000] [sd_task/INFO]   - kind: end-to-end communication
348 > [0.000000] [sd_task/INFO]   - amount: 10014000
349 > [0.000000] [sd_task/INFO]   - Dependencies to satisfy: 1
350 > [0.000000] [sd_task/INFO]   - pre-dependencies:
351 > [0.000000] [sd_task/INFO]     root
352 > [0.000000] [sd_task/INFO]   - post-dependencies:
353 > [0.000000] [sd_task/INFO]     5
354 > [0.000000] [sd_task/INFO] Displaying task 0->2
355 > [0.000000] [sd_task/INFO]   - state: scheduled not runnable
356 > [0.000000] [sd_task/INFO]   - kind: end-to-end communication
357 > [0.000000] [sd_task/INFO]   - amount: 10001
358 > [0.000000] [sd_task/INFO]   - Dependencies to satisfy: 1
359 > [0.000000] [sd_task/INFO]   - pre-dependencies:
360 > [0.000000] [sd_task/INFO]     0
361 > [0.000000] [sd_task/INFO]   - post-dependencies:
362 > [0.000000] [sd_task/INFO]     2
363 > [0.000000] [sd_task/INFO] Displaying task 1->2
364 > [0.000000] [sd_task/INFO]   - state: scheduled not runnable
365 > [0.000000] [sd_task/INFO]   - kind: end-to-end communication
366 > [0.000000] [sd_task/INFO]   - amount: 10004
367 > [0.000000] [sd_task/INFO]   - Dependencies to satisfy: 1
368 > [0.000000] [sd_task/INFO]   - pre-dependencies:
369 > [0.000000] [sd_task/INFO]     1
370 > [0.000000] [sd_task/INFO]   - post-dependencies:
371 > [0.000000] [sd_task/INFO]     2
372 > [0.000000] [sd_task/INFO] Displaying task 2->3
373 > [0.000000] [sd_task/INFO]   - state: scheduled not runnable
374 > [0.000000] [sd_task/INFO]   - kind: end-to-end communication
375 > [0.000000] [sd_task/INFO]   - amount: 10002
376 > [0.000000] [sd_task/INFO]   - Dependencies to satisfy: 1
377 > [0.000000] [sd_task/INFO]   - pre-dependencies:
378 > [0.000000] [sd_task/INFO]     2
379 > [0.000000] [sd_task/INFO]   - post-dependencies:
380 > [0.000000] [sd_task/INFO]     3
381 > [0.000000] [sd_task/INFO] Displaying task 4->5
382 > [0.000000] [sd_task/INFO]   - state: scheduled not runnable
383 > [0.000000] [sd_task/INFO]   - kind: end-to-end communication
384 > [0.000000] [sd_task/INFO]   - amount: 10029
385 > [0.000000] [sd_task/INFO]   - Dependencies to satisfy: 1
386 > [0.000000] [sd_task/INFO]   - pre-dependencies:
387 > [0.000000] [sd_task/INFO]     4
388 > [0.000000] [sd_task/INFO]   - post-dependencies:
389 > [0.000000] [sd_task/INFO]     5
390 > [0.000000] [sd_task/INFO] Displaying task 6->7
391 > [0.000000] [sd_task/INFO]   - state: scheduled not runnable
392 > [0.000000] [sd_task/INFO]   - kind: end-to-end communication
393 > [0.000000] [sd_task/INFO]   - amount: 10005
394 > [0.000000] [sd_task/INFO]   - Dependencies to satisfy: 1
395 > [0.000000] [sd_task/INFO]   - pre-dependencies:
396 > [0.000000] [sd_task/INFO]     6
397 > [0.000000] [sd_task/INFO]   - post-dependencies:
398 > [0.000000] [sd_task/INFO]     7
399 > [0.000000] [sd_task/INFO] Displaying task 7->8
400 > [0.000000] [sd_task/INFO]   - state: scheduled not runnable
401 > [0.000000] [sd_task/INFO]   - kind: end-to-end communication
402 > [0.000000] [sd_task/INFO]   - amount: 10000
403 > [0.000000] [sd_task/INFO]   - Dependencies to satisfy: 1
404 > [0.000000] [sd_task/INFO]   - pre-dependencies:
405 > [0.000000] [sd_task/INFO]     7
406 > [0.000000] [sd_task/INFO]   - post-dependencies:
407 > [0.000000] [sd_task/INFO]     8
408 > [0.000000] [sd_task/INFO] Displaying task 7->end
409 > [0.000000] [sd_task/INFO]   - state: scheduled not runnable
410 > [0.000000] [sd_task/INFO]   - kind: end-to-end communication
411 > [0.000000] [sd_task/INFO]   - amount: 10014000
412 > [0.000000] [sd_task/INFO]   - Dependencies to satisfy: 1
413 > [0.000000] [sd_task/INFO]   - pre-dependencies:
414 > [0.000000] [sd_task/INFO]     7
415 > [0.000000] [sd_task/INFO]   - post-dependencies:
416 > [0.000000] [sd_task/INFO]     end
417 > [0.000000] [sd_task/INFO] Displaying task end
418 > [0.000000] [sd_task/INFO]   - state: scheduled not runnable
419 > [0.000000] [sd_task/INFO]   - kind: sequential computation
420 > [0.000000] [sd_task/INFO]   - amount: 10000000129
421 > [0.000000] [sd_task/INFO]   - Dependencies to satisfy: 3
422 > [0.000000] [sd_task/INFO]   - pre-dependencies:
423 > [0.000000] [sd_task/INFO]     7->end
424 > [0.000000] [sd_task/INFO]     9
425 > [0.000000] [sd_task/INFO]     7
426 > [0.000000] [test/INFO] ------------------- Run the schedule ---------------------------
427 > [20.000866] [test/INFO] ------------------- Produce the trace file---------------------------
428 > [20.000866] [test/INFO] Producing the trace of the run into dag_with_good_schedule.trace
429
430 $ cat ${srcdir:=.}/dag_with_good_schedule.trace
431 > [0.000000->0.000000] C2-05 compute 0.000000 flops # root
432 > [0.000000->2.000000] C2-06 compute 10000000129.452715 flops # 0
433 > [0.000000->2.000000] C2-05 compute 10000000131.133657 flops # 1
434 > [2.000380->4.000380] C2-06 compute 10000000121.124870 flops # 2
435 > [4.000415->6.000415] C2-06 compute 10000000230.608025 flops # 3
436 > [6.000415->8.000415] C2-05 compute 10000000004.994019 flops # 4
437 > [8.000450->10.000450] C2-05 compute 10000000046.016401 flops # 5
438 > [10.000450->12.000450] C2-05 compute 10000000091.598791 flops # 6
439 > [12.000485->14.000485] C2-05 compute 10000000040.679438 flops # 7
440 > [14.000865->16.000866] C2-06 compute 10000000250.490017 flops # 8
441 > [16.000866->18.000866] C2-06 compute 10000000079.267649 flops # 9
442 > [0.000000 -> 0.020123] C2-05 -> C2-05 transfer of 10014000 bytes # root->5
443 > [2.000000 -> 2.000035] C2-06 -> C2-06 transfer of 10001 bytes # 0->2
444 > [2.000000 -> 2.000380] C2-05 -> C2-06 transfer of 10004 bytes # 1->2
445 > [4.000380 -> 4.000415] C2-06 -> C2-06 transfer of 10002 bytes # 2->3
446 > [8.000415 -> 8.000450] C2-05 -> C2-05 transfer of 10029 bytes # 4->5
447 > [12.000450 -> 12.000485] C2-05 -> C2-05 transfer of 10005 bytes # 6->7
448 > [14.000485 -> 14.000865] C2-05 -> C2-06 transfer of 10000 bytes # 7->8
449 > [14.000485 -> 14.020609] C2-05 -> C2-05 transfer of 10014000 bytes # 7->end
450 > [18.000866->20.000866] C2-05 compute 10000000129.452715 flops # end
451
452 $ rm -f ${srcdir:=.}/dag_with_good_schedule.trace
453
454 ! expect return 2
455 $ $SG_TEST_EXENV ./dot_test --log=no_loc ${srcdir:=.}/../2clusters.xml ${srcdir:=.}/dag_with_cycle.dot
456 > [0.000000] [xbt_cfg/INFO] Switching to the L07 model to handle parallel tasks.
457 > [0.000000] [sd_daxparse/WARNING] the task root is not marked
458 > [0.000000] [sd_daxparse/WARNING] the task 0 is in a cycle
459 > [0.000000] [sd_daxparse/WARNING] the task 1 is in a cycle
460 > [0.000000] [sd_daxparse/WARNING] the task 2 is in a cycle
461 > [0.000000] [sd_daxparse/WARNING] the task 3 is in a cycle
462 > [0.000000] [sd_daxparse/WARNING] the task 4 is in a cycle
463 > [0.000000] [sd_daxparse/WARNING] the task 5 is in a cycle
464 > [0.000000] [sd_daxparse/WARNING] the task 6 is in a cycle
465 > [0.000000] [sd_dotparse/ERROR] The DOT described in dag_with_cycle.dot is not a DAG. It contains a cycle.
466 > [0.000000] [test/CRITICAL] No dot loaded. Do you have a cycle in your graph?