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

About the Execution of Smart+red for Szymanski-PT-a10

Execution Summary
Max Memory
Used (MB)
Time wait (ms) CPU Usage (ms) I/O Wait (ms) Computed Result Execution
Status
334.052 5887.00 10320.00 402.70 10 10 10 0 10 10 0 10 10 10 10 10 0 10 10 10 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.r491-tall-167912710500437.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 smartxred
Input is Szymanski-PT-a10, examination is UpperBounds
Time confinement is 3600 seconds
Memory confinement is 16384 MBytes
Number of cores is 4
Run identifier is r491-tall-167912710500437
=====================================================================

--------------------
preparation of the directory to be used:
/home/mcc/execution
total 532K
-rw-r--r-- 1 mcc users 5.7K Feb 26 17:00 CTLCardinality.txt
-rw-r--r-- 1 mcc users 62K Feb 26 17:00 CTLCardinality.xml
-rw-r--r-- 1 mcc users 5.8K Feb 26 16:59 CTLFireability.txt
-rw-r--r-- 1 mcc users 55K Feb 26 16:59 CTLFireability.xml
-rw-r--r-- 1 mcc users 3.4K Feb 25 17:18 LTLCardinality.txt
-rw-r--r-- 1 mcc users 24K Feb 25 17:18 LTLCardinality.xml
-rw-r--r-- 1 mcc users 2.1K Feb 25 17:18 LTLFireability.txt
-rw-r--r-- 1 mcc users 15K Feb 25 17:18 LTLFireability.xml
-rw-r--r-- 1 mcc users 9.3K Feb 26 17:02 ReachabilityCardinality.txt
-rw-r--r-- 1 mcc users 97K Feb 26 17:02 ReachabilityCardinality.xml
-rw-r--r-- 1 mcc users 11K Feb 26 17:01 ReachabilityFireability.txt
-rw-r--r-- 1 mcc users 98K Feb 26 17:01 ReachabilityFireability.xml
-rw-r--r-- 1 mcc users 1.6K Feb 25 17:18 UpperBounds.txt
-rw-r--r-- 1 mcc users 3.6K Feb 25 17:18 UpperBounds.xml
-rw-r--r-- 1 mcc users 6 Mar 5 18:23 equiv_col
-rw-r--r-- 1 mcc users 4 Mar 5 18:23 instance
-rw-r--r-- 1 mcc users 6 Mar 5 18:23 iscolored
-rw-r--r-- 1 mcc users 101K Mar 5 18:23 model.pnml

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

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

The expected result is a vector of positive values
NUM_VECTOR

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

=== Now, execution of the tool begins

BK_START 1679251075712

bash -c /home/mcc/BenchKit/BenchKit_head.sh 2> STDERR ; echo ; echo -n "BK_STOP " ; date -u +%s%3N
Invoking MCC driver with
BK_TOOL=smartxred
BK_EXAMINATION=UpperBounds
BK_BIN_PATH=/home/mcc/BenchKit/bin/
BK_TIME_CONFINEMENT=3600
BK_INPUT=Szymanski-PT-a10
Applying reductions before tool smart
Invoking reducer
Running Version 202303021504
[2023-03-19 18:37:57] [INFO ] Running its-tools with arguments : [-pnfolder, /home/mcc/execution, -examination, UpperBounds, -timeout, 360, -rebuildPNML]
[2023-03-19 18:37:57] [INFO ] Parsing pnml file : /home/mcc/execution/model.pnml
[2023-03-19 18:37:57] [INFO ] Load time of PNML (sax parser for PT used): 55 ms
[2023-03-19 18:37:57] [INFO ] Transformed 61 places.
[2023-03-19 18:37:57] [INFO ] Transformed 224 transitions.
[2023-03-19 18:37:57] [INFO ] Parsed PT model containing 61 places and 224 transitions and 900 arcs in 124 ms.
Parsed 16 properties from file /home/mcc/execution/UpperBounds.xml in 6 ms.
Deduced a syphon composed of 12 places in 1 ms
Reduce places removed 12 places and 8 transitions.
FORMULA Szymanski-PT-a10-UpperBounds-03 0 TECHNIQUES TOPOLOGICAL INITIAL_STATE
FORMULA Szymanski-PT-a10-UpperBounds-06 0 TECHNIQUES TOPOLOGICAL INITIAL_STATE
FORMULA Szymanski-PT-a10-UpperBounds-12 0 TECHNIQUES TOPOLOGICAL INITIAL_STATE
Normalized transition count is 79 out of 216 initially.
// Phase 1: matrix 79 rows 49 cols
[2023-03-19 18:37:57] [INFO ] Computed 3 place invariants in 19 ms
Incomplete random walk after 10000 steps, including 14 resets, run finished after 26 ms. (steps per millisecond=384 ) properties (out of 13) seen :123
FORMULA Szymanski-PT-a10-UpperBounds-13 10 TECHNIQUES TOPOLOGICAL RANDOM_WALK
FORMULA Szymanski-PT-a10-UpperBounds-10 10 TECHNIQUES TOPOLOGICAL RANDOM_WALK
Incomplete Best-First random walk after 10001 steps, including 2 resets, run finished after 18 ms. (steps per millisecond=555 ) properties (out of 11) seen :40
Incomplete Best-First random walk after 10001 steps, including 2 resets, run finished after 11 ms. (steps per millisecond=909 ) properties (out of 11) seen :20
Incomplete Best-First random walk after 10001 steps, including 2 resets, run finished after 11 ms. (steps per millisecond=909 ) properties (out of 11) seen :24
Incomplete Best-First random walk after 10001 steps, including 4 resets, run finished after 9 ms. (steps per millisecond=1111 ) properties (out of 11) seen :32
Incomplete Best-First random walk after 10001 steps, including 4 resets, run finished after 9 ms. (steps per millisecond=1111 ) properties (out of 11) seen :32
Incomplete Best-First random walk after 10001 steps, including 3 resets, run finished after 9 ms. (steps per millisecond=1111 ) properties (out of 11) seen :37
Incomplete Best-First random walk after 10001 steps, including 2 resets, run finished after 9 ms. (steps per millisecond=1111 ) properties (out of 11) seen :30
Incomplete Best-First random walk after 10001 steps, including 2 resets, run finished after 13 ms. (steps per millisecond=769 ) properties (out of 11) seen :37
Incomplete Best-First random walk after 10001 steps, including 2 resets, run finished after 7 ms. (steps per millisecond=1428 ) properties (out of 11) seen :33
Incomplete Best-First random walk after 10001 steps, including 2 resets, run finished after 6 ms. (steps per millisecond=1666 ) properties (out of 11) seen :29
Incomplete Best-First random walk after 10001 steps, including 2 resets, run finished after 7 ms. (steps per millisecond=1428 ) properties (out of 11) seen :28
[2023-03-19 18:37:57] [INFO ] Flow matrix only has 79 transitions (discarded 137 similar events)
// Phase 1: matrix 79 rows 49 cols
[2023-03-19 18:37:57] [INFO ] Computed 3 place invariants in 2 ms
[2023-03-19 18:37:58] [INFO ] [Real]Absence check using 2 positive place invariants in 5 ms returned sat
[2023-03-19 18:37:58] [INFO ] [Real]Absence check using 2 positive and 1 generalized place invariants in 1 ms returned sat
[2023-03-19 18:37:58] [INFO ] [Real]Adding state equation constraints to refine reachable states.
[2023-03-19 18:37:58] [INFO ] [Real]Absence check using state equation in 35 ms returned sat
[2023-03-19 18:37:58] [INFO ] Solution in real domain found non-integer solution.
[2023-03-19 18:37:58] [INFO ] [Nat]Absence check using 2 positive place invariants in 1 ms returned sat
[2023-03-19 18:37:58] [INFO ] [Nat]Absence check using 2 positive and 1 generalized place invariants in 0 ms returned sat
[2023-03-19 18:37:58] [INFO ] [Nat]Adding state equation constraints to refine reachable states.
[2023-03-19 18:37:58] [INFO ] [Nat]Absence check using state equation in 34 ms returned sat
[2023-03-19 18:37:58] [INFO ] State equation strengthened by 9 read => feed constraints.
[2023-03-19 18:37:58] [INFO ] [Nat]Added 9 Read/Feed constraints in 2 ms returned sat
[2023-03-19 18:37:58] [INFO ] Deduced a trap composed of 8 places in 48 ms of which 3 ms to minimize.
[2023-03-19 18:37:58] [INFO ] Deduced a trap composed of 7 places in 43 ms of which 1 ms to minimize.
[2023-03-19 18:37:58] [INFO ] Deduced a trap composed of 7 places in 43 ms of which 1 ms to minimize.
[2023-03-19 18:37:58] [INFO ] Deduced a trap composed of 6 places in 39 ms of which 1 ms to minimize.
[2023-03-19 18:37:58] [INFO ] Trap strengthening procedure managed to obtain unsat after adding 4 trap constraints in 199 ms
[2023-03-19 18:37:58] [INFO ] [Real]Absence check using 2 positive place invariants in 1 ms returned sat
[2023-03-19 18:37:58] [INFO ] [Real]Absence check using 2 positive and 1 generalized place invariants in 1 ms returned sat
[2023-03-19 18:37:58] [INFO ] [Real]Adding state equation constraints to refine reachable states.
[2023-03-19 18:37:58] [INFO ] [Real]Absence check using state equation in 17 ms returned unsat
[2023-03-19 18:37:58] [INFO ] [Real]Absence check using 2 positive place invariants in 2 ms returned sat
[2023-03-19 18:37:58] [INFO ] [Real]Absence check using 2 positive and 1 generalized place invariants in 5 ms returned sat
[2023-03-19 18:37:58] [INFO ] [Real]Adding state equation constraints to refine reachable states.
[2023-03-19 18:37:58] [INFO ] [Real]Absence check using state equation in 27 ms returned unsat
[2023-03-19 18:37:58] [INFO ] [Real]Absence check using 2 positive place invariants in 1 ms returned sat
[2023-03-19 18:37:58] [INFO ] [Real]Absence check using 2 positive and 1 generalized place invariants in 0 ms returned sat
[2023-03-19 18:37:58] [INFO ] [Real]Adding state equation constraints to refine reachable states.
[2023-03-19 18:37:58] [INFO ] [Real]Absence check using state equation in 20 ms returned unsat
[2023-03-19 18:37:58] [INFO ] [Real]Absence check using 2 positive place invariants in 1 ms returned sat
[2023-03-19 18:37:58] [INFO ] [Real]Absence check using 2 positive and 1 generalized place invariants in 0 ms returned sat
[2023-03-19 18:37:58] [INFO ] [Real]Adding state equation constraints to refine reachable states.
[2023-03-19 18:37:58] [INFO ] [Real]Absence check using state equation in 15 ms returned unsat
[2023-03-19 18:37:58] [INFO ] [Real]Absence check using 2 positive place invariants in 1 ms returned sat
[2023-03-19 18:37:58] [INFO ] [Real]Absence check using 2 positive and 1 generalized place invariants in 1 ms returned sat
[2023-03-19 18:37:58] [INFO ] [Real]Adding state equation constraints to refine reachable states.
[2023-03-19 18:37:58] [INFO ] [Real]Absence check using state equation in 17 ms returned sat
[2023-03-19 18:37:58] [INFO ] [Real]Added 9 Read/Feed constraints in 7 ms returned sat
[2023-03-19 18:37:58] [INFO ] Solution in real domain found non-integer solution.
[2023-03-19 18:37:58] [INFO ] [Nat]Absence check using 2 positive place invariants in 1 ms returned sat
[2023-03-19 18:37:58] [INFO ] [Nat]Absence check using 2 positive and 1 generalized place invariants in 1 ms returned sat
[2023-03-19 18:37:58] [INFO ] [Nat]Adding state equation constraints to refine reachable states.
[2023-03-19 18:37:58] [INFO ] [Nat]Absence check using state equation in 15 ms returned sat
[2023-03-19 18:37:58] [INFO ] [Nat]Added 9 Read/Feed constraints in 2 ms returned sat
[2023-03-19 18:37:58] [INFO ] Deduced a trap composed of 6 places in 57 ms of which 1 ms to minimize.
[2023-03-19 18:37:58] [INFO ] Trap strengthening (SAT) tested/added 2/1 trap constraints in 67 ms
[2023-03-19 18:37:58] [INFO ] Computed and/alt/rep : 21/107/21 causal constraints (skipped 56 transitions) in 12 ms.
[2023-03-19 18:37:58] [INFO ] Deduced a trap composed of 7 places in 33 ms of which 0 ms to minimize.
[2023-03-19 18:37:58] [INFO ] Trap strengthening (SAT) tested/added 2/1 trap constraints in 43 ms
[2023-03-19 18:37:58] [INFO ] Added : 8 causal constraints over 2 iterations in 76 ms. Result :sat
Minimization took 12 ms.
[2023-03-19 18:37:58] [INFO ] [Real]Absence check using 2 positive place invariants in 1 ms returned sat
[2023-03-19 18:37:58] [INFO ] [Real]Absence check using 2 positive and 1 generalized place invariants in 1 ms returned sat
[2023-03-19 18:37:58] [INFO ] [Real]Adding state equation constraints to refine reachable states.
[2023-03-19 18:37:58] [INFO ] [Real]Absence check using state equation in 17 ms returned unsat
[2023-03-19 18:37:58] [INFO ] [Real]Absence check using 2 positive place invariants in 1 ms returned sat
[2023-03-19 18:37:58] [INFO ] [Real]Absence check using 2 positive and 1 generalized place invariants in 1 ms returned sat
[2023-03-19 18:37:58] [INFO ] [Real]Adding state equation constraints to refine reachable states.
[2023-03-19 18:37:58] [INFO ] [Real]Absence check using state equation in 17 ms returned sat
[2023-03-19 18:37:58] [INFO ] Solution in real domain found non-integer solution.
[2023-03-19 18:37:59] [INFO ] [Nat]Absence check using 2 positive place invariants in 1 ms returned sat
[2023-03-19 18:37:59] [INFO ] [Nat]Absence check using 2 positive and 1 generalized place invariants in 2 ms returned sat
[2023-03-19 18:37:59] [INFO ] [Nat]Adding state equation constraints to refine reachable states.
[2023-03-19 18:37:59] [INFO ] [Nat]Absence check using state equation in 19 ms returned sat
[2023-03-19 18:37:59] [INFO ] [Nat]Added 9 Read/Feed constraints in 15 ms returned sat
[2023-03-19 18:37:59] [INFO ] Deduced a trap composed of 8 places in 39 ms of which 0 ms to minimize.
[2023-03-19 18:37:59] [INFO ] Deduced a trap composed of 6 places in 39 ms of which 1 ms to minimize.
[2023-03-19 18:37:59] [INFO ] Trap strengthening procedure managed to obtain unsat after adding 2 trap constraints in 86 ms
[2023-03-19 18:37:59] [INFO ] [Real]Absence check using 2 positive place invariants in 1 ms returned sat
[2023-03-19 18:37:59] [INFO ] [Real]Absence check using 2 positive and 1 generalized place invariants in 2 ms returned sat
[2023-03-19 18:37:59] [INFO ] [Real]Adding state equation constraints to refine reachable states.
[2023-03-19 18:37:59] [INFO ] [Real]Absence check using state equation in 16 ms returned unsat
[2023-03-19 18:37:59] [INFO ] [Real]Absence check using 2 positive place invariants in 2 ms returned sat
[2023-03-19 18:37:59] [INFO ] [Real]Absence check using 2 positive and 1 generalized place invariants in 1 ms returned sat
[2023-03-19 18:37:59] [INFO ] [Real]Adding state equation constraints to refine reachable states.
[2023-03-19 18:37:59] [INFO ] [Real]Absence check using state equation in 17 ms returned unsat
[2023-03-19 18:37:59] [INFO ] [Real]Absence check using 2 positive place invariants in 1 ms returned sat
[2023-03-19 18:37:59] [INFO ] [Real]Absence check using 2 positive and 1 generalized place invariants in 1 ms returned sat
[2023-03-19 18:37:59] [INFO ] [Real]Adding state equation constraints to refine reachable states.
[2023-03-19 18:37:59] [INFO ] [Real]Absence check using state equation in 19 ms returned unsat
Current structural bounds on expressions (after SMT) : [10, 10, 10, 10, 10, 21, 10, 10, 10, 10, 10] Max seen :[10, 10, 10, 10, 10, 8, 10, 10, 10, 10, 10]
FORMULA Szymanski-PT-a10-UpperBounds-15 10 TECHNIQUES TOPOLOGICAL SAT_SMT RANDOM_WALK
FORMULA Szymanski-PT-a10-UpperBounds-14 10 TECHNIQUES TOPOLOGICAL SAT_SMT RANDOM_WALK
FORMULA Szymanski-PT-a10-UpperBounds-11 10 TECHNIQUES TOPOLOGICAL SAT_SMT RANDOM_WALK
FORMULA Szymanski-PT-a10-UpperBounds-09 10 TECHNIQUES TOPOLOGICAL SAT_SMT RANDOM_WALK
FORMULA Szymanski-PT-a10-UpperBounds-08 10 TECHNIQUES TOPOLOGICAL SAT_SMT RANDOM_WALK
FORMULA Szymanski-PT-a10-UpperBounds-05 10 TECHNIQUES TOPOLOGICAL SAT_SMT RANDOM_WALK
FORMULA Szymanski-PT-a10-UpperBounds-04 10 TECHNIQUES TOPOLOGICAL SAT_SMT RANDOM_WALK
FORMULA Szymanski-PT-a10-UpperBounds-02 10 TECHNIQUES TOPOLOGICAL SAT_SMT RANDOM_WALK
FORMULA Szymanski-PT-a10-UpperBounds-01 10 TECHNIQUES TOPOLOGICAL SAT_SMT RANDOM_WALK
FORMULA Szymanski-PT-a10-UpperBounds-00 10 TECHNIQUES TOPOLOGICAL SAT_SMT RANDOM_WALK
Support contains 1 out of 49 places. Attempting structural reductions.
Starting structural reductions in REACHABILITY mode, iteration 0 : 49/49 places, 216/216 transitions.
Graph (complete) has 251 edges and 49 vertex of which 47 are kept as prefixes of interest. Removing 2 places using SCC suffix rule.4 ms
Discarding 2 places :
Also discarding 0 output transitions
Drop transitions removed 4 transitions
Reduce isomorphic transitions removed 4 transitions.
Iterating post reduction 0 with 4 rules applied. Total rules applied 5 place count 47 transition count 212
Discarding 5 places :
Symmetric choice reduction at 1 with 5 rule applications. Total rules 10 place count 42 transition count 192
Iterating global reduction 1 with 5 rules applied. Total rules applied 15 place count 42 transition count 192
Drop transitions removed 16 transitions
Redundant transition composition rules discarded 16 transitions
Iterating global reduction 1 with 16 rules applied. Total rules applied 31 place count 42 transition count 176
Discarding 2 places :
Symmetric choice reduction at 1 with 2 rule applications. Total rules 33 place count 40 transition count 168
Iterating global reduction 1 with 2 rules applied. Total rules applied 35 place count 40 transition count 168
Applied a total of 35 rules in 57 ms. Remains 40 /49 variables (removed 9) and now considering 168/216 (removed 48) transitions.
Finished structural reductions in REACHABILITY mode , in 1 iterations and 57 ms. Remains : 40/49 places, 168/216 transitions.
Normalized transition count is 64 out of 168 initially.
// Phase 1: matrix 64 rows 40 cols
[2023-03-19 18:37:59] [INFO ] Computed 3 place invariants in 1 ms
Incomplete random walk after 1000009 steps, including 2 resets, run finished after 419 ms. (steps per millisecond=2386 ) properties (out of 1) seen :10
Incomplete Best-First random walk after 1000001 steps, including 2 resets, run finished after 427 ms. (steps per millisecond=2341 ) properties (out of 1) seen :9
[2023-03-19 18:38:00] [INFO ] Flow matrix only has 64 transitions (discarded 104 similar events)
// Phase 1: matrix 64 rows 40 cols
[2023-03-19 18:38:00] [INFO ] Computed 3 place invariants in 4 ms
[2023-03-19 18:38:00] [INFO ] [Real]Absence check using 3 positive place invariants in 1 ms returned sat
[2023-03-19 18:38:00] [INFO ] [Real]Adding state equation constraints to refine reachable states.
[2023-03-19 18:38:00] [INFO ] [Real]Absence check using state equation in 24 ms returned sat
[2023-03-19 18:38:00] [INFO ] Solution in real domain found non-integer solution.
[2023-03-19 18:38:00] [INFO ] [Nat]Absence check using 3 positive place invariants in 1 ms returned sat
[2023-03-19 18:38:00] [INFO ] [Nat]Adding state equation constraints to refine reachable states.
[2023-03-19 18:38:00] [INFO ] [Nat]Absence check using state equation in 17 ms returned sat
[2023-03-19 18:38:00] [INFO ] State equation strengthened by 9 read => feed constraints.
[2023-03-19 18:38:00] [INFO ] [Nat]Added 9 Read/Feed constraints in 4 ms returned sat
[2023-03-19 18:38:00] [INFO ] Deduced a trap composed of 7 places in 34 ms of which 1 ms to minimize.
[2023-03-19 18:38:00] [INFO ] Deduced a trap composed of 5 places in 41 ms of which 0 ms to minimize.
[2023-03-19 18:38:00] [INFO ] Trap strengthening procedure managed to obtain unsat after adding 2 trap constraints in 83 ms
Current structural bounds on expressions (after SMT) : [10] Max seen :[10]
FORMULA Szymanski-PT-a10-UpperBounds-07 10 TECHNIQUES TOPOLOGICAL SAT_SMT RANDOM_WALK
All properties solved without resorting to model-checking.
Total runtime 2872 ms.
ITS solved all properties within timeout

BK_STOP 1679251081599

--------------------
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//
++ perl -pe 's/.*\.//g'
++ ls /home/mcc/BenchKit/bin//../reducer/bin//../../itstools//itstools/plugins/fr.lip6.move.gal.application.pnmcc_1.0.0.202303021504.jar
+ VERSION=202303021504
+ echo 'Running Version 202303021504'
+ /home/mcc/BenchKit/bin//../reducer/bin//../../itstools//itstools/its-tools -pnfolder /home/mcc/execution -examination UpperBounds -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="Szymanski-PT-a10"
export BK_EXAMINATION="UpperBounds"
export BK_TOOL="smartxred"
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 smartxred"
echo " Input is Szymanski-PT-a10, examination is UpperBounds"
echo " Time confinement is $BK_TIME_CONFINEMENT seconds"
echo " Memory confinement is 16384 MBytes"
echo " Number of cores is 4"
echo " Run identifier is r491-tall-167912710500437"
echo "====================================================================="
echo
echo "--------------------"
echo "preparation of the directory to be used:"

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