Skip to content

Commit

Permalink
Merge branch 'sp/#339-em-it' into all/#tbw
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastian-peter committed Nov 4, 2022
2 parents 3a1003f + 0b9972b commit cfbcac6
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -725,6 +725,15 @@ protected trait ParticipantAgentFundamentals[
resultingActivePower
)

// sanity check, simulation will hang if this matches
flexChangeIndicator.changesAtTick match {
case Some(changeAtTick) if changeAtTick <= flexCtrl.tick =>
log.error(
s"Scheduling agent ${self.path} (${baseStateData.modelUuid}) for activation at tick $changeAtTick, although current tick is ${flexCtrl.tick}"
)
case _ =>
}

// revoke old tick and remove it from state data, if applicable
val revokeRequest =
flexStateData.scheduledRequest
Expand Down

0 comments on commit cfbcac6

Please sign in to comment.