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

About the Execution of 2022-gold for SafeBus-PT-20

Execution Summary
Max Memory
Used (MB)
Time wait (ms) CPU Usage (ms) I/O Wait (ms) Computed Result Execution
Status
8899.563 1800000.00 5908877.00 1138.60 [undef] Time out reached

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.r384-smll-167891833800184.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 gold2022
Input is SafeBus-PT-20, examination is Liveness
Time confinement is 1800 seconds
Memory confinement is 16384 MBytes
Number of cores is 4
Run identifier is r384-smll-167891833800184
=====================================================================

--------------------
preparation of the directory to be used:
/home/mcc/execution
total 21M
-rw-r--r-- 1 mcc users 94K Feb 26 02:45 CTLCardinality.txt
-rw-r--r-- 1 mcc users 478K Feb 26 02:45 CTLCardinality.xml
-rw-r--r-- 1 mcc users 709K Feb 26 02:36 CTLFireability.txt
-rw-r--r-- 1 mcc users 2.9M Feb 26 02:36 CTLFireability.xml
-rw-r--r-- 1 mcc users 4.2K Jan 29 11:41 GenericPropertiesDefinition.xml
-rw-r--r-- 1 mcc users 38K Feb 25 16:49 LTLCardinality.txt
-rw-r--r-- 1 mcc users 150K Feb 25 16:49 LTLCardinality.xml
-rw-r--r-- 1 mcc users 102K Feb 25 16:49 LTLFireability.txt
-rw-r--r-- 1 mcc users 391K Feb 25 16:49 LTLFireability.xml
-rw-r--r-- 1 mcc users 85K Feb 26 04:06 ReachabilityCardinality.txt
-rw-r--r-- 1 mcc users 483K Feb 26 04:06 ReachabilityCardinality.xml
-rw-r--r-- 1 mcc users 1.5M Feb 26 04:00 ReachabilityFireability.txt
-rw-r--r-- 1 mcc users 5.8M Feb 26 04:00 ReachabilityFireability.xml
-rw-r--r-- 1 mcc users 7.0K Feb 25 16:49 UpperBounds.txt
-rw-r--r-- 1 mcc users 20K Feb 25 16:49 UpperBounds.xml
-rw-r--r-- 1 mcc users 5 Mar 5 18:23 equiv_col
-rw-r--r-- 1 mcc users 3 Mar 5 18:23 instance
-rw-r--r-- 1 mcc users 6 Mar 5 18:23 iscolored
-rw-r--r-- 1 mcc users 7.8M 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 1679143022692

Running Version 202205111006
[2023-03-18 12:37:04] [INFO ] Running its-tools with arguments : [-pnfolder, /home/mcc/execution, -examination, Liveness, -spotpath, /home/mcc/BenchKit/bin//..//ltlfilt, -z3path, /home/mcc/BenchKit/bin//..//z3/bin/z3, -yices2path, /home/mcc/BenchKit/bin//..//yices/bin/yices, -its, -ltsmin, -greatspnpath, /home/mcc/BenchKit/bin//..//greatspn/, -order, META, -manyOrder, -smt, -timeout, 1800]
[2023-03-18 12:37:04] [INFO ] Parsing pnml file : /home/mcc/execution/model.pnml
[2023-03-18 12:37:05] [INFO ] Load time of PNML (sax parser for PT used): 1069 ms
[2023-03-18 12:37:06] [INFO ] Transformed 1026 places.
[2023-03-18 12:37:06] [INFO ] Transformed 10461 transitions.
[2023-03-18 12:37:06] [INFO ] Parsed PT model containing 1026 places and 10461 transitions in 1315 ms.
Reduce places removed 20 places and 0 transitions.
Built sparse matrix representations for Structural reductions in 41 ms.63650KB memory used
Starting structural reductions in DEADLOCKS mode, iteration 0 : 1006/1006 places, 10461/10461 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 6865 ms. Remains 1006 /1006 variables (removed 0) and now considering 10461/10461 (removed 0) transitions.
Finished structural reductions, in 1 iterations. Remains : 1006/1006 places, 10461/10461 transitions.
Starting structural reductions in DEADLOCKS mode, iteration 0 : 1006/1006 places, 10461/10461 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 6555 ms. Remains 1006 /1006 variables (removed 0) and now considering 10461/10461 (removed 0) transitions.
[2023-03-18 12:37:22] [INFO ] Flow matrix only has 2482 transitions (discarded 7979 similar events)
// Phase 1: matrix 2482 rows 1006 cols
[2023-03-18 12:37:22] [INFO ] Computed 85 place invariants in 271 ms
[2023-03-18 12:37:23] [INFO ] Implicit Places using invariants in 948 ms returned []
Implicit Place search using SMT only with invariants took 1003 ms to find 0 implicit places.
[2023-03-18 12:37:23] [INFO ] Flow matrix only has 2482 transitions (discarded 7979 similar events)
// Phase 1: matrix 2482 rows 1006 cols
[2023-03-18 12:37:23] [INFO ] Computed 85 place invariants in 147 ms
[2023-03-18 12:37:33] [INFO ] Dead Transitions using invariants and state equation in 10668 ms found 400 transitions.
Found 400 dead transitions using SMT.
Drop transitions removed 400 transitions
Dead transitions reduction (with SMT) removed 400 transitions
Starting structural reductions in DEADLOCKS mode, iteration 1 : 1006/1006 places, 10061/10461 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 5738 ms. Remains 1006 /1006 variables (removed 0) and now considering 10061/10061 (removed 0) transitions.
Finished structural reductions, in 2 iterations. Remains : 1006/1006 places, 10061/10461 transitions.
Interrupted Random walk after 727304 steps, including 0 resets, run timeout after 30001 ms. (steps per millisecond=24 )
Interrupted Random directed walk after 1114179 steps, including 0 resets, run timeout after 30001 ms. (steps per millisecond=37 )
[2023-03-18 12:38:39] [INFO ] Flow matrix only has 2482 transitions (discarded 7579 similar events)
// Phase 1: matrix 2482 rows 1006 cols
[2023-03-18 12:38:39] [INFO ] Computed 85 place invariants in 77 ms
[2023-03-18 12:38:43] [INFO ] [Real]Absence check using 44 positive place invariants in 105 ms returned sat
[2023-03-18 12:38:48] [INFO ] [Real]Absence check using 44 positive and 41 generalized place invariants in 5484 ms returned sat
[2023-03-18 12:38:48] [INFO ] [Real]Adding state equation constraints to refine reachable states.
[2023-03-18 12:39:01] [INFO ] [Real]Absence check using state equation in 13031 ms returned unknown
Random directed walk for 500005 steps, including 0 resets, run took 12935 ms (no deadlock found). (steps per millisecond=38 )
Random walk for 500000 steps, including 0 resets, run took 19496 ms (no deadlock found). (steps per millisecond=25 )
Random directed walk for 500000 steps, including 0 resets, run took 13272 ms (no deadlock found). (steps per millisecond=37 )
Random walk for 500000 steps, including 0 resets, run took 19390 ms (no deadlock found). (steps per millisecond=25 )
Starting structural reductions in DEADLOCKS mode, iteration 0 : 1006/1006 places, 10061/10061 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 5346 ms. Remains 1006 /1006 variables (removed 0) and now considering 10061/10061 (removed 0) transitions.
[2023-03-18 12:40:12] [INFO ] Flow matrix only has 2482 transitions (discarded 7579 similar events)
// Phase 1: matrix 2482 rows 1006 cols
[2023-03-18 12:40:12] [INFO ] Computed 85 place invariants in 44 ms
[2023-03-18 12:40:12] [INFO ] Implicit Places using invariants in 377 ms returned []
Implicit Place search using SMT only with invariants took 379 ms to find 0 implicit places.
[2023-03-18 12:40:12] [INFO ] Flow matrix only has 2482 transitions (discarded 7579 similar events)
// Phase 1: matrix 2482 rows 1006 cols
[2023-03-18 12:40:12] [INFO ] Computed 85 place invariants in 86 ms
[2023-03-18 12:40:22] [INFO ] Dead Transitions using invariants and state equation in 10058 ms found 0 transitions.
Finished structural reductions, in 1 iterations. Remains : 1006/1006 places, 10061/10061 transitions.
Interrupted Random walk after 747485 steps, including 0 resets, run timeout after 30001 ms. (steps per millisecond=24 )
Interrupted Random directed walk after 1172021 steps, including 0 resets, run timeout after 30001 ms. (steps per millisecond=39 )
[2023-03-18 12:41:22] [INFO ] Flow matrix only has 2482 transitions (discarded 7579 similar events)
// Phase 1: matrix 2482 rows 1006 cols
[2023-03-18 12:41:22] [INFO ] Computed 85 place invariants in 45 ms
[2023-03-18 12:41:25] [INFO ] [Real]Absence check using 44 positive place invariants in 95 ms returned sat
[2023-03-18 12:41:31] [INFO ] SMT solver returned unknown. Retrying;
[2023-03-18 12:41:32] [INFO ] [Real]Absence check using 44 positive and 41 generalized place invariants in 6963 ms returned sat
[2023-03-18 12:41:32] [INFO ] [Real]Adding state equation constraints to refine reachable states.
[2023-03-18 12:41:37] [INFO ] [Real]Absence check using state equation in 4506 ms returned sat
[2023-03-18 12:41:37] [INFO ] Solution in real domain found non-integer solution.
[2023-03-18 12:41:40] [INFO ] [Nat]Absence check using 44 positive place invariants in 252 ms returned sat
[2023-03-18 12:41:41] [INFO ] [Nat]Absence check using 44 positive and 41 generalized place invariants in 636 ms returned sat
[2023-03-18 12:41:41] [INFO ] [Nat]Adding state equation constraints to refine reachable states.
[2023-03-18 12:41:47] [INFO ] [Nat]Absence check using state equation in 6162 ms returned sat
[2023-03-18 12:41:47] [INFO ] State equation strengthened by 421 read => feed constraints.
[2023-03-18 12:41:48] [INFO ] [Nat]Added 421 Read/Feed constraints in 1254 ms returned sat
[2023-03-18 12:41:49] [INFO ] Deduced a trap composed of 81 places in 824 ms of which 6 ms to minimize.
[2023-03-18 12:41:50] [INFO ] Deduced a trap composed of 99 places in 800 ms of which 3 ms to minimize.
[2023-03-18 12:41:53] [INFO ] Deduced a trap composed of 81 places in 631 ms of which 3 ms to minimize.
[2023-03-18 12:41:56] [INFO ] Trap strengthening (SAT) tested/added 3/3 trap constraints in 7641 ms
Parikh directed walk for 111000 steps, including 1000 resets, run took 4655 ms. (steps per millisecond=23 )
Random directed walk for 500013 steps, including 0 resets, run took 12710 ms (no deadlock found). (steps per millisecond=39 )
Random walk for 500000 steps, including 0 resets, run took 19777 ms (no deadlock found). (steps per millisecond=25 )
Random directed walk for 500009 steps, including 0 resets, run took 12742 ms (no deadlock found). (steps per millisecond=39 )
Random walk for 500000 steps, including 0 resets, run took 19751 ms (no deadlock found). (steps per millisecond=25 )
[2023-03-18 12:43:07] [INFO ] Flatten gal took : 1316 ms
Starting structural reductions in LIVENESS mode, iteration 0 : 1026/1026 places, 10461/10461 transitions.
Reduce places removed 20 places and 0 transitions.
Iterating post reduction 0 with 20 rules applied. Total rules applied 20 place count 1006 transition count 10461
Applied a total of 20 rules in 277 ms. Remains 1006 /1026 variables (removed 20) and now considering 10461/10461 (removed 0) transitions.
[2023-03-18 12:43:08] [INFO ] Flow matrix only has 2482 transitions (discarded 7979 similar events)
// Phase 1: matrix 2482 rows 1006 cols
[2023-03-18 12:43:08] [INFO ] Computed 85 place invariants in 76 ms
[2023-03-18 12:43:13] [INFO ] Implicit Places using invariants in 5199 ms returned [926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945]
Discarding 20 places :
Implicit Place search using SMT only with invariants took 5210 ms to find 20 implicit places.
Starting structural reductions in LIVENESS mode, iteration 1 : 986/1026 places, 10461/10461 transitions.
Performed 20 Pre agglomeration using Quasi-Persistent + Divergent Free condition..
Pre-agglomeration after 0 with 20 Pre rules applied. Total rules applied 0 place count 986 transition count 10441
Deduced a syphon composed of 20 places in 5 ms
Reduce places removed 20 places and 0 transitions.
Iterating global reduction 0 with 40 rules applied. Total rules applied 40 place count 966 transition count 10441
Applied a total of 40 rules in 257 ms. Remains 966 /986 variables (removed 20) and now considering 10441/10461 (removed 20) transitions.
[2023-03-18 12:43:13] [INFO ] Flow matrix only has 2462 transitions (discarded 7979 similar events)
// Phase 1: matrix 2462 rows 966 cols
[2023-03-18 12:43:13] [INFO ] Computed 65 place invariants in 51 ms
[2023-03-18 12:43:17] [INFO ] Implicit Places using invariants in 4276 ms returned []
Implicit Place search using SMT only with invariants took 4279 ms to find 0 implicit places.
Starting structural reductions in LIVENESS mode, iteration 2 : 966/1026 places, 10441/10461 transitions.
Finished structural reductions, in 2 iterations. Remains : 966/1026 places, 10441/10461 transitions.
Discarding 360 transitions out of 10441. Remains 10081
Initial state reduction rules removed 20 formulas.
Incomplete random walk after 10000 steps, including 2 resets, run finished after 1667 ms. (steps per millisecond=5 ) properties (out of 10061) seen :877
Interrupted probabilistic random walk after 6819 steps, run timeout after 6003 ms. (steps per millisecond=1 ) properties seen :{290=1, 291=1, 306=1, 307=1, 322=1, 323=1, 324=1, 650=1, 651=1, 670=1, 689=1, 706=1, 707=1, 1040=1, 1041=1, 1059=1, 1060=1, 1077=1, 1079=1, 1095=1, 1096=1, 1097=1, 1430=1, 1431=1, 1450=1, 1451=1, 1471=1, 1489=1, 1490=1, 1822=1, 1840=1, 1841=1, 1859=1, 1861=1, 1878=1, 1879=1, 1880=1, 2213=1, 2214=1, 2233=1, 2234=1, 2251=1, 2268=1, 2270=1, 2271=1, 2605=1, 2623=1, 2624=1, 2640=1, 2641=1, 2643=1, 2657=1, 2659=1, 2660=1, 2990=1, 2991=1, 3009=1, 3010=1, 3026=1, 3028=1, 3042=1, 3046=1, 3392=1, 3393=1, 3410=1, 3412=1, 3425=1, 3429=1, 3430=1, 3431=1, 3760=1, 3761=1, 3779=1, 3780=1, 3798=1, 3800=1, 3812=1, 3818=1, 3819=1, 4153=1, 4172=1, 4173=1, 4191=1, 4193=1, 4204=1, 4208=1, 4209=1, 4210=1, 4540=1, 4541=1, 4559=1, 4560=1, 4580=1, 4590=1, 4598=1, 4599=1, 4933=1, 4952=1, 4953=1, 4971=1, 4973=1, 4981=1, 4989=1, 4990=1, 4991=1, 5325=1, 5344=1, 5345=1, 5363=1, 5365=1, 5373=1, 5383=1, 5384=1, 5718=1, 5735=1, 5736=1, 5754=1, 5762=1, 5772=1, 5773=1, 5774=1, 6106=1, 6107=1, 6124=1, 6125=1, 6142=1, 6144=1, 6150=1, 6161=1, 6162=1, 6497=1, 6516=1, 6517=1, 6534=1, 6536=1, 6541=1, 6553=1, 6554=1, 6555=1, 6889=1, 6890=1, 6909=1, 6910=1, 6930=1, 6934=1, 6948=1, 6949=1, 7278=1, 7296=1, 7297=1, 7315=1, 7317=1, 7320=1, 7332=1, 7333=1, 7334=1, 7668=1, 7669=1, 7688=1, 7689=1, 7705=1, 7708=1, 7710=1, 7726=1, 7727=1, 8057=1, 8059=1, 8078=1, 8079=1, 8096=1, 8098=1, 8099=1, 8115=1, 8116=1, 8117=1, 8134=1, 8135=1, 8136=1, 8151=1, 8168=1, 8169=1, 8170=1, 8186=1, 8187=1, 8188=1, 8202=1, 8203=1, 8204=1, 8218=1, 8219=1, 8232=1, 8233=1, 8234=1, 8251=1, 8263=1, 8264=1, 8265=1, 8279=1, 8280=1, 8295=1, 8296=1, 8297=1, 8298=1, 8314=1, 8315=1, 8316=1, 8330=1, 8331=1, 8332=1, 8333=1, 8349=1, 8350=1, 8363=1, 8364=1, 8365=1, 8366=1, 8381=1, 8382=1, 8383=1, 8395=1, 8396=1, 8397=1, 8412=1, 8413=1, 8414=1, 8415=1, 8430=1, 8431=1, 8432=1, 8450=1, 8451=1, 8452=1, 8676=1, 8691=1, 8692=1, 8699=1, 8700=1, 8710=1, 8711=1, 8712=1, 8714=1, 8715=1, 8716=1, 8717=1, 8718=1, 8719=1, 8720=1, 8721=1, 8722=1, 8723=1, 8724=1, 8725=1, 8726=1, 8727=1, 8728=1, 8729=1, 8730=1, 8731=1, 8732=1, 8733=1, 8734=1, 8735=1, 8736=1, 8737=1, 8738=1, 8739=1, 8740=1, 8741=1, 8742=1, 8743=1, 8744=1, 8745=1, 8746=1, 8747=1, 8748=1, 8749=1, 8750=1, 8751=1, 8752=1, 8753=1, 8754=1, 8755=1, 8756=1, 8757=1, 8758=1, 8759=1, 8760=1, 8761=1, 8762=1, 8763=1, 8764=1, 8765=1, 8766=1, 8767=1, 8768=1, 8769=1, 8770=1, 8771=1, 8772=1, 8774=1, 8775=1, 8776=1, 8777=1, 8778=1, 8779=1, 8780=1, 8781=1, 8782=1, 8783=1, 8785=1, 8786=1, 8787=1, 8788=1, 8789=1, 8790=1, 8791=1, 8792=1, 8793=1, 8794=1, 8795=1, 8798=1, 8799=1, 8800=1, 8801=1, 8802=1, 8803=1, 8804=1, 8805=1, 8806=1, 8807=1, 8810=1, 8811=1, 8812=1, 8813=1, 8814=1, 8815=1, 8816=1, 8817=1, 8818=1, 8819=1, 8823=1, 8824=1, 8825=1, 8826=1, 8827=1, 8828=1, 8829=1, 8830=1, 8831=1, 8832=1, 8833=1, 8837=1, 8838=1, 8839=1, 8840=1, 8841=1, 8846=1, 8847=1, 8848=1, 8849=1, 8850=1, 8851=1, 8855=1, 8856=1, 8857=1, 8858=1, 8862=1, 8863=1, 8864=1, 8865=1, 8866=1, 8867=1, 8874=1, 8875=1, 8876=1, 8877=1, 8878=1, 8879=1, 8883=1, 8884=1, 8885=1, 8886=1, 8887=1, 8888=1, 8889=1, 8897=1, 8898=1, 8899=1, 8900=1, 8909=1, 8910=1, 8919=1, 8920=1, 8921=1, 8934=1, 8957=1, 8968=1, 8969=1, 8991=1, 8992=1, 9003=1, 9004=1, 9005=1, 9018=1, 9031=1, 9032=1, 9043=1, 9044=1, 9058=1, 9059=1, 9067=1, 9079=1, 9080=1, 9091=1, 9092=1, 9103=1, 9104=1, 9121=1}
Probabilistic random walk after 6819 steps, saw 5079 distinct states, run finished after 6006 ms. (steps per millisecond=1 ) properties seen :418
Running SMT prover for 8735 properties.
[2023-03-18 12:43:28] [INFO ] Flow matrix only has 2462 transitions (discarded 7979 similar events)
// Phase 1: matrix 2462 rows 966 cols
[2023-03-18 12:43:28] [INFO ] Computed 65 place invariants in 50 ms

BK_TIME_CONFINEMENT_REACHED

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

+ export LANG=C
+ LANG=C
+ export BINDIR=/home/mcc/BenchKit/bin//../
+ BINDIR=/home/mcc/BenchKit/bin//../
++ pwd
+ export MODEL=/home/mcc/execution
+ MODEL=/home/mcc/execution
+ [[ Liveness = StateSpace ]]
+ /home/mcc/BenchKit/bin//..//runeclipse.sh /home/mcc/execution Liveness -its -ltsmin -greatspnpath /home/mcc/BenchKit/bin//..//greatspn/ -order META -manyOrder -smt -timeout 1800
+ ulimit -s 65536
+ export PYTHONPATH=/usr/lib/python3.9/site-packages/
+ PYTHONPATH=/usr/lib/python3.9/site-packages/
+ export LD_LIBRARY_PATH=/usr/local/lib:
+ LD_LIBRARY_PATH=/usr/local/lib:
+ [[ -z '' ]]
+ export LTSMIN_MEM_SIZE=8589934592
+ LTSMIN_MEM_SIZE=8589934592
++ sed s/.jar//
++ perl -pe 's/.*\.//g'
++ ls /home/mcc/BenchKit/bin//..//itstools/plugins/fr.lip6.move.gal.application.pnmcc_1.0.0.202205111006.jar
+ VERSION=202205111006
+ echo 'Running Version 202205111006'
+ /home/mcc/BenchKit/bin//..//itstools/its-tools -data @none -pnfolder /home/mcc/execution -examination Liveness -spotpath /home/mcc/BenchKit/bin//..//ltlfilt -z3path /home/mcc/BenchKit/bin//..//z3/bin/z3 -yices2path /home/mcc/BenchKit/bin//..//yices/bin/yices -its -ltsmin -greatspnpath /home/mcc/BenchKit/bin//..//greatspn/ -order META -manyOrder -smt -timeout 1800 -vmargs -Dosgi.locking=none -Declipse.stateSaveDelayInterval=-1 -Dosgi.configuration.area=@none -Xss128m -Xms40m -Xmx8192m

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="SafeBus-PT-20"
export BK_EXAMINATION="Liveness"
export BK_TOOL="gold2022"
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 gold2022"
echo " Input is SafeBus-PT-20, 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 r384-smll-167891833800184"
echo "====================================================================="
echo
echo "--------------------"
echo "preparation of the directory to be used:"

tar xzf /home/mcc/BenchKit/INPUTS/SafeBus-PT-20.tgz
mv SafeBus-PT-20 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 ;