Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Python: Add platform-failures example, and extend Py to make it work
[simgrid.git] / examples / python / platform-failures / platform-failures.tesh
1 #!/usr/bin/env tesh
2
3 p Testing a simple master/workers example application handling failures
4
5 ! output sort 19
6 $ ${pythoncmd:=python3} ${PYTHON_TOOL_OPTIONS:=} ${bindir:=.}/platform-failures.py ${platfdir}/small_platform_failures.xml ${srcdir:=.}/platform-failures_d.xml --log=xbt_cfg.thres:critical --log=no_loc --cfg=path:${srcdir} --cfg=network/crosstraffic:0 "--log=root.fmt:[%10.6r]%e(%i:%a@%h)%e%m%n" --log=res_cpu.t:verbose
7 > [  0.000000] (0:maestro@) Cannot launch actor 'worker' on failed host 'Fafard'
8 > [  0.000000] (0:maestro@) Deployment includes some initially turned off Hosts ... nevermind.
9 > [  0.000000] (1:master@Tremblay) Got 5 workers and 20 tasks to process
10 > [  0.000000] (1:master@Tremblay) Send a message to worker-0
11 > [  0.000000] (7:sleeper@Lilibeth) Start sleeping...
12 > [  0.010309] (1:master@Tremblay) Send to worker-0 completed
13 > [  0.010309] (2:worker@Tremblay) Start execution...
14 > [  0.000000] (2:worker@Tremblay) Waiting a message on worker-0
15 > [  0.000000] (3:worker@Jupiter) Waiting a message on worker-1
16 > [  0.000000] (5:worker@Ginette) Waiting a message on worker-3
17 > [  0.000000] (6:worker@Bourassa) Waiting a message on worker-4
18 > [  0.010309] (1:master@Tremblay) Send a message to worker-1
19 > [  1.000000] (0:maestro@) Restart actors on host Fafard
20 > [  1.000000] (8:worker@Fafard) Waiting a message on worker-2
21 > [  1.000000] (1:master@Tremblay) Mmh. The communication with 'worker-1' failed. Nevermind. Let's keep going!
22 > [  1.000000] (1:master@Tremblay) Send a message to worker-2
23 > [  2.000000] (1:master@Tremblay) Mmh. The communication with 'worker-2' failed. Nevermind. Let's keep going!
24 > [  2.000000] (0:maestro@) Restart actors on host Jupiter
25 > [  2.000000] (1:master@Tremblay) Send a message to worker-3
26 > [  2.000000] (9:worker@Jupiter) Waiting a message on worker-1
27 > [  2.010309] (2:worker@Tremblay) Execution complete.
28 > [  2.010309] (2:worker@Tremblay) Waiting a message on worker-0
29 > [  3.030928] (1:master@Tremblay) Send to worker-3 completed
30 > [  3.030928] (1:master@Tremblay) Send a message to worker-4
31 > [  3.030928] (5:worker@Ginette) Start execution...
32 > [  4.061856] (1:master@Tremblay) Send to worker-4 completed
33 > [  4.061856] (1:master@Tremblay) Send a message to worker-0
34 > [  4.061856] (6:worker@Bourassa) Start execution...
35 > [  4.072165] (1:master@Tremblay) Send to worker-0 completed
36 > [  4.072165] (1:master@Tremblay) Send a message to worker-1
37 > [  4.072165] (2:worker@Tremblay) Start execution...
38 > [  5.000000] (0:maestro@) Restart actors on host Lilibeth
39 > [  5.000000] (10:sleeper@Lilibeth) Start sleeping...
40 > [  5.030928] (5:worker@Ginette) Execution complete.
41 > [  5.030928] (5:worker@Ginette) Waiting a message on worker-3
42 > [  5.103093] (1:master@Tremblay) Send to worker-1 completed
43 > [  5.103093] (1:master@Tremblay) Send a message to worker-2
44 > [  5.103093] (9:worker@Jupiter) Start execution...
45 > [  6.000000] (10:sleeper@Lilibeth) done sleeping.
46 > [  6.061856] (6:worker@Bourassa) Execution complete.
47 > [  6.061856] (6:worker@Bourassa) Waiting a message on worker-4
48 > [  6.072165] (2:worker@Tremblay) Execution complete.
49 > [  6.072165] (2:worker@Tremblay) Waiting a message on worker-0
50 > [  7.103093] (9:worker@Jupiter) Execution complete.
51 > [  7.103093] (9:worker@Jupiter) Waiting a message on worker-1
52 > [ 15.103093] (1:master@Tremblay) Mmh. Got timeouted while speaking to 'worker-2'. Nevermind. Let's keep going!
53 > [ 15.103093] (1:master@Tremblay) Send a message to worker-3
54 > [ 15.103093] (1:master@Tremblay) Mmh. The communication with 'worker-3' failed. Nevermind. Let's keep going!
55 > [ 15.103093] (1:master@Tremblay) Send a message to worker-4
56 > [ 15.103093] (5:worker@Ginette) Mmh. Something went wrong. Nevermind. Let's keep going!
57 > [ 15.103093] (5:worker@Ginette) Waiting a message on worker-3
58 > [ 16.134021] (1:master@Tremblay) Send to worker-4 completed
59 > [ 16.134021] (1:master@Tremblay) Send a message to worker-0
60 > [ 16.134021] (6:worker@Bourassa) Start execution...
61 > [ 16.144330] (1:master@Tremblay) Send to worker-0 completed
62 > [ 16.144330] (1:master@Tremblay) Send a message to worker-1
63 > [ 16.144330] (2:worker@Tremblay) Start execution...
64 > [ 17.175258] (1:master@Tremblay) Send to worker-1 completed
65 > [ 17.175258] (1:master@Tremblay) Send a message to worker-2
66 > [ 17.175258] (9:worker@Jupiter) Start execution...
67 > [ 18.134021] (6:worker@Bourassa) Execution complete.
68 > [ 18.134021] (6:worker@Bourassa) Waiting a message on worker-4
69 > [ 18.144330] (2:worker@Tremblay) Execution complete.
70 > [ 18.144330] (2:worker@Tremblay) Waiting a message on worker-0
71 > [ 19.175258] (9:worker@Jupiter) Execution complete.
72 > [ 19.175258] (9:worker@Jupiter) Waiting a message on worker-1
73 > [ 20.000000] (0:maestro@) Restart actors on host Lilibeth
74 > [ 20.000000] (11:sleeper@Lilibeth) Start sleeping...
75 > [ 21.000000] (11:sleeper@Lilibeth) done sleeping.
76 > [ 27.175258] (1:master@Tremblay) Mmh. Got timeouted while speaking to 'worker-2'. Nevermind. Let's keep going!
77 > [ 27.175258] (1:master@Tremblay) Send a message to worker-3
78 > [ 28.206186] (1:master@Tremblay) Send to worker-3 completed
79 > [ 28.206186] (1:master@Tremblay) Send a message to worker-4
80 > [ 28.206186] (1:master@Tremblay) Mmh. The communication with 'worker-4' failed. Nevermind. Let's keep going!
81 > [ 28.206186] (1:master@Tremblay) Send a message to worker-0
82 > [ 28.206186] (5:worker@Ginette) Start execution...
83 > [ 28.206186] (6:worker@Bourassa) Mmh. Something went wrong. Nevermind. Let's keep going!
84 > [ 28.206186] (6:worker@Bourassa) Waiting a message on worker-4
85 > [ 28.216495] (1:master@Tremblay) Send to worker-0 completed
86 > [ 28.216495] (1:master@Tremblay) Send a message to worker-1
87 > [ 28.216495] (2:worker@Tremblay) Start execution...
88 > [ 29.247423] (1:master@Tremblay) Send to worker-1 completed
89 > [ 29.247423] (1:master@Tremblay) Send a message to worker-2
90 > [ 29.247423] (9:worker@Jupiter) Start execution...
91 > [ 30.206186] (5:worker@Ginette) Execution complete.
92 > [ 30.206186] (5:worker@Ginette) Waiting a message on worker-3
93 > [ 30.216495] (2:worker@Tremblay) Execution complete.
94 > [ 30.216495] (2:worker@Tremblay) Waiting a message on worker-0
95 > [ 31.247423] (9:worker@Jupiter) Execution complete.
96 > [ 31.247423] (9:worker@Jupiter) Waiting a message on worker-1
97 > [ 35.000000] (0:maestro@) Restart actors on host Lilibeth
98 > [ 35.000000] (12:sleeper@Lilibeth) Start sleeping...
99 > [ 36.000000] (12:sleeper@Lilibeth) done sleeping.
100 > [ 39.247423] (1:master@Tremblay) Mmh. Got timeouted while speaking to 'worker-2'. Nevermind. Let's keep going!
101 > [ 39.247423] (1:master@Tremblay) Send a message to worker-3
102 > [ 40.278351] (1:master@Tremblay) Send to worker-3 completed
103 > [ 40.278351] (1:master@Tremblay) Send a message to worker-4
104 > [ 40.278351] (5:worker@Ginette) Start execution...
105 > [ 41.309278] (1:master@Tremblay) Send to worker-4 completed
106 > [ 41.309278] (1:master@Tremblay) All tasks have been dispatched. Let's tell everybody the computation is over.
107 > [ 41.309278] (2:worker@Tremblay) I'm done. See you!
108 > [ 41.309278] (6:worker@Bourassa) Start execution...
109 > [ 41.309278] (9:worker@Jupiter) I'm done. See you!
110 > [ 42.309278] (1:master@Tremblay) Mmh. Got timeouted while speaking to 'worker-2'. Nevermind. Let's keep going!
111 > [ 43.309278] (0:maestro@) Simulation time 43.3093
112 > [ 43.309278] (1:master@Tremblay) Mmh. Got timeouted while speaking to 'worker-3'. Nevermind. Let's keep going!
113 > [ 43.309278] (1:master@Tremblay) Goodbye now!
114 > [ 43.309278] (6:worker@Bourassa) Execution complete.
115 > [ 43.309278] (6:worker@Bourassa) Waiting a message on worker-4
116 > [ 43.309278] (6:worker@Bourassa) I'm done. See you!