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

About the Execution of Smart+red for PhilosophersDyn-COL-50

Execution Summary
Max Memory
Used (MB)
Time wait (ms) CPU Usage (ms) I/O Wait (ms) Computed Result Execution
Status
16185.483 3600000.00 5598940.00 207015.80 T?T?T?TF??FTFTT? 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.r299-tall-167873952800302.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 smartxred
Input is PhilosophersDyn-COL-50, examination is ReachabilityCardinality
Time confinement is 3600 seconds
Memory confinement is 16384 MBytes
Number of cores is 4
Run identifier is r299-tall-167873952800302
=====================================================================

--------------------
preparation of the directory to be used:
/home/mcc/execution
total 444K
-rw-r--r-- 1 mcc users 6.6K Feb 26 12:22 CTLCardinality.txt
-rw-r--r-- 1 mcc users 61K Feb 26 12:22 CTLCardinality.xml
-rw-r--r-- 1 mcc users 5.3K Feb 26 12:22 CTLFireability.txt
-rw-r--r-- 1 mcc users 46K Feb 26 12:22 CTLFireability.xml
-rw-r--r-- 1 mcc users 4.2K Jan 29 11:40 GenericPropertiesDefinition.xml
-rw-r--r-- 1 mcc users 6.3K Jan 29 11:40 GenericPropertiesVerdict.xml
-rw-r--r-- 1 mcc users 4.3K Feb 25 16:34 LTLCardinality.txt
-rw-r--r-- 1 mcc users 26K Feb 25 16:34 LTLCardinality.xml
-rw-r--r-- 1 mcc users 2.3K Feb 25 16:34 LTLFireability.txt
-rw-r--r-- 1 mcc users 15K Feb 25 16:34 LTLFireability.xml
-rw-r--r-- 1 mcc users 12K Feb 26 12:22 ReachabilityCardinality.txt
-rw-r--r-- 1 mcc users 106K Feb 26 12:22 ReachabilityCardinality.xml
-rw-r--r-- 1 mcc users 7.8K Feb 26 12:22 ReachabilityFireability.txt
-rw-r--r-- 1 mcc users 58K Feb 26 12:22 ReachabilityFireability.xml
-rw-r--r-- 1 mcc users 1.7K Feb 25 16:34 UpperBounds.txt
-rw-r--r-- 1 mcc users 3.8K Feb 25 16:34 UpperBounds.xml
-rw-r--r-- 1 mcc users 5 Mar 5 18:23 equiv_pt
-rw-r--r-- 1 mcc users 3 Mar 5 18:23 instance
-rw-r--r-- 1 mcc users 5 Mar 5 18:23 iscolored
-rw-r--r-- 1 mcc users 34K 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

here is the order used to build the result vector(from text file)
FORMULA_NAME PhilosophersDyn-COL-50-ReachabilityCardinality-00
FORMULA_NAME PhilosophersDyn-COL-50-ReachabilityCardinality-01
FORMULA_NAME PhilosophersDyn-COL-50-ReachabilityCardinality-02
FORMULA_NAME PhilosophersDyn-COL-50-ReachabilityCardinality-03
FORMULA_NAME PhilosophersDyn-COL-50-ReachabilityCardinality-04
FORMULA_NAME PhilosophersDyn-COL-50-ReachabilityCardinality-05
FORMULA_NAME PhilosophersDyn-COL-50-ReachabilityCardinality-06
FORMULA_NAME PhilosophersDyn-COL-50-ReachabilityCardinality-07
FORMULA_NAME PhilosophersDyn-COL-50-ReachabilityCardinality-08
FORMULA_NAME PhilosophersDyn-COL-50-ReachabilityCardinality-09
FORMULA_NAME PhilosophersDyn-COL-50-ReachabilityCardinality-10
FORMULA_NAME PhilosophersDyn-COL-50-ReachabilityCardinality-11
FORMULA_NAME PhilosophersDyn-COL-50-ReachabilityCardinality-12
FORMULA_NAME PhilosophersDyn-COL-50-ReachabilityCardinality-13
FORMULA_NAME PhilosophersDyn-COL-50-ReachabilityCardinality-14
FORMULA_NAME PhilosophersDyn-COL-50-ReachabilityCardinality-15

=== Now, execution of the tool begins

BK_START 1679474922000

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=smartxred
BK_EXAMINATION=ReachabilityCardinality
BK_BIN_PATH=/home/mcc/BenchKit/bin/
BK_TIME_CONFINEMENT=3600
BK_INPUT=PhilosophersDyn-COL-50
Applying reductions before tool smart
Invoking reducer
Running Version 202303021504
[2023-03-22 08:48:43] [INFO ] Running its-tools with arguments : [-pnfolder, /home/mcc/execution, -examination, ReachabilityCardinality, -timeout, 360, -rebuildPNML]
[2023-03-22 08:48:43] [INFO ] Parsing pnml file : /home/mcc/execution/model.pnml
[2023-03-22 08:48:43] [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-22 08:48:43] [WARNING] Using fallBack plugin, rng conformance not checked
[2023-03-22 08:48:44] [INFO ] Load time of PNML (colored model parsed with PNMLFW) : 606 ms
[2023-03-22 08:48:44] [INFO ] Imported 8 HL places and 7 HL transitions for a total of 2850 PT places and 257600.0 transition bindings in 15 ms.
Parsed 16 properties from file /home/mcc/execution/ReachabilityCardinality.xml in 22 ms.
Working with output stream class java.io.PrintStream
FORMULA PhilosophersDyn-COL-50-ReachabilityCardinality-02 TRUE TECHNIQUES TOPOLOGICAL INITIAL_STATE
[2023-03-22 08:48:44] [INFO ] Built PT skeleton of HLPN with 8 places and 7 transitions 33 arcs in 4 ms.
[2023-03-22 08:48:44] [INFO ] Skeletonized 15 HLPN properties in 1 ms.
Remains 15 properties that can be checked using skeleton over-approximation.
Initial state reduction rules removed 7 formulas.
FORMULA PhilosophersDyn-COL-50-ReachabilityCardinality-00 TRUE TECHNIQUES TOPOLOGICAL INITIAL_STATE
FORMULA PhilosophersDyn-COL-50-ReachabilityCardinality-04 TRUE TECHNIQUES TOPOLOGICAL INITIAL_STATE
FORMULA PhilosophersDyn-COL-50-ReachabilityCardinality-06 TRUE TECHNIQUES TOPOLOGICAL INITIAL_STATE
FORMULA PhilosophersDyn-COL-50-ReachabilityCardinality-10 FALSE TECHNIQUES TOPOLOGICAL INITIAL_STATE
FORMULA PhilosophersDyn-COL-50-ReachabilityCardinality-12 FALSE TECHNIQUES TOPOLOGICAL INITIAL_STATE
FORMULA PhilosophersDyn-COL-50-ReachabilityCardinality-13 TRUE TECHNIQUES TOPOLOGICAL INITIAL_STATE
FORMULA PhilosophersDyn-COL-50-ReachabilityCardinality-14 TRUE TECHNIQUES TOPOLOGICAL INITIAL_STATE
Computed a total of 0 stabilizing places and 0 stable transitions
[2023-03-22 08:48:44] [INFO ] Flatten gal took : 13 ms
[2023-03-22 08:48:44] [INFO ] Flatten gal took : 3 ms
Domain [Philosopher(50), Philosopher(50)] of place Neighbourhood breaks symmetries in sort Philosopher
[2023-03-22 08:48:45] [INFO ] Unfolded HLPN to a Petri net with 2850 places and 257550 transitions 2154950 arcs in 1527 ms.
[2023-03-22 08:48:45] [INFO ] Unfolded 8 HLPN properties in 3 ms.
Ensure Unique test removed 1225 transitions
Reduce redundant transitions removed 1225 transitions.
Incomplete random walk after 10000 steps, including 1118 resets, run finished after 6004 ms. (steps per millisecond=1 ) properties (out of 8) seen :1
FORMULA PhilosophersDyn-COL-50-ReachabilityCardinality-07 FALSE TECHNIQUES TOPOLOGICAL RANDOM_WALK
Incomplete Best-First random walk after 10001 steps, including 7 resets, run finished after 61 ms. (steps per millisecond=163 ) properties (out of 7) seen :0
Incomplete Best-First random walk after 10001 steps, including 6 resets, run finished after 1028 ms. (steps per millisecond=9 ) properties (out of 7) seen :0
Incomplete Best-First random walk after 10001 steps, including 7 resets, run finished after 709 ms. (steps per millisecond=14 ) properties (out of 7) seen :0
Incomplete Best-First random walk after 10001 steps, including 7 resets, run finished after 763 ms. (steps per millisecond=13 ) properties (out of 7) seen :0
Incomplete Best-First random walk after 10001 steps, including 6 resets, run finished after 397 ms. (steps per millisecond=25 ) properties (out of 7) seen :0
Incomplete Best-First random walk after 10001 steps, including 7 resets, run finished after 449 ms. (steps per millisecond=22 ) properties (out of 7) seen :0
Incomplete Best-First random walk after 10001 steps, including 7 resets, run finished after 339 ms. (steps per millisecond=29 ) properties (out of 7) seen :0
Running SMT prover for 7 properties.
[2023-03-22 08:48:57] [INFO ] Flow matrix only has 246525 transitions (discarded 9800 similar events)
// Phase 1: matrix 246525 rows 2850 cols
[2023-03-22 08:50:57] [WARNING] Invariant computation timed out after 120 seconds.
[2023-03-22 08:50:58] [INFO ] After 1017ms SMT Verify possible using all constraints in real domain returned unsat :1 sat :0 real:6
[2023-03-22 08:51:23] [INFO ] After 24017ms SMT Verify possible using state equation in natural domain returned unsat :1 sat :5
[2023-03-22 08:51:31] [INFO ] State equation strengthened by 125150 read => feed constraints.
java.lang.RuntimeException: SMT solver raised an error when submitting script. Raised (error "Failed to assert expression: java.io.IOException: Stream close...
at fr.lip6.move.gal.structural.smt.SMTUtils.execAndCheckResult(SMTUtils.java:251)
at fr.lip6.move.gal.structural.smt.DeadlockTester.verifyPossible(DeadlockTester.java:642)
at fr.lip6.move.gal.structural.smt.DeadlockTester.testUnreachableWithSMTIncremental(DeadlockTester.java:350)
at fr.lip6.move.gal.structural.smt.DeadlockTester.testUnreachableWithSMT(DeadlockTester.java:223)
at fr.lip6.move.gal.application.solver.ReachabilitySolver.applyReductions(ReachabilitySolver.java:95)
at fr.lip6.move.gal.application.Application.startNoEx(Application.java:902)
at fr.lip6.move.gal.application.Application.start(Application.java:178)
at fr.lip6.move.gal.itscl.application.Application.start(Application.java:45)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:136)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:402)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:659)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:596)
at org.eclipse.equinox.launcher.Main.run(Main.java:1467)
at org.eclipse.equinox.launcher.Main.main(Main.java:1440)
[2023-03-22 08:51:31] [WARNING] SMT solver failed with error :SMT solver raised an error when submitting script.... while checking expressions.
[2023-03-22 08:51:31] [INFO ] After 33480ms SMT Verify possible using all constraints in natural domain returned unsat :1 sat :0 real:6
FORMULA PhilosophersDyn-COL-50-ReachabilityCardinality-11 TRUE TECHNIQUES STRUCTURAL_REDUCTION TOPOLOGICAL SAT_SMT
Fused 7 Parikh solutions to 1 different solutions.
Parikh walk visited 0 properties in 0 ms.
Support contains 2850 out of 2850 places. Attempting structural reductions.
Starting structural reductions in REACHABILITY mode, iteration 0 : 2850/2850 places, 256325/256325 transitions.
Applied a total of 0 rules in 5024 ms. Remains 2850 /2850 variables (removed 0) and now considering 256325/256325 (removed 0) transitions.
[2023-03-22 08:51:36] [INFO ] Flow matrix only has 246525 transitions (discarded 9800 similar events)
// Phase 1: matrix 246525 rows 2850 cols
[2023-03-22 08:53:36] [WARNING] Invariant computation timed out after 120 seconds.
[2023-03-22 08:54:07] [INFO ] Performed 76008/256325 'is it Dead' test of which 0 returned DEAD in 30 seconds.
[2023-03-22 08:54:36] [INFO ] Dead Transitions using invariants and state equation in 180125 ms found 0 transitions.
Finished structural reductions in REACHABILITY mode , in 1 iterations and 185156 ms. Remains : 2850/2850 places, 256325/256325 transitions.
Incomplete random walk after 10000 steps, including 1115 resets, run finished after 5812 ms. (steps per millisecond=1 ) properties (out of 6) seen :0
Incomplete Best-First random walk after 10001 steps, including 7 resets, run finished after 82 ms. (steps per millisecond=121 ) properties (out of 6) seen :0
Incomplete Best-First random walk after 10001 steps, including 6 resets, run finished after 1040 ms. (steps per millisecond=9 ) properties (out of 6) seen :0
Incomplete Best-First random walk after 10001 steps, including 7 resets, run finished after 725 ms. (steps per millisecond=13 ) properties (out of 6) seen :0
Incomplete Best-First random walk after 10001 steps, including 7 resets, run finished after 776 ms. (steps per millisecond=12 ) properties (out of 6) seen :0
Incomplete Best-First random walk after 10001 steps, including 6 resets, run finished after 412 ms. (steps per millisecond=24 ) properties (out of 6) seen :0
Incomplete Best-First random walk after 10001 steps, including 6 resets, run finished after 356 ms. (steps per millisecond=28 ) properties (out of 6) seen :0
Interrupted probabilistic random walk after 9048 steps, run timeout after 27006 ms. (steps per millisecond=0 ) properties seen :{}
Probabilistic random walk after 9048 steps, saw 4008 distinct states, run finished after 27010 ms. (steps per millisecond=0 ) properties seen :0
Running SMT prover for 6 properties.
[2023-03-22 08:55:13] [INFO ] Flow matrix only has 246525 transitions (discarded 9800 similar events)
// Phase 1: matrix 246525 rows 2850 cols
[2023-03-22 08:57:13] [WARNING] Invariant computation timed out after 120 seconds.
[2023-03-22 08:57:15] [INFO ] After 2226ms SMT Verify possible using all constraints in real domain returned unsat :0 sat :0 real:6
[2023-03-22 08:57:17] [INFO ] Invariants computation overflowed in 500374 ms
java.lang.RuntimeException: SMT solver raised an error when submitting script. Raised (error "Failed to assert expression: java.io.IOException: Stream close...
at fr.lip6.move.gal.structural.smt.SMTUtils.execAndCheckResult(SMTUtils.java:251)
at fr.lip6.move.gal.structural.smt.DeadlockTester.verifyPossible(DeadlockTester.java:629)
at fr.lip6.move.gal.structural.smt.DeadlockTester.testUnreachableWithSMTIncremental(DeadlockTester.java:350)
at fr.lip6.move.gal.structural.smt.DeadlockTester.testUnreachableWithSMT(DeadlockTester.java:223)
at fr.lip6.move.gal.application.solver.ReachabilitySolver.applyReductions(ReachabilitySolver.java:95)
at fr.lip6.move.gal.application.Application.startNoEx(Application.java:902)
at fr.lip6.move.gal.application.Application.start(Application.java:178)
at fr.lip6.move.gal.itscl.application.Application.start(Application.java:45)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:136)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:402)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:659)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:596)
at org.eclipse.equinox.launcher.Main.run(Main.java:1467)
at org.eclipse.equinox.launcher.Main.main(Main.java:1440)
[2023-03-22 08:57:40] [WARNING] SMT solver failed with error :SMT solver raised an error when submitting script.... while checking expressions.
[2023-03-22 08:57:40] [INFO ] After 25055ms SMT Verify possible using all constraints in natural domain returned unsat :0 sat :0 real:6
Fused 6 Parikh solutions to 1 different solutions.
Parikh walk visited 0 properties in 0 ms.
Support contains 2850 out of 2850 places. Attempting structural reductions.
Starting structural reductions in REACHABILITY mode, iteration 0 : 2850/2850 places, 256325/256325 transitions.
Applied a total of 0 rules in 5286 ms. Remains 2850 /2850 variables (removed 0) and now considering 256325/256325 (removed 0) transitions.
Finished structural reductions in REACHABILITY mode , in 1 iterations and 5287 ms. Remains : 2850/2850 places, 256325/256325 transitions.
Starting structural reductions in REACHABILITY mode, iteration 0 : 2850/2850 places, 256325/256325 transitions.
Applied a total of 0 rules in 5076 ms. Remains 2850 /2850 variables (removed 0) and now considering 256325/256325 (removed 0) transitions.
[2023-03-22 08:57:51] [INFO ] Flow matrix only has 246525 transitions (discarded 9800 similar events)
// Phase 1: matrix 246525 rows 2850 cols
[2023-03-22 08:59:56] [WARNING] Invariant computation timed out after 120 seconds.
[2023-03-22 08:59:57] [INFO ] Implicit Places using invariants in 126156 ms returned []
Implicit Place search using SMT only with invariants took 126173 ms to find 0 implicit places.
[2023-03-22 08:59:57] [INFO ] Flow matrix only has 246525 transitions (discarded 9800 similar events)
// Phase 1: matrix 246525 rows 2850 cols
[2023-03-22 09:02:02] [WARNING] Invariant computation timed out after 120 seconds.
[2023-03-22 09:02:02] [INFO ] Dead Transitions using invariants and state equation in 125515 ms found 0 transitions.
Finished structural reductions in REACHABILITY mode , in 1 iterations and 256781 ms. Remains : 2850/2850 places, 256325/256325 transitions.
[2023-03-22 09:02:03] [INFO ] Export to MCC of 6 properties in file /home/mcc/execution/ReachabilityCardinality.sr.xml took 51 ms.
[2023-03-22 09:02:29] [INFO ] Export to PNML in file /home/mcc/execution/model.sr.pnml of net with 2850 places, 256325 transitions and 2027550 arcs took 25332 ms.
[2023-03-22 09:04:59] [INFO ] Invariants computation overflowed in 802520 ms
[2023-03-22 09:05:00] [INFO ] Flatten gal took : 139160 ms
Total runtime 976642 ms.
There are residual formulas that ITS could not solve within timeout
======================================================
========== this is Smart for the MCC'2018 ============
======================================================
Running PhilosophersDyn (COL), instance 50
Examination ReachabilityCardinality
Parser /home/mcc/BenchKit/bin//../reducer/bin//../../smart/bin//parser/Cardinality.jar
Model checker /home/mcc/BenchKit/bin//../reducer/bin//../../smart/bin//rem_exec//smart

GOT IT HERE. BS
Petri model created: 2850 places, 256325 transitions, 2027550 arcs.
TIME LIMIT: Killed by timeout after 3600 seconds
MemTotal: 16393216 kB
MemFree: 12338564 kB
After kill :
MemTotal: 16393216 kB
MemFree: 12248044 kB

BK_TIME_CONFINEMENT_REACHED

--------------------
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 ReachabilityCardinality -timeout 360 -rebuildPNML

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="PhilosophersDyn-COL-50"
export BK_EXAMINATION="ReachabilityCardinality"
export BK_TOOL="smartxred"
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-5348"
echo " Executing tool smartxred"
echo " Input is PhilosophersDyn-COL-50, examination is ReachabilityCardinality"
echo " Time confinement is $BK_TIME_CONFINEMENT seconds"
echo " Memory confinement is 16384 MBytes"
echo " Number of cores is 4"
echo " Run identifier is r299-tall-167873952800302"
echo "====================================================================="
echo
echo "--------------------"
echo "preparation of the directory to be used:"

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