fond
Model Checking Contest 2024
14th edition, Geneva, Switzerland, June 25, 2024
Execution of r311-tall-171662336400334
Last Updated
July 7, 2024

About the Execution of GreatSPN+red for RERS2020-PT-pb101

Execution Summary
Max Memory
Used (MB)
Time wait (ms) CPU Usage (ms) I/O Wait (ms) Computed Result Execution
Status
16192.720 3600000.00 4054844.00 8244.40 TF?TF?TTFFF??TF? normal

Execution Chart

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

Trace from the execution

Formatting '/data/fkordon/mcc2024-input.r311-tall-171662336400334.qcow2', fmt=qcow2 size=4294967296 backing_file=/data/fkordon/mcc2024-input.qcow2 backing_fmt=qcow2 cluster_size=65536 lazy_refcounts=off refcount_bits=16
Waiting for the VM to be ready (probing ssh)
.........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
=====================================================================
Generated by BenchKit 2-5568
Executing tool greatspnxred
Input is RERS2020-PT-pb101, examination is ReachabilityCardinality
Time confinement is 3600 seconds
Memory confinement is 16384 MBytes
Number of cores is 4
Run identifier is r311-tall-171662336400334
=====================================================================

--------------------
preparation of the directory to be used:
/home/mcc/execution
total 84M
-rw-r--r-- 1 mcc users 7.2K May 14 13:22 CTLCardinality.txt
-rw-r--r-- 1 mcc users 77K May 14 13:22 CTLCardinality.xml
-rw-r--r-- 1 mcc users 5.1K May 14 13:22 CTLFireability.txt
-rw-r--r-- 1 mcc users 41K May 14 13:22 CTLFireability.xml
-rw-r--r-- 1 mcc users 3.3K May 19 07:13 LTLCardinality.txt
-rw-r--r-- 1 mcc users 24K May 19 16:20 LTLCardinality.xml
-rw-r--r-- 1 mcc users 2.3K May 19 07:28 LTLFireability.txt
-rw-r--r-- 1 mcc users 16K May 19 18:52 LTLFireability.xml
-rw-r--r-- 1 mcc users 11K May 14 13:22 ReachabilityCardinality.txt
-rw-r--r-- 1 mcc users 113K May 14 13:22 ReachabilityCardinality.xml
-rw-r--r-- 1 mcc users 8.3K May 14 13:22 ReachabilityFireability.txt
-rw-r--r-- 1 mcc users 59K May 14 13:22 ReachabilityFireability.xml
-rw-r--r-- 1 mcc users 1.6K Apr 23 07:46 UpperBounds.txt
-rw-r--r-- 1 mcc users 3.7K Apr 23 07:46 UpperBounds.xml
-rw-r--r-- 1 mcc users 6 May 18 16:43 equiv_col
-rw-r--r-- 1 mcc users 6 May 18 16:43 instance
-rw-r--r-- 1 mcc users 6 May 18 16:43 iscolored
-rw-r--r-- 1 mcc users 83M May 18 16:43 model.pnml

--------------------
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 RERS2020-PT-pb101-ReachabilityCardinality-2024-00
FORMULA_NAME RERS2020-PT-pb101-ReachabilityCardinality-2024-01
FORMULA_NAME RERS2020-PT-pb101-ReachabilityCardinality-2024-02
FORMULA_NAME RERS2020-PT-pb101-ReachabilityCardinality-2024-03
FORMULA_NAME RERS2020-PT-pb101-ReachabilityCardinality-2024-04
FORMULA_NAME RERS2020-PT-pb101-ReachabilityCardinality-2024-05
FORMULA_NAME RERS2020-PT-pb101-ReachabilityCardinality-2024-06
FORMULA_NAME RERS2020-PT-pb101-ReachabilityCardinality-2024-07
FORMULA_NAME RERS2020-PT-pb101-ReachabilityCardinality-2024-08
FORMULA_NAME RERS2020-PT-pb101-ReachabilityCardinality-2024-09
FORMULA_NAME RERS2020-PT-pb101-ReachabilityCardinality-2024-10
FORMULA_NAME RERS2020-PT-pb101-ReachabilityCardinality-2024-11
FORMULA_NAME RERS2020-PT-pb101-ReachabilityCardinality-2023-12
FORMULA_NAME RERS2020-PT-pb101-ReachabilityCardinality-2023-13
FORMULA_NAME RERS2020-PT-pb101-ReachabilityCardinality-2023-14
FORMULA_NAME RERS2020-PT-pb101-ReachabilityCardinality-2023-15

=== Now, execution of the tool begins

BK_START 1716723873658

Invoking MCC driver with
BK_TOOL=greatspnxred
BK_EXAMINATION=ReachabilityCardinality
BK_BIN_PATH=/home/mcc/BenchKit/bin/
BK_TIME_CONFINEMENT=3600
BK_INPUT=RERS2020-PT-pb101
BK_MEMORY_CONFINEMENT=16384
Applying reductions before tool greatspn
Invoking reducer
Running Version 202405141337
[2024-05-26 11:44:34] [INFO ] Running its-tools with arguments : [-pnfolder, /home/mcc/execution, -examination, ReachabilityCardinality, -timeout, 360, -rebuildPNML]
[2024-05-26 11:44:34] [INFO ] Parsing pnml file : /home/mcc/execution/model.pnml
[2024-05-26 11:44:37] [INFO ] Load time of PNML (sax parser for PT used): 2426 ms
[2024-05-26 11:44:37] [INFO ] Transformed 906 places.
[2024-05-26 11:44:37] [INFO ] Transformed 149363 transitions.
[2024-05-26 11:44:37] [INFO ] Found NUPN structural information;
[2024-05-26 11:44:37] [INFO ] Parsed PT model containing 906 places and 149363 transitions and 595952 arcs in 2903 ms.
Parsed 16 properties from file /home/mcc/execution/ReachabilityCardinality.xml in 20 ms.
Working with output stream class java.io.PrintStream
Ensure Unique test removed 2798 transitions
Reduce redundant transitions removed 2798 transitions.
FORMULA RERS2020-PT-pb101-ReachabilityCardinality-2024-00 TRUE TECHNIQUES TOPOLOGICAL INITIAL_STATE
FORMULA RERS2020-PT-pb101-ReachabilityCardinality-2023-13 TRUE TECHNIQUES TOPOLOGICAL INITIAL_STATE
RANDOM walk for 40000 steps (8 resets) in 6728 ms. (5 steps per ms) remains 11/14 properties
FORMULA RERS2020-PT-pb101-ReachabilityCardinality-2023-14 FALSE TECHNIQUES TOPOLOGICAL RANDOM_WALK
FORMULA RERS2020-PT-pb101-ReachabilityCardinality-2024-09 FALSE TECHNIQUES TOPOLOGICAL RANDOM_WALK
FORMULA RERS2020-PT-pb101-ReachabilityCardinality-2024-06 TRUE TECHNIQUES TOPOLOGICAL RANDOM_WALK
BEST_FIRST walk for 40003 steps (8 resets) in 964 ms. (41 steps per ms) remains 11/11 properties
BEST_FIRST walk for 40004 steps (8 resets) in 949 ms. (42 steps per ms) remains 11/11 properties
BEST_FIRST walk for 40003 steps (8 resets) in 837 ms. (47 steps per ms) remains 10/11 properties
FORMULA RERS2020-PT-pb101-ReachabilityCardinality-2024-10 FALSE TECHNIQUES TOPOLOGICAL BESTFIRST_WALK
BEST_FIRST walk for 40003 steps (8 resets) in 838 ms. (47 steps per ms) remains 9/10 properties
FORMULA RERS2020-PT-pb101-ReachabilityCardinality-2024-04 FALSE TECHNIQUES TOPOLOGICAL BESTFIRST_WALK
BEST_FIRST walk for 40004 steps (8 resets) in 745 ms. (53 steps per ms) remains 9/9 properties
BEST_FIRST walk for 40003 steps (8 resets) in 788 ms. (50 steps per ms) remains 7/9 properties
FORMULA RERS2020-PT-pb101-ReachabilityCardinality-2024-07 TRUE TECHNIQUES TOPOLOGICAL BESTFIRST_WALK
FORMULA RERS2020-PT-pb101-ReachabilityCardinality-2024-01 FALSE TECHNIQUES TOPOLOGICAL BESTFIRST_WALK
BEST_FIRST walk for 40002 steps (8 resets) in 721 ms. (55 steps per ms) remains 7/7 properties
BEST_FIRST walk for 40004 steps (8 resets) in 983 ms. (40 steps per ms) remains 7/7 properties
BEST_FIRST walk for 40004 steps (8 resets) in 729 ms. (54 steps per ms) remains 7/7 properties
[2024-05-26 11:44:42] [INFO ] Flow matrix only has 113363 transitions (discarded 33202 similar events)
// Phase 1: matrix 113363 rows 906 cols
[2024-05-26 11:44:43] [INFO ] Computed 9 invariants in 795 ms
[2024-05-26 11:44:56] [INFO ] State equation strengthened by 2578 read => feed constraints.
All remaining problems are real, not stopping.
At refinement iteration 0 (INCLUDED_ONLY) 0/81 variables, 81/81 constraints. Problems are: Problem set: 0 solved, 7 unsolved
At refinement iteration 1 (INCLUDED_ONLY) 0/81 variables, 0/81 constraints. Problems are: Problem set: 0 solved, 7 unsolved
At refinement iteration 2 (OVERLAPS) 66/147 variables, 5/86 constraints. Problems are: Problem set: 0 solved, 7 unsolved
At refinement iteration 3 (INCLUDED_ONLY) 0/147 variables, 66/152 constraints. Problems are: Problem set: 0 solved, 7 unsolved
At refinement iteration 4 (INCLUDED_ONLY) 0/147 variables, 0/152 constraints. Problems are: Problem set: 0 solved, 7 unsolved
Problem RERS2020-PT-pb101-ReachabilityCardinality-2024-08 is UNSAT
FORMULA RERS2020-PT-pb101-ReachabilityCardinality-2024-08 FALSE TECHNIQUES SMT_REFINEMENT
At refinement iteration 5 (OVERLAPS) 759/906 variables, 4/156 constraints. Problems are: Problem set: 1 solved, 6 unsolved
At refinement iteration 6 (INCLUDED_ONLY) 0/906 variables, 759/915 constraints. Problems are: Problem set: 1 solved, 6 unsolved
At refinement iteration 7 (INCLUDED_ONLY) 0/906 variables, 0/915 constraints. Problems are: Problem set: 1 solved, 6 unsolved
SMT process timed out in 18908ms, After SMT, problems are : Problem set: 1 solved, 6 unsolved
Skipping Parikh replay, no witness traces provided.
Support contains 66 out of 906 places. Attempting structural reductions.
Starting structural reductions in REACHABILITY mode, iteration 0 : 906/906 places, 146565/146565 transitions.
Ensure Unique test removed 4 places
Drop transitions (Empty/Sink Transition effects.) removed 2098 transitions
Reduce isomorphic transitions removed 2098 transitions.
Iterating post reduction 0 with 2102 rules applied. Total rules applied 2102 place count 902 transition count 144467
Performed 1 Pre agglomeration using Quasi-Persistent + Divergent Free condition..
Pre-agglomeration after 1 with 1 Pre rules applied. Total rules applied 2102 place count 902 transition count 144466
Deduced a syphon composed of 1 places in 126 ms
Reduce places removed 1 places and 0 transitions.
Iterating global reduction 1 with 2 rules applied. Total rules applied 2104 place count 901 transition count 144466
Performed 17 Post agglomeration using F-continuation condition.Transition count delta: 17
Deduced a syphon composed of 17 places in 57 ms
Reduce places removed 17 places and 0 transitions.
Iterating global reduction 1 with 34 rules applied. Total rules applied 2138 place count 884 transition count 144449
Ensure Unique test removed 1160 transitions
Reduce isomorphic transitions removed 1160 transitions.
Iterating post reduction 1 with 1160 rules applied. Total rules applied 3298 place count 884 transition count 143289
Free-agglomeration rule applied 3 times.
Iterating global reduction 2 with 3 rules applied. Total rules applied 3301 place count 884 transition count 143286
Reduce places removed 3 places and 0 transitions.
Iterating post reduction 2 with 3 rules applied. Total rules applied 3304 place count 881 transition count 143286
Free-agglomeration rule (complex) applied 8 times with reduction of 596 identical transitions.
Iterating global reduction 3 with 8 rules applied. Total rules applied 3312 place count 881 transition count 146789
Reduce places removed 8 places and 0 transitions.
Drop transitions (Empty/Sink Transition effects.) removed 24 transitions
Ensure Unique test removed 536 transitions
Reduce isomorphic transitions removed 560 transitions.
Iterating post reduction 3 with 568 rules applied. Total rules applied 3880 place count 873 transition count 146229
Applied a total of 3880 rules in 5801 ms. Remains 873 /906 variables (removed 33) and now considering 146229/146565 (removed 336) transitions.
Finished structural reductions in REACHABILITY mode , in 1 iterations and 5826 ms. Remains : 873/906 places, 146229/146565 transitions.
RANDOM walk for 40000 steps (8 resets) in 6685 ms. (5 steps per ms) remains 6/6 properties
BEST_FIRST walk for 40002 steps (8 resets) in 1058 ms. (37 steps per ms) remains 6/6 properties
BEST_FIRST walk for 40004 steps (8 resets) in 993 ms. (40 steps per ms) remains 5/6 properties
FORMULA RERS2020-PT-pb101-ReachabilityCardinality-2024-03 TRUE TECHNIQUES TOPOLOGICAL BESTFIRST_WALK
BEST_FIRST walk for 40004 steps (8 resets) in 1002 ms. (39 steps per ms) remains 5/5 properties
BEST_FIRST walk for 40003 steps (8 resets) in 972 ms. (41 steps per ms) remains 5/5 properties
BEST_FIRST walk for 40004 steps (8 resets) in 983 ms. (40 steps per ms) remains 5/5 properties
BEST_FIRST walk for 40004 steps (8 resets) in 944 ms. (42 steps per ms) remains 5/5 properties
[2024-05-26 11:45:11] [INFO ] Flow matrix only has 114894 transitions (discarded 31335 similar events)
// Phase 1: matrix 114894 rows 873 cols
[2024-05-26 11:45:12] [INFO ] Computed 5 invariants in 487 ms
[2024-05-26 11:45:23] [INFO ] State equation strengthened by 2602 read => feed constraints.
All remaining problems are real, not stopping.
At refinement iteration 0 (INCLUDED_ONLY) 0/62 variables, 62/62 constraints. Problems are: Problem set: 0 solved, 5 unsolved
At refinement iteration 1 (INCLUDED_ONLY) 0/62 variables, 0/62 constraints. Problems are: Problem set: 0 solved, 5 unsolved
At refinement iteration 2 (OVERLAPS) 811/873 variables, 5/67 constraints. Problems are: Problem set: 0 solved, 5 unsolved
At refinement iteration 3 (INCLUDED_ONLY) 0/873 variables, 811/878 constraints. Problems are: Problem set: 0 solved, 5 unsolved
At refinement iteration 4 (INCLUDED_ONLY) 0/873 variables, 0/878 constraints. Problems are: Problem set: 0 solved, 5 unsolved
At refinement iteration 5 (OVERLAPS) 114894/115767 variables, 873/1751 constraints. Problems are: Problem set: 0 solved, 5 unsolved
SMT process timed out in 57263ms, After SMT, problems are : Problem set: 0 solved, 5 unsolved
Skipping Parikh replay, no witness traces provided.
Support contains 62 out of 873 places. Attempting structural reductions.
Starting structural reductions in REACHABILITY mode, iteration 0 : 873/873 places, 146229/146229 transitions.
Performed 1 Post agglomeration using F-continuation condition.Transition count delta: 1
Deduced a syphon composed of 1 places in 51 ms
Reduce places removed 1 places and 0 transitions.
Iterating global reduction 0 with 2 rules applied. Total rules applied 2 place count 872 transition count 146228
Ensure Unique test removed 1 transitions
Reduce isomorphic transitions removed 1 transitions.
Iterating post reduction 0 with 1 rules applied. Total rules applied 3 place count 872 transition count 146227
Applied a total of 3 rules in 1607 ms. Remains 872 /873 variables (removed 1) and now considering 146227/146229 (removed 2) transitions.
Finished structural reductions in REACHABILITY mode , in 1 iterations and 1607 ms. Remains : 872/873 places, 146227/146229 transitions.
RANDOM walk for 40000 steps (8 resets) in 4777 ms. (8 steps per ms) remains 5/5 properties
BEST_FIRST walk for 40002 steps (8 resets) in 861 ms. (46 steps per ms) remains 5/5 properties
BEST_FIRST walk for 40004 steps (8 resets) in 604 ms. (66 steps per ms) remains 5/5 properties
BEST_FIRST walk for 40004 steps (8 resets) in 1037 ms. (38 steps per ms) remains 5/5 properties
BEST_FIRST walk for 40004 steps (8 resets) in 1352 ms. (29 steps per ms) remains 5/5 properties
BEST_FIRST walk for 40002 steps (8 resets) in 578 ms. (69 steps per ms) remains 5/5 properties
Interrupted probabilistic random walk after 8325 steps, run timeout after 6005 ms. (steps per millisecond=1 ) properties seen :0 out of 5
Probabilistic random walk after 8325 steps, saw 3259 distinct states, run finished after 6010 ms. (steps per millisecond=1 ) properties seen :0
[2024-05-26 11:46:19] [INFO ] Flow matrix only has 114892 transitions (discarded 31335 similar events)
// Phase 1: matrix 114892 rows 872 cols
[2024-05-26 11:46:19] [INFO ] Computed 5 invariants in 476 ms
[2024-05-26 11:46:31] [INFO ] State equation strengthened by 2602 read => feed constraints.
All remaining problems are real, not stopping.
At refinement iteration 0 (INCLUDED_ONLY) 0/62 variables, 62/62 constraints. Problems are: Problem set: 0 solved, 5 unsolved
At refinement iteration 1 (INCLUDED_ONLY) 0/62 variables, 0/62 constraints. Problems are: Problem set: 0 solved, 5 unsolved
At refinement iteration 2 (OVERLAPS) 810/872 variables, 5/67 constraints. Problems are: Problem set: 0 solved, 5 unsolved
At refinement iteration 3 (INCLUDED_ONLY) 0/872 variables, 810/877 constraints. Problems are: Problem set: 0 solved, 5 unsolved
At refinement iteration 4 (INCLUDED_ONLY) 0/872 variables, 0/877 constraints. Problems are: Problem set: 0 solved, 5 unsolved
At refinement iteration 5 (OVERLAPS) 114892/115764 variables, 872/1749 constraints. Problems are: Problem set: 0 solved, 5 unsolved
SMT process timed out in 87284ms, After SMT, problems are : Problem set: 0 solved, 5 unsolved
Skipping Parikh replay, no witness traces provided.
Support contains 62 out of 872 places. Attempting structural reductions.
Starting structural reductions in REACHABILITY mode, iteration 0 : 872/872 places, 146227/146227 transitions.
Applied a total of 0 rules in 888 ms. Remains 872 /872 variables (removed 0) and now considering 146227/146227 (removed 0) transitions.
Finished structural reductions in REACHABILITY mode , in 1 iterations and 888 ms. Remains : 872/872 places, 146227/146227 transitions.
Starting structural reductions in REACHABILITY mode, iteration 0 : 872/872 places, 146227/146227 transitions.
Applied a total of 0 rules in 882 ms. Remains 872 /872 variables (removed 0) and now considering 146227/146227 (removed 0) transitions.
[2024-05-26 11:47:48] [INFO ] Flow matrix only has 114892 transitions (discarded 31335 similar events)
[2024-05-26 11:47:48] [INFO ] Invariant cache hit.
[2024-05-26 11:48:03] [INFO ] Implicit Places using invariants in 14853 ms returned []
Implicit Place search using SMT only with invariants took 14864 ms to find 0 implicit places.
Running 146224 sub problems to find dead transitions.
[2024-05-26 11:48:04] [INFO ] Flow matrix only has 114892 transitions (discarded 31335 similar events)
[2024-05-26 11:48:04] [INFO ] Invariant cache hit.
[2024-05-26 11:48:16] [INFO ] State equation strengthened by 2602 read => feed constraints.
----------------------------------------------------------------------
GreatSPN-meddly tool, MCC 2023
----------------------------------------------------------------------

Running RERS2020-PT-pb101

IS_COLORED=
IS_NUPN=1

LOADING model.pnml ...

BK_TIME_CONFINEMENT_REACHED

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

+ ulimit -s 65536
+ [[ -z '' ]]
+ export LTSMIN_MEM_SIZE=8589934592
+ LTSMIN_MEM_SIZE=8589934592
+ export PYTHONPATH=/home/mcc/BenchKit/itstools/pylibs
+ PYTHONPATH=/home/mcc/BenchKit/itstools/pylibs
+ export LD_LIBRARY_PATH=/home/mcc/BenchKit/itstools/pylibs:
+ LD_LIBRARY_PATH=/home/mcc/BenchKit/itstools/pylibs:
++ sed s/.jar//
++ ls /home/mcc/BenchKit/bin//../reducer/bin//../../itstools//itstools/plugins/fr.lip6.move.gal.application.pnmcc_1.0.0.202405141337.jar
++ perl -pe 's/.*\.//g'
+ VERSION=202405141337
+ echo 'Running Version 202405141337'
+ /home/mcc/BenchKit/bin//../reducer/bin//../../itstools//itstools/its-tools -pnfolder /home/mcc/execution -examination ReachabilityCardinality -timeout 360 -rebuildPNML

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="RERS2020-PT-pb101"
export BK_EXAMINATION="ReachabilityCardinality"
export BK_TOOL="greatspnxred"
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-5568"
echo " Executing tool greatspnxred"
echo " Input is RERS2020-PT-pb101, examination is ReachabilityCardinality"
echo " Time confinement is $BK_TIME_CONFINEMENT seconds"
echo " Memory confinement is 16384 MBytes"
echo " Number of cores is 4"
echo " Run identifier is r311-tall-171662336400334"
echo "====================================================================="
echo
echo "--------------------"
echo "preparation of the directory to be used:"

tar xzf /home/mcc/BenchKit/INPUTS/RERS2020-PT-pb101.tgz
mv RERS2020-PT-pb101 execution
cd execution
if [ "ReachabilityCardinality" = "ReachabilityDeadlock" ] || [ "ReachabilityCardinality" = "UpperBounds" ] || [ "ReachabilityCardinality" = "QuasiLiveness" ] || [ "ReachabilityCardinality" = "StableMarking" ] || [ "ReachabilityCardinality" = "Liveness" ] || [ "ReachabilityCardinality" = "OneSafe" ] || [ "ReachabilityCardinality" = "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 [ "ReachabilityCardinality" = "UpperBounds" ] ; then
echo "The expected result is a vector of positive values"
echo NUM_VECTOR
elif [ "ReachabilityCardinality" != "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 "ReachabilityCardinality.txt" ] ; then
echo "here is the order used to build the result vector(from text file)"
for x in $(grep Property ReachabilityCardinality.txt | cut -d ' ' -f 2 | sort -u) ; do
echo "FORMULA_NAME $x"
done
elif [ -f "ReachabilityCardinality.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 '' ReachabilityCardinality.xml | cut -d '>' -f 2 | cut -d '<' -f 1 | sort -u) ; do
echo "FORMULA_NAME $x"
done
elif [ "ReachabilityCardinality" = "ReachabilityDeadlock" ] || [ "ReachabilityCardinality" = "QuasiLiveness" ] || [ "ReachabilityCardinality" = "StableMarking" ] || [ "ReachabilityCardinality" = "Liveness" ] || [ "ReachabilityCardinality" = "OneSafe" ] ; then
echo "FORMULA_NAME ReachabilityCardinality"
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 ;