Based on Modelica language, Multi-Disciplines Virtual Experiment Platform(VeePalms) implements the interactive simulation mechanism with open source Modelicasimulation solver OMC (OpenModelica Compiler). In order to ensure the efficiency,reliability and high availability of interactive simulation, the simulation task flowmonitoring system for VeePalms is designed and realized, the monitoring system mainlyrealizes monitoring of the simulation tasks and simulation tasks live migration, and OMCmodel compilation process has been optimized, such that strengthening the processingcapability of the monitoring system for the abnormal events.The monitoring of simulation tasks is divided into monitoring data collection,analysis and monitoring data aggregation. First of all, the monitoring of simulation taskscan collect real-time information of the task number of simulation tasks, the location ofthe task assigned, simulation conditions, calculation nodes load and running state, throughsetting monitoring points in the process of interactive simulation, then data analysis anddata aggregation are implemented in turn. The data aggregation constructs aggregationtree, as far as possible to reduce the influence of the cluster node load caused byaggregation process. If the abnormal event of simulation tasks in the analysis of themonitoring data is detected, then implement simulation tasks live migration. Combinedwith solving characteristics of the Modelica simulation tasks, the simulation tasks livemigration mechanism uses the intermediate files generated by compiling Modelica modelfile to reconstruct the simulation process, such that reducing the communication cost andrecovery time; at the same time, it adopts result data that generated in every simulationstep to set up checkpoint, which avoids a lot of repeated calculating. In addition, OMCmodel compilation process has been optimized, and resource sharing between simulationtasks is implemented, which reduces the average response time of the tasks.The experimental results show that the simulation task in realizing the resourcessharing between concurrent tasks, the average response time reduced by more than20%;and based on the Modelica improved simulation tasks live migration module makes theaverage recovery time of abnormal tasks is reduced by50%or so. |