=== Test case: mam_SUITE:archive_is_instrumented/1 (click for source code)

=== Config value:

    [{props,[{mam_ns,<<"urn:xmpp:mam:2">>}]},
     {watchdog,<0.47092.0>},
     {basic_group,mam_all},
     {configuration,rdbms_async_pool},
     {wait_for_parallel_writer,[pm]},
     {mam_meta_opts,#{cache =>
                          #{module => internal,strategy => fifo,
                            number_of_segments => 3,time_to_live => 480},
                      is_archivable_message => mod_mam_utils,
                      max_result_limit => 50,default_result_limit => 50,
                      enforce_simple_queries => false,
                      send_message => mod_mam_utils,
                      archive_chat_markers => false,backend => rdbms,
                      full_text_search => true,message_retraction => true,
                      pm =>
                          #{archive_groupchats => false,
                            same_mam_id_for_peers => false},
                      async_writer =>
                          #{enabled => true,batch_size => 30,
                            flush_interval => 1,pool_size => 16},
                      no_stanzaid_element => false,user_prefs_store => rdbms,
                      cache_users => false}},
     {mod_offline_loaded,false},
     {escalus_user_db,{module,escalus_ejabberd}},
     {preset,"mysql_redis"},
     {mim_data_dir,"/home/circleci/project/big_tests/tests/mam_SUITE_data"},
     {tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@746355319fb9.2024-03-21_07.35.41/big_tests.tests.mam_SUITE.logs/run.2024-03-21_07.43.28/mam_suite.archive_is_instrumented.83715.html"},
     {tc_group_properties,[{name,mam06},parallel]},
     {tc_group_path,[[{name,rdbms_async_pool_mam_all},parallel]]},
     {data_dir,"/home/circleci/project/big_tests/_build/default/lib/mongoose_tests/ebin/mam_SUITE_data/"},
     {priv_dir,"/home/circleci/project/big_tests/ct_report/ct_run.test@746355319fb9.2024-03-21_07.35.41/big_tests.tests.mam_SUITE.logs/run.2024-03-21_07.43.28/log_private/"},
     {config_backup,#{[shaper,fast] => {ok,#{max_rate => 50000}},
                      [shaper,mam_shaper] => {ok,#{max_rate => 1}},
                      [shaper,normal] => {ok,#{max_rate => 1000}},
                      [{access,<<"localhost">>},max_user_sessions] =>
                          {ok,[#{value => 10,acl => all}]}}},
     {{saved_modules,mongooseim@localhost,<<"localhost">>},
      #{mod_vcard =>
            #{matches => 30,
              host => {prefix,<<"vjud.">>},
              search => true,iqdisc => parallel,backend => rdbms},
        mod_roster =>
            #{iqdisc => one_queue,backend => rdbms,versioning => false,
              store_current_id => false},
        mod_muc =>
            #{access => muc,
              host => {prefix,<<"muc.">>},
              backend => rdbms,max_users => 200,room_shaper => none,
              http_auth_pool => none,hibernate_timeout => 2000,
              history_size => 20,hibernated_room_check_interval => 1000,
              hibernated_room_timeout => 2000,access_create => muc_create,
              access_admin => none,access_persistent => all,
              default_room =>
                  #{public => true,description => <<>>,persistent => false,
                    title => <<>>,password => <<>>,affiliations => [],
                    subject => <<>>,allow_change_subj => true,
                    allow_query_users => true,allow_private_messages => true,
                    allow_visitor_status => true,
                    allow_visitor_nickchange => true,public_list => true,
                    moderated => true,members_by_default => true,
                    members_only => false,allow_user_invites => false,
                    allow_multiple_sessions => false,
                    password_protected => false,anonymous => true,
                    max_users => 200,maygetmemberlist => [],logging => false,
                    subject_author => <<>>},
              load_permanent_rooms_at_startup => false,
              max_room_id => infinity,online_backend => mnesia,
              min_presence_interval => 0,max_users_admin_threshold => 5,
              user_message_shaper => none,user_presence_shaper => none,
              min_message_interval => 0,max_user_conferences => 10,
              max_room_name => infinity,max_room_desc => infinity},
        mod_sic => #{iqdisc => one_queue},
        mod_register =>
            #{access => register,iqdisc => one_queue,
              registration_watchers => [],password_strength => 0,
              ip_access => [{allow,"127.0.0.0/8"},{deny,"0.0.0.0/0"}]},
        mod_amp => #{},mod_presence => #{},
        mod_disco =>
            #{iqdisc => one_queue,server_info => [],extra_domains => [],
              users_can_see_hidden_services => false},
        mod_muc_log =>
            #{dirname => room_jid,outdir => "/tmp/muclogs",
              file_format => html,css_file => false,timezone => local,
              spam_prevention => true,
              top_link => {"/","Home"},
              access_log => muc,dirtype => subdirs},
        mod_stream_management =>
            #{buffer => true,ack => true,backend => mnesia,
              stale_h =>
                  #{enabled => false,repeat_after => 1800,geriatric => 3600},
              buffer_max => 100,ack_freq => 1,resume_timeout => 600},
        mod_adhoc => #{iqdisc => one_queue,report_commands_node => false},
        mod_cache_users =>
            #{strategy => fifo,number_of_segments => 5,time_to_live => 2},
        mod_bosh =>
            #{backend => mnesia,inactivity => 30,max_pause => 120,
              max_wait => infinity,server_acks => false},
        mod_carboncopy => #{iqdisc => no_queue}}},
     {escalus_users,[{alice,[{username,<<"alicE">>},
                             {server,<<"localhost">>},
                             {password,<<"matygrysa">>}]},
                     {bob,[{username,<<"bOb">>},
                           {server,<<"localhost">>},
                           {password,<<"makrolika">>}]},
                     {kate,[{username,<<"kate">>},
                            {server,<<"localhost">>},
                            {password,<<"makrowe;p">>}]},
                     {carol,[{username,<<"carol">>},
                             {server,<<"localhost">>},
                             {password,<<"jinglebells">>},
                             {transport,escalus_bosh},
                             {path,<<"/http-bind">>},
                             {port,5280}]}]}]

=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@746355319fb9.2024-03-21_07.35.41"

=== Started at 2024-03-21 07:43:54


*** CT 2024-03-21 07:43:54.795 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_2854.html

*** User 2024-03-21 07:43:54.957 ***🔗
alicE_archive_is_instrumented_1979@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2024-03-21 07:43:54.957 ***🔗
alicE_archive_is_instrumented_1979@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='ce022f08ba1a0d16' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-03-21 07:43:54.957 ***🔗
alicE_archive_is_instrumented_1979@localhost/res1 in
<stream:features>
	<register xmlns='http://jabber.org/features/iq-register'/>
	<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
	<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
		<mechanism>SCRAM-SHA-256</mechanism>
		<mechanism>PLAIN</mechanism>
	</mechanisms>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2024-03-21 07:43:54.957 ***🔗
alicE_archive_is_instrumented_1979@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2FyY2hpdmVfaXNfaW5zdHJ1bWVudGVkXzE5NzkAbWF0eWdyeXNh</auth>



*** User 2024-03-21 07:43:54.965 ***🔗
alicE_archive_is_instrumented_1979@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-03-21 07:43:54.965 ***🔗
alicE_archive_is_instrumented_1979@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2024-03-21 07:43:54.965 ***🔗
alicE_archive_is_instrumented_1979@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='1186569a92d3f652' from='localhost' version='1.0' xml:lang='en' to='alice_archive_is_instrumented_1979@localhost'>

*** User 2024-03-21 07:43:54.965 ***🔗
alicE_archive_is_instrumented_1979@localhost/res1 in
<stream:features>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
	<register xmlns='http://jabber.org/features/iq-register'/>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2024-03-21 07:43:54.966 ***🔗
alicE_archive_is_instrumented_1979@localhost/res1 out
<iq type='set' id='ff2678709ebdce3ea8dbc59efa08c772'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-03-21 07:43:54.966 ***🔗
alicE_archive_is_instrumented_1979@localhost/res1 in
<iq id='ff2678709ebdce3ea8dbc59efa08c772' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_archive_is_instrumented_1979@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-03-21 07:43:54.967 ***🔗
alice_archive_is_instrumented_1979@localhost/res1 out
<iq type='set' id='6273116a07425950103462c55f7a6d1f'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-21 07:43:54.968 ***🔗
alice_archive_is_instrumented_1979@localhost/res1 in
<iq from='localhost' to='alice_archive_is_instrumented_1979@localhost/res1' id='6273116a07425950103462c55f7a6d1f' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-21 07:43:54.968 ***🔗
alice_archive_is_instrumented_1979@localhost/res1 out
<presence/>



*** User 2024-03-21 07:43:54.982 ***🔗
alice_archive_is_instrumented_1979@localhost/res1 in
<presence from='alice_archive_is_instrumented_1979@localhost/res1' to='alice_archive_is_instrumented_1979@localhost/res1'/>



*** User 2024-03-21 07:43:54.983 ***🔗
bOb_archive_is_instrumented_1979@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2024-03-21 07:43:54.984 ***🔗
bOb_archive_is_instrumented_1979@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='a62d5b9aad33bdfc' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-03-21 07:43:54.984 ***🔗
bOb_archive_is_instrumented_1979@localhost/res1 in
<stream:features>
	<register xmlns='http://jabber.org/features/iq-register'/>
	<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
	<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
		<mechanism>SCRAM-SHA-256</mechanism>
		<mechanism>PLAIN</mechanism>
	</mechanisms>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2024-03-21 07:43:54.985 ***🔗
bOb_archive_is_instrumented_1979@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9hcmNoaXZlX2lzX2luc3RydW1lbnRlZF8xOTc5AG1ha3JvbGlrYQ==</auth>



*** User 2024-03-21 07:43:54.988 ***🔗
bOb_archive_is_instrumented_1979@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-03-21 07:43:54.988 ***🔗
bOb_archive_is_instrumented_1979@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2024-03-21 07:43:54.989 ***🔗
bOb_archive_is_instrumented_1979@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='b53ffd4660f0c0af' from='localhost' version='1.0' xml:lang='en' to='bob_archive_is_instrumented_1979@localhost'>

*** User 2024-03-21 07:43:54.989 ***🔗
bOb_archive_is_instrumented_1979@localhost/res1 in
<stream:features>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
	<register xmlns='http://jabber.org/features/iq-register'/>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2024-03-21 07:43:54.989 ***🔗
bOb_archive_is_instrumented_1979@localhost/res1 out
<iq type='set' id='555b6d454b3ec7141d5c8359603202ae'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-03-21 07:43:54.989 ***🔗
bOb_archive_is_instrumented_1979@localhost/res1 in
<iq id='555b6d454b3ec7141d5c8359603202ae' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_archive_is_instrumented_1979@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-03-21 07:43:54.989 ***🔗
bob_archive_is_instrumented_1979@localhost/res1 out
<iq type='set' id='4e5a99ef75ad041e820553b5e4776589'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-21 07:43:54.990 ***🔗
bob_archive_is_instrumented_1979@localhost/res1 in
<iq from='localhost' to='bob_archive_is_instrumented_1979@localhost/res1' id='4e5a99ef75ad041e820553b5e4776589' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-21 07:43:54.990 ***🔗
bob_archive_is_instrumented_1979@localhost/res1 out
<presence/>



*** User 2024-03-21 07:43:55.065 ***🔗
bob_archive_is_instrumented_1979@localhost/res1 in
<presence from='bob_archive_is_instrumented_1979@localhost/res1' to='bob_archive_is_instrumented_1979@localhost/res1'/>



*** User 2024-03-21 07:43:55.065 ***🔗
alice_archive_is_instrumented_1979@localhost/res1 out
<message type='chat' to='bob_archive_is_instrumented_1979@localhost/res1'>
	<body>OH, HAI!</body>
</message>



*** User 2024-03-21 07:43:55.164 ***🔗
bob_archive_is_instrumented_1979@localhost/res1 in
<message from='alice_archive_is_instrumented_1979@localhost/res1' to='bob_archive_is_instrumented_1979@localhost/res1' type='chat'>
	<body>OH, HAI!</body>
	<stanza-id by='bob_archive_is_instrumented_1979@localhost' id='C516RQ4DC701' xmlns='urn:xmpp:sid:0'/>
</message>



*** User 2024-03-21 07:43:55.200 ***🔗
Matching events: [{{mod_mam_pm_archive_message,
                    #{host_type => <<"localhost">>}},
                   #{count => 1,time => 10,
                     params =>
                      #{packet =>
                         {xmlel,<<"message">>,
                          [{<<"type">>,<<"chat">>},
                           {<<"to">>,
                            <<"bob_archive_is_instrumented_1979@localhost/res1">>}],
                          [{xmlel,<<"body">>,[],[{xmlcdata,<<"OH, HAI!">>}]}]},
                        direction => outgoing,
                        message_id => 438017800976739073,
                        local_jid =>
                         {jid,<<"alice_archive_is_instrumented_1979">>,
                          <<"localhost">>,<<"res1">>},
                        remote_jid =>
                         {jid,<<"bob_archive_is_instrumented_1979">>,
                          <<"localhost">>,<<"res1">>},
                        source_jid =>
                         {jid,<<"alice_archive_is_instrumented_1979">>,
                          <<"localhost">>,<<"res1">>},
                        is_groupchat => false,archive_id => 813,
                        origin_id => none}}}]

*** User 2024-03-21 07:43:55.213 ***🔗
waiting for archive_size is done in 0 miliseconds

*** User 2024-03-21 07:43:55.215 ***🔗
Matching events: [{{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 3550,time_per_message => 3550}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 2318,time_per_message => 2318}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 2,time => 3093,time_per_message => 1547}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 2,time => 3869,time_per_message => 1935}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 2,time => 7321,time_per_message => 3661}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 3,time => 7706,time_per_message => 2569}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 2,time => 4118,time_per_message => 2059}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 3,time => 7845,time_per_message => 2615}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 3514,time_per_message => 3514}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 4406,time_per_message => 4406}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 3676,time_per_message => 3676}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 2,time => 8303,time_per_message => 4152}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 3662,time_per_message => 3662}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 4763,time_per_message => 4763}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 4,time => 11704,time_per_message => 2926}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 2526,time_per_message => 2526}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 3,time => 12071,time_per_message => 4024}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 2,time => 4613,time_per_message => 2307}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 58200,time_per_message => 58200}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 56997,time_per_message => 56997}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 10117,time_per_message => 10117}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 5,time => 69591,time_per_message => 13918}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 2,time => 10870,time_per_message => 5435}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 6021,time_per_message => 6021}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 3,time => 12833,time_per_message => 4278}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 6,time => 77289,time_per_message => 12882}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 3,time => 11629,time_per_message => 3876}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 5,time => 19493,time_per_message => 3899}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 3660,time_per_message => 3660}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 5,time => 17886,time_per_message => 3577}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 2845,time_per_message => 2845}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 6,time => 81706,time_per_message => 13618}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 3943,time_per_message => 3943}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 4,time => 14360,time_per_message => 3590}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 4853,time_per_message => 4853}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 4,time => 12690,time_per_message => 3173}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 1719,time_per_message => 1719}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 8646,time_per_message => 8646}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 4,time => 68868,time_per_message => 17217}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 2331,time_per_message => 2331}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 10,time => 85597,time_per_message => 8560}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 3900,time_per_message => 3900}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 11,time => 105490,time_per_message => 9590}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 2948,time_per_message => 2948}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 4,time => 74688,time_per_message => 18672}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 10,time => 90387,time_per_message => 9039}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 2,time => 6802,time_per_message => 3401}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 6878,time_per_message => 6878}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 4971,time_per_message => 4971}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 2458,time_per_message => 2458}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 2709,time_per_message => 2709}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 2780,time_per_message => 2780}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 3547,time_per_message => 3547}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 14,time => 103922,time_per_message => 7423}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 2182,time_per_message => 2182}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 2385,time_per_message => 2385}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 3171,time_per_message => 3171}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 3846,time_per_message => 3846}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 2758,time_per_message => 2758}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 7,time => 15836,time_per_message => 2262}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 9,time => 19212,time_per_message => 2135}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 2368,time_per_message => 2368}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 2413,time_per_message => 2413}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 17,time => 108685,time_per_message => 6393}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 1937,time_per_message => 1937}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 2,time => 6120,time_per_message => 3060}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 1003,time_per_message => 1003}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 1163,time_per_message => 1163}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 2121,time_per_message => 2121}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 14,time => 28387,time_per_message => 2028}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 3,time => 4219,time_per_message => 1406}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 10,time => 15042,time_per_message => 1504}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 1899,time_per_message => 1899}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 1145,time_per_message => 1145}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 1652,time_per_message => 1652}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 1226,time_per_message => 1226}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 19,time => 31591,time_per_message => 1663}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 45364,time_per_message => 45364}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 44236,time_per_message => 44236}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 2117,time_per_message => 2117}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 1275,time_per_message => 1275}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 1062,time_per_message => 1062}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 1021,time_per_message => 1021}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 881,time_per_message => 881}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 858,time_per_message => 858}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 1575,time_per_message => 1575}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 1267,time_per_message => 1267}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 1043,time_per_message => 1043}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 1259,time_per_message => 1259}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 2,time => 2530,time_per_message => 1265}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 2,time => 3587,time_per_message => 1794}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 5198,time_per_message => 5198}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 4333,time_per_message => 4333}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 6265,time_per_message => 6265}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 2,time => 8261,time_per_message => 4131}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 2,time => 8357,time_per_message => 4179}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 3544,time_per_message => 3544}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 2,time => 6348,time_per_message => 3174}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 2,time => 3590,time_per_message => 1795}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 5,time => 11290,time_per_message => 2258}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 2,time => 4524,time_per_message => 2262}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 5,time => 10159,time_per_message => 2032}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 1737,time_per_message => 1737}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 2020,time_per_message => 2020}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 5,time => 12457,time_per_message => 2491}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 3114,time_per_message => 3114}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 5249,time_per_message => 5249}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 2,time => 7693,time_per_message => 3847}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 2,time => 8061,time_per_message => 4031}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 3546,time_per_message => 3546}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 3,time => 9075,time_per_message => 3025}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 2782,time_per_message => 2782}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 2,time => 7482,time_per_message => 3741}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 7,time => 19535,time_per_message => 2791}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 8,time => 24237,time_per_message => 3030}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 3396,time_per_message => 3396}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 57286,time_per_message => 57286}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 3,time => 69821,time_per_message => 23274}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 6061,time_per_message => 6061}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 8989,time_per_message => 8989}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 4,time => 75308,time_per_message => 18827}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 2,time => 11909,time_per_message => 5955}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 2,time => 9017,time_per_message => 4509}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 8,time => 98977,time_per_message => 12372}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 2,time => 8459,time_per_message => 4230}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 4565,time_per_message => 4565}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 6,time => 28239,time_per_message => 4707}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 4167,time_per_message => 4167}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 8,time => 93346,time_per_message => 11668}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 3,time => 13788,time_per_message => 4596}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 3844,time_per_message => 3844}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 70524,time_per_message => 70524}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 6530,time_per_message => 6530}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 11000,time_per_message => 11000}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 9,time => 117867,time_per_message => 13096}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 2,time => 77671,time_per_message => 38836}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 4,time => 85275,time_per_message => 21319}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 2,time => 8479,time_per_message => 4240}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 4598,time_per_message => 4598}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 4696,time_per_message => 4696}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 10,time => 110962,time_per_message => 11096}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 4556,time_per_message => 4556}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 3,time => 13842,time_per_message => 4614}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 4,time => 20210,time_per_message => 5053}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 3625,time_per_message => 3625}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 2,time => 12930,time_per_message => 6465}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 5,time => 20494,time_per_message => 4099}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 4,time => 19468,time_per_message => 4867}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 2,time => 59872,time_per_message => 29936}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 3,time => 74260,time_per_message => 24753}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 3,time => 69905,time_per_message => 23302}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 11,time => 183156,time_per_message => 16651}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 4,time => 79699,time_per_message => 19925}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 5,time => 90446,time_per_message => 18089}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 4,time => 80736,time_per_message => 20184}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 3,time => 11375,time_per_message => 3792}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 6,time => 26375,time_per_message => 4396}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 2,time => 6900,time_per_message => 3450}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 11,time => 111098,time_per_message => 10100}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 16,time => 204168,time_per_message => 12761}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 2,time => 5233,time_per_message => 2617}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 2,time => 3419,time_per_message => 1710}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 1971,time_per_message => 1971}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 14,time => 197370,time_per_message => 14098}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 2167,time_per_message => 2167}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 5,time => 21100,time_per_message => 4220}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 1827,time_per_message => 1827}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 3149,time_per_message => 3149}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 5089,time_per_message => 5089}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 3951,time_per_message => 3951}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 6581,time_per_message => 6581}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 5322,time_per_message => 5322}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 3614,time_per_message => 3614}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 4553,time_per_message => 4553}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 30,time => 13922,time_per_message => 464}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 4577,time_per_message => 4577}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 2843,time_per_message => 2843}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 3247,time_per_message => 3247}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 10833,time_per_message => 10833}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 2,time => 12568,time_per_message => 6284}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 5988,time_per_message => 5988}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 3331,time_per_message => 3331}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 4489,time_per_message => 4489}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 7,time => 29644,time_per_message => 4235}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 5663,time_per_message => 5663}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 15,time => 128635,time_per_message => 8576}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 6,time => 29634,time_per_message => 4939}}]

*** User 2024-03-21 07:43:55.263 ***🔗
Matching events: [{{mod_mam_pm_remove_archive,#{host_type => <<"localhost">>}},
                   #{count => 1,
                     jid =>
                         {jid,<<"alice_archive_is_instrumented_1979">>,
                              <<"localhost">>,<<>>}}}]

*** User 2024-03-21 07:43:55.263 ***🔗
bob_archive_is_instrumented_1979@localhost/res1 out
</stream:stream>

*** User 2024-03-21 07:43:55.264 ***🔗
bob_archive_is_instrumented_1979@localhost/res1 in
</stream:stream>

*** User 2024-03-21 07:43:55.264 ***🔗
alice_archive_is_instrumented_1979@localhost/res1 out
</stream:stream>

*** User 2024-03-21 07:43:55.264 ***🔗
alice_archive_is_instrumented_1979@localhost/res1 in
</stream:stream>
*** CT 2024-03-21 07:43:55.268 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_2859.html



=== Ended at 2024-03-21 07:43:55
=== successfully completed test case
=== === Returned value: ok