def test_work_flow(self): """Tests the work flow of write_header, write_point, write_finalize.""" bouncingBall = fmi_ResultHandlerFile(self._bounce) bouncingBall.set_options(self._bounce.simulate_options()) bouncingBall.simulation_start() bouncingBall.initialize_complete() bouncingBall.integration_point() bouncingBall.simulation_end() res = ResultDymolaTextual('bouncingBall_result.txt') h = res.get_variable_data('h') derh = res.get_variable_data('der(h)') g = res.get_variable_data('g') nose.tools.assert_almost_equal(h.x, 1.000000, 5) nose.tools.assert_almost_equal(derh.x, 0.000000, 5)