/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 = 7566
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1610.3-3958_daily_bin2121
RA = 242.598, Dec = -39.9737
tmin = 789091201, tmax = 789350401
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='18470150', job_status='RUN', time_executed='2026-01-06 01:18:51.470101', time_epoch_executed='1767691131.47' WHERE source_name='4FGL J1610.3-3958' and cadence='daily' and bin_id='2121'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/18470150

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/18470150/ft1_4FGL_J1610.3-3958_daily_bin2121.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/18470150/ft2_4FGL_J1610.3-3958_daily_bin2121.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/18470150/ft1_4FGL_J1610.3-3958_daily_bin2121.fits outfile=/lscratch/kocevski/18470150/ft1_filteredMKT_4FGL_J1610.3-3958_daily_bin2121.fits ra=242.598 dec=-39.9737 rad=12.0 tmin=789091201.0 tmax=789350401.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.34
user 1.61
sys 0.19

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/18470150/ft2_4FGL_J1610.3-3958_daily_bin2121.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/18470150/ft2_4FGL_J1610.3-3958_daily_bin2121.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/18470150/ft1_filteredMKT_4FGL_J1610.3-3958_daily_bin2121.fits evtable="EVENTS" outfile="/lscratch/kocevski/18470150/ft1_filtered_4FGL_J1610.3-3958_daily_bin2121.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 1.09
user 0.20
sys 0.13

Number of photons that the gtmktime cut: 3758

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/18470150/ft1_filtered_4FGL_J1610.3-3958_daily_bin2121.fits" evtable="EVENTS" scfile=/lscratch/kocevski/18470150/ft2_4FGL_J1610.3-3958_daily_bin2121.fits sctable="SC_DATA" outfile=/lscratch/kocevski/18470150/ltcube_789091201_789350401_4FGL_J1610.3-3958_daily_bin2121.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/18470150/ft2_4FGL_J1610.3-3958_daily_bin2121.fits
.....................!
real 11.34
user 10.48
sys 0.21

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/18470150/ft1_filtered_4FGL_J1610.3-3958_daily_bin2121.fits evtable="EVENTS" scfile=/lscratch/kocevski/18470150/ft2_4FGL_J1610.3-3958_daily_bin2121.fits sctable="SC_DATA" expcube=/lscratch/kocevski/18470150/ltcube_789091201_789350401_4FGL_J1610.3-3958_daily_bin2121.fits outfile=/lscratch/kocevski/18470150/expmap_789091201_789350401_4FGL_J1610.3-3958_daily_bin2121.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/18470150/ltcube_789091201_789350401_4FGL_J1610.3-3958_daily_bin2121.fits
.....................!
real 71.82
user 66.20
sys 3.99

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 FGES J1633.0-4746 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 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 MSH 15-56 PWN in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/MSH15-56_PWN.fits is the correct path to the extended template.
Extended source MSH 15-56 SNR in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/MSH15-56_SNRmask.fits is the correct path to the extended template.
Extended source FGES J1553.8-5325 in ROI with RadialDisk spatial model.
Extended source FHES J1626.9-2431 in ROI with RadialGaussian spatial model.
Extended source FHES J1642.1-5428 in ROI with RadialDisk spatial model.
Extended source FHES J1741.6-3917 in ROI with RadialDisk spatial model.
Extended source MSH 15-52 in ROI with RadialDisk spatial model.
Extended source HESS J1534-571 in ROI with RadialDisk spatial model.
Extended source FGES J1745.8-3028 in ROI with RadialDisk spatial model.
Added 477 point sources and 17 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 J1610.3-3958 @ 242.598 -39.9737

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/18470150/ft1_filtered_4FGL_J1610.3-3958_daily_bin2121.fits scfile=/lscratch/kocevski/18470150/ft2_4FGL_J1610.3-3958_daily_bin2121.fits outfile=/lscratch/kocevski/18470150/cmap_789091201_789350401_4FGL_J1610.3-3958_daily_bin2121.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=242.598 yref=-39.9737 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.98
user 0.23
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/18470150/ft1_filtered_4FGL_J1610.3-3958_daily_bin2121.fits scfile=/lscratch/kocevski/18470150/ft2_4FGL_J1610.3-3958_daily_bin2121.fits outfile=/lscratch/kocevski/18470150/cmap_HighResolution_789091201_789350401_4FGL_J1610.3-3958_daily_bin2121.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=242.598 yref=-39.9737 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.89
user 0.22
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/18470150/ft1_filtered_4FGL_J1610.3-3958_daily_bin2121.fits evtable="EVENTS" scfile=/lscratch/kocevski/18470150/ft2_4FGL_J1610.3-3958_daily_bin2121.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/18470150/Model_4FGL_J1610.3-3958_daily_bin2121.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 J1553.8-5325
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 FGES J1745.8-3028
adding source FHES J1626.9-2431
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 J1534-571
adding source HESS J1614-518
adding source HESS J1616-508
adding source MSH 15-52
adding source MSH 15-56 PWN
adding source MSH 15-56 SNR
adding source RX J1713.7-3946
Working on...
/lscratch/kocevski/18470150/ft1_filtered_4FGL_J1610.3-3958_daily_bin2121.fits.....................!
real 849.51
user 843.28
sys 1.62

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/18470150/ft1_filtered_4FGL_J1610.3-3958_daily_bin2121.fits', '/lscratch/kocevski/18470150/ft2_4FGL_J1610.3-3958_daily_bin2121.fits', expMap='/lscratch/kocevski/18470150/expmap_789091201_789350401_4FGL_J1610.3-3958_daily_bin2121.fits', expCube='/lscratch/kocevski/18470150/ltcube_789091201_789350401_4FGL_J1610.3-3958_daily_bin2121.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/18470150/Model_4FGL_J1610.3-3958_daily_bin2121.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1610.3-3958'

4FGL J1610.3-3958
   Spectrum: PowerLaw
503    Prefactor:  1.682e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
504        Index:  2.583e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
505        Scale:  9.228e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/18470150/ft1_filtered_4FGL_J1610.3-3958_daily_bin2121.fits
Spacecraft file(s): /lscratch/kocevski/18470150/ft2_4FGL_J1610.3-3958_daily_bin2121.fits
Exposure map: /lscratch/kocevski/18470150/expmap_789091201_789350401_4FGL_J1610.3-3958_daily_bin2121.fits
Exposure cube: /lscratch/kocevski/18470150/ltcube_789091201_789350401_4FGL_J1610.3-3958_daily_bin2121.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/18470150/Model_4FGL_J1610.3-3958_daily_bin2121.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) = 33867.1488493

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .26657E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    58.689       1.0000          .0000       .10000E+07
     3 'norm      '    .16822E-04   1.0000          .0000       .10000E+07
     4 'norm      '    4.4449       1.0000          .0000       .10000E+07
     5 'norm      '    18.602       1.0000          .0000       .10000E+07
     6 'norm      '    27.280       1.0000          .0000       .10000E+07
     7 'Prefactor '    .27884E-05   1.0000          .0000       .10000E+07
     8 'norm      '    .64813E-03   1.0000          .0000       .10000E+07
     9 'norm      '    2.8010       1.0000          .0000       .10000E+07
    10 'Prefactor '    6.7573       1.0000          .0000       .10000E+07
    11 'norm      '    52.704       1.0000          .0000       .10000E+07
    12 'Normalizat'    1.8839       1.0000         .10000E-01   10.000    
    13 'Prefactor '    .94395       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1769E+06   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   33867.13     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      837 TOTAL
                     EDM=   .41E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        9.7510       -.43047E-06** at limit **
   2  Prefactor     59.555        35.293        .15598E-06   -.25066E-03
   3  norm           .0000        6.5243       -.11702E-05** at limit **
   4  norm          4.4633        5.0039        .39271E-06    .80035E-04
   5  norm          18.594        1.6141        .61073E-07    .37195E-01
   6  norm          27.521        28.006       -.11354E-05    .20232E-02
   7  Prefactor      .0000        1.7914       -.25043E-07** at limit **
   8  norm           .0000        11.462       -.50590E-07** at limit **
   9  norm          2.8069        2.5035       -.38818E-06   -.34452E-04
  10  Prefactor     6.8756        6.7018        .17278E-06    .17751E-03
  11  norm          52.770        1.3527       -.33295E-08    .69384E-02
  12  Normalizat    1.8824        .37158        .14533E-04    .13731E-07
  13  Prefactor     .94384        .25204E-01    .13429E-05    .11670E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  Prefactor  = 59.5547
  norm       = 0
  norm       = 4.4633
  norm       = 18.5936
  norm       = 27.5212
  Prefactor  = 0
  norm       = 0
  norm       = 2.80691
  Prefactor  = 6.87557
  norm       = 52.7702
  Normalizat = 1.88238
  Prefactor  = 0.943842
 **********
 **   18 **HESSE 
 **********

 FCN=   33867.13     FROM HESSE     STATUS=OK           175 CALLS     1012 TOTAL
                     EDM=   .87E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        9.7490        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     59.555        35.303        .13054E-03   -1.5554    
   3  norm           .0000        6.5260        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          4.4633        5.0179        .47739E-03   -1.5666    
   5  norm          18.594        13.191        .23194E-03   -1.5622    
   6  norm          27.521        28.126        .19149E-03   -1.5603    
   7  Prefactor      .0000        1.7899        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm           .0000        11.457        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.8069        2.5130        .60761E-03   -1.5674    
  10  Prefactor     6.8756        6.6982        .38576E-03   -1.5656    
  11  norm          52.770        18.820        .13776E-03   -1.5563    
  12  Normalizat    1.8824        .37581        .26586       -.67532    
  13  Prefactor     .94384        .25123E-01    .27236E-01   -.94626    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.69948e-07
Minuit parameter uncertainties:
  1  1.57948e-05
  2  35.3033
  3  3.75372e-06
  4  5.01787
  5  13.1913
  6  28.1256
  7  2.73091e-07
  8  7.94001e-06
  9  2.51302
  10  6.69825
  11  18.8201
  12  0.376392
  13  0.0251229
Done.

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

Extracting fit parameters...

4FGL J1610.3-3958
   Spectrum: PowerLaw
503    Prefactor:  0.000e+00  2.731e-07  0.000e+00  1.000e+06 ( 1.000e-12)
504        Index:  2.583e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
505        Scale:  9.228e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
1741    Prefactor:  9.438e-01  2.512e-02  0.000e+00  1.000e+01 ( 1.000e+00)
1742        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
1743        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
1706   Normalization:  1.882e+00  3.764e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 242.598 -39.974
Photon Flux Upper Limit: 1.45973684052e-07 ph cm-2 s-1
Energy Flux Upper Limit: 0.0114120478727 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/18470150/likelihoodResults_789091201_789350401_4FGL_J1610.3-3958_daily_bin2121.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): 0
logL (Free Index) = 33867.1286939
delta logL = -0.000757427042117

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 33867.1279365
delta logL = -6.05432433076e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13156E-07   1.0000          .0000       .10000E+07
     2 'Index     '    1.1500       1.0000          .0000       10.000    
     3 'Normalizat'    1.8824       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94385       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1769E+06   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   33867.13     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      255 TOTAL
                     EDM=   .73E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        1.9288        .42118E-03** at limit **
   2  Index         2.1224        1.4380       -.20017E-04     .0000    
   3  Normalizat    1.8824        1.0247       -.35171E-04   -.20127E-04
   4  Prefactor     .94384        1.2864       -.18793E-05   -.30963E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.12243
  Normalizat = 1.88238
  Prefactor  = 0.943842
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   33867.13     FROM HESSE     STATUS=FAILED         9 CALLS      264 TOTAL
                     EDM=   .73E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        1.9288        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .49248        1.8138       -.20017E-04   -.61323    
   3  Normalizat    1.8824        1.0247       -.35171E-04   -.67532    
   4  Prefactor     .94384        1.2864       -.18793E-05   -.94626    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 7.25232e-12
Minuit parameter uncertainties:
  1  1.04391e-05
  2  1.46942
  3  1.03687
  4  1.33205
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) = 33867.1279364
delta logL = 0.0

Extracting fit parameters...

4FGL J1610.3-3958
   Spectrum: PowerLaw
503    Prefactor:  0.000e+00  1.044e-05  0.000e+00  1.000e+06 ( 1.000e-12)
504        Index:  2.122e+00  1.469e+00  0.000e+00  1.000e+01 (-1.000e+00)
505        Scale:  9.228e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
1741    Prefactor:  9.438e-01  1.332e+00  0.000e+00  1.000e+01 ( 1.000e+00)
1742        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
1743        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
1706   Normalization:  1.882e+00  1.037e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 242.598 -39.974

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/18470150/cmap_HighResolution_789091201_789350401_4FGL_J1610.3-3958_daily_bin2121.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.14e-02', job_status='DONE', photon_flux_upper_limit='1.46e-07', time_completed='2026-01-06 01:59:04.506092', job_id='18470150', GAL2='0.94', fit_tolerance='1e-08', EG2='1.88', EG='1.88', time_epoch_completed='1767693544.51', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='0.00e+00', ts2='0.00', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='2121' AND source_name='4FGL J1610.3-3958' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Jan  6 01:59:05 PST 2026

