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


Performing analysis on: 4FGL_J1431.1-3120_daily_bin2099
RA = 217.796, Dec = -31.3468
tmin = 783388801, tmax = 783648001
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='14759774', job_status='RUN', time_executed='2025-11-01 00:37:51.338766', time_epoch_executed='1761982671.34' WHERE source_name='4FGL J1431.1-3120' and cadence='daily' and bin_id='2099'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/14759774

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/14759774/ft1_4FGL_J1431.1-3120_daily_bin2099.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/14759774/ft2_4FGL_J1431.1-3120_daily_bin2099.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/14759774/ft1_4FGL_J1431.1-3120_daily_bin2099.fits outfile=/lscratch/kocevski/14759774/ft1_filteredMKT_4FGL_J1431.1-3120_daily_bin2099.fits ra=217.796 dec=-31.3468 rad=12.0 tmin=783388801.0 tmax=783648001.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.20
user 1.60
sys 0.17

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/14759774/ft2_4FGL_J1431.1-3120_daily_bin2099.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/14759774/ft2_4FGL_J1431.1-3120_daily_bin2099.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/14759774/ft1_filteredMKT_4FGL_J1431.1-3120_daily_bin2099.fits evtable="EVENTS" outfile="/lscratch/kocevski/14759774/ft1_filtered_4FGL_J1431.1-3120_daily_bin2099.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.62
user 0.16
sys 0.14

Number of photons that the gtmktime cut: 820

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/14759774/ft1_filtered_4FGL_J1431.1-3120_daily_bin2099.fits" evtable="EVENTS" scfile=/lscratch/kocevski/14759774/ft2_4FGL_J1431.1-3120_daily_bin2099.fits sctable="SC_DATA" outfile=/lscratch/kocevski/14759774/ltcube_783388801_783648001_4FGL_J1431.1-3120_daily_bin2099.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/14759774/ft2_4FGL_J1431.1-3120_daily_bin2099.fits
.....................!
real 8.59
user 8.02
sys 0.22

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/14759774/ft1_filtered_4FGL_J1431.1-3120_daily_bin2099.fits evtable="EVENTS" scfile=/lscratch/kocevski/14759774/ft2_4FGL_J1431.1-3120_daily_bin2099.fits sctable="SC_DATA" expcube=/lscratch/kocevski/14759774/ltcube_783388801_783648001_4FGL_J1431.1-3120_daily_bin2099.fits outfile=/lscratch/kocevski/14759774/expmap_783388801_783648001_4FGL_J1431.1-3120_daily_bin2099.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/14759774/ltcube_783388801_783648001_4FGL_J1431.1-3120_daily_bin2099.fits
.....................!
real 59.33
user 55.25
sys 3.69

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 CenA Lobes in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/CenALobes.fits is the correct path to the extended template.
Added 207 point sources and 1 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 J1431.1-3120 @ 217.796 -31.3468

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/14759774/ft1_filtered_4FGL_J1431.1-3120_daily_bin2099.fits scfile=/lscratch/kocevski/14759774/ft2_4FGL_J1431.1-3120_daily_bin2099.fits outfile=/lscratch/kocevski/14759774/cmap_783388801_783648001_4FGL_J1431.1-3120_daily_bin2099.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=217.796 yref=-31.3468 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.82
user 0.18
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/14759774/ft1_filtered_4FGL_J1431.1-3120_daily_bin2099.fits scfile=/lscratch/kocevski/14759774/ft2_4FGL_J1431.1-3120_daily_bin2099.fits outfile=/lscratch/kocevski/14759774/cmap_HighResolution_783388801_783648001_4FGL_J1431.1-3120_daily_bin2099.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=217.796 yref=-31.3468 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.50
user 0.18
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/14759774/ft1_filtered_4FGL_J1431.1-3120_daily_bin2099.fits evtable="EVENTS" scfile=/lscratch/kocevski/14759774/ft2_4FGL_J1431.1-3120_daily_bin2099.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/14759774/Model_4FGL_J1431.1-3120_daily_bin2099.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 CenA Lobes
adding source EG_v02
adding source GAL_V02
Working on...
/lscratch/kocevski/14759774/ft1_filtered_4FGL_J1431.1-3120_daily_bin2099.fits....................!
real 52.74
user 51.27
sys 0.90

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/14759774/ft1_filtered_4FGL_J1431.1-3120_daily_bin2099.fits', '/lscratch/kocevski/14759774/ft2_4FGL_J1431.1-3120_daily_bin2099.fits', expMap='/lscratch/kocevski/14759774/expmap_783388801_783648001_4FGL_J1431.1-3120_daily_bin2099.fits', expCube='/lscratch/kocevski/14759774/ltcube_783388801_783648001_4FGL_J1431.1-3120_daily_bin2099.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/14759774/Model_4FGL_J1431.1-3120_daily_bin2099.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1431.1-3120'

4FGL J1431.1-3120
   Spectrum: PowerLaw
324    Prefactor:  6.137e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
325        Index:  1.989e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
326        Scale:  2.942e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/14759774/ft1_filtered_4FGL_J1431.1-3120_daily_bin2099.fits
Spacecraft file(s): /lscratch/kocevski/14759774/ft2_4FGL_J1431.1-3120_daily_bin2099.fits
Exposure map: /lscratch/kocevski/14759774/expmap_783388801_783648001_4FGL_J1431.1-3120_daily_bin2099.fits
Exposure cube: /lscratch/kocevski/14759774/ltcube_783388801_783648001_4FGL_J1431.1-3120_daily_bin2099.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/14759774/Model_4FGL_J1431.1-3120_daily_bin2099.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) = 8791.96797679

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15444E-01   1.0000          .0000       .10000E+07
     2 'norm      '    13.615       1.0000          .0000       .10000E+07
     3 'norm      '    .71265E-02   1.0000          .0000       .10000E+07
     4 'norm      '    9.8713       1.0000          .0000       .10000E+07
     5 'Prefactor '    .14479E-05   1.0000          .0000       .10000E+07
     6 'Prefactor '    34.679       1.0000          .0000       .10000E+07
     7 'Prefactor '    .67692E-03   1.0000          .0000       .10000E+07
     8 'Prefactor '    .10262E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    1.7825       1.0000          .0000       .10000E+07
    10 'Prefactor '    6.2622       1.0000          .0000       .10000E+07
    11 'norm      '    .16881E-06   1.0000          .0000       .10000E+07
    12 'Prefactor '    44.138       1.0000          .0000       .10000E+07
    13 'norm      '    .30697       1.0000          .0000       .10000E+07
    14 'Prefactor '    .50630E-02   1.0000          .0000       .10000E+07
    15 'Prefactor '    .18467E-02   1.0000          .0000       .10000E+07
    16 'norm      '    7.6089       1.0000          .0000       .10000E+07
    17 'Prefactor '    156.22       1.0000          .0000       .10000E+07
    18 'Prefactor '    7.7780       1.0000          .0000       .10000E+07
    19 'Prefactor '    .33754E-04   1.0000          .0000       .10000E+07
    20 'norm      '    .78763       1.0000          .0000       .10000E+07
    21 'Prefactor '    .67245E-04   1.0000          .0000       .10000E+07
    22 'Prefactor '    .69553E-04   1.0000          .0000       .10000E+07
    23 'norm      '    7.5362       1.0000          .0000       .10000E+07
    24 'norm      '    .28612E-04   1.0000          .0000       .10000E+07
    25 'Prefactor '    .40329E-06   1.0000          .0000       .10000E+07
    26 'norm      '    3.6964       1.0000          .0000       .10000E+07
    27 'Normalizat'    1.5793       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .85218       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6970E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8791.873     FROM MIGRAD    STATUS=CONVERGED    232 CALLS     2575 TOTAL
                     EDM=   .28E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .16653E-09    66.747       -.44256E-05** at limit **
   2  norm          13.634        1.1385       -.61499E-07   -.14334E-02
   3  norm           .0000        14.475        .21644E-06** at limit **
   4  norm          10.108        11.290       -.14574E-06   -.51587E-05
   5  Prefactor      .0000        1.9635        .51634E-06** at limit **
   6  Prefactor     37.739        46.860       -.13845E-06    .46834E-02
   7  Prefactor     .87708E-08    42.958       -.77410E-06** at limit **
   8  Prefactor     .35527E-08    32.467       -.39913E-05** at limit **
   9  Prefactor     .10071E-05    197.46       -.76027E-05** at limit **
  10  Prefactor     5.7535        3.9488       -.65467E-06   -.78849E-03
  11  norm           .0000        2.2442        .37401E-06** at limit **
  12  Prefactor     45.249        13.421        .67587E-06   -.36979E-01
  13  norm          .30699        .15156       -.23019E-07   -.49855E-03
  14  Prefactor      .0000        19.597       -.71156E-06** at limit **
  15  Prefactor      .0000        9.4374        .27209E-05** at limit **
  16  norm          7.5988        8.9360       -.10362E-05   -.13390E-03
  17  Prefactor     145.62        151.11       -.66134E-05   -.41252E-03
  18  Prefactor     7.8397        15.898        .71780E-06    .14843E-04
  19  Prefactor     .72164E-09    28.827        .25096E-05** at limit **
  20  norm          .78897        .75915       -.35256E-06   -.81015E-03
  21  Prefactor      .0000        3.5718       -.91921E-06** at limit **
  22  Prefactor      .0000        3.5726        .94311E-06** at limit **
  23  norm          7.7256        7.9040       -.18572E-06    .55539E-04
  24  norm          .55511E-10    17.959        .19388E-05** at limit **
  25  Prefactor      .0000        9.6031        .67629E-06** at limit **
  26  norm          3.6974        4.9035        .54729E-06   -.15652E-03
  27  Normalizat    1.5800        .32912       -.29920E-05    .44159E-05
  28  Prefactor     .85158        .10847        .57550E-05    .64952E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.66533e-10
  norm       = 13.6343
  norm       = 0
  norm       = 10.1084
  Prefactor  = 0
  Prefactor  = 37.7391
  Prefactor  = 8.77076e-09
  Prefactor  = 3.55271e-09
  Prefactor  = 1.00714e-06
  Prefactor  = 5.75349
  norm       = 0
  Prefactor  = 45.2492
  norm       = 0.306986
  Prefactor  = 0
  Prefactor  = 0
  norm       = 7.59877
  Prefactor  = 145.624
  Prefactor  = 7.83965
  Prefactor  = 7.21645e-10
  norm       = 0.788974
  Prefactor  = 0
  Prefactor  = 0
  norm       = 7.72558
  norm       = 5.55112e-11
  Prefactor  = 0
  norm       = 3.69742
  Normalizat = 1.58001
  Prefactor  = 0.851584
 **********
 **   18 **HESSE 
 **********

 FCN=   8791.873     FROM HESSE     STATUS=OK           573 CALLS     3148 TOTAL
                     EDM=   .13E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .16653E-09    66.079        .17357E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          13.634        23.538        .27119E-03   -1.5634    
   3  norm           .0000        14.449        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          10.108        11.301        .31869E-03   -1.5644    
   5  Prefactor      .0000        1.9565        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     37.739        47.335        .16983E-03   -1.5585    
   7  Prefactor     .87708E-08    43.112        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .35527E-08    33.099        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10071E-05    216.05        .78351E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.7535        29.939        .40090E-03   -1.5660    
  11  norm           .0000        2.2443        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     45.249        40.007        .15053E-03   -1.5573    
  13  norm          .30699        .15491        .55471E-03   -1.5697    
  14  Prefactor      .0000        19.608        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor      .0000        9.4630        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          7.5988        8.9319        .36332E-03   -1.5653    
  17  Prefactor     145.62        151.18        .80013E-04   -1.5467    
  18  Prefactor     7.8397        15.923        .35931E-03   -1.5652    
  19  Prefactor     .72164E-09    28.786        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .78897        .76109        .53861E-03   -1.5690    
  21  Prefactor      .0000        3.5745        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor      .0000        3.5758        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          7.7256        7.8821        .36508E-03   -1.5652    
  24  norm          .55511E-10    17.943        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor      .0000        9.5687        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          3.6974        4.9109        .52505E-03   -1.5670    
  27  Normalizat    1.5800        .27505        .90077E-01   -.75554    
  28  Prefactor     .85158        .89581E-01    .44393E-01   -.97854    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.25559e-07
Minuit parameter uncertainties:
  1  0.000225338
  2  23.5383
  3  3.30465e-05
  4  11.3015
  5  2.60484e-06
  6  47.3356
  7  0.00122977
  8  0.000687685
  9  0.0295031
  10  26.2494
  11  2.51015e-06
  12  40.0074
  13  0.154914
  14  3.18314e-05
  15  2.48927e-05
  16  8.93193
  17  151.183
  18  15.9229
  19  0.000293433
  20  0.761092
  21  1.79756e-06
  22  2.38323e-06
  23  7.88214
  24  4.99391e-05
  25  1.20918e-05
  26  4.91093
  27  0.275312
  28  0.0895964
Done.

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

Extracting fit parameters...

4FGL J1431.1-3120
   Spectrum: PowerLaw
324    Prefactor:  0.000e+00  3.183e-05  0.000e+00  1.000e+06 ( 1.000e-14)
325        Index:  1.989e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
326        Scale:  2.942e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
694    Prefactor:  8.516e-01  8.960e-02  0.000e+00  1.000e+01 ( 1.000e+00)
695        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
696        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
693   Normalization:  1.580e+00  2.753e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 217.796 -31.347
Photon Flux Upper Limit: 6.81856961584e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00510903367074 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/14759774/likelihoodResults_783388801_783648001_4FGL_J1431.1-3120_daily_bin2099.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) = 8791.89695383
delta logL = -0.0244267991657

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8791.87252726
delta logL = -2.36803316511e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10769E-07   1.0000          .0000       .10000E+07
     2 'Index     '    2.4022       1.0000          .0000       10.000    
     3 'Normalizat'    1.5798       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85165       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6970E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   8791.873     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      270 TOTAL
                     EDM=   .92E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        14.114        .42118E-03** at limit **
   2  Index         .98256        .70451        .28258E-04     .0000    
   3  Normalizat    1.5800        1.0423       -.65277E-05   -.24546E-04
   4  Prefactor     .85158        1.1986        .35243E-05   -.41408E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 0.982563
  Normalizat = 1.58001
  Prefactor  = 0.851584
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   8791.873     FROM HESSE     STATUS=FAILED         9 CALLS      279 TOTAL
                     EDM=   .92E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        14.114        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .40691E-01    1.0560        .28258E-04   -.93313    
   3  Normalizat    1.5800        1.0423       -.65277E-05   -.75554    
   4  Prefactor     .85158        1.1986        .35243E-05   -.97854    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 9.16048e-13
Minuit parameter uncertainties:
  1  1.42341e-05
  2  0.711262
  3  1.05717
  4  1.23888
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) = 8791.87252703
delta logL = 0.0

Extracting fit parameters...

4FGL J1431.1-3120
   Spectrum: PowerLaw
324    Prefactor:  0.000e+00  1.423e-05  0.000e+00  1.000e+06 ( 1.000e-14)
325        Index:  9.826e-01  7.113e-01  0.000e+00  1.000e+01 (-1.000e+00)
326        Scale:  2.942e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
694    Prefactor:  8.516e-01  1.239e+00  0.000e+00  1.000e+01 ( 1.000e+00)
695        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
696        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
693   Normalization:  1.580e+00  1.057e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 217.796 -31.347

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/14759774/cmap_HighResolution_783388801_783648001_4FGL_J1431.1-3120_daily_bin2099.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.11e-03', job_status='DONE', photon_flux_upper_limit='6.82e-08', time_completed='2025-11-01 00:46:01.045687', job_id='14759774', GAL2='0.85', fit_tolerance='1e-08', EG2='1.58', EG='1.58', time_epoch_completed='1761983161.05', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='0.00e+00', ts2='0.00', photon_index_error='0.00', photon_index='1.99' WHERE bin_id='2099' AND source_name='4FGL J1431.1-3120' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Nov  1 00:46:01 PDT 2025

