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

About the Execution of 2022-gold for SafeBus-PT-20

Execution Summary
Max Memory
Used (MB)
Time wait (ms) CPU Usage (ms) I/O Wait (ms) Computed Result Execution
Status
8449.256 1800000.00 5851806.00 1760.70 [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/mcc2023-input.r384-smll-167891833800181.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 gold2022
Input is SafeBus-PT-20, examination is ReachabilityDeadlock
Time confinement is 1800 seconds
Memory confinement is 16384 MBytes
Number of cores is 4
Run identifier is r384-smll-167891833800181
=====================================================================

--------------------
preparation of the directory to be used:
/home/mcc/execution
total 21M
-rw-r--r-- 1 mcc users 94K Feb 26 02:45 CTLCardinality.txt
-rw-r--r-- 1 mcc users 478K Feb 26 02:45 CTLCardinality.xml
-rw-r--r-- 1 mcc users 709K Feb 26 02:36 CTLFireability.txt
-rw-r--r-- 1 mcc users 2.9M Feb 26 02:36 CTLFireability.xml
-rw-r--r-- 1 mcc users 4.2K Jan 29 11:41 GenericPropertiesDefinition.xml
-rw-r--r-- 1 mcc users 38K Feb 25 16:49 LTLCardinality.txt
-rw-r--r-- 1 mcc users 150K Feb 25 16:49 LTLCardinality.xml
-rw-r--r-- 1 mcc users 102K Feb 25 16:49 LTLFireability.txt
-rw-r--r-- 1 mcc users 391K Feb 25 16:49 LTLFireability.xml
-rw-r--r-- 1 mcc users 85K Feb 26 04:06 ReachabilityCardinality.txt
-rw-r--r-- 1 mcc users 483K Feb 26 04:06 ReachabilityCardinality.xml
-rw-r--r-- 1 mcc users 1.5M Feb 26 04:00 ReachabilityFireability.txt
-rw-r--r-- 1 mcc users 5.8M Feb 26 04:00 ReachabilityFireability.xml
-rw-r--r-- 1 mcc users 7.0K Feb 25 16:49 UpperBounds.txt
-rw-r--r-- 1 mcc users 20K Feb 25 16:49 UpperBounds.xml
-rw-r--r-- 1 mcc users 5 Mar 5 18:23 equiv_col
-rw-r--r-- 1 mcc users 3 Mar 5 18:23 instance
-rw-r--r-- 1 mcc users 6 Mar 5 18:23 iscolored
-rw-r--r-- 1 mcc users 7.8M 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 booleans
BOOL_VECTOR

FORMULA_NAME ReachabilityDeadlock

=== Now, execution of the tool begins

BK_START 1679141193673

Running Version 202205111006
[2023-03-18 12:06:35] [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]
[2023-03-18 12:06:35] [INFO ] Parsing pnml file : /home/mcc/execution/model.pnml
[2023-03-18 12:06:37] [INFO ] Load time of PNML (sax parser for PT used): 1065 ms
[2023-03-18 12:06:37] [INFO ] Transformed 1026 places.
[2023-03-18 12:06:37] [INFO ] Transformed 10461 transitions.
[2023-03-18 12:06:37] [INFO ] Parsed PT model containing 1026 places and 10461 transitions in 1331 ms.
Parsed 1 properties from file /home/mcc/execution/ReachabilityDeadlock.xml in 7 ms.
Working with output stream class java.io.PrintStream
Reduce places removed 20 places and 0 transitions.
Built sparse matrix representations for Structural reductions in 22 ms.21921KB memory used
Starting structural reductions in DEADLOCKS mode, iteration 0 : 1006/1006 places, 10461/10461 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 7877 ms. Remains 1006 /1006 variables (removed 0) and now considering 10461/10461 (removed 0) transitions.
Finished structural reductions, in 1 iterations. Remains : 1006/1006 places, 10461/10461 transitions.
Starting structural reductions in DEADLOCKS mode, iteration 0 : 1006/1006 places, 10461/10461 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 7148 ms. Remains 1006 /1006 variables (removed 0) and now considering 10461/10461 (removed 0) transitions.
[2023-03-18 12:06:52] [INFO ] Flow matrix only has 2482 transitions (discarded 7979 similar events)
// Phase 1: matrix 2482 rows 1006 cols
[2023-03-18 12:06:52] [INFO ] Computed 85 place invariants in 272 ms
[2023-03-18 12:06:56] [INFO ] Implicit Places using invariants in 3811 ms returned [928]
Discarding 1 places :
Implicit Place search using SMT only with invariants took 3908 ms to find 1 implicit places.
Starting structural reductions in DEADLOCKS mode, iteration 1 : 1005/1006 places, 10461/10461 transitions.
Computed a total of 0 stabilizing places and 0 stable transitions
Computed a total of 0 stabilizing places and 0 stable transitions
Performed 1 Pre agglomeration using Quasi-Persistent + Divergent Free condition..
Pre-agglomeration after 0 with 1 Pre rules applied. Total rules applied 0 place count 1005 transition count 10460
Deduced a syphon composed of 1 places in 5 ms
Reduce places removed 1 places and 0 transitions.
Iterating global reduction 0 with 2 rules applied. Total rules applied 2 place count 1004 transition count 10460
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 2 rules in 7076 ms. Remains 1004 /1005 variables (removed 1) and now considering 10460/10461 (removed 1) transitions.
[2023-03-18 12:07:03] [INFO ] Flow matrix only has 2481 transitions (discarded 7979 similar events)
// Phase 1: matrix 2481 rows 1004 cols
[2023-03-18 12:07:03] [INFO ] Computed 84 place invariants in 175 ms
[2023-03-18 12:07:07] [INFO ] Implicit Places using invariants in 4343 ms returned [926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944]
Discarding 19 places :
Implicit Place search using SMT only with invariants took 4357 ms to find 19 implicit places.
Starting structural reductions in DEADLOCKS mode, iteration 2 : 985/1006 places, 10460/10461 transitions.
Computed a total of 0 stabilizing places and 0 stable transitions
Computed a total of 0 stabilizing places and 0 stable transitions
Performed 19 Pre agglomeration using Quasi-Persistent + Divergent Free condition..
Pre-agglomeration after 0 with 19 Pre rules applied. Total rules applied 0 place count 985 transition count 10441
Deduced a syphon composed of 19 places in 7 ms
Reduce places removed 19 places and 0 transitions.
Iterating global reduction 0 with 38 rules applied. Total rules applied 38 place count 966 transition count 10441
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 38 rules in 6944 ms. Remains 966 /985 variables (removed 19) and now considering 10441/10460 (removed 19) transitions.
[2023-03-18 12:07:14] [INFO ] Flow matrix only has 2462 transitions (discarded 7979 similar events)
// Phase 1: matrix 2462 rows 966 cols
[2023-03-18 12:07:14] [INFO ] Computed 65 place invariants in 68 ms
[2023-03-18 12:07:18] [INFO ] Implicit Places using invariants in 4084 ms returned []
Implicit Place search using SMT only with invariants took 4085 ms to find 0 implicit places.
Starting structural reductions in DEADLOCKS mode, iteration 3 : 966/1006 places, 10441/10461 transitions.
Finished structural reductions, in 3 iterations. Remains : 966/1006 places, 10441/10461 transitions.
Interrupted Random walk after 688133 steps, including 0 resets, run timeout after 30001 ms. (steps per millisecond=22 )
Interrupted Random directed walk after 1109161 steps, including 0 resets, run timeout after 30001 ms. (steps per millisecond=36 )
[2023-03-18 12:08:18] [INFO ] Flow matrix only has 2462 transitions (discarded 7979 similar events)
// Phase 1: matrix 2462 rows 966 cols
[2023-03-18 12:08:18] [INFO ] Computed 65 place invariants in 37 ms
[2023-03-18 12:08:21] [INFO ] [Real]Absence check using 24 positive place invariants in 60 ms returned sat
[2023-03-18 12:08:27] [INFO ] [Real]Absence check using 24 positive and 41 generalized place invariants in 5486 ms returned sat
[2023-03-18 12:08:27] [INFO ] [Real]Adding state equation constraints to refine reachable states.
[2023-03-18 12:08:33] [INFO ] [Real]Absence check using state equation in 5872 ms returned sat
[2023-03-18 12:08:33] [INFO ] Solution in real domain found non-integer solution.
[2023-03-18 12:08:36] [INFO ] [Nat]Absence check using 24 positive place invariants in 141 ms returned sat
[2023-03-18 12:08:38] [INFO ] [Nat]Absence check using 24 positive and 41 generalized place invariants in 1817 ms returned sat
[2023-03-18 12:08:38] [INFO ] [Nat]Adding state equation constraints to refine reachable states.
[2023-03-18 12:08:42] [INFO ] [Nat]Absence check using state equation in 3863 ms returned sat
[2023-03-18 12:08:42] [INFO ] State equation strengthened by 421 read => feed constraints.
[2023-03-18 12:08:45] [INFO ] [Nat]Added 421 Read/Feed constraints in 2481 ms returned sat
[2023-03-18 12:08:46] [INFO ] Deduced a trap composed of 81 places in 706 ms of which 5 ms to minimize.
[2023-03-18 12:08:46] [INFO ] Deduced a trap composed of 99 places in 631 ms of which 3 ms to minimize.
[2023-03-18 12:08:47] [INFO ] Deduced a trap composed of 81 places in 455 ms of which 1 ms to minimize.
[2023-03-18 12:08:48] [INFO ] Deduced a trap composed of 81 places in 576 ms of which 5 ms to minimize.
[2023-03-18 12:08:50] [INFO ] Trap strengthening (SAT) tested/added 5/4 trap constraints in 5587 ms
[2023-03-18 12:08:51] [INFO ] Computed and/alt/rep : 40/60/40 causal constraints (skipped 2402 transitions) in 876 ms.
[2023-03-18 12:08:52] [INFO ] Added : 1 causal constraints over 1 iterations in 1427 ms. Result :sat
Attempting to minimize the solution found.
Minimization took 26 ms.
Parikh directed walk for 66100 steps, including 1000 resets, run took 3057 ms. (steps per millisecond=21 )
Random directed walk for 500007 steps, including 0 resets, run took 13166 ms (no deadlock found). (steps per millisecond=37 )
Random walk for 500000 steps, including 0 resets, run took 20534 ms (no deadlock found). (steps per millisecond=24 )
Random directed walk for 500000 steps, including 0 resets, run took 13013 ms (no deadlock found). (steps per millisecond=38 )
Random walk for 500000 steps, including 0 resets, run took 22212 ms (no deadlock found). (steps per millisecond=22 )
Starting structural reductions in DEADLOCKS mode, iteration 0 : 966/966 places, 10441/10441 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 6629 ms. Remains 966 /966 variables (removed 0) and now considering 10441/10441 (removed 0) transitions.
[2023-03-18 12:10:10] [INFO ] Flow matrix only has 2462 transitions (discarded 7979 similar events)
// Phase 1: matrix 2462 rows 966 cols
[2023-03-18 12:10:11] [INFO ] Computed 65 place invariants in 39 ms
[2023-03-18 12:10:14] [INFO ] Implicit Places using invariants in 3948 ms returned []
Implicit Place search using SMT only with invariants took 3949 ms to find 0 implicit places.
[2023-03-18 12:10:14] [INFO ] Flow matrix only has 2462 transitions (discarded 7979 similar events)
// Phase 1: matrix 2462 rows 966 cols
[2023-03-18 12:10:14] [INFO ] Computed 65 place invariants in 35 ms
[2023-03-18 12:10:24] [INFO ] Dead Transitions using invariants and state equation in 9269 ms found 400 transitions.
Found 400 dead transitions using SMT.
Drop transitions removed 400 transitions
Dead transitions reduction (with SMT) removed 400 transitions
Starting structural reductions in DEADLOCKS mode, iteration 1 : 966/966 places, 10041/10441 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 5872 ms. Remains 966 /966 variables (removed 0) and now considering 10041/10041 (removed 0) transitions.
Finished structural reductions, in 2 iterations. Remains : 966/966 places, 10041/10441 transitions.
Interrupted Random walk after 730277 steps, including 0 resets, run timeout after 30001 ms. (steps per millisecond=24 )
Interrupted Random directed walk after 1106334 steps, including 0 resets, run timeout after 30001 ms. (steps per millisecond=36 )
[2023-03-18 12:11:30] [INFO ] Flow matrix only has 2462 transitions (discarded 7579 similar events)
// Phase 1: matrix 2462 rows 966 cols
[2023-03-18 12:11:30] [INFO ] Computed 65 place invariants in 34 ms
[2023-03-18 12:11:33] [INFO ] [Real]Absence check using 24 positive place invariants in 62 ms returned sat
[2023-03-18 12:11:34] [INFO ] [Real]Absence check using 24 positive and 41 generalized place invariants in 1987 ms returned sat
[2023-03-18 12:11:34] [INFO ] [Real]Adding state equation constraints to refine reachable states.
[2023-03-18 12:11:39] [INFO ] [Real]Absence check using state equation in 4233 ms returned sat
[2023-03-18 12:11:39] [INFO ] Solution in real domain found non-integer solution.
[2023-03-18 12:11:42] [INFO ] [Nat]Absence check using 24 positive place invariants in 89 ms returned sat
[2023-03-18 12:11:44] [INFO ] [Nat]Absence check using 24 positive and 41 generalized place invariants in 1966 ms returned sat
[2023-03-18 12:11:44] [INFO ] [Nat]Adding state equation constraints to refine reachable states.
[2023-03-18 12:11:48] [INFO ] [Nat]Absence check using state equation in 4546 ms returned sat
[2023-03-18 12:11:48] [INFO ] State equation strengthened by 421 read => feed constraints.
[2023-03-18 12:11:50] [INFO ] [Nat]Added 421 Read/Feed constraints in 1995 ms returned sat
[2023-03-18 12:11:51] [INFO ] Deduced a trap composed of 99 places in 547 ms of which 1 ms to minimize.
[2023-03-18 12:11:52] [INFO ] Deduced a trap composed of 81 places in 550 ms of which 1 ms to minimize.
[2023-03-18 12:11:52] [INFO ] Trap strengthening (SAT) tested/added 3/2 trap constraints in 2031 ms
[2023-03-18 12:11:53] [INFO ] Computed and/alt/rep : 40/60/40 causal constraints (skipped 2402 transitions) in 505 ms.
[2023-03-18 12:11:53] [INFO ] Added : 0 causal constraints over 0 iterations in 824 ms. Result :sat
Attempting to minimize the solution found.
Minimization took 37 ms.
Parikh directed walk for 44600 steps, including 1000 resets, run took 1959 ms. (steps per millisecond=22 )
Random directed walk for 500000 steps, including 0 resets, run took 13200 ms (no deadlock found). (steps per millisecond=37 )
Random walk for 500000 steps, including 0 resets, run took 20657 ms (no deadlock found). (steps per millisecond=24 )
Random directed walk for 500001 steps, including 0 resets, run took 12975 ms (no deadlock found). (steps per millisecond=38 )
Random walk for 500000 steps, including 0 resets, run took 20508 ms (no deadlock found). (steps per millisecond=24 )
[2023-03-18 12:13:04] [INFO ] Flatten gal took : 1236 ms
Using solver Z3 to compute partial order matrices.
Built C files in :
/tmp/ltsmin5859101973805610444
[2023-03-18 12:13:05] [INFO ] Too many transitions (10461) to apply POR reductions. Disabling POR matrices.
[2023-03-18 12:13:05] [INFO ] Built C files in 291ms conformant to PINS (ltsmin variant)in folder :/tmp/ltsmin5859101973805610444
Running compilation step : cd /tmp/ltsmin5859101973805610444;'/home/mcc/BenchKit/itstools/plugins/fr.lip6.move.gal.ltsmin.binaries_1.0.0.202205111006/bin/limit_time.pl' '360' 'gcc' '-c' '-I/home/mcc/BenchKit/itstools/plugins/fr.lip6.move.gal.ltsmin.binaries_1.0.0.202205111006/bin/include/' '-I.' '-std=c99' '-fPIC' '-O0' 'model.c'
[2023-03-18 12:13:05] [INFO ] Applying decomposition
[2023-03-18 12:13:06] [INFO ] Flatten gal took : 660 ms
Converted graph to binary with : '/home/mcc/BenchKit/itstools/plugins/fr.lip6.move.gal.louvain.binaries_1.0.0.202205111006/bin/convert-linux64' '-i' '/tmp/graph6950634812564411008.txt' '-o' '/tmp/graph6950634812564411008.bin' '-w' '/tmp/graph6950634812564411008.weights'
Built communities with : '/home/mcc/BenchKit/itstools/plugins/fr.lip6.move.gal.louvain.binaries_1.0.0.202205111006/bin/louvain-linux64' '/tmp/graph6950634812564411008.bin' '-l' '-1' '-v' '-w' '/tmp/graph6950634812564411008.weights' '-q' '0' '-e' '0.001'
[2023-03-18 12:13:08] [INFO ] Decomposing Gal with order
[2023-03-18 12:13:08] [INFO ] Rewriting arrays to variables to allow decomposition.
[2023-03-18 12:13:12] [INFO ] Removed a total of 29028 redundant transitions.
[2023-03-18 12:13:12] [INFO ] Flatten gal took : 3890 ms
[2023-03-18 12:13:14] [INFO ] Fuse similar labels procedure discarded/fused a total of 1865 labels/synchronizations in 650 ms.
[2023-03-18 12:13:14] [INFO ] Time to serialize gal into /tmp/ReachabilityDeadlock9705674434289819274.gal : 99 ms
Invoking ITS tools like this :cd /home/mcc/execution;'/home/mcc/BenchKit/itstools/plugins/fr.lip6.move.gal.itstools.binaries_1.0.0.202205111006/bin/its-ctl-linux64' '--gc-threshold' '2000000' '--quiet' '-i' '/tmp/ReachabilityDeadlock9705674434289819274.gal' '-t' 'CGAL' '-ctl' 'DEADLOCK'

its-ctl command run as :

/home/mcc/BenchKit/itstools/plugins/fr.lip6.move.gal.itstools.binaries_1.0.0.202205111006/bin/its-ctl-linux64 --gc-threshold 2000000 --quiet -i /tmp/R...225
No direction supplied, using forward translation only.
Compilation finished in 109669 ms.
Running link step : cd /tmp/ltsmin5859101973805610444;'gcc' '-shared' '-o' 'gal.so' 'model.o'
Link finished in 146 ms.
Running LTSmin : cd /tmp/ltsmin5859101973805610444;'/home/mcc/BenchKit/itstools/plugins/fr.lip6.move.gal.ltsmin.binaries_1.0.0.202205111006/bin/pins2lts-mc-linux64' './gal.so' '--threads=8' '-p' '--pins-guards' '--when' '-d'
Detected timeout of ITS tools.
[2023-03-18 12:25:26] [INFO ] Flatten gal took : 1859 ms
[2023-03-18 12:25:26] [INFO ] Time to serialize gal into /tmp/ReachabilityDeadlock10596599867993287456.gal : 240 ms
Invoking ITS tools like this :cd /home/mcc/execution;'/home/mcc/BenchKit/itstools/plugins/fr.lip6.move.gal.itstools.binaries_1.0.0.202205111006/bin/its-ctl-linux64' '--gc-threshold' '2000000' '--quiet' '-i' '/tmp/ReachabilityDeadlock10596599867993287456.gal' '-t' 'CGAL' '-ctl' 'DEADLOCK' '--gen-order' 'FOLLOW'

its-ctl command run as :

/home/mcc/BenchKit/itstools/plugins/fr.lip6.move.gal.itstools.binaries_1.0.0.202205111006/bin/its-ctl-linux64 --gc-threshold 2000000 --quiet -i /tmp/R...247
No direction supplied, using forward translation only.

BK_TIME_CONFINEMENT_REACHED

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

+ export LANG=C
+ LANG=C
+ 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
+ export PYTHONPATH=/usr/lib/python3.9/site-packages/
+ PYTHONPATH=/usr/lib/python3.9/site-packages/
+ export LD_LIBRARY_PATH=/usr/local/lib:
+ LD_LIBRARY_PATH=/usr/local/lib:
+ [[ -z '' ]]
+ export LTSMIN_MEM_SIZE=8589934592
+ LTSMIN_MEM_SIZE=8589934592
++ sed s/.jar//
++ perl -pe 's/.*\.//g'
++ ls /home/mcc/BenchKit/bin//..//itstools/plugins/fr.lip6.move.gal.application.pnmcc_1.0.0.202205111006.jar
+ VERSION=202205111006
+ echo 'Running Version 202205111006'
+ /home/mcc/BenchKit/bin//..//itstools/its-tools -data @none -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=@none -Xss128m -Xms40m -Xmx8192m

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="SafeBus-PT-20"
export BK_EXAMINATION="ReachabilityDeadlock"
export BK_TOOL="gold2022"
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 gold2022"
echo " Input is SafeBus-PT-20, 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 r384-smll-167891833800181"
echo "====================================================================="
echo
echo "--------------------"
echo "preparation of the directory to be used:"

tar xzf /home/mcc/BenchKit/INPUTS/SafeBus-PT-20.tgz
mv SafeBus-PT-20 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 '' ReachabilityDeadlock.xml | cut -d '>' -f 2 | cut -d '<' -f 1 | sort -u) ; do
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 ;