Pre-requisites for AMALTHEA model migration

VM arguments

Default max heap memory (Xmx) used by the APP4MC distribution is 2 GB. In case of migrating huge models, it is recommended to increase this memory to 4 GB before invocation of “AMALTHEA Model Migration” feature

Follow the below steps to increase the heap memory setting of APP4MC :

Usage of UUID’s instead of URI fragments inside AMALTHEA models

It is recommended that AMALTHEA models (1.0.3 and 1.1.0 versions) have UUID’s instead of Xpath like URI fragments for identifying the elements.

Note: Default referencing mechanism within an EMF model or across models is to have Xpath like URI fragments (example : “//@stimuliModel/@stimuli.9”) but this is not recommended when the model elements are modified through external mechanism ( instead of standard EMF editors) as it is quite challenging to update index order and references accordingly.

Model files generated by AMALTHEA (1.0.3) /Amalthea4Public (1.1.0) IDE contains UUID instead of Xpath like URI fragments. From Amalthea4Public (1.1.1), custom URI fragments are introduced which are based on the element names rather than index

How to identify if Xpath like URI fragments are used in AMALTHEA model files

Open AMALTHEA model files in text editor

If the results of “xmi:id” are false and “//@” are true, this means - > URI fragments are used in the AMALTHEA model files

How to identify if UUID’s are used in AMALTHEA model files

Open AMALTHEA model files in text editor

If model elements consists of xmi:id attributes for their identification and for referencing, model content looks like below:

<calls xsi:type="sw:TaskRunnableCall" xmi:id="_FddJyEJsEeW3445fEkSwWQ" runnable="_FeWjyUJsEeW3445fEkSwWQ"/>

Update AMALTHEA models to use UUID’s instead of Xpath like URI fragments

Once it is identified that models contain Xpath like URI fragments, it is recommended to update them to have UUID’s before invoking model migration.

For update of models to have UUID’s, use one of the below plugin (depending on the model version) and execute it in the corresponding AMALTHEA distribution to which model is belonging to

AMALTHEA Model Version Utility plugin to convert URI Fragments to UUID’s
1.0.3
download : 1.0.3 AMALTHEA models converter
1.1.0
download : 1.1.0 AMALTHEA models converter

Follow the below steps to convert URI Fragments to UUID’s:

  1. Import the dowloaded utility plugin into corresponding AMALTHEA distribution



  2. Open the models folder in the project - > remove the existing models and copy the models which should be updated for UUID’s ( It is important to have all the models and the dependent models copied with the same folder structure)



  3. Configuring the copied models to be considered for UUID’s updation :



  4. Executing workflow to update the Amalthea models :



  5. Updated model files (with UUID’s) will overwrite the input models. These model files should be used for model migration

Special behavior

During the UUID update process following behavior is performed: