In the fields of co-simulation and component-based modelling, designers import models as building blocks to create a composite model that provides more complex functionalities. Modelling tools perform instantaneous cycle detection (ICD) on the composite models having feedback loops to reject the models if the loops are mathematically unsound and to improve simulation performance. In this case, the analysis relies heavily on the availability of dependency information from the imported models. However, the cycle detection problem becomes harder when the model's input to output dependencies are mode-dependent, i.e. changes for certain events generated internally or externally as inputs. The number of possible modes created by composing such models increases significantly and unknown factors such as environmental inputs make the offline (statical) ICD a difficult task. In this paper, an online ICD method is introduced to address this issue for the models used in cyber-physical systems. The method utilises an oracle as a central source of information that can answer whether the individual models can make mode transition without creating instantaneous cycles. The oracle utilises three types of data-structures created offline that are adaptively chosen during online (runtime) depending on the frequency as well as the number of models that make mode transitions. During the analysis, the models used online are stalled from running, resulting in the discrepancy with the physical system. The objective is to detect an absence of the instantaneous cycle while minimising the stall time of the model simulation that is induced from the analysis. The benchmark results show that our method is an adequate alternative to the offline analysis methods and significantly reduces the analysis time.
翻译:在共同模拟和基于组件的建模领域,设计师进口模型作为构件,以创建一个提供更复杂功能的综合模型。模型工具在综合模型上进行即时周期检测(ICD),具有反馈回路以拒绝模型,如果循环在数学上不健全,并改进模拟性能。在这种情况下,分析在很大程度上依赖于从导入模型获得依赖性信息。然而,当模型对产出依赖性的投入取决于模式时,周期检测问题就变得更为困难,即对内部或外部产生的某些事件进行修改,以提供更复杂的功能。模型的合成模型生成的瞬时周期检测(ICD)数量大幅增加,而环境投入等未知因素使离线( Statical) ICD成为一项困难的任务。在本文件中,为处理计算机物理系统所用模型的这一问题而引入了在线ICD方法。该方法使用一个或一个核心信息来源,用以回答单个模型能否在不创建瞬时周期性转换模式,而不会造成瞬间循环。 或触摸底利用在网上选择的三种离线生成的替代数据结构,在进行可适应性分析期间(运行时段)使物理分析过程的周期分析结果在轨分析中,在运行中,该分析中显示一个正常的周期的周期中,该分析是用来显示的周期的周期,在进行中,在进行中,在进行中,在进行中进行中进行中,在进行中进行中进行中进行该分析时序式分析的模型的模型的周期的周期的模型的周期分析是用来显示的模型,在进行。在进行。