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

=== Config value:

    [{props,[{mam_ns,<<"urn:xmpp:mam:2">>}]},
     {watchdog,<0.47127.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},
                      send_message => mod_mam_utils,backend => rdbms,
                      max_result_limit => 50,default_result_limit => 50,
                      archive_chat_markers => false,
                      enforce_simple_queries => false,
                      full_text_search => true,
                      is_archivable_message => mod_mam_utils,
                      no_stanzaid_element => false,
                      async_writer =>
                          #{enabled => true,batch_size => 30,
                            flush_interval => 1,pool_size => 16},
                      pm =>
                          #{archive_groupchats => false,
                            same_mam_id_for_peers => false},
                      message_retraction => true,user_prefs_store => rdbms,
                      cache_users => false}},
     {mod_offline_loaded,false},
     {escalus_user_db,{module,escalus_ejabberd}},
     {preset,"pgsql_cets"},
     {mim_data_dir,"/home/circleci/project/big_tests/tests/mam_SUITE_data"},
     {tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@2ed2b07c4324.2024-04-18_10.56.18/big_tests.tests.mam_SUITE.logs/run.2024-04-18_11.02.57/mam_suite.archive_is_instrumented.92419.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@2ed2b07c4324.2024-04-18_10.56.18/big_tests.tests.mam_SUITE.logs/run.2024-04-18_11.02.57/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_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_muc =>
            #{access => muc,
              host => {prefix,<<"muc.">>},
              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 => <<>>,title => <<>>,
                    persistent => false,password => <<>>,
                    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,
                    affiliations => [],subject => <<>>,subject_author => <<>>},
              load_permanent_rooms_at_startup => false,backend => rdbms,
              max_room_id => infinity,online_backend => cets,
              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_amp => #{},
        mod_disco =>
            #{iqdisc => one_queue,users_can_see_hidden_services => false,
              server_info => [],extra_domains => []},
        mod_presence => #{},
        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 => cets,
              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_bosh =>
            #{backend => cets,inactivity => 30,max_pause => 120,
              max_wait => infinity,server_acks => false},
        mod_cache_users =>
            #{strategy => fifo,number_of_segments => 5,time_to_live => 2},
        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@2ed2b07c4324.2024-04-18_10.56.18"

=== Started at 2024-04-18 11:03:20


*** CT 2024-04-18 11:03:20.015 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_2869.html

*** User 2024-04-18 11:03:20.063 ***🔗
alicE_archive_is_instrumented_1965@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-04-18 11:03:20.063 ***🔗
alicE_archive_is_instrumented_1965@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='b0cd7856f1381d5a' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-04-18 11:03:20.063 ***🔗
alicE_archive_is_instrumented_1965@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-04-18 11:03:20.063 ***🔗
alicE_archive_is_instrumented_1965@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2FyY2hpdmVfaXNfaW5zdHJ1bWVudGVkXzE5NjUAbWF0eWdyeXNh</auth>



*** User 2024-04-18 11:03:20.064 ***🔗
alicE_archive_is_instrumented_1965@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-18 11:03:20.065 ***🔗
alicE_archive_is_instrumented_1965@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-04-18 11:03:20.066 ***🔗
alicE_archive_is_instrumented_1965@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='638fb1eb74c2eef1' from='localhost' version='1.0' xml:lang='en' to='alice_archive_is_instrumented_1965@localhost'>

*** User 2024-04-18 11:03:20.066 ***🔗
alicE_archive_is_instrumented_1965@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-04-18 11:03:20.066 ***🔗
alicE_archive_is_instrumented_1965@localhost/res1 out
<iq type='set' id='674608f2a483f4d44e4a18bc8268c9d4'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-18 11:03:20.066 ***🔗
alicE_archive_is_instrumented_1965@localhost/res1 in
<iq id='674608f2a483f4d44e4a18bc8268c9d4' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_archive_is_instrumented_1965@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-04-18 11:03:20.066 ***🔗
alice_archive_is_instrumented_1965@localhost/res1 out
<iq type='set' id='80fb04ab01e6a624dd8a48e58c5126c9'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-18 11:03:20.067 ***🔗
alice_archive_is_instrumented_1965@localhost/res1 in
<iq from='localhost' to='alice_archive_is_instrumented_1965@localhost/res1' id='80fb04ab01e6a624dd8a48e58c5126c9' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-18 11:03:20.067 ***🔗
alice_archive_is_instrumented_1965@localhost/res1 out
<presence/>



*** User 2024-04-18 11:03:20.069 ***🔗
alice_archive_is_instrumented_1965@localhost/res1 in
<presence from='alice_archive_is_instrumented_1965@localhost/res1' to='alice_archive_is_instrumented_1965@localhost/res1'/>



*** User 2024-04-18 11:03:20.070 ***🔗
bOb_archive_is_instrumented_1965@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-04-18 11:03:20.070 ***🔗
bOb_archive_is_instrumented_1965@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='76b42b8a500ad732' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-04-18 11:03:20.071 ***🔗
bOb_archive_is_instrumented_1965@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-04-18 11:03:20.071 ***🔗
bOb_archive_is_instrumented_1965@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9hcmNoaXZlX2lzX2luc3RydW1lbnRlZF8xOTY1AG1ha3JvbGlrYQ==</auth>



*** User 2024-04-18 11:03:20.072 ***🔗
bOb_archive_is_instrumented_1965@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-18 11:03:20.072 ***🔗
bOb_archive_is_instrumented_1965@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-04-18 11:03:20.072 ***🔗
bOb_archive_is_instrumented_1965@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='e26409edc4c11bb1' from='localhost' version='1.0' xml:lang='en' to='bob_archive_is_instrumented_1965@localhost'>

*** User 2024-04-18 11:03:20.073 ***🔗
bOb_archive_is_instrumented_1965@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-04-18 11:03:20.073 ***🔗
bOb_archive_is_instrumented_1965@localhost/res1 out
<iq type='set' id='c00661eededec9d46edf5409b2933704'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-18 11:03:20.073 ***🔗
bOb_archive_is_instrumented_1965@localhost/res1 in
<iq id='c00661eededec9d46edf5409b2933704' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_archive_is_instrumented_1965@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-04-18 11:03:20.073 ***🔗
bob_archive_is_instrumented_1965@localhost/res1 out
<iq type='set' id='f445b8ddf53aeaacab35585c7198c1a2'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-18 11:03:20.075 ***🔗
bob_archive_is_instrumented_1965@localhost/res1 in
<iq from='localhost' to='bob_archive_is_instrumented_1965@localhost/res1' id='f445b8ddf53aeaacab35585c7198c1a2' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-18 11:03:20.075 ***🔗
bob_archive_is_instrumented_1965@localhost/res1 out
<presence/>



*** User 2024-04-18 11:03:20.078 ***🔗
bob_archive_is_instrumented_1965@localhost/res1 in
<presence from='bob_archive_is_instrumented_1965@localhost/res1' to='bob_archive_is_instrumented_1965@localhost/res1'/>



*** User 2024-04-18 11:03:20.078 ***🔗
alice_archive_is_instrumented_1965@localhost/res1 out
<message type='chat' to='bob_archive_is_instrumented_1965@localhost/res1'>
	<body>OH, HAI!</body>
</message>



*** User 2024-04-18 11:03:20.087 ***🔗
bob_archive_is_instrumented_1965@localhost/res1 in
<message from='alice_archive_is_instrumented_1965@localhost/res1' to='bob_archive_is_instrumented_1965@localhost/res1' type='chat'>
	<body>OH, HAI!</body>
	<stanza-id by='bob_archive_is_instrumented_1965@localhost' id='C5ISTD1A7N01' xmlns='urn:xmpp:sid:0'/>
</message>



*** User 2024-04-18 11:03:20.162 ***🔗
Matching events: [{{mod_mam_pm_archive_message,
                    #{host_type => <<"localhost">>}},
                   #{count => 1,time => 9,
                     params =>
                      #{packet =>
                         {xmlel,<<"message">>,
                          [{<<"type">>,<<"chat">>},
                           {<<"to">>,
                            <<"bob_archive_is_instrumented_1965@localhost/res1">>}],
                          [{xmlel,<<"body">>,[],[{xmlcdata,<<"OH, HAI!">>}]}]},
                        direction => outgoing,archive_id => 817,
                        message_id => 438640179220306689,
                        remote_jid =>
                         {jid,<<"bob_archive_is_instrumented_1965">>,
                          <<"localhost">>,<<"res1">>},
                        local_jid =>
                         {jid,<<"alice_archive_is_instrumented_1965">>,
                          <<"localhost">>,<<"res1">>},
                        source_jid =>
                         {jid,<<"alice_archive_is_instrumented_1965">>,
                          <<"localhost">>,<<"res1">>},
                        is_groupchat => false,origin_id => none}}}]

*** User 2024-04-18 11:03:20.166 ***🔗
waiting for archive_size is done in 0 miliseconds

*** User 2024-04-18 11:03:20.167 ***🔗
Matching events: [{{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 740,time_per_message => 740}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 1032,time_per_message => 1032}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 3,time => 1311,time_per_message => 437}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 577,time_per_message => 577}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 2,time => 994,time_per_message => 497}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 451,time_per_message => 451}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 4,time => 1786,time_per_message => 447}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 480,time_per_message => 480}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 544,time_per_message => 544}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 5,time => 2877,time_per_message => 575}},
                  {{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 => 1193,time_per_message => 1193}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 34201,time_per_message => 34201}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 787,time_per_message => 787}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 564,time_per_message => 564}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 376,time_per_message => 376}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 4,time => 2548,time_per_message => 637}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 593,time_per_message => 593}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 772,time_per_message => 772}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 3,time => 1344,time_per_message => 448}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 586,time_per_message => 586}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 475,time_per_message => 475}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 798,time_per_message => 798}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 1216,time_per_message => 1216}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 2,time => 1592,time_per_message => 796}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 692,time_per_message => 692}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 883,time_per_message => 883}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 595,time_per_message => 595}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 1423,time_per_message => 1423}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 1093,time_per_message => 1093}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 2,time => 1545,time_per_message => 773}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 1259,time_per_message => 1259}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 523,time_per_message => 523}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 3,time => 1839,time_per_message => 613}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 1312,time_per_message => 1312}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 1726,time_per_message => 1726}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 1247,time_per_message => 1247}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 2,time => 2655,time_per_message => 1328}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 1480,time_per_message => 1480}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 3453,time_per_message => 3453}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 1723,time_per_message => 1723}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 2,time => 2201,time_per_message => 1101}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 2,time => 6009,time_per_message => 3005}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 1599,time_per_message => 1599}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 2,time => 6149,time_per_message => 3075}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 3293,time_per_message => 3293}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 2992,time_per_message => 2992}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 2,time => 6162,time_per_message => 3081}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 2797,time_per_message => 2797}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 2,time => 3706,time_per_message => 1853}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 2433,time_per_message => 2433}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 2382,time_per_message => 2382}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 4,time => 9285,time_per_message => 2321}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 2,time => 3719,time_per_message => 1860}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 1893,time_per_message => 1893}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 2,time => 6520,time_per_message => 3260}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 6,time => 11313,time_per_message => 1886}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 3011,time_per_message => 3011}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 4,time => 8410,time_per_message => 2103}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 2889,time_per_message => 2889}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 3480,time_per_message => 3480}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 2174,time_per_message => 2174}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 3,time => 63649,time_per_message => 21216}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 4,time => 64551,time_per_message => 16138}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 2403,time_per_message => 2403}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 3392,time_per_message => 3392}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 4,time => 7050,time_per_message => 1763}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 2,time => 9860,time_per_message => 4930}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 2,time => 4582,time_per_message => 2291}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 7,time => 72451,time_per_message => 10350}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 5,time => 71667,time_per_message => 14333}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 2,time => 4405,time_per_message => 2203}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 3,time => 11317,time_per_message => 3772}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 2,time => 2303,time_per_message => 1152}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 1681,time_per_message => 1681}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 1501,time_per_message => 1501}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 3,time => 4796,time_per_message => 1599}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 790,time_per_message => 790}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 2,time => 2270,time_per_message => 1135}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 2,time => 3077,time_per_message => 1539}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 2,time => 3243,time_per_message => 1622}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 2254,time_per_message => 2254}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 6,time => 8530,time_per_message => 1422}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 5,time => 6516,time_per_message => 1303}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 3,time => 4463,time_per_message => 1488}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 2,time => 3016,time_per_message => 1508}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 2,time => 3106,time_per_message => 1553}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 1638,time_per_message => 1638}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 8,time => 13362,time_per_message => 1670}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 1509,time_per_message => 1509}},
                  {{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 => 1016,time_per_message => 1016}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 4,time => 4903,time_per_message => 1226}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 4,time => 6549,time_per_message => 1637}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 3,time => 3351,time_per_message => 1117}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 1069,time_per_message => 1069}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 5,time => 6187,time_per_message => 1237}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 1658,time_per_message => 1658}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 2,time => 2692,time_per_message => 1346}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 1386,time_per_message => 1386}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 3,time => 3425,time_per_message => 1142}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 3,time => 3000,time_per_message => 1000}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 3,time => 1825,time_per_message => 608}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 708,time_per_message => 708}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 4,time => 5450,time_per_message => 1363}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 1144,time_per_message => 1144}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 2,time => 2612,time_per_message => 1306}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 2,time => 1479,time_per_message => 740}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 513,time_per_message => 513}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 1079,time_per_message => 1079}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 2,time => 1316,time_per_message => 658}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 504,time_per_message => 504}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 637,time_per_message => 637}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 543,time_per_message => 543}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 1039,time_per_message => 1039}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 4,time => 2436,time_per_message => 609}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 1227,time_per_message => 1227}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 1521,time_per_message => 1521}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 55795,time_per_message => 55795}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 55162,time_per_message => 55162}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 1258,time_per_message => 1258}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 907,time_per_message => 907}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 3,time => 1522,time_per_message => 507}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 840,time_per_message => 840}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 510,time_per_message => 510}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 601,time_per_message => 601}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 598,time_per_message => 598}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 548,time_per_message => 548}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 574,time_per_message => 574}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 442,time_per_message => 442}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 2,time => 975,time_per_message => 488}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 2,time => 983,time_per_message => 492}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 410,time_per_message => 410}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 628,time_per_message => 628}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 620,time_per_message => 620}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 624,time_per_message => 624}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 534,time_per_message => 534}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 492,time_per_message => 492}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 585,time_per_message => 585}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 647,time_per_message => 647}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 527,time_per_message => 527}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 1148,time_per_message => 1148}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 558,time_per_message => 558}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 673,time_per_message => 673}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 502,time_per_message => 502}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 3,time => 1668,time_per_message => 556}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 425,time_per_message => 425}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 592,time_per_message => 592}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 2,time => 891,time_per_message => 446}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 713,time_per_message => 713}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 506,time_per_message => 506}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 2,time => 1107,time_per_message => 554}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 559,time_per_message => 559}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 1001,time_per_message => 1001}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 596,time_per_message => 596}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 2,time => 1804,time_per_message => 902}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 3,time => 1730,time_per_message => 577}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 485,time_per_message => 485}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 470,time_per_message => 470}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 742,time_per_message => 742}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 3,time => 2042,time_per_message => 681}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 464,time_per_message => 464}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 1118,time_per_message => 1118}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 2,time => 2732,time_per_message => 1366}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 1271,time_per_message => 1271}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 1366,time_per_message => 1366}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 2,time => 2127,time_per_message => 1064}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 3,time => 2477,time_per_message => 826}},
                  {{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 => 1127,time_per_message => 1127}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 2,time => 2608,time_per_message => 1304}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 2,time => 2549,time_per_message => 1275}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 2,time => 3889,time_per_message => 1945}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 2,time => 3362,time_per_message => 1681}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 2,time => 6776,time_per_message => 3388}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 2,time => 5421,time_per_message => 2711}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 2,time => 5540,time_per_message => 2770}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 2,time => 2161,time_per_message => 1081}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 2,time => 2235,time_per_message => 1118}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 2,time => 2335,time_per_message => 1168}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 891,time_per_message => 891}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 2,time => 2197,time_per_message => 1099}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 2,time => 2057,time_per_message => 1029}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 2,time => 2279,time_per_message => 1140}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 5,time => 5658,time_per_message => 1132}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 2,time => 51398,time_per_message => 25699}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 50624,time_per_message => 50624}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 1246,time_per_message => 1246}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 2259,time_per_message => 2259}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 2,time => 3040,time_per_message => 1520}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 688,time_per_message => 688}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 3,time => 4475,time_per_message => 1492}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 993,time_per_message => 993}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 873,time_per_message => 873}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 3,time => 1363,time_per_message => 454}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 2,time => 1985,time_per_message => 993}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 503,time_per_message => 503}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 578,time_per_message => 578}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 2,time => 1602,time_per_message => 801}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 444,time_per_message => 444}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 2,time => 1138,time_per_message => 569}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 1054,time_per_message => 1054}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 757,time_per_message => 757}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 876,time_per_message => 876}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 2,time => 1453,time_per_message => 727}}]

*** User 2024-04-18 11:03:20.173 ***🔗
Matching events: [{{mod_mam_pm_remove_archive,#{host_type => <<"localhost">>}},
                   #{count => 1,
                     jid =>
                         {jid,<<"alice_archive_is_instrumented_1965">>,
                              <<"localhost">>,<<>>}}}]

*** User 2024-04-18 11:03:20.174 ***🔗
bob_archive_is_instrumented_1965@localhost/res1 out
</stream:stream>

*** User 2024-04-18 11:03:20.175 ***🔗
bob_archive_is_instrumented_1965@localhost/res1 in
</stream:stream>

*** User 2024-04-18 11:03:20.175 ***🔗
alice_archive_is_instrumented_1965@localhost/res1 out
</stream:stream>

*** User 2024-04-18 11:03:20.177 ***🔗
alice_archive_is_instrumented_1965@localhost/res1 in
</stream:stream>
*** CT 2024-04-18 11:03:20.249 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_2869.html



=== Ended at 2024-04-18 11:03:20
=== successfully completed test case
=== === Returned value: ok