openmodelicainterest  

Problems with StateGraph.Temporary.anyTrue() in OM 1.5

Tom Gee
Fri, 09 Oct 2009 09:34:50 -0700

Hi folks.

Here is a frustrating problem that I'm experiencing in OpenModelica 1.5 (and existed in all previous versions I have tried as well).

I have a simple example program using StateGraph:
    model SimpleState "A first simple StateGraph example"
      Modelica.StateGraph.InitialStep initialStep(nIn=1,nOut=1);
Modelica.StateGraph.Transition transition1(nIn=1,nOut=1,condition=true);
      Modelica.StateGraph.Step step(nIn=1,nOut=1);
      Modelica.StateGraph.Transition transition2(nIn=1,nOut=1);

    equation
      connect(initialStep.outPort[1],transition1.inPort);
      connect(transition1.outPort,step.inPort[1]);
      connect(step.outPort[1],transition2.inPort);
      connect(transition2.outPort,initialStep.inPort[1]);
    end SimpleState;

When  I attempt to instantiate the model, I get the following error:
No matching function found for StateGraph.Temporary.anyTrue(inPort.set) of type function(b:Boolean) => Boolean,
    candidates are function(b:Boolean[:]) => Boolean

Any ideas?  Thanks all!
    Tom
---


--
Tom Gee
Senior Developer and Architect

Covenant Systems Development
JCP certified defence contractor
27 Bray St., Beeton, ON Canada L0G 1A0