fond
Model Checking Contest 2022
12th edition, Bergen, Norway, June 21, 2022
Execution of r071-tall-165254780700308
Last Updated
Jun 22, 2022

About the Execution of 2021-gold for Diffusion2D-PT-D40N050

Execution Summary
Max Memory
Used (MB)
Time wait (ms) CPU Usage (ms) I/O Wait (ms) Computed Result Execution
Status
5033.815 182646.00 243389.00 694.50 FTFFFFFFTTTFTTTF normal

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.r071-tall-165254780700308.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 Diffusion2D-PT-D40N050, examination is ReachabilityCardinality
Time confinement is 3600 seconds
Memory confinement is 16384 MBytes
Number of cores is 4
Run identifier is r071-tall-165254780700308
=====================================================================

--------------------
preparation of the directory to be used:
/home/mcc/execution
total 5.1M
-rw-r--r-- 1 mcc users 9.8K Apr 30 04:44 CTLCardinality.txt
-rw-r--r-- 1 mcc users 95K Apr 30 04:44 CTLCardinality.xml
-rw-r--r-- 1 mcc users 5.6K Apr 30 04:43 CTLFireability.txt
-rw-r--r-- 1 mcc users 43K Apr 30 04:43 CTLFireability.xml
-rw-r--r-- 1 mcc users 4.2K May 10 09:33 GenericPropertiesDefinition.xml
-rw-r--r-- 1 mcc users 6.3K May 10 09:33 GenericPropertiesVerdict.xml
-rw-r--r-- 1 mcc users 4.1K May 9 07:38 LTLCardinality.txt
-rw-r--r-- 1 mcc users 25K May 9 07:38 LTLCardinality.xml
-rw-r--r-- 1 mcc users 2.7K May 9 07:38 LTLFireability.txt
-rw-r--r-- 1 mcc users 15K May 9 07:38 LTLFireability.xml
-rw-r--r-- 1 mcc users 12K Apr 30 04:45 ReachabilityCardinality.txt
-rw-r--r-- 1 mcc users 98K Apr 30 04:45 ReachabilityCardinality.xml
-rw-r--r-- 1 mcc users 9.9K Apr 30 04:44 ReachabilityFireability.txt
-rw-r--r-- 1 mcc users 71K Apr 30 04:44 ReachabilityFireability.xml
-rw-r--r-- 1 mcc users 1.8K May 9 07:38 UpperBounds.txt
-rw-r--r-- 1 mcc users 3.9K May 9 07:38 UpperBounds.xml
-rw-r--r-- 1 mcc users 6 May 10 09:33 equiv_col
-rw-r--r-- 1 mcc users 8 May 10 09:33 instance
-rw-r--r-- 1 mcc users 6 May 10 09:33 iscolored
-rw-r--r-- 1 mcc users 4.7M May 10 09:33 model.pnml

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

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

The expected result is a vector of booleans
BOOL_VECTOR

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

=== Now, execution of the tool begins

BK_START 1655070858919

Running Version 0
[2022-06-12 21:54:20] [INFO ] Running its-tools with arguments : [-pnfolder, /home/mcc/execution, -examination, ReachabilityCardinality, -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, 3600]
[2022-06-12 21:54:20] [INFO ] Parsing pnml file : /home/mcc/execution/model.pnml
[2022-06-12 21:54:21] [INFO ] Load time of PNML (sax parser for PT used): 396 ms
[2022-06-12 21:54:21] [INFO ] Transformed 1600 places.
[2022-06-12 21:54:21] [INFO ] Transformed 12324 transitions.
[2022-06-12 21:54:21] [INFO ] Parsed PT model containing 1600 places and 12324 transitions in 488 ms.
Parsed 16 properties from file /home/mcc/execution/ReachabilityCardinality.xml in 16 ms.
Working with output stream class java.io.PrintStream
Incomplete random walk after 10000 steps, including 2 resets, run finished after 20 ms. (steps per millisecond=500 ) properties (out of 16) seen :2
FORMULA Diffusion2D-PT-D40N050-ReachabilityCardinality-15 FALSE TECHNIQUES TOPOLOGICAL RANDOM_WALK
FORMULA Diffusion2D-PT-D40N050-ReachabilityCardinality-01 TRUE TECHNIQUES TOPOLOGICAL RANDOM_WALK
Incomplete Best-First random walk after 10001 steps, including 2 resets, run finished after 56 ms. (steps per millisecond=178 ) properties (out of 14) seen :0
Incomplete Best-First random walk after 10001 steps, including 2 resets, run finished after 10 ms. (steps per millisecond=1000 ) properties (out of 14) seen :0
Incomplete Best-First random walk after 10001 steps, including 2 resets, run finished after 27 ms. (steps per millisecond=370 ) properties (out of 14) seen :0
Incomplete Best-First random walk after 10001 steps, including 2 resets, run finished after 9 ms. (steps per millisecond=1111 ) properties (out of 14) seen :0
Incomplete Best-First random walk after 10001 steps, including 2 resets, run finished after 16 ms. (steps per millisecond=625 ) properties (out of 14) seen :0
Incomplete Best-First random walk after 10001 steps, including 2 resets, run finished after 10 ms. (steps per millisecond=1000 ) properties (out of 14) seen :0
Incomplete Best-First random walk after 10001 steps, including 2 resets, run finished after 18 ms. (steps per millisecond=555 ) properties (out of 14) seen :0
Incomplete Best-First random walk after 10001 steps, including 2 resets, run finished after 10 ms. (steps per millisecond=1000 ) properties (out of 14) seen :0
Incomplete Best-First random walk after 10001 steps, including 2 resets, run finished after 29 ms. (steps per millisecond=344 ) properties (out of 14) seen :0
Incomplete Best-First random walk after 10001 steps, including 2 resets, run finished after 6 ms. (steps per millisecond=1666 ) properties (out of 14) seen :0
Incomplete Best-First random walk after 10001 steps, including 2 resets, run finished after 7 ms. (steps per millisecond=1428 ) properties (out of 14) seen :0
Incomplete Best-First random walk after 10001 steps, including 2 resets, run finished after 10 ms. (steps per millisecond=1000 ) properties (out of 14) seen :0
Incomplete Best-First random walk after 10001 steps, including 2 resets, run finished after 7 ms. (steps per millisecond=1428 ) properties (out of 14) seen :0
Incomplete Best-First random walk after 10001 steps, including 2 resets, run finished after 7 ms. (steps per millisecond=1428 ) properties (out of 14) seen :0
Running SMT prover for 14 properties.
// Phase 1: matrix 12324 rows 1600 cols
[2022-06-12 21:54:21] [INFO ] Computed 1 place invariants in 142 ms
[2022-06-12 21:54:22] [INFO ] SMT Verify possible in real domain returnedunsat :0 sat :0 real:14
[2022-06-12 21:54:23] [INFO ] [Nat]Absence check using 1 positive place invariants in 19 ms returned sat
[2022-06-12 21:54:23] [INFO ] [Nat]Adding state equation constraints to refine reachable states.
[2022-06-12 21:54:37] [INFO ] [Nat]Absence check using state equation in 13847 ms returned unsat :1 sat :13
Attempting to minimize the solution found.
Minimization took 10242 ms.
[2022-06-12 21:54:47] [INFO ] SMT Verify possible in nat domain returned unsat :1 sat :13
FORMULA Diffusion2D-PT-D40N050-ReachabilityCardinality-08 TRUE TECHNIQUES STRUCTURAL_REDUCTION TOPOLOGICAL SAT_SMT
Fused 14 Parikh solutions to 13 different solutions.
Incomplete Parikh walk after 3044900 steps, including 243 resets, run finished after 19392 ms. (steps per millisecond=157 ) properties (out of 13) seen :8 could not realise parikh vector
FORMULA Diffusion2D-PT-D40N050-ReachabilityCardinality-10 TRUE TECHNIQUES TOPOLOGICAL PARIKH_WALK
FORMULA Diffusion2D-PT-D40N050-ReachabilityCardinality-09 TRUE TECHNIQUES TOPOLOGICAL PARIKH_WALK
FORMULA Diffusion2D-PT-D40N050-ReachabilityCardinality-06 FALSE TECHNIQUES TOPOLOGICAL PARIKH_WALK
FORMULA Diffusion2D-PT-D40N050-ReachabilityCardinality-05 FALSE TECHNIQUES TOPOLOGICAL PARIKH_WALK
FORMULA Diffusion2D-PT-D40N050-ReachabilityCardinality-04 FALSE TECHNIQUES TOPOLOGICAL PARIKH_WALK
FORMULA Diffusion2D-PT-D40N050-ReachabilityCardinality-03 FALSE TECHNIQUES TOPOLOGICAL PARIKH_WALK
FORMULA Diffusion2D-PT-D40N050-ReachabilityCardinality-02 FALSE TECHNIQUES TOPOLOGICAL PARIKH_WALK
FORMULA Diffusion2D-PT-D40N050-ReachabilityCardinality-00 FALSE TECHNIQUES TOPOLOGICAL PARIKH_WALK
Incomplete Parikh walk after 1674100 steps, including 191 resets, run finished after 10847 ms. (steps per millisecond=154 ) properties (out of 5) seen :0 could not realise parikh vector
Incomplete Parikh walk after 3500700 steps, including 191 resets, run finished after 29772 ms. (steps per millisecond=117 ) properties (out of 5) seen :0 could not realise parikh vector
Interrupted Parikh walk after 3448812 steps, including 184 resets, run timeout after 30001 ms. (steps per millisecond=114 ) properties (out of 5) seen :0
Incomplete Parikh walk after 1937300 steps, including 159 resets, run finished after 16730 ms. (steps per millisecond=115 ) properties (out of 5) seen :0 could not realise parikh vector
Support contains 58 out of 1600 places. Attempting structural reductions.
Starting structural reductions, iteration 0 : 1600/1600 places, 12324/12324 transitions.
Graph (trivial) has 11488 edges and 1600 vertex of which 1542 / 1600 are part of one of the 1 SCC in 66 ms
Free SCC test removed 1541 places
Drop transitions removed 11488 transitions
Ensure Unique test removed 706 transitions
Reduce isomorphic transitions removed 12194 transitions.
Drop transitions removed 18 transitions
Redundant transition composition rules discarded 18 transitions
Iterating global reduction 0 with 18 rules applied. Total rules applied 19 place count 59 transition count 112
Applied a total of 19 rules in 143 ms. Remains 59 /1600 variables (removed 1541) and now considering 112/12324 (removed 12212) transitions.
Finished structural reductions, in 1 iterations. Remains : 59/1600 places, 112/12324 transitions.
[2022-06-12 21:56:34] [INFO ] Flatten gal took : 41 ms
[2022-06-12 21:56:34] [INFO ] Flatten gal took : 12 ms
[2022-06-12 21:56:34] [INFO ] Time to serialize gal into /tmp/ReachabilityCardinality4063497103440218016.gal : 8 ms
[2022-06-12 21:56:34] [INFO ] Time to serialize properties into /tmp/ReachabilityCardinality8830045224295887253.prop : 1 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-reach-linux64, --gc-threshold, 2000000, --quiet, -i, /tmp/ReachabilityCardinality4063497103440218016.gal, -t, CGAL, -reachable-file, /tmp/ReachabilityCardinality8830045224295887253.prop, --nowitness, --gen-order, FOLLOW], workingDir=/home/mcc/execution]

its-reach command run as :

/home/mcc/BenchKit/itstools/plugins/fr.lip6.move.gal.itstools.binaries_1.0.0.202104292328/bin/its-reach-linux64 --gc-threshold 2000000 --quiet -i /tmp/ReachabilityCardinality4063497103440218016.gal -t CGAL -reachable-file /tmp/ReachabilityCardinality8830045224295887253.prop --nowitness --gen-order FOLLOW
Loading property file /tmp/ReachabilityCardinality8830045224295887253.prop.
SDD proceeding with computation,5 properties remain. new max is 4
SDD size :1 after 29
SDD proceeding with computation,5 properties remain. new max is 8
SDD size :29 after 521
SDD proceeding with computation,5 properties remain. new max is 16
SDD size :521 after 5971
SDD proceeding with computation,5 properties remain. new max is 32
SDD size :5971 after 52359
SDD proceeding with computation,5 properties remain. new max is 64
SDD size :52359 after 2.73439e+08
Reachability property Diffusion2D-PT-D40N050-ReachabilityCardinality-13 is true.
FORMULA Diffusion2D-PT-D40N050-ReachabilityCardinality-13 TRUE TECHNIQUES DECISION_DIAGRAMS TOPOLOGICAL COLLATERAL_PROCESSING
SDD proceeding with computation,4 properties remain. new max is 64
SDD size :2.73439e+08 after 1.15543e+13
SDD proceeding with computation,4 properties remain. new max is 128
SDD size :1.15543e+13 after 2.62523e+16
SDD proceeding with computation,4 properties remain. new max is 256
SDD size :2.62523e+16 after 1.91687e+21
Reachability property Diffusion2D-PT-D40N050-ReachabilityCardinality-14 is true.
FORMULA Diffusion2D-PT-D40N050-ReachabilityCardinality-14 TRUE TECHNIQUES DECISION_DIAGRAMS TOPOLOGICAL COLLATERAL_PROCESSING
Invariant property Diffusion2D-PT-D40N050-ReachabilityCardinality-11 does not hold.
FORMULA Diffusion2D-PT-D40N050-ReachabilityCardinality-11 FALSE TECHNIQUES DECISION_DIAGRAMS TOPOLOGICAL COLLATERAL_PROCESSING
Detected timeout of ITS tools.
[2022-06-12 21:56:49] [INFO ] Flatten gal took : 9 ms
[2022-06-12 21:56:49] [INFO ] Applying decomposition
[2022-06-12 21:56:49] [INFO ] Flatten gal took : 16 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/graph16549219679512820151.txt, -o, /tmp/graph16549219679512820151.bin, -w, /tmp/graph16549219679512820151.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/graph16549219679512820151.bin, -l, -1, -v, -w, /tmp/graph16549219679512820151.weights, -q, 0, -e, 0.001], workingDir=null]
[2022-06-12 21:56:50] [INFO ] Decomposing Gal with order
[2022-06-12 21:56:50] [INFO ] Rewriting arrays to variables to allow decomposition.
[2022-06-12 21:56:50] [INFO ] Removed a total of 52 redundant transitions.
[2022-06-12 21:56:50] [INFO ] Flatten gal took : 87 ms
[2022-06-12 21:56:50] [INFO ] Fuse similar labels procedure discarded/fused a total of 40 labels/synchronizations in 3 ms.
[2022-06-12 21:56:50] [INFO ] Time to serialize gal into /tmp/ReachabilityCardinality11604198204811721905.gal : 4 ms
[2022-06-12 21:56:50] [INFO ] Time to serialize properties into /tmp/ReachabilityCardinality10382785390832283517.prop : 1 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-reach-linux64, --gc-threshold, 2000000, --quiet, -i, /tmp/ReachabilityCardinality11604198204811721905.gal, -t, CGAL, -reachable-file, /tmp/ReachabilityCardinality10382785390832283517.prop, --nowitness, --gen-order, FOLLOW], workingDir=/home/mcc/execution]

its-reach command run as :

/home/mcc/BenchKit/itstools/plugins/fr.lip6.move.gal.itstools.binaries_1.0.0.202104292328/bin/its-reach-linux64 --gc-threshold 2000000 --quiet -i /tmp/ReachabilityCardinality11604198204811721905.gal -t CGAL -reachable-file /tmp/ReachabilityCardinality10382785390832283517.prop --nowitness --gen-order FOLLOW
Loading property file /tmp/ReachabilityCardinality10382785390832283517.prop.
SDD proceeding with computation,2 properties remain. new max is 4
SDD size :1 after 27
SDD proceeding with computation,2 properties remain. new max is 8
SDD size :27 after 455
SDD proceeding with computation,2 properties remain. new max is 16
SDD size :455 after 4936
SDD proceeding with computation,2 properties remain. new max is 32
SDD size :4936 after 40890
SDD proceeding with computation,2 properties remain. new max is 64
SDD size :40890 after 8.34768e+06
SDD proceeding with computation,2 properties remain. new max is 128
SDD size :8.34768e+06 after 6.46626e+11
SDD proceeding with computation,2 properties remain. new max is 256
SDD size :6.46626e+11 after 7.5951e+17
Detected timeout of ITS tools.
Built C files in :
/tmp/ltsmin2502307296992771014
[2022-06-12 21:57:05] [INFO ] Built C files in 8ms conformant to PINS (ltsmin variant)in folder :/tmp/ltsmin2502307296992771014
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/ltsmin2502307296992771014]
Compilation finished in 541 ms.
Running link step : CommandLine [args=[gcc, -shared, -o, gal.so, model.o], workingDir=/tmp/ltsmin2502307296992771014]
Link finished in 63 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, --when, -i, Diffusion2DPTD40N050ReachabilityCardinality07==true], workingDir=/tmp/ltsmin2502307296992771014]
WARNING : LTS min runner thread was asked to interrupt. Dying gracefully.
Incomplete random walk after 1000029 steps, including 2 resets, run finished after 212 ms. (steps per millisecond=4717 ) properties (out of 2) seen :1
FORMULA Diffusion2D-PT-D40N050-ReachabilityCardinality-12 TRUE TECHNIQUES TOPOLOGICAL RANDOM_WALK
Finished Best-First random walk after 1152 steps, including 0 resets, run visited all 1 properties in 2 ms. (steps per millisecond=576 )
FORMULA Diffusion2D-PT-D40N050-ReachabilityCardinality-07 FALSE TECHNIQUES TOPOLOGICAL BESTFIRST_WALK
All properties solved without resorting to model-checking.

BK_STOP 1655071041565

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

+ export BINDIR=/home/mcc/BenchKit/bin//../
+ BINDIR=/home/mcc/BenchKit/bin//../
++ pwd
+ export MODEL=/home/mcc/execution
+ MODEL=/home/mcc/execution
+ [[ ReachabilityCardinality = StateSpace ]]
+ /home/mcc/BenchKit/bin//..//runeclipse.sh /home/mcc/execution ReachabilityCardinality -its -ltsmin -greatspnpath /home/mcc/BenchKit/bin//..//greatspn/ -order META -manyOrder -smt -timeout 3600
+ 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 ReachabilityCardinality -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 3600 -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="Diffusion2D-PT-D40N050"
export BK_EXAMINATION="ReachabilityCardinality"
export BK_TOOL="gold2021"
export BK_RESULT_DIR="/tmp/BK_RESULTS/OUTPUTS"
export BK_TIME_CONFINEMENT="3600"
export BK_MEMORY_CONFINEMENT="16384"
export BK_BIN_PATH="/home/mcc/BenchKit/bin/"

# this is specific to your benchmark or test

export BIN_DIR="$HOME/BenchKit/bin"

# remove the execution directoty if it exists (to avoid increse of .vmdk images)
if [ -d execution ] ; then
rm -rf execution
fi

# this is for BenchKit: explicit launching of the test
echo "====================================================================="
echo " Generated by BenchKit 2-4028"
echo " Executing tool gold2021"
echo " Input is Diffusion2D-PT-D40N050, examination is ReachabilityCardinality"
echo " Time confinement is $BK_TIME_CONFINEMENT seconds"
echo " Memory confinement is 16384 MBytes"
echo " Number of cores is 4"
echo " Run identifier is r071-tall-165254780700308"
echo "====================================================================="
echo
echo "--------------------"
echo "preparation of the directory to be used:"

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