fond
Model Checking Contest 2020
10th edition, Paris, France, June 23, 2020
Execution of r227-oct2-159033546700491
Last Updated
Jun 28, 2020

About the Execution of ITS-Tools for ViralEpidemic-PT-S03D1C1A02

Execution Summary
Max Memory
Used (MB)
Time wait (ms) CPU Usage (ms) I/O Wait (ms) Computed Result Execution
Status
15742.820 17276.00 36097.00 623.10 FFFFFTFTTFFFTFTF normal

Execution Chart

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

Trace from the execution

Formatting '/data/fko/mcc2020-input.r227-oct2-159033546700491.qcow2', fmt=qcow2 size=4294967296 backing_file=/data/fko/mcc2020-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 ViralEpidemic-PT-S03D1C1A02, examination is CTLCardinality
Time confinement is 3600 seconds
Memory confinement is 16384 MBytes
Number of cores is 4
Run identifier is r227-oct2-159033546700491
=====================================================================

--------------------
preparation of the directory to be used:
/home/mcc/execution
total 252K
-rw-r--r-- 1 mcc users 4.0K May 14 04:35 CTLCardinality.txt
-rw-r--r-- 1 mcc users 21K May 14 04:35 CTLCardinality.xml
-rw-r--r-- 1 mcc users 2.8K May 13 22:34 CTLFireability.txt
-rw-r--r-- 1 mcc users 17K May 13 22:34 CTLFireability.xml
-rw-r--r-- 1 mcc users 4.0K May 14 10:07 LTLCardinality.txt
-rw-r--r-- 1 mcc users 26K May 14 10:07 LTLCardinality.xml
-rw-r--r-- 1 mcc users 2.2K May 14 10:07 LTLFireability.txt
-rw-r--r-- 1 mcc users 17K May 14 10:07 LTLFireability.xml
-rw-r--r-- 1 mcc users 1 May 12 20:42 NewModel
-rw-r--r-- 1 mcc users 3.9K May 13 15:39 ReachabilityCardinality.txt
-rw-r--r-- 1 mcc users 17K May 13 15:39 ReachabilityCardinality.xml
-rw-r--r-- 1 mcc users 3.5K May 13 11:24 ReachabilityFireability.txt
-rw-r--r-- 1 mcc users 21K May 13 11:24 ReachabilityFireability.xml
-rw-r--r-- 1 mcc users 1.9K May 13 16:53 UpperBounds.txt
-rw-r--r-- 1 mcc users 3.9K May 13 16:53 UpperBounds.xml
-rw-r--r-- 1 mcc users 6 May 12 20:42 equiv_col
-rw-r--r-- 1 mcc users 11 May 12 20:42 instance
-rw-r--r-- 1 mcc users 6 May 12 20:42 iscolored
-rw-r--r-- 1 mcc users 65K May 12 20:42 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 ViralEpidemic-PT-S03D1C1A02-CTLCardinality-00
FORMULA_NAME ViralEpidemic-PT-S03D1C1A02-CTLCardinality-01
FORMULA_NAME ViralEpidemic-PT-S03D1C1A02-CTLCardinality-02
FORMULA_NAME ViralEpidemic-PT-S03D1C1A02-CTLCardinality-03
FORMULA_NAME ViralEpidemic-PT-S03D1C1A02-CTLCardinality-04
FORMULA_NAME ViralEpidemic-PT-S03D1C1A02-CTLCardinality-05
FORMULA_NAME ViralEpidemic-PT-S03D1C1A02-CTLCardinality-06
FORMULA_NAME ViralEpidemic-PT-S03D1C1A02-CTLCardinality-07
FORMULA_NAME ViralEpidemic-PT-S03D1C1A02-CTLCardinality-08
FORMULA_NAME ViralEpidemic-PT-S03D1C1A02-CTLCardinality-09
FORMULA_NAME ViralEpidemic-PT-S03D1C1A02-CTLCardinality-10
FORMULA_NAME ViralEpidemic-PT-S03D1C1A02-CTLCardinality-11
FORMULA_NAME ViralEpidemic-PT-S03D1C1A02-CTLCardinality-12
FORMULA_NAME ViralEpidemic-PT-S03D1C1A02-CTLCardinality-13
FORMULA_NAME ViralEpidemic-PT-S03D1C1A02-CTLCardinality-14
FORMULA_NAME ViralEpidemic-PT-S03D1C1A02-CTLCardinality-15

=== Now, execution of the tool begins

BK_START 1590502751332

[2020-05-26 14:19:18] [INFO ] Running its-tools with arguments : [-pnfolder, /home/mcc/execution, -examination, CTLCardinality, -z3path, /home/mcc/BenchKit//z3/bin/z3, -yices2path, /home/mcc/BenchKit//yices/bin/yices, -its, -ltsminpath, /home/mcc/BenchKit//lts_install_dir/, -greatspnpath, /home/mcc/BenchKit//greatspn/, -order, META, -manyOrder, -smt, -timeout, 3600]
[2020-05-26 14:19:18] [INFO ] Parsing pnml file : /home/mcc/execution/model.pnml
[2020-05-26 14:19:19] [INFO ] Load time of PNML (sax parser for PT used): 149 ms
[2020-05-26 14:19:19] [INFO ] Transformed 66 places.
[2020-05-26 14:19:19] [INFO ] Transformed 91 transitions.
[2020-05-26 14:19:19] [INFO ] Parsed PT model containing 66 places and 91 transitions in 240 ms.
Parsed 16 properties from file /home/mcc/execution/CTLCardinality.xml in 71 ms.
Incomplete random walk after 100000 steps, including 7462 resets, run finished after 703 ms. (steps per millisecond=142 ) properties seen :[0, 1, 1, 1, 0, 1, 0, 1, 0, 0, 0, 1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 0, 0, 1, 0, 0, 1, 1, 1, 0]
// Phase 1: matrix 91 rows 66 cols
[2020-05-26 14:19:20] [INFO ] Computed 1 place invariants in 13 ms
[2020-05-26 14:19:20] [INFO ] [Real]Absence check using 0 positive and 1 generalized place invariants in 47 ms returned sat
[2020-05-26 14:19:20] [INFO ] [Real]Adding state equation constraints to refine reachable states.
[2020-05-26 14:19:20] [INFO ] [Real]Absence check using state equation in 140 ms returned unsat
[2020-05-26 14:19:20] [INFO ] [Real]Absence check using 0 positive and 1 generalized place invariants in 12 ms returned sat
[2020-05-26 14:19:20] [INFO ] [Real]Adding state equation constraints to refine reachable states.
[2020-05-26 14:19:20] [INFO ] [Real]Absence check using state equation in 51 ms returned unsat
[2020-05-26 14:19:20] [INFO ] [Real]Absence check using 0 positive and 1 generalized place invariants in 12 ms returned sat
[2020-05-26 14:19:20] [INFO ] [Real]Adding state equation constraints to refine reachable states.
[2020-05-26 14:19:20] [INFO ] [Real]Absence check using state equation in 210 ms returned unsat
[2020-05-26 14:19:20] [INFO ] [Real]Absence check using 0 positive and 1 generalized place invariants in 8 ms returned sat
[2020-05-26 14:19:20] [INFO ] [Real]Adding state equation constraints to refine reachable states.
[2020-05-26 14:19:20] [INFO ] [Real]Absence check using state equation in 145 ms returned unsat
[2020-05-26 14:19:21] [INFO ] [Real]Absence check using 0 positive and 1 generalized place invariants in 11 ms returned sat
[2020-05-26 14:19:21] [INFO ] [Real]Adding state equation constraints to refine reachable states.
[2020-05-26 14:19:21] [INFO ] [Real]Absence check using state equation in 79 ms returned unsat
[2020-05-26 14:19:21] [INFO ] [Real]Absence check using 0 positive and 1 generalized place invariants in 5 ms returned sat
[2020-05-26 14:19:21] [INFO ] [Real]Adding state equation constraints to refine reachable states.
[2020-05-26 14:19:21] [INFO ] [Real]Absence check using state equation in 43 ms returned unsat
[2020-05-26 14:19:21] [INFO ] [Real]Absence check using 0 positive and 1 generalized place invariants in 8 ms returned sat
[2020-05-26 14:19:21] [INFO ] [Real]Adding state equation constraints to refine reachable states.
[2020-05-26 14:19:21] [INFO ] [Real]Absence check using state equation in 164 ms returned sat
[2020-05-26 14:19:21] [INFO ] Solution in real domain found non-integer solution.
[2020-05-26 14:19:21] [INFO ] [Nat]Absence check using 0 positive and 1 generalized place invariants in 99 ms returned sat
[2020-05-26 14:19:21] [INFO ] [Nat]Adding state equation constraints to refine reachable states.
[2020-05-26 14:19:21] [INFO ] [Nat]Absence check using state equation in 114 ms returned unsat
[2020-05-26 14:19:21] [INFO ] [Real]Absence check using 0 positive and 1 generalized place invariants in 17 ms returned sat
[2020-05-26 14:19:21] [INFO ] [Real]Adding state equation constraints to refine reachable states.
[2020-05-26 14:19:21] [INFO ] [Real]Absence check using state equation in 111 ms returned unsat
[2020-05-26 14:19:21] [INFO ] [Real]Absence check using 0 positive and 1 generalized place invariants in 3 ms returned sat
[2020-05-26 14:19:21] [INFO ] [Real]Adding state equation constraints to refine reachable states.
[2020-05-26 14:19:22] [INFO ] [Real]Absence check using state equation in 92 ms returned unsat
[2020-05-26 14:19:22] [INFO ] [Real]Absence check using 0 positive and 1 generalized place invariants in 4 ms returned sat
[2020-05-26 14:19:22] [INFO ] [Real]Adding state equation constraints to refine reachable states.
[2020-05-26 14:19:22] [INFO ] [Real]Absence check using state equation in 112 ms returned unsat
[2020-05-26 14:19:22] [INFO ] [Real]Absence check using 0 positive and 1 generalized place invariants in 5 ms returned sat
[2020-05-26 14:19:22] [INFO ] [Real]Adding state equation constraints to refine reachable states.
[2020-05-26 14:19:22] [INFO ] [Real]Absence check using state equation in 148 ms returned unsat
[2020-05-26 14:19:22] [INFO ] [Real]Absence check using 0 positive and 1 generalized place invariants in 14 ms returned sat
[2020-05-26 14:19:22] [INFO ] [Real]Adding state equation constraints to refine reachable states.
[2020-05-26 14:19:22] [INFO ] [Real]Absence check using state equation in 222 ms returned unsat
[2020-05-26 14:19:22] [INFO ] [Real]Absence check using 0 positive and 1 generalized place invariants in 11 ms returned sat
[2020-05-26 14:19:22] [INFO ] [Real]Adding state equation constraints to refine reachable states.
[2020-05-26 14:19:22] [INFO ] [Real]Absence check using state equation in 195 ms returned unsat
[2020-05-26 14:19:22] [INFO ] [Real]Absence check using 0 positive and 1 generalized place invariants in 7 ms returned sat
[2020-05-26 14:19:22] [INFO ] [Real]Adding state equation constraints to refine reachable states.
[2020-05-26 14:19:23] [INFO ] [Real]Absence check using state equation in 136 ms returned unsat
[2020-05-26 14:19:23] [INFO ] [Real]Absence check using 0 positive and 1 generalized place invariants in 25 ms returned sat
[2020-05-26 14:19:23] [INFO ] [Real]Adding state equation constraints to refine reachable states.
[2020-05-26 14:19:23] [INFO ] [Real]Absence check using state equation in 247 ms returned unsat
[2020-05-26 14:19:23] [INFO ] [Real]Absence check using 0 positive and 1 generalized place invariants in 9 ms returned sat
[2020-05-26 14:19:23] [INFO ] [Real]Adding state equation constraints to refine reachable states.
[2020-05-26 14:19:23] [INFO ] [Real]Absence check using state equation in 146 ms returned sat
[2020-05-26 14:19:23] [INFO ] Solution in real domain found non-integer solution.
[2020-05-26 14:19:23] [INFO ] [Nat]Absence check using 0 positive and 1 generalized place invariants in 18 ms returned sat
[2020-05-26 14:19:23] [INFO ] [Nat]Adding state equation constraints to refine reachable states.
[2020-05-26 14:19:23] [INFO ] [Nat]Absence check using state equation in 192 ms returned unsat
[2020-05-26 14:19:23] [INFO ] [Real]Absence check using 0 positive and 1 generalized place invariants in 12 ms returned sat
[2020-05-26 14:19:23] [INFO ] [Real]Adding state equation constraints to refine reachable states.
[2020-05-26 14:19:23] [INFO ] [Real]Absence check using state equation in 152 ms returned unsat
Successfully simplified 17 atomic propositions for a total of 17 simplifications.
[2020-05-26 14:19:24] [INFO ] Initial state reduction rules for CTL removed 8 formulas.
[2020-05-26 14:19:24] [INFO ] Flatten gal took : 113 ms
[2020-05-26 14:19:24] [INFO ] Initial state reduction rules for CTL removed 9 formulas.
[2020-05-26 14:19:24] [INFO ] Flatten gal took : 14 ms
FORMULA ViralEpidemic-PT-S03D1C1A02-CTLCardinality-15 FALSE TECHNIQUES TOPOLOGICAL INITIAL_STATE
FORMULA ViralEpidemic-PT-S03D1C1A02-CTLCardinality-11 FALSE TECHNIQUES TOPOLOGICAL INITIAL_STATE
FORMULA ViralEpidemic-PT-S03D1C1A02-CTLCardinality-10 FALSE TECHNIQUES TOPOLOGICAL INITIAL_STATE
FORMULA ViralEpidemic-PT-S03D1C1A02-CTLCardinality-09 FALSE TECHNIQUES TOPOLOGICAL INITIAL_STATE
FORMULA ViralEpidemic-PT-S03D1C1A02-CTLCardinality-06 FALSE TECHNIQUES TOPOLOGICAL INITIAL_STATE
FORMULA ViralEpidemic-PT-S03D1C1A02-CTLCardinality-05 TRUE TECHNIQUES TOPOLOGICAL INITIAL_STATE
FORMULA ViralEpidemic-PT-S03D1C1A02-CTLCardinality-04 FALSE TECHNIQUES TOPOLOGICAL INITIAL_STATE
FORMULA ViralEpidemic-PT-S03D1C1A02-CTLCardinality-03 FALSE TECHNIQUES TOPOLOGICAL INITIAL_STATE
FORMULA ViralEpidemic-PT-S03D1C1A02-CTLCardinality-00 FALSE TECHNIQUES TOPOLOGICAL INITIAL_STATE
[2020-05-26 14:19:24] [INFO ] Applying decomposition
[2020-05-26 14:19:24] [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.202005100927/bin/convert-linux64, -i, /tmp/graph8873842115781536016.txt, -o, /tmp/graph8873842115781536016.bin, -w, /tmp/graph8873842115781536016.weights], workingDir=null]
Built communities with : CommandLine [args=[/home/mcc/BenchKit/itstools/plugins/fr.lip6.move.gal.louvain.binaries_1.0.0.202005100927/bin/louvain-linux64, /tmp/graph8873842115781536016.bin, -l, -1, -v, -w, /tmp/graph8873842115781536016.weights, -q, 0, -e, 0.001], workingDir=null]
[2020-05-26 14:19:24] [INFO ] Decomposing Gal with order
[2020-05-26 14:19:24] [INFO ] Rewriting arrays to variables to allow decomposition.
[2020-05-26 14:19:24] [INFO ] Removed a total of 92 redundant transitions.
[2020-05-26 14:19:25] [INFO ] Flatten gal took : 139 ms
[2020-05-26 14:19:25] [INFO ] Fuse similar labels procedure discarded/fused a total of 63 labels/synchronizations in 35 ms.
[2020-05-26 14:19:25] [INFO ] Time to serialize gal into /home/mcc/execution/CTLCardinality.pnml.gal : 23 ms
[2020-05-26 14:19:25] [INFO ] Time to serialize properties into /home/mcc/execution/CTLCardinality.ctl : 1 ms
Invoking ITS tools like this :CommandLine [args=[/home/mcc/BenchKit/itstools/plugins/fr.lip6.move.gal.itstools.binaries_1.0.0.202005100927/bin/its-ctl-linux64, --gc-threshold, 2000000, --quiet, -i, /home/mcc/execution/CTLCardinality.pnml.gal, -t, CGAL, -ctl, /home/mcc/execution/CTLCardinality.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.202005100927/bin/its-ctl-linux64 --gc-threshold 2000000 --quiet -i /home/mcc/execution/CTLCardinality.pnml.gal -t CGAL -ctl /home/mcc/execution/CTLCardinality.ctl --gen-order FOLLOW
No direction supplied, using forward translation only.
Parsed 7 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,9.16868e+09,0.111978,5340,2,1090,5,7138,6,0,310,4020,0


Converting to forward existential form...Done !
original formula: (AF(((gu37.cFactor221<=gu37.patient332)&&(gi1.gi0.gu1.patient3<2))) + (!(EG((gu24.cFactor223>=1))) * EG((gi1.gi1.gu22.patient233>=1))))
=> equivalent forward existential formula: ([FwdG((Init * !(!(EG(!(((gu37.cFactor221<=gu37.patient332)&&(gi1.gi0.gu1.patient3<2))))))),(gu24.cFactor223>=1))] = FALSE * [((Init * !(!(EG(!(((gu37.cFactor221<=gu37.patient332)&&(gi1.gi0.gu1.patient3<2))))))) * !(EG((gi1.gi1.gu22.patient233>=1))))] = FALSE)
Reverse transition relation is NOT exact ! Due to transitions cured01, dead01, cured112, dead112, cured113, dead113, cured121, dead121, cured133, dead133, Intersection with reachable at each step enabled. (destroyed/reverse/intersect/total) :0/49/10/59
(forward)formula 0,0,1.69776,52048,1,0,362,324689,144,171,1576,324145,373
FORMULA ViralEpidemic-PT-S03D1C1A02-CTLCardinality-01 FALSE TECHNIQUES DECISION_DIAGRAMS TOPOLOGICAL USE_NUPN
Formula is FALSE !

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

original formula: AX(EG(((gu16.patient331<=gu16.cFactor12)&&(gi1.gi0.gu5.patient1>=1))))
=> equivalent forward existential formula: [(EY(Init) * !(EG(((gu16.patient331<=gu16.cFactor12)&&(gi1.gi0.gu5.patient1>=1)))))] = FALSE
(forward)formula 1,0,1.71275,52312,1,0,363,325055,148,173,1581,324983,375
FORMULA ViralEpidemic-PT-S03D1C1A02-CTLCardinality-02 FALSE TECHNIQUES DECISION_DIAGRAMS TOPOLOGICAL USE_NUPN
Formula is FALSE !

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

original formula: EF(EG((gi1.gi1.gu17.patient212<1)))
=> equivalent forward existential formula: [FwdG(FwdU(Init,TRUE),(gi1.gi1.gu17.patient212<1))] != FALSE
Hit Full ! (commute/partial/dont) 56/0/3
(forward)formula 2,1,1.74428,52576,1,0,365,327448,155,175,1653,327228,378
FORMULA ViralEpidemic-PT-S03D1C1A02-CTLCardinality-07 TRUE TECHNIQUES DECISION_DIAGRAMS TOPOLOGICAL USE_NUPN
Formula is TRUE !

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

original formula: EG(TRUE)
=> equivalent forward existential formula: [FwdG(Init,TRUE)] != FALSE
(forward)formula 3,1,1.77463,52840,1,0,365,327933,156,177,1692,328328,380
FORMULA ViralEpidemic-PT-S03D1C1A02-CTLCardinality-08 TRUE TECHNIQUES DECISION_DIAGRAMS TOPOLOGICAL USE_NUPN
Formula is TRUE !

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

original formula: EG(((gu21.patient231<=gu21.patient222)||(gu30.patient223<=gu30.patient313)))
=> equivalent forward existential formula: [FwdG(Init,((gu21.patient231<=gu21.patient222)||(gu30.patient223<=gu30.patient313)))] != FALSE
Hit Full ! (commute/partial/dont) 48/0/11
(forward)formula 4,1,1.81944,53632,1,0,367,332655,163,180,1745,333140,383
FORMULA ViralEpidemic-PT-S03D1C1A02-CTLCardinality-12 TRUE TECHNIQUES DECISION_DIAGRAMS TOPOLOGICAL USE_NUPN
Formula is TRUE !

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

original formula: AF((gu14.patient132>gu14.patient12))
=> equivalent forward existential formula: [FwdG(Init,!((gu14.patient132>gu14.patient12)))] = FALSE
Hit Full ! (commute/partial/dont) 52/0/7
(forward)formula 5,0,1.86265,54688,1,0,369,337081,171,183,1825,337439,386
FORMULA ViralEpidemic-PT-S03D1C1A02-CTLCardinality-13 FALSE TECHNIQUES DECISION_DIAGRAMS TOPOLOGICAL USE_NUPN
Formula is FALSE !

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

original formula: (!(EF((gu8.dFactor222<=gu8.patient113))) + !(AF((gu3.patient322>gu3.dFactor11))))
=> equivalent forward existential formula: [(FwdU((Init * !(!(!(EG(!((gu3.patient322>gu3.dFactor11))))))),TRUE) * (gu8.dFactor222<=gu8.patient113))] = FALSE
(forward)formula 6,1,2.72984,84520,1,0,480,515250,177,240,1834,592321,502
FORMULA ViralEpidemic-PT-S03D1C1A02-CTLCardinality-14 TRUE TECHNIQUES DECISION_DIAGRAMS TOPOLOGICAL USE_NUPN
Formula is TRUE !

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

ITS tools runner thread asked to quit. Dying gracefully.

BK_STOP 1590502768608

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

+ export BINDIR=/home/mcc/BenchKit/
+ BINDIR=/home/mcc/BenchKit/
++ pwd
+ export MODEL=/home/mcc/execution
+ MODEL=/home/mcc/execution
+ [[ CTLCardinality = StateSpace ]]
+ /home/mcc/BenchKit//runeclipse.sh /home/mcc/execution CTLCardinality -its -ltsminpath /home/mcc/BenchKit//lts_install_dir/ -greatspnpath /home/mcc/BenchKit//greatspn/ -order META -manyOrder -smt -timeout 3600
+ ulimit -s 65536
+ [[ -z '' ]]
+ export LTSMIN_MEM_SIZE=8589934592
+ LTSMIN_MEM_SIZE=8589934592
+ /home/mcc/BenchKit//itstools/its-tools -data /home/mcc/execution/workspace -pnfolder /home/mcc/execution -examination CTLCardinality -z3path /home/mcc/BenchKit//z3/bin/z3 -yices2path /home/mcc/BenchKit//yices/bin/yices -its -ltsminpath /home/mcc/BenchKit//lts_install_dir/ -greatspnpath /home/mcc/BenchKit//greatspn/ -order META -manyOrder -smt -timeout 3600 -vmargs -Dosgi.locking=none -Declipse.stateSaveDelayInterval=-1 -Dosgi.configuration.area=/tmp/.eclipse -Xss128m -Xms40m -Xmx16000m -Dfile.encoding=UTF-8 -Dosgi.requiredJavaVersion=1.6

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="ViralEpidemic-PT-S03D1C1A02"
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"

# 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 ViralEpidemic-PT-S03D1C1A02, 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 r227-oct2-159033546700491"
echo "====================================================================="
echo
echo "--------------------"
echo "preparation of the directory to be used:"

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