Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
improve chiller example. remove on_power_change signal. add get_time_to_goal_temp
[simgrid.git] / examples / cpp / chiller-simple / s4u-chiller-simple.tesh
1 #!/usr/bin/env tesh
2
3 $ ${bindir:=.}/s4u-chiller-simple ${platfdir}/energy_platform.xml
4 > [MyHost1:manager:(1) 0.000000] [chiller_simple/INFO] Chiller: Power: 0.00W T_in: 23.00°C Energy consumed: 0.00J
5 > [MyHost1:manager:(1) 821.566667] [chiller_simple/INFO] The input temperature is now equal to the goal temperature. After this point the Chiller will compensate heat with electrical power.
6 > [MyHost1:manager:(1) 821.566667] [chiller_simple/INFO] Chiller: Power: 0.00W T_in: 24.00°C Energy consumed: 0.00J
7 > [MyHost1:manager:(1) 822.566667] [chiller_simple/INFO] Chiller: Power: 400.00W T_in: 24.00°C Energy consumed: 400.00J
8 > [MyHost1:manager:(1) 822.566667] [chiller_simple/INFO] Let's compute something.
9 > [MyHost1:manager:(1) 922.566667] [chiller_simple/INFO] Computation done.
10 > [MyHost1:manager:(1) 922.566667] [chiller_simple/INFO] Chiller: Power: 426.67W T_in: 24.00°C Energy consumed: 43066.67J
11 > [MyHost1:manager:(1) 922.566667] [chiller_simple/INFO] Now let's stress the chiller by decreasing the goal temperature to 23°C.
12 > [MyHost1:manager:(1) 923.566667] [chiller_simple/INFO] Chiller: Power: 1000.00W T_in: 24.00°C Energy consumed: 44066.67J
13 > [MyHost1:manager:(1) 1470.277778] [chiller_simple/INFO] The input temperature is back to the goal temperature.
14 > [MyHost1:manager:(1) 1470.277778] [chiller_simple/INFO] Chiller: Power: 1000.00W T_in: 23.00°C Energy consumed: 590777.78J
15 > [MyHost1:manager:(1) 1471.277778] [chiller_simple/INFO] Chiller: Power: 400.00W T_in: 23.00°C Energy consumed: 591177.78J
16 > [1471.277778] [host_energy/INFO] Total energy consumption: 443383.333333 Joules (used hosts: 149127.777778 Joules; unused/idle hosts: 294255.555556)
17 > [1471.277778] [host_energy/INFO] Energy consumption of host MyHost1: 149127.777778 Joules
18 > [1471.277778] [host_energy/INFO] Energy consumption of host MyHost2: 147127.777778 Joules
19 > [1471.277778] [host_energy/INFO] Energy consumption of host MyHost3: 147127.777778 Joules