In accordance with rule 44.2, the penalty may be one turn including one tack and one gybe. In this case, a tack but not a gybe has been done. Therefore the penalty was not taken in accordance with the rule.