fond
Model Checking Contest 2021
11th edition, Paris, France, June 23, 2021
Execution of r178-tajo-162089415400209
Last Updated
Jun 28, 2021

About the Execution of ITS-Tools for RERS17pb114-PT-3

Execution Summary
Max Memory
Used (MB)
Time wait (ms) CPU Usage (ms) I/O Wait (ms) Computed Result Execution
Status
16247.176 2870182.00 3032235.00 15772.20 ?TFT?T?T?F?????T normal

Execution Chart

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

Trace from the execution

Formatting '/mnt/tpsp/fkordon/mcc2021-input.r178-tajo-162089415400209.qcow2', fmt=qcow2 size=4294967296 backing_file='/mnt/tpsp/fkordon/mcc2021-input.qcow2' encryption=off cluster_size=65536 lazy_refcounts=off
Waiting for the VM to be ready (probing ssh)
........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
=====================================================================
Generated by BenchKit 2-4028
Executing tool itstools
Input is RERS17pb114-PT-3, examination is CTLCardinality
Time confinement is 3600 seconds
Memory confinement is 16384 MBytes
Number of cores is 4
Run identifier is r178-tajo-162089415400209
=====================================================================

--------------------
preparation of the directory to be used:
/home/mcc/execution
total 73M
-rw-r--r-- 1 mcc users 12K May 5 16:58 CTLCardinality.txt
-rw-r--r-- 1 mcc users 111K May 10 09:43 CTLCardinality.xml
-rw-r--r-- 1 mcc users 13K May 5 16:58 CTLFireability.txt
-rw-r--r-- 1 mcc users 56K May 10 09:43 CTLFireability.xml
-rw-r--r-- 1 mcc users 4.2K May 6 14:48 GenericPropertiesDefinition.xml
-rw-r--r-- 1 mcc users 6.5K May 6 14:48 GenericPropertiesVerdict.xml
-rw-r--r-- 1 mcc users 3.2K Mar 28 16:29 LTLCardinality.txt
-rw-r--r-- 1 mcc users 23K Mar 28 16:29 LTLCardinality.xml
-rw-r--r-- 1 mcc users 2.7K Mar 28 16:29 LTLFireability.txt
-rw-r--r-- 1 mcc users 16K Mar 28 16:29 LTLFireability.xml
-rw-r--r-- 1 mcc users 3.8K Mar 27 10:09 ReachabilityCardinality.txt
-rw-r--r-- 1 mcc users 20K Mar 27 10:09 ReachabilityCardinality.xml
-rw-r--r-- 1 mcc users 3.5K Mar 25 13:18 ReachabilityFireability.txt
-rw-r--r-- 1 mcc users 16K Mar 25 13:17 ReachabilityFireability.xml
-rw-r--r-- 1 mcc users 1.6K Mar 22 08:14 UpperBounds.txt
-rw-r--r-- 1 mcc users 3.6K Mar 22 08:14 UpperBounds.xml
-rw-r--r-- 1 mcc users 6 May 5 16:51 equiv_col
-rw-r--r-- 1 mcc users 2 May 5 16:51 instance
-rw-r--r-- 1 mcc users 6 May 5 16:51 iscolored
-rw-r--r-- 1 mcc users 73M 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 RERS17pb114-PT-3-CTLCardinality-00
FORMULA_NAME RERS17pb114-PT-3-CTLCardinality-01
FORMULA_NAME RERS17pb114-PT-3-CTLCardinality-02
FORMULA_NAME RERS17pb114-PT-3-CTLCardinality-03
FORMULA_NAME RERS17pb114-PT-3-CTLCardinality-04
FORMULA_NAME RERS17pb114-PT-3-CTLCardinality-05
FORMULA_NAME RERS17pb114-PT-3-CTLCardinality-06
FORMULA_NAME RERS17pb114-PT-3-CTLCardinality-07
FORMULA_NAME RERS17pb114-PT-3-CTLCardinality-08
FORMULA_NAME RERS17pb114-PT-3-CTLCardinality-09
FORMULA_NAME RERS17pb114-PT-3-CTLCardinality-10
FORMULA_NAME RERS17pb114-PT-3-CTLCardinality-11
FORMULA_NAME RERS17pb114-PT-3-CTLCardinality-12
FORMULA_NAME RERS17pb114-PT-3-CTLCardinality-13
FORMULA_NAME RERS17pb114-PT-3-CTLCardinality-14
FORMULA_NAME RERS17pb114-PT-3-CTLCardinality-15

=== Now, execution of the tool begins

BK_START 1621247341406

Running Version 0
[2021-05-17 10:29:03] [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-17 10:29:03] [INFO ] Parsing pnml file : /home/mcc/execution/model.pnml
[2021-05-17 10:29:05] [INFO ] Load time of PNML (sax parser for PT used): 2341 ms
[2021-05-17 10:29:05] [INFO ] Transformed 1446 places.
[2021-05-17 10:29:06] [INFO ] Transformed 151085 transitions.
[2021-05-17 10:29:06] [INFO ] Parsed PT model containing 1446 places and 151085 transitions in 3077 ms.
Parsed 16 properties from file /home/mcc/execution/CTLCardinality.xml in 26 ms.
Support contains 622 out of 1446 places. Attempting structural reductions.
Starting structural reductions, iteration 0 : 1446/1446 places, 151085/151085 transitions.
Ensure Unique test removed 9 places
Iterating post reduction 0 with 9 rules applied. Total rules applied 9 place count 1437 transition count 151085
Applied a total of 9 rules in 1398 ms. Remains 1437 /1446 variables (removed 9) and now considering 151085/151085 (removed 0) transitions.
[2021-05-17 10:29:08] [INFO ] Flow matrix only has 84691 transitions (discarded 66394 similar events)
// Phase 1: matrix 84691 rows 1437 cols
[2021-05-17 10:29:09] [INFO ] Computed 26 place invariants in 643 ms
[2021-05-17 10:29:14] [INFO ] Implicit Places using invariants in 6177 ms returned []
Implicit Place search using SMT only with invariants took 6211 ms to find 0 implicit places.
[2021-05-17 10:29:15] [INFO ] Flow matrix only has 84691 transitions (discarded 66394 similar events)
// Phase 1: matrix 84691 rows 1437 cols
[2021-05-17 10:29:15] [INFO ] Computed 26 place invariants in 391 ms
[2021-05-17 10:29:45] [INFO ] Performed 97802/151085 'is it Dead' test of which 0 returned DEAD in 30 seconds.
[2021-05-17 10:30:01] [INFO ] Dead Transitions using invariants and state equation in 47029 ms returned []
Finished structural reductions, in 1 iterations. Remains : 1437/1446 places, 151085/151085 transitions.
[2021-05-17 10:30:06] [INFO ] Flatten gal took : 3982 ms
[2021-05-17 10:30:10] [INFO ] Flatten gal took : 3577 ms
[2021-05-17 10:30:18] [INFO ] Input system was already deterministic with 151085 transitions.
Incomplete random walk after 100000 steps, including 2 resets, run finished after 13264 ms. (steps per millisecond=7 ) properties (out of 76) seen :29
Running SMT prover for 47 properties.
[2021-05-17 10:30:32] [INFO ] Flow matrix only has 84691 transitions (discarded 66394 similar events)
// Phase 1: matrix 84691 rows 1437 cols
[2021-05-17 10:30:33] [INFO ] Computed 26 place invariants in 378 ms
[2021-05-17 10:30:34] [INFO ] [Real]Absence check using 18 positive place invariants in 14 ms returned sat
[2021-05-17 10:30:34] [INFO ] [Real]Absence check using 18 positive and 8 generalized place invariants in 2 ms returned sat
[2021-05-17 10:30:34] [INFO ] [Real]Adding state equation constraints to refine reachable states.
[2021-05-17 10:30:57] [INFO ] [Real]Absence check using state equation in 22311 ms returned unsat :14 sat :2 real:31
[2021-05-17 10:31:01] [INFO ] State equation strengthened by 2342 read => feed constraints.
[2021-05-17 10:31:33] [INFO ] [Real]Added 2342 Read/Feed constraints in 32127 ms returned sat
Attempting to minimize the solution found.
Minimization took 9110 ms.
[2021-05-17 10:31:51] [INFO ] SMT Verify possible in real domain returnedunsat :14 sat :2 real:31
[2021-05-17 10:31:52] [INFO ] [Nat]Absence check using 18 positive place invariants in 15 ms returned sat
[2021-05-17 10:31:52] [INFO ] [Nat]Absence check using 18 positive and 8 generalized place invariants in 2 ms returned sat
[2021-05-17 10:31:52] [INFO ] [Nat]Adding state equation constraints to refine reachable states.
[2021-05-17 10:32:26] [INFO ] [Nat]Absence check using state equation in 33563 ms returned unsat :22 sat :25
[2021-05-17 10:32:59] [INFO ] [Nat]Added 2342 Read/Feed constraints in 32931 ms returned sat
Attempting to minimize the solution found.
Minimization took 19874 ms.
[2021-05-17 10:33:28] [INFO ] SMT Verify possible in nat domain returned unsat :22 sat :25
Successfully simplified 36 atomic propositions for a total of 16 simplifications.
[2021-05-17 10:33:28] [INFO ] Initial state test concluded for 3 properties.
FORMULA RERS17pb114-PT-3-CTLCardinality-01 TRUE TECHNIQUES TOPOLOGICAL INITIAL_STATE
FORMULA RERS17pb114-PT-3-CTLCardinality-09 FALSE TECHNIQUES TOPOLOGICAL INITIAL_STATE
FORMULA RERS17pb114-PT-3-CTLCardinality-15 TRUE TECHNIQUES TOPOLOGICAL INITIAL_STATE
Ensure Unique test removed 8 places
Reduce places removed 1 places and 1 transitions.
Iterating global reduction 0 with 1 rules applied. Total rules applied 1 place count 1428 transition count 151084
Applied a total of 1 rules in 4834 ms. Remains 1428 /1437 variables (removed 9) and now considering 151084/151085 (removed 1) transitions.
[2021-05-17 10:33:39] [INFO ] Flatten gal took : 3945 ms
[2021-05-17 10:33:44] [INFO ] Flatten gal took : 4072 ms
[2021-05-17 10:33:52] [INFO ] Input system was already deterministic with 151084 transitions.
[2021-05-17 10:33:57] [INFO ] Flatten gal took : 4204 ms
[2021-05-17 10:34:01] [INFO ] Flatten gal took : 4117 ms
[2021-05-17 10:34:01] [INFO ] Time to serialize gal into /tmp/CTLCardinality3738706338555506324.gal : 660 ms
[2021-05-17 10:34:01] [INFO ] Time to serialize properties into /tmp/CTLCardinality4307710358188775656.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/CTLCardinality3738706338555506324.gal, -t, CGAL, -ctl, /tmp/CTLCardinality4307710358188775656.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/CTLCardinality3738706338555506324.gal -t CGAL -ctl /tmp/CTLCardinality4307710358188775656.ctl --gen-order FOLLOW
No direction supplied, using forward translation only.
Parsed 1 CTL formulae.
Detected timeout of ITS tools.
[2021-05-17 10:34:36] [INFO ] Flatten gal took : 4172 ms
[2021-05-17 10:34:36] [INFO ] Applying decomposition
[2021-05-17 10:34:40] [INFO ] Flatten gal took : 4165 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/graph5276196211513590716.txt, -o, /tmp/graph5276196211513590716.bin, -w, /tmp/graph5276196211513590716.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/graph5276196211513590716.bin, -l, -1, -v, -w, /tmp/graph5276196211513590716.weights, -q, 0, -e, 0.001], workingDir=null]
[2021-05-17 10:34:48] [INFO ] Decomposing Gal with order
[2021-05-17 10:34:48] [INFO ] Rewriting arrays to variables to allow decomposition.
[2021-05-17 10:35:01] [INFO ] Removed a total of 457875 redundant transitions.
[2021-05-17 10:35:02] [INFO ] Flatten gal took : 8485 ms
[2021-05-17 10:35:27] [INFO ] Fuse similar labels procedure discarded/fused a total of 3454 labels/synchronizations in 10067 ms.
[2021-05-17 10:35:34] [INFO ] Time to serialize gal into /tmp/CTLCardinality10843374967820900612.gal : 289 ms
[2021-05-17 10:35:34] [INFO ] Time to serialize properties into /tmp/CTLCardinality4006667442749957810.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/CTLCardinality10843374967820900612.gal, -t, CGAL, -ctl, /tmp/CTLCardinality4006667442749957810.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/CTLCardinality10843374967820900612.gal -t CGAL -ctl /tmp/CTLCardinality4006667442749957810.ctl --gen-order FOLLOW
No direction supplied, using forward translation only.
Parsed 1 CTL formulae.
Detected timeout of ITS tools.
[2021-05-17 10:36:09] [INFO ] Initial state reduction rules for CTL removed 3 formulas.
[2021-05-17 10:36:09] [INFO ] Flatten gal took : 4564 ms
[2021-05-17 10:36:09] [INFO ] Initial state reduction rules for CTL removed 1 formulas.
FORMULA RERS17pb114-PT-3-CTLCardinality-07 TRUE TECHNIQUES TOPOLOGICAL INITIAL_STATE
FORMULA RERS17pb114-PT-3-CTLCardinality-05 TRUE TECHNIQUES TOPOLOGICAL INITIAL_STATE
FORMULA RERS17pb114-PT-3-CTLCardinality-03 TRUE TECHNIQUES TOPOLOGICAL INITIAL_STATE
FORMULA RERS17pb114-PT-3-CTLCardinality-02 FALSE TECHNIQUES TOPOLOGICAL INITIAL_STATE
[2021-05-17 10:36:13] [INFO ] Flatten gal took : 4141 ms
[2021-05-17 10:36:16] [INFO ] Applying decomposition
[2021-05-17 10:36:19] [INFO ] Flatten gal took : 3846 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/graph653316293614714267.txt, -o, /tmp/graph653316293614714267.bin, -w, /tmp/graph653316293614714267.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/graph653316293614714267.bin, -l, -1, -v, -w, /tmp/graph653316293614714267.weights, -q, 0, -e, 0.001], workingDir=null]
[2021-05-17 10:36:27] [INFO ] Decomposing Gal with order
[2021-05-17 10:36:27] [INFO ] Rewriting arrays to variables to allow decomposition.
[2021-05-17 10:36:40] [INFO ] Removed a total of 458562 redundant transitions.
[2021-05-17 10:36:41] [INFO ] Flatten gal took : 8583 ms
[2021-05-17 10:37:01] [INFO ] Fuse similar labels procedure discarded/fused a total of 3441 labels/synchronizations in 13718 ms.
[2021-05-17 10:37:02] [INFO ] Time to serialize gal into /tmp/CTLCardinality8998165095605233901.gal : 208 ms
[2021-05-17 10:37:02] [INFO ] Time to serialize properties into /tmp/CTLCardinality14815740959349826076.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/CTLCardinality8998165095605233901.gal, -t, CGAL, -ctl, /tmp/CTLCardinality14815740959349826076.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/CTLCardinality8998165095605233901.gal -t CGAL -ctl /tmp/CTLCardinality14815740959349826076.ctl --gen-order FOLLOW
No direction supplied, using forward translation only.
Parsed 9 CTL formulae.
Detected timeout of ITS tools.
[2021-05-17 10:59:32] [INFO ] Flatten gal took : 4443 ms
[2021-05-17 10:59:32] [INFO ] Time to serialize gal into /tmp/CTLCardinality14286217508198621794.gal : 345 ms
[2021-05-17 10:59:32] [INFO ] Time to serialize properties into /tmp/CTLCardinality4698204425245760825.ctl : 4 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/CTLCardinality14286217508198621794.gal, -t, CGAL, -ctl, /tmp/CTLCardinality4698204425245760825.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/CTLCardinality14286217508198621794.gal -t CGAL -ctl /tmp/CTLCardinality4698204425245760825.ctl --gen-order FOLLOW
No direction supplied, using forward translation only.
Parsed 9 CTL formulae.
ITS-tools command line returned an error code 137
[2021-05-17 11:08:56] [INFO ] Flatten gal took : 6517 ms
[2021-05-17 11:09:03] [INFO ] Input system was already deterministic with 151085 transitions.
[2021-05-17 11:09:04] [INFO ] Transformed 1437 places.
[2021-05-17 11:09:04] [INFO ] Transformed 151085 transitions.
Running greatSPN : CommandLine [args=[/home/mcc/BenchKit/bin//..//greatspn//bin/pinvar, /home/mcc/execution/gspn], workingDir=/home/mcc/execution]
Run of greatSPN captured in /home/mcc/execution/outPut.txt
Running greatSPN : CommandLine [args=[/home/mcc/BenchKit/bin//..//greatspn//bin/RGMEDD2, /home/mcc/execution/gspn, -META, -varord-only], workingDir=/home/mcc/execution]
Run of greatSPN captured in /home/mcc/execution/outPut.txt
Using order generated by GreatSPN with heuristic : META
[2021-05-17 11:09:39] [INFO ] Time to serialize gal into /tmp/CTLCardinality17618586134116083417.gal : 355 ms
[2021-05-17 11:09:39] [INFO ] Time to serialize properties into /tmp/CTLCardinality17300360255810135121.ctl : 2 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/CTLCardinality17618586134116083417.gal, -t, CGAL, -ctl, /tmp/CTLCardinality17300360255810135121.ctl, --load-order, /home/mcc/execution/model.ord, --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/CTLCardinality17618586134116083417.gal -t CGAL -ctl /tmp/CTLCardinality17300360255810135121.ctl --load-order /home/mcc/execution/model.ord --gen-order FOLLOW
Successfully loaded order from file /home/mcc/execution/model.ord
No direction supplied, using forward translation only.
Parsed 9 CTL formulae.
ITS-tools command line returned an error code 137

BK_STOP 1621250211588

--------------------
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="RERS17pb114-PT-3"
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 RERS17pb114-PT-3, 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 r178-tajo-162089415400209"
echo "====================================================================="
echo
echo "--------------------"
echo "preparation of the directory to be used:"

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