Dear sir or madam,
When constructing two timed automata in UPPAAL, if both two initial states of them are committed type, two timed automata are deadlock. The detail information is as shown in Fig.1, where gtr is a global clock and t is a local clock.
Furthermore, if I change the initial state in second time automata, it is still deadlock. The detail information is as shown in Fig.2.
Please tell me why this situation happens, is it because there are some special mechanism in UPPAAL, or there are some mistakes in the usage of committed or channel ? How to change these models so that they can continue to execute.
Thank you very much!
Fig.1
.jpg?part=0.2&view=1)
Fig. 2
Dear sir or madam,
Thank you for your advice!
The propose that we construct this model is to verify the possible earliest completed and latest completed time of two timed automata: Template and Template 0.
As shown in Fig. 1, we used “gtr” (a global clock) to record the time intervals (two timed automata). Now, as shown in Fig. 2 and Fig. 3, our query language in verifier are inf {Template0.L23}:gtr and sup {Template0.L23}:gtr, but we can NOT obtain the result that we want, please give some advices about this problem.
Furthermore, is that the above idea correct (Namely, we use "gtr" to record the time intervals in two timed automata)?
Thank you very much!
Fig. 1
.jpg?part=0.2&view=1)
Fig. 2
.jpg?part=0.3&view=1)
Fig. 3
Dear sir or madam,
Thank you for your advice!
The propose that we construct this model is to verify the possible earliest completed and latest completed time of two timed automata: Template and Template 0.
As shown in Fig. 1, we used “gtr” (a global clock) to record the time intervals (two timed automata). Now, as shown in Fig. 2 and Fig. 3, our query language in verifier are inf {Template0.L23}:gtr and sup {Template0.L23}:gtr, but we can NOT obtain the result that we want, please give some advices about this problem.
Furthermore, is that the above idea correct (Namely, we use "gtr" to record the time intervals in two timed automata)?
Dear sir or madam,
Thank you for your advice!
The result we expect is that the lower bound on gtr is 5 (calculated by t>=1 and t>=4) and the upper bound on gtr is 8 (calculated by t<=3 and t<=5). However, the range on gtr is not we expect.
Please tell me how to set the type of states or arcs in these two timed automaton to get the result above (Namely, the lower bound on gtr is 5 and the upper bound on gtr is 8). We learned that setting “committed” or “urgent” on the status can keep the time no delay, is this setting correct? If so, how should I set these.
Thank you very much.
Dear sir or madam,
Thank you for your advice!
The result we expect is that the lower bound on gtr is 5 (calculated by t>=1 and t>=4) and the upper bound on gtr is 8 (calculated by t<=3 and t<=5). However, the range on gtr is not we expect.
Please tell me how to set the type of states or arcs in these two timed automaton to get the result above (Namely, the lower bound on gtr is 5 and the upper bound on gtr is 8). We learned that setting “committed” or “urgent” on the status can keep the time no delay, is this setting correct? If so, how should I set these.
Thank you very much.
Dear sir or madam:
Thank you for your advice!
we have tried several ways according to your advices (the details are as follows), but we cannot get the result we expect (Namely, the lower bound on gtr is 5 and the upper bound on gtr is 8). In our model, gtr is a global clock by setting “clock gtr” and R1 is a channel by setting “chan R1” in global declarations, and t is a local clock by setting “clock t” in local declarations.
Way 1): As shown in Fig. 1, according to your first way (make L23 urgent, this will stop the time and force the second process to leave L23 in no time), we set L23 as urgent state, but the result is NOT what we expect.

Fig. 1
Way 2): As shown in Fig. 2, according to your second way (make L23 committed, this will stop the time and preempt other processes, but it is OK in this case (it can progress to L24 and delay there, which does not affect the gtr in L23)), we set L23 as commited state, but the resule is still NOT what we exepect.

Fig. 2
Way 3): As shown in Fig. 3, according to your second way (stop the gtr clock in L23 by adding an invariant gtr'==0. Note that this will turn on an overapproximation, which may have precision consequences for other queries.), we add and invariant gtr1==0 on L23, but the resule is still NOT what we exepect.

Fig. 3
Please give us some more useful advice about the above problems. Then, in this round, we have uploaded our UPPAAL model in the attached file named as “Model”.
Thank you very much!
Dear sir or madam:
Thank you for your advice!
we have tried several ways according to your advices (the details are as follows), but we cannot get the result we expect (Namely, the lower bound on gtr is 5 and the upper bound on gtr is 8). In our model, gtr is a global clock by setting “clock gtr” and R1 is a channel by setting “chan R1” in global declarations, and t is a local clock by setting “clock t” in local declarations.
Way 1): As shown in Fig. 1, according to your first way (make L23 urgent, this will stop the time and force the second process to leave L23 in no time), we set L23 as urgent state, but the result is NOT what we expect.
Fig. 1
Way 2): As shown in Fig. 2, according to your second way (make L23 committed, this will stop the time and preempt other processes, but it is OK in this case (it can progress to L24 and delay there, which does not affect the gtr in L23)), we set L23 as commited state, but the resule is still NOT what we exepect.
Fig. 2
Way 3): As shown in Fig. 3, according to your second way (stop the gtr clock in L23 by adding an invariant gtr'==0. Note that this will turn on an overapproximation, which may have precision consequences for other queries.), we add and invariant gtr1==0 on L23, but the resule is still NOT what we exepect.
Fig. 3
Please give us some more useful advice about the above problems. Then, in this round, we have uploaded our UPPAAL model in the attached file named as “Model”.
Thank you very much!

Dear professor,
Thank you very much for your constructive and useful suggestions! We really appreciate what you’ve done for us in several days.
Based on the last model, we add more states and arcs (with loop structure) on it, and find that the same problem will still exist, i.e., we can't verify the possible earliest completed and latest completed time in the two timed automata.
Our new model is as shown in Fig.1. When we want to verify the possible earliest completed and latest completed time in state Template2. L28 with the queries “inf {Template2.L28}:gtr” and “sup {Template2.L28}:gtr” in UPPAAL, and the results are all gtr>=21 and gtr<inf, but it is NOT we want.
The results we want are the lower bound of state L28 in Template2 is gtr>=21 (calculate by 1+3+1+1+3+6+1+3+1+1=15+6=21, where 15 is the sum of clocks in Template1 and 6 is the sum of clocks in Template2), and upper bound of state L28 in Template2 is gtr<=39 (calculate by 2+5+4+2+5+8+2+5+4+2=26+13=39, where 26 is the sum of clocks in Template1 and 13 is the sum of clocks in Template2), but the upper bound (Namely, gtr<=inf) in verifier with query “sup {Template2.L28}:gtr” is NOT we want.
Are we building the model in the wrong way or some states or arcs in UPPAAL not setting correctly? Please give us some more advice about above problem. Furthermore, we have uploaded this UPPAAL model in the attached file named as “Model1”.
Thank you very much.

Dear professor,
We apologize that perhaps we do not express our problem clearly to you.
Our problem is that we construct the model (the details are shown in Fig.1) according to your pervious advices, but it stops abnormally in simulator of UPPAAL.
Please give us some more useful advice, such that the model can execute continually. Furthermore, in this round, we have uploaded the model named “model2” in this reply.
Thank you very much!

Dear professor,
We apologize that perhaps we do not express our problem clearly to you.
Our problem is that we construct the model (the details are shown in Fig.1) according to your pervious advices, but it stops abnormally in simulator of UPPAAL.
Please give us some more useful advice, such that the model can execute continually. Furthermore, in this round, we have uploaded the model named “model2” in this reply.
Thank you very much!
Fig. 1
