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

About the Execution of LoLa+red for Peterson-COL-2

Execution Summary
Max Memory
Used (MB)
Time wait (ms) CPU Usage (ms) I/O Wait (ms) Computed Result Execution
Status
609.712 14289.00 22631.00 621.20 F 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.r277-smll-167863548800349.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 lolaxred
Input is Peterson-COL-2, examination is Liveness
Time confinement is 1800 seconds
Memory confinement is 16384 MBytes
Number of cores is 4
Run identifier is r277-smll-167863548800349
=====================================================================

--------------------
preparation of the directory to be used:
/home/mcc/execution
total 404K
-rw-r--r-- 1 mcc users 5.3K Feb 25 22:03 CTLCardinality.txt
-rw-r--r-- 1 mcc users 48K Feb 25 22:03 CTLCardinality.xml
-rw-r--r-- 1 mcc users 6.4K Feb 25 21:59 CTLFireability.txt
-rw-r--r-- 1 mcc users 53K Feb 25 21:59 CTLFireability.xml
-rw-r--r-- 1 mcc users 4.2K Jan 29 11:40 GenericPropertiesDefinition.xml
-rw-r--r-- 1 mcc users 3.9K Feb 25 16:31 LTLCardinality.txt
-rw-r--r-- 1 mcc users 25K Feb 25 16:31 LTLCardinality.xml
-rw-r--r-- 1 mcc users 2.4K Feb 25 16:31 LTLFireability.txt
-rw-r--r-- 1 mcc users 17K Feb 25 16:31 LTLFireability.xml
-rw-r--r-- 1 mcc users 7.9K Feb 25 22:07 ReachabilityCardinality.txt
-rw-r--r-- 1 mcc users 68K Feb 25 22:07 ReachabilityCardinality.xml
-rw-r--r-- 1 mcc users 8.7K Feb 25 22:05 ReachabilityFireability.txt
-rw-r--r-- 1 mcc users 66K Feb 25 22:05 ReachabilityFireability.xml
-rw-r--r-- 1 mcc users 1.6K Feb 25 16:31 UpperBounds.txt
-rw-r--r-- 1 mcc users 3.7K Feb 25 16:31 UpperBounds.xml
-rw-r--r-- 1 mcc users 5 Mar 5 18:23 equiv_pt
-rw-r--r-- 1 mcc users 2 Mar 5 18:23 instance
-rw-r--r-- 1 mcc users 5 Mar 5 18:23 iscolored
-rw-r--r-- 1 mcc users 42K Mar 5 18:23 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 1678879354041

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=lolaxred
BK_EXAMINATION=Liveness
BK_BIN_PATH=/home/mcc/BenchKit/bin/
BK_TIME_CONFINEMENT=1800
BK_INPUT=Peterson-COL-2
Applying reductions before tool lola
Invoking reducer
Running Version 202303021504
[2023-03-15 11:22:37] [INFO ] Running its-tools with arguments : [-pnfolder, /home/mcc/execution, -examination, Liveness, -timeout, 180, -rebuildPNML]
[2023-03-15 11:22:37] [INFO ] Parsing pnml file : /home/mcc/execution/model.pnml
[2023-03-15 11:22:37] [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-15 11:22:38] [WARNING] Using fallBack plugin, rng conformance not checked
[2023-03-15 11:22:38] [INFO ] Load time of PNML (colored model parsed with PNMLFW) : 1055 ms
[2023-03-15 11:22:38] [INFO ] Imported 11 HL places and 14 HL transitions for a total of 108 PT places and 159.0 transition bindings in 38 ms.
[2023-03-15 11:22:38] [INFO ] Built PT skeleton of HLPN with 11 places and 14 transitions 42 arcs in 8 ms.
[2023-03-15 11:22:38] [INFO ] Skeletonized 0 HLPN properties in 0 ms.
[2023-03-15 11:22:38] [INFO ] Unfolded HLPN to a Petri net with 108 places and 138 transitions 432 arcs in 40 ms.
[2023-03-15 11:22:38] [INFO ] Unfolded 0 HLPN properties in 0 ms.
[2023-03-15 11:22:39] [INFO ] Unfolded HLPN to a Petri net with 108 places and 138 transitions 432 arcs in 12 ms.
[2023-03-15 11:22:39] [INFO ] Unfolded 14 HLPN properties in 1 ms.
[2023-03-15 11:22:39] [INFO ] Built PT skeleton of HLPN with 11 places and 14 transitions 42 arcs in 1 ms.
[2023-03-15 11:22:39] [INFO ] Skeletonized 14 HLPN properties in 2 ms.
Reduce places removed 2 places and 0 transitions.
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.
Domain [Process(3), Tour(2), Process(3)] of place BeginLoop breaks symmetries in sort Process
Symmetric sort wr.t. initial and guards and successors and join/free detected :Bool
Arc [1:1*[$i, 0]] contains constants of sort Bool
Transition Ask : constants on arcs in [[1:1*[$i, 0]]] introduces in Bool(2) partition with 1 elements that refines current partition to 2 subsets.
Arc [2:1*[$i, (MOD (ADD $j 1) 2)]] contains successor/predecessor on variables of sort Tour
[2023-03-15 11:22:39] [INFO ] Unfolded HLPN to a Petri net with 108 places and 138 transitions 432 arcs in 16 ms.
[2023-03-15 11:22:39] [INFO ] Unfolded 14 HLPN properties in 0 ms.
Deduced a syphon composed of 6 places in 2 ms
Reduce places removed 6 places and 12 transitions.
Built sparse matrix representations for Structural reductions in 3 ms.20156KB memory used
Starting structural reductions in DEADLOCK mode, iteration 0 : 102/102 places, 126/126 transitions.
Computed a total of 0 stabilizing places and 0 stable transitions
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 0 rules in 33 ms. Remains 102 /102 variables (removed 0) and now considering 126/126 (removed 0) transitions.
Finished structural reductions in DEADLOCK mode , in 1 iterations and 33 ms. Remains : 102/102 places, 126/126 transitions.
Starting structural reductions in DEADLOCK mode, iteration 0 : 102/102 places, 126/126 transitions.
Computed a total of 0 stabilizing places and 0 stable transitions
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 0 rules in 15 ms. Remains 102 /102 variables (removed 0) and now considering 126/126 (removed 0) transitions.
[2023-03-15 11:22:39] [INFO ] Flow matrix only has 120 transitions (discarded 6 similar events)
// Phase 1: matrix 120 rows 102 cols
[2023-03-15 11:22:39] [INFO ] Computed 11 place invariants in 11 ms
[2023-03-15 11:22:39] [INFO ] Implicit Places using invariants in 320 ms returned []
[2023-03-15 11:22:39] [INFO ] Flow matrix only has 120 transitions (discarded 6 similar events)
[2023-03-15 11:22:39] [INFO ] Invariant cache hit.
[2023-03-15 11:22:39] [INFO ] State equation strengthened by 22 read => feed constraints.
[2023-03-15 11:22:39] [INFO ] Implicit Places using invariants and state equation in 179 ms returned []
Implicit Place search using SMT with State Equation took 562 ms to find 0 implicit places.
[2023-03-15 11:22:39] [INFO ] Redundant transitions in 6 ms returned []
[2023-03-15 11:22:39] [INFO ] Flow matrix only has 120 transitions (discarded 6 similar events)
[2023-03-15 11:22:39] [INFO ] Invariant cache hit.
[2023-03-15 11:22:39] [INFO ] Dead Transitions using invariants and state equation in 254 ms found 0 transitions.
Finished structural reductions in DEADLOCK mode , in 1 iterations and 847 ms. Remains : 102/102 places, 126/126 transitions.
Random walk for 1250000 steps, including 0 resets, run took 1606 ms (no deadlock found). (steps per millisecond=778 )
Random directed walk for 1250001 steps, including 0 resets, run took 1083 ms (no deadlock found). (steps per millisecond=1154 )
[2023-03-15 11:22:42] [INFO ] Flow matrix only has 120 transitions (discarded 6 similar events)
[2023-03-15 11:22:42] [INFO ] Invariant cache hit.
[2023-03-15 11:22:42] [INFO ] [Real]Absence check using 8 positive place invariants in 7 ms returned sat
[2023-03-15 11:22:42] [INFO ] [Real]Absence check using 8 positive and 3 generalized place invariants in 4 ms returned unsat
[2023-03-15 11:22:42] [INFO ] Unfolded HLPN to a Petri net with 108 places and 138 transitions 432 arcs in 4 ms.
[2023-03-15 11:22:42] [INFO ] Unfolded 14 HLPN properties in 0 ms.
Initial state reduction rules removed 1 formulas.
Deduced a syphon composed of 6 places in 0 ms
Reduce places removed 6 places and 12 transitions.
Incomplete random walk after 10000 steps, including 2 resets, run finished after 123 ms. (steps per millisecond=81 ) properties (out of 13) seen :12
Incomplete Best-First random walk after 10001 steps, including 2 resets, run finished after 31 ms. (steps per millisecond=322 ) properties (out of 1) seen :0
Running SMT prover for 1 properties.
[2023-03-15 11:22:42] [INFO ] Flow matrix only has 120 transitions (discarded 6 similar events)
[2023-03-15 11:22:42] [INFO ] Invariant cache hit.
[2023-03-15 11:22:43] [INFO ] [Real]Absence check using 8 positive place invariants in 14 ms returned sat
[2023-03-15 11:22:43] [INFO ] [Real]Absence check using 8 positive and 3 generalized place invariants in 3 ms returned sat
[2023-03-15 11:22:43] [INFO ] After 110ms SMT Verify possible using state equation in real domain returned unsat :0 sat :1
[2023-03-15 11:22:43] [INFO ] State equation strengthened by 22 read => feed constraints.
[2023-03-15 11:22:43] [INFO ] After 19ms SMT Verify possible using 22 Read/Feed constraints in real domain returned unsat :0 sat :0 real:1
[2023-03-15 11:22:43] [INFO ] After 244ms SMT Verify possible using all constraints in real domain returned unsat :0 sat :0 real:1
[2023-03-15 11:22:43] [INFO ] [Nat]Absence check using 8 positive place invariants in 4 ms returned sat
[2023-03-15 11:22:43] [INFO ] [Nat]Absence check using 8 positive and 3 generalized place invariants in 10 ms returned sat
[2023-03-15 11:22:43] [INFO ] After 74ms SMT Verify possible using state equation in natural domain returned unsat :0 sat :1
[2023-03-15 11:22:43] [INFO ] After 18ms SMT Verify possible using 22 Read/Feed constraints in natural domain returned unsat :0 sat :1
[2023-03-15 11:22:43] [INFO ] Deduced a trap composed of 8 places in 70 ms of which 4 ms to minimize.
[2023-03-15 11:22:43] [INFO ] Trap strengthening (SAT) tested/added 2/1 trap constraints in 97 ms
[2023-03-15 11:22:43] [INFO ] After 130ms SMT Verify possible using trap constraints in natural domain returned unsat :0 sat :1
Attempting to minimize the solution found.
Minimization took 17 ms.
[2023-03-15 11:22:43] [INFO ] After 305ms SMT Verify possible using all constraints in natural domain returned unsat :0 sat :1
Parikh walk visited 0 properties in 17 ms.
Support contains 6 out of 102 places. Attempting structural reductions.
Starting structural reductions in REACHABILITY mode, iteration 0 : 102/102 places, 126/126 transitions.
Drop transitions removed 32 transitions
Trivial Post-agglo rules discarded 32 transitions
Performed 32 trivial Post agglomeration. Transition count delta: 32
Iterating post reduction 0 with 32 rules applied. Total rules applied 32 place count 102 transition count 94
Reduce places removed 32 places and 0 transitions.
Iterating post reduction 1 with 32 rules applied. Total rules applied 64 place count 70 transition count 94
Performed 20 Pre agglomeration using Quasi-Persistent + Divergent Free condition..
Pre-agglomeration after 2 with 20 Pre rules applied. Total rules applied 64 place count 70 transition count 74
Deduced a syphon composed of 20 places in 0 ms
Reduce places removed 20 places and 0 transitions.
Iterating global reduction 2 with 40 rules applied. Total rules applied 104 place count 50 transition count 74
Applied a total of 104 rules in 19 ms. Remains 50 /102 variables (removed 52) and now considering 74/126 (removed 52) transitions.
Finished structural reductions in REACHABILITY mode , in 1 iterations and 19 ms. Remains : 50/102 places, 74/126 transitions.
Incomplete random walk after 1000000 steps, including 2 resets, run finished after 1877 ms. (steps per millisecond=532 ) properties (out of 1) seen :0
Incomplete Best-First random walk after 1000001 steps, including 2 resets, run finished after 609 ms. (steps per millisecond=1642 ) properties (out of 1) seen :0
Finished probabilistic random walk after 22 steps, run visited all 1 properties in 9 ms. (steps per millisecond=2 )
Probabilistic random walk after 22 steps, saw 19 distinct states, run finished after 9 ms. (steps per millisecond=2 ) properties seen :1
Able to resolve query QuasiLiveness after proving 14 properties.
Deduced a syphon composed of 6 places in 1 ms
Reduce places removed 6 places and 12 transitions.
Unable to solve all queries for examination Liveness. Remains :14 assertions to prove.
No /home/mcc/execution/Liveness.xml examination file found. Proceeding without properties.
Parsed 14 properties from file /home/mcc/execution/Liveness.xml in 1 ms.
Working with output stream class java.io.PrintStream
Total runtime 8418 ms.
starting LoLA
BK_INPUT Peterson-COL-2
BK_EXAMINATION: Liveness
bin directory: /home/mcc/BenchKit/bin//../reducer/bin//../../lola/bin/
current directory: /home/mcc/execution
GlobalProperty: Liveness

FORMULA Liveness FALSE TECHNIQUES COLLATERAL_PROCESSING EXPLICIT TOPOLOGICAL STATE_COMPRESSION STUBBORN_SETS USE_NUPN UNFOLDING_TO_PT

BK_STOP 1678879368330

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

+ 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//
++ perl -pe 's/.*\.//g'
++ ls /home/mcc/BenchKit/bin//../reducer/bin//../../itstools//itstools/plugins/fr.lip6.move.gal.application.pnmcc_1.0.0.202303021504.jar
+ VERSION=202303021504
+ echo 'Running Version 202303021504'
+ /home/mcc/BenchKit/bin//../reducer/bin//../../itstools//itstools/its-tools -pnfolder /home/mcc/execution -examination Liveness -timeout 180 -rebuildPNML
lola: MEM LIMIT 32
lola: MEM LIMIT 5
lola: NET
lola: input: PNML file (--pnmlnet)
lola: reading net from /home/mcc/execution/model.pnml
lola: reading pnml
lola: PNML file contains High-Level net
lola: finished parsing
lola: closed net file /home/mcc/execution/model.pnml
lola: TR BINDINGS
lola: TR BINDINGS DONE
lola: Places: 108, Transitions: 138
lola: @ trans ContinueLoop
lola: @ trans Ask
lola: @ trans NoIdentity
lola: @ trans EndLoop
lola: @ trans UpdateTurn
lola: @ trans ProgressTurn
lola: @ trans NotAlone
lola: @ trans TurnDiff
lola: @ trans TurnEqual
lola: @ trans Identity
lola: @ trans Alone1
lola: @ trans Loop
lola: @ trans AccessCS
lola: @ trans BecomeIdle
lola: LAUNCH SYMM
lola: ..... t13: false
lola: The net is not live
lola: INDIVIDUAL RESULTS
lola: t10: true (by goal oriented search)
lola: t11: true (by goal oriented search)
lola: t12: true (by goal oriented search)
lola: t13: false (by universal search)
lola: t14: true (by goal oriented search)
lola: t15: true (by goal oriented search)
lola: t16: true (by goal oriented search)
lola: t17: true (by goal oriented search)
lola: t18: true (by goal oriented search)
lola: t19: true (by goal oriented search)
lola: t20: true (by goal oriented search)
lola: t21: true (by goal oriented search)
lola: t22: true (by goal oriented search)
lola: t23: true (by goal oriented search)
lola: t24: true (by goal oriented search)
lola: t25: true (by goal oriented search)
lola: t26: true (by goal oriented search)
lola: t27: true (by goal oriented search)
lola: t28: true (by goal oriented search)
lola: t29: true (by goal oriented search)
lola: t30: true (by goal oriented search)
lola: t31: true (by goal oriented search)
lola: t32: true (by goal oriented search)
lola: t33: false (by goal oriented search)
lola: t34: false (by goal oriented search)
lola: t35: false (by goal oriented search)
lola: t36: false (by goal oriented search)
lola: t37: false (by goal oriented search)
lola: t38: false (by goal oriented search)
lola: t39: true (by goal oriented search)
lola: t40: true (by goal oriented search)
lola: t41: true (by goal oriented search)
lola: t42: true (by goal oriented search)
lola: t43: true (by goal oriented search)
lola: t44: true (by goal oriented search)
lola: t45: true (by goal oriented search)
lola: t46: true (by goal oriented search)
lola: t47: true (by goal oriented search)
lola: t48: true (by goal oriented search)
lola: t49: true (by goal oriented search)
lola: t50: true (by goal oriented search)
lola: t51: true (by goal oriented search)
lola: t52: true (by goal oriented search)
lola: t53: true (by goal oriented search)
lola: t54: true (by goal oriented search)
lola: t55: true (by goal oriented search)
lola: t56: true (by goal oriented search)
lola: t57: void (by not produced)
lola: t58: void (by not produced)
lola: t59: void (by not produced)
lola: t60: true (by goal oriented search)
lola: t61: true (by goal oriented search)
lola: t62: true (by goal oriented search)
lola: t63: true (by goal oriented search)
lola: t64: true (by goal oriented search)
lola: t65: true (by goal oriented search)
lola: t66: true (by goal oriented search)
lola: t67: true (by goal oriented search)
lola: t68: true (by goal oriented search)
lola: t69: true (by goal oriented search)
lola: t70: true (by goal oriented search)
lola: t71: true (by goal oriented search)
lola: t72: true (by goal oriented search)
lola: t73: true (by goal oriented search)
lola: t74: true (by goal oriented search)
lola: t75: true (by goal oriented search)
lola: t76: true (by goal oriented search)
lola: t77: true (by goal oriented search)
lola: t78: true (by goal oriented search)
lola: t79: true (by goal oriented search)
lola: t80: true (by goal oriented search)
lola: t81: true (by goal oriented search)
lola: t82: true (by goal oriented search)
lola: t83: true (by goal oriented search)
lola: t84: true (by goal oriented search)
lola: t85: true (by goal oriented search)
lola: t86: true (by goal oriented search)
lola: t87: true (by goal oriented search)
lola: t88: true (by goal oriented search)
lola: t89: true (by goal oriented search)
lola: t90: true (by goal oriented search)
lola: t91: true (by goal oriented search)
lola: t92: true (by goal oriented search)
lola: t93: true (by goal oriented search)
lola: t94: true (by goal oriented search)
lola: t95: true (by goal oriented search)
lola: t96: true (by goal oriented search)
lola: t97: true (by goal oriented search)
lola: t98: true (by goal oriented search)
lola: t99: true (by goal oriented search)
lola: t0: true (by goal oriented search)
lola: t1: true (by goal oriented search)
lola: t2: true (by goal oriented search)
lola: t3: true (by goal oriented search)
lola: t4: true (by goal oriented search)
lola: t5: true (by goal oriented search)
lola: t6: true (by goal oriented search)
lola: t7: true (by goal oriented search)
lola: t8: true (by goal oriented search)
lola: t9: true (by goal oriented search)
lola: t100: true (by goal oriented search)
lola: t101: true (by goal oriented search)
lola: t102: true (by goal oriented search)
lola: t103: true (by goal oriented search)
lola: t104: true (by goal oriented search)
lola: t105: true (by goal oriented search)
lola: t106: true (by goal oriented search)
lola: t107: true (by goal oriented search)
lola: t108: true (by goal oriented search)
lola: t109: true (by goal oriented search)
lola: t110: true (by goal oriented search)
lola: t111: true (by goal oriented search)
lola: t112: true (by goal oriented search)
lola: t113: true (by goal oriented search)
lola: t114: true (by goal oriented search)
lola: t115: true (by goal oriented search)
lola: t116: true (by goal oriented search)
lola: t117: true (by goal oriented search)
lola: t118: true (by goal oriented search)
lola: t119: true (by goal oriented search)
lola: t120: true (by goal oriented search)
lola: t121: true (by goal oriented search)
lola: t122: true (by goal oriented search)
lola: t123: true (by goal oriented search)
lola: t124: true (by goal oriented search)
lola: t125: true (by goal oriented search)
lola: t126: true (by goal oriented search)
lola: t127: true (by goal oriented search)
lola: t128: true (by goal oriented search)
lola: t129: true (by goal oriented search)
lola: t130: true (by goal oriented search)
lola: t131: true (by goal oriented search)
lola: t132: void (by not produced)
lola: t133: void (by not produced)
lola: t134: void (by not produced)
lola: t135: void (by not produced)
lola: t136: void (by not produced)
lola: t137: void (by not produced)

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="Peterson-COL-2"
export BK_EXAMINATION="Liveness"
export BK_TOOL="lolaxred"
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 lolaxred"
echo " Input is Peterson-COL-2, 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 r277-smll-167863548800349"
echo "====================================================================="
echo
echo "--------------------"
echo "preparation of the directory to be used:"

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