Error in parsing BaseModelica model

I have been trying to parse a model to ModelingToolkit using the parse_basemodelica function, available in Basemodelica.jl. But encounters the following error:

"Error during FSM execution at buffer position 19. Last 19 byte(s) were:“package ‘First’\n t"Observed input: ‘t’ at state 14. Outgoing edges: * ’ ’ * 'm’Input is not in any outgoing edge, and machine therefore errored.”

Here is my basemodelica model ‘First.mo’, as available in the following link,
BaseModelica

I have already given EOL conversion to Unix Style but still nothing works…
Can I get some assistance to troubleshoot the above error and parse my model?
Thanks in advance!

Jadon has a new branch of the BaseModelica parser someone, let’s try that.

I don’t CC him but I’ll get him on this thread so we can keep this going.

The current version of BaseModelica.jl doesn’t support creating custom types yet, which is the source of the parsing error. I’m currently working on adding support for all language constructs, but it’s still a work in progress. I have a branch that greatly improves the parser here GitHub - jClugstor/BaseModelica.jl at parser_improvements but it’s not ready yet. Hopefully it will be ready in the next couple of months.

Really thankful for your responses!