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


Performing analysis on: 4FGL_J1431.0-4432_daily_bin1860
RA = 217.751, Dec = -44.5404
tmin = 721440001, tmax = 721699201
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='34005406', job_status='RUN', time_executed='2023-11-15 00:36:22.109299', time_epoch_executed='1700037382.11' WHERE source_name='4FGL J1431.0-4432' and cadence='daily' and bin_id='1860'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/34005406

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/34005406/ft1_4FGL_J1431.0-4432_daily_bin1860.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/34005406/ft2_4FGL_J1431.0-4432_daily_bin1860.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/34005406/ft1_4FGL_J1431.0-4432_daily_bin1860.fits outfile=/lscratch/kocevski/34005406/ft1_filteredMKT_4FGL_J1431.0-4432_daily_bin1860.fits ra=217.751 dec=-44.5404 rad=12.0 tmin=721440001.0 tmax=721699201.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 3.22
user 2.01
sys 0.19

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/34005406/ft2_4FGL_J1431.0-4432_daily_bin1860.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/34005406/ft2_4FGL_J1431.0-4432_daily_bin1860.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/34005406/ft1_filteredMKT_4FGL_J1431.0-4432_daily_bin1860.fits evtable="EVENTS" outfile="/lscratch/kocevski/34005406/ft1_filtered_4FGL_J1431.0-4432_daily_bin1860.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.34
user 0.18
sys 0.13

Number of photons that the gtmktime cut: 1661

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/34005406/ft1_filtered_4FGL_J1431.0-4432_daily_bin1860.fits" evtable="EVENTS" scfile=/lscratch/kocevski/34005406/ft2_4FGL_J1431.0-4432_daily_bin1860.fits sctable="SC_DATA" outfile=/lscratch/kocevski/34005406/ltcube_721440001_721699201_4FGL_J1431.0-4432_daily_bin1860.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/34005406/ft2_4FGL_J1431.0-4432_daily_bin1860.fits
.....................!
real 10.64
user 8.57
sys 0.21

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/34005406/ft1_filtered_4FGL_J1431.0-4432_daily_bin1860.fits evtable="EVENTS" scfile=/lscratch/kocevski/34005406/ft2_4FGL_J1431.0-4432_daily_bin1860.fits sctable="SC_DATA" expcube=/lscratch/kocevski/34005406/ltcube_721440001_721699201_4FGL_J1431.0-4432_daily_bin1860.fits outfile=/lscratch/kocevski/34005406/expmap_721440001_721699201_4FGL_J1431.0-4432_daily_bin1860.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/34005406/ltcube_721440001_721699201_4FGL_J1431.0-4432_daily_bin1860.fits
.....................!
real 76.87
user 69.19
sys 4.19

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.
Extended source FGES J1409.1-6121 in ROI with RadialDisk spatial model.
Extended source HESS J1420-607 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 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 HESS J1356-645 in ROI with RadialDisk spatial model.
Extended source RCW 86 in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/RCW86.fits is the correct path to the extended template.
Extended source FHES J1501.0-6310 in ROI with RadialGaussian spatial model.
Extended source HESS J1507-622 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.
Added 347 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 J1431.0-4432 @ 217.751 -44.5404

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/34005406/ft1_filtered_4FGL_J1431.0-4432_daily_bin1860.fits scfile=/lscratch/kocevski/34005406/ft2_4FGL_J1431.0-4432_daily_bin1860.fits outfile=/lscratch/kocevski/34005406/cmap_721440001_721699201_4FGL_J1431.0-4432_daily_bin1860.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.751 yref=-44.5404 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 1.41
user 0.22
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/34005406/ft1_filtered_4FGL_J1431.0-4432_daily_bin1860.fits scfile=/lscratch/kocevski/34005406/ft2_4FGL_J1431.0-4432_daily_bin1860.fits outfile=/lscratch/kocevski/34005406/cmap_HighResolution_721440001_721699201_4FGL_J1431.0-4432_daily_bin1860.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.751 yref=-44.5404 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 1.55
user 0.23
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/34005406/ft1_filtered_4FGL_J1431.0-4432_daily_bin1860.fits evtable="EVENTS" scfile=/lscratch/kocevski/34005406/ft2_4FGL_J1431.0-4432_daily_bin1860.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/34005406/Model_4FGL_J1431.0-4432_daily_bin1860.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 FGES J1409.1-6121
adding source FGES J1553.8-5325
adding source FGES J1631.6-4756
adding source FGES J1633.0-4746
adding source FHES J1501.0-6310
adding source G337.0-0.1
adding source GAL_V02
adding source HESS J1356-645
adding source HESS J1420-607
adding source HESS J1507-622
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 RCW 86
Working on...
/lscratch/kocevski/34005406/ft1_filtered_4FGL_J1431.0-4432_daily_bin1860.fits.....................!
real 352.68
user 347.17
sys 0.78

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/34005406/ft1_filtered_4FGL_J1431.0-4432_daily_bin1860.fits', '/lscratch/kocevski/34005406/ft2_4FGL_J1431.0-4432_daily_bin1860.fits', expMap='/lscratch/kocevski/34005406/expmap_721440001_721699201_4FGL_J1431.0-4432_daily_bin1860.fits', expCube='/lscratch/kocevski/34005406/ltcube_721440001_721699201_4FGL_J1431.0-4432_daily_bin1860.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/34005406/Model_4FGL_J1431.0-4432_daily_bin1860.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1431.0-4432'

4FGL J1431.0-4432
   Spectrum: PowerLaw
531    Prefactor:  9.654e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
532        Index:  2.304e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
533        Scale:  1.823e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/34005406/ft1_filtered_4FGL_J1431.0-4432_daily_bin1860.fits
Spacecraft file(s): /lscratch/kocevski/34005406/ft2_4FGL_J1431.0-4432_daily_bin1860.fits
Exposure map: /lscratch/kocevski/34005406/expmap_721440001_721699201_4FGL_J1431.0-4432_daily_bin1860.fits
Exposure cube: /lscratch/kocevski/34005406/ltcube_721440001_721699201_4FGL_J1431.0-4432_daily_bin1860.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/34005406/Model_4FGL_J1431.0-4432_daily_bin1860.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) = 16163.9322301

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .74817       1.0000          .0000       .10000E+07
     2 'norm      '    31.399       1.0000          .0000       .10000E+07
     3 'Prefactor '    .65622E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    308.09       1.0000          .0000       .10000E+07
     5 'Prefactor '    78.890       1.0000          .0000       .10000E+07
     6 'norm      '    .57418       1.0000          .0000       .10000E+07
     7 'norm      '    2.1223       1.0000          .0000       .10000E+07
     8 'Prefactor '    .82169E-03   1.0000          .0000       .10000E+07
     9 'norm      '    18.140       1.0000          .0000       .10000E+07
    10 'Prefactor '    .28887E-02   1.0000          .0000       .10000E+07
    11 'Prefactor '    .67320E-02   1.0000          .0000       .10000E+07
    12 'norm      '    1.1305       1.0000          .0000       .10000E+07
    13 'Prefactor '    .90011E-06   1.0000          .0000       .10000E+07
    14 'norm      '    .25963E-06   1.0000          .0000       .10000E+07
    15 'norm      '    22.447       1.0000          .0000       .10000E+07
    16 'norm      '    .20389E-06   1.0000          .0000       .10000E+07
    17 'Prefactor '    25.015       1.0000          .0000       .10000E+07
    18 'Normalizat'    1.7766       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .85919       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1293E+06   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   16163.89     FROM MIGRAD    STATUS=CONVERGED    203 CALLS     1439 TOTAL
                     EDM=   .78E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11102E-09    219.01       -.15320E-05** at limit **
   2  norm          32.155        34.813       -.97902E-06   -.20781E-03
   3  Prefactor      .0000        10.375       -.85337E-06** at limit **
   4  Prefactor     332.27        343.83       -.15877E-05    .35664E-04
   5  Prefactor     78.266        60.544        .35052E-06    .70618E-04
   6  norm          .65964        11.406        .19721E-05    .13667E-03
   7  norm          2.1232        .26051        .85992E-08   -.11211E-02
   8  Prefactor     .55511E-10    37.379        .77340E-06** at limit **
   9  norm          18.082        13.344        .19725E-07    .82326E-04
  10  Prefactor      .0000        17.319        .34538E-06** at limit **
  11  Prefactor      .0000        15.382       -.19003E-06** at limit **
  12  norm          1.1288        .89198        .13051E-06   -.15169E-03
  13  Prefactor      .0000        6.0903       -.24412E-07** at limit **
  14  norm           .0000        6.9038       -.99045E-07** at limit **
  15  norm          25.157        42.459       -.85038E-07    .14279E-03
  16  norm           .0000        1.3423       -.14046E-06** at limit **
  17  Prefactor     25.193        22.176        .42937E-06    .57593E-05
  18  Normalizat    1.7732        .33215       -.66928E-05    .16514E-04
  19  Prefactor     .85929        .53356E-01    .10222E-05   -.18988E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.11022e-10
  norm       = 32.1552
  Prefactor  = 0
  Prefactor  = 332.267
  Prefactor  = 78.2659
  norm       = 0.65964
  norm       = 2.12321
  Prefactor  = 5.55112e-11
  norm       = 18.0824
  Prefactor  = 0
  Prefactor  = 0
  norm       = 1.1288
  Prefactor  = 0
  norm       = 0
  norm       = 25.1568
  norm       = 0
  Prefactor  = 25.1932
  Normalizat = 1.77321
  Prefactor  = 0.859289
 **********
 **   18 **HESSE 
 **********

 FCN=   16163.89     FROM HESSE     STATUS=OK           308 CALLS     1747 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11102E-09    218.72        .56881E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          32.155        34.810        .17849E-03   -1.5595    
   3  Prefactor      .0000        10.395        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     332.27        342.85        .56981E-04   -1.5343    
   5  Prefactor     78.266        60.487        .11259E-03   -1.5531    
   6  norm          .65964        11.077        .71573E-03   -1.5692    
   7  norm          2.1232        .25945        .48693E-03   -1.5679    
   8  Prefactor     .55511E-10    37.367        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          18.082        13.346        .23488E-03   -1.5623    
  10  Prefactor      .0000        17.316        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor      .0000        15.361        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.1288        .89383        .10983E-02   -1.5687    
  13  Prefactor      .0000        6.0564        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm           .0000        6.8931        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          25.157        42.315        .21112E-03   -1.5608    
  16  norm           .0000        1.3346        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     25.193        22.073        .19998E-03   -1.5608    
  18  Normalizat    1.7732        .30691        .13995       -.70365    
  19  Prefactor     .85929        .48897E-01    .31719E-01   -.97579    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.35209e-09
Minuit parameter uncertainties:
  1  0.000315351
  2  34.8102
  3  2.50046e-05
  4  342.873
  5  60.4874
  6  5.40628
  7  0.259452
  8  9.03615e-05
  9  13.3461
  10  2.97556e-05
  11  3.35022e-06
  12  0.893833
  13  2.24538e-05
  14  7.29266e-06
  15  42.3157
  16  2.50247e-07
  17  22.0733
  18  0.307245
  19  0.0488996
Done.

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

Extracting fit parameters...

4FGL J1431.0-4432
   Spectrum: PowerLaw
531    Prefactor:  5.551e-11  9.036e-05  0.000e+00  1.000e+06 ( 1.000e-14)
532        Index:  2.304e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
533        Scale:  1.823e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
1257    Prefactor:  8.593e-01  4.890e-02  0.000e+00  1.000e+01 ( 1.000e+00)
1258        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
1259        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
1233   Normalization:  1.773e+00  3.072e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 217.751 -44.540
Photon Flux Upper Limit: 1.01600338918e-07 ph cm-2 s-1
Energy Flux Upper Limit: 0.00779967800717 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/34005406/likelihoodResults_721440001_721699201_4FGL_J1431.0-4432_daily_bin1860.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) = 16163.9010357
delta logL = -0.0127792118401

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 16163.8882622
delta logL = -5.70982774661e-06

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   16163.89     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      220 TOTAL
                     EDM=   .20E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        29.962        .42118E-03** at limit **
   2  Index         2.9847        1.9430        .35194E-05     .0000    
   3  Normalizat    1.7732        1.0294       -.85427E-05    .15676E-05
   4  Prefactor     .85929        1.2060        .27879E-05   -.91392E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.98467
  Normalizat = 1.77321
  Prefactor  = 0.859289
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   16163.89     FROM HESSE     STATUS=FAILED         9 CALLS      229 TOTAL
                     EDM=   .20E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        29.962        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.0073        2.1681        .35194E-05   -.41487    
   3  Normalizat    1.7732        1.0294       -.85427E-05   -.70365    
   4  Prefactor     .85929        1.2060        .27879E-05   -.97579    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.03847e-12
Minuit parameter uncertainties:
  1  7.56281e-06
  2  2.00676
  3  1.04238
  4  1.24668
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) = 16163.8882565
delta logL = 0.0

Extracting fit parameters...

4FGL J1431.0-4432
   Spectrum: PowerLaw
531    Prefactor:  0.000e+00  7.563e-06  0.000e+00  1.000e+06 ( 1.000e-14)
532        Index:  2.985e+00  2.007e+00  0.000e+00  1.000e+01 (-1.000e+00)
533        Scale:  1.823e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
1257    Prefactor:  8.593e-01  1.247e+00  0.000e+00  1.000e+01 ( 1.000e+00)
1258        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
1259        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
1233   Normalization:  1.773e+00  1.042e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 217.751 -44.540

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/34005406/cmap_HighResolution_721440001_721699201_4FGL_J1431.0-4432_daily_bin1860.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.80e-03', job_status='DONE', photon_flux_upper_limit='1.02e-07', time_completed='2023-11-15 00:56:50.088977', job_id='34005406', GAL2='0.86', fit_tolerance='1e-08', EG2='1.77', EG='1.77', time_epoch_completed='1700038610.09', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='0.00e+00', ts2='0.00', photon_index_error='0.00', photon_index='2.30' WHERE bin_id='1860' AND source_name='4FGL J1431.0-4432' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Nov 15 00:56:50 PST 2023

