INTO-CPS-Association / maestro

Maestro a Co-Simulation Orchestration Engine
https://build.overture.au.dk/jenkins/job/maestro/
20 stars 3 forks source link

Nullpointer in Fmi2SimulationEnvironment #334

Closed lausdahl closed 2 years ago

lausdahl commented 3 years ago
    at org.intocps.maestro.framework.fmi2.Fmi2SimulationEnvironment.initialize(Fmi2SimulationEnvironment.java:186)
    at org.intocps.maestro.framework.fmi2.Fmi2SimulationEnvironment.<init>(Fmi2SimulationEnvironment.java:38)
    at org.intocps.maestro.framework.fmi2.Fmi2SimulationEnvironment.of(Fmi2SimulationEnvironment.java:48)```

test input just need to have a mismatch like here: `comporator` and `comp`
    fmus:
      '{control}': watertankcontroller-c.fmu
      '{tank}': singlewatertank-20sim.fmu
      '{amqp}':
        # will be repacked with level and valve from data source signals
        amqp-derrived-from-previous-step.fmu
      '{comporator}': two-real-diff-fmu.fmu
    connections:
      '{control}.c.valve':
        - '{tank}.t.valvecontrol'
        - '{comp}.comp2.input1'
      '{tank}.t.level':
        - '{control}.c.level'
        - '{comp}.comp1.input1'
      '{amqp}.ext.level':
        - '{comp}.comp1.input2'
      '{amqp}.ext.valve':
        - '{comp}.comp2.input2'

it should probably complain that the name is unknown