fond
Model Checking Contest 2023
13th edition, Paris, France, April 26, 2023 (at TOOLympics II)
Execution of r510-tall-167912735100777
Last Updated
May 14, 2023

About the Execution of 2022-gold for UtilityControlRoom-COL-Z4T3N08

Execution Summary
Max Memory
Used (MB)
Time wait (ms) CPU Usage (ms) I/O Wait (ms) Computed Result Execution
Status
16223.703 3593265.00 6827956.00 5587.40 FTTTTTFFFF?TTFTF normal

Execution Chart

We display below the execution chart for this examination (boot time has been removed).

Trace from the execution

Formatting '/data/fkordon/mcc2023-input.r510-tall-167912735100777.qcow2', fmt=qcow2 size=4294967296 backing_file=/data/fkordon/mcc2023-input.qcow2 cluster_size=65536 lazy_refcounts=off refcount_bits=16
Waiting for the VM to be ready (probing ssh)
...............................................................................
=====================================================================
Generated by BenchKit 2-5348
Executing tool gold2022
Input is UtilityControlRoom-COL-Z4T3N08, examination is LTLCardinality
Time confinement is 3600 seconds
Memory confinement is 16384 MBytes
Number of cores is 4
Run identifier is r510-tall-167912735100777
=====================================================================

--------------------
preparation of the directory to be used:
/home/mcc/execution
total 472K
-rw-r--r-- 1 mcc users 9.1K Feb 26 14:32 CTLCardinality.txt
-rw-r--r-- 1 mcc users 87K Feb 26 14:32 CTLCardinality.xml
-rw-r--r-- 1 mcc users 7.9K Feb 26 14:28 CTLFireability.txt
-rw-r--r-- 1 mcc users 66K Feb 26 14:28 CTLFireability.xml
-rw-r--r-- 1 mcc users 5 Mar 5 18:23 equiv_pt
-rw-r--r-- 1 mcc users 8 Mar 5 18:23 instance
-rw-r--r-- 1 mcc users 5 Mar 5 18:23 iscolored
-rw-r--r-- 1 mcc users 4.5K Feb 25 17:25 LTLCardinality.txt
-rw-r--r-- 1 mcc users 27K Feb 25 17:25 LTLCardinality.xml
-rw-r--r-- 1 mcc users 2.9K Feb 25 17:25 LTLFireability.txt
-rw-r--r-- 1 mcc users 19K Feb 25 17:25 LTLFireability.xml
-rw-r--r-- 1 mcc users 29K Mar 5 18:23 model.pnml
-rw-r--r-- 1 mcc users 8.2K Feb 26 14:40 ReachabilityCardinality.txt
-rw-r--r-- 1 mcc users 64K Feb 26 14:40 ReachabilityCardinality.xml
-rw-r--r-- 1 mcc users 13K Feb 26 14:38 ReachabilityFireability.txt
-rw-r--r-- 1 mcc users 92K Feb 26 14:38 ReachabilityFireability.xml
-rw-r--r-- 1 mcc users 1.9K Feb 25 17:25 UpperBounds.txt
-rw-r--r-- 1 mcc users 4.0K Feb 25 17:25 UpperBounds.xml

--------------------
content from stdout:

=== Data for post analysis generated by BenchKit (invocation template)

The expected result is a vector of booleans
BOOL_VECTOR

here is the order used to build the result vector(from text file)
FORMULA_NAME UtilityControlRoom-COL-Z4T3N08-LTLCardinality-00
FORMULA_NAME UtilityControlRoom-COL-Z4T3N08-LTLCardinality-01
FORMULA_NAME UtilityControlRoom-COL-Z4T3N08-LTLCardinality-02
FORMULA_NAME UtilityControlRoom-COL-Z4T3N08-LTLCardinality-03
FORMULA_NAME UtilityControlRoom-COL-Z4T3N08-LTLCardinality-04
FORMULA_NAME UtilityControlRoom-COL-Z4T3N08-LTLCardinality-05
FORMULA_NAME UtilityControlRoom-COL-Z4T3N08-LTLCardinality-06
FORMULA_NAME UtilityControlRoom-COL-Z4T3N08-LTLCardinality-07
FORMULA_NAME UtilityControlRoom-COL-Z4T3N08-LTLCardinality-08
FORMULA_NAME UtilityControlRoom-COL-Z4T3N08-LTLCardinality-09
FORMULA_NAME UtilityControlRoom-COL-Z4T3N08-LTLCardinality-10
FORMULA_NAME UtilityControlRoom-COL-Z4T3N08-LTLCardinality-11
FORMULA_NAME UtilityControlRoom-COL-Z4T3N08-LTLCardinality-12
FORMULA_NAME UtilityControlRoom-COL-Z4T3N08-LTLCardinality-13
FORMULA_NAME UtilityControlRoom-COL-Z4T3N08-LTLCardinality-14
FORMULA_NAME UtilityControlRoom-COL-Z4T3N08-LTLCardinality-15

=== Now, execution of the tool begins

BK_START 1679437888178

gold2022
Got BK_BIN_PATH=/home/mcc/BenchKit/bin/
---> gold2022 --- TAPAAL v5
Setting MODEL_PATH=.
Setting VERIFYPN=/home/mcc/BenchKit/bin/verifypn
Got BK_TIME_CONFINEMENT=3600
Setting TEMPDIR=/home/mcc/BenchKit/bin/tmp
Got BK_MEMORY_CONFINEMENT=16384
Limiting to 16265216 kB
Total timeout: 3590
Time left: 3590

*************************************
* TAPAAL verifying LTLCardinality *
*************************************
TEMPDIR=/home/mcc/BenchKit/bin/tmp
QF=/home/mcc/BenchKit/bin/tmp/tmp.U7dd5EAzam
MF=/home/mcc/BenchKit/bin/tmp/tmp.NmV9lWEAf0
Time left: 3590
---------------------------------------------------
Step -1: Stripping Colors
---------------------------------------------------
Verifying stripped models (16 in total)
/home/mcc/BenchKit/bin/verifypn -n -c -q 718 -ltl -l 29 -d 299 -z 4 -x 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16 ./model.pnml ./LTLCardinality.xml
Warning: CPN OverApproximation is only available for Reachability queries without deadlock, negated fireability and UpperBounds, skipping UtilityControlRoom-COL-Z4T3N08-LTLCardinality-15
Warning: CPN OverApproximation is only available for Reachability queries without deadlock, negated fireability and UpperBounds, skipping UtilityControlRoom-COL-Z4T3N08-LTLCardinality-14
Warning: CPN OverApproximation is only available for Reachability queries without deadlock, negated fireability and UpperBounds, skipping UtilityControlRoom-COL-Z4T3N08-LTLCardinality-13
Warning: CPN OverApproximation is only available for Reachability queries without deadlock, negated fireability and UpperBounds, skipping UtilityControlRoom-COL-Z4T3N08-LTLCardinality-12
Warning: CPN OverApproximation is only available for Reachability queries without deadlock, negated fireability and UpperBounds, skipping UtilityControlRoom-COL-Z4T3N08-LTLCardinality-11
Warning: CPN OverApproximation is only available for Reachability queries without deadlock, negated fireability and UpperBounds, skipping UtilityControlRoom-COL-Z4T3N08-LTLCardinality-10
Warning: CPN OverApproximation is only available for Reachability queries without deadlock, negated fireability and UpperBounds, skipping UtilityControlRoom-COL-Z4T3N08-LTLCardinality-09
Warning: CPN OverApproximation is only available for Reachability queries without deadlock, negated fireability and UpperBounds, skipping UtilityControlRoom-COL-Z4T3N08-LTLCardinality-08
Warning: CPN OverApproximation is only available for Reachability queries without deadlock, negated fireability and UpperBounds, skipping UtilityControlRoom-COL-Z4T3N08-LTLCardinality-07
Warning: CPN OverApproximation is only available for Reachability queries without deadlock, negated fireability and UpperBounds, skipping UtilityControlRoom-COL-Z4T3N08-LTLCardinality-06
Warning: CPN OverApproximation is only available for Reachability queries without deadlock, negated fireability and UpperBounds, skipping UtilityControlRoom-COL-Z4T3N08-LTLCardinality-05
Warning: CPN OverApproximation is only available for Reachability queries without deadlock, negated fireability and UpperBounds, skipping UtilityControlRoom-COL-Z4T3N08-LTLCardinality-04
Warning: CPN OverApproximation is only available for Reachability queries without deadlock, negated fireability and UpperBounds, skipping UtilityControlRoom-COL-Z4T3N08-LTLCardinality-03
Warning: CPN OverApproximation is only available for Reachability queries without deadlock, negated fireability and UpperBounds, skipping UtilityControlRoom-COL-Z4T3N08-LTLCardinality-02
Warning: CPN OverApproximation is only available for Reachability queries without deadlock, negated fireability and UpperBounds, skipping UtilityControlRoom-COL-Z4T3N08-LTLCardinality-01
Warning: CPN OverApproximation is only available for Reachability queries without deadlock, negated fireability and UpperBounds, skipping UtilityControlRoom-COL-Z4T3N08-LTLCardinality-00
WARNING: Could not run CPN over-approximation on any queries, terminating.
Time left: 3590
---------------------------------------------------
Step 0: Parallel Simplification
---------------------------------------------------
Doing parallel simplification (16 in total)
Total simplification timout is 718 -- reduction timeout is 299
timeout 1017 /home/mcc/BenchKit/bin/verifypn -n -ltl -q 718 -l 29 -d 299 -z 4 -s OverApprox --binary-query-io 2 --write-simplified /home/mcc/BenchKit/bin/tmp/tmp.U7dd5EAzam --write-reduced /home/mcc/BenchKit/bin/tmp/tmp.NmV9lWEAf0 -x 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16 ./model.pnml ./LTLCardinality.xml
FORMULA UtilityControlRoom-COL-Z4T3N08-LTLCardinality-01 TRUE TECHNIQUES COLLATERAL_PROCESSING STRUCTURAL_REDUCTION QUERY_REDUCTION SAT_SMT LP_APPROX UNFOLDING_TO_PT
Query index 1 was solved

Query is satisfied.

FORMULA UtilityControlRoom-COL-Z4T3N08-LTLCardinality-04 TRUE TECHNIQUES COLLATERAL_PROCESSING STRUCTURAL_REDUCTION QUERY_REDUCTION SAT_SMT LP_APPROX UNFOLDING_TO_PT
Query index 4 was solved

Query is satisfied.

FORMULA UtilityControlRoom-COL-Z4T3N08-LTLCardinality-05 TRUE TECHNIQUES COLLATERAL_PROCESSING STRUCTURAL_REDUCTION QUERY_REDUCTION SAT_SMT LP_APPROX UNFOLDING_TO_PT
Query index 5 was solved

Query is satisfied.

FORMULA UtilityControlRoom-COL-Z4T3N08-LTLCardinality-06 FALSE TECHNIQUES COLLATERAL_PROCESSING STRUCTURAL_REDUCTION QUERY_REDUCTION SAT_SMT LP_APPROX UNFOLDING_TO_PT
Query index 6 was solved

Query is NOT satisfied.

FORMULA UtilityControlRoom-COL-Z4T3N08-LTLCardinality-11 TRUE TECHNIQUES COLLATERAL_PROCESSING STRUCTURAL_REDUCTION QUERY_REDUCTION SAT_SMT LP_APPROX UNFOLDING_TO_PT
Query index 11 was solved

Query is satisfied.

FORMULA UtilityControlRoom-COL-Z4T3N08-LTLCardinality-14 TRUE TECHNIQUES COLLATERAL_PROCESSING STRUCTURAL_REDUCTION QUERY_REDUCTION SAT_SMT LP_APPROX UNFOLDING_TO_PT
Query index 14 was solved

Query is satisfied.

FORMULA UtilityControlRoom-COL-Z4T3N08-LTLCardinality-15 FALSE TECHNIQUES COLLATERAL_PROCESSING STRUCTURAL_REDUCTION QUERY_REDUCTION SAT_SMT LP_APPROX UNFOLDING_TO_PT
Query index 15 was solved

Query is NOT satisfied.
Solution found by parallel simplification (step 0)
Solution found by parallel simplification (step 0)
Solution found by parallel simplification (step 0)
Solution found by parallel simplification (step 0)
Solution found by parallel simplification (step 0)
Solution found by parallel simplification (step 0)
Solution found by parallel simplification (step 0)
Time left: 3590

---------------------------------------------------
Step 1: Parallel processing
---------------------------------------------------
Doing parallel verification of individual queries (9 in total)
Each query is verified by 4 parallel strategies for 299 seconds
------------------- QUERY 1 ----------------------
Solution found by parallel processing (step 1)

Query index 0 was solved
Query is NOT satisfied.
Spent 0.066422 on verification
@@@0.08,149432@@@
parallel: This job succeeded:
eval /usr/bin/time -f "@@@%e,%M@@@" /home/mcc/BenchKit/bin/verifypn -n -ltl\ tarjan\ --ltl-heur\ dist\ -q\ 0\ -l\ 0\ -d\ 119 /home/mcc/BenchKit/bin/tmp/tmp.NmV9lWEAf0 /home/mcc/BenchKit/bin/tmp/tmp.U7dd5EAzam --binary-query-io 1 -x 1 -n

FORMULA UtilityControlRoom-COL-Z4T3N08-LTLCardinality-09 FALSE TECHNIQUES EXPLICIT TARJAN WEAK_SKIP STUBBORN AUT_STUB HEURISTIC DIST_HEUR OPTIM-1
Time left: 3590
------------------- QUERY 2 ----------------------
Solution found by parallel processing (step 1)

Query index 0 was solved
Query is NOT satisfied.
Spent 0.022872 on verification
FORMULA UtilityControlRoom-COL-Z4T3N08-LTLCardinality-07 FALSE TECHNIQUES EXPLICIT TARJAN WEAK_SKIP STUBBORN AUT_STUB HEURISTIC DIST_HEUR OPTIM-1

Query index 0 was solved
Query is NOT satisfied.
Spent 0.049298 on verification
@@@0.04,21792@@@
parallel: This job succeeded:
eval /usr/bin/time -f "@@@%e,%M@@@" /home/mcc/BenchKit/bin/verifypn -n -ltl\ ndfs\ -q\ 0\ -l\ 0\ -d\ 119 /home/mcc/BenchKit/bin/tmp/tmp.NmV9lWEAf0 /home/mcc/BenchKit/bin/tmp/tmp.U7dd5EAzam --binary-query-io 1 -x 2 -n

FORMULA UtilityControlRoom-COL-Z4T3N08-LTLCardinality-07 FALSE TECHNIQUES EXPLICIT NDFS WEAK_SKIP HEURISTIC AUTOMATON_HEUR OPTIM-1
Time left: 3589
------------------- QUERY 3 ----------------------
Solution found by parallel processing (step 1)

Query index 0 was solved
Query is satisfied.
Spent 0.052514 on verification
@@@0.06,149176@@@
FORMULA UtilityControlRoom-COL-Z4T3N08-LTLCardinality-02 TRUE TECHNIQUES EXPLICIT TARJAN WEAK_SKIP STUBBORN AUT_STUB HEURISTIC LOGFIRECOUNT_HEUR(5000) OPTIM-1

Query index 0 was solved
Query is satisfied.
Spent 0.051754 on verification
@@@0.06,149280@@@
parallel: This job succeeded:
eval /usr/bin/time -f "@@@%e,%M@@@" /home/mcc/BenchKit/bin/verifypn -n -ltl\ tarjan\ --ltl-heur\ dist\ -q\ 0\ -l\ 0\ -d\ 119 /home/mcc/BenchKit/bin/tmp/tmp.NmV9lWEAf0 /home/mcc/BenchKit/bin/tmp/tmp.U7dd5EAzam --binary-query-io 1 -x 3 -n
parallel: This job succeeded:
eval /usr/bin/time -f "@@@%e,%M@@@" /home/mcc/BenchKit/bin/verifypn -n -ltl\ tarjan\ --ltl-heur\ fire-count\ -q\ 0\ -l\ 0\ -d\ 119 /home/mcc/BenchKit/bin/tmp/tmp.NmV9lWEAf0 /home/mcc/BenchKit/bin/tmp/tmp.U7dd5EAzam --binary-query-io 1 -x 3 -n

FORMULA UtilityControlRoom-COL-Z4T3N08-LTLCardinality-02 TRUE TECHNIQUES EXPLICIT TARJAN WEAK_SKIP STUBBORN AUT_STUB HEURISTIC DIST_HEUR OPTIM-1
Time left: 3589
------------------- QUERY 4 ----------------------
Solution found by parallel processing (step 1)

Query index 0 was solved
Query is NOT satisfied.
Spent 0.031019 on verification
@@@0.04,23012@@@
parallel: This job succeeded:
eval /usr/bin/time -f "@@@%e,%M@@@" /home/mcc/BenchKit/bin/verifypn -n -ltl\ ndfs\ -q\ 0\ -l\ 0\ -d\ 119 /home/mcc/BenchKit/bin/tmp/tmp.NmV9lWEAf0 /home/mcc/BenchKit/bin/tmp/tmp.U7dd5EAzam --binary-query-io 1 -x 4 -n

FORMULA UtilityControlRoom-COL-Z4T3N08-LTLCardinality-13 FALSE TECHNIQUES EXPLICIT NDFS WEAK_SKIP HEURISTIC AUTOMATON_HEUR OPTIM-1
Time left: 3589
------------------- QUERY 5 ----------------------
Solution found by parallel processing (step 1)

Query index 0 was solved
Query is NOT satisfied.
Spent 0.025251 on verification
@@@0.03,21844@@@
parallel: This job succeeded:
eval /usr/bin/time -f "@@@%e,%M@@@" /home/mcc/BenchKit/bin/verifypn -n -ltl\ ndfs\ -q\ 0\ -l\ 0\ -d\ 119 /home/mcc/BenchKit/bin/tmp/tmp.NmV9lWEAf0 /home/mcc/BenchKit/bin/tmp/tmp.U7dd5EAzam --binary-query-io 1 -x 5 -n

FORMULA UtilityControlRoom-COL-Z4T3N08-LTLCardinality-00 FALSE TECHNIQUES EXPLICIT NDFS WEAK_SKIP HEURISTIC AUTOMATON_HEUR OPTIM-1
Time left: 3589
------------------- QUERY 6 ----------------------
Solution found by parallel processing (step 1)

Query index 0 was solved
Query is satisfied.
Spent 0.016863 on verification
@@@0.03,21992@@@
FORMULA UtilityControlRoom-COL-Z4T3N08-LTLCardinality-03 TRUE TECHNIQUES EXPLICIT TARJAN WEAK_SKIP STUBBORN AUT_STUB HEURISTIC DIST_HEUR OPTIM-1

Query index 0 was solved
Query is satisfied.
Spent 0.053756 on verification
@@@0.07,149632@@@
parallel: This job succeeded:
eval /usr/bin/time -f "@@@%e,%M@@@" /home/mcc/BenchKit/bin/verifypn -n -ltl\ ndfs\ -q\ 0\ -l\ 0\ -d\ 119 /home/mcc/BenchKit/bin/tmp/tmp.NmV9lWEAf0 /home/mcc/BenchKit/bin/tmp/tmp.U7dd5EAzam --binary-query-io 1 -x 6 -n

FORMULA UtilityControlRoom-COL-Z4T3N08-LTLCardinality-03 TRUE TECHNIQUES EXPLICIT NDFS WEAK_SKIP HEURISTIC AUTOMATON_HEUR OPTIM-1
Time left: 3588
------------------- QUERY 7 ----------------------
No solution found



Time left: 3287
------------------- QUERY 8 ----------------------
Solution found by parallel processing (step 1)

Query index 0 was solved
Query is NOT satisfied.
Spent 0.061772 on verification
@@@0.08,151008@@@
parallel: This job succeeded:
eval /usr/bin/time -f "@@@%e,%M@@@" /home/mcc/BenchKit/bin/verifypn -n -ltl\ tarjan\ --ltl-heur\ fire-count\ -q\ 0\ -l\ 0\ -d\ 119 /home/mcc/BenchKit/bin/tmp/tmp.NmV9lWEAf0 /home/mcc/BenchKit/bin/tmp/tmp.U7dd5EAzam --binary-query-io 1 -x 8 -n

FORMULA UtilityControlRoom-COL-Z4T3N08-LTLCardinality-08 FALSE TECHNIQUES EXPLICIT TARJAN WEAK_SKIP STUBBORN AUT_STUB HEURISTIC LOGFIRECOUNT_HEUR(5000) OPTIM-1
Time left: 3286
------------------- QUERY 9 ----------------------
Solution found by parallel processing (step 1)

Query index 0 was solved
Query is satisfied.
Spent 0.019534 on verification
@@@0.03,23876@@@
parallel: This job succeeded:
eval /usr/bin/time -f "@@@%e,%M@@@" /home/mcc/BenchKit/bin/verifypn -n -ltl\ ndfs\ -q\ 0\ -l\ 0\ -d\ 119 /home/mcc/BenchKit/bin/tmp/tmp.NmV9lWEAf0 /home/mcc/BenchKit/bin/tmp/tmp.U7dd5EAzam --binary-query-io 1 -x 9 -n

FORMULA UtilityControlRoom-COL-Z4T3N08-LTLCardinality-12 TRUE TECHNIQUES EXPLICIT NDFS WEAK_SKIP HEURISTIC AUTOMATON_HEUR OPTIM-1
Time left: 3286
---------------------------------------------------
Step 2: Sequential processing
---------------------------------------------------
Remaining 1 queries are verified sequentially.
Each query is verified for a dynamic timeout (at least 512 seconds)
Time left: 3286
------------------- QUERY 7 ----------------------
Running query 7 for 3286 seconds. Remaining: 1 queries and 3286 seconds
No solution found
terminate called after throwing an instance of 'std::bad_alloc'
what(): std::bad_alloc
Command terminated by signal 6
@@@1556.55,15620720@@@


Time left: 1729
Time left: 1729
---------------------------------------------------
Step 4: Random Parallel processing
---------------------------------------------------
Doing random parallel verification of individual queries (1 in total)
Each query is verified by 4 parallel strategies for 1729 seconds
------------------- QUERY 7 ----------------------
No solution found
Command terminated by signal 9
@@@133.81,4330644@@@
Command terminated by signal 9
@@@184.44,5501132@@@
Command terminated by signal 9
@@@240.12,9032660@@@
terminate called after throwing an instance of 'std::bad_alloc'
what(): std::bad_alloc
Command terminated by signal 6
@@@500.85,15719324@@@


Time left: 1228
Time left: 1228
---------------------------------------------------
Step 4: Random Parallel processing
---------------------------------------------------
Doing random parallel verification of individual queries (1 in total)
Each query is verified by 4 parallel strategies for 1228 seconds
------------------- QUERY 7 ----------------------
No solution found
Command terminated by signal 9
@@@127.41,4330104@@@
Command terminated by signal 9
@@@185.28,5654000@@@
Command terminated by signal 9
@@@243.07,8918708@@@
terminate called after throwing an instance of 'std::bad_alloc'
what(): std::bad_alloc
Command terminated by signal 6
@@@505.09,15717964@@@


Time left: 723
Time left: 723
---------------------------------------------------
Step 4: Random Parallel processing
---------------------------------------------------
Doing random parallel verification of individual queries (1 in total)
Each query is verified by 4 parallel strategies for 723 seconds
------------------- QUERY 7 ----------------------
No solution found
Command terminated by signal 9
@@@162.12,4329460@@@
Command terminated by signal 9
@@@223.59,5427692@@@
Command terminated by signal 9
@@@279.95,8440616@@@
terminate called after throwing an instance of 'std::bad_alloc'
what(): std::bad_alloc
Command terminated by signal 6
@@@547.14,15719964@@@


Time left: 175
Time left: 175
---------------------------------------------------
Step 4: Random Parallel processing
---------------------------------------------------
Doing random parallel verification of individual queries (1 in total)
Each query is verified by 4 parallel strategies for 175 seconds
------------------- QUERY 7 ----------------------
No solution found



Time left: -3
Out of time, terminating!
terminated-with-cleanup

BK_STOP 1679441481443

--------------------
content from stderr:

Sequence of Actions to be Executed by the VM

This is useful if one wants to reexecute the tool in the VM from the submitted image disk.

set -x
# this is for BenchKit: configuration of major elements for the test
export BK_INPUT="UtilityControlRoom-COL-Z4T3N08"
export BK_EXAMINATION="LTLCardinality"
export BK_TOOL="gold2022"
export BK_RESULT_DIR="/tmp/BK_RESULTS/OUTPUTS"
export BK_TIME_CONFINEMENT="3600"
export BK_MEMORY_CONFINEMENT="16384"
export BK_BIN_PATH="/home/mcc/BenchKit/bin/"

# this is specific to your benchmark or test

export BIN_DIR="$HOME/BenchKit/bin"

# remove the execution directoty if it exists (to avoid increse of .vmdk images)
if [ -d execution ] ; then
rm -rf execution
fi

# this is for BenchKit: explicit launching of the test
echo "====================================================================="
echo " Generated by BenchKit 2-5348"
echo " Executing tool gold2022"
echo " Input is UtilityControlRoom-COL-Z4T3N08, examination is LTLCardinality"
echo " Time confinement is $BK_TIME_CONFINEMENT seconds"
echo " Memory confinement is 16384 MBytes"
echo " Number of cores is 4"
echo " Run identifier is r510-tall-167912735100777"
echo "====================================================================="
echo
echo "--------------------"
echo "preparation of the directory to be used:"

tar xzf /home/mcc/BenchKit/INPUTS/UtilityControlRoom-COL-Z4T3N08.tgz
mv UtilityControlRoom-COL-Z4T3N08 execution
cd execution
if [ "LTLCardinality" = "ReachabilityDeadlock" ] || [ "LTLCardinality" = "UpperBounds" ] || [ "LTLCardinality" = "QuasiLiveness" ] || [ "LTLCardinality" = "StableMarking" ] || [ "LTLCardinality" = "Liveness" ] || [ "LTLCardinality" = "OneSafe" ] || [ "LTLCardinality" = "StateSpace" ]; then
rm -f GenericPropertiesVerdict.xml
fi
pwd
ls -lh

echo
echo "--------------------"
echo "content from stdout:"
echo
echo "=== Data for post analysis generated by BenchKit (invocation template)"
echo
if [ "LTLCardinality" = "UpperBounds" ] ; then
echo "The expected result is a vector of positive values"
echo NUM_VECTOR
elif [ "LTLCardinality" != "StateSpace" ] ; then
echo "The expected result is a vector of booleans"
echo BOOL_VECTOR
else
echo "no data necessary for post analysis"
fi
echo
if [ -f "LTLCardinality.txt" ] ; then
echo "here is the order used to build the result vector(from text file)"
for x in $(grep Property LTLCardinality.txt | cut -d ' ' -f 2 | sort -u) ; do
echo "FORMULA_NAME $x"
done
elif [ -f "LTLCardinality.xml" ] ; then # for cunf (txt files deleted;-)
echo echo "here is the order used to build the result vector(from xml file)"
for x in $(grep '' LTLCardinality.xml | cut -d '>' -f 2 | cut -d '<' -f 1 | sort -u) ; do
echo "FORMULA_NAME $x"
done
elif [ "LTLCardinality" = "ReachabilityDeadlock" ] || [ "LTLCardinality" = "QuasiLiveness" ] || [ "LTLCardinality" = "StableMarking" ] || [ "LTLCardinality" = "Liveness" ] || [ "LTLCardinality" = "OneSafe" ] ; then
echo "FORMULA_NAME LTLCardinality"
fi
echo
echo "=== Now, execution of the tool begins"
echo
echo -n "BK_START "
date -u +%s%3N
echo
timeout -s 9 $BK_TIME_CONFINEMENT bash -c "/home/mcc/BenchKit/BenchKit_head.sh 2> STDERR ; echo ; echo -n \"BK_STOP \" ; date -u +%s%3N"
if [ $? -eq 137 ] ; then
echo
echo "BK_TIME_CONFINEMENT_REACHED"
fi
echo
echo "--------------------"
echo "content from stderr:"
echo
cat STDERR ;