fond
Model Checking Contest 2024
14th edition, Geneva, Switzerland, June 25, 2024
Execution of r462-smll-171701123700182
Last Updated
July 7, 2024

About the Execution of 2023-gold for VehicularWifi-COL-none

Execution Summary
Max Memory
Used (MB)
Time wait (ms) CPU Usage (ms) I/O Wait (ms) Computed Result Execution
Status
3697.792 328350.00 709678.00 1090.90 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/mcc2024-input.r462-smll-171701123700182.qcow2', fmt=qcow2 size=4294967296 backing_file=/data/fkordon/mcc2024-input.qcow2 backing_fmt=qcow2 cluster_size=65536 lazy_refcounts=off refcount_bits=16
Waiting for the VM to be ready (probing ssh)
.......................................................................................................................................................................................................
=====================================================================
Generated by BenchKit 2-5568
Executing tool gold2023
Input is VehicularWifi-COL-none, examination is QuasiLiveness
Time confinement is 1800 seconds
Memory confinement is 16384 MBytes
Number of cores is 4
Run identifier is r462-smll-171701123700182
=====================================================================

--------------------
preparation of the directory to be used:
/home/mcc/execution
total 616K
-rw-r--r-- 1 mcc users 8.7K Apr 11 23:24 CTLCardinality.txt
-rw-r--r-- 1 mcc users 83K Apr 11 23:24 CTLCardinality.xml
-rw-r--r-- 1 mcc users 5.6K Apr 11 23:24 CTLFireability.txt
-rw-r--r-- 1 mcc users 38K Apr 11 23:24 CTLFireability.xml
-rw-r--r-- 1 mcc users 4.2K May 18 16:43 GenericPropertiesDefinition.xml
-rw-r--r-- 1 mcc users 4.6K Apr 23 08:04 LTLCardinality.txt
-rw-r--r-- 1 mcc users 28K Apr 23 08:04 LTLCardinality.xml
-rw-r--r-- 1 mcc users 2.9K Apr 23 08:04 LTLFireability.txt
-rw-r--r-- 1 mcc users 18K Apr 23 08:04 LTLFireability.xml
-rw-r--r-- 1 mcc users 12K Apr 11 23:24 ReachabilityCardinality.txt
-rw-r--r-- 1 mcc users 106K Apr 11 23:24 ReachabilityCardinality.xml
-rw-r--r-- 1 mcc users 9.3K Apr 11 23:24 ReachabilityFireability.txt
-rw-r--r-- 1 mcc users 64K Apr 11 23:24 ReachabilityFireability.xml
-rw-r--r-- 1 mcc users 1.8K Apr 23 08:04 UpperBounds.txt
-rw-r--r-- 1 mcc users 3.8K Apr 23 08:04 UpperBounds.xml
-rw-r--r-- 1 mcc users 6 May 18 16:43 equiv_pt
-rw-r--r-- 1 mcc users 5 May 18 16:43 instance
-rw-r--r-- 1 mcc users 5 May 18 16:43 iscolored
-rw-r--r-- 1 mcc users 188K May 18 16:43 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 QuasiLiveness

=== Now, execution of the tool begins

BK_START 1717175056066

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=gold2023
BK_EXAMINATION=QuasiLiveness
BK_BIN_PATH=/home/mcc/BenchKit/bin/
BK_TIME_CONFINEMENT=1800
BK_INPUT=VehicularWifi-COL-none
Not applying reductions.
Model is COL
QuasiLiveness COL
Running Version 202304061127
[2024-05-31 17:04:18] [INFO ] Running its-tools with arguments : [-pnfolder, /home/mcc/execution, -examination, QuasiLiveness, -its, -ltsmin, -greatspnpath, /home/mcc/BenchKit/bin//../itstools/bin//..//greatspn/, -order, META, -manyOrder, -smt, -timeout, 1800]
[2024-05-31 17:04:19] [INFO ] Parsing pnml file : /home/mcc/execution/model.pnml
[2024-05-31 17:04:19] [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.
[2024-05-31 17:04:19] [WARNING] Using fallBack plugin, rng conformance not checked
[2024-05-31 17:04:20] [INFO ] Load time of PNML (colored model parsed with PNMLFW) : 1027 ms
[2024-05-31 17:04:20] [INFO ] Detected 1 constant HL places corresponding to 81920 PT places.
[2024-05-31 17:04:20] [INFO ] Imported 21 HL places and 41 HL transitions for a total of 115566 PT places and 379924.0 transition bindings in 110 ms.
[2024-05-31 17:04:21] [INFO ] Unfolded HLPN to a Petri net with 115566 places and 83836 transitions 301810 arcs in 1533 ms.
[2024-05-31 17:04:21] [INFO ] Unfolded 41 HLPN properties in 19 ms.
Initial state reduction rules removed 2 formulas.
[2024-05-31 17:04:22] [INFO ] Reduced 32912 identical enabling conditions.
Deduced a syphon composed of 98581 places in 288 ms
Reduce places removed 106837 places and 54136 transitions.
Incomplete random walk after 10000 steps, including 2 resets, run finished after 1384 ms. (steps per millisecond=7 ) properties (out of 39) seen :35
Incomplete Best-First random walk after 10001 steps, including 2 resets, run finished after 109 ms. (steps per millisecond=91 ) properties (out of 4) seen :0
Incomplete Best-First random walk after 10001 steps, including 2 resets, run finished after 128 ms. (steps per millisecond=78 ) properties (out of 4) seen :0
Incomplete Best-First random walk after 10001 steps, including 2 resets, run finished after 113 ms. (steps per millisecond=88 ) properties (out of 4) seen :0
Incomplete Best-First random walk after 10001 steps, including 2 resets, run finished after 103 ms. (steps per millisecond=97 ) properties (out of 4) seen :0
Running SMT prover for 4 properties.
[2024-05-31 17:04:26] [INFO ] Flow matrix only has 17308 transitions (discarded 12392 similar events)
// Phase 1: matrix 17308 rows 8729 cols
[2024-05-31 17:04:27] [INFO ] Flatten gal took : 1870 ms
[2024-05-31 17:04:27] [INFO ] Computed 8 invariants in 1282 ms
[2024-05-31 17:04:28] [INFO ] Flatten gal took : 1094 ms
[2024-05-31 17:04:28] [INFO ] Time to serialize gal into /tmp/ReachabilityCardinality13946203443132627424.gal : 332 ms
[2024-05-31 17:04:28] [INFO ] Time to serialize properties into /tmp/ReachabilityCardinality18332551662590695837.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.202304061127/bin/its-reach-linux64' '--gc-threshold' '2000000' '--quiet' '-i' '/tmp/ReachabilityCardinality13946203443132627424.gal' '-t' 'CGAL' '-reachable-file' '/tmp/ReachabilityCardinality18332551662590695837.prop' '--nowitness' '--gen-order' 'FOLLOW'

its-reach command run as :

/home/mcc/BenchKit/itstools/itstools/plugins/fr.lip6.move.gal.itstools.binaries_1.0.0.202304061127/bin/its-reach-linux64 --gc-threshold 2000000 --quiet ...330
[2024-05-31 17:04:31] [INFO ] [Real]Absence check using 6 positive place invariants in 64 ms returned sat
[2024-05-31 17:04:31] [INFO ] [Real]Absence check using 6 positive and 2 generalized place invariants in 221 ms returned sat
Loading property file /tmp/ReachabilityCardinality18332551662590695837.prop.
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.checkResults(DeadlockTester.java:800)
at fr.lip6.move.gal.structural.smt.DeadlockTester.verifyPossible(DeadlockTester.java:634)
at fr.lip6.move.gal.structural.smt.DeadlockTester.testUnreachableWithSMTIncremental(DeadlockTester.java:342)
at fr.lip6.move.gal.structural.smt.DeadlockTester.testUnreachableWithSMT(DeadlockTester.java:226)
at fr.lip6.move.gal.application.solver.ReachabilitySolver.applyReductions(ReachabilitySolver.java:96)
at fr.lip6.move.gal.application.solver.global.GlobalPropertySolver.applyReachabilitySolver(GlobalPropertySolver.java:724)
at fr.lip6.move.gal.application.solver.global.GlobalPropertySolver.solveProperty(GlobalPropertySolver.java:558)
at fr.lip6.move.gal.application.solver.global.GlobalPropertySolver.preSolveLiveness(GlobalPropertySolver.java:412)
at fr.lip6.move.gal.application.solver.global.GlobalPropertySolver.preStableMarking(GlobalPropertySolver.java:321)
at fr.lip6.move.gal.application.solver.global.GlobalPropertySolver.solveProperty(GlobalPropertySolver.java:294)
at fr.lip6.move.gal.application.Application.startNoEx(Application.java:426)
at fr.lip6.move.gal.application.Application.start(Application.java:182)
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)
[2024-05-31 17:04:53] [WARNING] SMT solver failed with error :SMT solver raised an error when submitting script.... while checking expressions.
[2024-05-31 17:04:53] [INFO ] After 25162ms SMT Verify possible using all constraints in real domain returned unsat :0 sat :0
Fused 4 Parikh solutions to 1 different solutions.
Parikh walk visited 0 properties in 2 ms.
Support contains 65 out of 8729 places. Attempting structural reductions.
Starting structural reductions in REACHABILITY mode, iteration 0 : 8729/8729 places, 29700/29700 transitions.
Performed 16 Pre agglomeration using Quasi-Persistent + Divergent Free condition..
Pre-agglomeration after 0 with 16 Pre rules applied. Total rules applied 0 place count 8729 transition count 29684
Deduced a syphon composed of 16 places in 67 ms
Reduce places removed 16 places and 0 transitions.
Iterating global reduction 0 with 32 rules applied. Total rules applied 32 place count 8713 transition count 29684
Performed 8 Post agglomeration using F-continuation condition.Transition count delta: 8
Deduced a syphon composed of 8 places in 77 ms
Reduce places removed 8 places and 0 transitions.
Iterating global reduction 0 with 16 rules applied. Total rules applied 48 place count 8705 transition count 29676
Free-agglomeration rule applied 8 times.
Iterating global reduction 0 with 8 rules applied. Total rules applied 56 place count 8705 transition count 29668
Reduce places removed 8 places and 0 transitions.
Iterating post reduction 0 with 8 rules applied. Total rules applied 64 place count 8697 transition count 29668
Free-agglomeration rule (complex) applied 8 times.
Iterating global reduction 1 with 8 rules applied. Total rules applied 72 place count 8697 transition count 29709
Reduce places removed 8 places and 0 transitions.
Iterating post reduction 1 with 8 rules applied. Total rules applied 80 place count 8689 transition count 29709
Partial Free-agglomeration rule applied 14 times.
Drop transitions removed 14 transitions
Iterating global reduction 2 with 14 rules applied. Total rules applied 94 place count 8689 transition count 29709
Applied a total of 94 rules in 9860 ms. Remains 8689 /8729 variables (removed 40) and now considering 29709/29700 (removed -9) transitions.
[2024-05-31 17:05:03] [INFO ] Flow matrix only has 17299 transitions (discarded 12410 similar events)
// Phase 1: matrix 17299 rows 8689 cols
[2024-05-31 17:05:03] [INFO ] Computed 8 invariants in 885 ms
[2024-05-31 17:05:05] [INFO ] Dead Transitions using invariants and state equation in 2318 ms found 0 transitions.
Finished structural reductions in REACHABILITY mode , in 1 iterations and 12189 ms. Remains : 8689/8729 places, 29709/29700 transitions.
Interrupted random walk after 762181 steps, including 2 resets, run timeout after 30001 ms. (steps per millisecond=25 ) properties seen 3
Incomplete Best-First random walk after 1000001 steps, including 2 resets, run finished after 4611 ms. (steps per millisecond=216 ) properties (out of 1) seen :0
Running SMT prover for 1 properties.
[2024-05-31 17:05:40] [INFO ] Flow matrix only has 17299 transitions (discarded 12410 similar events)
[2024-05-31 17:05:40] [INFO ] Invariant cache hit.
[2024-05-31 17:05:41] [INFO ] [Real]Absence check using 6 positive place invariants in 60 ms returned sat
[2024-05-31 17:05:42] [INFO ] [Real]Absence check using 6 positive and 2 generalized place invariants in 197 ms returned sat
[2024-05-31 17:05:42] [INFO ] After 2169ms SMT Verify possible using all constraints in real domain returned unsat :0 sat :0 real:1
[2024-05-31 17:05:44] [INFO ] [Nat]Absence check using 6 positive place invariants in 105 ms returned sat
[2024-05-31 17:05:44] [INFO ] [Nat]Absence check using 6 positive and 2 generalized place invariants in 243 ms returned sat
[2024-05-31 17:06:06] [INFO ] After 21908ms SMT Verify possible using state equation in natural domain returned unsat :0 sat :1
[2024-05-31 17:06:06] [INFO ] State equation strengthened by 8456 read => feed constraints.
[2024-05-31 17:06:09] [INFO ] After 2449ms SMT Verify possible using 8456 Read/Feed constraints in natural domain returned unsat :0 sat :1
[2024-05-31 17:06:12] [INFO ] After 5984ms SMT Verify possible using trap constraints in natural domain returned unsat :0 sat :1
Attempting to minimize the solution found.
Minimization took 1527 ms.
[2024-05-31 17:06:14] [INFO ] After 32088ms SMT Verify possible using all constraints in natural domain returned unsat :0 sat :1
Parikh walk visited 0 properties in 569 ms.
Support contains 16 out of 8689 places. Attempting structural reductions.
Starting structural reductions in REACHABILITY mode, iteration 0 : 8689/8689 places, 29709/29709 transitions.
Performed 8 Pre agglomeration using Quasi-Persistent + Divergent Free condition..
Pre-agglomeration after 0 with 8 Pre rules applied. Total rules applied 0 place count 8689 transition count 29701
Deduced a syphon composed of 8 places in 29 ms
Reduce places removed 8 places and 0 transitions.
Iterating global reduction 0 with 16 rules applied. Total rules applied 16 place count 8681 transition count 29701
Free-agglomeration rule (complex) applied 16 times.
Iterating global reduction 0 with 16 rules applied. Total rules applied 32 place count 8681 transition count 29685
Reduce places removed 16 places and 0 transitions.
Iterating post reduction 0 with 16 rules applied. Total rules applied 48 place count 8665 transition count 29685
Partial Free-agglomeration rule applied 7 times.
Drop transitions removed 7 transitions
Iterating global reduction 1 with 7 rules applied. Total rules applied 55 place count 8665 transition count 29685
Applied a total of 55 rules in 5087 ms. Remains 8665 /8689 variables (removed 24) and now considering 29685/29709 (removed 24) transitions.
Finished structural reductions in REACHABILITY mode , in 1 iterations and 5092 ms. Remains : 8665/8689 places, 29685/29709 transitions.
Interrupted random walk after 799332 steps, including 2 resets, run timeout after 30001 ms. (steps per millisecond=26 ) properties seen 0
Incomplete Best-First random walk after 1000001 steps, including 2 resets, run finished after 4912 ms. (steps per millisecond=203 ) properties (out of 1) seen :0
Interrupted probabilistic random walk after 1635158 steps, run timeout after 102001 ms. (steps per millisecond=16 ) properties seen :{}
Probabilistic random walk after 1635158 steps, saw 1376641 distinct states, run finished after 102010 ms. (steps per millisecond=16 ) properties seen :0
Running SMT prover for 1 properties.
[2024-05-31 17:08:37] [INFO ] Flow matrix only has 17275 transitions (discarded 12410 similar events)
// Phase 1: matrix 17275 rows 8665 cols
[2024-05-31 17:08:38] [INFO ] Computed 8 invariants in 1034 ms
[2024-05-31 17:08:39] [INFO ] [Real]Absence check using 6 positive place invariants in 48 ms returned sat
[2024-05-31 17:08:39] [INFO ] [Real]Absence check using 6 positive and 2 generalized place invariants in 138 ms returned sat
[2024-05-31 17:08:40] [INFO ] After 1940ms SMT Verify possible using all constraints in real domain returned unsat :0 sat :0 real:1
[2024-05-31 17:08:41] [INFO ] [Nat]Absence check using 6 positive place invariants in 46 ms returned sat
[2024-05-31 17:08:41] [INFO ] [Nat]Absence check using 6 positive and 2 generalized place invariants in 136 ms returned sat
[2024-05-31 17:09:18] [INFO ] After 37075ms SMT Verify possible using state equation in natural domain returned unsat :0 sat :1
[2024-05-31 17:09:19] [INFO ] State equation strengthened by 8463 read => feed constraints.
[2024-05-31 17:09:27] [INFO ] After 7835ms SMT Verify possible using 8463 Read/Feed constraints in natural domain returned unsat :0 sat :1
[2024-05-31 17:09:30] [INFO ] After 10767ms SMT Verify possible using trap constraints in natural domain returned unsat :0 sat :1
Attempting to minimize the solution found.
Minimization took 1509 ms.
[2024-05-31 17:09:31] [INFO ] After 51524ms SMT Verify possible using all constraints in natural domain returned unsat :0 sat :1
Parikh walk visited 0 properties in 228 ms.
Support contains 16 out of 8665 places. Attempting structural reductions.
Starting structural reductions in REACHABILITY mode, iteration 0 : 8665/8665 places, 29685/29685 transitions.
Applied a total of 0 rules in 1545 ms. Remains 8665 /8665 variables (removed 0) and now considering 29685/29685 (removed 0) transitions.
Finished structural reductions in REACHABILITY mode , in 1 iterations and 1545 ms. Remains : 8665/8665 places, 29685/29685 transitions.
Starting structural reductions in REACHABILITY mode, iteration 0 : 8665/8665 places, 29685/29685 transitions.
Applied a total of 0 rules in 1564 ms. Remains 8665 /8665 variables (removed 0) and now considering 29685/29685 (removed 0) transitions.
[2024-05-31 17:09:34] [INFO ] Flow matrix only has 17275 transitions (discarded 12410 similar events)
[2024-05-31 17:09:34] [INFO ] Invariant cache hit.
[2024-05-31 17:09:36] [INFO ] Implicit Places using invariants in 1214 ms returned []
Implicit Place search using SMT only with invariants took 1217 ms to find 0 implicit places.
[2024-05-31 17:09:36] [INFO ] Flow matrix only has 17275 transitions (discarded 12410 similar events)
[2024-05-31 17:09:36] [INFO ] Invariant cache hit.
[2024-05-31 17:09:37] [INFO ] Dead Transitions using invariants and state equation in 1429 ms found 0 transitions.
Finished structural reductions in REACHABILITY mode , in 1 iterations and 4215 ms. Remains : 8665/8665 places, 29685/29685 transitions.
Finished random walk after 147518 steps, including 0 resets, run visited all 1 properties in 5476 ms. (steps per millisecond=26 )
Parikh walk visited 0 properties in 0 ms.
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 41 properties.
FORMULA QuasiLiveness TRUE TECHNIQUES RANDOM_WALK TOPOLOGICAL INITIAL_STATE
Total runtime 324123 ms.

BK_STOP 1717175384416

--------------------
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
+ [[ QuasiLiveness = StateSpace ]]
+ /home/mcc/BenchKit/bin//../itstools/bin//..//runeclipse.sh /home/mcc/execution QuasiLiveness -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//
++ perl -pe 's/.*\.//g'
++ ls /home/mcc/BenchKit/bin//../itstools/bin//..//itstools/plugins/fr.lip6.move.gal.application.pnmcc_1.0.0.202304061127.jar
+ VERSION=202304061127
+ echo 'Running Version 202304061127'
+ /home/mcc/BenchKit/bin//../itstools/bin//..//itstools/its-tools -pnfolder /home/mcc/execution -examination QuasiLiveness -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="VehicularWifi-COL-none"
export BK_EXAMINATION="QuasiLiveness"
export BK_TOOL="gold2023"
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-5568"
echo " Executing tool gold2023"
echo " Input is VehicularWifi-COL-none, examination is QuasiLiveness"
echo " Time confinement is $BK_TIME_CONFINEMENT seconds"
echo " Memory confinement is 16384 MBytes"
echo " Number of cores is 4"
echo " Run identifier is r462-smll-171701123700182"
echo "====================================================================="
echo
echo "--------------------"
echo "preparation of the directory to be used:"

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