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

About the Execution of ITS-Tools for CircularTrains-PT-024

Execution Summary
Max Memory
Used (MB)
Time wait (ms) CPU Usage (ms) I/O Wait (ms) Computed Result Execution
Status
304.159 10215.00 14764.00 663.20 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.r083-smll-167814405600099.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 itstools
Input is CircularTrains-PT-024, examination is Liveness
Time confinement is 1800 seconds
Memory confinement is 16384 MBytes
Number of cores is 4
Run identifier is r083-smll-167814405600099
=====================================================================

--------------------
preparation of the directory to be used:
/home/mcc/execution
total 488K
-rw-r--r-- 1 mcc users 6.5K Feb 26 04:32 CTLCardinality.txt
-rw-r--r-- 1 mcc users 66K Feb 26 04:32 CTLCardinality.xml
-rw-r--r-- 1 mcc users 6.2K Feb 26 04:31 CTLFireability.txt
-rw-r--r-- 1 mcc users 55K Feb 26 04:31 CTLFireability.xml
-rw-r--r-- 1 mcc users 4.2K Jan 29 11:40 GenericPropertiesDefinition.xml
-rw-r--r-- 1 mcc users 3.7K Feb 25 15:42 LTLCardinality.txt
-rw-r--r-- 1 mcc users 23K Feb 25 15:42 LTLCardinality.xml
-rw-r--r-- 1 mcc users 2.5K Feb 25 15:42 LTLFireability.txt
-rw-r--r-- 1 mcc users 17K Feb 25 15:42 LTLFireability.xml
-rw-r--r-- 1 mcc users 14K Feb 26 04:33 ReachabilityCardinality.txt
-rw-r--r-- 1 mcc users 134K Feb 26 04:33 ReachabilityCardinality.xml
-rw-r--r-- 1 mcc users 11K Feb 26 04:32 ReachabilityFireability.txt
-rw-r--r-- 1 mcc users 81K Feb 26 04:32 ReachabilityFireability.xml
-rw-r--r-- 1 mcc users 1.7K Feb 25 15:42 UpperBounds.txt
-rw-r--r-- 1 mcc users 3.7K Feb 25 15:42 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 19K 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 Liveness

=== Now, execution of the tool begins

BK_START 1678220239887

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=itstools
BK_EXAMINATION=Liveness
BK_BIN_PATH=/home/mcc/BenchKit/bin/
BK_TIME_CONFINEMENT=1800
BK_INPUT=CircularTrains-PT-024
Not applying reductions.
Model is PT
Liveness PT
Running Version 202303021504
[2023-03-07 20:17:23] [INFO ] Running its-tools with arguments : [-pnfolder, /home/mcc/execution, -examination, Liveness, -its, -ltsmin, -greatspnpath, /home/mcc/BenchKit/bin//../itstools/bin//..//greatspn/, -order, META, -manyOrder, -smt, -timeout, 1800]
[2023-03-07 20:17:23] [INFO ] Parsing pnml file : /home/mcc/execution/model.pnml
[2023-03-07 20:17:23] [INFO ] Load time of PNML (sax parser for PT used): 55 ms
[2023-03-07 20:17:23] [INFO ] Transformed 48 places.
[2023-03-07 20:17:23] [INFO ] Transformed 24 transitions.
[2023-03-07 20:17:23] [INFO ] Parsed PT model containing 48 places and 24 transitions and 96 arcs in 212 ms.
Built sparse matrix representations for Structural reductions in 9 ms.17946KB memory used
Starting structural reductions in DEADLOCK mode, iteration 0 : 48/48 places, 24/24 transitions.
Computed a total of 0 stabilizing places and 0 stable transitions
Computed a total of 0 stabilizing places and 0 stable transitions
Computed a total of 0 stabilizing places and 0 stable transitions
Applied a total of 0 rules in 26 ms. Remains 48 /48 variables (removed 0) and now considering 24/24 (removed 0) transitions.
Finished structural reductions in DEADLOCK mode , in 1 iterations and 26 ms. Remains : 48/48 places, 24/24 transitions.
Starting structural reductions in DEADLOCK mode, iteration 0 : 48/48 places, 24/24 transitions.
Computed a total of 0 stabilizing places and 0 stable transitions
Computed a total of 0 stabilizing places and 0 stable transitions
Computed a total of 0 stabilizing places and 0 stable transitions
Applied a total of 0 rules in 5 ms. Remains 48 /48 variables (removed 0) and now considering 24/24 (removed 0) transitions.
// Phase 1: matrix 24 rows 48 cols
[2023-03-07 20:17:23] [INFO ] Computed 25 place invariants in 10 ms
[2023-03-07 20:17:24] [INFO ] Implicit Places using invariants in 289 ms returned []
[2023-03-07 20:17:24] [INFO ] Invariant cache hit.
[2023-03-07 20:17:24] [INFO ] Implicit Places using invariants and state equation in 137 ms returned []
Implicit Place search using SMT with State Equation took 490 ms to find 0 implicit places.
[2023-03-07 20:17:24] [INFO ] Redundant transitions in 1 ms returned []
[2023-03-07 20:17:24] [INFO ] Invariant cache hit.
[2023-03-07 20:17:24] [INFO ] Dead Transitions using invariants and state equation in 108 ms found 0 transitions.
Finished structural reductions in DEADLOCK mode , in 1 iterations and 614 ms. Remains : 48/48 places, 24/24 transitions.
Random walk for 1250000 steps, including 0 resets, run took 2026 ms (no deadlock found). (steps per millisecond=616 )
Random directed walk for 1250002 steps, including 0 resets, run took 1217 ms (no deadlock found). (steps per millisecond=1027 )
[2023-03-07 20:17:27] [INFO ] Invariant cache hit.
[2023-03-07 20:17:27] [INFO ] [Real]Absence check using 12 positive place invariants in 5 ms returned sat
[2023-03-07 20:17:27] [INFO ] [Real]Absence check using 12 positive and 13 generalized place invariants in 8 ms returned unsat
Starting structural reductions in LIVENESS mode, iteration 0 : 48/48 places, 24/24 transitions.
Applied a total of 0 rules in 2 ms. Remains 48 /48 variables (removed 0) and now considering 24/24 (removed 0) transitions.
[2023-03-07 20:17:27] [INFO ] Invariant cache hit.
[2023-03-07 20:17:27] [INFO ] Implicit Places using invariants in 88 ms returned [4, 6, 10, 30, 39, 41, 46, 47]
Discarding 8 places :
Implicit Place search using SMT only with invariants took 91 ms to find 8 implicit places.
Starting structural reductions in LIVENESS mode, iteration 1 : 40/48 places, 24/24 transitions.
Drop transitions removed 8 transitions
Trivial Post-agglo rules discarded 8 transitions
Performed 8 trivial Post agglomeration. Transition count delta: 8
Iterating post reduction 0 with 8 rules applied. Total rules applied 8 place count 40 transition count 16
Reduce places removed 8 places and 0 transitions.
Iterating post reduction 1 with 8 rules applied. Total rules applied 16 place count 32 transition count 16
Applied a total of 16 rules in 2 ms. Remains 32 /40 variables (removed 8) and now considering 16/24 (removed 8) transitions.
// Phase 1: matrix 16 rows 32 cols
[2023-03-07 20:17:27] [INFO ] Computed 17 place invariants in 1 ms
[2023-03-07 20:17:27] [INFO ] Implicit Places using invariants in 54 ms returned []
[2023-03-07 20:17:27] [INFO ] Invariant cache hit.
[2023-03-07 20:17:28] [INFO ] Implicit Places using invariants and state equation in 78 ms returned []
Implicit Place search using SMT with State Equation took 135 ms to find 0 implicit places.
Starting structural reductions in LIVENESS mode, iteration 2 : 32/48 places, 16/24 transitions.
Finished structural reductions in LIVENESS mode , in 2 iterations and 230 ms. Remains : 32/48 places, 16/24 transitions.
Initial state reduction rules removed 8 formulas.
Finished random walk after 13 steps, including 0 resets, run visited all 8 properties in 9 ms. (steps per millisecond=1 )
[2023-03-07 20:17:28] [INFO ] Flatten gal took : 30 ms
[2023-03-07 20:17:28] [INFO ] Flatten gal took : 7 ms
[2023-03-07 20:17:28] [INFO ] Time to serialize gal into /tmp/ReachabilityCardinality8878560061073271826.gal : 4 ms
[2023-03-07 20:17:28] [INFO ] Time to serialize properties into /tmp/ReachabilityCardinality4381891845589975259.prop : 1 ms
Invoking ITS tools like this :cd /home/mcc/execution;'/home/mcc/BenchKit/itstools/itstools/plugins/fr.lip6.move.gal.itstools.binaries_1.0.0.202303021504/bin/its-reach-linux64' '--gc-threshold' '2000000' '--quiet' '-i' '/tmp/ReachabilityCardinality8878560061073271826.gal' '-t' 'CGAL' '-reachable-file' '/tmp/ReachabilityCardinality4381891845589975259.prop' '--nowitness' '--gen-order' 'FOLLOW'

ITS runner failed with exception null
java.lang.InterruptedException
at java.base/java.lang.Object.wait(Native Method)
at java.base/java.lang.Thread.join(Thread.java:1304)
at java.base/java.lang.Thread.join(Thread.java:1372)
at fr.lip6.move.gal.application.runner.AbstractRunner.join(AbstractRunner.java:27)
at fr.lip6.move.gal.application.runner.its.ITSRunner.join(ITSRunner.java:177)
at fr.lip6.move.gal.application.solver.global.GlobalPropertySolver.verifyWithSDD(GlobalPropertySolver.java:675)
at fr.lip6.move.gal.application.solver.ReachabilitySolver.lambda$2(ReachabilitySolver.java:63)
at java.base/java.lang.Thread.run(Thread.java:833)
Able to resolve query QuasiLiveness after proving 16 properties.
Starting structural reductions in LIVENESS mode, iteration 0 : 48/48 places, 24/24 transitions.
Applied a total of 0 rules in 1 ms. Remains 48 /48 variables (removed 0) and now considering 24/24 (removed 0) transitions.
// Phase 1: matrix 24 rows 48 cols
[2023-03-07 20:17:28] [INFO ] Computed 25 place invariants in 2 ms
its-reach command run as :

/home/mcc/BenchKit/itstools/itstools/plugins/fr.lip6.move.gal.itstools.binaries_1.0.0.202303021504/bin/its-reach-linux64 --gc-threshold 2000000 --quiet ...328
Loading property file /tmp/ReachabilityCardinality4381891845589975259.prop.
Found states matching all0 target predicate
Will report total states built up to this point. Computation was interrupted after 3 fixpoint passes
Model ,|S| ,Time ,Mem(kb) ,fin. SDD ,fin. DDD ,peak SDD ,peak DDD ,SDD Hom ,SDD cache peak ,DDD Hom ,DDD cachepeak ,SHom cache
petri\_inst\_inst,5,0.018204,3460,2,42,5,125,6,0,147,50,0
Total reachable state count : 5

[2023-03-07 20:17:28] [INFO ] Implicit Places using invariants in 95 ms returned [4, 6, 10, 30, 39, 41, 46, 47]
Discarding 8 places :
Implicit Place search using SMT only with invariants took 97 ms to find 8 implicit places.
Starting structural reductions in LIVENESS mode, iteration 1 : 40/48 places, 24/24 transitions.
Drop transitions removed 8 transitions
Trivial Post-agglo rules discarded 8 transitions
Performed 8 trivial Post agglomeration. Transition count delta: 8
Iterating post reduction 0 with 8 rules applied. Total rules applied 8 place count 40 transition count 16
Reduce places removed 8 places and 0 transitions.
Iterating post reduction 1 with 8 rules applied. Total rules applied 16 place count 32 transition count 16
Applied a total of 16 rules in 2 ms. Remains 32 /40 variables (removed 8) and now considering 16/24 (removed 8) transitions.
// Phase 1: matrix 16 rows 32 cols
[2023-03-07 20:17:28] [INFO ] Computed 17 place invariants in 2 ms
[2023-03-07 20:17:28] [INFO ] Implicit Places using invariants in 150 ms returned []
[2023-03-07 20:17:28] [INFO ] Invariant cache hit.
[2023-03-07 20:17:28] [INFO ] Implicit Places using invariants and state equation in 90 ms returned []
Implicit Place search using SMT with State Equation took 242 ms to find 0 implicit places.
Starting structural reductions in LIVENESS mode, iteration 2 : 32/48 places, 16/24 transitions.
Finished structural reductions in LIVENESS mode , in 2 iterations and 342 ms. Remains : 32/48 places, 16/24 transitions.
[2023-03-07 20:17:28] [INFO ] Flatten gal took : 8 ms
[2023-03-07 20:17:28] [INFO ] Flatten gal took : 6 ms
[2023-03-07 20:17:28] [INFO ] Time to serialize gal into /tmp/CTLFireability5943294582175380679.gal : 1 ms
[2023-03-07 20:17:28] [INFO ] Time to serialize properties into /tmp/CTLFireability2193610584760942138.ctl : 1 ms
Invoking ITS tools like this :cd /home/mcc/execution;'/home/mcc/BenchKit/itstools/itstools/plugins/fr.lip6.move.gal.itstools.binaries_1.0.0.202303021504/bin/its-ctl-linux64' '--gc-threshold' '2000000' '--quiet' '-i' '/tmp/CTLFireability5943294582175380679.gal' '-t' 'CGAL' '-ctl' '/tmp/CTLFireability2193610584760942138.ctl' '--gen-order' 'FOLLOW'

its-ctl command run as :

/home/mcc/BenchKit/itstools/itstools/plugins/fr.lip6.move.gal.itstools.binaries_1.0.0.202303021504/bin/its-ctl-linux64 --gc-threshold 2000000 --quiet -...283
No direction supplied, using forward translation only.
Parsed 16 CTL formulae.
Model ,|S| ,Time ,Mem(kb) ,fin. SDD ,fin. DDD ,peak SDD ,peak DDD ,SDD Hom ,SDD cache peak ,DDD Hom ,DDD cachepeak ,SHom cache
reachable,12870,0.026394,3708,2,225,5,1913,6,0,147,1843,0


Converting to forward existential form...Done !
original formula: AG(EF(((F19>=1)&&(Section_18>=1))))
=> equivalent forward existential formula: [(FwdU(Init,TRUE) * !(E(TRUE U ((F19>=1)&&(Section_18>=1)))))] = FALSE
Reverse transition relation is exact ! Faster fixpoint algorithm enabled.
(forward)formula 0,1,0.043037,4224,1,0,6,4148,14,0,672,1843,5
Formula is TRUE !

***************************************

original formula: AG(EF(((Section_11>=1)&&(F12>=1))))
=> equivalent forward existential formula: [(FwdU(Init,TRUE) * !(E(TRUE U ((Section_11>=1)&&(F12>=1)))))] = FALSE
(forward)formula 1,1,0.045833,4488,1,0,7,4462,15,0,673,1843,8
Formula is TRUE !

***************************************

original formula: AG(EF(((F7>=1)&&(Section_6>=1))))
=> equivalent forward existential formula: [(FwdU(Init,TRUE) * !(E(TRUE U ((F7>=1)&&(Section_6>=1)))))] = FALSE
(forward)formula 2,1,0.049422,4488,1,0,8,5045,16,0,674,2066,11
Formula is TRUE !

***************************************

original formula: AG(EF(((Section_9>=1)&&(F10>=1))))
=> equivalent forward existential formula: [(FwdU(Init,TRUE) * !(E(TRUE U ((Section_9>=1)&&(F10>=1)))))] = FALSE
(forward)formula 3,1,0.052458,4488,1,0,9,5449,17,0,675,2435,14
Formula is TRUE !

***************************************

original formula: AG(EF(((F9>=1)&&(Section_8>=1))))
=> equivalent forward existential formula: [(FwdU(Init,TRUE) * !(E(TRUE U ((F9>=1)&&(Section_8>=1)))))] = FALSE
(forward)formula 4,1,0.055856,4752,1,0,10,5947,18,0,676,2898,17
Formula is TRUE !

***************************************

original formula: AG(EF(((F21>=1)&&(Section_20>=1))))
=> equivalent forward existential formula: [(FwdU(Init,TRUE) * !(E(TRUE U ((F21>=1)&&(Section_20>=1)))))] = FALSE
(forward)formula 5,1,0.057261,4752,1,0,11,5986,19,0,677,2928,20
Formula is TRUE !

***************************************

original formula: AG(EF(((Section_23>=1)&&(F24>=1))))
=> equivalent forward existential formula: [(FwdU(Init,TRUE) * !(E(TRUE U ((Section_23>=1)&&(F24>=1)))))] = FALSE
(forward)formula 6,1,0.058512,5016,1,0,12,5989,20,0,678,2931,23
Formula is TRUE !

***************************************

original formula: AG(EF(((F16>=1)&&(Section_15>=1))))
=> equivalent forward existential formula: [(FwdU(Init,TRUE) * !(E(TRUE U ((F16>=1)&&(Section_15>=1)))))] = FALSE
(forward)formula 7,1,0.060288,5016,1,0,13,6148,21,0,679,3054,26
Formula is TRUE !

***************************************

original formula: AG(EF(((Section_2>=1)&&(F3>=1))))
=> equivalent forward existential formula: [(FwdU(Init,TRUE) * !(E(TRUE U ((Section_2>=1)&&(F3>=1)))))] = FALSE
(forward)formula 8,1,0.066229,5016,1,0,14,6767,22,0,680,3816,29
Formula is TRUE !

***************************************

original formula: AG(EF(((Section_24>=1)&&(F1>=1))))
=> equivalent forward existential formula: [(FwdU(Init,TRUE) * !(E(TRUE U ((Section_24>=1)&&(F1>=1)))))] = FALSE
(forward)formula 9,1,0.067165,5016,1,0,15,6768,23,0,681,3817,32
Formula is TRUE !

***************************************

original formula: AG(EF(((Section_12>=1)&&(F13>=1))))
=> equivalent forward existential formula: [(FwdU(Init,TRUE) * !(E(TRUE U ((Section_12>=1)&&(F13>=1)))))] = FALSE
(forward)formula 10,1,0.069209,5016,1,0,16,7002,24,0,682,4015,35
Formula is TRUE !

***************************************

original formula: AG(EF(((F6>=1)&&(Section_5>=1))))
=> equivalent forward existential formula: [(FwdU(Init,TRUE) * !(E(TRUE U ((F6>=1)&&(Section_5>=1)))))] = FALSE
(forward)formula 11,1,0.073391,5016,1,0,17,7661,25,0,683,4645,38
Formula is TRUE !

***************************************

original formula: AG(EF(((F18>=1)&&(Section_17>=1))))
=> equivalent forward existential formula: [(FwdU(Init,TRUE) * !(E(TRUE U ((F18>=1)&&(Section_17>=1)))))] = FALSE
(forward)formula 12,1,0.074975,5280,1,0,18,7767,26,0,684,4726,41
Formula is TRUE !

***************************************

original formula: AG(EF(((Section_21>=1)&&(F22>=1))))
=> equivalent forward existential formula: [(FwdU(Init,TRUE) * !(E(TRUE U ((Section_21>=1)&&(F22>=1)))))] = FALSE
(forward)formula 13,1,0.075898,5280,1,0,19,7783,27,0,685,4738,44
Formula is TRUE !

***************************************

original formula: AG(EF(((Section_3>=1)&&(F4>=1))))
=> equivalent forward existential formula: [(FwdU(Init,TRUE) * !(E(TRUE U ((Section_3>=1)&&(F4>=1)))))] = FALSE
(forward)formula 14,1,0.083367,5280,1,0,20,8509,28,0,686,5441,47
Formula is TRUE !

***************************************

original formula: AG(EF(((Section_14>=1)&&(F15>=1))))
=> equivalent forward existential formula: [(FwdU(Init,TRUE) * !(E(TRUE U ((Section_14>=1)&&(F15>=1)))))] = FALSE
(forward)formula 15,1,0.085261,5280,1,0,21,8720,29,0,687,5603,50
Formula is TRUE !

***************************************

Able to resolve query Liveness after proving 16 properties.
FORMULA Liveness TRUE TECHNIQUES DECISION_DIAGRAMS TOPOLOGICAL
Total runtime 5356 ms.

BK_STOP 1678220250102

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

+ export BINDIR=/home/mcc/BenchKit/bin//../itstools/bin//../
+ BINDIR=/home/mcc/BenchKit/bin//../itstools/bin//../
++ pwd
+ export MODEL=/home/mcc/execution
+ MODEL=/home/mcc/execution
+ [[ Liveness = StateSpace ]]
+ /home/mcc/BenchKit/bin//../itstools/bin//..//runeclipse.sh /home/mcc/execution Liveness -its -ltsmin -greatspnpath /home/mcc/BenchKit/bin//../itstools/bin//..//greatspn/ -order META -manyOrder -smt -timeout 1800
+ 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//../itstools/bin//..//itstools/plugins/fr.lip6.move.gal.application.pnmcc_1.0.0.202303021504.jar
+ VERSION=202303021504
+ echo 'Running Version 202303021504'
+ /home/mcc/BenchKit/bin//../itstools/bin//..//itstools/its-tools -pnfolder /home/mcc/execution -examination Liveness -its -ltsmin -greatspnpath /home/mcc/BenchKit/bin//../itstools/bin//..//greatspn/ -order META -manyOrder -smt -timeout 1800

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="CircularTrains-PT-024"
export BK_EXAMINATION="Liveness"
export BK_TOOL="itstools"
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 itstools"
echo " Input is CircularTrains-PT-024, examination is Liveness"
echo " Time confinement is $BK_TIME_CONFINEMENT seconds"
echo " Memory confinement is 16384 MBytes"
echo " Number of cores is 4"
echo " Run identifier is r083-smll-167814405600099"
echo "====================================================================="
echo
echo "--------------------"
echo "preparation of the directory to be used:"

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