fond
Model Checking Contest 2023
13th edition, Paris, France, April 26, 2023 (at TOOLympics II)
Execution of r211-smll-167840355300104
Last Updated
May 14, 2023

About the Execution of ITS-Tools for GlobalResAllocation-COL-03

Execution Summary
Max Memory
Used (MB)
Time wait (ms) CPU Usage (ms) I/O Wait (ms) Computed Result Execution
Status
397.655 13629.00 22707.00 465.20 T normal

Execution Chart

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

Trace from the execution

Formatting '/data/fkordon/mcc2023-input.r211-smll-167840355300104.qcow2', fmt=qcow2 size=4294967296 backing_file=/data/fkordon/mcc2023-input.qcow2 cluster_size=65536 lazy_refcounts=off refcount_bits=16
Waiting for the VM to be ready (probing ssh)
...........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
=====================================================================
Generated by BenchKit 2-5348
Executing tool itstools
Input is GlobalResAllocation-COL-03, examination is Liveness
Time confinement is 1800 seconds
Memory confinement is 16384 MBytes
Number of cores is 4
Run identifier is r211-smll-167840355300104
=====================================================================

--------------------
preparation of the directory to be used:
/home/mcc/execution
total 384K
-rw-r--r-- 1 mcc users 8.1K Feb 25 17:49 CTLCardinality.txt
-rw-r--r-- 1 mcc users 78K Feb 25 17:49 CTLCardinality.xml
-rw-r--r-- 1 mcc users 6.0K Feb 25 17:45 CTLFireability.txt
-rw-r--r-- 1 mcc users 50K Feb 25 17:45 CTLFireability.xml
-rw-r--r-- 1 mcc users 4.2K Jan 29 11:40 GenericPropertiesDefinition.xml
-rw-r--r-- 1 mcc users 4.1K Feb 25 16:12 LTLCardinality.txt
-rw-r--r-- 1 mcc users 25K Feb 25 16:12 LTLCardinality.xml
-rw-r--r-- 1 mcc users 2.5K Feb 25 16:12 LTLFireability.txt
-rw-r--r-- 1 mcc users 18K Feb 25 16:12 LTLFireability.xml
-rw-r--r-- 1 mcc users 5.7K Feb 25 18:29 ReachabilityCardinality.txt
-rw-r--r-- 1 mcc users 41K Feb 25 18:29 ReachabilityCardinality.xml
-rw-r--r-- 1 mcc users 7.2K Feb 25 18:26 ReachabilityFireability.txt
-rw-r--r-- 1 mcc users 53K Feb 25 18:26 ReachabilityFireability.xml
-rw-r--r-- 1 mcc users 1.8K Feb 25 16:12 UpperBounds.txt
-rw-r--r-- 1 mcc users 3.8K Feb 25 16:12 UpperBounds.xml
-rw-r--r-- 1 mcc users 5 Mar 5 18:22 equiv_pt
-rw-r--r-- 1 mcc users 3 Mar 5 18:22 instance
-rw-r--r-- 1 mcc users 5 Mar 5 18:22 iscolored
-rw-r--r-- 1 mcc users 28K Mar 5 18:22 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 Liveness

=== Now, execution of the tool begins

BK_START 1678405860466

bash -c /home/mcc/BenchKit/BenchKit_head.sh 2> STDERR ; echo ; echo -n "BK_STOP " ; date -u +%s%3N
Invoking MCC driver with
BK_TOOL=itstools
BK_EXAMINATION=Liveness
BK_BIN_PATH=/home/mcc/BenchKit/bin/
BK_TIME_CONFINEMENT=1800
BK_INPUT=GlobalResAllocation-COL-03
Not applying reductions.
Model is COL
Liveness COL
Running Version 202303021504
[2023-03-09 23:51:03] [INFO ] Running its-tools with arguments : [-pnfolder, /home/mcc/execution, -examination, Liveness, -its, -ltsmin, -greatspnpath, /home/mcc/BenchKit/bin//../itstools/bin//..//greatspn/, -order, META, -manyOrder, -smt, -timeout, 1800]
[2023-03-09 23:51:03] [INFO ] Parsing pnml file : /home/mcc/execution/model.pnml
[2023-03-09 23:51:03] [INFO ] Detected file is not PT type :http://www.pnml.org/version-2009/grammar/symmetricnet
log4j:WARN No appenders could be found for logger (org.apache.axiom.locator.DefaultOMMetaFactoryLocator).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
[2023-03-09 23:51:04] [WARNING] Using fallBack plugin, rng conformance not checked
[2023-03-09 23:51:04] [INFO ] Load time of PNML (colored model parsed with PNMLFW) : 715 ms
[2023-03-09 23:51:04] [INFO ] Imported 5 HL places and 7 HL transitions for a total of 33 PT places and 4791.0 transition bindings in 17 ms.
[2023-03-09 23:51:04] [INFO ] Built PT skeleton of HLPN with 5 places and 7 transitions 29 arcs in 6 ms.
[2023-03-09 23:51:04] [INFO ] Skeletonized 0 HLPN properties in 0 ms.
[2023-03-09 23:51:04] [INFO ] Unfolded HLPN to a Petri net with 33 places and 4791 transitions 38652 arcs in 160 ms.
[2023-03-09 23:51:04] [INFO ] Unfolded 0 HLPN properties in 0 ms.
[2023-03-09 23:51:05] [INFO ] Unfolded HLPN to a Petri net with 33 places and 4791 transitions 38652 arcs in 83 ms.
[2023-03-09 23:51:05] [INFO ] Unfolded 7 HLPN properties in 2 ms.
[2023-03-09 23:51:05] [INFO ] Reduced 45 identical enabling conditions.
[2023-03-09 23:51:05] [INFO ] Reduced 480 identical enabling conditions.
[2023-03-09 23:51:05] [INFO ] Reduced 3510 identical enabling conditions.
[2023-03-09 23:51:05] [INFO ] Reduced 45 identical enabling conditions.
[2023-03-09 23:51:05] [INFO ] Built PT skeleton of HLPN with 5 places and 7 transitions 29 arcs in 0 ms.
[2023-03-09 23:51:05] [INFO ] Skeletonized 7 HLPN properties in 1 ms.
Computed a total of 0 stabilizing places and 0 stable transitions
Prefix of Interest using HLPN skeleton for deadlock discarded 0 places and 0 transitions.
Symmetric sort wr.t. initial and guards and successors and join/free detected :Res
Symmetric sort wr.t. initial detected :Res
Symmetric sort wr.t. initial and guards detected :Res
Applying symmetric unfolding of full symmetric sort :Res domain size was 6
Transition release1 forces synchronizations/join behavior on parameter p of sort Proc
[2023-03-09 23:51:05] [INFO ] Unfolded HLPN to a Petri net with 13 places and 21 transitions 87 arcs in 4 ms.
[2023-03-09 23:51:05] [INFO ] Unfolded 7 HLPN properties in 0 ms.
Built sparse matrix representations for Structural reductions in 0 ms.34938KB memory used
Starting structural reductions in DEADLOCK mode, iteration 0 : 13/13 places, 21/21 transitions.
Computed a total of 0 stabilizing places and 0 stable transitions
Reduce isomorphic (modulo) transitions removed 6 transitions.
Computed a total of 0 stabilizing places and 0 stable transitions
Iterating post reduction 0 with 6 rules applied. Total rules applied 6 place count 13 transition count 18
Computed a total of 0 stabilizing places and 0 stable transitions
Computed a total of 0 stabilizing places and 0 stable transitions
Applied a total of 6 rules in 15 ms. Remains 13 /13 variables (removed 0) and now considering 18/21 (removed 3) transitions.
// Phase 1: matrix 18 rows 13 cols
[2023-03-09 23:51:05] [INFO ] Computed 7 place invariants in 5 ms
[2023-03-09 23:51:05] [INFO ] Dead Transitions using invariants and state equation in 232 ms found 0 transitions.
Finished structural reductions in DEADLOCK mode , in 1 iterations and 288 ms. Remains : 13/13 places, 18/21 transitions.
Random walk for 1250000 steps, including 0 resets, run took 1378 ms (no deadlock found). (steps per millisecond=907 )
Random directed walk for 1250001 steps, including 0 resets, run took 762 ms (no deadlock found). (steps per millisecond=1640 )
[2023-03-09 23:51:07] [INFO ] Invariant cache hit.
[2023-03-09 23:51:07] [INFO ] [Real]Absence check using 4 positive place invariants in 2 ms returned sat
[2023-03-09 23:51:07] [INFO ] [Real]Absence check using 4 positive and 3 generalized place invariants in 2 ms returned unsat
[2023-03-09 23:51:07] [INFO ] Unfolded HLPN to a Petri net with 13 places and 21 transitions 87 arcs in 1 ms.
[2023-03-09 23:51:07] [INFO ] Unfolded 7 HLPN properties in 0 ms.
Initial state reduction rules removed 4 formulas.
Finished random walk after 4 steps, including 0 resets, run visited all 3 properties in 14 ms. (steps per millisecond=0 )
[2023-03-09 23:51:07] [INFO ] Flatten gal took : 22 ms
[2023-03-09 23:51:07] [INFO ] Flatten gal took : 6 ms
[2023-03-09 23:51:07] [INFO ] Time to serialize gal into /tmp/ReachabilityCardinality8041127987658189445.gal : 6 ms
[2023-03-09 23:51:07] [INFO ] Time to serialize properties into /tmp/ReachabilityCardinality2696359720864441344.prop : 1 ms
Invoking ITS tools like this :cd /home/mcc/execution;'/home/mcc/BenchKit/itstools/itstools/plugins/fr.lip6.move.gal.itstools.binaries_1.0.0.202303021504/bin/its-reach-linux64' '--gc-threshold' '2000000' '--quiet' '-i' '/tmp/ReachabilityCardinality8041127987658189445.gal' '-t' 'CGAL' '-reachable-file' '/tmp/ReachabilityCardinality2696359720864441344.prop' '--nowitness' '--gen-order' 'FOLLOW'
ITS runner failed with exception null

java.lang.InterruptedException
at java.base/java.lang.Object.wait(Native Method)
at java.base/java.lang.Thread.join(Thread.java:1304)
at java.base/java.lang.Thread.join(Thread.java:1372)
at fr.lip6.move.gal.application.runner.AbstractRunner.join(AbstractRunner.java:27)
at fr.lip6.move.gal.application.runner.its.ITSRunner.join(ITSRunner.java:177)
at fr.lip6.move.gal.application.solver.global.GlobalPropertySolver.verifyWithSDD(GlobalPropertySolver.java:675)
at fr.lip6.move.gal.application.solver.ReachabilitySolver.lambda$2(ReachabilitySolver.java:63)
at java.base/java.lang.Thread.run(Thread.java:833)
Able to resolve query QuasiLiveness after proving 7 properties.
its-reach command run as :

/home/mcc/BenchKit/itstools/itstools/plugins/fr.lip6.move.gal.itstools.binaries_1.0.0.202303021504/bin/its-reach-linux64 --gc-threshold 2000000 --quiet ...328
Ensure Unique test removed 4080 transitions
Reduce redundant transitions removed 4080 transitions.
Loading property file /tmp/ReachabilityCardinality2696359720864441344.prop.
Found states matching all0 target predicate
Will report total states built up to this point. Computation was interrupted after 3 fixpoint passes
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,27,0.022111,3480,2,40,5,184,6,0,128,90,0
Total reachable state count : 27

[2023-03-09 23:51:07] [INFO ] Flatten gal took : 169 ms
[2023-03-09 23:51:08] [INFO ] Flatten gal took : 136 ms
[2023-03-09 23:51:08] [INFO ] Time to serialize gal into /tmp/CTLFireability6804197390297712754.gal : 179 ms
[2023-03-09 23:51:08] [INFO ] Time to serialize properties into /tmp/CTLFireability12828793495081658761.ctl : 14 ms
Invoking ITS tools like this :cd /home/mcc/execution;'/home/mcc/BenchKit/itstools/itstools/plugins/fr.lip6.move.gal.itstools.binaries_1.0.0.202303021504/bin/its-ctl-linux64' '--gc-threshold' '2000000' '--quiet' '-i' '/tmp/CTLFireability6804197390297712754.gal' '-t' 'CGAL' '-ctl' '/tmp/CTLFireability12828793495081658761.ctl' '--gen-order' 'FOLLOW'

its-ctl command run as :

/home/mcc/BenchKit/itstools/itstools/plugins/fr.lip6.move.gal.itstools.binaries_1.0.0.202303021504/bin/its-ctl-linux64 --gc-threshold 2000000 --quiet -...284
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,6320,1.04628,21572,2,3237,5,32092,6,0,1038,20178,0


Converting to forward existential form...Done !
original formula: AG(EF((((((((Processes_1>=1)&&(Resources_3>=1))||((Processes_1>=1)&&(Resources_2>=1)))||(((Processes_1>=1)&&(Resources_1>=1))||((Processe...742
=> equivalent forward existential formula: [(FwdU(Init,TRUE) * !(E(TRUE U (((((((Processes_1>=1)&&(Resources_3>=1))||((Processes_1>=1)&&(Resources_2>=1)))|...802
Reverse transition relation is exact ! Faster fixpoint algorithm enabled.
(forward)formula 0,1,1.8206,37136,1,0,6,125326,14,0,6564,53008,5
Formula is TRUE !

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

original formula: AG(EF(((((((((Processes_1>=1)&&(Resources_0>=2))||(((Processes_2>=1)&&(Resources_0>=1))&&(Resources_4>=1)))||((((Processes_0>=1)&&(Resour...3442
=> equivalent forward existential formula: [(FwdU(Init,TRUE) * !(E(TRUE U ((((((((Processes_1>=1)&&(Resources_0>=2))||(((Processes_2>=1)&&(Resources_0>=1))...3502
(forward)formula 1,1,1.92967,39344,1,0,7,127137,15,0,6649,54137,8
Formula is TRUE !

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

original formula: AG(EF((((((((((((Processes_1>=1)&&(Resources_0>=1))&&(Resources_1>=2))||(((Processes_2>=1)&&(Resources_2>=2))&&(Resources_3>=1)))||((((Pr...10942
=> equivalent forward existential formula: [(FwdU(Init,TRUE) * !(E(TRUE U (((((((((((Processes_1>=1)&&(Resources_0>=1))&&(Resources_1>=2))||(((Processes_2>...11002
(forward)formula 2,1,2.25888,41840,1,0,8,128732,16,0,6874,54863,11
Formula is TRUE !

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

original formula: AG(EF((((((((((((Processes_1>=1)&&(Resources_1>=4))||((((Processes_1>=1)&&(Resources_1>=1))&&((Resources_2>=1)&&(Resources_3>=1)))&&(Reso...27742
=> equivalent forward existential formula: [(FwdU(Init,TRUE) * !(E(TRUE U (((((((((((Processes_1>=1)&&(Resources_1>=4))||((((Processes_1>=1)&&(Resources_1>...25461
Detected timeout of ITS tools.
java.io.IOException: Stream closed
at java.base/java.io.BufferedInputStream.getBufIfOpen(BufferedInputStream.java:168)
at java.base/java.io.BufferedInputStream.read(BufferedInputStream.java:334)
at java.base/sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:270)
at java.base/sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:313)
at java.base/sun.nio.cs.StreamDecoder.read(StreamDecoder.java:188)
at java.base/java.io.InputStreamReader.read(InputStreamReader.java:177)
at java.base/java.io.BufferedReader.fill(BufferedReader.java:162)
at java.base/java.io.BufferedReader.readLine(BufferedReader.java:329)
at java.base/java.io.BufferedReader.readLine(BufferedReader.java:396)
at fr.lip6.move.gal.application.runner.its.ITSRunner$ITSInterpreter.run(ITSRunner.java:213)
at java.base/java.lang.Thread.run(Thread.java:833)
[2023-03-09 23:51:11] [INFO ] Flatten gal took : 85 ms
[2023-03-09 23:51:11] [INFO ] Applying decomposition
[2023-03-09 23:51:11] [INFO ] Flatten gal took : 65 ms
Converted graph to binary with : '/home/mcc/BenchKit/itstools/itstools/plugins/fr.lip6.move.gal.louvain.binaries_1.0.0.202303021504/bin/convert-linux64' '-i' '/tmp/graph15482766506456643714.txt' '-o' '/tmp/graph15482766506456643714.bin' '-w' '/tmp/graph15482766506456643714.weights'
Built communities with : '/home/mcc/BenchKit/itstools/itstools/plugins/fr.lip6.move.gal.louvain.binaries_1.0.0.202303021504/bin/louvain-linux64' '/tmp/graph15482766506456643714.bin' '-l' '-1' '-v' '-w' '/tmp/graph15482766506456643714.weights' '-q' '0' '-e' '0.001'
[2023-03-09 23:51:11] [INFO ] Decomposing Gal with order
[2023-03-09 23:51:11] [INFO ] Rewriting arrays to variables to allow decomposition.
[2023-03-09 23:51:12] [INFO ] Removed a total of 2220 redundant transitions.
[2023-03-09 23:51:12] [INFO ] Flatten gal took : 231 ms
[2023-03-09 23:51:12] [INFO ] Fuse similar labels procedure discarded/fused a total of 0 labels/synchronizations in 13 ms.
[2023-03-09 23:51:12] [INFO ] Time to serialize gal into /tmp/CTLFireability10456428523496191655.gal : 13 ms
[2023-03-09 23:51:12] [INFO ] Time to serialize properties into /tmp/CTLFireability8199968930788368446.ctl : 6 ms
Invoking ITS tools like this :cd /home/mcc/execution;'/home/mcc/BenchKit/itstools/itstools/plugins/fr.lip6.move.gal.itstools.binaries_1.0.0.202303021504/bin/its-ctl-linux64' '--gc-threshold' '2000000' '--quiet' '-i' '/tmp/CTLFireability10456428523496191655.gal' '-t' 'CGAL' '-ctl' '/tmp/CTLFireability8199968930788368446.ctl'

its-ctl command run as :

/home/mcc/BenchKit/itstools/itstools/plugins/fr.lip6.move.gal.itstools.binaries_1.0.0.202303021504/bin/its-ctl-linux64 --gc-threshold 2000000 --quiet -...263
No direction supplied, using forward translation only.
Parsed 4 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,6320,0.082665,6080,196,22,1573,227,870,1038,74,225,0


Converting to forward existential form...Done !
original formula: AG(EF((((((((((((u0.Processes_1>=1)&&(u1.Resources_1>=4))||((((u0.Processes_1>=1)&&(u1.Resources_1>=1))&&((u2.Resources_2>=1)&&(u7.Resour...31900
=> equivalent forward existential formula: [(FwdU(Init,TRUE) * !(E(TRUE U (((((((((((u0.Processes_1>=1)&&(u1.Resources_1>=4))||((((u0.Processes_1>=1)&&(u1....31960
Reverse transition relation is exact ! Faster fixpoint algorithm enabled.
(forward)formula 0,1,0.448874,6336,1,0,1862,227,3937,1589,200,299,11810
Formula is TRUE !

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

original formula: AG(EF((((u4.pr_released_0>=4)||(u0.pr_released_1>=4))||(u5.pr_released_2>=4))))
=> equivalent forward existential formula: [(FwdU(Init,TRUE) * !(E(TRUE U (((u4.pr_released_0>=4)||(u0.pr_released_1>=4))||(u5.pr_released_2>=4)))))] = FAL...157
(forward)formula 1,1,0.454145,6336,1,0,2030,227,3943,1730,200,299,13032
Formula is TRUE !

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

original formula: AG(EF((((((((u4.pr_in_0>=1)&&(u6.in_critical_s_0>=1))||((u4.pr_in_0>=1)&&(u1.in_critical_s_1>=1)))||(((u0.pr_in_1>=1)&&(u8.in_critical_s_...858
=> equivalent forward existential formula: [(FwdU(Init,TRUE) * !(E(TRUE U (((((((u4.pr_in_0>=1)&&(u6.in_critical_s_0>=1))||((u4.pr_in_0>=1)&&(u1.in_critica...918
(forward)formula 2,1,0.469035,6600,1,0,2144,227,4051,1862,200,299,14795
Formula is TRUE !

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

original formula: AG(EF(((((((((u4.pr_in_0>=2)&&(u1.in_critical_s_1>=2))||(((u5.pr_in_2>=2)&&(u2.in_critical_s_14>=1))&&(u7.in_critical_s_15>=1)))||(((u4.p...4183
=> equivalent forward existential formula: [(FwdU(Init,TRUE) * !(E(TRUE U ((((((((u4.pr_in_0>=2)&&(u1.in_critical_s_1>=2))||(((u5.pr_in_2>=2)&&(u2.in_criti...4243
(forward)formula 3,1,0.517291,6600,1,0,2461,227,4396,2141,200,299,17657
Formula is TRUE !

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

Able to resolve query Liveness after proving 7 properties.
FORMULA Liveness TRUE TECHNIQUES DECISION_DIAGRAMS TOPOLOGICAL USE_NUPN
Total runtime 9148 ms.

BK_STOP 1678405874095

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

+ export BINDIR=/home/mcc/BenchKit/bin//../itstools/bin//../
+ BINDIR=/home/mcc/BenchKit/bin//../itstools/bin//../
++ pwd
+ export MODEL=/home/mcc/execution
+ MODEL=/home/mcc/execution
+ [[ Liveness = StateSpace ]]
+ /home/mcc/BenchKit/bin//../itstools/bin//..//runeclipse.sh /home/mcc/execution Liveness -its -ltsmin -greatspnpath /home/mcc/BenchKit/bin//../itstools/bin//..//greatspn/ -order META -manyOrder -smt -timeout 1800
+ ulimit -s 65536
+ [[ -z '' ]]
+ export LTSMIN_MEM_SIZE=8589934592
+ LTSMIN_MEM_SIZE=8589934592
+ export PYTHONPATH=/home/mcc/BenchKit/itstools/pylibs
+ PYTHONPATH=/home/mcc/BenchKit/itstools/pylibs
+ export LD_LIBRARY_PATH=/home/mcc/BenchKit/itstools/pylibs:
+ LD_LIBRARY_PATH=/home/mcc/BenchKit/itstools/pylibs:
++ sed s/.jar//
++ ls /home/mcc/BenchKit/bin//../itstools/bin//..//itstools/plugins/fr.lip6.move.gal.application.pnmcc_1.0.0.202303021504.jar
++ perl -pe 's/.*\.//g'
+ VERSION=202303021504
+ echo 'Running Version 202303021504'
+ /home/mcc/BenchKit/bin//../itstools/bin//..//itstools/its-tools -pnfolder /home/mcc/execution -examination Liveness -its -ltsmin -greatspnpath /home/mcc/BenchKit/bin//../itstools/bin//..//greatspn/ -order META -manyOrder -smt -timeout 1800

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="GlobalResAllocation-COL-03"
export BK_EXAMINATION="Liveness"
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-5348"
echo " Executing tool itstools"
echo " Input is GlobalResAllocation-COL-03, examination is Liveness"
echo " Time confinement is $BK_TIME_CONFINEMENT seconds"
echo " Memory confinement is 16384 MBytes"
echo " Number of cores is 4"
echo " Run identifier is r211-smll-167840355300104"
echo "====================================================================="
echo
echo "--------------------"
echo "preparation of the directory to be used:"

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