<?xml version="1.0" encoding="ISO-8859-1"?>
<fmiModelDescription
  fmiVersion="2.0"
  modelName="bouncingBall"
  guid="{8c4e810f-3df3-4a00-8276-176fa3c9f003}"
  numberOfEventIndicators="1">

<CoSimulation
  modelIdentifier="bouncingBall"
  canHandleVariableCommunicationStepSize="true">
  <SourceFiles>
    <File name="bouncingBall.c"/>
  </SourceFiles>
</CoSimulation>


<LogCategories>
  <Category name="logAll"/>
  <Category name="logError"/>
  <Category name="logFmiCall"/>
  <Category name="logEvent"/>
</LogCategories>

<ModelVariables>
  <ScalarVariable name="h" valueReference="0" description="height, used as state"
                  causality="local" variability="continuous" initial="exact">
    <Real start="1"/>
  </ScalarVariable>
  <ScalarVariable name="der(h)" valueReference="1" description="velocity of ball"
                  causality="local" variability="continuous" initial="calculated">
    <Real derivative="1"/>
  </ScalarVariable>
  <ScalarVariable name="v" valueReference="2" description="velocity of ball, used as state"
                  causality="local" variability="continuous" initial="exact">
    <Real start="0" reinit="true"/>
  </ScalarVariable>
  <ScalarVariable name="der(v)" valueReference="3" description="acceleration of ball"
                  causality="local" variability="continuous" initial="calculated">
    <Real derivative="3"/>
  </ScalarVariable>
  <ScalarVariable name="g" valueReference="4" description="acceleration of gravity"
                  causality="parameter" variability="fixed" initial="exact">
    <Real start="9.81"/>
  </ScalarVariable>
  <ScalarVariable name="e" valueReference="5" description="dimensionless parameter"
                  causality="parameter" variability="tunable" initial="exact">
    <Real start="0.7" min="0.5" max="1"/>
  </ScalarVariable>
</ModelVariables>

<ModelStructure>
  <Derivatives>
    <Unknown index="2" />
    <Unknown index="4" />
  </Derivatives>
  <InitialUnknowns>
    <Unknown index="2"/>
    <Unknown index="4"/>
  </InitialUnknowns>
</ModelStructure>

</fmiModelDescription>
