/sdf/group/fermi/u/kocevski/software/conda/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/sdf/group/fermi/u/kocevski/software/conda/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 7252
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1840.6-5545_daily_bin2090
RA = 280.175, Dec = -55.7518
tmin = 781056001, tmax = 781315201
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = 12
zmax = 90

Fitting strategies:
Fix sources to their catalog values = True
Leave variable source normalizations free = True
Perform pre-fit where ALL sources are frozen to catalog values = False
Perform secondary fit with a free spectral index = True
Remove all catalog sources = False
Remove weak (TS < 2) catalog sources = False
Freeze Galactic component = False

Likelihood fit parameters:
Statistic: UNBINNED
Optimizer: MINUIT

Catalog: 4FGL

Repository job = True

LAT data source:
Data catalog

Updating database...

UPDATE lightcurve_data_v2 SET job_id='14109833', job_status='RUN', time_executed='2025-10-20 19:11:18.862463', time_epoch_executed='1761012678.86' WHERE source_name='4FGL J1840.6-5545' and cadence='daily' and bin_id='2090'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/14109833

Creating custom pfile directory:
/lscratch/kocevski/14109833/pfiles/

Retrieving the FT1 file...

Issuing command:
datacat find --group FT1 --filter 'nMetStop>=781056001.0 && nMetStart<781315201.0' /Data/Flight/Reprocess/P305

Issuing command:
datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=781056001.0 && nMetStart<781315201.0' /Data/Flight/Level1/LPA

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/14109833/ft1_4FGL_J1840.6-5545_daily_bin2090.fits


Retrieving the FT1 file...

Issuing command:
datacat find --group FT2 --filter 'nMetStop>=781056001.0 && nMetStart<781315201.0' /Data/Flight/Level1/LPA

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/14109833/ft2_4FGL_J1840.6-5545_daily_bin2090.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/14109833/ft1_4FGL_J1840.6-5545_daily_bin2090.fits outfile=/lscratch/kocevski/14109833/ft1_filteredMKT_4FGL_J1840.6-5545_daily_bin2090.fits ra=280.175 dec=-55.7518 rad=12.0 tmin=781056001.0 tmax=781315201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 2.41
user 1.94
sys 0.22

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/14109833/ft2_4FGL_J1840.6-5545_daily_bin2090.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/14109833/ft2_4FGL_J1840.6-5545_daily_bin2090.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/lscratch/kocevski/14109833/ft1_filteredMKT_4FGL_J1840.6-5545_daily_bin2090.fits evtable="EVENTS" outfile="/lscratch/kocevski/14109833/ft1_filtered_4FGL_J1840.6-5545_daily_bin2090.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.71
user 0.20
sys 0.14

Number of photons that the gtmktime cut: 1527

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/14109833/ft1_filtered_4FGL_J1840.6-5545_daily_bin2090.fits" evtable="EVENTS" scfile=/lscratch/kocevski/14109833/ft2_4FGL_J1840.6-5545_daily_bin2090.fits sctable="SC_DATA" outfile=/lscratch/kocevski/14109833/ltcube_781056001_781315201_4FGL_J1840.6-5545_daily_bin2090.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Working on file /lscratch/kocevski/14109833/ft2_4FGL_J1840.6-5545_daily_bin2090.fits
.....................!
real 7.92
user 7.25
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/14109833/ft1_filtered_4FGL_J1840.6-5545_daily_bin2090.fits evtable="EVENTS" scfile=/lscratch/kocevski/14109833/ft2_4FGL_J1840.6-5545_daily_bin2090.fits sctable="SC_DATA" expcube=/lscratch/kocevski/14109833/ltcube_781056001_781315201_4FGL_J1840.6-5545_daily_bin2090.fits outfile=/lscratch/kocevski/14109833/expmap_781056001_781315201_4FGL_J1840.6-5545_daily_bin2090.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /lscratch/kocevski/14109833/ltcube_781056001_781315201_4FGL_J1840.6-5545_daily_bin2090.fits
.....................!
real 70.05
user 65.21
sys 4.25

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Extended source FHES J1642.1-5428 in ROI with RadialDisk spatial model.
Extended source HESS J1614-518 in ROI with RadialDisk spatial model.
Extended source HESS J1616-508 in ROI with RadialDisk spatial model.
Extended source FGES J1631.6-4756 in ROI with RadialDisk spatial model.
Extended source FGES J1633.0-4746 in ROI with RadialDisk spatial model.
Extended source G337.0-0.1 in ROI with RadialDisk spatial model.
Extended source FGES J1652.2-4633 in ROI with RadialDisk spatial model.
Extended source FGES J1655.5-4737 in ROI with RadialDisk spatial model.
Extended source RX J1713.7-3946 in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/RXJ1713_2016_250GeV.fits is the correct path to the extended template.
Extended source FHES J1741.6-3917 in ROI with RadialDisk spatial model.
Added 319 point sources and 10 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J1840.6-5545 @ 280.175 -55.7518

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/14109833/ft1_filtered_4FGL_J1840.6-5545_daily_bin2090.fits scfile=/lscratch/kocevski/14109833/ft2_4FGL_J1840.6-5545_daily_bin2090.fits outfile=/lscratch/kocevski/14109833/cmap_781056001_781315201_4FGL_J1840.6-5545_daily_bin2090.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=280.175 yref=-55.7518 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.58
user 0.21
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/14109833/ft1_filtered_4FGL_J1840.6-5545_daily_bin2090.fits scfile=/lscratch/kocevski/14109833/ft2_4FGL_J1840.6-5545_daily_bin2090.fits outfile=/lscratch/kocevski/14109833/cmap_HighResolution_781056001_781315201_4FGL_J1840.6-5545_daily_bin2090.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=280.175 yref=-55.7518 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.52
user 0.20
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/14109833/ft1_filtered_4FGL_J1840.6-5545_daily_bin2090.fits evtable="EVENTS" scfile=/lscratch/kocevski/14109833/ft2_4FGL_J1840.6-5545_daily_bin2090.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/14109833/Model_4FGL_J1840.6-5545_daily_bin2090.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

adding source EG_v02
adding source FGES J1631.6-4756
adding source FGES J1633.0-4746
adding source FGES J1652.2-4633
adding source FGES J1655.5-4737
adding source FHES J1642.1-5428
adding source FHES J1741.6-3917
adding source G337.0-0.1
adding source GAL_V02
adding source HESS J1614-518
adding source HESS J1616-508
adding source RX J1713.7-3946
Working on...
/lscratch/kocevski/14109833/ft1_filtered_4FGL_J1840.6-5545_daily_bin2090.fits.....................!
real 119.07
user 117.04
sys 1.11

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/14109833/ft1_filtered_4FGL_J1840.6-5545_daily_bin2090.fits', '/lscratch/kocevski/14109833/ft2_4FGL_J1840.6-5545_daily_bin2090.fits', expMap='/lscratch/kocevski/14109833/expmap_781056001_781315201_4FGL_J1840.6-5545_daily_bin2090.fits', expCube='/lscratch/kocevski/14109833/ltcube_781056001_781315201_4FGL_J1840.6-5545_daily_bin2090.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/14109833/Model_4FGL_J1840.6-5545_daily_bin2090.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1840.6-5545'

4FGL J1840.6-5545
   Spectrum: PowerLaw
822    Prefactor:  6.297e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
823        Index:  2.661e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
824        Scale:  7.183e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/14109833/ft1_filtered_4FGL_J1840.6-5545_daily_bin2090.fits
Spacecraft file(s): /lscratch/kocevski/14109833/ft2_4FGL_J1840.6-5545_daily_bin2090.fits
Exposure map: /lscratch/kocevski/14109833/expmap_781056001_781315201_4FGL_J1840.6-5545_daily_bin2090.fits
Exposure cube: /lscratch/kocevski/14109833/ltcube_781056001_781315201_4FGL_J1840.6-5545_daily_bin2090.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/14109833/Model_4FGL_J1840.6-5545_daily_bin2090.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 15388.5233976

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 15388.4954692

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    16.971       1.0000          .0000       .10000E+07
     3 'Prefactor '    17.294       1.0000          .0000       .10000E+07
     4 'norm      '    2.0556       1.0000          .0000       .10000E+07
     5 'Prefactor '    .36106E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    .88176E-03   1.0000          .0000       .10000E+07
     7 'norm      '    .24797E-03   1.0000          .0000       .10000E+07
     8 'Prefactor '    18.984       1.0000          .0000       .10000E+07
     9 'Prefactor '    .20788E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    .77331E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    .73955       1.0000          .0000       .10000E+07
    12 'norm      '    2.7222       1.0000          .0000       .10000E+07
    13 'norm      '    .23275       1.0000          .0000       .10000E+07
    14 'norm      '    .97700E-08   1.0000          .0000       .10000E+07
    15 'norm      '    30.112       1.0000          .0000       .10000E+07
    16 'Prefactor '    .29091E-03   1.0000          .0000       .10000E+07
    17 'Prefactor '    .21157E-04   1.0000          .0000       .10000E+07
    18 'Prefactor '    1.2913       1.0000          .0000       .10000E+07
    19 'norm      '    1.7933       1.0000          .0000       .10000E+07
    20 'Normalizat'    1.1992       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .92878       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1164E+06   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   15388.49     FROM MIGRAD    STATUS=CONVERGED    194 CALLS     1390 TOTAL
                     EDM=   .18E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.3532       -.51616E-06** at limit **
   2  Prefactor     16.960        11.061       -.44731E-07   -.19968E-02
   3  Prefactor     17.252        1.5492       -.50203E-09    .16251E-02
   4  norm          2.0224        19.029       -.13070E-07   -.46244E-03
   5  Prefactor      .0000        4.7945        .21324E-07** at limit **
   6  Prefactor     .14433E-08    10.908        .25171E-07** at limit **
   7  norm          .55511E-10    10.408       -.14985E-06** at limit **
   8  Prefactor     19.075        11.347       -.22009E-07   -.13412E-01
   9  Prefactor     .77716E-09    11.456       -.18347E-07** at limit **
  10  Prefactor      .0000        5.5738       -.72280E-07** at limit **
  11  Prefactor     .67651E-01    1721.5        .68816E-05** at limit **
  12  norm          2.7535        3.3542       -.50868E-07    .43194E-03
  13  norm          .23712        5.3963        .12754E-06** at limit **
  14  norm           .0000        .82148       -.11130E-07** at limit **
  15  norm          30.102        9.0692       -.15811E-07   -.21077E-01
  16  Prefactor      .0000        39.221        .23602E-06** at limit **
  17  Prefactor      .0000        14.550        .18119E-06** at limit **
  18  Prefactor     .88818E-09    539.54       -.39418E-06** at limit **
  19  norm          1.7928        1.0884       -.10175E-07    .74920E-03
  20  Normalizat    1.1992        .24102        .10490E-05   -.10411E-04
  21  Prefactor     .92904        .69635E-01   -.28299E-06   -.42904E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 16.9599
  Prefactor  = 17.2523
  norm       = 2.02237
  Prefactor  = 0
  Prefactor  = 1.44329e-09
  norm       = 5.55112e-11
  Prefactor  = 19.0746
  Prefactor  = 7.77156e-10
  Prefactor  = 0
  Prefactor  = 0.0676512
  norm       = 2.75352
  norm       = 0.237123
  norm       = 0
  norm       = 30.1017
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 8.88178e-10
  norm       = 1.7928
  Normalizat = 1.19924
  Prefactor  = 0.929042
 **********
 **   18 **HESSE 
 **********

 FCN=   15388.49     FROM HESSE     STATUS=OK           379 CALLS     1769 TOTAL
                     EDM=   .13E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.3505        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     16.960        11.186        .24285E-03   -1.5626    
   3  Prefactor     17.252        15.988        .24057E-03   -1.5625    
   4  norm          2.0224        19.185        .72061E-03   -1.5680    
   5  Prefactor      .0000        4.7970        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .14433E-08    11.224        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .55511E-10    10.346        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     19.075        14.578        .22959E-03   -1.5621    
   9  Prefactor     .77716E-09    11.744        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor      .0000        5.5680        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .67651E-01    22.855        .99176E-02   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.7535        3.3680        .61698E-03   -1.5675    
  13  norm          .23712        1.0301        .68356E-02   -1.5698    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm           .0000        .31534        .22458E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          30.102        13.530        .18226E-03   -1.5598    
  16  Prefactor      .0000        39.439        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor      .0000        14.585        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .88818E-09    524.18        .97397E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.7928        1.0917        .78064E-03   -1.5681    
  20  Normalizat    1.1992        .21262        .10283       -.86626    
  21  Prefactor     .92904        .61276E-01    .32509E-01   -.95134    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.30774e-07
Minuit parameter uncertainties:
  1  6.2506e-07
  2  11.1865
  3  15.9885
  4  12.4577
  5  3.18747e-06
  6  0.00025326
  7  5.43189e-05
  8  14.5785
  9  0.000191455
  10  5.98505e-06
  11  2.4869
  12  3.36795
  13  0.988454
  14  1.25631e-07
  15  13.5296
  16  4.42282e-05
  17  2.47021e-06
  18  0.00137786
  19  1.09165
  20  0.212778
  21  0.0612802
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 15388.493373

Extracting fit parameters...

4FGL J1840.6-5545
   Spectrum: PowerLaw
822    Prefactor:  0.000e+00  2.470e-06  0.000e+00  1.000e+06 ( 1.000e-13)
823        Index:  2.661e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
824        Scale:  7.183e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
1150    Prefactor:  9.290e-01  6.128e-02  0.000e+00  1.000e+01 ( 1.000e+00)
1151        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
1152        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
1126   Normalization:  1.199e+00  2.128e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 280.175 -55.752
Photon Flux Upper Limit: 6.3014011333e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00494959555844 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/14109833/likelihoodResults_781056001_781315201_4FGL_J1840.6-5545_daily_bin2090.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 15388.5263388
delta logL = -0.032965797307

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 15388.4933732
delta logL = -1.85209501069e-07

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .50135E-05   1.0000          .0000       .10000E+07
     2 'Index     '    1.6315       1.0000          .0000       10.000    
     3 'Normalizat'    1.1992       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92905       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1164E+06   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   15388.49     FROM MIGRAD    STATUS=CONVERGED     44 CALLS      216 TOTAL
                     EDM=   .69E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        17.581        .42118E-03** at limit **
   2  Index         2.5143        1.2182        .14224E-04     .0000    
   3  Normalizat    1.1992        1.1066       -.84293E-05    .29416E-06
   4  Prefactor     .92904        1.2725        .23670E-05   -.37308E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.51429
  Normalizat = 1.19924
  Prefactor  = 0.929042
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   15388.49     FROM HESSE     STATUS=FAILED         9 CALLS      225 TOTAL
                     EDM=   .69E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        17.581        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .71273        1.9016        .14224E-04   -.52030    
   3  Normalizat    1.1992        1.1066       -.84293E-05   -.86626    
   4  Prefactor     .92904        1.2725        .23670E-05   -.95134    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 6.91662e-13
Minuit parameter uncertainties:
  1  2.12697e-05
  2  1.23483
  3  1.12944
  4  1.31721
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 15388.493373
delta logL = 0.0

Extracting fit parameters...

4FGL J1840.6-5545
   Spectrum: PowerLaw
822    Prefactor:  0.000e+00  2.127e-05  0.000e+00  1.000e+06 ( 1.000e-13)
823        Index:  2.514e+00  1.235e+00  0.000e+00  1.000e+01 (-1.000e+00)
824        Scale:  7.183e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
1150    Prefactor:  9.290e-01  1.317e+00  0.000e+00  1.000e+01 ( 1.000e+00)
1151        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
1152        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
1126   Normalization:  1.199e+00  1.129e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 280.175 -55.752

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/14109833/cmap_HighResolution_781056001_781315201_4FGL_J1840.6-5545_daily_bin2090.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.95e-03', job_status='DONE', photon_flux_upper_limit='6.30e-08', time_completed='2025-10-20 19:24:12.929187', job_id='14109833', GAL2='0.93', fit_tolerance='1e-08', EG2='1.20', EG='1.20', time_epoch_completed='1761013452.93', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='0.00e+00', ts2='0.00', photon_index_error='0.00', photon_index='2.66' WHERE bin_id='2090' AND source_name='4FGL J1840.6-5545' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Oct 20 19:24:13 PDT 2025

