About the Execution of 2021-gold for ShieldIIPt-PT-040B
| Execution Summary | |||||
| Max Memory Used (MB)  | 
      Time wait (ms) | CPU Usage (ms) | I/O Wait (ms) | Computed Result | Execution Status  | 
   
| 10658.611 | 1800000.00 | 6902703.00 | 379.60 | [undef] | Time out reached | 
Execution Chart
We display below the execution chart for this examination (boot time has been removed).

Trace from the execution
Formatting '/data/fkordon/mcc2022-input.r234-tall-165286038000196.qcow2', fmt=qcow2 size=4294967296 backing_file=/data/fkordon/mcc2022-input.qcow2 cluster_size=65536 lazy_refcounts=off refcount_bits=16
Waiting for the VM to be ready (probing ssh)
............................................................................................................................................................................................
=====================================================================
 Generated by BenchKit 2-4028
    Executing tool gold2021
    Input is ShieldIIPt-PT-040B, examination is ReachabilityDeadlock
    Time confinement is 1800 seconds
    Memory confinement is 16384 MBytes
    Number of cores is 4
    Run identifier is r234-tall-165286038000196
=====================================================================
--------------------
preparation of the directory to be used:
/home/mcc/execution
total 924K
-rw-r--r-- 1 mcc users 6.0K Apr 29 18:28 CTLCardinality.txt
-rw-r--r-- 1 mcc users  61K Apr 29 18:28 CTLCardinality.xml
-rw-r--r-- 1 mcc users 7.1K Apr 29 18:28 CTLFireability.txt
-rw-r--r-- 1 mcc users  69K Apr 29 18:28 CTLFireability.xml
-rw-r--r-- 1 mcc users 4.2K May 10 09:34 GenericPropertiesDefinition.xml
-rw-r--r-- 1 mcc users 3.8K May  9 08:51 LTLCardinality.txt
-rw-r--r-- 1 mcc users  25K May  9 08:51 LTLCardinality.xml
-rw-r--r-- 1 mcc users 2.3K May  9 08:51 LTLFireability.txt
-rw-r--r-- 1 mcc users  18K May  9 08:51 LTLFireability.xml
-rw-r--r-- 1 mcc users 1.6K May  9 08:51 UpperBounds.txt
-rw-r--r-- 1 mcc users 3.7K May  9 08:51 UpperBounds.xml
-rw-r--r-- 1 mcc users    6 May 10 09:34 equiv_col
-rw-r--r-- 1 mcc users    5 May 10 09:34 instance
-rw-r--r-- 1 mcc users    6 May 10 09:34 iscolored
-rw-r--r-- 1 mcc users 686K May 10 09:34 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 ReachabilityDeadlock
=== Now, execution of the tool begins
BK_START 1653032827790
Running Version 0
[2022-05-20 07:47:09] [INFO   ] Running its-tools with arguments : [-pnfolder, /home/mcc/execution, -examination, ReachabilityDeadlock, -spotpath, /home/mcc/BenchKit/bin//..//ltlfilt, -z3path, /home/mcc/BenchKit/bin//..//z3/bin/z3, -yices2path, /home/mcc/BenchKit/bin//..//yices/bin/yices, -its, -ltsmin, -greatspnpath, /home/mcc/BenchKit/bin//..//greatspn/, -order, META, -manyOrder, -smt, -timeout, 1800] 
[2022-05-20 07:47:09] [INFO   ] Parsing pnml file : /home/mcc/execution/model.pnml 
[2022-05-20 07:47:09] [INFO   ] Load time of PNML (sax parser for PT used): 147 ms 
[2022-05-20 07:47:09] [INFO   ] Transformed 2803 places. 
[2022-05-20 07:47:09] [INFO   ] Transformed 2603 transitions. 
[2022-05-20 07:47:09] [INFO   ] Found NUPN structural information; 
[2022-05-20 07:47:09] [INFO   ] Parsed PT model containing 2803 places and 2603 transitions in 401 ms. 
Parsed 1 properties from file /home/mcc/execution/ReachabilityDeadlock.xml in 9 ms.
Working with output stream class java.io.PrintStream
Built sparse matrix representations for Structural reductions in 7 ms.22629KB memory used
Starting structural reductions, iteration 0 : 2803/2803 places, 2603/2603 transitions.
Drop transitions removed 682 transitions 
Trivial Post-agglo rules discarded 682 transitions
Performed 682 trivial Post agglomeration. Transition count delta: 682
Iterating post reduction 0 with 682 rules applied. Total rules applied 682 place count 2803 transition count 1921
Reduce places removed 682 places and 0 transitions. 
Ensure Unique test removed 1 transitions
Reduce isomorphic transitions removed 1 transitions.
Drop transitions removed 1 transitions 
Trivial Post-agglo rules discarded 1 transitions
Performed 1 trivial Post agglomeration. Transition count delta: 1
Iterating post reduction 1 with 684 rules applied. Total rules applied 1366 place count 2121 transition count 1919
Reduce places removed 1 places and 0 transitions. 
Iterating post reduction 2 with 1 rules applied. Total rules applied 1367 place count 2120 transition count 1919
Performed 161 Pre agglomeration using Quasi-Persistent + Divergent Free condition..
Pre-agglomeration after 3 with 161 Pre rules applied. Total rules applied 1367 place count 2120 transition count 1758
Deduced a syphon composed of 161 places in 6 ms
Reduce places removed 161 places and 0 transitions. 
Iterating global reduction 3 with 322 rules applied. Total rules applied 1689 place count 1959 transition count 1758
Discarding 280 places :
Symmetric choice reduction at 3 with 280 rule applications. Total rules  1969 place count 1679 transition count 1478
Iterating global reduction 3 with 280 rules applied. Total rules applied 2249 place count 1679 transition count 1478
Performed 120 Pre agglomeration using Quasi-Persistent + Divergent Free condition..
Pre-agglomeration after 3 with 120 Pre rules applied. Total rules applied 2249 place count 1679 transition count 1358
Deduced a syphon composed of 120 places in 10 ms
Reduce places removed 120 places and 0 transitions. 
Iterating global reduction 3 with 240 rules applied. Total rules applied 2489 place count 1559 transition count 1358
Performed 679 Post agglomeration using F-continuation condition.Transition count delta: 679
Deduced a syphon composed of 679 places in 3 ms
Reduce places removed 679 places and 0 transitions. 
Iterating global reduction 3 with 1358 rules applied. Total rules applied 3847 place count 880 transition count 679
Renaming transitions due to excessive name length > 1024 char.
Performed 101 Post agglomeration using F-continuation condition.Transition count delta: -66
Deduced a syphon composed of 101 places in 4 ms
Reduce places removed 101 places and 0 transitions. 
Iterating global reduction 3 with 202 rules applied. Total rules applied 4049 place count 779 transition count 745
Performed 18 Post agglomeration using F-continuation condition.Transition count delta: -13
Deduced a syphon composed of 18 places in 3 ms
Reduce places removed 18 places and 0 transitions. 
Iterating global reduction 3 with 36 rules applied. Total rules applied 4085 place count 761 transition count 758
Reduce places removed 1 places and 1 transitions. 
Iterating global reduction 3 with 1 rules applied. Total rules applied 4086 place count 760 transition count 757
Reduce places removed 2 places and 0 transitions. 
Iterating post reduction 3 with 2 rules applied. Total rules applied 4088 place count 758 transition count 757
Performed 1 Pre agglomeration using Quasi-Persistent + Divergent Free condition..
Pre-agglomeration after 4 with 1 Pre rules applied. Total rules applied 4088 place count 758 transition count 756
Deduced a syphon composed of 1 places in 3 ms
Reduce places removed 1 places and 0 transitions. 
Iterating global reduction 4 with 2 rules applied. Total rules applied 4090 place count 757 transition count 756
Applied a total of 4090 rules in 878 ms. Remains 757 /2803 variables (removed 2046) and now considering 756/2603 (removed 1847) transitions.
Finished structural reductions, in 1 iterations. Remains : 757/2803 places, 756/2603 transitions.
Random walk for 1250000  steps, including 0 resets, run took 8185 ms (no deadlock found). (steps per millisecond=152 )
Random directed walk for 1250002  steps, including 0 resets, run took 6215 ms (no deadlock found). (steps per millisecond=201 )
// Phase 1: matrix 756 rows 757 cols
[2022-05-20 07:47:25] [INFO   ] Computed 359 place invariants in 17 ms 
[2022-05-20 07:47:25] [INFO   ] [Real]Absence check using  359 positive place invariants in 196 ms returned sat 
[2022-05-20 07:47:25] [INFO   ] [Real]Adding state equation constraints to refine reachable states. 
[2022-05-20 07:47:26] [INFO   ] [Real]Absence check using state equation in 916 ms returned sat 
[2022-05-20 07:47:26] [INFO   ] Solution in real domain found non-integer solution. 
[2022-05-20 07:47:27] [INFO   ] [Nat]Absence check using  359 positive place invariants in 142 ms returned sat 
[2022-05-20 07:47:27] [INFO   ] [Nat]Adding state equation constraints to refine reachable states. 
[2022-05-20 07:47:27] [INFO   ] [Nat]Absence check using state equation in 780 ms returned sat 
[2022-05-20 07:47:28] [INFO   ] Computed and/alt/rep : 752/1148/752 causal constraints (skipped 0 transitions) in 45 ms. 
[2022-05-20 07:47:35] [INFO   ] Added : 605 causal constraints over 122 iterations in 7672 ms. Result :sat 
Attempting to minimize the solution found.
Minimization took 51 ms.
Parikh directed walk for 432000  steps, including 1000 resets, run took 2931 ms. (steps per millisecond=147 )
Random directed walk for 500001  steps, including 0 resets, run took 2497 ms (no deadlock found). (steps per millisecond=200 )
Random walk for 500000  steps, including 0 resets, run took 3091 ms (no deadlock found). (steps per millisecond=161 )
Random directed walk for 500007  steps, including 0 resets, run took 2469 ms (no deadlock found). (steps per millisecond=202 )
Random walk for 500000  steps, including 0 resets, run took 3059 ms (no deadlock found). (steps per millisecond=163 )
Starting structural reductions, iteration 0 : 757/757 places, 756/756 transitions.
Applied a total of 0 rules in 41 ms. Remains 757 /757 variables (removed 0) and now considering 756/756 (removed 0) transitions.
// Phase 1: matrix 756 rows 757 cols
[2022-05-20 07:47:49] [INFO   ] Computed 359 place invariants in 4 ms 
[2022-05-20 07:47:50] [INFO   ] Implicit Places using invariants in 761 ms returned [746] 
Discarding 1 places :
Implicit Place search using SMT only with invariants took 765 ms to find 1 implicit places.
[2022-05-20 07:47:50] [INFO   ] Redundant transitions in 42 ms returned [] 
// Phase 1: matrix 756 rows 756 cols
[2022-05-20 07:47:50] [INFO   ] Computed 358 place invariants in 3 ms 
[2022-05-20 07:47:51] [INFO   ] Dead Transitions using invariants and state equation in 371 ms returned [] 
Starting structural reductions, iteration 1 : 756/757 places, 756/756 transitions.
Performed 1 Post agglomeration using F-continuation condition.Transition count delta: 1
Deduced a syphon composed of 1 places in 1 ms
Reduce places removed 1 places and 0 transitions. 
Iterating global reduction 0 with 2 rules applied. Total rules applied 2 place count 755 transition count 755
Applied a total of 2 rules in 30 ms. Remains 755 /756 variables (removed 1) and now considering 755/756 (removed 1) transitions.
// Phase 1: matrix 755 rows 755 cols
[2022-05-20 07:47:51] [INFO   ] Computed 358 place invariants in 4 ms 
[2022-05-20 07:47:51] [INFO   ] Implicit Places using invariants in 414 ms returned [] 
// Phase 1: matrix 755 rows 755 cols
[2022-05-20 07:47:51] [INFO   ] Computed 358 place invariants in 2 ms 
[2022-05-20 07:47:52] [INFO   ] Implicit Places using invariants and state equation in 694 ms returned [] 
Implicit Place search using SMT with State Equation took 1113 ms to find 0 implicit places.
Finished structural reductions, in 2 iterations. Remains : 755/757 places, 755/756 transitions.
Random walk for 1250000  steps, including 0 resets, run took 7607 ms (no deadlock found). (steps per millisecond=164 )
Random directed walk for 1250003  steps, including 0 resets, run took 6052 ms (no deadlock found). (steps per millisecond=206 )
// Phase 1: matrix 755 rows 755 cols
[2022-05-20 07:48:05] [INFO   ] Computed 358 place invariants in 11 ms 
[2022-05-20 07:48:06] [INFO   ] [Real]Absence check using  358 positive place invariants in 151 ms returned sat 
[2022-05-20 07:48:06] [INFO   ] [Real]Adding state equation constraints to refine reachable states. 
[2022-05-20 07:48:07] [INFO   ] [Real]Absence check using state equation in 832 ms returned sat 
[2022-05-20 07:48:07] [INFO   ] Solution in real domain found non-integer solution. 
[2022-05-20 07:48:07] [INFO   ] [Nat]Absence check using  358 positive place invariants in 139 ms returned sat 
[2022-05-20 07:48:07] [INFO   ] [Nat]Adding state equation constraints to refine reachable states. 
[2022-05-20 07:48:08] [INFO   ] [Nat]Absence check using state equation in 807 ms returned sat 
[2022-05-20 07:48:08] [INFO   ] Computed and/alt/rep : 751/1145/751 causal constraints (skipped 0 transitions) in 33 ms. 
[2022-05-20 07:48:15] [INFO   ] Added : 562 causal constraints over 113 iterations in 7245 ms. Result :sat 
Attempting to minimize the solution found.
Minimization took 38 ms.
Parikh directed walk for 740100  steps, including 1000 resets, run took 4662 ms. (steps per millisecond=158 )
Random directed walk for 500007  steps, including 0 resets, run took 2418 ms (no deadlock found). (steps per millisecond=206 )
Random walk for 500000  steps, including 0 resets, run took 3038 ms (no deadlock found). (steps per millisecond=164 )
Random directed walk for 500002  steps, including 0 resets, run took 2415 ms (no deadlock found). (steps per millisecond=207 )
Random walk for 500000  steps, including 0 resets, run took 3033 ms (no deadlock found). (steps per millisecond=164 )
[2022-05-20 07:48:31] [INFO   ] Flatten gal took : 178 ms 
Using solver Z3 to compute partial order matrices.
Built C files in : 
/tmp/ltsmin8272410503120486586
[2022-05-20 07:48:31] [INFO   ] Too many transitions (2603) to apply POR reductions. Disabling POR matrices. 
[2022-05-20 07:48:31] [INFO   ] Applying decomposition  
[2022-05-20 07:48:31] [INFO   ] Built C files in 66ms conformant to PINS (ltsmin variant)in folder :/tmp/ltsmin8272410503120486586 
Running compilation step : CommandLine [args=[gcc, -c, -I/home/mcc/BenchKit/itstools/plugins/fr.lip6.move.gal.ltsmin.binaries_1.0.0.202104292328/bin/include/, -I., -std=c99, -fPIC, -O2, model.c], workingDir=/tmp/ltsmin8272410503120486586]
[2022-05-20 07:48:31] [INFO   ] Flatten gal took : 117 ms 
Converted graph to binary with : CommandLine [args=[/home/mcc/BenchKit/itstools/plugins/fr.lip6.move.gal.louvain.binaries_1.0.0.202104292328/bin/convert-linux64, -i, /tmp/graph1544330162908488021.txt, -o, /tmp/graph1544330162908488021.bin, -w, /tmp/graph1544330162908488021.weights], workingDir=null]
Built communities with : CommandLine [args=[/home/mcc/BenchKit/itstools/plugins/fr.lip6.move.gal.louvain.binaries_1.0.0.202104292328/bin/louvain-linux64, /tmp/graph1544330162908488021.bin, -l, -1, -v, -w, /tmp/graph1544330162908488021.weights, -q, 0, -e, 0.001], workingDir=null]
[2022-05-20 07:48:31] [INFO   ] Decomposing Gal with order  
[2022-05-20 07:48:32] [INFO   ] Rewriting arrays  to variables to allow decomposition. 
[2022-05-20 07:48:32] [INFO   ] Removed a total of 240 redundant transitions. 
[2022-05-20 07:48:32] [INFO   ] Flatten gal took : 283 ms 
[2022-05-20 07:48:32] [INFO   ] Fuse similar labels procedure discarded/fused a total of 0 labels/synchronizations in 32 ms. 
[2022-05-20 07:48:32] [INFO   ] Time to serialize gal into /tmp/ReachabilityDeadlock261755410971754517.gal : 67 ms 
Invoking ITS tools like this :CommandLine [args=[/home/mcc/BenchKit/itstools/plugins/fr.lip6.move.gal.itstools.binaries_1.0.0.202104292328/bin/its-ctl-linux64, --gc-threshold, 2000000, --quiet, -i, /tmp/ReachabilityDeadlock261755410971754517.gal, -t, CGAL, -ctl, DEADLOCK], workingDir=/home/mcc/execution]
its-ctl command run as :
/home/mcc/BenchKit/itstools/plugins/fr.lip6.move.gal.itstools.binaries_1.0.0.202104292328/bin/its-ctl-linux64  --gc-threshold  2000000  --quiet  -i  /tmp/ReachabilityDeadlock261755410971754517.gal  -t  CGAL  -ctl  DEADLOCK  
No direction supplied, using forward translation only.
Compilation finished in 29346 ms.
Running link step : CommandLine [args=[gcc, -shared, -o, gal.so, model.o], workingDir=/tmp/ltsmin8272410503120486586]
Link finished in 62 ms.
Running LTSmin : CommandLine [args=[/home/mcc/BenchKit/itstools/plugins/fr.lip6.move.gal.ltsmin.binaries_1.0.0.202104292328/bin/pins2lts-mc-linux64, ./gal.so, --threads=8, -p, --pins-guards, --when, -d], workingDir=/tmp/ltsmin8272410503120486586]
Detected timeout of ITS tools.
[2022-05-20 07:59:00] [INFO   ] Applying decomposition  
[2022-05-20 07:59:00] [INFO   ] Flatten gal took : 240 ms 
[2022-05-20 07:59:00] [INFO   ] Decomposing Gal with order  
[2022-05-20 07:59:01] [INFO   ] Rewriting arrays  to variables to allow decomposition. 
[2022-05-20 07:59:01] [INFO   ] Flatten gal took : 346 ms 
[2022-05-20 07:59:02] [INFO   ] Fuse similar labels procedure discarded/fused a total of 0 labels/synchronizations in 50 ms. 
[2022-05-20 07:59:02] [INFO   ] Time to serialize gal into /tmp/ReachabilityDeadlock12801035630071309870.gal : 51 ms 
Invoking ITS tools like this :CommandLine [args=[/home/mcc/BenchKit/itstools/plugins/fr.lip6.move.gal.itstools.binaries_1.0.0.202104292328/bin/its-ctl-linux64, --gc-threshold, 2000000, --quiet, -i, /tmp/ReachabilityDeadlock12801035630071309870.gal, -t, CGAL, -ctl, DEADLOCK], workingDir=/home/mcc/execution]
its-ctl command run as :
/home/mcc/BenchKit/itstools/plugins/fr.lip6.move.gal.itstools.binaries_1.0.0.202104292328/bin/its-ctl-linux64  --gc-threshold  2000000  --quiet  -i  /tmp/ReachabilityDeadlock12801035630071309870.gal  -t  CGAL  -ctl  DEADLOCK  
No direction supplied, using forward translation only.
Detected timeout of ITS tools.
[2022-05-20 08:09:30] [INFO   ] Flatten gal took : 230 ms 
[2022-05-20 08:09:30] [INFO   ] Input system was already deterministic with 2603 transitions. 
[2022-05-20 08:09:30] [INFO   ] Transformed 2803 places. 
[2022-05-20 08:09:30] [INFO   ] Transformed 2603 transitions. 
Running greatSPN : CommandLine [args=[/home/mcc/BenchKit/bin//..//greatspn//bin/pinvar, /home/mcc/execution/gspn], workingDir=/home/mcc/execution]
Run of greatSPN captured in /home/mcc/execution/outPut.txt
Running greatSPN : CommandLine [args=[/home/mcc/BenchKit/bin//..//greatspn//bin/RGMEDD2, /home/mcc/execution/gspn, -META, -varord-only], workingDir=/home/mcc/execution]
Run of greatSPN captured in /home/mcc/execution/outPut.txt
Using order generated by GreatSPN with heuristic : META
[2022-05-20 08:09:31] [INFO   ] Time to serialize gal into /tmp/ReachabilityDeadlock167818752832067662.gal : 38 ms 
Invoking ITS tools like this :CommandLine [args=[/home/mcc/BenchKit/itstools/plugins/fr.lip6.move.gal.itstools.binaries_1.0.0.202104292328/bin/its-ctl-linux64, --gc-threshold, 2000000, --quiet, -i, /tmp/ReachabilityDeadlock167818752832067662.gal, -t, CGAL, -ctl, DEADLOCK, --load-order, /home/mcc/execution/model.ord, --gen-order, FOLLOW], workingDir=/home/mcc/execution]
its-ctl command run as :
/home/mcc/BenchKit/itstools/plugins/fr.lip6.move.gal.itstools.binaries_1.0.0.202104292328/bin/its-ctl-linux64  --gc-threshold  2000000  --quiet  -i  /tmp/ReachabilityDeadlock167818752832067662.gal  -t  CGAL  -ctl  DEADLOCK  --load-order  /home/mcc/execution/model.ord  --gen-order  FOLLOW  
Successfully loaded order from file /home/mcc/execution/model.ord
No direction supplied, using forward translation only.
BK_TIME_CONFINEMENT_REACHED
--------------------
content from stderr:
+ export BINDIR=/home/mcc/BenchKit/bin//../
+ BINDIR=/home/mcc/BenchKit/bin//../
++ pwd
+ export MODEL=/home/mcc/execution
+ MODEL=/home/mcc/execution
+ [[ ReachabilityDeadlock = StateSpace ]]
+ /home/mcc/BenchKit/bin//..//runeclipse.sh /home/mcc/execution ReachabilityDeadlock -its -ltsmin -greatspnpath /home/mcc/BenchKit/bin//..//greatspn/ -order META -manyOrder -smt -timeout 1800
+ ulimit -s 65536
+ [[ -z '' ]]
+ export LTSMIN_MEM_SIZE=8589934592
+ LTSMIN_MEM_SIZE=8589934592
++ cut -d . -f 9
++ ls /home/mcc/BenchKit/bin//..//itstools/plugins/fr.lip6.move.gal.application.pnmcc_1.0.0.202104292328.jar
+ VERSION=0
+ echo 'Running Version 0'
+ /home/mcc/BenchKit/bin//..//itstools/its-tools -data /home/mcc/execution/workspace -pnfolder /home/mcc/execution -examination ReachabilityDeadlock -spotpath /home/mcc/BenchKit/bin//..//ltlfilt -z3path /home/mcc/BenchKit/bin//..//z3/bin/z3 -yices2path /home/mcc/BenchKit/bin//..//yices/bin/yices -its -ltsmin -greatspnpath /home/mcc/BenchKit/bin//..//greatspn/ -order META -manyOrder -smt -timeout 1800 -vmargs -Dosgi.locking=none -Declipse.stateSaveDelayInterval=-1 -Dosgi.configuration.area=/tmp/.eclipse -Xss128m -Xms40m -Xmx16000m
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="ShieldIIPt-PT-040B"
export BK_EXAMINATION="ReachabilityDeadlock"
export BK_TOOL="gold2021"
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-4028"
echo "    Executing tool gold2021"
echo "    Input is ShieldIIPt-PT-040B, examination is ReachabilityDeadlock"
echo "    Time confinement is $BK_TIME_CONFINEMENT seconds"
echo "    Memory confinement is 16384 MBytes"
echo "    Number of cores is 4"
echo "    Run identifier is r234-tall-165286038000196"
echo "====================================================================="
echo
echo "--------------------"
echo "preparation of the directory to be used:"
tar xzf /home/mcc/BenchKit/INPUTS/ShieldIIPt-PT-040B.tgz
mv ShieldIIPt-PT-040B execution
cd execution
if [ "ReachabilityDeadlock" = "ReachabilityDeadlock" ] || [ "ReachabilityDeadlock" = "UpperBounds" ] || [ "ReachabilityDeadlock" = "QuasiLiveness" ] || [ "ReachabilityDeadlock" = "StableMarking" ] || [ "ReachabilityDeadlock" = "Liveness" ] || [ "ReachabilityDeadlock" = "OneSafe" ] || [ "ReachabilityDeadlock" = "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 [ "ReachabilityDeadlock" = "UpperBounds" ] ; then
	echo "The expected result is a vector of positive values"
	echo NUM_VECTOR
elif [ "ReachabilityDeadlock" != "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 "ReachabilityDeadlock.txt" ] ; then
	echo "here is the order used to build the result vector(from text file)"
	for x in $(grep Property ReachabilityDeadlock.txt | cut -d ' ' -f 2 | sort -u) ; do
		echo "FORMULA_NAME $x"
	done
elif [ -f "ReachabilityDeadlock.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 '
		echo "FORMULA_NAME $x"
	done
elif [ "ReachabilityDeadlock" = "ReachabilityDeadlock" ] || [ "ReachabilityDeadlock" = "QuasiLiveness" ] || [ "ReachabilityDeadlock" = "StableMarking" ] || [ "ReachabilityDeadlock" = "Liveness" ] || [ "ReachabilityDeadlock" = "OneSafe" ] ; then
	echo "FORMULA_NAME ReachabilityDeadlock"
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 ;
