Opened 12 years ago

Closed 11 years ago

#1997 closed defect (fixed)

code generation fails with symbolic initialization

Reported by: cschubert Owned by: jfrenkel
Priority: high Milestone: 1.9.0
Component: Backend Version: trunk
Keywords: code generation symbolic initialization Cc: jfrenkel

Description

when running the model

Modelica.Blocks.Examples.ShowLogicalSources

with +d=solveinitialsystem compilation fails due to

Error: Error building simulator. Buildlog: gcc   -falign-functions -msse2 -mfpmath=sse   -I\"C:/OpenModelica1.9.0//include/omc\" -I.    -c -o Modelica.Blocks.Examples.ShowLogicalSources.o Modelica.Blocks.Examples.ShowLogicalSources.c
In file included from Modelica.Blocks.Examples.ShowLogicalSources.c:15:
_Modelica.Blocks.Examples.ShowLogicalSources.h:35:1: warning: \"_$Ptable$PnextTime\" redefined
_Modelica.Blocks.Examples.ShowLogicalSources.h:21:1: warning: this is the location of the previous definition
_Modelica.Blocks.Examples.ShowLogicalSources.h:37:1: warning: \"$P$PRE$Ptable$PnextTime\" redefined
_Modelica.Blocks.Examples.ShowLogicalSources.h:23:1: warning: this is the location of the previous definition
_Modelica.Blocks.Examples.ShowLogicalSources.h:38:1: warning: \"$P$ATTRIBUTE$Ptable$PnextTime\" redefined
_Modelica.Blocks.Examples.ShowLogicalSources.h:24:1: warning: this is the location of the previous definition
_Modelica.Blocks.Examples.ShowLogicalSources.h:39:1: warning: \"$Ptable$PnextTime__varInfo\" redefined
_Modelica.Blocks.Examples.ShowLogicalSources.h:25:1: warning: this is the location of the previous definition
_Modelica.Blocks.Examples.ShowLogicalSources.h:40:1: warning: \"$P$PRE$Ptable$PnextTime__varInfo\" redefined
_Modelica.Blocks.Examples.ShowLogicalSources.h:26:1: warning: this is the location of the previous definition
_Modelica.Blocks.Examples.ShowLogicalSources.h:41:1: warning: \"_$Ppulse$PpulsStart\" redefined
_Modelica.Blocks.Examples.ShowLogicalSources.h:27:1: warning: this is the location of the previous definition
_Modelica.Blocks.Examples.ShowLogicalSources.h:43:1: warning: \"$P$PRE$Ppulse$PpulsStart\" redefined
_Modelica.Blocks.Examples.ShowLogicalSources.h:29:1: warning: this is the location of the previous definition
_Modelica.Blocks.Examples.ShowLogicalSources.h:44:1: warning: \"$P$ATTRIBUTE$Ppulse$PpulsStart\" redefined
_Modelica.Blocks.Examples.ShowLogicalSources.h:30:1: warning: this is the location of the previous definition
_Modelica.Blocks.Examples.ShowLogicalSources.h:45:1: warning: \"$Ppulse$PpulsStart__varInfo\" redefined
_Modelica.Blocks.Examples.ShowLogicalSources.h:31:1: warning: this is the location of the previous definition
_Modelica.Blocks.Examples.ShowLogicalSources.h:46:1: warning: \"$P$PRE$Ppulse$PpulsStart__varInfo\" redefined
_Modelica.Blocks.Examples.ShowLogicalSources.h:32:1: warning: this is the location of the previous definition
Modelica.Blocks.Examples.ShowLogicalSources.c: In function 'eqFunction_7':
Modelica.Blocks.Examples.ShowLogicalSources.c:335: error: incompatible type for argument 1 of 'sample'
C:/OpenModelica1.9.0//include/omc/events.h:46: note: expected 'struct DATA *' but argument is of type 'modelica_real'
Modelica.Blocks.Examples.ShowLogicalSources.c:335: error: too few arguments to function 'sample'
mingw32-make: *** [Modelica.Blocks.Examples.ShowLogicalSources.o] Error 1

Change History (3)

comment:1 Changed 12 years ago by jfrenkel

  • Owner changed from lochel to anonymous
  • Status changed from new to accepted
  • it looks like sample(e1,e2) is not replaced to sample(e1,e2,e3) and code generation fails because there is no case for sample with two arguments

comment:2 Changed 12 years ago by anonymous

  • Owner changed from anonymous to jfrenkel
  • Status changed from accepted to assigned

comment:3 Changed 11 years ago by lochel

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

works now

Note: See TracTickets for help on using tickets.