Problems running UC2 via theodolite.py
When executing Theodolite (UC2) an error (OverflowError: integer division result too large for a float
) might occur.
This error is found with the following command:
python3.7 theodolite.py --uc 2 --loads 2000 --instances 2
Error message:
Start workload generator
use uc2 stuff
Traceback (most recent call last):
File "theodolite.py", line 119, in <module>
args.reset, args.namespace, args.path)
File "theodolite.py", line 110, in main
executor.execute()
File "/home/benedikt/Dokumente/Master-3-WiSe-2021/project-2/spesb/execution/strategies/experiment_execution.py", line 6, in execute
self.config.domain_restriction_strategy.execute(self.config)
File "/home/benedikt/Dokumente/Master-3-WiSe-2021/project-2/spesb/execution/strategies/strategies/domain_restriction/no_lower_bound_strategy.py", line 10, in execute
subexperiment_counter=subexperiment_counter)
File "/home/benedikt/Dokumente/Master-3-WiSe-2021/project-2/spesb/execution/strategies/strategies/search/check_all_strategy.py", line 17, in execute
config.subexperiment_executor.execute(subexperiment_config)
File "/home/benedikt/Dokumente/Master-3-WiSe-2021/project-2/spesb/execution/strategies/subexperiment_execution/subexperiment_executor.py", line 20, in execute
result_path=subexperiment_config.result_path)
File "/home/benedikt/Dokumente/Master-3-WiSe-2021/project-2/spesb/execution/run_uc.py", line 507, in main
wg = start_workload_generator(wg, dim_value, uc_id)
File "/home/benedikt/Dokumente/Master-3-WiSe-2021/project-2/spesb/execution/run_uc.py", line 130, in start_workload_generator
((approx_num_sensors + wl_max_records - 1) / wl_max_records)
OverflowError: integer division result too large for a float
Reset cluster
A possible solution could be found here: How to manage division of huge numbers in Python?