[runlim] version:		1.7
[runlim] time limit:		600 seconds
[runlim] real time limit:	311040000 seconds
[runlim] space limit:		2000 MB
[runlim] argv[0]:		../../../../../bin/ocra
[runlim] argv[1]:		-source
[runlim] argv[2]:		././test_WBS_ARP_v1.oss_top_down_brake_at_system.cmd
[runlim] start:			Fri Feb 17 18:06:27 2017
[runlim] main pid:		7812
*** This is ocra 1.4.0 (compiled on Tue Feb 14 10:27:10 2017)
*** For more information on ocra see <https://es.fbk.eu/tools/ocra/>
*** For bug reports, or any comment, please send an email to <ocra@list.fbk.eu>.
*** Copyright (c) 2013, Fondazione Bruno Kessler

*** This version of ocra is linked to NuSMV 2.6.0.
*** For more information on NuSMV see <http://nusmv.fbk.eu>
*** or email to <nusmv-users@list.fbk.eu>.
*** Copyright (C) 2010-2014, Fondazione Bruno Kessler

*** This version of ocra is linked to the CUDD library version 2.4.1
*** Copyright (c) 1995-2004, Regents of the University of Colorado

*** This version of ocra is linked to the MiniSat SAT solver. 
*** See http://minisat.se/MiniSat.html
*** Copyright (c) 2003-2006, Niklas Een, Niklas Sorensson
*** Copyright (c) 2007-2010, Niklas Sorensson


Top-down tightening contract refinement of 'brake' defined in component 'system'

[(1). +7..........(2). +4..........(3)...........(>3)...........(any)]
[(1). +7..........(2). +4..........(3)...........(>3)...........(any)]
[(1). +5..........(2)...........(>2)...........(any)]
[(1). +5..........(2)...........(>2)...........(any)]

-Tighten Result N '1' for Weakening Assumption of Parent Contract 'brake'
 G ((!Pedal_Pos1 | Pedal_Pos2) & (!Pedal_Pos2 | Pedal_Pos1))

Tighten Result for Weakening Guarantee of Subcontract 'cmd' in Subcomponent 'BSCU'
 G (!(Pedal_Pos1 | Pedal_Pos2) |  F CMD_AS)

Tighten Result for Weakening Guarantee of Subcontract 'valid' in Subcomponent 'BSCU'
!( G (Pedal_Pos1 <-> Pedal_Pos2))

Tighten Result for Weakening Guarantee of Subcontract 'brake' in Subcomponent 'Hydraulic'
 G (!(CMD_AS | !Valid) |  F Brake)

-Tighten Result N '2' for Weakening Assumption of Parent Contract 'brake'
 G ((!Pedal_Pos1 | Pedal_Pos2) & (!Pedal_Pos2 | Pedal_Pos1))

Tighten Result for Weakening Guarantee of Subcontract 'cmd' in Subcomponent 'BSCU'
!( G (Pedal_Pos1 <-> Pedal_Pos2))

Tighten Result for Weakening Guarantee of Subcontract 'valid' in Subcomponent 'BSCU'
 G (!((Pedal_Pos1 | Pedal_Pos2) & !( X CMD_AS)) |  X !Valid)

Tighten Result for Weakening Guarantee of Subcontract 'brake' in Subcomponent 'Hydraulic'
 G (!(CMD_AS | !Valid) |  F Brake)

A tightened oss spec (number = '1') was generated named 'WBS_ARP_v1.oss_T1.oss'

(Length_input=35, Length_tighten=38)

A tightened oss spec (number = '2') was generated named 'WBS_ARP_v1.oss_T2.oss'

(Length_input=35, Length_tighten=38)


DONE(parameters=11, time_encode=1.9380, time_compos=1.6410)
:START:benchmarking ocra_check_refinement
:START:Check Refinement

Checking refinement of component: system
  The refinement is correct

Checking refinement of component: BSCU
  The refinement is correct

Checking refinement of component: subBSCU

Checking refinement of component: Select_Switch

Checking refinement of component: Hydraulic
  
  Summary: everything is OK.
  :STOP:Check Refinement
  :TIME:Check Refinement = 0.2780 secs.
  Warning: in the refinement of component Hydraulic the following ports are not connected:
  input port CMD_AS
  input port Valid
  output port Brake
  :START:benchmarking ocra_check_refinement
  :START:Check Refinement

Checking refinement of component: system
  The refinement is correct

Checking refinement of component: BSCU
    Checking "CONTRACT valid REFINEDBY bscu1.valid, bscu2.valid, switch.select;"
      Checking the correct implementation of "valid"... [NOT OK, and trace 1 is a ctx]

Checking refinement of component: subBSCU

Checking refinement of component: Select_Switch

Checking refinement of component: Hydraulic
  
  Summary: some checks failed.
  :STOP:Check Refinement
  :TIME:Check Refinement = 0.2970 secs.
  
  ********   WARNING   ********
  The initial states set of the finite state machine is empty.
  This might make results of model checking not trustable.
  ******** END WARNING ********
  -- specification (!( G ((CMD_AS | !Valid) ->  F Brake)) |  G (!(CMD_AS | !Valid) |  F Brake))  is true
  Entailment tighten_W_brake_at_Hydraulic: OK 
  
  ********   WARNING   ********
  The initial states set of the finite state machine is empty.
  This might make results of model checking not trustable.
  ******** END WARNING ********
  -- specification (!( G ((Pedal_Pos1 | Pedal_Pos2) ->  F switch.Out)) |  G (!(Pedal_Pos1 | Pedal_Pos2) |  F switch.Out))  is true
  Entailment tighten_W_cmd_at_BSCU: OK 
  -- specification (!( G (((Pedal_Pos1 | Pedal_Pos2) & !( X switch.Out)) ->  X !(bscu1.Valid | bscu2.Valid))) | !( G (Pedal_Pos1 <-> Pedal_Pos2)))  is false
  -- as demonstrated by the following execution sequence

Trace Description: LTL Counterexample 
Trace Type: Counterexample 
  
  -- Loop starts here
  -> State Ports: 2.1 <-
    Pedal_Pos1 = TRUE
    Pedal_Pos2 = TRUE
    switch.Out = FALSE
    bscu2.CMD_AS = FALSE
    bscu2.Valid = FALSE
    bscu1.CMD_AS = FALSE
    bscu1.Valid = FALSE
  
  -> State Ports: 2.2 <-
    switch.Out = TRUE
    bscu2.Valid = TRUE
  
  -> State Ports: 2.3 <-
    switch.Out = FALSE
    bscu2.Valid = FALSE
  
  Entailment tighten_W_valid_at_BSCU: NOT OK, and trace 2 is a ctx 
  -- specification (!( G (Pedal_Pos1 <-> Pedal_Pos2)) |  G ((!Pedal_Pos1 | Pedal_Pos2) & (!Pedal_Pos2 | Pedal_Pos1)))  is true
  Entailment tighten_W_brake_at_system: OK 
  
  All validation properties have been checked. 
[runlim] end:			Fri Feb 17 18:06:32 2017
[runlim] status:		ok
[runlim] result:		0
[runlim] children:		0
[runlim] real:			5.03 seconds
[runlim] time:			4.20 seconds
[runlim] space:			65.3 MB
[runlim] samples:		42
