Changes between Version 2 and Version 3 of Ticket #6372, comment 13


Ignore:
Timestamp:
2021-03-18T11:36:42Z (4 years ago)
Author:
Francesco Casella

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #6372, comment 13

    v2 v3  
    2626If I temporarily comment out the assert statement from {{{M4}}}, I get this simulation log
    2727{{{
     28Integrator attempt to handle a problem with a called assert.
     29The following assertion has been violated at time 0.600000
     30if time > 0.5 then condition else true
     31error
     32check for discrete changes at time=0.5
     33Integrator attempt to handle a problem with a called assert.
     34The following assertion has been violated at time 0.550000
     35if time > 0.5 then condition else true
     36error
     37model terminate | Simulation terminated by an assert at time: 0.55
     38
     39
     40model terminate | Simulation terminated by an assert at time: 0.55
     41
     42
    2843The initialization finished successfully without homotopy method.
    2944state event at time=0.500000000151
     
    4055{{{
    4156Integrator attempt to handle a problem with a called assert.
     57The following assertion has been violated at time 0.550000
     58if time > 0.5 then condition else true
     59error
     60model terminate | Simulation terminated by an assert at time: 0.55
     61The initialization finished successfully without homotopy method.
    4262The following assertion has been violated at time 0.600000
    4363if time > 0.5 then condition else true
     
    5676Then, a step at time = 0.6 is attemped. According to [https://specification.modelica.org/maint/3.5/modelica-dae-representation.html Appendix B] of the specification, the following actions should be performed
    5777
    58 1. The DAE (B.1a) is solved by a numerical integration method. In this phase '''the conditions c of the if- and when-clauses, as well as the discrete-time variables z and m are kept constant.'''
     781. The DAE (B.1a) is solved by a numerical integration method. In this phase '''the conditions c of theif- and when-clauses, as well as the discrete-time variables z and m are kept constant.'''
    59792. During integration, all relations from (B.1d) are monitored. If one of the relations changes its value an event is triggered, i.e., the exact time instant of the change is determined and the integration is halted.
    60803. At an event instant, (B.1) is a mixed set of algebraic equations which is solved for the Real, Boolean and Integer unknowns