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

About the Execution of ITS-Tools for ResAllocation-PT-R015C002

Execution Summary
Max Memory
Used (MB)
Time wait (ms) CPU Usage (ms) I/O Wait (ms) Computed Result Execution
Status
223.495 3044.00 7990.00 50.30 F 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.r185-tajo-162089425900498.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 ResAllocation-PT-R015C002, examination is StableMarking
Time confinement is 1800 seconds
Memory confinement is 16384 MBytes
Number of cores is 4
Run identifier is r185-tajo-162089425900498
=====================================================================

--------------------
preparation of the directory to be used:
/home/mcc/execution
total 412K
-rw-r--r-- 1 mcc users 11K May 5 16:58 CTLCardinality.txt
-rw-r--r-- 1 mcc users 88K May 10 09:44 CTLCardinality.xml
-rw-r--r-- 1 mcc users 12K May 5 16:58 CTLFireability.txt
-rw-r--r-- 1 mcc users 97K May 10 09:44 CTLFireability.xml
-rw-r--r-- 1 mcc users 4.2K May 6 14:48 GenericPropertiesDefinition.xml
-rw-r--r-- 1 mcc users 3.6K Mar 28 16:33 LTLCardinality.txt
-rw-r--r-- 1 mcc users 24K Mar 28 16:33 LTLCardinality.xml
-rw-r--r-- 1 mcc users 2.2K Mar 28 16:33 LTLFireability.txt
-rw-r--r-- 1 mcc users 17K Mar 28 16:33 LTLFireability.xml
-rw-r--r-- 1 mcc users 3.8K Mar 27 10:56 ReachabilityCardinality.txt
-rw-r--r-- 1 mcc users 19K Mar 27 10:56 ReachabilityCardinality.xml
-rw-r--r-- 1 mcc users 3.7K Mar 25 14:04 ReachabilityFireability.txt
-rw-r--r-- 1 mcc users 25K Mar 25 14:04 ReachabilityFireability.xml
-rw-r--r-- 1 mcc users 1.8K Mar 22 08:15 UpperBounds.txt
-rw-r--r-- 1 mcc users 3.8K Mar 22 08:15 UpperBounds.xml
-rw-r--r-- 1 mcc users 6 May 5 16:51 equiv_col
-rw-r--r-- 1 mcc users 9 May 5 16:51 instance
-rw-r--r-- 1 mcc users 6 May 5 16:51 iscolored
-rw-r--r-- 1 mcc users 64K 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

FORMULA_NAME StableMarking

=== Now, execution of the tool begins

BK_START 1621336920996

Running Version 0
[2021-05-18 11:22:02] [INFO ] Running its-tools with arguments : [-pnfolder, /home/mcc/execution, -examination, StableMarking, -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, 1800]
[2021-05-18 11:22:02] [INFO ] Parsing pnml file : /home/mcc/execution/model.pnml
[2021-05-18 11:22:02] [INFO ] Load time of PNML (sax parser for PT used): 39 ms
[2021-05-18 11:22:02] [INFO ] Transformed 60 places.
[2021-05-18 11:22:02] [INFO ] Transformed 32 transitions.
[2021-05-18 11:22:02] [INFO ] Parsed PT model containing 60 places and 32 transitions in 76 ms.
Structural test allowed to assert that 2 places are NOT stable. Took 7 ms.
Incomplete random walk after 10000 steps, including 146 resets, run finished after 40 ms. (steps per millisecond=250 ) properties (out of 58) seen :49
Incomplete Best-First random walk after 10001 steps, including 33 resets, run finished after 15 ms. (steps per millisecond=666 ) properties (out of 9) seen :1
Incomplete Best-First random walk after 10001 steps, including 33 resets, run finished after 10 ms. (steps per millisecond=1000 ) properties (out of 8) seen :0
Incomplete Best-First random walk after 10000 steps, including 32 resets, run finished after 10 ms. (steps per millisecond=1000 ) properties (out of 8) seen :2
Incomplete Best-First random walk after 10001 steps, including 33 resets, run finished after 10 ms. (steps per millisecond=1000 ) properties (out of 6) seen :0
Incomplete Best-First random walk after 10001 steps, including 33 resets, run finished after 12 ms. (steps per millisecond=833 ) properties (out of 6) seen :1
Incomplete Best-First random walk after 10001 steps, including 33 resets, run finished after 9 ms. (steps per millisecond=1111 ) properties (out of 5) seen :0
Incomplete Best-First random walk after 10001 steps, including 33 resets, run finished after 7 ms. (steps per millisecond=1428 ) properties (out of 5) seen :0
Running SMT prover for 5 properties.
// Phase 1: matrix 32 rows 60 cols
[2021-05-18 11:22:02] [INFO ] Computed 30 place invariants in 9 ms
[2021-05-18 11:22:03] [INFO ] [Real]Absence check using 30 positive place invariants in 9 ms returned sat
[2021-05-18 11:22:03] [INFO ] [Real]Adding state equation constraints to refine reachable states.
[2021-05-18 11:22:03] [INFO ] [Real]Absence check using state equation in 18 ms returned sat
[2021-05-18 11:22:03] [INFO ] Solution in real domain found non-integer solution.
[2021-05-18 11:22:03] [INFO ] [Nat]Absence check using 30 positive place invariants in 5 ms returned sat
[2021-05-18 11:22:03] [INFO ] [Nat]Adding state equation constraints to refine reachable states.
[2021-05-18 11:22:03] [INFO ] [Nat]Absence check using state equation in 18 ms returned sat
[2021-05-18 11:22:03] [INFO ] Computed and/alt/rep : 30/30/30 causal constraints (skipped 0 transitions) in 4 ms.
[2021-05-18 11:22:03] [INFO ] Added : 22 causal constraints over 5 iterations in 41 ms. Result :sat
Attempting to minimize the solution found.
Minimization took 3 ms.
[2021-05-18 11:22:03] [INFO ] [Real]Absence check using 30 positive place invariants in 5 ms returned sat
[2021-05-18 11:22:03] [INFO ] [Real]Adding state equation constraints to refine reachable states.
[2021-05-18 11:22:03] [INFO ] [Real]Absence check using state equation in 16 ms returned sat
[2021-05-18 11:22:03] [INFO ] Computed and/alt/rep : 30/30/30 causal constraints (skipped 0 transitions) in 5 ms.
[2021-05-18 11:22:03] [INFO ] Added : 22 causal constraints over 5 iterations in 35 ms. Result :sat
Attempting to minimize the solution found.
Minimization took 1 ms.
[2021-05-18 11:22:03] [INFO ] [Real]Absence check using 30 positive place invariants in 5 ms returned sat
[2021-05-18 11:22:03] [INFO ] [Real]Adding state equation constraints to refine reachable states.
[2021-05-18 11:22:03] [INFO ] [Real]Absence check using state equation in 12 ms returned sat
[2021-05-18 11:22:03] [INFO ] Computed and/alt/rep : 30/30/30 causal constraints (skipped 0 transitions) in 3 ms.
[2021-05-18 11:22:03] [INFO ] Added : 22 causal constraints over 5 iterations in 26 ms. Result :sat
Attempting to minimize the solution found.
Minimization took 1 ms.
[2021-05-18 11:22:03] [INFO ] [Real]Absence check using 30 positive place invariants in 4 ms returned sat
[2021-05-18 11:22:03] [INFO ] [Real]Adding state equation constraints to refine reachable states.
[2021-05-18 11:22:03] [INFO ] [Real]Absence check using state equation in 12 ms returned sat
[2021-05-18 11:22:03] [INFO ] Solution in real domain found non-integer solution.
[2021-05-18 11:22:03] [INFO ] [Nat]Absence check using 30 positive place invariants in 4 ms returned sat
[2021-05-18 11:22:03] [INFO ] [Nat]Adding state equation constraints to refine reachable states.
[2021-05-18 11:22:03] [INFO ] [Nat]Absence check using state equation in 18 ms returned sat
[2021-05-18 11:22:03] [INFO ] Computed and/alt/rep : 30/30/30 causal constraints (skipped 0 transitions) in 3 ms.
[2021-05-18 11:22:03] [INFO ] Added : 13 causal constraints over 3 iterations in 16 ms. Result :sat
Attempting to minimize the solution found.
Minimization took 2 ms.
[2021-05-18 11:22:03] [INFO ] [Real]Absence check using 30 positive place invariants in 4 ms returned sat
[2021-05-18 11:22:03] [INFO ] [Real]Adding state equation constraints to refine reachable states.
[2021-05-18 11:22:03] [INFO ] [Real]Absence check using state equation in 12 ms returned sat
[2021-05-18 11:22:03] [INFO ] Solution in real domain found non-integer solution.
[2021-05-18 11:22:03] [INFO ] [Nat]Absence check using 30 positive place invariants in 4 ms returned sat
[2021-05-18 11:22:03] [INFO ] [Nat]Adding state equation constraints to refine reachable states.
[2021-05-18 11:22:03] [INFO ] [Nat]Absence check using state equation in 17 ms returned sat
[2021-05-18 11:22:03] [INFO ] Computed and/alt/rep : 30/30/30 causal constraints (skipped 0 transitions) in 6 ms.
[2021-05-18 11:22:03] [INFO ] Added : 14 causal constraints over 3 iterations in 20 ms. Result :sat
Attempting to minimize the solution found.
Minimization took 1 ms.
Fused 5 Parikh solutions to 4 different solutions.
Incomplete Parikh walk after 3600 steps, including 137 resets, run finished after 8 ms. (steps per millisecond=450 ) properties (out of 5) seen :0 could not realise parikh vector
Incomplete Parikh walk after 5700 steps, including 146 resets, run finished after 13 ms. (steps per millisecond=438 ) properties (out of 5) seen :4 could not realise parikh vector
Incomplete Parikh walk after 5400 steps, including 98 resets, run finished after 9 ms. (steps per millisecond=600 ) properties (out of 1) seen :0 could not realise parikh vector
Incomplete Parikh walk after 6200 steps, including 98 resets, run finished after 10 ms. (steps per millisecond=620 ) properties (out of 1) seen :0 could not realise parikh vector
Support contains 1 out of 60 places. Attempting structural reductions.
Starting structural reductions, iteration 0 : 60/60 places, 32/32 transitions.
Performed 1 Post agglomeration using F-continuation condition.Transition count delta: 1
Deduced a syphon composed of 1 places in 0 ms
Reduce places removed 2 places and 0 transitions.
Iterating global reduction 0 with 3 rules applied. Total rules applied 3 place count 58 transition count 31
Free-agglomeration rule applied 1 times.
Iterating global reduction 0 with 1 rules applied. Total rules applied 4 place count 58 transition count 30
Reduce places removed 2 places and 0 transitions.
Iterating post reduction 0 with 2 rules applied. Total rules applied 6 place count 56 transition count 30
Performed 1 Post agglomeration using F-continuation condition.Transition count delta: 1
Deduced a syphon composed of 1 places in 0 ms
Reduce places removed 2 places and 0 transitions.
Iterating global reduction 1 with 3 rules applied. Total rules applied 9 place count 54 transition count 29
Free-agglomeration rule applied 1 times.
Iterating global reduction 1 with 1 rules applied. Total rules applied 10 place count 54 transition count 28
Reduce places removed 2 places and 0 transitions.
Iterating post reduction 1 with 2 rules applied. Total rules applied 12 place count 52 transition count 28
Performed 1 Post agglomeration using F-continuation condition.Transition count delta: 1
Deduced a syphon composed of 1 places in 0 ms
Reduce places removed 2 places and 0 transitions.
Iterating global reduction 2 with 3 rules applied. Total rules applied 15 place count 50 transition count 27
Free-agglomeration rule applied 1 times.
Iterating global reduction 2 with 1 rules applied. Total rules applied 16 place count 50 transition count 26
Reduce places removed 2 places and 0 transitions.
Iterating post reduction 2 with 2 rules applied. Total rules applied 18 place count 48 transition count 26
Performed 1 Post agglomeration using F-continuation condition.Transition count delta: 1
Deduced a syphon composed of 1 places in 0 ms
Reduce places removed 2 places and 0 transitions.
Iterating global reduction 3 with 3 rules applied. Total rules applied 21 place count 46 transition count 25
Free-agglomeration rule applied 1 times.
Iterating global reduction 3 with 1 rules applied. Total rules applied 22 place count 46 transition count 24
Reduce places removed 2 places and 0 transitions.
Iterating post reduction 3 with 2 rules applied. Total rules applied 24 place count 44 transition count 24
Performed 1 Post agglomeration using F-continuation condition.Transition count delta: 1
Deduced a syphon composed of 1 places in 0 ms
Reduce places removed 2 places and 0 transitions.
Iterating global reduction 4 with 3 rules applied. Total rules applied 27 place count 42 transition count 23
Free-agglomeration rule applied 1 times.
Iterating global reduction 4 with 1 rules applied. Total rules applied 28 place count 42 transition count 22
Reduce places removed 2 places and 0 transitions.
Iterating post reduction 4 with 2 rules applied. Total rules applied 30 place count 40 transition count 22
Performed 1 Post agglomeration using F-continuation condition.Transition count delta: 1
Deduced a syphon composed of 1 places in 0 ms
Reduce places removed 2 places and 0 transitions.
Iterating global reduction 5 with 3 rules applied. Total rules applied 33 place count 38 transition count 21
Free-agglomeration rule applied 1 times.
Iterating global reduction 5 with 1 rules applied. Total rules applied 34 place count 38 transition count 20
Reduce places removed 2 places and 0 transitions.
Iterating post reduction 5 with 2 rules applied. Total rules applied 36 place count 36 transition count 20
Performed 1 Post agglomeration using F-continuation condition.Transition count delta: 1
Deduced a syphon composed of 1 places in 0 ms
Reduce places removed 2 places and 0 transitions.
Iterating global reduction 6 with 3 rules applied. Total rules applied 39 place count 34 transition count 19
Free-agglomeration rule applied 1 times.
Iterating global reduction 6 with 1 rules applied. Total rules applied 40 place count 34 transition count 18
Reduce places removed 2 places and 0 transitions.
Iterating post reduction 6 with 2 rules applied. Total rules applied 42 place count 32 transition count 18
Performed 1 Post agglomeration using F-continuation condition.Transition count delta: 1
Deduced a syphon composed of 1 places in 0 ms
Reduce places removed 2 places and 0 transitions.
Iterating global reduction 7 with 3 rules applied. Total rules applied 45 place count 30 transition count 17
Free-agglomeration rule applied 1 times.
Iterating global reduction 7 with 1 rules applied. Total rules applied 46 place count 30 transition count 16
Reduce places removed 2 places and 0 transitions.
Iterating post reduction 7 with 2 rules applied. Total rules applied 48 place count 28 transition count 16
Performed 1 Post agglomeration using F-continuation condition.Transition count delta: 1
Deduced a syphon composed of 1 places in 0 ms
Reduce places removed 2 places and 0 transitions.
Iterating global reduction 8 with 3 rules applied. Total rules applied 51 place count 26 transition count 15
Free-agglomeration rule applied 1 times.
Iterating global reduction 8 with 1 rules applied. Total rules applied 52 place count 26 transition count 14
Reduce places removed 2 places and 0 transitions.
Iterating post reduction 8 with 2 rules applied. Total rules applied 54 place count 24 transition count 14
Performed 1 Post agglomeration using F-continuation condition.Transition count delta: 1
Deduced a syphon composed of 1 places in 0 ms
Reduce places removed 2 places and 0 transitions.
Iterating global reduction 9 with 3 rules applied. Total rules applied 57 place count 22 transition count 13
Free-agglomeration rule applied 1 times.
Iterating global reduction 9 with 1 rules applied. Total rules applied 58 place count 22 transition count 12
Reduce places removed 2 places and 0 transitions.
Iterating post reduction 9 with 2 rules applied. Total rules applied 60 place count 20 transition count 12
Performed 1 Post agglomeration using F-continuation condition.Transition count delta: 1
Deduced a syphon composed of 1 places in 0 ms
Reduce places removed 2 places and 0 transitions.
Iterating global reduction 10 with 3 rules applied. Total rules applied 63 place count 18 transition count 11
Free-agglomeration rule applied 1 times.
Iterating global reduction 10 with 1 rules applied. Total rules applied 64 place count 18 transition count 10
Reduce places removed 2 places and 0 transitions.
Iterating post reduction 10 with 2 rules applied. Total rules applied 66 place count 16 transition count 10
Performed 1 Post agglomeration using F-continuation condition.Transition count delta: 1
Deduced a syphon composed of 1 places in 0 ms
Reduce places removed 2 places and 0 transitions.
Iterating global reduction 11 with 3 rules applied. Total rules applied 69 place count 14 transition count 9
Free-agglomeration rule applied 1 times.
Iterating global reduction 11 with 1 rules applied. Total rules applied 70 place count 14 transition count 8
Reduce places removed 2 places and 0 transitions.
Iterating post reduction 11 with 2 rules applied. Total rules applied 72 place count 12 transition count 8
Performed 1 Post agglomeration using F-continuation condition.Transition count delta: 1
Deduced a syphon composed of 1 places in 0 ms
Reduce places removed 2 places and 0 transitions.
Iterating global reduction 12 with 3 rules applied. Total rules applied 75 place count 10 transition count 7
Free-agglomeration rule applied 1 times.
Iterating global reduction 12 with 1 rules applied. Total rules applied 76 place count 10 transition count 6
Reduce places removed 2 places and 0 transitions.
Iterating post reduction 12 with 2 rules applied. Total rules applied 78 place count 8 transition count 6
Performed 1 Post agglomeration using F-continuation condition.Transition count delta: 1
Deduced a syphon composed of 1 places in 0 ms
Reduce places removed 2 places and 0 transitions.
Iterating global reduction 13 with 3 rules applied. Total rules applied 81 place count 6 transition count 5
Free-agglomeration rule applied 1 times.
Iterating global reduction 13 with 1 rules applied. Total rules applied 82 place count 6 transition count 4
Discarding 2 places :
Also discarding 1 output transitions
Drop transitions removed 1 transitions
Remove reverse transitions (loop back) rule discarded transition t_1_14.t_1_13.t_1_12.t_1_11.t_1_10.t_1_9.t_1_8.t_1_7.t_1_6.t_1_5.t_1_4.t_1_3.t_1_2.t_1_1.t_1_0 and 2 places that fell out of Prefix Of Interest.
Drop transitions removed 1 transitions
Reduce isomorphic transitions removed 1 transitions.
Iterating post reduction 13 with 2 rules applied. Total rules applied 84 place count 2 transition count 2
Applied a total of 84 rules in 55 ms. Remains 2 /60 variables (removed 58) and now considering 2/32 (removed 30) transitions.
Finished structural reductions, in 1 iterations. Remains : 2/60 places, 2/32 transitions.
[2021-05-18 11:22:03] [INFO ] Flatten gal took : 21 ms
[2021-05-18 11:22:03] [INFO ] Flatten gal took : 1 ms
[2021-05-18 11:22:03] [INFO ] Time to serialize gal into /tmp/ReachabilityCardinality16235877512290778441.gal : 2 ms
[2021-05-18 11:22:03] [INFO ] Time to serialize properties into /tmp/ReachabilityCardinality3826543844237343387.prop : 1 ms
Invoking ITS tools like this :CommandLine [args=[/home/mcc/BenchKit/itstools/plugins/fr.lip6.move.gal.itstools.binaries_1.0.0.202104292328/bin/its-reach-linux64, --gc-threshold, 2000000, --quiet, -i, /tmp/ReachabilityCardinality16235877512290778441.gal, -t, CGAL, -reachable-file, /tmp/ReachabilityCardinality3826543844237343387.prop, --nowitness, --gen-order, FOLLOW], workingDir=/home/mcc/execution]

its-reach command run as :

/home/mcc/BenchKit/itstools/plugins/fr.lip6.move.gal.itstools.binaries_1.0.0.202104292328/bin/its-reach-linux64 --gc-threshold 2000000 --quiet -i /tmp/ReachabilityCardinality16235877512290778441.gal -t CGAL -reachable-file /tmp/ReachabilityCardinality3826543844237343387.prop --nowitness --gen-order FOLLOW
Loading property file /tmp/ReachabilityCardinality3826543844237343387.prop.
Model ,|S| ,Time ,Mem(kb) ,fin. SDD ,fin. DDD ,peak SDD ,peak DDD ,SDD Hom ,SDD cache peak ,DDD Hom ,DDD cachepeak ,SHom cache
petri\_inst\_inst,2,0.009779,3628,2,4,5,12,7,0,14,6,0
Total reachable state count : 2

Verifying 1 reachability properties.
Invariant property smplace_28 does not hold.

Model ,|S| ,Time ,Mem(kb) ,fin. SDD ,fin. DDD ,peak SDD ,peak DDD ,SDD Hom ,SDD cache peak ,DDD Hom ,DDD cachepeak ,SHom cache
smplace\_28,1,0.010102,4000,2,3,6,12,7,0,16,6,0
Able to resolve query StableMarking after proving 59 properties.
FORMULA StableMarking FALSE TECHNIQUES RANDOM_WALK PARIKH_WALK MARKED_SUFFIX_TEST DECISION_DIAGRAMS COLLATERAL_PROCESSING BESTFIRST_WALK TOPOLOGICAL

BK_STOP 1621336924040

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

+ export BINDIR=/home/mcc/BenchKit/bin//../
+ BINDIR=/home/mcc/BenchKit/bin//../
++ pwd
+ export MODEL=/home/mcc/execution
+ MODEL=/home/mcc/execution
+ [[ StableMarking = StateSpace ]]
+ /home/mcc/BenchKit/bin//..//runeclipse.sh /home/mcc/execution StableMarking -its -ltsmin -greatspnpath /home/mcc/BenchKit/bin//..//greatspn/ -order META -manyOrder -smt -timeout 1800
+ 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 StableMarking -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 1800 -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="ResAllocation-PT-R015C002"
export BK_EXAMINATION="StableMarking"
export BK_TOOL="itstools"
export BK_RESULT_DIR="/tmp/BK_RESULTS/OUTPUTS"
export BK_TIME_CONFINEMENT="1800"
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 ResAllocation-PT-R015C002, examination is StableMarking"
echo " Time confinement is $BK_TIME_CONFINEMENT seconds"
echo " Memory confinement is 16384 MBytes"
echo " Number of cores is 4"
echo " Run identifier is r185-tajo-162089425900498"
echo "====================================================================="
echo
echo "--------------------"
echo "preparation of the directory to be used:"

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