Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#2071 closed defect (worksforme)

Template error: ExpressionDumpTpl.dumpExp: Unknown expression.

Reported by: Christian Schubert Owned by: Martin Sjölund
Priority: high Milestone: 1.9.0
Component: Code Generation Version: trunk
Keywords: Template Unknown expression Cc: Adrian Pop, Jens Frenkel, Martin Sjölund

Description

Hi,

our very simple model of a Pendulum does not work with the current trunk (r15241) anymore, because of

[lib/omlibrary/Modelica 3.2.1/Mechanics/MultiBody/Parts.mo:1470:5-1473:72:writable] Error: Template error: Unknown operation
[lib/omlibrary/Modelica 3.2.1/Mechanics/MultiBody/Interfaces.mo:14:5-21:19:writable] Error: Template error: Unknown operation
[lib/omlibrary/Modelica 3.2.1/Mechanics/MultiBody/Parts.mo:1470:5-1473:72:writable] Error: Template error: Unknown operation
[lib/omlibrary/Modelica 3.2.1/Mechanics/MultiBody/Interfaces.mo:14:5-21:19:writable] Error: Template error: Unknown operation
[lib/omlibrary/Modelica 3.2.1/Mechanics/MultiBody/Parts.mo:1474:5-1476:72:writable] Error: Template error: Unknown operation
[lib/omlibrary/Modelica 3.2.1/Mechanics/MultiBody/Parts.mo:1470:5-1473:72:writable] Error: Template error: Unknown operation
[lib/omlibrary/Modelica 3.2.1/Mechanics/MultiBody/Interfaces.mo:14:5-21:19:writable] Error: Template error: Unknown operation
[lib/omlibrary/Modelica 3.2.1/Mechanics/MultiBody/Parts.mo:1474:5-1476:72:writable] Error: Template error: Unknown operation
[lib/omlibrary/Modelica 3.2.1/Mechanics/MultiBody/Interfaces.mo:14:5-21:19:writable] Error: Template error: Unknown operation
[lib/omlibrary/Modelica 3.2.1/Mechanics/MultiBody/Parts.mo:1474:5-1476:72:writable] Error: Template error: Unknown operation
[lib/omlibrary/Modelica 3.2.1/Mechanics/MultiBody/Interfaces.mo:14:5-21:19:writable] Error: Template error: Unknown operation
[lib/omlibrary/Modelica 3.2.1/Mechanics/MultiBody/Parts.mo:673:5-677:65:writable] Error: Template error: Unknown operation
[lib/omlibrary/Modelica 3.2.1/Mechanics/MultiBody/Parts.mo:678:5-679:69:writable] Error: Template error: Unknown operation
[lib/omlibrary/Modelica 3.2.1/Mechanics/MultiBody/Parts.mo:673:5-677:65:writable] Error: Template error: Unknown operation
[lib/omlibrary/Modelica 3.2.1/Mechanics/MultiBody/Parts.mo:678:5-679:69:writable] Error: Template error: Unknown operation
[lib/omlibrary/Modelica 3.2.1/Mechanics/MultiBody/Parts.mo:673:5-677:65:writable] Error: Template error: Unknown operation
[lib/omlibrary/Modelica 3.2.1/Mechanics/MultiBody/Parts.mo:678:5-679:69:writable] Error: Template error: Unknown operation
[lib/omlibrary/Modelica 3.2.1/Mechanics/MultiBody/Parts.mo:673:5-677:65:writable] Error: Template error: Unknown operation
[lib/omlibrary/Modelica 3.2.1/Mechanics/MultiBody/Parts.mo:678:5-679:69:writable] Error: Template error: Unknown operation
[lib/omlibrary/Modelica 3.2.1/Mechanics/MultiBody/Parts.mo:673:5-677:65:writable] Error: Template error: Unknown operation
[lib/omlibrary/Modelica 3.2.1/Mechanics/MultiBody/Parts.mo:678:5-679:69:writable] Error: Template error: Unknown operation
[lib/omlibrary/Modelica 3.2.1/Mechanics/MultiBody/Parts.mo:673:5-677:65:writable] Error: Template error: Unknown operation
[lib/omlibrary/Modelica 3.2.1/Mechanics/MultiBody/Parts.mo:678:5-679:69:writable] Error: Template error: Unknown operation
[lib/omlibrary/Modelica 3.2.1/Mechanics/MultiBody/Parts.mo:673:5-677:65:writable] Error: Template error: Unknown operation
[lib/omlibrary/Modelica 3.2.1/Mechanics/MultiBody/Parts.mo:678:5-679:69:writable] Error: Template error: Unknown operation
[lib/omlibrary/Modelica 3.2.1/Mechanics/MultiBody/Parts.mo:673:5-677:65:writable] Error: Template error: Unknown operation
[lib/omlibrary/Modelica 3.2.1/Mechanics/MultiBody/Parts.mo:678:5-679:69:writable] Error: Template error: Unknown operation
[lib/omlibrary/Modelica 3.2.1/Mechanics/MultiBody/Parts.mo:673:5-677:65:writable] Error: Template error: Unknown operation
[lib/omlibrary/Modelica 3.2.1/Mechanics/MultiBody/Parts.mo:678:5-679:69:writable] Error: Template error: Unknown operation
[lib/omlibrary/Modelica 3.2.1/Mechanics/MultiBody/Parts.mo:673:5-677:65:writable] Error: Template error: Unknown operation
[lib/omlibrary/Modelica 3.2.1/Mechanics/MultiBody/Parts.mo:678:5-679:69:writable] Error: Template error: Unknown operation
[lib/omlibrary/Modelica 3.2.1/Mechanics/MultiBody/Frames.mo:10:5-10:73:writable] Error: Template error: Unknown operation
Error: Template error: ExpressionDumpTpl.dumpExp: Unknown expression.
Error: Template error: A template call failed (a call with 1 parameter). One possible reason could be that a template imported function call failed (which should not happen for functions called from within template code; templates preserve pure 'match'/non-failing semantics).}}}

You'll find the needed files to reproduce this problem attached.

Attachments (2)

Pendulum.mo (7.3 KB ) - added by Christian Schubert 12 years ago.
Pendulum_10.mos (330 bytes ) - added by Christian Schubert 12 years ago.

Download all attachments as: .zip

Change History (4)

by Christian Schubert, 12 years ago

Attachment: Pendulum.mo added

by Christian Schubert, 12 years ago

Attachment: Pendulum_10.mos added

comment:1 by Martin Sjölund, 12 years ago

Resolution: worksforme
Status: newclosed

Do make clean or checkout a clean trunk and you'll see that it actually works.

comment:2 by Christian Schubert, 12 years ago

make clean and a rebuild did the trick. Thank you very much.

Note: See TracTickets for help on using tickets.