fond
Model Checking Contest 2024
14th edition, Geneva, Switzerland, June 25, 2024
Execution of r627-smll-171774445500057
Last Updated
July 7, 2024

About the Execution of GreatSPN+red for ResIsolation-PT-N09P3

Execution Summary
Max Memory
Used (MB)
Time wait (ms) CPU Usage (ms) I/O Wait (ms) Computed Result Execution
Status
16059.951 3600000.00 10275366.00 3697.40 FTTTTFTTFTTFT?TT normal

Execution Chart

We display below the execution chart for this examination (boot time has been removed).

Trace from the execution

Formatting '/data/fkordon/mcc2024-input.r627-smll-171774445500057.qcow2', fmt=qcow2 size=4294967296 backing_file=/data/fkordon/mcc2024-input.qcow2 backing_fmt=qcow2 cluster_size=65536 lazy_refcounts=off refcount_bits=16
Waiting for the VM to be ready (probing ssh)
.......................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
=====================================================================
Generated by BenchKit 2-5568
Executing tool greatspnxred
Input is ResIsolation-PT-N09P3, examination is CTLCardinality
Time confinement is 3600 seconds
Memory confinement is 16384 MBytes
Number of cores is 4
Run identifier is r627-smll-171774445500057
=====================================================================

--------------------
preparation of the directory to be used:
/home/mcc/execution
total 45M
-rw-r--r-- 1 mcc users 5.0K Jun 7 06:38 CTLCardinality.txt
-rw-r--r-- 1 mcc users 47K Jun 7 06:38 CTLCardinality.xml
-rw-r--r-- 1 mcc users 4.4K Jun 7 06:38 CTLFireability.txt
-rw-r--r-- 1 mcc users 35K Jun 7 06:38 CTLFireability.xml
-rw-r--r-- 1 mcc users 3.7K Jun 7 06:44 LTLCardinality.txt
-rw-r--r-- 1 mcc users 24K Jun 7 06:44 LTLCardinality.xml
-rw-r--r-- 1 mcc users 2.3K Jun 7 06:44 LTLFireability.txt
-rw-r--r-- 1 mcc users 18K Jun 7 06:44 LTLFireability.xml
-rw-r--r-- 1 mcc users 1 Jun 7 06:26 NewModel
-rw-r--r-- 1 mcc users 8.9K Jun 7 06:39 ReachabilityCardinality.txt
-rw-r--r-- 1 mcc users 92K Jun 7 06:39 ReachabilityCardinality.xml
-rw-r--r-- 1 mcc users 11K Jun 7 06:39 ReachabilityFireability.txt
-rw-r--r-- 1 mcc users 86K Jun 7 06:39 ReachabilityFireability.xml
-rw-r--r-- 1 mcc users 1.7K Jun 7 06:43 UpperBounds.txt
-rw-r--r-- 1 mcc users 3.7K Jun 7 06:43 UpperBounds.xml
-rw-r--r-- 1 mcc users 6 Jun 7 06:26 equiv_col
-rw-r--r-- 1 mcc users 6 Jun 7 06:26 instance
-rw-r--r-- 1 mcc users 6 Jun 7 06:26 iscolored
-rw-r--r-- 1 mcc users 45M Jun 7 06:26 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 ResIsolation-PT-N09P3-CTLCardinality-2024-00
FORMULA_NAME ResIsolation-PT-N09P3-CTLCardinality-2024-01
FORMULA_NAME ResIsolation-PT-N09P3-CTLCardinality-2024-02
FORMULA_NAME ResIsolation-PT-N09P3-CTLCardinality-2024-03
FORMULA_NAME ResIsolation-PT-N09P3-CTLCardinality-2024-04
FORMULA_NAME ResIsolation-PT-N09P3-CTLCardinality-2024-05
FORMULA_NAME ResIsolation-PT-N09P3-CTLCardinality-2024-06
FORMULA_NAME ResIsolation-PT-N09P3-CTLCardinality-2024-07
FORMULA_NAME ResIsolation-PT-N09P3-CTLCardinality-2024-08
FORMULA_NAME ResIsolation-PT-N09P3-CTLCardinality-2024-09
FORMULA_NAME ResIsolation-PT-N09P3-CTLCardinality-2024-10
FORMULA_NAME ResIsolation-PT-N09P3-CTLCardinality-2024-11
FORMULA_NAME ResIsolation-PT-N09P3-CTLCardinality-2024-12
FORMULA_NAME ResIsolation-PT-N09P3-CTLCardinality-2024-13
FORMULA_NAME ResIsolation-PT-N09P3-CTLCardinality-2024-14
FORMULA_NAME ResIsolation-PT-N09P3-CTLCardinality-2024-15

=== Now, execution of the tool begins

BK_START 1717793215712

Invoking MCC driver with
BK_TOOL=greatspnxred
BK_EXAMINATION=CTLCardinality
BK_BIN_PATH=/home/mcc/BenchKit/bin/
BK_TIME_CONFINEMENT=3600
BK_INPUT=ResIsolation-PT-N09P3
BK_MEMORY_CONFINEMENT=16384
Applying reductions before tool greatspn
Invoking reducer
Running Version 202405141337
[2024-06-07 20:46:57] [INFO ] Running its-tools with arguments : [-pnfolder, /home/mcc/execution, -examination, CTLCardinality, -timeout, 360, -rebuildPNML]
[2024-06-07 20:46:57] [INFO ] Parsing pnml file : /home/mcc/execution/model.pnml
[2024-06-07 20:47:00] [INFO ] Load time of PNML (sax parser for PT used): 2628 ms
[2024-06-07 20:47:00] [INFO ] Transformed 377 places.
[2024-06-07 20:47:00] [INFO ] Transformed 37202 transitions.
[2024-06-07 20:47:00] [INFO ] Found NUPN structural information;
[2024-06-07 20:47:00] [INFO ] Parsed PT model containing 377 places and 37202 transitions and 885423 arcs in 3134 ms.
Parsed 16 properties from file /home/mcc/execution/CTLCardinality.xml in 21 ms.
FORMULA ResIsolation-PT-N09P3-CTLCardinality-2024-11 FALSE TECHNIQUES TOPOLOGICAL INITIAL_STATE
Support contains 65 out of 377 places. Attempting structural reductions.
Starting structural reductions in LTL mode, iteration 0 : 377/377 places, 37202/37202 transitions.
Reduce places removed 11 places and 0 transitions.
Iterating post reduction 0 with 11 rules applied. Total rules applied 11 place count 366 transition count 37202
Discarding 164 places :
Symmetric choice reduction at 1 with 164 rule applications. Total rules 175 place count 202 transition count 37038
Iterating global reduction 1 with 164 rules applied. Total rules applied 339 place count 202 transition count 37038
Discarding 8 places :
Symmetric choice reduction at 1 with 8 rule applications. Total rules 347 place count 194 transition count 37030
Iterating global reduction 1 with 8 rules applied. Total rules applied 355 place count 194 transition count 37030
Applied a total of 355 rules in 2255 ms. Remains 194 /377 variables (removed 183) and now considering 37030/37202 (removed 172) transitions.
// Phase 1: matrix 37030 rows 194 cols
[2024-06-07 20:47:04] [INFO ] Computed 1 invariants in 1092 ms
[2024-06-07 20:47:19] [INFO ] Implicit Places using invariants in 15813 ms returned []
Implicit Place search using SMT only with invariants took 15870 ms to find 0 implicit places.
Running 37029 sub problems to find dead transitions.
[2024-06-07 20:47:20] [INFO ] Invariant cache hit.
Solver is answering 'unknown', stopping.
After SMT solving in domain Real declared 192/37224 variables, and 0 constraints, problems are : Problem set: 0 solved, 37029 unsolved in 30857 ms.
Refiners :[Positive P Invariants (semi-flows): 0/1 constraints, State Equation: 0/194 constraints, PredecessorRefiner: 37029/96 constraints, Known Traps: 0/0 constraints]
Escalating to Integer solving :Problem set: 0 solved, 37029 unsolved
Solver is answering 'unknown', stopping.
After SMT solving in domain Int declared 192/37224 variables, and 0 constraints, problems are : Problem set: 0 solved, 37029 unsolved in 30500 ms.
Refiners :[Positive P Invariants (semi-flows): 0/1 constraints, State Equation: 0/194 constraints, PredecessorRefiner: 36933/96 constraints, Known Traps: 0/0 constraints]
After SMT, in 838339ms problems are : Problem set: 0 solved, 37029 unsolved
Search for dead transitions found 0 dead transitions in 839077ms
Starting structural reductions in LTL mode, iteration 1 : 194/377 places, 37030/37202 transitions.
Finished structural reductions in LTL mode , in 1 iterations and 857540 ms. Remains : 194/377 places, 37030/37202 transitions.
Support contains 65 out of 194 places after structural reductions.
[2024-06-07 21:01:25] [INFO ] Initial state reduction rules for CTL removed 1 formulas.
[2024-06-07 21:01:28] [INFO ] Flatten gal took : 8184 ms
[2024-06-07 21:01:28] [INFO ] Initial state reduction rules for CTL removed 1 formulas.
FORMULA ResIsolation-PT-N09P3-CTLCardinality-2024-08 FALSE TECHNIQUES TOPOLOGICAL INITIAL_STATE
FORMULA ResIsolation-PT-N09P3-CTLCardinality-2024-00 FALSE TECHNIQUES TOPOLOGICAL INITIAL_STATE
[2024-06-07 21:01:36] [INFO ] Flatten gal took : 8240 ms
[2024-06-07 21:01:48] [INFO ] Input system was already deterministic with 37030 transitions.
Support contains 49 out of 194 places (down from 65) after GAL structural reductions.
RANDOM walk for 40000 steps (8 resets) in 18799 ms. (2 steps per ms) remains 12/23 properties
BEST_FIRST walk for 40004 steps (8 resets) in 2709 ms. (14 steps per ms) remains 12/12 properties
BEST_FIRST walk for 40004 steps (8 resets) in 2511 ms. (15 steps per ms) remains 12/12 properties
BEST_FIRST walk for 40004 steps (8 resets) in 2935 ms. (13 steps per ms) remains 12/12 properties
BEST_FIRST walk for 40002 steps (8 resets) in 3630 ms. (11 steps per ms) remains 12/12 properties
BEST_FIRST walk for 40004 steps (8 resets) in 3405 ms. (11 steps per ms) remains 12/12 properties
BEST_FIRST walk for 40004 steps (8 resets) in 2224 ms. (17 steps per ms) remains 12/12 properties
BEST_FIRST walk for 40004 steps (8 resets) in 3192 ms. (12 steps per ms) remains 12/12 properties
BEST_FIRST walk for 40004 steps (8 resets) in 2619 ms. (15 steps per ms) remains 12/12 properties
BEST_FIRST walk for 40004 steps (8 resets) in 2519 ms. (15 steps per ms) remains 12/12 properties
BEST_FIRST walk for 40002 steps (8 resets) in 2091 ms. (19 steps per ms) remains 12/12 properties
BEST_FIRST walk for 40004 steps (8 resets) in 2358 ms. (16 steps per ms) remains 12/12 properties
BEST_FIRST walk for 40002 steps (8 resets) in 2305 ms. (17 steps per ms) remains 12/12 properties
[2024-06-07 21:02:04] [INFO ] Invariant cache hit.
All remaining problems are real, not stopping.
At refinement iteration 0 (INCLUDED_ONLY) 0/25 variables, 0/0 constraints. Problems are: Problem set: 0 solved, 12 unsolved
At refinement iteration 1 (OVERLAPS) 34/59 variables, 1/1 constraints. Problems are: Problem set: 0 solved, 12 unsolved
At refinement iteration 2 (INCLUDED_ONLY) 0/59 variables, 0/1 constraints. Problems are: Problem set: 0 solved, 12 unsolved
SMT process timed out in 5772ms, After SMT, problems are : Problem set: 0 solved, 12 unsolved
Skipping Parikh replay, no witness traces provided.
Support contains 25 out of 194 places. Attempting structural reductions.
Starting structural reductions in REACHABILITY mode, iteration 0 : 194/194 places, 37030/37030 transitions.
Graph (trivial) has 127 edges and 194 vertex of which 21 / 194 are part of one of the 7 SCC in 16 ms
Free SCC test removed 14 places
Drop transitions (Empty/Sink Transition effects.) removed 22 transitions
Reduce isomorphic transitions removed 22 transitions.
Graph (complete) has 1885 edges and 180 vertex of which 172 are kept as prefixes of interest. Removing 8 places using SCC suffix rule.261 ms
Discarding 8 places :
Also discarding 6 output transitions
Drop transitions (Output transitions of discarded places.) removed 6 transitions
Drop transitions (Empty/Sink Transition effects.) removed 10 transitions
Reduce isomorphic transitions removed 10 transitions.
Drop transitions (Trivial Post-Agglo cleanup.) removed 37 transitions
Trivial Post-agglo rules discarded 37 transitions
Performed 37 trivial Post agglomeration. Transition count delta: 37
Iterating post reduction 0 with 47 rules applied. Total rules applied 49 place count 172 transition count 36955
Reduce places removed 37 places and 0 transitions.
Performed 1 Post agglomeration using F-continuation condition.Transition count delta: 1
Iterating post reduction 1 with 38 rules applied. Total rules applied 87 place count 135 transition count 36954
Reduce places removed 1 places and 0 transitions.
Iterating post reduction 2 with 1 rules applied. Total rules applied 88 place count 134 transition count 36954
Performed 1 Pre agglomeration using Quasi-Persistent + Divergent Free condition..
Pre-agglomeration after 3 with 1 Pre rules applied. Total rules applied 88 place count 134 transition count 36953
Deduced a syphon composed of 1 places in 71 ms
Reduce places removed 1 places and 0 transitions.
Iterating global reduction 3 with 2 rules applied. Total rules applied 90 place count 133 transition count 36953
Discarding 14 places :
Symmetric choice reduction at 3 with 14 rule applications. Total rules 104 place count 119 transition count 36939
Iterating global reduction 3 with 14 rules applied. Total rules applied 118 place count 119 transition count 36939
Ensure Unique test removed 40 transitions
Reduce isomorphic transitions removed 40 transitions.
Iterating post reduction 3 with 40 rules applied. Total rules applied 158 place count 119 transition count 36899
Performed 28 Post agglomeration using F-continuation condition with reduction of 41 identical transitions.
Deduced a syphon composed of 28 places in 23 ms
Reduce places removed 28 places and 0 transitions.
Iterating global reduction 4 with 56 rules applied. Total rules applied 214 place count 91 transition count 36830
Drop transitions (Empty/Sink Transition effects.) removed 3 transitions
Ensure Unique test removed 79 transitions
Reduce isomorphic transitions removed 82 transitions.
Iterating post reduction 4 with 82 rules applied. Total rules applied 296 place count 91 transition count 36748
Free-agglomeration rule applied 18 times.
Iterating global reduction 5 with 18 rules applied. Total rules applied 314 place count 91 transition count 36730
Reduce places removed 18 places and 0 transitions.
Ensure Unique test removed 544 transitions
Reduce isomorphic transitions removed 544 transitions.
Iterating post reduction 5 with 562 rules applied. Total rules applied 876 place count 73 transition count 36186
Applied a total of 876 rules in 18709 ms. Remains 73 /194 variables (removed 121) and now considering 36186/37030 (removed 844) transitions.
Finished structural reductions in REACHABILITY mode , in 1 iterations and 18713 ms. Remains : 73/194 places, 36186/37030 transitions.
RANDOM walk for 33681 steps (7 resets) in 44683 ms. (0 steps per ms) remains 1/12 properties
BEST_FIRST walk for 40003 steps (8 resets) in 7111 ms. (5 steps per ms) remains 1/1 properties
// Phase 1: matrix 36186 rows 73 cols
[2024-06-07 21:03:01] [INFO ] Computed 10 invariants in 343 ms
----------------------------------------------------------------------
GreatSPN-meddly tool, MCC 2023
----------------------------------------------------------------------

Running ResIsolation-PT-N09P3

IS_COLORED=
IS_NUPN=1

LOADING model.pnml ...
MODEL CLASS: P/T NET WITH NUPN EXTENSION
PLACES: 377
TRANSITIONS: 37202
CONSTANTS: 0
TEMPLATE VARS: 0
ARCS: 885423
NUPN UNITS: 23
LOADING TIME: 18.284

SAVING AS /home/mcc/execution/model.(net/def) ...
exportGspn useExt=true
SAVING TIME: 1.109
SAVING NAME MAP FILE /home/mcc/execution/model.id2name ...
SAVING NUPN UNITS AS FILE /home/mcc/execution/model.nu ...
TOTAL TIME: 24.174
OK.
----------------------------------------------------------------------
GreatSPN/Meddly.
Copyright (C) 1987-2022, University of Torino, Italy.
website: https://github.com/greatspn/SOURCES

Based on MEDDLY version 0.16.0
Copyright (C) 2009, Iowa State University Research Foundation, Inc.
website: http://meddly.sourceforge.net

Process ID: 613
MODEL NAME: /home/mcc/execution/model
377 places, 37202 transitions.

Creating all event NSFs..
Creating all event NSFs..
Creating all event NSFs..
Creating all event NSFs..
Split: SplitSubtract
Start RS construction.
Building monolithic NSF...
FORMULA ResIsolation-PT-N09P3-CTLCardinality-2024-01 TRUE TECHNIQUES DECISION_DIAGRAMS PARALLEL_PROCESSING UNFOLDING_TO_PT USE_NUPN TOPOLOGICAL
FORMULA ResIsolation-PT-N09P3-CTLCardinality-2024-02 TRUE TECHNIQUES DECISION_DIAGRAMS PARALLEL_PROCESSING UNFOLDING_TO_PT USE_NUPN TOPOLOGICAL
FORMULA ResIsolation-PT-N09P3-CTLCardinality-2024-07 TRUE TECHNIQUES DECISION_DIAGRAMS PARALLEL_PROCESSING UNFOLDING_TO_PT USE_NUPN TOPOLOGICAL
FORMULA ResIsolation-PT-N09P3-CTLCardinality-2024-11 FALSE TECHNIQUES DECISION_DIAGRAMS PARALLEL_PROCESSING UNFOLDING_TO_PT USE_NUPN TOPOLOGICAL
FORMULA ResIsolation-PT-N09P3-CTLCardinality-2024-14 TRUE TECHNIQUES DECISION_DIAGRAMS PARALLEL_PROCESSING UNFOLDING_TO_PT USE_NUPN TOPOLOGICAL
FORMULA ResIsolation-PT-N09P3-CTLCardinality-2024-12 TRUE TECHNIQUES DECISION_DIAGRAMS PARALLEL_PROCESSING UNFOLDING_TO_PT USE_NUPN TOPOLOGICAL
FORMULA ResIsolation-PT-N09P3-CTLCardinality-2024-15 TRUE TECHNIQUES DECISION_DIAGRAMS PARALLEL_PROCESSING UNFOLDING_TO_PT USE_NUPN TOPOLOGICAL
FORMULA ResIsolation-PT-N09P3-CTLCardinality-2024-05 FALSE TECHNIQUES DECISION_DIAGRAMS PARALLEL_PROCESSING UNFOLDING_TO_PT USE_NUPN TOPOLOGICAL
FORMULA ResIsolation-PT-N09P3-CTLCardinality-2024-04 TRUE TECHNIQUES DECISION_DIAGRAMS PARALLEL_PROCESSING UNFOLDING_TO_PT USE_NUPN TOPOLOGICAL
FORMULA ResIsolation-PT-N09P3-CTLCardinality-2024-00 FALSE TECHNIQUES DECISION_DIAGRAMS PARALLEL_PROCESSING UNFOLDING_TO_PT USE_NUPN TOPOLOGICAL
FORMULA ResIsolation-PT-N09P3-CTLCardinality-2024-03 TRUE TECHNIQUES DECISION_DIAGRAMS PARALLEL_PROCESSING UNFOLDING_TO_PT USE_NUPN TOPOLOGICAL
FORMULA ResIsolation-PT-N09P3-CTLCardinality-2024-08 FALSE TECHNIQUES DECISION_DIAGRAMS PARALLEL_PROCESSING UNFOLDING_TO_PT USE_NUPN TOPOLOGICAL
FORMULA ResIsolation-PT-N09P3-CTLCardinality-2024-10 TRUE TECHNIQUES DECISION_DIAGRAMS PARALLEL_PROCESSING UNFOLDING_TO_PT USE_NUPN TOPOLOGICAL
FORMULA ResIsolation-PT-N09P3-CTLCardinality-2024-09 TRUE TECHNIQUES DECISION_DIAGRAMS PARALLEL_PROCESSING UNFOLDING_TO_PT USE_NUPN TOPOLOGICAL
FORMULA ResIsolation-PT-N09P3-CTLCardinality-2024-06 TRUE TECHNIQUES DECISION_DIAGRAMS PARALLEL_PROCESSING UNFOLDING_TO_PT USE_NUPN TOPOLOGICAL

BK_TIME_CONFINEMENT_REACHED

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

+ ulimit -s 65536
+ [[ -z '' ]]
+ export LTSMIN_MEM_SIZE=8589934592
+ LTSMIN_MEM_SIZE=8589934592
+ export PYTHONPATH=/home/mcc/BenchKit/itstools/pylibs
+ PYTHONPATH=/home/mcc/BenchKit/itstools/pylibs
+ export LD_LIBRARY_PATH=/home/mcc/BenchKit/itstools/pylibs:
+ LD_LIBRARY_PATH=/home/mcc/BenchKit/itstools/pylibs:
++ sed s/.jar//
++ perl -pe 's/.*\.//g'
++ ls /home/mcc/BenchKit/bin//../reducer/bin//../../itstools//itstools/plugins/fr.lip6.move.gal.application.pnmcc_1.0.0.202405141337.jar
+ VERSION=202405141337
+ echo 'Running Version 202405141337'
+ /home/mcc/BenchKit/bin//../reducer/bin//../../itstools//itstools/its-tools -pnfolder /home/mcc/execution -examination CTLCardinality -timeout 360 -rebuildPNML

Sequence of Actions to be Executed by the VM

This is useful if one wants to reexecute the tool in the VM from the submitted image disk.

set -x
# this is for BenchKit: configuration of major elements for the test
export BK_INPUT="ResIsolation-PT-N09P3"
export BK_EXAMINATION="CTLCardinality"
export BK_TOOL="greatspnxred"
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-5568"
echo " Executing tool greatspnxred"
echo " Input is ResIsolation-PT-N09P3, examination is CTLCardinality"
echo " Time confinement is $BK_TIME_CONFINEMENT seconds"
echo " Memory confinement is 16384 MBytes"
echo " Number of cores is 4"
echo " Run identifier is r627-smll-171774445500057"
echo "====================================================================="
echo
echo "--------------------"
echo "preparation of the directory to be used:"

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