fond
Model Checking Contest 2021
11th edition, Paris, France, June 23, 2021
Execution of r045-oct2-162038291700265
Last Updated
Jun 28, 2021

About the Execution of ITS-Tools for CloudDeployment-PT-2a

Execution Summary
Max Memory
Used (MB)
Time wait (ms) CPU Usage (ms) I/O Wait (ms) Computed Result Execution
Status
282.260 5338.00 11655.00 71.70 TTFFTFTFFTFFTTTT normal

Execution Chart

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

Trace from the execution

Formatting '/data/fko/mcc2021-input.r045-oct2-162038291700265.qcow2', fmt=qcow2 size=4294967296 backing_file=/data/fko/mcc2021-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 itstools
Input is CloudDeployment-PT-2a, examination is CTLCardinality
Time confinement is 3600 seconds
Memory confinement is 16384 MBytes
Number of cores is 4
Run identifier is r045-oct2-162038291700265
=====================================================================

--------------------
preparation of the directory to be used:
/home/mcc/execution
total 460K
-rw-r--r-- 1 mcc users 15K May 5 16:58 CTLCardinality.txt
-rw-r--r-- 1 mcc users 151K May 10 09:42 CTLCardinality.xml
-rw-r--r-- 1 mcc users 9.3K May 5 16:58 CTLFireability.txt
-rw-r--r-- 1 mcc users 88K May 10 09:42 CTLFireability.xml
-rw-r--r-- 1 mcc users 4.2K May 6 14:48 GenericPropertiesDefinition.xml
-rw-r--r-- 1 mcc users 6.8K May 6 14:48 GenericPropertiesVerdict.xml
-rw-r--r-- 1 mcc users 3.4K Mar 28 15:51 LTLCardinality.txt
-rw-r--r-- 1 mcc users 25K Mar 28 15:51 LTLCardinality.xml
-rw-r--r-- 1 mcc users 2.0K Mar 28 15:51 LTLFireability.txt
-rw-r--r-- 1 mcc users 17K Mar 28 15:51 LTLFireability.xml
-rw-r--r-- 1 mcc users 3.2K Mar 23 03:06 ReachabilityCardinality.txt
-rw-r--r-- 1 mcc users 16K Mar 23 03:06 ReachabilityCardinality.xml
-rw-r--r-- 1 mcc users 3.1K Mar 22 12:34 ReachabilityFireability.txt
-rw-r--r-- 1 mcc users 21K Mar 22 12:34 ReachabilityFireability.xml
-rw-r--r-- 1 mcc users 1.7K Mar 22 09:10 UpperBounds.txt
-rw-r--r-- 1 mcc users 3.7K Mar 22 09:10 UpperBounds.xml
-rw-r--r-- 1 mcc users 6 May 5 16:51 equiv_col
-rw-r--r-- 1 mcc users 3 May 5 16:51 instance
-rw-r--r-- 1 mcc users 6 May 5 16:51 iscolored
-rw-r--r-- 1 mcc users 51K May 5 16:51 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 CloudDeployment-PT-2a-CTLCardinality-00
FORMULA_NAME CloudDeployment-PT-2a-CTLCardinality-01
FORMULA_NAME CloudDeployment-PT-2a-CTLCardinality-02
FORMULA_NAME CloudDeployment-PT-2a-CTLCardinality-03
FORMULA_NAME CloudDeployment-PT-2a-CTLCardinality-04
FORMULA_NAME CloudDeployment-PT-2a-CTLCardinality-05
FORMULA_NAME CloudDeployment-PT-2a-CTLCardinality-06
FORMULA_NAME CloudDeployment-PT-2a-CTLCardinality-07
FORMULA_NAME CloudDeployment-PT-2a-CTLCardinality-08
FORMULA_NAME CloudDeployment-PT-2a-CTLCardinality-09
FORMULA_NAME CloudDeployment-PT-2a-CTLCardinality-10
FORMULA_NAME CloudDeployment-PT-2a-CTLCardinality-11
FORMULA_NAME CloudDeployment-PT-2a-CTLCardinality-12
FORMULA_NAME CloudDeployment-PT-2a-CTLCardinality-13
FORMULA_NAME CloudDeployment-PT-2a-CTLCardinality-14
FORMULA_NAME CloudDeployment-PT-2a-CTLCardinality-15

=== Now, execution of the tool begins

BK_START 1620804759700

Running Version 0
[2021-05-12 07:32:41] [INFO ] Running its-tools with arguments : [-pnfolder, /home/mcc/execution, -examination, CTLCardinality, -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]
[2021-05-12 07:32:41] [INFO ] Parsing pnml file : /home/mcc/execution/model.pnml
[2021-05-12 07:32:41] [INFO ] Load time of PNML (sax parser for PT used): 40 ms
[2021-05-12 07:32:41] [INFO ] Transformed 69 places.
[2021-05-12 07:32:41] [INFO ] Transformed 174 transitions.
[2021-05-12 07:32:41] [INFO ] Found NUPN structural information;
[2021-05-12 07:32:41] [INFO ] Parsed PT model containing 69 places and 174 transitions in 73 ms.
Parsed 16 properties from file /home/mcc/execution/CTLCardinality.xml in 15 ms.
Ensure Unique test removed 14 transitions
Reduce redundant transitions removed 14 transitions.
FORMULA CloudDeployment-PT-2a-CTLCardinality-08 FALSE TECHNIQUES TOPOLOGICAL INITIAL_STATE
Support contains 69 out of 69 places. Attempting structural reductions.
Starting structural reductions, iteration 0 : 69/69 places, 160/160 transitions.
Drop transitions removed 13 transitions
Redundant transition composition rules discarded 13 transitions
Iterating global reduction 0 with 13 rules applied. Total rules applied 13 place count 69 transition count 147
Applied a total of 13 rules in 9 ms. Remains 69 /69 variables (removed 0) and now considering 147/160 (removed 13) transitions.
[2021-05-12 07:32:41] [INFO ] Flow matrix only has 100 transitions (discarded 47 similar events)
// Phase 1: matrix 100 rows 69 cols
[2021-05-12 07:32:41] [INFO ] Computed 12 place invariants in 9 ms
[2021-05-12 07:32:41] [INFO ] Implicit Places using invariants in 107 ms returned []
[2021-05-12 07:32:41] [INFO ] Flow matrix only has 100 transitions (discarded 47 similar events)
// Phase 1: matrix 100 rows 69 cols
[2021-05-12 07:32:41] [INFO ] Computed 12 place invariants in 4 ms
[2021-05-12 07:32:41] [INFO ] State equation strengthened by 30 read => feed constraints.
[2021-05-12 07:32:41] [INFO ] Implicit Places using invariants and state equation in 65 ms returned []
Implicit Place search using SMT with State Equation took 193 ms to find 0 implicit places.
[2021-05-12 07:32:41] [INFO ] Flow matrix only has 100 transitions (discarded 47 similar events)
// Phase 1: matrix 100 rows 69 cols
[2021-05-12 07:32:41] [INFO ] Computed 12 place invariants in 4 ms
[2021-05-12 07:32:41] [INFO ] Dead Transitions using invariants and state equation in 94 ms returned []
Finished structural reductions, in 1 iterations. Remains : 69/69 places, 147/160 transitions.
[2021-05-12 07:32:42] [INFO ] Flatten gal took : 31 ms
[2021-05-12 07:32:42] [INFO ] Flatten gal took : 14 ms
[2021-05-12 07:32:42] [INFO ] Input system was already deterministic with 147 transitions.
Incomplete random walk after 100000 steps, including 3063 resets, run finished after 1198 ms. (steps per millisecond=83 ) properties (out of 105) seen :26
Running SMT prover for 79 properties.
[2021-05-12 07:32:43] [INFO ] Flow matrix only has 100 transitions (discarded 47 similar events)
// Phase 1: matrix 100 rows 69 cols
[2021-05-12 07:32:43] [INFO ] Computed 12 place invariants in 2 ms
[2021-05-12 07:32:43] [INFO ] SMT Verify possible in real domain returnedunsat :61 sat :0 real:18
[2021-05-12 07:32:43] [INFO ] [Nat]Absence check using 0 positive and 12 generalized place invariants in 1 ms returned sat
[2021-05-12 07:32:43] [INFO ] [Nat]Adding state equation constraints to refine reachable states.
[2021-05-12 07:32:43] [INFO ] [Nat]Absence check using state equation in 31 ms returned unsat :17 sat :62
[2021-05-12 07:32:43] [INFO ] State equation strengthened by 30 read => feed constraints.
[2021-05-12 07:32:43] [INFO ] [Nat]Added 30 Read/Feed constraints in 2 ms returned sat
Attempting to minimize the solution found.
Minimization took 14 ms.
[2021-05-12 07:32:43] [INFO ] SMT Verify possible in nat domain returned unsat :17 sat :62
Successfully simplified 78 atomic propositions for a total of 15 simplifications.
[2021-05-12 07:32:43] [INFO ] Initial state test concluded for 1 properties.
FORMULA CloudDeployment-PT-2a-CTLCardinality-00 TRUE TECHNIQUES TOPOLOGICAL INITIAL_STATE
Graph (trivial) has 49 edges and 69 vertex of which 13 / 69 are part of one of the 5 SCC in 2 ms
Free SCC test removed 8 places
Ensure Unique test removed 19 transitions
Reduce isomorphic transitions removed 19 transitions.
Ensure Unique test removed 2 places
Performed 1 Post agglomeration using F-continuation condition.Transition count delta: -2
Deduced a syphon composed of 1 places in 0 ms
Reduce places removed 1 places and 0 transitions.
Iterating global reduction 0 with 2 rules applied. Total rules applied 3 place count 58 transition count 130
Drop transitions removed 5 transitions
Redundant transition composition rules discarded 5 transitions
Iterating global reduction 0 with 5 rules applied. Total rules applied 8 place count 58 transition count 125
Partial Post-agglomeration rule applied 1 times.
Drop transitions removed 1 transitions
Iterating global reduction 0 with 1 rules applied. Total rules applied 9 place count 58 transition count 125
Applied a total of 9 rules in 26 ms. Remains 58 /69 variables (removed 11) and now considering 125/147 (removed 22) transitions.
[2021-05-12 07:32:43] [INFO ] Initial state reduction rules for CTL removed 1 formulas.
[2021-05-12 07:32:43] [INFO ] Flatten gal took : 7 ms
FORMULA CloudDeployment-PT-2a-CTLCardinality-02 FALSE TECHNIQUES TOPOLOGICAL INITIAL_STATE
[2021-05-12 07:32:43] [INFO ] Flatten gal took : 7 ms
[2021-05-12 07:32:43] [INFO ] Input system was already deterministic with 125 transitions.
Graph (trivial) has 64 edges and 69 vertex of which 15 / 69 are part of one of the 5 SCC in 0 ms
Free SCC test removed 10 places
Ensure Unique test removed 24 transitions
Reduce isomorphic transitions removed 24 transitions.
Ensure Unique test removed 4 places
Reduce places removed 5 places and 1 transitions.
Performed 3 Post agglomeration using F-continuation condition.Transition count delta: -4
Deduced a syphon composed of 3 places in 0 ms
Reduce places removed 3 places and 0 transitions.
Iterating global reduction 0 with 6 rules applied. Total rules applied 7 place count 51 transition count 126
Drop transitions removed 8 transitions
Redundant transition composition rules discarded 8 transitions
Iterating global reduction 0 with 8 rules applied. Total rules applied 15 place count 51 transition count 118
Partial Post-agglomeration rule applied 1 times.
Drop transitions removed 1 transitions
Iterating global reduction 0 with 1 rules applied. Total rules applied 16 place count 51 transition count 118
Applied a total of 16 rules in 15 ms. Remains 51 /69 variables (removed 18) and now considering 118/147 (removed 29) transitions.
[2021-05-12 07:32:43] [INFO ] Flatten gal took : 6 ms
[2021-05-12 07:32:43] [INFO ] Initial state reduction rules for CTL removed 1 formulas.
FORMULA CloudDeployment-PT-2a-CTLCardinality-04 TRUE TECHNIQUES TOPOLOGICAL INITIAL_STATE
[2021-05-12 07:32:43] [INFO ] Flatten gal took : 10 ms
[2021-05-12 07:32:43] [INFO ] Input system was already deterministic with 118 transitions.
[2021-05-12 07:32:43] [INFO ] Initial state reduction rules for CTL removed 4 formulas.
[2021-05-12 07:32:43] [INFO ] Flatten gal took : 8 ms
[2021-05-12 07:32:43] [INFO ] Initial state reduction rules for CTL removed 3 formulas.
FORMULA CloudDeployment-PT-2a-CTLCardinality-15 TRUE TECHNIQUES TOPOLOGICAL INITIAL_STATE
FORMULA CloudDeployment-PT-2a-CTLCardinality-14 TRUE TECHNIQUES TOPOLOGICAL INITIAL_STATE
FORMULA CloudDeployment-PT-2a-CTLCardinality-13 TRUE TECHNIQUES TOPOLOGICAL INITIAL_STATE
FORMULA CloudDeployment-PT-2a-CTLCardinality-12 TRUE TECHNIQUES TOPOLOGICAL INITIAL_STATE
FORMULA CloudDeployment-PT-2a-CTLCardinality-10 FALSE TECHNIQUES TOPOLOGICAL INITIAL_STATE
FORMULA CloudDeployment-PT-2a-CTLCardinality-05 FALSE TECHNIQUES TOPOLOGICAL INITIAL_STATE
FORMULA CloudDeployment-PT-2a-CTLCardinality-03 FALSE TECHNIQUES TOPOLOGICAL INITIAL_STATE
[2021-05-12 07:32:43] [INFO ] Flatten gal took : 6 ms
[2021-05-12 07:32:43] [INFO ] Applying decomposition
[2021-05-12 07:32:43] [INFO ] Flatten gal took : 7 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/graph16970404511021590334.txt, -o, /tmp/graph16970404511021590334.bin, -w, /tmp/graph16970404511021590334.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/graph16970404511021590334.bin, -l, -1, -v, -w, /tmp/graph16970404511021590334.weights, -q, 0, -e, 0.001], workingDir=null]
[2021-05-12 07:32:43] [INFO ] Decomposing Gal with order
[2021-05-12 07:32:43] [INFO ] Rewriting arrays to variables to allow decomposition.
[2021-05-12 07:32:43] [INFO ] Removed a total of 157 redundant transitions.
[2021-05-12 07:32:43] [INFO ] Flatten gal took : 35 ms
[2021-05-12 07:32:43] [INFO ] Fuse similar labels procedure discarded/fused a total of 46 labels/synchronizations in 8 ms.
[2021-05-12 07:32:43] [INFO ] Time to serialize gal into /tmp/CTLCardinality1208342922166603609.gal : 2 ms
[2021-05-12 07:32:43] [INFO ] Time to serialize properties into /tmp/CTLCardinality5521236115581699428.ctl : 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-ctl-linux64, --gc-threshold, 2000000, --quiet, -i, /tmp/CTLCardinality1208342922166603609.gal, -t, CGAL, -ctl, /tmp/CTLCardinality5521236115581699428.ctl, --gen-order, FOLLOW], workingDir=/home/mcc/execution]

its-ctl command run as :

/home/mcc/BenchKit/itstools/plugins/fr.lip6.move.gal.itstools.binaries_1.0.0.202104292328/bin/its-ctl-linux64 --gc-threshold 2000000 --quiet -i /tmp/CTLCardinality1208342922166603609.gal -t CGAL -ctl /tmp/CTLCardinality5521236115581699428.ctl --gen-order FOLLOW
No direction supplied, using forward translation only.
Parsed 5 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,4807,0.044644,5812,2,456,5,5571,6,0,406,5148,0


Converting to forward existential form...Done !
original formula: EX(TRUE)
=> equivalent forward existential formula: [(EY(Init) * TRUE)] != FALSE
(forward)formula 0,1,0.046328,5812,1,0,6,5571,7,1,555,5148,1
FORMULA CloudDeployment-PT-2a-CTLCardinality-01 TRUE TECHNIQUES DECISION_DIAGRAMS TOPOLOGICAL USE_NUPN
Formula is TRUE !

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

original formula: EF(AX(FALSE))
=> equivalent forward existential formula: [(FwdU(Init,TRUE) * !(EX(!(FALSE))))] != FALSE
Reverse transition relation is NOT exact ! Due to transitions gi0.gi0.gu8.t32, gi0.gi0.gu8.t33, gi0.gi1.gu0.t68, gi0.gi1.t51, gi0.t64, gi1.t3, t2, t24, t29, t38, t59, t67, t73, t120, t130, t137, t140, Intersection with reachable at each step enabled. (destroyed/reverse/intersect/total) :0/110/17/127
(forward)formula 1,1,0.136026,9892,1,0,162,19905,253,95,2745,18143,245
FORMULA CloudDeployment-PT-2a-CTLCardinality-06 TRUE TECHNIQUES DECISION_DIAGRAMS TOPOLOGICAL USE_NUPN
Formula is TRUE !

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

original formula: (EX(TRUE) * AX(FALSE))
=> equivalent forward existential formula: ([(Init * !(EX(TRUE)))] = FALSE * [(EY(Init) * !(FALSE))] = FALSE)
(forward)formula 2,0,0.13612,9892,1,0,162,19905,253,95,2745,18143,245
FORMULA CloudDeployment-PT-2a-CTLCardinality-07 FALSE TECHNIQUES DECISION_DIAGRAMS TOPOLOGICAL USE_NUPN
Formula is FALSE !

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

original formula: EF((AX(FALSE) * AG(A(E(((((((gu6.p58+gu6.p50)+gu6.p17)+gu6.p35)+gu6.p46)+gu6.p40)<=((((gu6.p41+gu6.p22)+gu6.p31)+gu6.p45)+gu6.p48)) U ((((gi1.gu5.p51+gu6.p48)+gi1.gu5.p14)+gi1.gu5.p37)<=(((((((((gi1.gu5.p10+gi1.gu5.p38)+gi1.gu5.p27)+gi1.gu5.p39)+gi1.gu5.p59)+gu6.p17)+gi1.gu5.p9)+gi1.gu5.p55)+gu9.p18)+gu9.p67))) U EG(((((gu9.p65+gu9.p18)+gu9.p2)+gu9.p36)<=(((((gu9.p15+gu9.p43)+gu9.p67)+gu9.p28)+gu6.p41)+gu9.p11)))))))
=> equivalent forward existential formula: [((FwdU(Init,TRUE) * !(EX(!(FALSE)))) * !(E(TRUE U !(!((E(!(EG(((((gu9.p65+gu9.p18)+gu9.p2)+gu9.p36)<=(((((gu9.p15+gu9.p43)+gu9.p67)+gu9.p28)+gu6.p41)+gu9.p11)))) U (!(E(((((((gu6.p58+gu6.p50)+gu6.p17)+gu6.p35)+gu6.p46)+gu6.p40)<=((((gu6.p41+gu6.p22)+gu6.p31)+gu6.p45)+gu6.p48)) U ((((gi1.gu5.p51+gu6.p48)+gi1.gu5.p14)+gi1.gu5.p37)<=(((((((((gi1.gu5.p10+gi1.gu5.p38)+gi1.gu5.p27)+gi1.gu5.p39)+gi1.gu5.p59)+gu6.p17)+gi1.gu5.p9)+gi1.gu5.p55)+gu9.p18)+gu9.p67)))) * !(EG(((((gu9.p65+gu9.p18)+gu9.p2)+gu9.p36)<=(((((gu9.p15+gu9.p43)+gu9.p67)+gu9.p28)+gu6.p41)+gu9.p11)))))) + EG(!(EG(((((gu9.p65+gu9.p18)+gu9.p2)+gu9.p36)<=(((((gu9.p15+gu9.p43)+gu9.p67)+gu9.p28)+gu6.p41)+gu9.p11)))))))))))] != FALSE
Using saturation style SCC detection
Fast SCC detection found a local SCC at level 0
(forward)formula 3,1,0.916558,39592,1,0,344,194412,276,235,3193,194731,461
FORMULA CloudDeployment-PT-2a-CTLCardinality-09 TRUE TECHNIQUES DECISION_DIAGRAMS TOPOLOGICAL USE_NUPN
Formula is TRUE !

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

original formula: AG(EX(TRUE))
=> equivalent forward existential formula: [(FwdU(Init,TRUE) * !(EX(TRUE)))] = FALSE
(forward)formula 4,0,0.916624,39592,1,0,344,194412,276,235,3193,194731,461
FORMULA CloudDeployment-PT-2a-CTLCardinality-11 FALSE TECHNIQUES DECISION_DIAGRAMS TOPOLOGICAL USE_NUPN
Formula is FALSE !

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

ITS tools runner thread asked to quit. Dying gracefully.

BK_STOP 1620804765038

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

+ export BINDIR=/home/mcc/BenchKit/bin//../
+ BINDIR=/home/mcc/BenchKit/bin//../
++ pwd
+ export MODEL=/home/mcc/execution
+ MODEL=/home/mcc/execution
+ [[ CTLCardinality = StateSpace ]]
+ /home/mcc/BenchKit/bin//..//runeclipse.sh /home/mcc/execution CTLCardinality -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 CTLCardinality -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="CloudDeployment-PT-2a"
export BK_EXAMINATION="CTLCardinality"
export BK_TOOL="itstools"
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 itstools"
echo " Input is CloudDeployment-PT-2a, 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 r045-oct2-162038291700265"
echo "====================================================================="
echo
echo "--------------------"
echo "preparation of the directory to be used:"

tar xzf /home/mcc/BenchKit/INPUTS/CloudDeployment-PT-2a.tgz
mv CloudDeployment-PT-2a 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 ;