# Xcos / Coselica Support

**URL:** <https://scilab.discourse.group/t/xcos-coselica-support/418>\
**Category:** Xcos\
**Created:** [March 1, 2024, 3:09pm UTC](https://scilab.discourse.group/t/xcos-coselica-support/418 "2024-03-01T15:09:43Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![QwillDune](https://yyz2.discourse-cdn.com/free1/user_avatar/scilab.discourse.group/qwilldune/32/152_2.png) [@QwillDune](https://scilab.discourse.group/u/QwillDune)\
**Post date:** [March 1, 2024, 3:09pm UTC](https://scilab.discourse.group/t/xcos-coselica-support/418/1 "2024-03-01T15:09:43Z")

</div>

Follow-up from a previous topic:

> [@Convert a XCOS model from Scilab 5.5.2 to Scilab 2024](https://scilab.discourse.group/t/convert-a-xcos-model-from-scilab-5-5-2-to-scilab-2024/327/4):
>
> In fact SIMM installs fine in Scilab 2024.0.0 (by on-the-fly compilation) but you have to install coselica before, as the dependency of SIMM upon coselica does not seem to be set in the metadata of the package. However, after satisfying this, there is a problem when SIMM loads: atomsLoad : Une erreur est survenue au cours du chargement de 'SIMM-0.6.2': exec: error on line #172: "Variable non définie : cos\_utils\_lib" S.

The tollbox SIMM needs to be updated to work with the newer versions of Xcos and Coselica.

While this may happen, we think our problem can be solved with only Xcos/Coselica.  
We need help/training on how to do that.

The goal is to model a DC motor acting on a mechanism.  
Input (example): Voltage PWM command, current sensing.  
Output: rotation angle on the mechanism. Torque is dependant of position (angle)

If you know anyone who could help  
Please let us know

---

<div class="post-metadata">

**Author:** ![Pascal77](https://avatars.discourse-cdn.com/v4/letter/p/a9a28c/32.png) [@Pascal77](https://scilab.discourse.group/u/Pascal77)\
**Post date:** [May 30, 2024, 9:27pm UTC](https://scilab.discourse.group/t/xcos-coselica-support/418/2 "2024-05-30T21:27:18Z")

</div>

Hello, I got the same problem on SCILAB 2024.1.0

COSELICA is installed correctly. Schematics can be created in XCOS.  
However, SIMM creates problems.

It’s pretty annoying, all this talk of incompatible modules. DASSAULT SYSTEM, which took over the lead of SCILAB, should also have taken over the lead of the most widely used modules, namely :

- CPGE, COSELICA, SIMM at the very least.

As a result, I’m still using my SCILAB 5.5.2 version, which works perfectly with all these modules. It’s a real shame.

Translated with [DeepL.com](http://DeepL.com) (free version)

---

<div class="post-metadata">

**Author:** ![mottelet](https://yyz2.discourse-cdn.com/free1/user_avatar/scilab.discourse.group/mottelet/32/13_2.png) [@mottelet](https://scilab.discourse.group/u/mottelet)\
**Post date:** [May 30, 2024, 10:03pm UTC](https://scilab.discourse.group/t/xcos-coselica-support/418/3 "2024-05-30T22:03:06Z")

</div>

Hi Pascal,

I let @vincent.couvert answer you as he knows the Scilab story from the inside. Noboby decided one day to stop supporting these modules, the situation is more complicated…

S.

---

<div class="post-metadata">

**Author:** ![Pascal77](https://avatars.discourse-cdn.com/v4/letter/p/a9a28c/32.png) [@Pascal77](https://scilab.discourse.group/u/Pascal77)\
**Post date:** [May 31, 2024, 8:30am UTC](https://scilab.discourse.group/t/xcos-coselica-support/418/4 "2024-05-31T08:30:29Z")

</div>

Hello Stéphane,

thank you for your answer. I hope something good will happen soon 😊

Pascal

---

<div class="post-metadata">

**Author:** ![vincent.couvert](https://avatars.discourse-cdn.com/v4/letter/v/f4b2a3/32.png) [@vincent.couvert](https://scilab.discourse.group/u/vincent.couvert)\
**Post date:** [June 3, 2024, 3:47pm UTC](https://scilab.discourse.group/t/xcos-coselica-support/418/5 "2024-06-03T15:47:01Z")

</div>

Hello @Pascal77 ,

Thanks for your feedback about Scilab (and particularly your post about [uiimport](https://scilab.discourse.group/t/demonstration-of-the-new-uiimport-instruction-scilab-2024-1-0/527)).

We just updated the SIMM toolbox on ATOMS, this module should now work with Scilab 2024.0.0 (and recent 2024.1.0 version).

As @mottelet said, the situation is quite complicated for many ATOMS modules as the successive maintainers sometimes only posted binary versions on ATOMS (and did not contribute to the source code on Scilab forge for example) hence creating a difference between the available binaries and sources. Once in this situation, updating the toolbox is complicated and time consuming.

Development team is only composed of a few people and maintaining Scilab in already a huge work so we do not have lot of time for ATOMS toolboxes but we do our best. This is why contributions are welcomed from the users community and now Scilab (and most ATOMS toolboxes) source are available on Gitlab, contributing is very much easier.

Thanks again for using Scilab.  
Vincent

---

<div class="post-metadata">

**Author:** ![Pascal77](https://avatars.discourse-cdn.com/v4/letter/p/a9a28c/32.png) [@Pascal77](https://scilab.discourse.group/u/Pascal77)\
**Post date:** [June 3, 2024, 7:44pm UTC](https://scilab.discourse.group/t/xcos-coselica-support/418/6 "2024-06-03T19:44:09Z")

</div>

Hello Vincent,

thank you very much for your message.

I’m well aware of the workload involved. I must say that it’s already a great satisfaction to see that SCILAB has been (re)taken in hand by competent and motivated people. The successive changes that have taken place in close succession are testimony to this. For my part, I’m not a developer, just a user, otherwise I’d have loved to be part of this renaissance.

And finally, how can I go about testing the new SIMM on the latest version of SCILAB?

Have a nice evening. Best regards,

Pascal

Translated with [DeepL.com](http://DeepL.com) (free version)

---

<div class="post-metadata">

**Author:** ![Pascal77](https://avatars.discourse-cdn.com/v4/letter/p/a9a28c/32.png) [@Pascal77](https://scilab.discourse.group/u/Pascal77)\
**Post date:** [June 3, 2024, 7:52pm UTC](https://scilab.discourse.group/t/xcos-coselica-support/418/7 "2024-06-03T19:52:09Z")

</div>

I’ve just seen the update on the site [https://atoms.scilab.org/toolboxes/SIMM/0.6.2.2](https://atoms.scilab.org/toolboxes/SIMM/0.6.2.2)

I will try…

Thanks again 😊

---

<div class="post-metadata">

**Author:** ![QwillDune](https://yyz2.discourse-cdn.com/free1/user_avatar/scilab.discourse.group/qwilldune/32/152_2.png) [@QwillDune](https://scilab.discourse.group/u/QwillDune)\
**Post date:** [June 4, 2024, 2:01pm UTC](https://scilab.discourse.group/t/xcos-coselica-support/418/8 "2024-06-04T14:01:11Z")

</div>

Hello,

With SCILAB-2024.1.0 + Coselica 2024.0.0-1 + SIMM 0.6.2.2.  
The toolbox loading runs fine and smoothly  
Thank you

I tried again the model shared some months ago

> [@Convert a XCOS model from Scilab 5.5.2 to Scilab 2024](https://scilab.discourse.group/t/convert-a-xcos-model-from-scilab-5-5-2-to-scilab-2024/327):
>
> Hello, A colleague of mine is using a Xcos model that will only run under Scilab 5.5.2. He and I tried to run it under Scilab 2024 without sucess. We are really rookie here. Can you help find what needs to be adjusted? [Moteur à courant continu avec Scilab-Xcos - 20231006 - Scilab 5\_5\_2.zcos](https://scilab.discourse.group/uploads/short-url/cUEJ1aYN0Xlm1SD0FYzDZEFSaBV.zcos) (5.9 KB) [Moteur à courant continu avec Scilab-Xcos - 20231006 - scilab-2023.1.0 (64-bit) - SIMM NON COMPATIBLE.zcos](https://scilab.discourse.group/uploads/short-url/x4bx8OVZPJzrVWfSxJSunuHWA3b.zcos) (3.7 KB) Thank you F

I used the “5.5.2” model as the “2023” was giving error messages.

The work starts … compiling … linking … but stops with this message.  
_Link done._  
_WARNING: Diagram contains implicit blocks, compiling for implicit Solver._  
_WARNING: Diagram has been compiled for implicit solver_  
_WARNING: switching to implicit Solver_

- “SIMM post”\*
- “Error in post\_xcos\_simulate: ending simulation.”\*

Any clues ?  
What can cause that?  
Where should I look?

BR  
F

---

<div class="post-metadata">

**Author:** ![Pascal77](https://avatars.discourse-cdn.com/v4/letter/p/a9a28c/32.png) [@Pascal77](https://scilab.discourse.group/u/Pascal77)\
**Post date:** [June 5, 2024, 9:58am UTC](https://scilab.discourse.group/t/xcos-coselica-support/418/9 "2024-06-05T09:58:02Z")

</div>

I am trying the new version of SIMM in SCILAb 2024.1.0  
Installation was fine. No encountered problems.

My first try is very simple :

![essai SIMM 0.6.2.2 - Xcos diagram](https://global.discourse-cdn.com/free1/uploads/utc/original/1X/9da00d55876621ad0f9f1cdf2e6cdaaaa7f61ac2.png)  
All blocks come from SIMM palette.

We can see a problem regarding REP\_TIME block.

Then I lauch the simulation, and I have an error message 🙂  
 ![essai SIMM 0.6.2.2 - error message](https://global.discourse-cdn.com/free1/uploads/utc/original/1X/3f5743b0a450a9bb7b04587b77c915877dce1a2f.png)

When I click on OK button, I have errors messages in the console.

```auto
ATTENTION : Le diagramme contient des blocs implicites, compilation en cours pour le solveur implicite.
  "SIMM post"
  "Erreur dans post_xcos_simulate : Simulation interrompue."

```

So, it seems I get the same kind of errors than QwillDune.

Remark : As I am french, my SCILAB version is in french. Sorry for french texts in this post.

---

<div class="post-metadata">

**Author:** ![Pascal77](https://avatars.discourse-cdn.com/v4/letter/p/a9a28c/32.png) [@Pascal77](https://scilab.discourse.group/u/Pascal77)\
**Post date:** [June 11, 2024, 7:05pm UTC](https://scilab.discourse.group/t/xcos-coselica-support/418/10 "2024-06-11T19:05:06Z")

</div>

I just wanted to share a comment about file names regarding old SCILAB versions (for example in 6.1.1 version).  
Indeed, files names are very important with COSELICA and SIMM pallettes.

_Avoid accentuated characters and spaces in file names._

Otherwise, an error is generated and the simulation stops :

![2024-06-11 20_40_03-Message d'erreur avec caract. accuentué Console Scilab 6.1.1](https://global.discourse-cdn.com/free1/uploads/utc/original/1X/cfe0b473dc7f72e600964f964b4c01a1dba04bb8.png)

Once the name is correct, it’s possible to simulate a diagram (with a few restrictions). Here’s an example:

 ![2024-06-11 20_44_29-RLC_série_SIMM (C__Users_Pascal_Documents_SciLab files_SCILAB from 2024 version_](https://global.discourse-cdn.com/free1/uploads/utc/original/1X/15ed075e14dca021758bfd9b89f685ca1241e5ce.png)

The working plots are given below:

![2024-06-11 21_07_02-RLC_serie_SIMM_1](https://global.discourse-cdn.com/free1/uploads/utc/original/1X/ded4b38ed68616fbf5b4f90e7c1d3a8f3bbf3330.png)

![2024-06-11 21_07_02-RLC_serie_SIMM_2](https://global.discourse-cdn.com/free1/uploads/utc/original/1X/537776b68d811a615a2e45da5cb87b099fa97b4e.png)

---

<div class="post-metadata">

**Author:** ![vincent.couvert](https://avatars.discourse-cdn.com/v4/letter/v/f4b2a3/32.png) [@vincent.couvert](https://scilab.discourse.group/u/vincent.couvert)\
**Post date:** [March 24, 2025, 10:53am UTC](https://scilab.discourse.group/t/xcos-coselica-support/418/11 "2025-03-24T10:53:17Z")

</div>

Hi all,

Coselica & SIMM have been updated to be compatible with Scilab 2025.0.0.

Best regards.

---

<div class="post-metadata">

**Author:** ![Pascal77](https://avatars.discourse-cdn.com/v4/letter/p/a9a28c/32.png) [@Pascal77](https://scilab.discourse.group/u/Pascal77)\
**Post date:** [March 24, 2025, 8:25pm UTC](https://scilab.discourse.group/t/xcos-coselica-support/418/12 "2025-03-24T20:25:48Z")

</div>

Hello,

I installed the updated versions of Coselica and SIMM and when I run my demo file (cf. above), I get the following error message : -----Message d’erreur du traducteur Modelica:-----

In the console, I get :  
Fonction principale Modelica : C:\Users\Pascal\AppData\Local\Temp\SCI\_TMP\_4280\_31713\RLC\_s\_rie\_SIMM\_im.mo

“c\_pass1: build the modelica meta-block failed”

“xcos\_simulate : Erreur à la mise à jour des paramètres de bloc.”

---

<div class="post-metadata">

**Author:** ![mottelet](https://yyz2.discourse-cdn.com/free1/user_avatar/scilab.discourse.group/mottelet/32/13_2.png) [@mottelet](https://scilab.discourse.group/u/mottelet)\
**Post date:** [March 24, 2025, 8:52pm UTC](https://scilab.discourse.group/t/xcos-coselica-support/418/13 "2025-03-24T20:52:32Z")

</div>

Hello,

It is likely the same problem as the one for which a solution has been given here: [Modelica compiler Error - #15 by Sid](https://scilab.discourse.group/t/modelica-compiler-error/692/15)

S.

---

<div class="post-metadata">

**Author:** ![Pascal77](https://avatars.discourse-cdn.com/v4/letter/p/a9a28c/32.png) [@Pascal77](https://scilab.discourse.group/u/Pascal77)\
**Post date:** [March 25, 2025, 9:25am UTC](https://scilab.discourse.group/t/xcos-coselica-support/418/14 "2025-03-25T09:25:48Z")

</div>

Hello Stéphane,

Thank you for your link.  
Finally, the installation of **vcredist\_x86.exe** solved the problem. No need to do other things.  
The simulation is working fine. Moreover, the block named TIME is working fine too.  
So it is possible to mix simulations with TIME and with the clock block.  
I have not yet tested PARAM\_VAR.

Do you know if CPGE will be restored for working with SCILAB 2025?

Best regards  
Pascal

---

<div class="post-metadata">

**Author:** ![Pascal77](https://avatars.discourse-cdn.com/v4/letter/p/a9a28c/32.png) [@Pascal77](https://scilab.discourse.group/u/Pascal77)\
**Post date:** [March 25, 2025, 9:35am UTC](https://scilab.discourse.group/t/xcos-coselica-support/418/15 "2025-03-25T09:35:23Z")

</div>

The following diagram is working well; Even TIME block

 ![Test of SIMM 0.6.2.3 pallet](https://global.discourse-cdn.com/free1/uploads/utc/original/1X/281ddffbad5f9a943eec08624d89ea18a3b46546.png)

 ![Figure n°20005](https://global.discourse-cdn.com/free1/uploads/utc/original/1X/b3109873add5b44eafbf73000133422f9d9eaa57.png)

 ![Figure n°20006](https://global.discourse-cdn.com/free1/uploads/utc/original/1X/19718420f2596288fa42f17d17726b25a287c547.png)

---

<div class="post-metadata">

**Author:** ![mottelet](https://yyz2.discourse-cdn.com/free1/user_avatar/scilab.discourse.group/mottelet/32/13_2.png) [@mottelet](https://scilab.discourse.group/u/mottelet)\
**Post date:** [March 25, 2025, 9:37am UTC](https://scilab.discourse.group/t/xcos-coselica-support/418/16 "2025-03-25T09:37:55Z")

</div>

> [@Pascal77](#):
>
> Do you know if CPGE will be restored for working with SCILAB 2025

I have no idea of the needed work, maybe @vincent.couvert can tell us about it ?

S.

---

<div class="post-metadata">

**Author:** ![Pascal77](https://avatars.discourse-cdn.com/v4/letter/p/a9a28c/32.png) [@Pascal77](https://scilab.discourse.group/u/Pascal77)\
**Post date:** [March 25, 2025, 10:33am UTC](https://scilab.discourse.group/t/xcos-coselica-support/418/17 "2025-03-25T10:33:21Z")

</div>

OK, I will ask Vincent. Thank you

---

<div class="post-metadata">

**Author:** ![mottelet](https://yyz2.discourse-cdn.com/free1/user_avatar/scilab.discourse.group/mottelet/32/13_2.png) [@mottelet](https://scilab.discourse.group/u/mottelet)\
**Post date:** [March 25, 2025, 10:55am UTC](https://scilab.discourse.group/t/xcos-coselica-support/418/18 "2025-03-25T10:55:40Z")

</div>

However, CPGE seems to already work fine in Scilab 2025 (tested on macOS version):

 ![Screenshot 2025-03-25 at 11.54.21](https://global.discourse-cdn.com/free1/uploads/utc/original/1X/8422f473df4e3ff783e4ac190ce00c0d412810e6.jpeg)

---

<div class="post-metadata">

**Author:** ![Pascal77](https://avatars.discourse-cdn.com/v4/letter/p/a9a28c/32.png) [@Pascal77](https://scilab.discourse.group/u/Pascal77)\
**Post date:** [March 25, 2025, 1:48pm UTC](https://scilab.discourse.group/t/xcos-coselica-support/418/19 "2025-03-25T13:48:49Z")

</div>

Hello, I confirm that CPGE is working with SCILAB 2025.0.0

I took your example and ran a Param. variation analysis.

The result is enjoying.

 ![Test of CPGE 1.7.2](https://global.discourse-cdn.com/free1/uploads/utc/original/1X/11b91661d8bb2877435c1a31c1a80021f3945a08.png)  
 ![Test of CPGE-Figure n°0](https://global.discourse-cdn.com/free1/uploads/utc/original/1X/47430057b92ecdb95773c91517bd7941bd8e869d.png)

The parameter G is defined in 2 places:

- in the window “modifier le contexte” (right click on the diagram)  

- in the “Param. version” window :  

I also tested the Bode diagram:

 ![Bode with CPGE for SCILAB 2025](https://global.discourse-cdn.com/free1/uploads/utc/original/1X/61b8af3ab73946d512ed5d40080c5ec95d5eed73.png)  
 ![Diagrammes de Bode](https://global.discourse-cdn.com/free1/uploads/utc/original/1X/2b204f1e2e56c486d570ef0b2dcef6a8b4ea2ab6.png)  
x axis is omega in rad/s

The console displays some error messages:

```auto
  "Temps de simulation mis à 0"
  "Problème d'évaluation : La valeur n'est pas mise à jour à partir du contexte."
  "La dimension du port de sortie doit être un vecteur de deux éléments." 
  "Problème d'évaluation : La valeur n'est pas mise à jour à partir du contexte."
  "La dimension du port de sortie doit être un vecteur de deux éléments." 
  "Problème d'évaluation : La valeur n'est pas mise à jour à partir du contexte."
  "La dimension du port de sortie doit être un vecteur de deux éléments." 
  "Scilab a réussi à extraire une fonction de transfert du schéma bloc : (10)/(10+5*%s+%s^2)"
  "Temps de simulation mis à 0"
  "Problème d'évaluation : La valeur n'est pas mise à jour à partir du contexte."
  "La dimension du port de sortie doit être un vecteur de deux éléments." 
  "Problème d'évaluation : La valeur n'est pas mise à jour à partir du contexte."
  "La dimension du port de sortie doit être un vecteur de deux éléments." 
  "Problème d'évaluation : La valeur n'est pas mise à jour à partir du contexte."
  "La dimension du port de sortie doit être un vecteur de deux éléments." 
  "Scilab a réussi à extraire une fonction de transfert du schéma bloc : (10)/(10+5*%s+%s^2)"
  "Extreme root removed : -1.126D+15"
  "Temps de simulation mis à 0"
  "Problème d'évaluation : La valeur n'est pas mise à jour à partir du contexte."
  "La dimension du port de sortie doit être un vecteur de deux éléments." 
  "Problème d'évaluation : La valeur n'est pas mise à jour à partir du contexte."
  "La dimension du port de sortie doit être un vecteur de deux éléments." 
  "Problème d'évaluation : La valeur n'est pas mise à jour à partir du contexte."
  "La dimension du port de sortie doit être un vecteur de deux éléments." 
  "Scilab a réussi à extraire une fonction de transfert du schéma bloc : (10)/(10+5*%s+%s^2)"

```

And I got also problems to save my file.  
I will investigate…

Very strange: when I want to save a file, evrything seems OK, but there is no saved file. And If I take a look on the name of the file, I see name\_of\_the\_file.ssp.

However, I have no problem with sci or sce files.

So I totally uninstalled SCILAB and reinstalled it without any package, but the problem is remaining. I can’t save anymore XCOS files.

Finally, I found the following temporary solution elsewhere in this community:

- create an empty file with necessary extension
- select necessary extension when saving
- confirm to overwrite existing file

[https://scilab.discourse.group/t/scilab-2025-0-0-unable-save-graph-in-xcos/718](https://scilab.discourse.group/t/scilab-2025-0-0-unable-save-graph-in-xcos/718)

---

<div class="post-metadata">

**Author:** ![Pascal77](https://avatars.discourse-cdn.com/v4/letter/p/a9a28c/32.png) [@Pascal77](https://scilab.discourse.group/u/Pascal77)\
**Post date:** [March 25, 2025, 4:36pm UTC](https://scilab.discourse.group/t/xcos-coselica-support/418/20 "2025-03-25T16:36:10Z")

</div>

Thank you Vincent for your updates:slight\_smile:

It is a good news.

Now, we are very close to the perfect pitch…

[Next page](https://scilab.discourse.group/t/xcos-coselica-support/418.md?page=2)
