Archived OpenModelica forums. Posting is disabled.

Alternative forums include GitHub discussions or StackOverflow (make sure to read the Stack Overflow rules; you need to have well-formed questions)


Forgot password? | Forgot username? | Register
  • Index
  • » Users
  • » adriaanph
  • » Profile

Posts

Posts

Apr-17-12 15:46:41
omc balks because encoding of generated files are not UTF-8
Category: Developer

yes, and that does not seem to have any effect on the files generated by ModelicaML.

Apr-17-12 14:20:01
omc balks because encoding of generated files are not UTF-8
Category: Developer

after installing OpenModelica 1.8.1 r11643 the compiler suddenly started refusing to load the code generated by ModelicaML (i am using 1.8.8). the model execution report contains
<error_report>
Simulation failed for:
                  - MModel.Design.Test

************************** LOG ************************
checkModel: "Unknown model in checkModel: MModel.Design.Test
"

ErrorString: ""
</error_report>

the problem seems to be that the files generated by my ModelicaML are in "Cp1252" encoding (can that be changed through eclipse's configuration interface?) and the omc has recently been modified to enforce the Modelica specification that files must be UTF-8.

my workaround solution is to create a file <eclipse_project_root>\<model_name>\code-gen\package.encoding by hand, which simply contains the text "Cp1252".

i noticed that the latest nightly build of OpenModelica now only issues warnings if the encoding is wrong. however, i believe in the long run ModelicaML should implement a solution, whether that involves generating a package.encoding file, or perhaps by forcing the encoding to be UTF-8.

Apr-17-12 13:23:16
org.openmodelica.simulation.environment 0.6.4 not available?
Category: Developer

thanks - it worked (as does 1.8.8, too).

Mar-11-12 02:28:18
org.openmodelica.simulation.environment 0.6.4 not available?
Category: Developer

thanks, wladimir

i've only now tried the new release. it worked out-of-the-box, but with limited simulation capabilities. for the record:
1) installed openmodelica 1.8.1
2) installed eclipse-indigo, xtext 2, acceleo 2.8, papyrus 0.8.2, MDT 0.7.22, ModelicaML 1.8.6

when asked to compile with OMC there was no response. i dug around a bit and found an issue and solution in Compile.bat. see http://www.openmodelica.org/index.php/f … ic?id=553. now i'm able to simulate from within eclipse, but with very limited capabilities. i look forward to future releases!

Mar-11-12 02:19:37
papyrus 0.7.4 no longer available for download
Category: Developer

note: discussion about new release continues at http://openmodelica.org/index.php/forum … =511#p1995

Mar-11-12 02:16:24
Suggested changes / fixes

this topic is intended to summarize all proposed changes to OpenModelica1.8.1\share\omc\scripts\Compile.bat as it keeps being discovered. hopefully these changes will be incorporated in the next release of openmodelica!


"gcc not recognized"
---------------------------
see original posting at http://www.openmodelica.org/index.php/f … pic?id=437

change the following line
   set MINGW=%OPENMODELICAHOME%\MinGW
to
   set MINGW=%OPENMODELICAHOME:"=%\MinGW
   set MINGW=%MINGW:/=\%


ModelicaML 1.8.6 does nothing when asked to "Simulate with OMC"
---------------------------------------------------------------------------------------------
change the following line
   set CURRENT_DIR="%CD%">%1.log 2>&1
to
   set CURRENT_DIR=%CD%>%1.log 2>&1

Feb-03-12 17:19:30
papyrus 0.7.4 no longer available for download
Category: Developer

yves

see my posting at http://openmodelica.org/index.php/forum … =511#p1951


regards

adriaan peens-hough

Feb-03-12 10:53:16
org.openmodelica.simulation.environment 0.6.4 not available?
Category: Developer

from http://openmodelica.org/index.php/forum … =512#p1949

wladimir wrote:

There is a new build of ModelicaML for Papyrus 0.7.4. In addition we put a .zip with the full eclipse for windows here: http://www.ida.liu.se/~pelab/modelica/O … /software/
Wladimir

now ModelicaML 1.8.4 installs correctly on my out-of-the-box eclipse helios SR2, but i see that a few commands have been temporarily disabled, most notably
1) validate
2) simulate

the eclipse error log entries are





however, when i download and unzip the bundled version of eclipse that was made available by wladimir, everything works okay. oh well,  i'll use that for now and try again when there's a new release.

Feb-03-12 10:17:23
papyrus 0.7.4 no longer available for download
Category: Developer

wladimir

thanks for this - it's now installable (including all dependencies). when i saw the thesis proposal to re-implement ModelicaML for papyrus 1.x, i realized it wasn't an easy exercise. well, i'm look forward to a bright future.


regards

adriaan peens-hough

Feb-02-12 13:04:41
papyrus 0.7.4 no longer available for download
Category: Developer

it is worth mentioning that this is the topic of a newly proposed master's thesis - http://www.openmodelica.org/index.php/h … apyrus-mdt .

Feb-02-12 12:44:56
papyrus 0.7.4 no longer available for download
Category: Developer

please note that the papyrus team have made release 0.7.4 available again. see http://www.eclipse.org/forums/index.php … msg_788805

Feb-01-12 10:51:36
gcc either cannot be found, or paths are not resolvable for 1.8.0
Category: Developer

craig

see http://www.openmodelica.org/index.php/f … pic?id=437 (currently the last message in thread) for the solution to this problem. i see the batch script has not yet been fixed in the 1.8.1-beta.


adriaan

Jan-31-12 22:36:16
org.openmodelica.simulation.environment 0.6.4 not available?
Category: Developer

is there any way to obtain an older release of ModelicaML (e.g. 1.8.2)?

Jan-31-12 22:25:19
papyrus 0.7.4 no longer available for download
Category: Developer

... or would it be easier to downgrade to 0.7.3 (which is still available)?

Jan-31-12 10:27:52
papyrus 0.7.4 no longer available for download
Category: Developer

papyrus 0.7.4 has disappeared from the eclipse update sites - see http://www.eclipse.org/forums/index.php/t/281853. i haven't been able to find any remaining on the internet (waiting for response on papyrus forum, or is there anybody on this forum who can help?). this raises two issues:
1) ModelicaML should not be dependent on nightly builds of other projects
2) ModelicaML must be upgraded urgently to an official release of papyrus, probably 0.8.2 (stable build)

Jan-31-12 10:22:05
org.openmodelica.simulation.environment 0.6.4 not available?
Category: Developer

yves

yes, your problem is that you have papyrus 0.7.3 and not 0.7.3. if you could get 0.7.4 installed (which you can't anymore, it's been completely erased from the internet -- http://www.eclipse.org/forums/index.php/t/281853/) you should get the same error as i did.

this issue highlights the importance of upgrading the ModelicaML suite to papyrus 0.8.0 or later.

adriaan

Jan-30-12 18:01:48
org.openmodelica.simulation.environment 0.6.4 not available?
Category: Developer

i have just tried to install the mentioned release, but couldn't because org.openmodelica.simulation.environment 0.6.4 can't be found? below is the error message:

Cannot complete the install because one or more required items could not be found.
  Software being installed: ModelicaML - Papyrus Customization, Modelica Code Generation, Simulation with OMC 1.8.4.201201271554 (org.openmodelica.modelicaml.feature.feature.group 1.8.4.201201271554)
  Missing requirement: ModelicaML Simulation 1.0.0.201201271554 (org.openmodelica.modelicaml.simulation 1.0.0.201201271554) requires 'bundle org.openmodelica.simulation.environment 0.6.4' but it could not be found
  Cannot satisfy dependency:
    From: ModelicaML - Papyrus Customization, Modelica Code Generation, Simulation with OMC 1.8.4.201201271554 (org.openmodelica.modelicaml.feature.feature.group 1.8.4.201201271554)
    To: org.openmodelica.modelicaml.view.componentstree [1.1.12.201201271554]
  Cannot satisfy dependency:
    From: ModelicaML Class Components Tree 1.1.12.201201271554 (org.openmodelica.modelicaml.view.componentstree 1.1.12.201201271554)
    To: bundle org.openmodelica.modelicaml.simulation 1.0.0

i've been having the same issue with 1.8.0 on win xp. i believe the problem is as suggested above (forward slashes instead of back), but also with quotation marks inserted automatically by the operating system into the path. the following output from Compile.bat:

   MINGW = "C:/ProgramFiles/OpenModelica1.8.0/"\MinGW

i've fixed it for me by simply changing the following in the vanilla Compile.bat (created during the installation process)

   set MINGW=%OPENMODELICAHOME%\MinGW

to

   set MINGW=%OPENMODELICAHOME:"=%\MinGW
   set MINGW=%MINGW:/=\%


i don't believe it has anything to do with multiple installations of mingw (although i do have that).

  • Index
  • » Users
  • » adriaanph
  • » Profile
You are here: