-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexperiment2.sh
More file actions
executable file
·29 lines (26 loc) · 1.06 KB
/
experiment2.sh
File metadata and controls
executable file
·29 lines (26 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/bash
cupaal_postfix="_cupaal_run"
models=(oscillators1 oscillators2 oscillators3)
for model in "${models[@]}"
do
for i in {0..9}
do
curl -s --create-dirs -o "experiments/$model/$model$cupaal_postfix$i.txt" -L "https://raw.githubusercontent.com/AAU-Dat/P10-Thesis/refs/heads/experiments-models/experiments/initial-models/$model$cupaal_postfix$i.txt" &
done
curl -s --create-dirs -o "experiments/$model/observations.txt" -L "https://raw.githubusercontent.com/AAU-Dat/P10-Thesis/refs/heads/experiments-models/experiments/observations/$model""_observations_cupaal.txt" &
done
echo "Downloading experiment files"
wait
for model in "${models[@]}"
do
# start=$EPOCHREALTIME
for i in {0..9}
do
./cmake-build-release/CuPAAL -m "experiments/$model/$model$cupaal_postfix$i.txt" \
-s "experiments/$model/observations.txt" \
-o "experiments/$model/$model$cupaal_postfix$i""_bw.txt" \
-r "experiments/$model/$model$cupaal_postfix$i""_bw_result.csv"
done
# stop=$EPOCHREALTIME
# echo "Time spent on the $model model: $(bc -l <<< "$stop - $start")"
done