Opened 10 years ago

Closed 10 years ago

Last modified 7 years ago

#3190 closed defect (fixed)

ParModelica fails to build ModelicaBuiltin.mo

Reported by: gustaf Owned by: mahge930
Priority: high Milestone: 1.9.4
Component: ParModelica Version: trunk
Keywords: ParModelica Cc:

Description

Trying to build a tiny example like

class null
end null;

kind of fails when trying to use ParModelica

$ omc -g=ParModelica null.mo
Error processing file: null.mo
[/home/gustaf/local/openmodelica/lib/omc/ModelicaBuiltin.mo:49:1-49:7:writable] Error: Parser error: Unexpected token near: impure (IDENT)
Error: Internal error Builtin.getInitialFunctions failed.
Error: Error occurred while flattening model null

# Error encountered! Exiting...
# Please check the error message and the flags.

Execution failed!

$ omc --version
1.9.2+dev (r24700)

Change History (8)

comment:1 Changed 10 years ago by mahge930

  • Owner changed from somebody to mahge930
  • Status changed from new to accepted

comment:2 Changed 10 years ago by gustaf

  • Component changed from Unknown to Frontend

comment:3 Changed 10 years ago by mahge930

  • Resolution set to fixed
  • Status changed from accepted to closed

Fixed in revision r24931. Good luck :)

comment:4 Changed 10 years ago by adrpo

You could add a small test for it so that we don't break it again.

comment:5 Changed 10 years ago by mahge930

There are a lot of tests that need to be added for ParModelica. Specially now that someone is actively using it. I think more things might have been broken. I will have a look and see if I can get back to fully working state soon. In the meantime let me know when you have specific issues like this.

comment:6 Changed 10 years ago by gustaf

  • Component changed from Frontend to ParModelica

comment:7 Changed 9 years ago by dietmarw

  • Milestone changed from Future to pre1.9.4

It doesn't make sense to keep closed ticket in the "Future" milestone that were simply forgotten to assign to the correct milestone in the past.

comment:8 Changed 7 years ago by sjoelund.se

  • Milestone changed from pre1.9.4 to 1.9.4

Removing the pre1.9.4 milestone in favor of 1.9.4.

Note: See TracTickets for help on using tickets.