The Modelica platform in detail > Translating Modelica models
Translating models
The goal here is to simulate a model from an existing Modelica library. To send this model to Simcenter Amesim for simulation, simply right-click on that model in the Modelica Editor’s library tree and select Add to active Simcenter Amesim model (see figure below).
Figure 24: Adding the integrator model to an Simcenter Amesim sketch
If the operation is successful, a new Modelica component icon will be inserted into the sketch of your .ame file (see figure below).
Figure 25: Modelica component inserted into new Simcenter Amesim sketch
Because Simcenter Amesim always stores a local submodel for each Modelica component in the sketch, you will also see that the associated modelica_icon model has been added to the Simcenter Amesim models window of the Modelica Editor (see figure below). If you view the source code for this model, you will see that it does not contain the IntegratorModel from our library, but extends from it. In other words, instead of copying it, the local Modelica model in your .ame file is inheriting from the model named IntegratorModel in the library named MyLibrary. Therefore, changes made to IntegratorModel will propagate into your Modelica icon so that any subsequent translation of the Modelica icon will reflect the updaed behavior.
Figure 26: Modelica source code for the local model just created
From now on, the library workflow will work just like the local workflow. The only difference was how that Modelica component was created in the first place – from the Simcenter Amesim GUI or from the Modelica Editor GUI. Proceeding to Submodel mode will trigger the Modelica translation to generate the native Simcenter Amesim submodel, and proceeding to Simulation mode will trigger the compilation of the Simcenter Amesim circuit model.
It should be noted that you are free to switch directly from Sketch mode to Simulation mode. All the necessary compilation processes will happen behind the scenes. At this point, the Modelica model is ready for simulation and post-processing.
Source: https://docs.sw.siemens.com/en-US/doc/254352342/PL20250521841123434.amesim_collection.Modelica_Platform/xid1196804 · retrieved 2026-07-17