Opened 4 years ago

Last modified 3 years ago

#6070 assigned defect

Incorrect warning during compilation of model with external component

Reported by: Anton.Soppelsa@eurac.edu Owned by: Adrian Pop
Priority: high Milestone:
Component: Code Generation Version: v1.16.0-dev
Keywords: Cc: Mahder Alemseged Gebremedhin

Description

Dear all,

during compilation of a model using an external library (dll) on Windows. I receive incorrect warnings about the library be missing from any one of the reported folders. The point is that:

  1. The library is not missing;
  2. Compilation completes correctly.

It would be better not to receive the warning because it can mislead the user when debugging.

In fact, this is the last part of the reported output:

External Objects (1) 
======================================== 
1: tsmh:EXTOBJ: SHCControls.TSModel.TSModelHandle()  = SHCControls.TSModel.TSModelHandle.constructor("C:\\Development\\shc-controls\\SHCLib\\Python\\tests\\cannonau2x2.mat", "Cannonau")  type: ExternalObject SHCControls.TSModel.TSModelHandle 
 
 
post-optimization done. 


[2] 18:58:16 Symbolic Notification
The following Modelica-like model represents the back-end DAE for the 'dumpindxdae' stage:
/* This is probably not complete. */
model SHCControls.TSModel.Test
  /* system #1 */
  Real y[2]();
  Real y[1]();
equation
  /* system #1 */
  y = SHCControls.TSModel.tsmEval(tsmh, {0.5, 50000.0}, 2);
end SHCControls.TSModel.Test;

[3] 18:58:16 Translation Warning
[SHCControls.TSModel: 8:5-19:20]: Could not find library TSModel-Interface in either of:
  /usr/lib//TSModel-Interface.dll
  /usr/lib//libTSModel-Interface.a
  /usr/lib//libTSModel-Interface.lib
  /lib//TSModel-Interface.dll
  /lib//libTSModel-Interface.a
  /lib//libTSModel-Interface.lib
  /usr/lib//TSModel-Interface.dll
  /usr/lib//libTSModel-Interface.a
  /usr/lib//libTSModel-Interface.lib
  /lib//TSModel-Interface.dll
  /lib//libTSModel-Interface.a
  /lib//libTSModel-Interface.lib
  C:/Program Files/OpenModelica1.14.1-64bit//lib//omc/TSModel-Interface.dll
  C:/Program Files/OpenModelica1.14.1-64bit//lib//omc/libTSModel-Interface.a
  C:/Program Files/OpenModelica1.14.1-64bit//lib//omc/libTSModel-Interface.lib
  C:/Program Files/OpenModelica1.14.1-64bit//lib//TSModel-Interface.dll
  C:/Program Files/OpenModelica1.14.1-64bit//lib//libTSModel-Interface.a
  C:/Program Files/OpenModelica1.14.1-64bit//lib//libTSModel-Interface.lib
  %APPDATA%/.openmodelica/binaries/SHCControls/TSModel-Interface.dll
  %APPDATA%/.openmodelica/binaries/SHCControls/libTSModel-Interface.a
  %APPDATA%/.openmodelica/binaries/SHCControls/libTSModel-Interface.lib
  /C:/Development/shc-controls/SHCLib/C-Cpp/Cpp-ModelicaInterface/Build/Release/mingw64/TSModel-Interface.dll
  /C:/Development/shc-controls/SHCLib/C-Cpp/Cpp-ModelicaInterface/Build/Release/mingw64/libTSModel-Interface.a
  /C:/Development/shc-controls/SHCLib/C-Cpp/Cpp-ModelicaInterface/Build/Release/mingw64/libTSModel-Interface.lib
  /C:/Development/shc-controls/SHCLib/C-Cpp/Cpp-ModelicaInterface/Build/Release/win64/TSModel-Interface.dll
  /C:/Development/shc-controls/SHCLib/C-Cpp/Cpp-ModelicaInterface/Build/Release/win64/libTSModel-Interface.a
  /C:/Development/shc-controls/SHCLib/C-Cpp/Cpp-ModelicaInterface/Build/Release/win64/libTSModel-Interface.lib
  /C:/Development/shc-controls/SHCLib/C-Cpp/Cpp-ModelicaInterface/Build/Release/TSModel-Interface.dll
  /C:/Development/shc-controls/SHCLib/C-Cpp/Cpp-ModelicaInterface/Build/Release/libTSModel-Interface.a
  /C:/Development/shc-controls/SHCLib/C-Cpp/Cpp-ModelicaInterface/Build/Release/libTSModel-Interface.lib

[4] 18:58:16 Translation Warning
[SHCControls.TSModel: 21:5-30:19]: Could not find library TSModel-Interface in either of:
  /usr/lib//TSModel-Interface.dll
  /usr/lib//libTSModel-Interface.a
  /usr/lib//libTSModel-Interface.lib
  /lib//TSModel-Interface.dll
  /lib//libTSModel-Interface.a
  /lib//libTSModel-Interface.lib
  /usr/lib//TSModel-Interface.dll
  /usr/lib//libTSModel-Interface.a
  /usr/lib//libTSModel-Interface.lib
  /lib//TSModel-Interface.dll
  /lib//libTSModel-Interface.a
  /lib//libTSModel-Interface.lib
  C:/Program Files/OpenModelica1.14.1-64bit//lib//omc/TSModel-Interface.dll
  C:/Program Files/OpenModelica1.14.1-64bit//lib//omc/libTSModel-Interface.a
  C:/Program Files/OpenModelica1.14.1-64bit//lib//omc/libTSModel-Interface.lib
  C:/Program Files/OpenModelica1.14.1-64bit//lib//TSModel-Interface.dll
  C:/Program Files/OpenModelica1.14.1-64bit//lib//libTSModel-Interface.a
  C:/Program Files/OpenModelica1.14.1-64bit//lib//libTSModel-Interface.lib
  %APPDATA%/.openmodelica/binaries/SHCControls/TSModel-Interface.dll
  %APPDATA%/.openmodelica/binaries/SHCControls/libTSModel-Interface.a
  %APPDATA%/.openmodelica/binaries/SHCControls/libTSModel-Interface.lib
  /C:/Development/shc-controls/SHCLib/C-Cpp/Cpp-ModelicaInterface/Build/Release/mingw64/TSModel-Interface.dll
  /C:/Development/shc-controls/SHCLib/C-Cpp/Cpp-ModelicaInterface/Build/Release/mingw64/libTSModel-Interface.a
  /C:/Development/shc-controls/SHCLib/C-Cpp/Cpp-ModelicaInterface/Build/Release/mingw64/libTSModel-Interface.lib
  /C:/Development/shc-controls/SHCLib/C-Cpp/Cpp-ModelicaInterface/Build/Release/win64/TSModel-Interface.dll
  /C:/Development/shc-controls/SHCLib/C-Cpp/Cpp-ModelicaInterface/Build/Release/win64/libTSModel-Interface.a
  /C:/Development/shc-controls/SHCLib/C-Cpp/Cpp-ModelicaInterface/Build/Release/win64/libTSModel-Interface.lib
  /C:/Development/shc-controls/SHCLib/C-Cpp/Cpp-ModelicaInterface/Build/Release/TSModel-Interface.dll
  /C:/Development/shc-controls/SHCLib/C-Cpp/Cpp-ModelicaInterface/Build/Release/libTSModel-Interface.a
  /C:/Development/shc-controls/SHCLib/C-Cpp/Cpp-ModelicaInterface/Build/Release/libTSModel-Interface.lib

but the library path is indeed:

C:\Development\shc-controls\SHCLib\C-Cpp\Cpp-ModelicaInterface\Build\Release\win64\TSModel-Interface.dll

Moreover, some paths are printed with an extra slash at the beginning.

I do hope this is useful.

Anton

P.S. If needed, the Modelica side of the source code is:

within SHCControls;
package TSModel
  extends Modelica.Icons.TypesPackage;

  class TSModelHandle
    extends ExternalObject;
  
    function constructor "Gets an handle to a TSModel object loaded from file."
      extends Modelica.Icons.Function;
      
      input String fileName;
      input String modelName;
      output TSModelHandle tsmh;
      external "C" tsmh = initTSModel(fileName, modelName)
       annotation(
        Library="TSModel-Interface",
        LibraryDirectory="file:///C:/Development/shc-controls/SHCLib/C-Cpp/Cpp-ModelicaInterface/Build/Release");
                                //C:\\Development\\shc-controls\\SHCLib\\C-Cpp\\Cpp-ModelicaInterface\\Build\\Release
    end constructor;
  
    function destructor "Release storage of the TSModel object."
      extends Modelica.Icons.Function;
      
      input TSModelHandle tsmh;
      external "C" finalTSModel(tsmh)
       annotation(
        Library="TSModel-Interface",
        LibraryDirectory="file:///C:/Development/shc-controls/SHCLib/C-Cpp/Cpp-ModelicaInterface/Build/Release");
//      external "C" finalTSModel(tsmh) annotation(Library="TSModel-Interface"); // If not specified looks in the default dir Library/win64
    end destructor;
  end TSModelHandle;
  
  function tsmEval "Evaluate model at point u"
    extends Modelica.Icons.Function;
  
    input TSModelHandle tsmh;
    input Real u[:];
    output Real y[ysize];
    input Integer ysize;
    external "C" tsmEval(tsmh, u, size(u,1), y, size(y, 1)) annotation(Library="TSModel-Interface", LibraryDirectory="file:///Development/shc-controls/SHCLib/C-Cpp/Cpp-ModelicaInterface/Build/Release");
  end tsmEval;
  
  function invTsmEval "Evaluate inverse model at point y"
    extends Modelica.Icons.Function;
  
    input TSModelHandle tsmh;
    input Real u0[:];
    input Real y[:];
    output Real u[usize];
    input Integer usize;
    external "C" tsmEvalInv(tsmh, u0, size(u0,1), y, size(y,1), u, size(u,1)) annotation(Library="TSModel-Interface", LibraryDirectory="file:///Development/shc-controls/SHCLib/C-Cpp/Cpp-ModelicaInterface/Build/Release");
  end invTsmEval;
  
  model Test "Test of the TSModel package"
    
    TSModelHandle tsmh = TSModelHandle(fileName = "C:\\Development\\shc-controls\\SHCLib\\Python\\tests\\cannonau2x2.mat",
     modelName = "Cannonau"); // call initTSModel
    Real u[2] = {0.5, 50e3};
    Real y[2];
  equation
  
    y = tsmEval(tsmh, u, size(y,1));
  end Test;
end TSModel;


Change History (7)

comment:1 by Francesco Casella, 4 years ago

Two comments

  • would you mind retrying with the stable 1.16.0-dev.01 release?
  • is Cannonau model related to Sardinian winemaking?
Version 0, edited 4 years ago by Francesco Casella (next)

comment:2 by Anton.Soppelsa@eurac.edu, 4 years ago

Good morning!

  1. Please confirm I have to test with 1.16.0-dev.01: I noticed current "stable" development is dev.03;
  2. No, we used the name of the famous Sardinian wine as the codename of the project.

Cheers...

comment:3 by Francesco Casella, 4 years ago

Sorry, my mistake, dev.03 is fine

comment:4 by Anton.Soppelsa@eurac.edu, 4 years ago

I have just tested compilation with version 1.16.0-dev.03: same results (compilation works, uneeded warning are raised, software works).
These is the compilation log

C:/Program Files/OpenModelica1.16.0-dev.03-64bit/share/omc/scripts/Compile.bat SHCControls.TSModel.Test gcc mingw64 parallel 6 0
PATH = "C:\PROGRA~1\OPENMO~1.03-\tools\msys\mingw64\bin;C:\PROGRA~1\OPENMO~1.03-\tools\msys\mingw64\bin\..\..\usr\bin;"
mingw32-make: Entering directory 'C:/Users/ASOPPE~1/AppData/Local/Temp/OPENMO~1/OMEdit/SHCCON~1.TES'
gcc  -Os -falign-functions -fno-ipa-pure-const -mstackrealign -msse2 -mfpmath=sse     -I"C:/Program Files/OpenModelica1.16.0-dev.03-64bit/include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=SHCControls_TSModel_Test -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=0 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0  -c -o SHCControls.TSModel.Test.o SHCControls.TSModel.Test.c
gcc  -Os -falign-functions -fno-ipa-pure-const -mstackrealign -msse2 -mfpmath=sse     -I"C:/Program Files/OpenModelica1.16.0-dev.03-64bit/include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=SHCControls_TSModel_Test -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=0 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0  -c -o SHCControls.TSModel.Test_functions.o SHCControls.TSModel.Test_functions.c
gcc  -Os -falign-functions -fno-ipa-pure-const -mstackrealign -msse2 -mfpmath=sse     -I"C:/Program Files/OpenModelica1.16.0-dev.03-64bit/include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=SHCControls_TSModel_Test -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=0 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0  -c -o SHCControls.TSModel.Test_records.o SHCControls.TSModel.Test_records.c
gcc  -Os -falign-functions -fno-ipa-pure-const -mstackrealign -msse2 -mfpmath=sse     -I"C:/Program Files/OpenModelica1.16.0-dev.03-64bit/include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=SHCControls_TSModel_Test -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=0 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0  -c -o SHCControls.TSModel.Test_01exo.o SHCControls.TSModel.Test_01exo.c
gcc  -Os -falign-functions -fno-ipa-pure-const -mstackrealign -msse2 -mfpmath=sse     -I"C:/Program Files/OpenModelica1.16.0-dev.03-64bit/include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=SHCControls_TSModel_Test -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=0 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0  -c -o SHCControls.TSModel.Test_02nls.o SHCControls.TSModel.Test_02nls.c
gcc  -Os -falign-functions -fno-ipa-pure-const -mstackrealign -msse2 -mfpmath=sse     -I"C:/Program Files/OpenModelica1.16.0-dev.03-64bit/include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=SHCControls_TSModel_Test -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=0 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0  -c -o SHCControls.TSModel.Test_03lsy.o SHCControls.TSModel.Test_03lsy.c
gcc  -Os -falign-functions -fno-ipa-pure-const -mstackrealign -msse2 -mfpmath=sse     -I"C:/Program Files/OpenModelica1.16.0-dev.03-64bit/include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=SHCControls_TSModel_Test -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=0 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0  -c -o SHCControls.TSModel.Test_04set.o SHCControls.TSModel.Test_04set.c
gcc  -Os -falign-functions -fno-ipa-pure-const -mstackrealign -msse2 -mfpmath=sse     -I"C:/Program Files/OpenModelica1.16.0-dev.03-64bit/include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=SHCControls_TSModel_Test -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=0 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0  -c -o SHCControls.TSModel.Test_05evt.o SHCControls.TSModel.Test_05evt.c
gcc  -Os -falign-functions -fno-ipa-pure-const -mstackrealign -msse2 -mfpmath=sse     -I"C:/Program Files/OpenModelica1.16.0-dev.03-64bit/include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=SHCControls_TSModel_Test -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=0 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0  -c -o SHCControls.TSModel.Test_06inz.o SHCControls.TSModel.Test_06inz.c
gcc  -Os -falign-functions -fno-ipa-pure-const -mstackrealign -msse2 -mfpmath=sse     -I"C:/Program Files/OpenModelica1.16.0-dev.03-64bit/include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=SHCControls_TSModel_Test -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=0 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0  -c -o SHCControls.TSModel.Test_07dly.o SHCControls.TSModel.Test_07dly.c
gcc  -Os -falign-functions -fno-ipa-pure-const -mstackrealign -msse2 -mfpmath=sse     -I"C:/Program Files/OpenModelica1.16.0-dev.03-64bit/include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=SHCControls_TSModel_Test -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=0 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0  -c -o SHCControls.TSModel.Test_08bnd.o SHCControls.TSModel.Test_08bnd.c
gcc  -Os -falign-functions -fno-ipa-pure-const -mstackrealign -msse2 -mfpmath=sse     -I"C:/Program Files/OpenModelica1.16.0-dev.03-64bit/include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=SHCControls_TSModel_Test -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=0 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0  -c -o SHCControls.TSModel.Test_09alg.o SHCControls.TSModel.Test_09alg.c
gcc  -Os -falign-functions -fno-ipa-pure-const -mstackrealign -msse2 -mfpmath=sse     -I"C:/Program Files/OpenModelica1.16.0-dev.03-64bit/include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=SHCControls_TSModel_Test -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=0 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0  -c -o SHCControls.TSModel.Test_10asr.o SHCControls.TSModel.Test_10asr.c
gcc  -Os -falign-functions -fno-ipa-pure-const -mstackrealign -msse2 -mfpmath=sse     -I"C:/Program Files/OpenModelica1.16.0-dev.03-64bit/include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=SHCControls_TSModel_Test -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=0 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0  -c -o SHCControls.TSModel.Test_11mix.o SHCControls.TSModel.Test_11mix.c
gcc  -Os -falign-functions -fno-ipa-pure-const -mstackrealign -msse2 -mfpmath=sse     -I"C:/Program Files/OpenModelica1.16.0-dev.03-64bit/include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=SHCControls_TSModel_Test -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=0 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0  -c -o SHCControls.TSModel.Test_12jac.o SHCControls.TSModel.Test_12jac.c
gcc  -Os -falign-functions -fno-ipa-pure-const -mstackrealign -msse2 -mfpmath=sse     -I"C:/Program Files/OpenModelica1.16.0-dev.03-64bit/include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=SHCControls_TSModel_Test -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=0 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0  -c -o SHCControls.TSModel.Test_13opt.o SHCControls.TSModel.Test_13opt.c
gcc  -Os -falign-functions -fno-ipa-pure-const -mstackrealign -msse2 -mfpmath=sse     -I"C:/Program Files/OpenModelica1.16.0-dev.03-64bit/include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=SHCControls_TSModel_Test -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=0 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0  -c -o SHCControls.TSModel.Test_14lnz.o SHCControls.TSModel.Test_14lnz.c
gcc  -Os -falign-functions -fno-ipa-pure-const -mstackrealign -msse2 -mfpmath=sse     -I"C:/Program Files/OpenModelica1.16.0-dev.03-64bit/include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=SHCControls_TSModel_Test -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=0 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0  -c -o SHCControls.TSModel.Test_15syn.o SHCControls.TSModel.Test_15syn.c
gcc  -Os -falign-functions -fno-ipa-pure-const -mstackrealign -msse2 -mfpmath=sse     -I"C:/Program Files/OpenModelica1.16.0-dev.03-64bit/include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=SHCControls_TSModel_Test -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=0 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0  -c -o SHCControls.TSModel.Test_16dae.o SHCControls.TSModel.Test_16dae.c
gcc  -Os -falign-functions -fno-ipa-pure-const -mstackrealign -msse2 -mfpmath=sse     -I"C:/Program Files/OpenModelica1.16.0-dev.03-64bit/include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=SHCControls_TSModel_Test -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=0 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0  -c -o SHCControls.TSModel.Test_17inl.o SHCControls.TSModel.Test_17inl.c
gcc -I. -o SHCControls.TSModel.Test.exe SHCControls.TSModel.Test.o SHCControls.TSModel.Test_functions.o SHCControls.TSModel.Test_records.o SHCControls.TSModel.Test_01exo.o SHCControls.TSModel.Test_02nls.o SHCControls.TSModel.Test_03lsy.o SHCControls.TSModel.Test_04set.o SHCControls.TSModel.Test_05evt.o SHCControls.TSModel.Test_06inz.o SHCControls.TSModel.Test_07dly.o SHCControls.TSModel.Test_08bnd.o SHCControls.TSModel.Test_09alg.o SHCControls.TSModel.Test_10asr.o SHCControls.TSModel.Test_11mix.o SHCControls.TSModel.Test_12jac.o SHCControls.TSModel.Test_13opt.o SHCControls.TSModel.Test_14lnz.o SHCControls.TSModel.Test_15syn.o SHCControls.TSModel.Test_16dae.o SHCControls.TSModel.Test_17inl.o -I"C:/Program Files/OpenModelica1.16.0-dev.03-64bit/include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=SHCControls_TSModel_Test -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=0 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -L"C:/Development/shc-controls/SHCLib/Modelica/SHCControls"  "-LC:/Program Files/OpenModelica1.16.0-dev.03-64bit/lib//omc" "-LC:/Program Files/OpenModelica1.16.0-dev.03-64bit/lib/" "-LC:/Users/asoppelsa/AppData/Roaming/.openmodelica/binaries/SHCControls" "-L/C:/Development/shc-controls/SHCLib/C-Cpp/Cpp-ModelicaInterface/Build/Release/mingw64" "-L/C:/Development/shc-controls/SHCLib/C-Cpp/Cpp-ModelicaInterface/Build/Release/win64" "-L/C:/Development/shc-controls/SHCLib/C-Cpp/Cpp-ModelicaInterface/Build/Release" -lTSModel-Interface "-L/Development/shc-controls/SHCLib/C-Cpp/Cpp-ModelicaInterface/Build/Release/mingw64" "-L/Development/shc-controls/SHCLib/C-Cpp/Cpp-ModelicaInterface/Build/Release/win64" "-L/Development/shc-controls/SHCLib/C-Cpp/Cpp-ModelicaInterface/Build/Release"  -Os -falign-functions -fno-ipa-pure-const -mstackrealign -msse2 -mfpmath=sse     -I"C:/Program Files/OpenModelica1.16.0-dev.03-64bit/include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=SHCControls_TSModel_Test -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=0 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -L"C:/Program Files/OpenModelica1.16.0-dev.03-64bit/lib//omc" -L"C:/Program Files/OpenModelica1.16.0-dev.03-64bit/lib" -Wl,--stack,16777216,-rpath,"C:/Program Files/OpenModelica1.16.0-dev.03-64bit/lib//omc" -Wl,-rpath,"C:/Program Files/OpenModelica1.16.0-dev.03-64bit/lib"   -fopenmp -Wl,-Bstatic -lregex -ltre -lintl -liconv -lexpat -lomcgc -lpthread -loleaut32 -limagehlp -lhdf5 -lz -lszip -Wl,-Bdynamic  -Wl,-Bstatic -lSimulationRuntimeC -Wl,-Bdynamic -Wl,-Bstatic -lomcgc -lregex -ltre -lintl -liconv -lexpat -static-libgcc -luuid -loleaut32 -lole32 -limagehlp -lws2_32 -llis -lumfpack -lklu -lcolamd -lbtf -lamd  -lsundials_idas -lsundials_cvodes -lsundials_kinsol -lsundials_nvecserial -lipopt -lcoinmumps -lpthread -lm -lgfortranbegin -lgfortran -lquadmath -lmingw32 -lgcc_eh -lmoldname -lmingwex -lmsvcrt -luser32 -lkernel32 -ladvapi32 -lshell32 -lopenblas -lcminpack -Wl,-Bdynamic -lwsock32 -Wl,-Bstatic -lstdc++ -Wl,-Bdynamic 
mingw32-make: Leaving directory 'C:/Users/ASOPPE~1/AppData/Local/Temp/OPENMO~1/OMEdit/SHCCON~1.TES'
Compilation process finished successfully.

This is the error/warning log:

[1] 08:54:34 Translation Warning
[SHCControls.TSModel: 8:5-19:20]: Could not find library TSModel-Interface in either of:
  /usr/lib//TSModel-Interface.dll
  /usr/lib//libTSModel-Interface.a
  /usr/lib//libTSModel-Interface.lib
  /lib//TSModel-Interface.dll
  /lib//libTSModel-Interface.a
  /lib//libTSModel-Interface.lib
  /usr/lib//TSModel-Interface.dll
  /usr/lib//libTSModel-Interface.a
  /usr/lib//libTSModel-Interface.lib
  /lib//TSModel-Interface.dll
  /lib//libTSModel-Interface.a
  /lib//libTSModel-Interface.lib
  C:/Program Files/OpenModelica1.16.0-dev.03-64bit/lib//omc/TSModel-Interface.dll
  C:/Program Files/OpenModelica1.16.0-dev.03-64bit/lib//omc/libTSModel-Interface.a
  C:/Program Files/OpenModelica1.16.0-dev.03-64bit/lib//omc/libTSModel-Interface.lib
  C:/Program Files/OpenModelica1.16.0-dev.03-64bit/lib//TSModel-Interface.dll
  C:/Program Files/OpenModelica1.16.0-dev.03-64bit/lib//libTSModel-Interface.a
  C:/Program Files/OpenModelica1.16.0-dev.03-64bit/lib//libTSModel-Interface.lib
  C:/Users/asoppelsa/AppData/Roaming/.openmodelica/binaries/SHCControls/TSModel-Interface.dll
  C:/Users/asoppelsa/AppData/Roaming/.openmodelica/binaries/SHCControls/libTSModel-Interface.a
  C:/Users/asoppelsa/AppData/Roaming/.openmodelica/binaries/SHCControls/libTSModel-Interface.lib
  /C:/Development/shc-controls/SHCLib/C-Cpp/Cpp-ModelicaInterface/Build/Release/mingw64/TSModel-Interface.dll
  /C:/Development/shc-controls/SHCLib/C-Cpp/Cpp-ModelicaInterface/Build/Release/mingw64/libTSModel-Interface.a
  /C:/Development/shc-controls/SHCLib/C-Cpp/Cpp-ModelicaInterface/Build/Release/mingw64/libTSModel-Interface.lib
  /C:/Development/shc-controls/SHCLib/C-Cpp/Cpp-ModelicaInterface/Build/Release/win64/TSModel-Interface.dll
  /C:/Development/shc-controls/SHCLib/C-Cpp/Cpp-ModelicaInterface/Build/Release/win64/libTSModel-Interface.a
  /C:/Development/shc-controls/SHCLib/C-Cpp/Cpp-ModelicaInterface/Build/Release/win64/libTSModel-Interface.lib
  /C:/Development/shc-controls/SHCLib/C-Cpp/Cpp-ModelicaInterface/Build/Release/TSModel-Interface.dll
  /C:/Development/shc-controls/SHCLib/C-Cpp/Cpp-ModelicaInterface/Build/Release/libTSModel-Interface.a
  /C:/Development/shc-controls/SHCLib/C-Cpp/Cpp-ModelicaInterface/Build/Release/libTSModel-Interface.lib

[2] 08:54:34 Translation Warning
[SHCControls.TSModel: 21:5-30:19]: Could not find library TSModel-Interface in either of:
  /usr/lib//TSModel-Interface.dll
  /usr/lib//libTSModel-Interface.a
  /usr/lib//libTSModel-Interface.lib
  /lib//TSModel-Interface.dll
  /lib//libTSModel-Interface.a
  /lib//libTSModel-Interface.lib
  /usr/lib//TSModel-Interface.dll
  /usr/lib//libTSModel-Interface.a
  /usr/lib//libTSModel-Interface.lib
  /lib//TSModel-Interface.dll
  /lib//libTSModel-Interface.a
  /lib//libTSModel-Interface.lib
  C:/Program Files/OpenModelica1.16.0-dev.03-64bit/lib//omc/TSModel-Interface.dll
  C:/Program Files/OpenModelica1.16.0-dev.03-64bit/lib//omc/libTSModel-Interface.a
  C:/Program Files/OpenModelica1.16.0-dev.03-64bit/lib//omc/libTSModel-Interface.lib
  C:/Program Files/OpenModelica1.16.0-dev.03-64bit/lib//TSModel-Interface.dll
  C:/Program Files/OpenModelica1.16.0-dev.03-64bit/lib//libTSModel-Interface.a
  C:/Program Files/OpenModelica1.16.0-dev.03-64bit/lib//libTSModel-Interface.lib
  C:/Users/asoppelsa/AppData/Roaming/.openmodelica/binaries/SHCControls/TSModel-Interface.dll
  C:/Users/asoppelsa/AppData/Roaming/.openmodelica/binaries/SHCControls/libTSModel-Interface.a
  C:/Users/asoppelsa/AppData/Roaming/.openmodelica/binaries/SHCControls/libTSModel-Interface.lib
  /C:/Development/shc-controls/SHCLib/C-Cpp/Cpp-ModelicaInterface/Build/Release/mingw64/TSModel-Interface.dll
  /C:/Development/shc-controls/SHCLib/C-Cpp/Cpp-ModelicaInterface/Build/Release/mingw64/libTSModel-Interface.a
  /C:/Development/shc-controls/SHCLib/C-Cpp/Cpp-ModelicaInterface/Build/Release/mingw64/libTSModel-Interface.lib
  /C:/Development/shc-controls/SHCLib/C-Cpp/Cpp-ModelicaInterface/Build/Release/win64/TSModel-Interface.dll
  /C:/Development/shc-controls/SHCLib/C-Cpp/Cpp-ModelicaInterface/Build/Release/win64/libTSModel-Interface.a
  /C:/Development/shc-controls/SHCLib/C-Cpp/Cpp-ModelicaInterface/Build/Release/win64/libTSModel-Interface.lib
  /C:/Development/shc-controls/SHCLib/C-Cpp/Cpp-ModelicaInterface/Build/Release/TSModel-Interface.dll
  /C:/Development/shc-controls/SHCLib/C-Cpp/Cpp-ModelicaInterface/Build/Release/libTSModel-Interface.a
  /C:/Development/shc-controls/SHCLib/C-Cpp/Cpp-ModelicaInterface/Build/Release/libTSModel-Interface.lib

Hope this hepls.

Saluti!

comment:5 by Francesco Casella, 4 years ago

Cc: Mahder Alemseged Gebremedhin added
Milestone: Future1.17.0
Owner: changed from Mahder Alemseged Gebremedhin to Adrian Pop
Priority: normalhigh
Status: newassigned
Version: v1.14.1v1.16.0-dev

@adrpo will look at this ASAP.

Please come back to us mid-September if this is not fixed yet.

@mahge930, you may also have a look, if you want

comment:6 by Francesco Casella, 4 years ago

Milestone: 1.17.01.18.0

Retargeted to 1.18.0 because of 1.17.0 timed release.

comment:7 by Francesco Casella, 3 years ago

Milestone: 1.18.0

Ticket retargeted after milestone closed

Note: See TracTickets for help on using tickets.