Modelica translator error message

I updated to SciLab 2024 anticipating that was required for the latest coslica:

--> atomsInstall("coselica")
 ans  =

  "coselica"  "2024.0.0"  "allusers"  "SCI\contrib\coselica\2024.0.0"  "I"
--------------------------------------------\
 Main Modelica : C:\Users\PLATTE~1\AppData\Local\Temp\SCI_TMP_17604_11907\RLC_Modelica_im.mo


  "c_pass1: build the modelica meta-block failed"

  "xcos_simulate: Error during block parameters update."

Start COSELICA module
	Load macros
	Load palette: Coselica - Blocks
	Load palette: Coselica - Electrical
	Load palette: Coselica - Heat transfer
	Load palette: Coselica - Mechanics/Translational
	Load palette: Coselica - Mechanics/Rotational
	Load palette: Coselica - Mechanics/Planar
	Load palette: Coselica - Components
	Load help
	Load demos
atomsLoad: An error occurred while loading 'coselica-2024.0.0':
	add_demo: error on line #28: "add_demo: The file C:\Users\PLATTE~1\AppData\Local\SCILAB~1.0\contrib\coselica\20240~1.0\demos\coselica.dem.gateway.sce does not exist."
at line   346 of function        atomsLoad ( C:\Users\Plattenberger\AppData\Local\scilab-2024.0.0\modules\atoms\macros\atomsLoad.sci line 362 )
at line     1 of executed string 

I cleared some temp files and as much as I could find from earlier installations. I’m still getting an error just loading the coselica toolbox.

atomsLoad: An error occurred while loading 'coselica-2024.0.0':
	add_demo: error on line #28: 
"add_demo: The file C:\PROGRA~1\SCILAB~1.0\contrib\coselica\20240~1.0\demos
\coselica.dem.gateway.sce does not exist."

This error looks strange to me. The file is present in the archive and is correctly extracted on my Scilab install. Could you reinstall the toolbox ?

atomsRemove("coselica")
// restart Scilab
atomsInstall("coselica")
Startup execution:
  loading initial environment

--> atomsInstall("coselica")
 ans  =

         column 1 to 4

  "coselica"  "2024.0.0"  "user"  "SCIHOME\atoms\x64\coselica\2024.0.0"

         column 5

  "I"

I suspect the next step is someone will want to sell me something. It may be time to look at other options.

Start COSELICA module
	Load macros
	Load palette: Coselica - Blocks
	Load palette: Coselica - Electrical
	Load palette: Coselica - Heat transfer
	Load palette: Coselica - Mechanics/Translational
	Load palette: Coselica - Mechanics/Rotational
	Load palette: Coselica - Mechanics/Planar
	Load palette: Coselica - Components
	Load help
	Load demos
atomsLoad: An error occurred while loading 'coselica-2024.0.0':
	add_demo: error on line #28: "add_demo: The file C:\Users\PLATTE~1\AppData\Roaming\Scilab\SCILAB~1.0\atoms\x64\coselica\20240~1.0\demos\coselica.dem.gateway.sce does not exist."

The truth is that file is not there. The entire demos folder was missing. I copied the demos folder from the program files load into this file location and the file it is looking for is NOT in the demos folder. “coselica.dem.gateway.sce” really does not exist.

Hello,

The package tree is not correct as all the demos files have been created in the toolbox top level folder. It will be fixed soon by the authors but in the meantime you can create a demos folder and copy there all *.dem.sce and the coselica.dem.gateway.sce file.

S.

I update the coselica package with a fresh build, you can atomsSystemUpdate(); atomsUpdate("coselica") to get it.

1 Like