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


Performing analysis on: 4FGL_J1431.1-3120_daily_bin1832
RA = 217.796, Dec = -31.3468
tmin = 714182401, tmax = 714441601
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='28603761', job_status='RUN', time_executed='2023-09-19 18:15:40.801440', time_epoch_executed='1695172540.8' WHERE source_name='4FGL J1431.1-3120' and cadence='daily' and bin_id='1832'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/28603761

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/28603761/ft1_4FGL_J1431.1-3120_daily_bin1832.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/28603761/ft2_4FGL_J1431.1-3120_daily_bin1832.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/28603761/ft1_4FGL_J1431.1-3120_daily_bin1832.fits outfile=/lscratch/kocevski/28603761/ft1_filteredMKT_4FGL_J1431.1-3120_daily_bin1832.fits ra=217.796 dec=-31.3468 rad=12.0 tmin=714182401.0 tmax=714441601.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.17
user 1.86
sys 0.17

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

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

Number of photons that the gtmktime cut: 1585

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/28603761/ft1_filtered_4FGL_J1431.1-3120_daily_bin1832.fits" evtable="EVENTS" scfile=/lscratch/kocevski/28603761/ft2_4FGL_J1431.1-3120_daily_bin1832.fits sctable="SC_DATA" outfile=/lscratch/kocevski/28603761/ltcube_714182401_714441601_4FGL_J1431.1-3120_daily_bin1832.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/28603761/ft2_4FGL_J1431.1-3120_daily_bin1832.fits
.....................!
real 9.44
user 9.02
sys 0.26

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/28603761/ft1_filtered_4FGL_J1431.1-3120_daily_bin1832.fits evtable="EVENTS" scfile=/lscratch/kocevski/28603761/ft2_4FGL_J1431.1-3120_daily_bin1832.fits sctable="SC_DATA" expcube=/lscratch/kocevski/28603761/ltcube_714182401_714441601_4FGL_J1431.1-3120_daily_bin1832.fits outfile=/lscratch/kocevski/28603761/expmap_714182401_714441601_4FGL_J1431.1-3120_daily_bin1832.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/28603761/ltcube_714182401_714441601_4FGL_J1431.1-3120_daily_bin1832.fits
.....................!
real 67.88
user 63.51
sys 3.72

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/28603761/ft1_filtered_4FGL_J1431.1-3120_daily_bin1832.fits scfile=/lscratch/kocevski/28603761/ft2_4FGL_J1431.1-3120_daily_bin1832.fits outfile=/lscratch/kocevski/28603761/cmap_714182401_714441601_4FGL_J1431.1-3120_daily_bin1832.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.41
user 0.22
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/28603761/ft1_filtered_4FGL_J1431.1-3120_daily_bin1832.fits scfile=/lscratch/kocevski/28603761/ft2_4FGL_J1431.1-3120_daily_bin1832.fits outfile=/lscratch/kocevski/28603761/cmap_HighResolution_714182401_714441601_4FGL_J1431.1-3120_daily_bin1832.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.37
user 0.21
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/28603761/ft1_filtered_4FGL_J1431.1-3120_daily_bin1832.fits evtable="EVENTS" scfile=/lscratch/kocevski/28603761/ft2_4FGL_J1431.1-3120_daily_bin1832.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/28603761/Model_4FGL_J1431.1-3120_daily_bin1832.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/28603761/ft1_filtered_4FGL_J1431.1-3120_daily_bin1832.fits.....................!
real 95.48
user 94.20
sys 0.70

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/28603761/ft1_filtered_4FGL_J1431.1-3120_daily_bin1832.fits', '/lscratch/kocevski/28603761/ft2_4FGL_J1431.1-3120_daily_bin1832.fits', expMap='/lscratch/kocevski/28603761/expmap_714182401_714441601_4FGL_J1431.1-3120_daily_bin1832.fits', expCube='/lscratch/kocevski/28603761/ltcube_714182401_714441601_4FGL_J1431.1-3120_daily_bin1832.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/28603761/Model_4FGL_J1431.1-3120_daily_bin1832.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/28603761/ft1_filtered_4FGL_J1431.1-3120_daily_bin1832.fits
Spacecraft file(s): /lscratch/kocevski/28603761/ft2_4FGL_J1431.1-3120_daily_bin1832.fits
Exposure map: /lscratch/kocevski/28603761/expmap_714182401_714441601_4FGL_J1431.1-3120_daily_bin1832.fits
Exposure cube: /lscratch/kocevski/28603761/ltcube_714182401_714441601_4FGL_J1431.1-3120_daily_bin1832.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/28603761/Model_4FGL_J1431.1-3120_daily_bin1832.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 15797.1044932

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .36328E-01   1.0000          .0000       .10000E+07
     2 'norm      '    2.7027       1.0000          .0000       .10000E+07
     3 'norm      '    .15910E-03   1.0000          .0000       .10000E+07
     4 'norm      '    .62728E-08   1.0000          .0000       .10000E+07
     5 'Prefactor '    .88263E-07   1.0000          .0000       .10000E+07
     6 'Prefactor '    .23714E-01   1.0000          .0000       .10000E+07
     7 'Prefactor '    55.163       1.0000          .0000       .10000E+07
     8 'Prefactor '    .15774E-01   1.0000          .0000       .10000E+07
     9 'Prefactor '    297.99       1.0000          .0000       .10000E+07
    10 'Prefactor '    .11817E-02   1.0000          .0000       .10000E+07
    11 'norm      '    .56066E-07   1.0000          .0000       .10000E+07
    12 'Prefactor '    .19333E-05   1.0000          .0000       .10000E+07
    13 'norm      '    1.3110       1.0000          .0000       .10000E+07
    14 'Prefactor '    .17491E-05   1.0000          .0000       .10000E+07
    15 'Prefactor '    64.382       1.0000          .0000       .10000E+07
    16 'norm      '    6.1731       1.0000          .0000       .10000E+07
    17 'Prefactor '    145.85       1.0000          .0000       .10000E+07
    18 'Prefactor '    .28042E-02   1.0000          .0000       .10000E+07
    19 'Prefactor '    .19753E-04   1.0000          .0000       .10000E+07
    20 'norm      '     .0000       1.0000          .0000       .10000E+07
    21 'Prefactor '    4.1981       1.0000          .0000       .10000E+07
    22 'Prefactor '    .21699E-06   1.0000          .0000       .10000E+07
    23 'norm      '    6.6349       1.0000          .0000       .10000E+07
    24 'norm      '    .23886E-02   1.0000          .0000       .10000E+07
    25 'Prefactor '    6.8899       1.0000          .0000       .10000E+07
    26 'norm      '    2.1085       1.0000          .0000       .10000E+07
    27 'Normalizat'    1.2963       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .93941       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=   15792.50     FROM MIGRAD    STATUS=CONVERGED    247 CALLS     1630 TOTAL
                     EDM=   .25E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        23.095        .17218E-05** at limit **
   2  norm          2.3734        15.187        .44884E-05   -.83031E-03
   3  norm           .0000        10.851        .21933E-05** at limit **
   4  norm           .0000        2.2131       -.10409E-05** at limit **
   5  Prefactor      .0000        .95340        .34054E-06** at limit **
   6  Prefactor      .0000        31.471        .38856E-05** at limit **
   7  Prefactor     54.869        51.003       -.17567E-05   -.82524E-04
   8  Prefactor      .0000        21.008       -.60819E-07** at limit **
   9  Prefactor     305.48        273.92        .17345E-04    .80201E-04
  10  Prefactor      .0000        8.7623       -.39805E-06** at limit **
  11  norm           .0000        1.2797       -.28904E-06** at limit **
  12  Prefactor      .0000        9.0508        .29781E-05** at limit **
  13  norm          1.3108        .16796       -.17585E-07   -.48883E-03
  14  Prefactor      .0000        7.6404       -.37802E-05** at limit **
  15  Prefactor     64.669        24.081       -.17624E-05    .16591E-04
  16  norm          6.1691        6.5188       -.35391E-06   -.87129E-04
  17  Prefactor     141.32        121.90       -.87963E-07   -.61833E-04
  18  Prefactor      .0000        17.493        .35264E-05** at limit **
  19  Prefactor      .0000        41.289       -.24633E-05** at limit **
  20  norm           .0000        .73474        .13484E-06** at limit **
  21  Prefactor     4.2022        6.9482       -.75292E-07   -.47044E-05
  22  Prefactor      .0000        4.7031       -.91981E-06** at limit **
  23  norm          6.6363        5.4267        .32533E-06    .36274E-04
  24  norm           .0000        11.138       -.38909E-05** at limit **
  25  Prefactor     6.8894        4.2071       -.30250E-06   -.14999E-04
  26  norm          2.1087        1.8631        .47172E-09   -.83460E-04
  27  Normalizat    1.2970        .23565       -.24971E-04   -.25023E-04
  28  Prefactor     .93940        .81512E-01    .10970E-05   -.47627E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  norm       = 2.37336
  norm       = 0
  norm       = 0
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 54.8691
  Prefactor  = 0
  Prefactor  = 305.477
  Prefactor  = 0
  norm       = 0
  Prefactor  = 0
  norm       = 1.31081
  Prefactor  = 0
  Prefactor  = 64.6687
  norm       = 6.16912
  Prefactor  = 141.315
  Prefactor  = 0
  Prefactor  = 0
  norm       = 0
  Prefactor  = 4.20221
  Prefactor  = 0
  norm       = 6.63632
  norm       = 0
  Prefactor  = 6.88944
  norm       = 2.10869
  Normalizat = 1.29698
  Prefactor  = 0.939396
 **********
 **   18 **HESSE 
 **********

 FCN=   15792.50     FROM HESSE     STATUS=OK           577 CALLS     2207 TOTAL
                     EDM=   .13E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        23.028        .16134E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.3734        14.986        .61936E-03   -1.5677    
   3  norm           .0000        10.851        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm           .0000        2.2128        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor      .0000        .95004        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        30.893        .16804E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     54.869        50.879        .13465E-03   -1.5560    
   8  Prefactor      .0000        20.896        .17332E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     305.48        273.83        .57938E-04   -1.5358    
  10  Prefactor      .0000        8.7502        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm           .0000        1.2776        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor      .0000        9.0475        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.3108        .16790        .40167E-03   -1.5685    
  14  Prefactor      .0000        7.6389        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     64.669        24.065        .12464E-03   -1.5547    
  16  norm          6.1691        6.5157        .40382E-03   -1.5658    
  17  Prefactor     141.32        121.92        .82810E-04   -1.5470    
  18  Prefactor      .0000        17.281        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor      .0000        41.029        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm           .0000        .25783        .20337E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     4.2022        6.9959        .49161E-03   -1.5667    
  22  Prefactor      .0000        4.7123        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          6.6363        5.4072        .38934E-03   -1.5656    
  24  norm           .0000        11.138        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     6.8894        4.2100        .38199E-03   -1.5655    
  26  norm          2.1087        1.8654        .71024E-03   -1.5679    
  27  Normalizat    1.2970        .19759        .93879E-01   -.83657    
  28  Prefactor     .93940        .67901E-01    .45505E-01   -.94778    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.34638e-07
Minuit parameter uncertainties:
  1  8.24062e-06
  2  11.9279
  3  4.58486e-06
  4  1.36012e-06
  5  5.66002e-07
  6  3.62013e-05
  7  50.8791
  8  1.10203e-06
  9  273.838
  10  9.5874e-07
  11  3.16197e-07
  12  9.18195e-06
  13  0.167899
  14  2.89287e-06
  15  24.0651
  16  6.51571
  17  121.926
  18  2.27808e-05
  19  4.41948e-05
  20  7.4033e-08
  21  6.99593
  22  3.66977e-07
  23  5.40723
  24  1.78804e-05
  25  4.20997
  26  1.8654
  27  0.197703
  28  0.0679068
Done.

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

Extracting fit parameters...

4FGL J1431.1-3120
   Spectrum: PowerLaw
324    Prefactor:  0.000e+00  2.893e-06  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:  9.394e-01  6.791e-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.297e+00  1.977e-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: 3.3396281761e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00250232435258 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/28603761/likelihoodResults_714182401_714441601_4FGL_J1431.1-3120_daily_bin1832.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) = 15792.5645507
delta logL = -0.0625851850527

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 15792.5019657
delta logL = -2.22096787184e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .87430E-07   1.0000          .0000       .10000E+07
     2 'Index     '    .61537       1.0000          .0000       10.000    
     3 'Normalizat'    1.2969       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93940       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=   15792.50     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      219 TOTAL
                     EDM=   .37E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        6.1072        .42118E-03** at limit **
   2  Index         2.1579        1.6497        .19473E-04     .0000    
   3  Normalizat    1.2970        1.0801        .11713E-05    .19187E-04
   4  Prefactor     .93940        1.2822       -.95439E-06    .55669E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.15793
  Normalizat = 1.29698
  Prefactor  = 0.939396
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   15792.50     FROM HESSE     STATUS=FAILED         9 CALLS      228 TOTAL
                     EDM=   .37E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        6.1072        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .51138        1.8851        .19473E-04   -.60458    
   3  Normalizat    1.2970        1.0801        .11713E-05   -.83657    
   4  Prefactor     .93940        1.2822       -.95439E-06   -.94778    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 3.71476e-13
Minuit parameter uncertainties:
  1  3.84387e-06
  2  1.69745
  3  1.09977
  4  1.32759
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) = 15792.5019655
delta logL = 0.0

Extracting fit parameters...

4FGL J1431.1-3120
   Spectrum: PowerLaw
324    Prefactor:  0.000e+00  3.844e-06  0.000e+00  1.000e+06 ( 1.000e-14)
325        Index:  2.158e+00  1.697e+00  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:  9.394e-01  1.328e+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.297e+00  1.100e+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/28603761/cmap_HighResolution_714182401_714441601_4FGL_J1431.1-3120_daily_bin1832.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.50e-03', job_status='DONE', photon_flux_upper_limit='3.34e-08', time_completed='2023-09-19 18:25:10.209718', job_id='28603761', GAL2='0.94', fit_tolerance='1e-08', EG2='1.30', EG='1.30', time_epoch_completed='1695173110.21', 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='1.99' WHERE bin_id='1832' AND source_name='4FGL J1431.1-3120' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 19 18:25:10 PDT 2023

