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

About the Execution of Smart+red for FlexibleBarrier-PT-08b

Execution Summary
Max Memory
Used (MB)
Time wait (ms) CPU Usage (ms) I/O Wait (ms) Computed Result Execution
Status
362.300 46879.00 83422.00 1039.40 T 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.r185-tall-167838872000302.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 FlexibleBarrier-PT-08b, examination is QuasiLiveness
Time confinement is 1800 seconds
Memory confinement is 16384 MBytes
Number of cores is 4
Run identifier is r185-tall-167838872000302
=====================================================================

--------------------
preparation of the directory to be used:
/home/mcc/execution
total 668K
-rw-r--r-- 1 mcc users 6.5K Feb 25 12:29 CTLCardinality.txt
-rw-r--r-- 1 mcc users 68K Feb 25 12:29 CTLCardinality.xml
-rw-r--r-- 1 mcc users 4.9K Feb 25 12:28 CTLFireability.txt
-rw-r--r-- 1 mcc users 41K Feb 25 12:28 CTLFireability.xml
-rw-r--r-- 1 mcc users 4.2K Jan 29 11:40 GenericPropertiesDefinition.xml
-rw-r--r-- 1 mcc users 3.9K Feb 25 16:07 LTLCardinality.txt
-rw-r--r-- 1 mcc users 28K Feb 25 16:07 LTLCardinality.xml
-rw-r--r-- 1 mcc users 2.3K Feb 25 16:07 LTLFireability.txt
-rw-r--r-- 1 mcc users 18K Feb 25 16:07 LTLFireability.xml
-rw-r--r-- 1 mcc users 12K Feb 25 12:29 ReachabilityCardinality.txt
-rw-r--r-- 1 mcc users 127K Feb 25 12:29 ReachabilityCardinality.xml
-rw-r--r-- 1 mcc users 7.5K Feb 25 12:29 ReachabilityFireability.txt
-rw-r--r-- 1 mcc users 61K Feb 25 12:29 ReachabilityFireability.xml
-rw-r--r-- 1 mcc users 1.7K Feb 25 16:07 UpperBounds.txt
-rw-r--r-- 1 mcc users 3.7K Feb 25 16:07 UpperBounds.xml
-rw-r--r-- 1 mcc users 6 Mar 5 18:22 equiv_col
-rw-r--r-- 1 mcc users 4 Mar 5 18:22 instance
-rw-r--r-- 1 mcc users 6 Mar 5 18:22 iscolored
-rw-r--r-- 1 mcc users 241K Mar 5 18:22 model.pnml

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

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

The expected result is a vector of booleans
BOOL_VECTOR

FORMULA_NAME QuasiLiveness

=== Now, execution of the tool begins

BK_START 1679424295616

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=QuasiLiveness
BK_BIN_PATH=/home/mcc/BenchKit/bin/
BK_TIME_CONFINEMENT=1800
BK_INPUT=FlexibleBarrier-PT-08b
Applying reductions before tool smart
Invoking reducer
Running Version 202303021504
[2023-03-21 18:44:57] [INFO ] Running its-tools with arguments : [-pnfolder, /home/mcc/execution, -examination, QuasiLiveness, -timeout, 180, -rebuildPNML]
[2023-03-21 18:44:57] [INFO ] Parsing pnml file : /home/mcc/execution/model.pnml
[2023-03-21 18:44:57] [INFO ] Load time of PNML (sax parser for PT used): 81 ms
[2023-03-21 18:44:57] [INFO ] Transformed 920 places.
[2023-03-21 18:44:57] [INFO ] Transformed 1057 transitions.
[2023-03-21 18:44:57] [INFO ] Found NUPN structural information;
[2023-03-21 18:44:57] [INFO ] Parsed PT model containing 920 places and 1057 transitions and 2627 arcs in 153 ms.
Starting structural reductions in LIVENESS mode, iteration 0 : 920/920 places, 1057/1057 transitions.
Graph (trivial) has 894 edges and 920 vertex of which 50 / 920 are part of one of the 8 SCC in 7 ms
Free SCC test removed 42 places
Ensure Unique test removed 43 transitions
Reduce isomorphic transitions removed 43 transitions.
Drop transitions removed 241 transitions
Trivial Post-agglo rules discarded 241 transitions
Performed 241 trivial Post agglomeration. Transition count delta: 241
Iterating post reduction 0 with 241 rules applied. Total rules applied 242 place count 878 transition count 773
Reduce places removed 241 places and 0 transitions.
Iterating post reduction 1 with 241 rules applied. Total rules applied 483 place count 637 transition count 773
Performed 56 Pre agglomeration using Quasi-Persistent + Divergent Free condition..
Pre-agglomeration after 2 with 56 Pre rules applied. Total rules applied 483 place count 637 transition count 717
Deduced a syphon composed of 56 places in 3 ms
Reduce places removed 56 places and 0 transitions.
Iterating global reduction 2 with 112 rules applied. Total rules applied 595 place count 581 transition count 717
Performed 367 Post agglomeration using F-continuation condition.Transition count delta: 367
Deduced a syphon composed of 367 places in 1 ms
Reduce places removed 367 places and 0 transitions.
Iterating global reduction 2 with 734 rules applied. Total rules applied 1329 place count 214 transition count 350
Applied a total of 1329 rules in 81 ms. Remains 214 /920 variables (removed 706) and now considering 350/1057 (removed 707) transitions.
[2023-03-21 18:44:57] [INFO ] Flow matrix only has 327 transitions (discarded 23 similar events)
// Phase 1: matrix 327 rows 214 cols
[2023-03-21 18:44:57] [INFO ] Computed 10 place invariants in 24 ms
[2023-03-21 18:44:58] [INFO ] Implicit Places using invariants in 311 ms returned []
[2023-03-21 18:44:58] [INFO ] Flow matrix only has 327 transitions (discarded 23 similar events)
[2023-03-21 18:44:58] [INFO ] Invariant cache hit.
[2023-03-21 18:44:58] [INFO ] State equation strengthened by 49 read => feed constraints.
[2023-03-21 18:44:58] [INFO ] Implicit Places using invariants and state equation in 331 ms returned []
Implicit Place search using SMT with State Equation took 667 ms to find 0 implicit places.
[2023-03-21 18:44:58] [INFO ] Flow matrix only has 327 transitions (discarded 23 similar events)
[2023-03-21 18:44:58] [INFO ] Invariant cache hit.
[2023-03-21 18:44:58] [INFO ] Dead Transitions using invariants and state equation in 186 ms found 0 transitions.
Starting structural reductions in LIVENESS mode, iteration 1 : 214/920 places, 350/1057 transitions.
Finished structural reductions in LIVENESS mode , in 1 iterations and 938 ms. Remains : 214/920 places, 350/1057 transitions.
Discarding 195 transitions out of 350. Remains 155
Initial state reduction rules removed 1 formulas.
Incomplete random walk after 10000 steps, including 733 resets, run finished after 1214 ms. (steps per millisecond=8 ) properties (out of 154) seen :40
Incomplete Best-First random walk after 101 steps, including 0 resets, run finished after 7 ms. (steps per millisecond=14 ) properties (out of 114) seen :0
Incomplete Best-First random walk after 101 steps, including 0 resets, run finished after 1 ms. (steps per millisecond=101 ) properties (out of 114) seen :0
Incomplete Best-First random walk after 101 steps, including 0 resets, run finished after 1 ms. (steps per millisecond=101 ) properties (out of 114) seen :0
Incomplete Best-First random walk after 101 steps, including 0 resets, run finished after 2 ms. (steps per millisecond=50 ) properties (out of 114) seen :0
Incomplete Best-First random walk after 101 steps, including 0 resets, run finished after 1 ms. (steps per millisecond=101 ) properties (out of 114) seen :0
Incomplete Best-First random walk after 101 steps, including 0 resets, run finished after 2 ms. (steps per millisecond=50 ) properties (out of 114) seen :0
Incomplete Best-First random walk after 101 steps, including 0 resets, run finished after 1 ms. (steps per millisecond=101 ) properties (out of 114) seen :0
Incomplete Best-First random walk after 101 steps, including 0 resets, run finished after 1 ms. (steps per millisecond=101 ) properties (out of 114) seen :0
Incomplete Best-First random walk after 101 steps, including 0 resets, run finished after 2 ms. (steps per millisecond=50 ) properties (out of 114) seen :0
Incomplete Best-First random walk after 101 steps, including 0 resets, run finished after 1 ms. (steps per millisecond=101 ) properties (out of 114) seen :0
Incomplete Best-First random walk after 101 steps, including 0 resets, run finished after 1 ms. (steps per millisecond=101 ) properties (out of 114) seen :0
Incomplete Best-First random walk after 101 steps, including 0 resets, run finished after 3 ms. (steps per millisecond=33 ) properties (out of 114) seen :0
Incomplete Best-First random walk after 101 steps, including 0 resets, run finished after 1 ms. (steps per millisecond=101 ) properties (out of 114) seen :0
Incomplete Best-First random walk after 101 steps, including 0 resets, run finished after 1 ms. (steps per millisecond=101 ) properties (out of 114) seen :0
Incomplete Best-First random walk after 101 steps, including 0 resets, run finished after 2 ms. (steps per millisecond=50 ) properties (out of 114) seen :0
Incomplete Best-First random walk after 101 steps, including 0 resets, run finished after 1 ms. (steps per millisecond=101 ) properties (out of 114) seen :0
Incomplete Best-First random walk after 101 steps, including 0 resets, run finished after 1 ms. (steps per millisecond=101 ) properties (out of 114) seen :0
Incomplete Best-First random walk after 101 steps, including 0 resets, run finished after 2 ms. (steps per millisecond=50 ) properties (out of 114) seen :0
Incomplete Best-First random walk after 101 steps, including 0 resets, run finished after 1 ms. (steps per millisecond=101 ) properties (out of 114) seen :0
Incomplete Best-First random walk after 101 steps, including 0 resets, run finished after 1 ms. (steps per millisecond=101 ) properties (out of 114) seen :0
Incomplete Best-First random walk after 101 steps, including 0 resets, run finished after 1 ms. (steps per millisecond=101 ) properties (out of 114) seen :0
Incomplete Best-First random walk after 101 steps, including 0 resets, run finished after 2 ms. (steps per millisecond=50 ) properties (out of 114) seen :0
Incomplete Best-First random walk after 101 steps, including 0 resets, run finished after 1 ms. (steps per millisecond=101 ) properties (out of 114) seen :0
Incomplete Best-First random walk after 101 steps, including 0 resets, run finished after 1 ms. (steps per millisecond=101 ) properties (out of 114) seen :0
Incomplete Best-First random walk after 101 steps, including 0 resets, run finished after 2 ms. (steps per millisecond=50 ) properties (out of 114) seen :0
Incomplete Best-First random walk after 101 steps, including 0 resets, run finished after 1 ms. (steps per millisecond=101 ) properties (out of 114) seen :0
Incomplete Best-First random walk after 101 steps, including 0 resets, run finished after 1 ms. (steps per millisecond=101 ) properties (out of 114) seen :0
Incomplete Best-First random walk after 101 steps, including 0 resets, run finished after 1 ms. (steps per millisecond=101 ) properties (out of 114) seen :0
Incomplete Best-First random walk after 101 steps, including 0 resets, run finished after 2 ms. (steps per millisecond=50 ) properties (out of 114) seen :0
Incomplete Best-First random walk after 101 steps, including 0 resets, run finished after 1 ms. (steps per millisecond=101 ) properties (out of 114) seen :0
Incomplete Best-First random walk after 101 steps, including 0 resets, run finished after 1 ms. (steps per millisecond=101 ) properties (out of 114) seen :0
Incomplete Best-First random walk after 101 steps, including 0 resets, run finished after 2 ms. (steps per millisecond=50 ) properties (out of 114) seen :0
Incomplete Best-First random walk after 101 steps, including 0 resets, run finished after 1 ms. (steps per millisecond=101 ) properties (out of 114) seen :0
Incomplete Best-First random walk after 101 steps, including 0 resets, run finished after 1 ms. (steps per millisecond=101 ) properties (out of 114) seen :0
Incomplete Best-First random walk after 101 steps, including 0 resets, run finished after 1 ms. (steps per millisecond=101 ) properties (out of 114) seen :0
Incomplete Best-First random walk after 101 steps, including 0 resets, run finished after 2 ms. (steps per millisecond=50 ) properties (out of 114) seen :0
Incomplete Best-First random walk after 101 steps, including 0 resets, run finished after 1 ms. (steps per millisecond=101 ) properties (out of 114) seen :0
Incomplete Best-First random walk after 101 steps, including 0 resets, run finished after 1 ms. (steps per millisecond=101 ) properties (out of 114) seen :0
Incomplete Best-First random walk after 101 steps, including 0 resets, run finished after 1 ms. (steps per millisecond=101 ) properties (out of 114) seen :0
Incomplete Best-First random walk after 101 steps, including 0 resets, run finished after 2 ms. (steps per millisecond=50 ) properties (out of 114) seen :0
Incomplete Best-First random walk after 101 steps, including 0 resets, run finished after 1 ms. (steps per millisecond=101 ) properties (out of 114) seen :0
Incomplete Best-First random walk after 101 steps, including 0 resets, run finished after 1 ms. (steps per millisecond=101 ) properties (out of 114) seen :0
Incomplete Best-First random walk after 101 steps, including 0 resets, run finished after 1 ms. (steps per millisecond=101 ) properties (out of 114) seen :0
Incomplete Best-First random walk after 101 steps, including 0 resets, run finished after 2 ms. (steps per millisecond=50 ) properties (out of 114) seen :0
Incomplete Best-First random walk after 101 steps, including 0 resets, run finished after 1 ms. (steps per millisecond=101 ) properties (out of 114) seen :0
Incomplete Best-First random walk after 101 steps, including 0 resets, run finished after 1 ms. (steps per millisecond=101 ) properties (out of 114) seen :0
Incomplete Best-First random walk after 101 steps, including 0 resets, run finished after 1 ms. (steps per millisecond=101 ) properties (out of 114) seen :0
Incomplete Best-First random walk after 101 steps, including 0 resets, run finished after 2 ms. (steps per millisecond=50 ) properties (out of 114) seen :0
Incomplete Best-First random walk after 101 steps, including 0 resets, run finished after 1 ms. (steps per millisecond=101 ) properties (out of 114) seen :0
Incomplete Best-First random walk after 101 steps, including 0 resets, run finished after 1 ms. (steps per millisecond=101 ) properties (out of 114) seen :0
Running SMT prover for 114 properties.
[2023-03-21 18:44:59] [INFO ] Flow matrix only has 327 transitions (discarded 23 similar events)
[2023-03-21 18:44:59] [INFO ] Invariant cache hit.
[2023-03-21 18:45:00] [INFO ] [Real]Absence check using 10 positive place invariants in 3 ms returned sat
[2023-03-21 18:45:02] [INFO ] After 1492ms SMT Verify possible using state equation in real domain returned unsat :0 sat :90 real:24
[2023-03-21 18:45:02] [INFO ] State equation strengthened by 49 read => feed constraints.
[2023-03-21 18:45:03] [INFO ] After 1227ms SMT Verify possible using 49 Read/Feed constraints in real domain returned unsat :0 sat :0 real:114
[2023-03-21 18:45:03] [INFO ] After 3600ms SMT Verify possible using all constraints in real domain returned unsat :0 sat :0 real:114
[2023-03-21 18:45:04] [INFO ] [Nat]Absence check using 10 positive place invariants in 3 ms returned sat
[2023-03-21 18:45:05] [INFO ] After 1431ms SMT Verify possible using state equation in natural domain returned unsat :0 sat :114
[2023-03-21 18:45:07] [INFO ] After 1559ms SMT Verify possible using 49 Read/Feed constraints in natural domain returned unsat :0 sat :114
[2023-03-21 18:45:09] [INFO ] After 3986ms SMT Verify possible using trap constraints in natural domain returned unsat :0 sat :114
Attempting to minimize the solution found.
Minimization took 1630 ms.
[2023-03-21 18:45:11] [INFO ] After 7927ms SMT Verify possible using all constraints in natural domain returned unsat :0 sat :114
Parikh walk visited 5 properties in 810 ms.
Support contains 166 out of 214 places. Attempting structural reductions.
Starting structural reductions in REACHABILITY mode, iteration 0 : 214/214 places, 350/350 transitions.
Drop transitions removed 24 transitions
Reduce isomorphic transitions removed 24 transitions.
Iterating post reduction 0 with 24 rules applied. Total rules applied 24 place count 214 transition count 326
Discarding 1 places :
Symmetric choice reduction at 1 with 1 rule applications. Total rules 25 place count 213 transition count 325
Iterating global reduction 1 with 1 rules applied. Total rules applied 26 place count 213 transition count 325
Ensure Unique test removed 1 transitions
Reduce isomorphic transitions removed 1 transitions.
Iterating post reduction 1 with 1 rules applied. Total rules applied 27 place count 213 transition count 324
Free-agglomeration rule applied 20 times.
Iterating global reduction 2 with 20 rules applied. Total rules applied 47 place count 213 transition count 304
Reduce places removed 20 places and 0 transitions.
Iterating post reduction 2 with 20 rules applied. Total rules applied 67 place count 193 transition count 304
Applied a total of 67 rules in 68 ms. Remains 193 /214 variables (removed 21) and now considering 304/350 (removed 46) transitions.
Finished structural reductions in REACHABILITY mode , in 1 iterations and 69 ms. Remains : 193/214 places, 304/350 transitions.
Incomplete random walk after 1000000 steps, including 82015 resets, run finished after 26376 ms. (steps per millisecond=37 ) properties (out of 109) seen :93
Incomplete Best-First random walk after 100001 steps, including 156 resets, run finished after 76 ms. (steps per millisecond=1315 ) properties (out of 16) seen :0
Incomplete Best-First random walk after 100001 steps, including 157 resets, run finished after 78 ms. (steps per millisecond=1282 ) properties (out of 16) seen :0
Incomplete Best-First random walk after 100001 steps, including 158 resets, run finished after 76 ms. (steps per millisecond=1315 ) properties (out of 16) seen :0
Incomplete Best-First random walk after 100001 steps, including 155 resets, run finished after 78 ms. (steps per millisecond=1282 ) properties (out of 16) seen :0
Incomplete Best-First random walk after 100001 steps, including 157 resets, run finished after 74 ms. (steps per millisecond=1351 ) properties (out of 16) seen :0
Incomplete Best-First random walk after 100001 steps, including 159 resets, run finished after 79 ms. (steps per millisecond=1265 ) properties (out of 16) seen :0
Incomplete Best-First random walk after 100001 steps, including 157 resets, run finished after 76 ms. (steps per millisecond=1315 ) properties (out of 16) seen :0
Incomplete Best-First random walk after 100001 steps, including 157 resets, run finished after 77 ms. (steps per millisecond=1298 ) properties (out of 16) seen :0
Incomplete Best-First random walk after 100001 steps, including 157 resets, run finished after 73 ms. (steps per millisecond=1369 ) properties (out of 16) seen :0
Incomplete Best-First random walk after 100001 steps, including 158 resets, run finished after 75 ms. (steps per millisecond=1333 ) properties (out of 16) seen :0
Incomplete Best-First random walk after 100001 steps, including 157 resets, run finished after 75 ms. (steps per millisecond=1333 ) properties (out of 16) seen :0
Incomplete Best-First random walk after 100001 steps, including 158 resets, run finished after 72 ms. (steps per millisecond=1388 ) properties (out of 16) seen :0
Incomplete Best-First random walk after 100001 steps, including 159 resets, run finished after 75 ms. (steps per millisecond=1333 ) properties (out of 16) seen :0
Incomplete Best-First random walk after 100001 steps, including 159 resets, run finished after 73 ms. (steps per millisecond=1369 ) properties (out of 16) seen :0
Incomplete Best-First random walk after 100001 steps, including 156 resets, run finished after 72 ms. (steps per millisecond=1388 ) properties (out of 16) seen :0
Incomplete Best-First random walk after 100001 steps, including 158 resets, run finished after 72 ms. (steps per millisecond=1388 ) properties (out of 16) seen :0
Running SMT prover for 16 properties.
// Phase 1: matrix 304 rows 193 cols
[2023-03-21 18:45:39] [INFO ] Computed 10 place invariants in 13 ms
[2023-03-21 18:45:40] [INFO ] [Real]Absence check using 10 positive place invariants in 3 ms returned sat
[2023-03-21 18:45:40] [INFO ] After 212ms SMT Verify possible using state equation in real domain returned unsat :0 sat :6 real:10
[2023-03-21 18:45:40] [INFO ] State equation strengthened by 60 read => feed constraints.
[2023-03-21 18:45:40] [INFO ] After 76ms SMT Verify possible using 60 Read/Feed constraints in real domain returned unsat :0 sat :1 real:15
[2023-03-21 18:45:40] [INFO ] After 95ms SMT Verify possible using trap constraints in real domain returned unsat :0 sat :0 real:16
[2023-03-21 18:45:40] [INFO ] After 450ms SMT Verify possible using all constraints in real domain returned unsat :0 sat :0 real:16
[2023-03-21 18:45:40] [INFO ] [Nat]Absence check using 10 positive place invariants in 3 ms returned sat
[2023-03-21 18:45:40] [INFO ] After 228ms SMT Verify possible using state equation in natural domain returned unsat :0 sat :16
[2023-03-21 18:45:40] [INFO ] After 187ms SMT Verify possible using 60 Read/Feed constraints in natural domain returned unsat :0 sat :16
[2023-03-21 18:45:41] [INFO ] After 463ms SMT Verify possible using trap constraints in natural domain returned unsat :0 sat :16
Attempting to minimize the solution found.
Minimization took 174 ms.
[2023-03-21 18:45:41] [INFO ] After 1001ms SMT Verify possible using all constraints in natural domain returned unsat :0 sat :16
Finished Parikh walk after 4724 steps, including 142 resets, run visited all 2 properties in 33 ms. (steps per millisecond=143 )
Parikh walk visited 16 properties in 139 ms.
Able to resolve query QuasiLiveness after proving 155 properties.
FORMULA QuasiLiveness TRUE TECHNIQUES RANDOM_WALK PARIKH_WALK TOPOLOGICAL INITIAL_STATE
Total runtime 44124 ms.
ITS solved all properties within timeout

BK_STOP 1679424342495

--------------------
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 QuasiLiveness -timeout 180 -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="FlexibleBarrier-PT-08b"
export BK_EXAMINATION="QuasiLiveness"
export BK_TOOL="smartxred"
export BK_RESULT_DIR="/tmp/BK_RESULTS/OUTPUTS"
export BK_TIME_CONFINEMENT="1800"
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 FlexibleBarrier-PT-08b, examination is QuasiLiveness"
echo " Time confinement is $BK_TIME_CONFINEMENT seconds"
echo " Memory confinement is 16384 MBytes"
echo " Number of cores is 4"
echo " Run identifier is r185-tall-167838872000302"
echo "====================================================================="
echo
echo "--------------------"
echo "preparation of the directory to be used:"

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