Skip to content

Instantly share code, notes, and snippets.

@BetsyMcPhail
Created June 14, 2019 16:17
Show Gist options
  • Save BetsyMcPhail/c2e223f65b7fff11c44f04e0253e21cb to your computer and use it in GitHub Desktop.
Save BetsyMcPhail/c2e223f65b7fff11c44f04e0253e21cb to your computer and use it in GitHub Desktop.
custom_test valgrind output
==================== Test output for //bindings/pydrake/systems:py/custom_test:
[21802 refs]
==17== Memcheck, a memory error detector
==17== Copyright (C) 2002-2015, and GNU GPL'd, by Julian Seward et al.
==17== Using Valgrind-3.11.0 and LibVEX; rerun with -h for copyright info
==17== Command: bindings/pydrake/systems/py/custom_test
==17==
==17== Memcheck, a memory error detector
==17== Copyright (C) 2002-2015, and GNU GPL'd, by Julian Seward et al.
==17== Using Valgrind-3.11.0 and LibVEX; rerun with -h for copyright info
==17== Command: /home/betsy/.local/python/2.7.12-dbg/bin/python bindings/pydrake/systems/py/custom_test
==17==
==17== Memcheck, a memory error detector
==17== Copyright (C) 2002-2015, and GNU GPL'd, by Julian Seward et al.
==17== Using Valgrind-3.11.0 and LibVEX; rerun with -h for copyright info
==17== Command: /home/betsy/.local/python/2.7.12-dbg/bin/python /home/betsy/.cache/bazel/_bazel_betsy/b55d9001a8701bc7bfec3027393db69c/sandbox/linux-sandbox/1/execroot/drake/bazel-out/k8-opt/bin/bindings/pydrake/systems/py/custom_test.runfiles/drake/common/test_utilities/drake_py_unittest_main.py
==17==
.........[2019-06-14 16:14:08.777] [console] [warning] Overriding drake::systems::LeafSystem::DoHasDirectFeedthrough is deprecated; please consult its API documentation for alternatives.
..
----------------------------------------------------------------------
Ran 11 tests in 3.205s
OK
[110575 refs]
==17==
==17== HEAP SUMMARY:
==17== in use at exit: 9,037,621 bytes in 52,548 blocks
==17== total heap usage: 359,819 allocs, 307,271 frees, 64,000,199 bytes allocated
==17==
==17== 296 bytes in 1 blocks are possibly lost in loss record 18,364 of 20,872
==17== at 0x4C2DB8F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==17== by 0x4FF1D61: _PyObject_GC_Malloc (gcmodule.c:1499)
==17== by 0x4FF1E14: _PyObject_GC_New (gcmodule.c:1521)
==17== by 0x4EE8C28: PyDict_New (dictobject.c:277)
==17== by 0x4EEA048: _PyDict_NewPresized (dictobject.c:688)
==17== by 0x4F97C46: PyEval_EvalFrameEx (ceval.c:2500)
==17== by 0x4F9DAE4: PyEval_EvalCodeEx (ceval.c:3582)
==17== by 0x4ECE170: function_call (funcobject.c:523)
==17== by 0x4E8B6A4: PyObject_Call (abstract.c:2546)
==17== by 0x4F9FD5F: PyEval_CallObjectWithKeywords (ceval.c:4219)
==17== by 0x4E8B623: PyObject_CallObject (abstract.c:2534)
==17== by 0x203DE514: pybind11::detail::simple_collector<(pybind11::return_value_policy)1>::call(_object*) const (cast.h:2250)
==17== by 0x2043693F: pybind11::object pybind11::detail::object_api<pybind11::handle>::operator()<(pybind11::return_value_policy)1, pybind11::handle&>(pybind11::handle&) const (cast.h:2405)
==17== by 0x20519F8E: drake::pydrake::DefineFrameworkPyValues(pybind11::module)::PyObjectValue::Clone() const (framework_py_values.cc:189)
==17== by 0xB368768: drake::systems::detail::ModelValues::CloneModel(int) const (model_values.cc:26)
==17== by 0xB36243C: drake::systems::LeafSystem<double>::DoAllocateInput(drake::systems::InputPort<double> const&) const (leaf_system.h:2492)
==17==
==17== 464 bytes in 1 blocks are possibly lost in loss record 18,964 of 20,872
==17== at 0x4C2DB8F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==17== by 0x4FF1D61: _PyObject_GC_Malloc (gcmodule.c:1499)
==17== by 0x4FF1E7D: _PyObject_GC_NewVar (gcmodule.c:1531)
==17== by 0x4ECB5E8: PyFrame_New (frameobject.c:680)
==17== by 0x4F9C9EF: PyEval_EvalCodeEx (ceval.c:3363)
==17== by 0x4ECE170: function_call (funcobject.c:523)
==17== by 0x4E8B6A4: PyObject_Call (abstract.c:2546)
==17== by 0x4EA86BB: instancemethod_call (classobject.c:2602)
==17== by 0x4E8B6A4: PyObject_Call (abstract.c:2546)
==17== by 0x4F9FD5F: PyEval_CallObjectWithKeywords (ceval.c:4219)
==17== by 0x4E8B623: PyObject_CallObject (abstract.c:2534)
==17== by 0x203DE514: pybind11::detail::simple_collector<(pybind11::return_value_policy)1>::call(_object*) const (cast.h:2250)
==17== by 0x20500875: pybind11::object pybind11::detail::object_api<pybind11::handle>::operator()<(pybind11::return_value_policy)1, drake::systems::Context<double> const*, drake::systems::ContinuousState<double>*&>(drake::systems::Context<double> const*&&, drake::systems::ContinuousState<double>*&) const (cast.h:2405)
==17== by 0x20500928: drake::pydrake::(anonymous namespace)::Impl<double>::PyLeafSystemBase<drake::pydrake::(anonymous namespace)::Impl<double>::LeafSystemPublic>::DoCalcTimeDerivatives(drake::systems::Context<double> const&, drake::systems::ContinuousState<double>*) const (framework_py_systems.cc:193)
==17== by 0xB395585: operator() (functional:2267)
==17== by 0xB395585: drake::systems::CacheEntry::Calc(drake::systems::ContextBase const&, drake::AbstractValue*) const (cache_entry.cc:52)
==17== by 0xAC1C855: drake::systems::CacheEntry::UpdateValue(drake::systems::ContextBase const&) const (cache_entry.h:283)
==17==
==17== 464 bytes in 1 blocks are possibly lost in loss record 18,965 of 20,872
==17== at 0x4C2DB8F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==17== by 0x4FF1D61: _PyObject_GC_Malloc (gcmodule.c:1499)
==17== by 0x4FF1E7D: _PyObject_GC_NewVar (gcmodule.c:1531)
==17== by 0x4ECB5E8: PyFrame_New (frameobject.c:680)
==17== by 0x4F9C9EF: PyEval_EvalCodeEx (ceval.c:3363)
==17== by 0x4ECE170: function_call (funcobject.c:523)
==17== by 0x4E8B6A4: PyObject_Call (abstract.c:2546)
==17== by 0x4EA86BB: instancemethod_call (classobject.c:2602)
==17== by 0x4E8B6A4: PyObject_Call (abstract.c:2546)
==17== by 0x4F9FD5F: PyEval_CallObjectWithKeywords (ceval.c:4219)
==17== by 0x4E8B623: PyObject_CallObject (abstract.c:2534)
==17== by 0x203DE514: pybind11::detail::simple_collector<(pybind11::return_value_policy)1>::call(_object*) const (cast.h:2250)
==17== by 0x204FA52F: pybind11::object pybind11::detail::object_api<pybind11::handle>::operator()<(pybind11::return_value_policy)1, drake::systems::Context<double> const*>(drake::systems::Context<double> const*&&) const (cast.h:2405)
==17== by 0x204FA6BC: operator() (framework_py_systems.cc:217)
==17== by 0x204FA6BC: drake::pydrake::(anonymous namespace)::Impl<double>::PyLeafSystemBase<drake::pydrake::(anonymous namespace)::Impl<double>::LeafSystemPublic>::DoGetWitnessFunctions(drake::systems::Context<double> const&, std::vector<drake::systems::WitnessFunction<double> const*, std::allocator<drake::systems::WitnessFunction<double> const*> >*) const (framework_py_systems.cc:224)
==17== by 0x204FC134: void pybind11::cpp_function::initialize<drake::pydrake::(anonymous namespace)::Impl<double>::DoDefinitions(pybind11::module)::{lambda(drake::systems::System<double> const&, drake::systems::Context<double> const&)#8}, std::vector<drake::systems::WitnessFunction<double> const*, std::allocator<drake::systems::WitnessFunction<double> const> >, drake::systems::System<double> const&, drake::systems::Context<double> const&, pybind11::name, pybind11::is_method, pybind11::sibling, pybind11::arg, char const*>(drake::pydrake::(anonymous namespace)::Impl<double>::DoDefinitions(pybind11::module)::{lambda(drake::systems::System<double> const&, drake::systems::Context<double> const&)#8}&&, std::vector<drake::systems::WitnessFunction<double> const*, std::allocator<drake::systems::WitnessFunction<double> const> > (*)(drake::systems::System<double> const&, drake::systems::Context<double> const&), pybind11::name const&, pybind11::is_method const&, pybind11::sibling const&, pybind11::arg const&, char const* const&)::{lambda(pybind11::detail::function_call&)#3}::_FUN(pybind11::detail::function_call) (system.h:1581)
==17== by 0x203CFC56: pybind11::cpp_function::dispatcher(_object*, _object*, _object*) (pybind11.h:623)
==17==
==17== 472 bytes in 1 blocks are possibly lost in loss record 18,993 of 20,872
==17== at 0x4C2DB8F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==17== by 0x4FF1D61: _PyObject_GC_Malloc (gcmodule.c:1499)
==17== by 0x4FF1E7D: _PyObject_GC_NewVar (gcmodule.c:1531)
==17== by 0x4ECB5E8: PyFrame_New (frameobject.c:680)
==17== by 0x4F9C9EF: PyEval_EvalCodeEx (ceval.c:3363)
==17== by 0x4ECE170: function_call (funcobject.c:523)
==17== by 0x4E8B6A4: PyObject_Call (abstract.c:2546)
==17== by 0x4EA86BB: instancemethod_call (classobject.c:2602)
==17== by 0x4E8B6A4: PyObject_Call (abstract.c:2546)
==17== by 0x4F9FD5F: PyEval_CallObjectWithKeywords (ceval.c:4219)
==17== by 0x4E8B623: PyObject_CallObject (abstract.c:2534)
==17== by 0x2053898A: call (cast.h:2250)
==17== by 0x2053898A: pybind11::object pybind11::detail::object_api<pybind11::detail::accessor<pybind11::detail::accessor_policies::str_attr> >::operator()<(pybind11::return_value_policy)1, pybind11::object&>(pybind11::object&) const (cast.h:2405)
==17== by 0x2053ACA3: drake::pydrake::internal::GetPyParamScalarImpl(std::type_info const&) (cpp_param_pybind.cc:66)
==17== by 0x204E4D30: GetPyParamScalarImpl<double> (cpp_param_pybind.h:30)
==17== by 0x204E4D30: GetPyParam<Eigen::AutoDiffScalar<Eigen::Matrix<double, -1, 1, 0, -1, 1> >, double> (cpp_param_pybind.h:48)
==17== by 0x204E4D30: operator()<drake::type_pack<Eigen::AutoDiffScalar<Eigen::Matrix<double, -1, 1, 0, -1, 1> >, double> > (framework_py_systems.cc:764)
==17== by 0x204E4D30: run<drake::type_pack<Eigen::AutoDiffScalar<Eigen::Matrix<double, -1, 1, 0, -1, 1> >, double>, drake::pydrake::DefineFrameworkPySystems(pybind11::module)::<lambda(auto:2)>&> (type_pack.h:132)
==17== by 0x204E4D30: run (type_pack.h:39)
==17== by 0x204E4D30: type_visit<drake::type_visit_with_default, drake::type_check_always_true, drake::pydrake::DefineFrameworkPySystems(pybind11::module)::<lambda(auto:2)>&, drake::type_pack<Eigen::AutoDiffScalar<Eigen::Matrix<double, -1, 1, 0, -1, 1> >, double>, drake::type_pack<drake::symbolic::Expression, double>, drake::type_pack<double, Eigen::AutoDiffScalar<Eigen::Matrix<double, -1, 1, 0, -1, 1> > >, drake::type_pack<drake::symbolic::Expression, Eigen::AutoDiffScalar<Eigen::Matrix<double, -1, 1, 0, -1, 1> > >, drake::type_pack<double, drake::symbolic::Expression>, drake::type_pack<Eigen::AutoDiffScalar<Eigen::Matrix<double, -1, 1, 0, -1, 1> >, drake::symbolic::Expression> > (type_pack.h:176)
==17== by 0x204E4D30: drake::pydrake::DefineFrameworkPySystems(pybind11::module) (framework_py_systems.cc:779)
==17== by 0x203C8A20: pybind11_init_framework (framework_py.cc:19)
==17== by 0x203C8A20: pybind11_init_wrapper (framework_py.cc:9)
==17== by 0x203C8A20: initframework (framework_py.cc:9)
==17== by 0x4FC4376: _PyImport_LoadDynamicModule (importdl.c:53)
==17==
==17== 472 bytes in 1 blocks are possibly lost in loss record 18,994 of 20,872
==17== at 0x4C2DB8F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==17== by 0x4FF1D61: _PyObject_GC_Malloc (gcmodule.c:1499)
==17== by 0x4FF1E7D: _PyObject_GC_NewVar (gcmodule.c:1531)
==17== by 0x4ECB5E8: PyFrame_New (frameobject.c:680)
==17== by 0x4F9C9EF: PyEval_EvalCodeEx (ceval.c:3363)
==17== by 0x4ECE170: function_call (funcobject.c:523)
==17== by 0x4E8B6A4: PyObject_Call (abstract.c:2546)
==17== by 0x4EA86BB: instancemethod_call (classobject.c:2602)
==17== by 0x4E8B6A4: PyObject_Call (abstract.c:2546)
==17== by 0x4F9FD5F: PyEval_CallObjectWithKeywords (ceval.c:4219)
==17== by 0x4E8B623: PyObject_CallObject (abstract.c:2534)
==17== by 0x2053898A: call (cast.h:2250)
==17== by 0x2053898A: pybind11::object pybind11::detail::object_api<pybind11::detail::accessor<pybind11::detail::accessor_policies::str_attr> >::operator()<(pybind11::return_value_policy)1, pybind11::object&>(pybind11::object&) const (cast.h:2405)
==17== by 0x2053AD02: drake::pydrake::internal::GetPyParamScalarImpl(std::type_info const&) (cpp_param_pybind.cc:68)
==17== by 0x204E4D30: GetPyParamScalarImpl<double> (cpp_param_pybind.h:30)
==17== by 0x204E4D30: GetPyParam<Eigen::AutoDiffScalar<Eigen::Matrix<double, -1, 1, 0, -1, 1> >, double> (cpp_param_pybind.h:48)
==17== by 0x204E4D30: operator()<drake::type_pack<Eigen::AutoDiffScalar<Eigen::Matrix<double, -1, 1, 0, -1, 1> >, double> > (framework_py_systems.cc:764)
==17== by 0x204E4D30: run<drake::type_pack<Eigen::AutoDiffScalar<Eigen::Matrix<double, -1, 1, 0, -1, 1> >, double>, drake::pydrake::DefineFrameworkPySystems(pybind11::module)::<lambda(auto:2)>&> (type_pack.h:132)
==17== by 0x204E4D30: run (type_pack.h:39)
==17== by 0x204E4D30: type_visit<drake::type_visit_with_default, drake::type_check_always_true, drake::pydrake::DefineFrameworkPySystems(pybind11::module)::<lambda(auto:2)>&, drake::type_pack<Eigen::AutoDiffScalar<Eigen::Matrix<double, -1, 1, 0, -1, 1> >, double>, drake::type_pack<drake::symbolic::Expression, double>, drake::type_pack<double, Eigen::AutoDiffScalar<Eigen::Matrix<double, -1, 1, 0, -1, 1> > >, drake::type_pack<drake::symbolic::Expression, Eigen::AutoDiffScalar<Eigen::Matrix<double, -1, 1, 0, -1, 1> > >, drake::type_pack<double, drake::symbolic::Expression>, drake::type_pack<Eigen::AutoDiffScalar<Eigen::Matrix<double, -1, 1, 0, -1, 1> >, drake::symbolic::Expression> > (type_pack.h:176)
==17== by 0x204E4D30: drake::pydrake::DefineFrameworkPySystems(pybind11::module) (framework_py_systems.cc:779)
==17== by 0x203C8A20: pybind11_init_framework (framework_py.cc:19)
==17== by 0x203C8A20: pybind11_init_wrapper (framework_py.cc:9)
==17== by 0x203C8A20: initframework (framework_py.cc:9)
==17== by 0x4FC4376: _PyImport_LoadDynamicModule (importdl.c:53)
==17==
==17== 472 bytes in 1 blocks are possibly lost in loss record 18,998 of 20,872
==17== at 0x4C2DB8F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==17== by 0x4FF1D61: _PyObject_GC_Malloc (gcmodule.c:1499)
==17== by 0x4FF1E7D: _PyObject_GC_NewVar (gcmodule.c:1531)
==17== by 0x4ECB5E8: PyFrame_New (frameobject.c:680)
==17== by 0x4F9C9EF: PyEval_EvalCodeEx (ceval.c:3363)
==17== by 0x4ECE170: function_call (funcobject.c:523)
==17== by 0x4E8B6A4: PyObject_Call (abstract.c:2546)
==17== by 0x4EA86BB: instancemethod_call (classobject.c:2602)
==17== by 0x4E8B6A4: PyObject_Call (abstract.c:2546)
==17== by 0x4F9FD5F: PyEval_CallObjectWithKeywords (ceval.c:4219)
==17== by 0x4E8B623: PyObject_CallObject (abstract.c:2534)
==17== by 0x203DE514: pybind11::detail::simple_collector<(pybind11::return_value_policy)1>::call(_object*) const (cast.h:2250)
==17== by 0x204FAB55: pybind11::object pybind11::detail::object_api<pybind11::handle>::operator()<(pybind11::return_value_policy)1, drake::systems::Context<double> const*, std::vector<drake::systems::PublishEvent<double> const*, std::allocator<drake::systems::PublishEvent<double> const*> > const&>(drake::systems::Context<double> const*&&, std::vector<drake::systems::PublishEvent<double> const*, std::allocator<drake::systems::PublishEvent<double> const*> > const&) const (cast.h:2405)
==17== by 0x204FB0CE: drake::pydrake::(anonymous namespace)::Impl<double>::PyLeafSystemBase<drake::pydrake::(anonymous namespace)::Impl<double>::LeafSystemPublic>::DoPublish(drake::systems::Context<double> const&, std::vector<drake::systems::PublishEvent<double> const*, std::allocator<drake::systems::PublishEvent<double> const*> > const&) const (framework_py_systems.cc:173)
==17== by 0x2049CB92: void pybind11::cpp_function::initialize<pybind11::cpp_function::initialize<void, drake::systems::System<double>, drake::systems::Context<double> const&, pybind11::name, pybind11::is_method, pybind11::sibling, char const*>(void (drake::systems::System<double>::*)(drake::systems::Context<double> const&) const, pybind11::name const&, pybind11::is_method const&, pybind11::sibling const&, char const* const&)::{lambda(drake::systems::System<double> const*, drake::systems::Context<double> const&)#1}, void, drake::systems::System<double> const*, drake::systems::Context<double> const&, pybind11::name, pybind11::is_method, pybind11::sibling, char const*>(pybind11::cpp_function::initialize<void, drake::systems::System<double>, drake::systems::Context<double> const&, pybind11::name, pybind11::is_method, pybind11::sibling, char const*>(void (drake::systems::System<double>::*)(drake::systems::Context<double> const&) const, pybind11::name const&, pybind11::is_method const&, pybind11::sibling const&, char const* const&)::{lambda(drake::systems::System<double> const*, drake::systems::Context<double> const&)#1}&&, void (*)(drake::systems::System<double> const*, drake::systems::Context<double> const&), pybind11::name const&, pybind11::is_method const&, pybind11::sibling const&, char const* const&)::{lambda(pybind11::detail::function_call&)#3}::_FUN(pybind11::detail::function_call) (pybind11.h:84)
==17== by 0x203CFC56: pybind11::cpp_function::dispatcher(_object*, _object*, _object*) (pybind11.h:623)
==17==
==17== 472 bytes in 1 blocks are possibly lost in loss record 18,999 of 20,872
==17== at 0x4C2DB8F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==17== by 0x4FF1D61: _PyObject_GC_Malloc (gcmodule.c:1499)
==17== by 0x4FF1E7D: _PyObject_GC_NewVar (gcmodule.c:1531)
==17== by 0x4ECB5E8: PyFrame_New (frameobject.c:680)
==17== by 0x4F9C9EF: PyEval_EvalCodeEx (ceval.c:3363)
==17== by 0x4ECE170: function_call (funcobject.c:523)
==17== by 0x4E8B6A4: PyObject_Call (abstract.c:2546)
==17== by 0x4EA86BB: instancemethod_call (classobject.c:2602)
==17== by 0x4E8B6A4: PyObject_Call (abstract.c:2546)
==17== by 0x4F9FD5F: PyEval_CallObjectWithKeywords (ceval.c:4219)
==17== by 0x4E8B623: PyObject_CallObject (abstract.c:2534)
==17== by 0x203DE514: pybind11::detail::simple_collector<(pybind11::return_value_policy)1>::call(_object*) const (cast.h:2250)
==17== by 0x204FAB55: pybind11::object pybind11::detail::object_api<pybind11::handle>::operator()<(pybind11::return_value_policy)1, drake::systems::Context<double> const*, std::vector<drake::systems::PublishEvent<double> const*, std::allocator<drake::systems::PublishEvent<double> const*> > const&>(drake::systems::Context<double> const*&&, std::vector<drake::systems::PublishEvent<double> const*, std::allocator<drake::systems::PublishEvent<double> const*> > const&) const (cast.h:2405)
==17== by 0x204FAF30: drake::pydrake::(anonymous namespace)::Impl<double>::PyLeafSystemBase<drake::pydrake::(anonymous namespace)::Impl<double>::LeafSystemPublic>::DoPublish(drake::systems::Context<double> const&, std::vector<drake::systems::PublishEvent<double> const*, std::allocator<drake::systems::PublishEvent<double> const*> > const&) const (framework_py_systems.cc:173)
==17== by 0x2049CB92: void pybind11::cpp_function::initialize<pybind11::cpp_function::initialize<void, drake::systems::System<double>, drake::systems::Context<double> const&, pybind11::name, pybind11::is_method, pybind11::sibling, char const*>(void (drake::systems::System<double>::*)(drake::systems::Context<double> const&) const, pybind11::name const&, pybind11::is_method const&, pybind11::sibling const&, char const* const&)::{lambda(drake::systems::System<double> const*, drake::systems::Context<double> const&)#1}, void, drake::systems::System<double> const*, drake::systems::Context<double> const&, pybind11::name, pybind11::is_method, pybind11::sibling, char const*>(pybind11::cpp_function::initialize<void, drake::systems::System<double>, drake::systems::Context<double> const&, pybind11::name, pybind11::is_method, pybind11::sibling, char const*>(void (drake::systems::System<double>::*)(drake::systems::Context<double> const&) const, pybind11::name const&, pybind11::is_method const&, pybind11::sibling const&, char const* const&)::{lambda(drake::systems::System<double> const*, drake::systems::Context<double> const&)#1}&&, void (*)(drake::systems::System<double> const*, drake::systems::Context<double> const&), pybind11::name const&, pybind11::is_method const&, pybind11::sibling const&, char const* const&)::{lambda(pybind11::detail::function_call&)#3}::_FUN(pybind11::detail::function_call) (pybind11.h:84)
==17== by 0x203CFC56: pybind11::cpp_function::dispatcher(_object*, _object*, _object*) (pybind11.h:623)
==17==
==17== 472 bytes in 1 blocks are possibly lost in loss record 19,000 of 20,872
==17== at 0x4C2DB8F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==17== by 0x4FF1D61: _PyObject_GC_Malloc (gcmodule.c:1499)
==17== by 0x4FF1E7D: _PyObject_GC_NewVar (gcmodule.c:1531)
==17== by 0x4ECB5E8: PyFrame_New (frameobject.c:680)
==17== by 0x4F9C9EF: PyEval_EvalCodeEx (ceval.c:3363)
==17== by 0x4ECE170: function_call (funcobject.c:523)
==17== by 0x4E8B6A4: PyObject_Call (abstract.c:2546)
==17== by 0x4EA86BB: instancemethod_call (classobject.c:2602)
==17== by 0x4E8B6A4: PyObject_Call (abstract.c:2546)
==17== by 0x4F9FD5F: PyEval_CallObjectWithKeywords (ceval.c:4219)
==17== by 0x4E8B623: PyObject_CallObject (abstract.c:2534)
==17== by 0x203DE514: pybind11::detail::simple_collector<(pybind11::return_value_policy)1>::call(_object*) const (cast.h:2250)
==17== by 0x204C3AB5: pybind11::object pybind11::detail::object_api<pybind11::handle>::operator()<(pybind11::return_value_policy)1, int&, int&>(int&, int&) const (cast.h:2405)
==17== by 0x204EE546: drake::pydrake::(anonymous namespace)::Impl<double>::PyVectorSystem::DoHasDirectFeedthrough(int, int) const (framework_py_systems.cc:285)
==17== by 0xB341C3B: GetDirectFeedthroughs (leaf_system.h:284)
==17== by 0xB341C3B: HasAnyDirectFeedthrough (system.h:271)
==17== by 0xB341C3B: drake::systems::VectorSystem<double>::CalcVectorOutput(drake::systems::Context<double> const&, drake::systems::BasicVector<double>*) const (vector_system.h:251)
==17== by 0xA59E8BD: operator() (functional:2267)
==17== by 0xA59E8BD: operator() (leaf_system.h:2667)
==17== by 0xA59E8BD: std::_Function_handler<void (drake::systems::ContextBase const&, drake::AbstractValue*), drake::systems::LeafSystem<double>::CreateVectorLeafOutputPort(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, int, std::function<std::unique_ptr<drake::AbstractValue, std::default_delete<drake::AbstractValue> > ()>, std::function<void (drake::systems::Context<double> const&, drake::systems::BasicVector<double>*)>, std::set<drake::TypeSafeIndex<drake::systems::DependencyTag>, std::less<drake::TypeSafeIndex<drake::systems::DependencyTag> >, std::allocator<drake::TypeSafeIndex<drake::systems::DependencyTag> > >)::{lambda(drake::systems::ContextBase const&, drake::AbstractValue*)#1}>::_M_invoke(std::_Any_data const&, drake::systems::ContextBase const&, drake::AbstractValue*&&) (functional:1871)
==17==
==17== 480 bytes in 1 blocks are possibly lost in loss record 19,039 of 20,872
==17== at 0x4C2DB8F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==17== by 0x4FF1D61: _PyObject_GC_Malloc (gcmodule.c:1499)
==17== by 0x4FF1E7D: _PyObject_GC_NewVar (gcmodule.c:1531)
==17== by 0x4ECB5E8: PyFrame_New (frameobject.c:680)
==17== by 0x4F9C9EF: PyEval_EvalCodeEx (ceval.c:3363)
==17== by 0x4ECE170: function_call (funcobject.c:523)
==17== by 0x4E8B6A4: PyObject_Call (abstract.c:2546)
==17== by 0x4EA86BB: instancemethod_call (classobject.c:2602)
==17== by 0x4E8B6A4: PyObject_Call (abstract.c:2546)
==17== by 0x4F9FD5F: PyEval_CallObjectWithKeywords (ceval.c:4219)
==17== by 0x4E8B623: PyObject_CallObject (abstract.c:2534)
==17== by 0x203DE514: pybind11::detail::simple_collector<(pybind11::return_value_policy)1>::call(_object*) const (cast.h:2250)
==17== by 0x2049B834: pybind11::object pybind11::detail::object_api<pybind11::detail::accessor<pybind11::detail::accessor_policies::str_attr> >::operator()<(pybind11::return_value_policy)1, pybind11::handle&, pybind11::handle&>(pybind11::handle&, pybind11::handle&) const (cast.h:2405)
==17== by 0x204B123E: AddInstantiation (cpp_template_pybind.h:36)
==17== by 0x204B123E: _ZN5drake7pydrake17AddTemplateMethodIZNS0_6detail18wrap_function_implINS2_13wrap_callbackELb0EE3runIRZNS2_19infer_function_infoIvNS_7systems21SystemScalarConverterEIRKSt8functionIFSt10unique_ptrINS8_6SystemIN5Eigen14AutoDiffScalarINSD_6MatrixIdLin1ELi1ELi0ELin1ELi1EEEEEEESt14default_deleteISI_EERKNSC_IdEEEEEEEDaMT0_FT_DpT1_EEUlPS9_SS_E_vISZ_SS_EEEDaONS2_13function_infoISU_ST_ISW_EEENSt9enable_ifIXnt18enable_wrap_outputIST_EEPvE4typeEEUlSZ_SA_IFSL_PSN_EEE_IEEEN8pybind116objectENS1D_6handleERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEOSU_NS1D_5tupleEDpOT0_ (cpp_template_pybind.h:129)
==17== by 0x204E4DCB: operator()<drake::type_pack<Eigen::AutoDiffScalar<Eigen::Matrix<double, -1, 1, 0, -1, 1> >, double> > (framework_py_systems.cc:764)
==17== by 0x204E4DCB: run<drake::type_pack<Eigen::AutoDiffScalar<Eigen::Matrix<double, -1, 1, 0, -1, 1> >, double>, drake::pydrake::DefineFrameworkPySystems(pybind11::module)::<lambda(auto:2)>&> (type_pack.h:132)
==17== by 0x204E4DCB: run (type_pack.h:39)
==17== by 0x204E4DCB: type_visit<drake::type_visit_with_default, drake::type_check_always_true, drake::pydrake::DefineFrameworkPySystems(pybind11::module)::<lambda(auto:2)>&, drake::type_pack<Eigen::AutoDiffScalar<Eigen::Matrix<double, -1, 1, 0, -1, 1> >, double>, drake::type_pack<drake::symbolic::Expression, double>, drake::type_pack<double, Eigen::AutoDiffScalar<Eigen::Matrix<double, -1, 1, 0, -1, 1> > >, drake::type_pack<drake::symbolic::Expression, Eigen::AutoDiffScalar<Eigen::Matrix<double, -1, 1, 0, -1, 1> > >, drake::type_pack<double, drake::symbolic::Expression>, drake::type_pack<Eigen::AutoDiffScalar<Eigen::Matrix<double, -1, 1, 0, -1, 1> >, drake::symbolic::Expression> > (type_pack.h:176)
==17== by 0x204E4DCB: drake::pydrake::DefineFrameworkPySystems(pybind11::module) (framework_py_systems.cc:779)
==17== by 0x203C8A20: pybind11_init_framework (framework_py.cc:19)
==17== by 0x203C8A20: pybind11_init_wrapper (framework_py.cc:9)
==17== by 0x203C8A20: initframework (framework_py.cc:9)
==17==
==17== 488 bytes in 1 blocks are possibly lost in loss record 19,058 of 20,872
==17== at 0x4C2DB8F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==17== by 0x4FF1D61: _PyObject_GC_Malloc (gcmodule.c:1499)
==17== by 0x4FF1E7D: _PyObject_GC_NewVar (gcmodule.c:1531)
==17== by 0x4ECB5E8: PyFrame_New (frameobject.c:680)
==17== by 0x4F9C9EF: PyEval_EvalCodeEx (ceval.c:3363)
==17== by 0x4ECE170: function_call (funcobject.c:523)
==17== by 0x4E8B6A4: PyObject_Call (abstract.c:2546)
==17== by 0x4EA86BB: instancemethod_call (classobject.c:2602)
==17== by 0x4E8B6A4: PyObject_Call (abstract.c:2546)
==17== by 0x4F9FD5F: PyEval_CallObjectWithKeywords (ceval.c:4219)
==17== by 0x4E8B623: PyObject_CallObject (abstract.c:2534)
==17== by 0x203DE514: pybind11::detail::simple_collector<(pybind11::return_value_policy)1>::call(_object*) const (cast.h:2250)
==17== by 0x204B0FCD: operator()<(pybind11::return_value_policy)1u, pybind11::tuple&> (cast.h:2405)
==17== by 0x204B0FCD: drake::pydrake::internal::GetInstantiationName[abi:cxx11](pybind11::handle, pybind11::tuple) (cpp_template_pybind.h:42)
==17== by 0x204B113F: _ZN5drake7pydrake17AddTemplateMethodIZNS0_6detail18wrap_function_implINS2_13wrap_callbackELb0EE3runIRZNS2_19infer_function_infoIvNS_7systems21SystemScalarConverterEIRKSt8functionIFSt10unique_ptrINS8_6SystemIN5Eigen14AutoDiffScalarINSD_6MatrixIdLin1ELi1ELi0ELin1ELi1EEEEEEESt14default_deleteISI_EERKNSC_IdEEEEEEEDaMT0_FT_DpT1_EEUlPS9_SS_E_vISZ_SS_EEEDaONS2_13function_infoISU_ST_ISW_EEENSt9enable_ifIXnt18enable_wrap_outputIST_EEPvE4typeEEUlSZ_SA_IFSL_PSN_EEE_IEEEN8pybind116objectENS1D_6handleERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEOSU_NS1D_5tupleEDpOT0_ (cpp_template_pybind.h:128)
==17== by 0x204E4DCB: operator()<drake::type_pack<Eigen::AutoDiffScalar<Eigen::Matrix<double, -1, 1, 0, -1, 1> >, double> > (framework_py_systems.cc:764)
==17== by 0x204E4DCB: run<drake::type_pack<Eigen::AutoDiffScalar<Eigen::Matrix<double, -1, 1, 0, -1, 1> >, double>, drake::pydrake::DefineFrameworkPySystems(pybind11::module)::<lambda(auto:2)>&> (type_pack.h:132)
==17== by 0x204E4DCB: run (type_pack.h:39)
==17== by 0x204E4DCB: type_visit<drake::type_visit_with_default, drake::type_check_always_true, drake::pydrake::DefineFrameworkPySystems(pybind11::module)::<lambda(auto:2)>&, drake::type_pack<Eigen::AutoDiffScalar<Eigen::Matrix<double, -1, 1, 0, -1, 1> >, double>, drake::type_pack<drake::symbolic::Expression, double>, drake::type_pack<double, Eigen::AutoDiffScalar<Eigen::Matrix<double, -1, 1, 0, -1, 1> > >, drake::type_pack<drake::symbolic::Expression, Eigen::AutoDiffScalar<Eigen::Matrix<double, -1, 1, 0, -1, 1> > >, drake::type_pack<double, drake::symbolic::Expression>, drake::type_pack<Eigen::AutoDiffScalar<Eigen::Matrix<double, -1, 1, 0, -1, 1> >, drake::symbolic::Expression> > (type_pack.h:176)
==17== by 0x204E4DCB: drake::pydrake::DefineFrameworkPySystems(pybind11::module) (framework_py_systems.cc:779)
==17== by 0x203C8A20: pybind11_init_framework (framework_py.cc:19)
==17== by 0x203C8A20: pybind11_init_wrapper (framework_py.cc:9)
==17== by 0x203C8A20: initframework (framework_py.cc:9)
==17==
==17== 488 bytes in 1 blocks are possibly lost in loss record 19,061 of 20,872
==17== at 0x4C2DB8F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==17== by 0x4FF1D61: _PyObject_GC_Malloc (gcmodule.c:1499)
==17== by 0x4FF1E7D: _PyObject_GC_NewVar (gcmodule.c:1531)
==17== by 0x4ECB5E8: PyFrame_New (frameobject.c:680)
==17== by 0x4F9C9EF: PyEval_EvalCodeEx (ceval.c:3363)
==17== by 0x4ECE170: function_call (funcobject.c:523)
==17== by 0x4E8B6A4: PyObject_Call (abstract.c:2546)
==17== by 0x4EA86BB: instancemethod_call (classobject.c:2602)
==17== by 0x4E8B6A4: PyObject_Call (abstract.c:2546)
==17== by 0x4F9FD5F: PyEval_CallObjectWithKeywords (ceval.c:4219)
==17== by 0x4E8B623: PyObject_CallObject (abstract.c:2534)
==17== by 0x203DE514: pybind11::detail::simple_collector<(pybind11::return_value_policy)1>::call(_object*) const (cast.h:2250)
==17== by 0x204FAB55: pybind11::object pybind11::detail::object_api<pybind11::handle>::operator()<(pybind11::return_value_policy)1, drake::systems::Context<double> const*, std::vector<drake::systems::PublishEvent<double> const*, std::allocator<drake::systems::PublishEvent<double> const*> > const&>(drake::systems::Context<double> const*&&, std::vector<drake::systems::PublishEvent<double> const*, std::allocator<drake::systems::PublishEvent<double> const*> > const&) const (cast.h:2405)
==17== by 0x204FAF30: drake::pydrake::(anonymous namespace)::Impl<double>::PyLeafSystemBase<drake::pydrake::(anonymous namespace)::Impl<double>::LeafSystemPublic>::DoPublish(drake::systems::Context<double> const&, std::vector<drake::systems::PublishEvent<double> const*, std::allocator<drake::systems::PublishEvent<double> const*> > const&) const (framework_py_systems.cc:173)
==17== by 0x2137A843: Publish (system.h:323)
==17== by 0x2137A843: HandlePublish (simulator.h:904)
==17== by 0x2137A843: drake::systems::Simulator<double>::Initialize() (simulator.h:853)
==17== by 0x2137AB2F: drake::pydrake::pybind11_init_test_util(pybind11::module&)::{lambda(drake::systems::LeafSystem<double> const&)#3}::operator()(drake::systems::LeafSystem<double> const&) const [clone .isra.1700] [clone .constprop.2176] (test_util_py.cc:130)
==17==
==17== 488 bytes in 1 blocks are possibly lost in loss record 19,062 of 20,872
==17== at 0x4C2DB8F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==17== by 0x4FF1D61: _PyObject_GC_Malloc (gcmodule.c:1499)
==17== by 0x4FF1E7D: _PyObject_GC_NewVar (gcmodule.c:1531)
==17== by 0x4ECB5E8: PyFrame_New (frameobject.c:680)
==17== by 0x4F9C9EF: PyEval_EvalCodeEx (ceval.c:3363)
==17== by 0x4ECE170: function_call (funcobject.c:523)
==17== by 0x4E8B6A4: PyObject_Call (abstract.c:2546)
==17== by 0x4EA86BB: instancemethod_call (classobject.c:2602)
==17== by 0x4E8B6A4: PyObject_Call (abstract.c:2546)
==17== by 0x4F9FD5F: PyEval_CallObjectWithKeywords (ceval.c:4219)
==17== by 0x4E8B623: PyObject_CallObject (abstract.c:2534)
==17== by 0x203DE514: pybind11::detail::simple_collector<(pybind11::return_value_policy)1>::call(_object*) const (cast.h:2250)
==17== by 0x20500875: pybind11::object pybind11::detail::object_api<pybind11::handle>::operator()<(pybind11::return_value_policy)1, drake::systems::Context<double> const*, drake::systems::ContinuousState<double>*&>(drake::systems::Context<double> const*&&, drake::systems::ContinuousState<double>*&) const (cast.h:2405)
==17== by 0x20500928: drake::pydrake::(anonymous namespace)::Impl<double>::PyLeafSystemBase<drake::pydrake::(anonymous namespace)::Impl<double>::LeafSystemPublic>::DoCalcTimeDerivatives(drake::systems::Context<double> const&, drake::systems::ContinuousState<double>*) const (framework_py_systems.cc:193)
==17== by 0x2137ADFD: drake::pydrake::pybind11_init_test_util(pybind11::module&)::{lambda(drake::systems::LeafSystem<double> const&)#3}::operator()(drake::systems::LeafSystem<double> const&) const [clone .isra.1700] [clone .constprop.2176] (system.h:696)
==17== by 0x2137B2D1: void pybind11::cpp_function::initialize<drake::pydrake::pybind11_init_test_util(pybind11::module&)::{lambda(drake::systems::LeafSystem<double> const&)#3}, pybind11::dict, drake::systems::LeafSystem<double> const&, pybind11::name, pybind11::scope, pybind11::sibling>(drake::pydrake::pybind11_init_test_util(pybind11::module&)::{lambda(drake::systems::LeafSystem<double> const&)#3}&&, pybind11::dict (*)(drake::systems::LeafSystem<double> const&), pybind11::name const&, pybind11::scope const&, pybind11::sibling const&)::{lambda(pybind11::detail::function_call&)#3}::_FUN(pybind11::detail::function_call) (cast.h:2228)
==17==
==17== 488 bytes in 1 blocks are possibly lost in loss record 19,063 of 20,872
==17== at 0x4C2DB8F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==17== by 0x4FF1D61: _PyObject_GC_Malloc (gcmodule.c:1499)
==17== by 0x4FF1E7D: _PyObject_GC_NewVar (gcmodule.c:1531)
==17== by 0x4ECB5E8: PyFrame_New (frameobject.c:680)
==17== by 0x4F9C9EF: PyEval_EvalCodeEx (ceval.c:3363)
==17== by 0x4ECE170: function_call (funcobject.c:523)
==17== by 0x4E8B6A4: PyObject_Call (abstract.c:2546)
==17== by 0x4EA86BB: instancemethod_call (classobject.c:2602)
==17== by 0x4E8B6A4: PyObject_Call (abstract.c:2546)
==17== by 0x4F9FD5F: PyEval_CallObjectWithKeywords (ceval.c:4219)
==17== by 0x4E8B623: PyObject_CallObject (abstract.c:2534)
==17== by 0x203DE514: pybind11::detail::simple_collector<(pybind11::return_value_policy)1>::call(_object*) const (cast.h:2250)
==17== by 0x20502AAB: pybind11::object pybind11::detail::object_api<pybind11::handle>::operator()<(pybind11::return_value_policy)1, drake::systems::Context<double> const*, Eigen::VectorBlock<Eigen::Matrix<double, -1, 1, 0, -1, 1> const, -1> const&, Eigen::VectorBlock<Eigen::Matrix<double, -1, 1, 0, -1, 1> const, -1> const&, Eigen::Ref<Eigen::Matrix<double, -1, 1, 0, -1, 1>, 0, Eigen::InnerStride<1> > >(drake::systems::Context<double> const*&&, Eigen::VectorBlock<Eigen::Matrix<double, -1, 1, 0, -1, 1> const, -1> const&, Eigen::VectorBlock<Eigen::Matrix<double, -1, 1, 0, -1, 1> const, -1> const&, Eigen::Ref<Eigen::Matrix<double, -1, 1, 0, -1, 1>, 0, Eigen::InnerStride<1> >&&) const (cast.h:2405)
==17== by 0x20502F4A: drake::pydrake::(anonymous namespace)::Impl<double>::PyVectorSystem::DoCalcVectorTimeDerivatives(drake::systems::Context<double> const&, Eigen::VectorBlock<Eigen::Matrix<double, -1, 1, 0, -1, 1> const, -1> const&, Eigen::VectorBlock<Eigen::Matrix<double, -1, 1, 0, -1, 1> const, -1> const&, Eigen::VectorBlock<Eigen::Matrix<double, -1, 1, 0, -1, 1>, -1>*) const (framework_py_systems.cc:319)
==17== by 0xB340C35: drake::systems::VectorSystem<double>::DoCalcTimeDerivatives(drake::systems::Context<double> const&, drake::systems::ContinuousState<double>*) const (vector_system.h:173)
==17== by 0x2137BA57: void pybind11::cpp_function::initialize<drake::pydrake::pybind11_init_test_util(pybind11::module&)::{lambda(drake::systems::VectorSystem<double> const&, drake::systems::Context<double>*, bool, double)#4}, std::unique_ptr<drake::systems::SystemOutput<double>, std::default_delete<drake::systems::SystemOutput> >, drake::systems::VectorSystem<double> const&, drake::systems::Context<double>*, bool, double, pybind11::name, pybind11::scope, pybind11::sibling>(drake::pydrake::pybind11_init_test_util(pybind11::module&)::{lambda(drake::systems::VectorSystem<double> const&, drake::systems::Context<double>*, bool, double)#4}&&, std::unique_ptr<drake::systems::SystemOutput<double>, std::default_delete<drake::systems::SystemOutput> > (*)(drake::systems::VectorSystem<double> const&, drake::systems::Context<double>*, bool, double), pybind11::name const&, pybind11::scope const&, pybind11::sibling const&)::{lambda(pybind11::detail::function_call&)#3}::_FUN(pybind11::detail::function_call) (system.h:696)
==17==
==17== 496 bytes in 1 blocks are possibly lost in loss record 19,081 of 20,872
==17== at 0x4C2DB8F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==17== by 0x4FF1D61: _PyObject_GC_Malloc (gcmodule.c:1499)
==17== by 0x4FF1E7D: _PyObject_GC_NewVar (gcmodule.c:1531)
==17== by 0x4ECB5E8: PyFrame_New (frameobject.c:680)
==17== by 0x4F9C9EF: PyEval_EvalCodeEx (ceval.c:3363)
==17== by 0x4ECE170: function_call (funcobject.c:523)
==17== by 0x4E8B6A4: PyObject_Call (abstract.c:2546)
==17== by 0x4EA86BB: instancemethod_call (classobject.c:2602)
==17== by 0x4E8B6A4: PyObject_Call (abstract.c:2546)
==17== by 0x4F9FD5F: PyEval_CallObjectWithKeywords (ceval.c:4219)
==17== by 0x4E8B623: PyObject_CallObject (abstract.c:2534)
==17== by 0x203DE514: pybind11::detail::simple_collector<(pybind11::return_value_policy)1>::call(_object*) const (cast.h:2250)
==17== by 0x20495D4F: operator()<(pybind11::return_value_policy)1u, const drake::systems::Context<double>*, const drake::systems::UnrestrictedUpdateEvent<double>*, drake::systems::State<double>*> (cast.h:2405)
==17== by 0x20495D4F: operator() (functional.h:59)
==17== by 0x20495D4F: std::_Function_handler<void (drake::systems::Context<double> const*, drake::systems::UnrestrictedUpdateEvent<double> const*, drake::systems::State<double>*), pybind11::detail::type_caster<std::function<void (drake::systems::Context<double> const*, drake::systems::UnrestrictedUpdateEvent<double> const*, drake::systems::State<double>*)>, void>::load(pybind11::handle, bool)::{lambda(drake::systems::Context<double> const*, drake::systems::UnrestrictedUpdateEvent<double> const*, drake::systems::State<double>*)#1}>::_M_invoke(std::_Any_data const&, drake::systems::Context<double> const*&&, drake::systems::UnrestrictedUpdateEvent<double> const*&&, drake::systems::State<double>*&&) (functional:1871)
==17== by 0x203D6612: operator() (functional:2267)
==17== by 0x203D6612: operator() (wrap_function.h:160)
==17== by 0x203D6612: std::_Function_handler<void (drake::systems::Context<double> const&, drake::systems::UnrestrictedUpdateEvent<double> const&, drake::systems::State<double>*), std::function<void (drake::systems::Context<double> const&, drake::systems::UnrestrictedUpdateEvent<double> const&, drake::systems::State<double>*)> drake::pydrake::detail::wrap_function_impl<drake::pydrake::detail::wrap_ref_ptr, true>::wrap_arg_functions<std::function<void (drake::systems::Context<double> const&, drake::systems::UnrestrictedUpdateEvent<double> const&, drake::systems::State<double>*)> const&>::unwrap<void>(std::function<void (drake::systems::Context<double> const*, drake::systems::UnrestrictedUpdateEvent<double> const*, drake::systems::State<double>*)> const&, std::enable_if<!(enable_wrap_output<void>), void*>::type)::{lambda(drake::systems::Context<double> const&, drake::systems::UnrestrictedUpdateEvent<double> const&, drake::systems::State<double>*)#1}>::_M_invoke(std::_Any_data const&, drake::systems::Context<double> const&, drake::systems::UnrestrictedUpdateEvent<double> const&, drake::systems::State<double>*&&) (functional:1871)
==17== by 0xB355D95: operator() (functional:2267)
==17== by 0xB355D95: handle (event.h:572)
==17== by 0xB355D95: DoCalcUnrestrictedUpdate (leaf_system.h:2472)
==17== by 0xB355D95: drake::systems::LeafSystem<double>::DispatchUnrestrictedUpdateHandler(drake::systems::Context<double> const&, drake::systems::EventCollection<drake::systems::UnrestrictedUpdateEvent<double> > const&, drake::systems::State<double>*) const (leaf_system.h:2581)
==17== by 0xB371AC0: drake::systems::System<double>::CalcUnrestrictedUpdate(drake::systems::Context<double> const&, drake::systems::EventCollection<drake::systems::UnrestrictedUpdateEvent<double> > const&, drake::systems::State<double>*) const (system.h:765)
==17==
==17== 496 bytes in 1 blocks are possibly lost in loss record 19,082 of 20,872
==17== at 0x4C2DB8F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==17== by 0x4FF1D61: _PyObject_GC_Malloc (gcmodule.c:1499)
==17== by 0x4FF1E7D: _PyObject_GC_NewVar (gcmodule.c:1531)
==17== by 0x4ECB5E8: PyFrame_New (frameobject.c:680)
==17== by 0x4F9C9EF: PyEval_EvalCodeEx (ceval.c:3363)
==17== by 0x4ECE170: function_call (funcobject.c:523)
==17== by 0x4E8B6A4: PyObject_Call (abstract.c:2546)
==17== by 0x4EA86BB: instancemethod_call (classobject.c:2602)
==17== by 0x4E8B6A4: PyObject_Call (abstract.c:2546)
==17== by 0x4F9FD5F: PyEval_CallObjectWithKeywords (ceval.c:4219)
==17== by 0x4E8B623: PyObject_CallObject (abstract.c:2534)
==17== by 0x203DE514: pybind11::detail::simple_collector<(pybind11::return_value_policy)1>::call(_object*) const (cast.h:2250)
==17== by 0x20502AAB: pybind11::object pybind11::detail::object_api<pybind11::handle>::operator()<(pybind11::return_value_policy)1, drake::systems::Context<double> const*, Eigen::VectorBlock<Eigen::Matrix<double, -1, 1, 0, -1, 1> const, -1> const&, Eigen::VectorBlock<Eigen::Matrix<double, -1, 1, 0, -1, 1> const, -1> const&, Eigen::Ref<Eigen::Matrix<double, -1, 1, 0, -1, 1>, 0, Eigen::InnerStride<1> > >(drake::systems::Context<double> const*&&, Eigen::VectorBlock<Eigen::Matrix<double, -1, 1, 0, -1, 1> const, -1> const&, Eigen::VectorBlock<Eigen::Matrix<double, -1, 1, 0, -1, 1> const, -1> const&, Eigen::Ref<Eigen::Matrix<double, -1, 1, 0, -1, 1>, 0, Eigen::InnerStride<1> >&&) const (cast.h:2405)
==17== by 0x205032EA: drake::pydrake::(anonymous namespace)::Impl<double>::PyVectorSystem::DoCalcVectorOutput(drake::systems::Context<double> const&, Eigen::VectorBlock<Eigen::Matrix<double, -1, 1, 0, -1, 1> const, -1> const&, Eigen::VectorBlock<Eigen::Matrix<double, -1, 1, 0, -1, 1> const, -1> const&, Eigen::VectorBlock<Eigen::Matrix<double, -1, 1, 0, -1, 1>, -1>*) const (framework_py_systems.cc:303)
==17== by 0xB341E44: drake::systems::VectorSystem<double>::CalcVectorOutput(drake::systems::Context<double> const&, drake::systems::BasicVector<double>*) const (vector_system.h:270)
==17== by 0xA59E8BD: operator() (functional:2267)
==17== by 0xA59E8BD: operator() (leaf_system.h:2667)
==17== by 0xA59E8BD: std::_Function_handler<void (drake::systems::ContextBase const&, drake::AbstractValue*), drake::systems::LeafSystem<double>::CreateVectorLeafOutputPort(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, int, std::function<std::unique_ptr<drake::AbstractValue, std::default_delete<drake::AbstractValue> > ()>, std::function<void (drake::systems::Context<double> const&, drake::systems::BasicVector<double>*)>, std::set<drake::TypeSafeIndex<drake::systems::DependencyTag>, std::less<drake::TypeSafeIndex<drake::systems::DependencyTag> >, std::allocator<drake::TypeSafeIndex<drake::systems::DependencyTag> > >)::{lambda(drake::systems::ContextBase const&, drake::AbstractValue*)#1}>::_M_invoke(std::_Any_data const&, drake::systems::ContextBase const&, drake::AbstractValue*&&) (functional:1871)
==17==
==17== 496 bytes in 1 blocks are possibly lost in loss record 19,083 of 20,872
==17== at 0x4C2DB8F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==17== by 0x4FF1D61: _PyObject_GC_Malloc (gcmodule.c:1499)
==17== by 0x4FF1E7D: _PyObject_GC_NewVar (gcmodule.c:1531)
==17== by 0x4ECB5E8: PyFrame_New (frameobject.c:680)
==17== by 0x4F9C9EF: PyEval_EvalCodeEx (ceval.c:3363)
==17== by 0x4ECE170: function_call (funcobject.c:523)
==17== by 0x4E8B6A4: PyObject_Call (abstract.c:2546)
==17== by 0x4EA86BB: instancemethod_call (classobject.c:2602)
==17== by 0x4E8B6A4: PyObject_Call (abstract.c:2546)
==17== by 0x4F9FD5F: PyEval_CallObjectWithKeywords (ceval.c:4219)
==17== by 0x4E8B623: PyObject_CallObject (abstract.c:2534)
==17== by 0x203DE514: pybind11::detail::simple_collector<(pybind11::return_value_policy)1>::call(_object*) const (cast.h:2250)
==17== by 0x20502AAB: pybind11::object pybind11::detail::object_api<pybind11::handle>::operator()<(pybind11::return_value_policy)1, drake::systems::Context<double> const*, Eigen::VectorBlock<Eigen::Matrix<double, -1, 1, 0, -1, 1> const, -1> const&, Eigen::VectorBlock<Eigen::Matrix<double, -1, 1, 0, -1, 1> const, -1> const&, Eigen::Ref<Eigen::Matrix<double, -1, 1, 0, -1, 1>, 0, Eigen::InnerStride<1> > >(drake::systems::Context<double> const*&&, Eigen::VectorBlock<Eigen::Matrix<double, -1, 1, 0, -1, 1> const, -1> const&, Eigen::VectorBlock<Eigen::Matrix<double, -1, 1, 0, -1, 1> const, -1> const&, Eigen::Ref<Eigen::Matrix<double, -1, 1, 0, -1, 1>, 0, Eigen::InnerStride<1> >&&) const (cast.h:2405)
==17== by 0x20502B9A: drake::pydrake::(anonymous namespace)::Impl<double>::PyVectorSystem::DoCalcVectorDiscreteVariableUpdates(drake::systems::Context<double> const&, Eigen::VectorBlock<Eigen::Matrix<double, -1, 1, 0, -1, 1> const, -1> const&, Eigen::VectorBlock<Eigen::Matrix<double, -1, 1, 0, -1, 1> const, -1> const&, Eigen::VectorBlock<Eigen::Matrix<double, -1, 1, 0, -1, 1>, -1>*) const (framework_py_systems.cc:332)
==17== by 0xB340D45: drake::systems::VectorSystem<double>::DoCalcDiscreteVariableUpdates(drake::systems::Context<double> const&, std::vector<drake::systems::DiscreteUpdateEvent<double> const*, std::allocator<drake::systems::DiscreteUpdateEvent<double> const*> > const&, drake::systems::DiscreteValues<double>*) const (vector_system.h:205)
==17== by 0xB34878E: drake::systems::LeafSystem<double>::DispatchDiscreteVariableUpdateHandler(drake::systems::Context<double> const&, drake::systems::EventCollection<drake::systems::DiscreteUpdateEvent<double> > const&, drake::systems::DiscreteValues<double>*) const (leaf_system.h:2547)
==17==
==17== 504 bytes in 1 blocks are possibly lost in loss record 19,107 of 20,872
==17== at 0x4C2DB8F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==17== by 0x4FF1D61: _PyObject_GC_Malloc (gcmodule.c:1499)
==17== by 0x4FF1E7D: _PyObject_GC_NewVar (gcmodule.c:1531)
==17== by 0x4ECB5E8: PyFrame_New (frameobject.c:680)
==17== by 0x4F9C9EF: PyEval_EvalCodeEx (ceval.c:3363)
==17== by 0x4ECE170: function_call (funcobject.c:523)
==17== by 0x4E8B6A4: PyObject_Call (abstract.c:2546)
==17== by 0x4EA86BB: instancemethod_call (classobject.c:2602)
==17== by 0x4E8B6A4: PyObject_Call (abstract.c:2546)
==17== by 0x4F9FD5F: PyEval_CallObjectWithKeywords (ceval.c:4219)
==17== by 0x4E8B623: PyObject_CallObject (abstract.c:2534)
==17== by 0x203DE514: pybind11::detail::simple_collector<(pybind11::return_value_policy)1>::call(_object*) const (cast.h:2250)
==17== by 0x204FB6A8: pybind11::object pybind11::detail::object_api<pybind11::handle>::operator()<(pybind11::return_value_policy)1, drake::systems::Context<double> const*, std::vector<drake::systems::DiscreteUpdateEvent<double> const*, std::allocator<drake::systems::DiscreteUpdateEvent<double> const*> > const&, drake::systems::DiscreteValues<double>*&>(drake::systems::Context<double> const*&&, std::vector<drake::systems::DiscreteUpdateEvent<double> const*, std::allocator<drake::systems::DiscreteUpdateEvent<double> const*> > const&, drake::systems::DiscreteValues<double>*&) const (cast.h:2405)
==17== by 0x204FB76E: drake::pydrake::(anonymous namespace)::Impl<double>::PyLeafSystemBase<drake::pydrake::(anonymous namespace)::Impl<double>::LeafSystemPublic>::DoCalcDiscreteVariableUpdates(drake::systems::Context<double> const&, std::vector<drake::systems::DiscreteUpdateEvent<double> const*, std::allocator<drake::systems::DiscreteUpdateEvent<double> const*> > const&, drake::systems::DiscreteValues<double>*) const (framework_py_systems.cc:203)
==17== by 0xB34878E: drake::systems::LeafSystem<double>::DispatchDiscreteVariableUpdateHandler(drake::systems::Context<double> const&, drake::systems::EventCollection<drake::systems::DiscreteUpdateEvent<double> > const&, drake::systems::DiscreteValues<double>*) const (leaf_system.h:2547)
==17== by 0x2137AE6C: drake::pydrake::pybind11_init_test_util(pybind11::module&)::{lambda(drake::systems::LeafSystem<double> const&)#3}::operator()(drake::systems::LeafSystem<double> const&) const [clone .isra.1700] [clone .constprop.2176] (system.h:711)
==17==
==17== 512 bytes in 1 blocks are possibly lost in loss record 19,130 of 20,872
==17== at 0x4C2DB8F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==17== by 0x4FF1D61: _PyObject_GC_Malloc (gcmodule.c:1499)
==17== by 0x4FF1E7D: _PyObject_GC_NewVar (gcmodule.c:1531)
==17== by 0x4ECB5E8: PyFrame_New (frameobject.c:680)
==17== by 0x4F9C9EF: PyEval_EvalCodeEx (ceval.c:3363)
==17== by 0x4ECE170: function_call (funcobject.c:523)
==17== by 0x4E8B6A4: PyObject_Call (abstract.c:2546)
==17== by 0x4EA86BB: instancemethod_call (classobject.c:2602)
==17== by 0x4E8B6A4: PyObject_Call (abstract.c:2546)
==17== by 0x4F9FD5F: PyEval_CallObjectWithKeywords (ceval.c:4219)
==17== by 0x4E8B623: PyObject_CallObject (abstract.c:2534)
==17== by 0x203DE514: pybind11::detail::simple_collector<(pybind11::return_value_policy)1>::call(_object*) const (cast.h:2250)
==17== by 0x204FFE74: operator()<(pybind11::return_value_policy)1u, const drake::systems::Context<double>*, drake::AbstractValue*> (cast.h:2405)
==17== by 0x204FFE74: operator() (functional.h:59)
==17== by 0x204FFE74: std::_Function_handler<void (drake::systems::Context<double> const*, drake::AbstractValue*), pybind11::detail::type_caster<std::function<void (drake::systems::Context<double> const*, drake::AbstractValue*)>, void>::load(pybind11::handle, bool)::{lambda(drake::systems::Context<double> const*, drake::AbstractValue*)#1}>::_M_invoke(std::_Any_data const&, drake::systems::Context<double> const*&&, drake::AbstractValue*&&) (functional:1871)
==17== by 0x20497FCA: operator() (functional:2267)
==17== by 0x20497FCA: operator() (wrap_function.h:160)
==17== by 0x20497FCA: std::_Function_handler<void (drake::systems::Context<double> const&, drake::AbstractValue*), std::function<void (drake::systems::Context<double> const&, drake::AbstractValue*)> drake::pydrake::detail::wrap_function_impl<drake::pydrake::detail::wrap_ref_ptr, true>::wrap_arg_functions<std::function<void (drake::systems::Context<double> const&, drake::AbstractValue*)> const&>::unwrap<void>(std::function<void (drake::systems::Context<double> const*, drake::AbstractValue*)> const&, std::enable_if<!(enable_wrap_output<void>), void*>::type)::{lambda(drake::systems::Context<double> const&, drake::AbstractValue*)#1}>::_M_invoke(std::_Any_data const&, drake::systems::Context<double> const&, drake::AbstractValue*&&) (functional:1871)
==17== by 0xAA59D28: operator() (functional:2267)
==17== by 0xAA59D28: operator() (leaf_system.h:2688)
==17== by 0xAA59D28: std::_Function_handler<void (drake::systems::ContextBase const&, drake::AbstractValue*), drake::systems::LeafSystem<double>::CreateAbstractLeafOutputPort(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::function<std::unique_ptr<drake::AbstractValue, std::default_delete<drake::AbstractValue> > ()>, std::function<void (drake::systems::Context<double> const&, drake::AbstractValue*)>, std::set<drake::TypeSafeIndex<drake::systems::DependencyTag>, std::less<drake::TypeSafeIndex<drake::systems::DependencyTag> >, std::allocator<drake::TypeSafeIndex<drake::systems::DependencyTag> > >)::{lambda(drake::systems::ContextBase const&, drake::AbstractValue*)#1}>::_M_invoke(std::_Any_data const&, drake::systems::ContextBase const&, drake::AbstractValue*&&) (functional:1871)
==17== by 0xB395585: operator() (functional:2267)
==17== by 0xB395585: drake::systems::CacheEntry::Calc(drake::systems::ContextBase const&, drake::AbstractValue*) const (cache_entry.cc:52)
==17==
==17== 536 bytes in 1 blocks are possibly lost in loss record 19,181 of 20,872
==17== at 0x4C2DB8F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==17== by 0x4FF1D61: _PyObject_GC_Malloc (gcmodule.c:1499)
==17== by 0x4FF1E7D: _PyObject_GC_NewVar (gcmodule.c:1531)
==17== by 0x4ECB5E8: PyFrame_New (frameobject.c:680)
==17== by 0x4F9C9EF: PyEval_EvalCodeEx (ceval.c:3363)
==17== by 0x4ECE170: function_call (funcobject.c:523)
==17== by 0x4E8B6A4: PyObject_Call (abstract.c:2546)
==17== by 0x4EA86BB: instancemethod_call (classobject.c:2602)
==17== by 0x4E8B6A4: PyObject_Call (abstract.c:2546)
==17== by 0x4F9FD5F: PyEval_CallObjectWithKeywords (ceval.c:4219)
==17== by 0x4E8B623: PyObject_CallObject (abstract.c:2534)
==17== by 0x203DE514: pybind11::detail::simple_collector<(pybind11::return_value_policy)1>::call(_object*) const (cast.h:2250)
==17== by 0x204C3AB5: pybind11::object pybind11::detail::object_api<pybind11::handle>::operator()<(pybind11::return_value_policy)1, int&, int&>(int&, int&) const (cast.h:2405)
==17== by 0x204D4606: drake::pydrake::(anonymous namespace)::Impl<double>::PyLeafSystemBase<drake::pydrake::(anonymous namespace)::Impl<double>::LeafSystemPublic>::DoHasDirectFeedthrough(int, int) const (framework_py_systems.cc:181)
==17== by 0xB35FD98: drake::systems::LeafSystem<double>::GetDirectFeedthroughs() const (leaf_system.h:284)
==17== by 0x2137AC3D: drake::pydrake::pybind11_init_test_util(pybind11::module&)::{lambda(drake::systems::LeafSystem<double> const&)#3}::operator()(drake::systems::LeafSystem<double> const&) const [clone .isra.1700] [clone .constprop.2176] (system.h:287)
==17==
==17== 560 bytes in 1 blocks are possibly lost in loss record 19,238 of 20,872
==17== at 0x4C2DB8F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==17== by 0x4FF1D61: _PyObject_GC_Malloc (gcmodule.c:1499)
==17== by 0x4FF1E7D: _PyObject_GC_NewVar (gcmodule.c:1531)
==17== by 0x4ECB5E8: PyFrame_New (frameobject.c:680)
==17== by 0x4F9C9EF: PyEval_EvalCodeEx (ceval.c:3363)
==17== by 0x4ECE170: function_call (funcobject.c:523)
==17== by 0x4E8B6A4: PyObject_Call (abstract.c:2546)
==17== by 0x4F9FD5F: PyEval_CallObjectWithKeywords (ceval.c:4219)
==17== by 0x1D276473: array_repr (arrayobject.c:670)
==17== by 0x4F2A3F4: wrap_unaryfunc (typeobject.c:4436)
==17== by 0x4EB18D1: wrapper_call (descrobject.c:1044)
==17== by 0x4E8B6A4: PyObject_Call (abstract.c:2546)
==17== by 0x4F9FD5F: PyEval_CallObjectWithKeywords (ceval.c:4219)
==17== by 0x4E8B623: PyObject_CallObject (abstract.c:2534)
==17== by 0x21050204: pybind11::detail::simple_collector<(pybind11::return_value_policy)1>::call(_object*) const (cast.h:2250)
==17== by 0x210559AB: operator()<(pybind11::return_value_policy)1u> (cast.h:2405)
==17== by 0x210559AB: pybind11::cpp_function::initialize_generic(pybind11::detail::function_record*, char const*, std::type_info const* const*, unsigned long) (pybind11.h:204)
==17==
==17== 960 bytes in 2 blocks are possibly lost in loss record 20,041 of 20,872
==17== at 0x4C2DB8F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==17== by 0x4FF1D61: _PyObject_GC_Malloc (gcmodule.c:1499)
==17== by 0x4FF1E7D: _PyObject_GC_NewVar (gcmodule.c:1531)
==17== by 0x4ECB5E8: PyFrame_New (frameobject.c:680)
==17== by 0x4F9C9EF: PyEval_EvalCodeEx (ceval.c:3363)
==17== by 0x4ECE170: function_call (funcobject.c:523)
==17== by 0x4E8B6A4: PyObject_Call (abstract.c:2546)
==17== by 0x4EA86BB: instancemethod_call (classobject.c:2602)
==17== by 0x4E8B6A4: PyObject_Call (abstract.c:2546)
==17== by 0x4F9FD5F: PyEval_CallObjectWithKeywords (ceval.c:4219)
==17== by 0x4E8B623: PyObject_CallObject (abstract.c:2534)
==17== by 0x203DE514: pybind11::detail::simple_collector<(pybind11::return_value_policy)1>::call(_object*) const (cast.h:2250)
==17== by 0x204FA52F: pybind11::object pybind11::detail::object_api<pybind11::handle>::operator()<(pybind11::return_value_policy)1, drake::systems::Context<double> const*>(drake::systems::Context<double> const*&&) const (cast.h:2405)
==17== by 0x204FA597: operator() (functional.h:59)
==17== by 0x204FA597: std::_Function_handler<double (drake::systems::Context<double> const*), pybind11::detail::type_caster<std::function<double (drake::systems::Context<double> const*)>, void>::load(pybind11::handle, bool)::{lambda(drake::systems::Context<double> const*)#1}>::_M_invoke(std::_Any_data const&, drake::systems::Context<double> const*&&) (functional:1857)
==17== by 0x204982AF: operator() (functional:2267)
==17== by 0x204982AF: operator() (wrap_function.h:150)
==17== by 0x204982AF: std::_Function_handler<double (drake::systems::Context<double> const&), std::function<double (drake::systems::Context<double> const&)> drake::pydrake::detail::wrap_function_impl<drake::pydrake::detail::wrap_ref_ptr, true>::wrap_arg_functions<std::function<double (drake::systems::Context<double> const&)> const&>::unwrap<double>(std::function<double (drake::systems::Context<double> const*)> const&, std::enable_if<enable_wrap_output<double>, void*>::type)::{lambda(drake::systems::Context<double> const&)#1}>::_M_invoke(std::_Any_data const&, drake::systems::Context<double> const&) (functional:1857)
==17== by 0x1FFC3FBB: CalcWitnessValue (system.h:1588)
==17== by 0x1FFC3FBB: drake::systems::Simulator<double>::EvaluateWitnessFunctions(std::vector<drake::systems::WitnessFunction<double> const*, std::allocator<drake::systems::WitnessFunction<double> const*> > const&, drake::systems::Context<double> const&) const [clone .isra.952] [clone .constprop.1833] (simulator.h:1175)
==17==
==17== 1,008 bytes in 2 blocks are possibly lost in loss record 20,081 of 20,872
==17== at 0x4C2DB8F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==17== by 0x4FF1D61: _PyObject_GC_Malloc (gcmodule.c:1499)
==17== by 0x4FF1E7D: _PyObject_GC_NewVar (gcmodule.c:1531)
==17== by 0x4ECB5E8: PyFrame_New (frameobject.c:680)
==17== by 0x4F9C9EF: PyEval_EvalCodeEx (ceval.c:3363)
==17== by 0x4ECE170: function_call (funcobject.c:523)
==17== by 0x4E8B6A4: PyObject_Call (abstract.c:2546)
==17== by 0x4EA86BB: instancemethod_call (classobject.c:2602)
==17== by 0x4E8B6A4: PyObject_Call (abstract.c:2546)
==17== by 0x4F9FD5F: PyEval_CallObjectWithKeywords (ceval.c:4219)
==17== by 0x4E8B623: PyObject_CallObject (abstract.c:2534)
==17== by 0x203DE514: pybind11::detail::simple_collector<(pybind11::return_value_policy)1>::call(_object*) const (cast.h:2250)
==17== by 0x20501CB4: operator()<(pybind11::return_value_policy)1u, const drake::systems::Context<double>*, drake::systems::BasicVector<double>*> (cast.h:2405)
==17== by 0x20501CB4: operator() (functional.h:59)
==17== by 0x20501CB4: std::_Function_handler<void (drake::systems::Context<double> const*, drake::systems::BasicVector<double>*), pybind11::detail::type_caster<std::function<void (drake::systems::Context<double> const*, drake::systems::BasicVector<double>*)>, void>::load(pybind11::handle, bool)::{lambda(drake::systems::Context<double> const*, drake::systems::BasicVector<double>*)#1}>::_M_invoke(std::_Any_data const&, drake::systems::Context<double> const*&&, drake::systems::BasicVector<double>*&&) (functional:1871)
==17== by 0x2049800A: operator() (functional:2267)
==17== by 0x2049800A: operator() (wrap_function.h:160)
==17== by 0x2049800A: std::_Function_handler<void (drake::systems::Context<double> const&, drake::systems::BasicVector<double>*), std::function<void (drake::systems::Context<double> const&, drake::systems::BasicVector<double>*)> drake::pydrake::detail::wrap_function_impl<drake::pydrake::detail::wrap_ref_ptr, true>::wrap_arg_functions<std::function<void (drake::systems::Context<double> const&, drake::systems::BasicVector<double>*)> const&>::unwrap<void>(std::function<void (drake::systems::Context<double> const*, drake::systems::BasicVector<double>*)> const&, std::enable_if<!(enable_wrap_output<void>), void*>::type)::{lambda(drake::systems::Context<double> const&, drake::systems::BasicVector<double>*)#1}>::_M_invoke(std::_Any_data const&, drake::systems::Context<double> const&, drake::systems::BasicVector<double>*&&) (functional:1871)
==17== by 0xA59E8BD: operator() (functional:2267)
==17== by 0xA59E8BD: operator() (leaf_system.h:2667)
==17== by 0xA59E8BD: std::_Function_handler<void (drake::systems::ContextBase const&, drake::AbstractValue*), drake::systems::LeafSystem<double>::CreateVectorLeafOutputPort(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, int, std::function<std::unique_ptr<drake::AbstractValue, std::default_delete<drake::AbstractValue> > ()>, std::function<void (drake::systems::Context<double> const&, drake::systems::BasicVector<double>*)>, std::set<drake::TypeSafeIndex<drake::systems::DependencyTag>, std::less<drake::TypeSafeIndex<drake::systems::DependencyTag> >, std::allocator<drake::TypeSafeIndex<drake::systems::DependencyTag> > >)::{lambda(drake::systems::ContextBase const&, drake::AbstractValue*)#1}>::_M_invoke(std::_Any_data const&, drake::systems::ContextBase const&, drake::AbstractValue*&&) (functional:1871)
==17== by 0xB395585: operator() (functional:2267)
==17== by 0xB395585: drake::systems::CacheEntry::Calc(drake::systems::ContextBase const&, drake::AbstractValue*) const (cache_entry.cc:52)
==17==
==17== 1,464 bytes in 3 blocks are possibly lost in loss record 20,319 of 20,872
==17== at 0x4C2DB8F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==17== by 0x4FF1D61: _PyObject_GC_Malloc (gcmodule.c:1499)
==17== by 0x4FF1E7D: _PyObject_GC_NewVar (gcmodule.c:1531)
==17== by 0x4ECB5E8: PyFrame_New (frameobject.c:680)
==17== by 0x4F9C9EF: PyEval_EvalCodeEx (ceval.c:3363)
==17== by 0x4ECE170: function_call (funcobject.c:523)
==17== by 0x4E8B6A4: PyObject_Call (abstract.c:2546)
==17== by 0x4EA86BB: instancemethod_call (classobject.c:2602)
==17== by 0x4E8B6A4: PyObject_Call (abstract.c:2546)
==17== by 0x4F9FD5F: PyEval_CallObjectWithKeywords (ceval.c:4219)
==17== by 0x4E8B623: PyObject_CallObject (abstract.c:2534)
==17== by 0x203DE514: pybind11::detail::simple_collector<(pybind11::return_value_policy)1>::call(_object*) const (cast.h:2250)
==17== by 0x204944E4: operator()<(pybind11::return_value_policy)1u, const drake::systems::Context<double>*, const drake::systems::PublishEvent<double>*> (cast.h:2405)
==17== by 0x204944E4: operator() (functional.h:59)
==17== by 0x204944E4: std::_Function_handler<void (drake::systems::Context<double> const*, drake::systems::PublishEvent<double> const*), pybind11::detail::type_caster<std::function<void (drake::systems::Context<double> const*, drake::systems::PublishEvent<double> const*)>, void>::load(pybind11::handle, bool)::{lambda(drake::systems::Context<double> const*, drake::systems::PublishEvent<double> const*)#1}>::_M_invoke(std::_Any_data const&, drake::systems::Context<double> const*&&, drake::systems::PublishEvent<double> const*&&) (functional:1871)
==17== by 0x203D65D7: operator() (functional:2267)
==17== by 0x203D65D7: operator() (wrap_function.h:160)
==17== by 0x203D65D7: std::_Function_handler<void (drake::systems::Context<double> const&, drake::systems::PublishEvent<double> const&), std::function<void (drake::systems::Context<double> const&, drake::systems::PublishEvent<double> const&)> drake::pydrake::detail::wrap_function_impl<drake::pydrake::detail::wrap_ref_ptr, true>::wrap_arg_functions<std::function<void (drake::systems::Context<double> const&, drake::systems::PublishEvent<double> const&)> const&>::unwrap<void>(std::function<void (drake::systems::Context<double> const*, drake::systems::PublishEvent<double> const*)> const&, std::enable_if<!(enable_wrap_output<void>), void*>::type)::{lambda(drake::systems::Context<double> const&, drake::systems::PublishEvent<double> const&)#1}>::_M_invoke(std::_Any_data const&, drake::systems::Context<double> const&, drake::systems::PublishEvent<double> const&) (functional:1871)
==17== by 0x204FB126: operator() (functional:2267)
==17== by 0x204FB126: handle (event.h:413)
==17== by 0x204FB126: DoPublish (leaf_system.h:2399)
==17== by 0x204FB126: drake::pydrake::(anonymous namespace)::Impl<double>::PyLeafSystemBase<drake::pydrake::(anonymous namespace)::Impl<double>::LeafSystemPublic>::DoPublish(drake::systems::Context<double> const&, std::vector<drake::systems::PublishEvent<double> const*, std::allocator<drake::systems::PublishEvent<double> const*> > const&) const (framework_py_systems.cc:176)
==17== by 0x204D0B64: void pybind11::cpp_function::initialize<pybind11::cpp_function::initialize<void, drake::systems::LeafSystem<double>, drake::systems::Context<double> const&, std::vector<drake::systems::PublishEvent<double> const*, std::allocator<drake::systems::PublishEvent<double> const*> > const&, pybind11::name, pybind11::is_method, pybind11::sibling, char const*>(void (drake::systems::LeafSystem<double>::*)(drake::systems::Context<double> const&, std::vector<drake::systems::PublishEvent<double> const*, std::allocator<drake::systems::PublishEvent<double> const*> > const&) const, pybind11::name const&, pybind11::is_method const&, pybind11::sibling const&, char const* const&)::{lambda(drake::systems::LeafSystem<double> const*, drake::systems::Context<double> const&, std::vector<drake::systems::PublishEvent<double> const*, std::allocator<drake::systems::PublishEvent<double> const*> > const&)#1}, void, drake::systems::LeafSystem<double> const*, drake::systems::Context<double> const&, std::vector<drake::systems::PublishEvent<double> const*, std::allocator<drake::systems::PublishEvent<double> const*> > const&, pybind11::name, pybind11::is_method, pybind11::sibling, char const*>(pybind11::cpp_function::initialize<void, drake::systems::LeafSystem<double>, drake::systems::Context<double> const&, std::vector<drake::systems::PublishEvent<double> const*, std::allocator<drake::systems::PublishEvent<double> const*> > const&, pybind11::name, pybind11::is_method, pybind11::sibling, char const*>(void (drake::systems::LeafSystem<double>::*)(drake::systems::Context<double> const&, std::vector<drake::systems::PublishEvent<double> const*, std::allocator<drake::systems::PublishEvent<double> const*> > const&) const, pybind11::name const&, pybind11::is_method const&, pybind11::sibling const&, char const* const&)::{lambda(drake::systems::LeafSystem<double> const*, drake::systems::Context<double> const&, std::vector<drake::systems::PublishEvent<double> const*, std::allocator<drake::systems::PublishEvent<double> const*> > const&)#1}&&, void (*)(drake::systems::LeafSystem<double> const*, drake::systems::Context<double> const&, std::vector<drake::systems::PublishEvent<double> const*, std::allocator<drake::systems::PublishEvent<double> const*> > const&), pybind11::name const&, pybind11::is_method const&, pybind11::sibling const&, char const* const&)::{lambda(pybind11::detail::function_call&)#3}::operator()(pybind11::detail::function_call) const (pybind11.h:84)
==17==
==17== LEAK SUMMARY:
==17== definitely lost: 0 bytes in 0 blocks
==17== indirectly lost: 0 bytes in 0 blocks
==17== possibly lost: 13,048 bytes in 27 blocks
==17== still reachable: 7,367,017 bytes in 45,416 blocks
==17== of which reachable via heuristic:
==17== newarray : 192 bytes in 12 blocks
==17== suppressed: 1,657,556 bytes in 7,105 blocks
==17== Reachable blocks (those to which a pointer was found) are not shown.
==17== To see them, rerun with: --leak-check=full --show-leak-kinds=all
==17==
==17== For counts of detected and suppressed errors, rerun with: -v
==17== ERROR SUMMARY: 23 errors from 23 contexts (suppressed: 1006 from 1006)
================================================================================
//bindings/pydrake/systems:py/custom_test FAILED in 45.9s
/home/betsy/.cache/bazel/_bazel_betsy/b55d9001a8701bc7bfec3027393db69c/execroot/drake/bazel-out/k8-opt/testlogs/bindings/pydrake/systems/py/custom_test/test.log
Executed 1 out of 1 test: 1 fails locally.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment