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


Performing analysis on: 4FGL_J1435.9-8348_daily_bin1877
RA = 218.978, Dec = -83.8017
tmin = 725846401, tmax = 726105601
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='38412871', job_status='RUN', time_executed='2024-01-18 15:05:28.216755', time_epoch_executed='1705619128.22' WHERE source_name='4FGL J1435.9-8348' and cadence='daily' and bin_id='1877'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/38412871

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/38412871/ft1_4FGL_J1435.9-8348_daily_bin1877.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/38412871/ft2_4FGL_J1435.9-8348_daily_bin1877.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/38412871/ft1_4FGL_J1435.9-8348_daily_bin1877.fits outfile=/lscratch/kocevski/38412871/ft1_filteredMKT_4FGL_J1435.9-8348_daily_bin1877.fits ra=218.978 dec=-83.8017 rad=12.0 tmin=725846401.0 tmax=726105601.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 1.85
user 1.59
sys 0.17

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/38412871/ft2_4FGL_J1435.9-8348_daily_bin1877.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/38412871/ft2_4FGL_J1435.9-8348_daily_bin1877.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/38412871/ft1_filteredMKT_4FGL_J1435.9-8348_daily_bin1877.fits evtable="EVENTS" outfile="/lscratch/kocevski/38412871/ft1_filtered_4FGL_J1435.9-8348_daily_bin1877.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.41
user 0.20
sys 0.13

Number of photons that the gtmktime cut: 1342

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/38412871/ft1_filtered_4FGL_J1435.9-8348_daily_bin1877.fits" evtable="EVENTS" scfile=/lscratch/kocevski/38412871/ft2_4FGL_J1435.9-8348_daily_bin1877.fits sctable="SC_DATA" outfile=/lscratch/kocevski/38412871/ltcube_725846401_726105601_4FGL_J1435.9-8348_daily_bin1877.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/38412871/ft2_4FGL_J1435.9-8348_daily_bin1877.fits
.....................!
real 8.47
user 8.12
sys 0.22

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/38412871/ft1_filtered_4FGL_J1435.9-8348_daily_bin1877.fits evtable="EVENTS" scfile=/lscratch/kocevski/38412871/ft2_4FGL_J1435.9-8348_daily_bin1877.fits sctable="SC_DATA" expcube=/lscratch/kocevski/38412871/ltcube_725846401_726105601_4FGL_J1435.9-8348_daily_bin1877.fits outfile=/lscratch/kocevski/38412871/expmap_725846401_726105601_4FGL_J1435.9-8348_daily_bin1877.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/38412871/ltcube_725846401_726105601_4FGL_J1435.9-8348_daily_bin1877.fits
.....................!
real 65.85
user 61.82
sys 3.59

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 HESS J1303-631 in ROI with RadialGaussian 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.
Added 204 point sources and 5 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 J1435.9-8348 @ 218.978 -83.8017

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/38412871/ft1_filtered_4FGL_J1435.9-8348_daily_bin1877.fits scfile=/lscratch/kocevski/38412871/ft2_4FGL_J1435.9-8348_daily_bin1877.fits outfile=/lscratch/kocevski/38412871/cmap_725846401_726105601_4FGL_J1435.9-8348_daily_bin1877.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=218.978 yref=-83.8017 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.53
user 0.23
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/38412871/ft1_filtered_4FGL_J1435.9-8348_daily_bin1877.fits scfile=/lscratch/kocevski/38412871/ft2_4FGL_J1435.9-8348_daily_bin1877.fits outfile=/lscratch/kocevski/38412871/cmap_HighResolution_725846401_726105601_4FGL_J1435.9-8348_daily_bin1877.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=218.978 yref=-83.8017 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.38
user 0.23
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/38412871/ft1_filtered_4FGL_J1435.9-8348_daily_bin1877.fits evtable="EVENTS" scfile=/lscratch/kocevski/38412871/ft2_4FGL_J1435.9-8348_daily_bin1877.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/38412871/Model_4FGL_J1435.9-8348_daily_bin1877.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 FHES J1501.0-6310
adding source GAL_V02
adding source HESS J1303-631
adding source HESS J1356-645
adding source HESS J1507-622
adding source RCW 86
Working on...
/lscratch/kocevski/38412871/ft1_filtered_4FGL_J1435.9-8348_daily_bin1877.fits.....................!
real 70.26
user 69.12
sys 0.67

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/38412871/ft1_filtered_4FGL_J1435.9-8348_daily_bin1877.fits', '/lscratch/kocevski/38412871/ft2_4FGL_J1435.9-8348_daily_bin1877.fits', expMap='/lscratch/kocevski/38412871/expmap_725846401_726105601_4FGL_J1435.9-8348_daily_bin1877.fits', expCube='/lscratch/kocevski/38412871/ltcube_725846401_726105601_4FGL_J1435.9-8348_daily_bin1877.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/38412871/Model_4FGL_J1435.9-8348_daily_bin1877.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1435.9-8348'

4FGL J1435.9-8348
   Spectrum: PowerLaw
408    Prefactor:  1.034e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
409        Index:  2.546e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
410        Scale:  7.726e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/38412871/ft1_filtered_4FGL_J1435.9-8348_daily_bin1877.fits
Spacecraft file(s): /lscratch/kocevski/38412871/ft2_4FGL_J1435.9-8348_daily_bin1877.fits
Exposure map: /lscratch/kocevski/38412871/expmap_725846401_726105601_4FGL_J1435.9-8348_daily_bin1877.fits
Exposure cube: /lscratch/kocevski/38412871/ltcube_725846401_726105601_4FGL_J1435.9-8348_daily_bin1877.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/38412871/Model_4FGL_J1435.9-8348_daily_bin1877.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) = 13624.6288036

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .32994E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    9.3561       1.0000          .0000       .10000E+07
     3 'Prefactor '    3.1684       1.0000          .0000       .10000E+07
     4 'Prefactor '    .77542E-05   1.0000          .0000       .10000E+07
     5 'norm      '    2.9713       1.0000          .0000       .10000E+07
     6 'Prefactor '    3.0178       1.0000          .0000       .10000E+07
     7 'Prefactor '    .99470E-02   1.0000          .0000       .10000E+07
     8 'norm      '    .45148E-01   1.0000          .0000       .10000E+07
     9 'Prefactor '    .11247E-04   1.0000          .0000       .10000E+07
    10 'Prefactor '    .56011E-07   1.0000          .0000       .10000E+07
    11 'norm      '    .77793       1.0000          .0000       .10000E+07
    12 'Prefactor '    39.304       1.0000          .0000       .10000E+07
    13 'norm      '    31.199       1.0000          .0000       .10000E+07
    14 'norm      '    .17271E-01   1.0000          .0000       .10000E+07
    15 'norm      '    4.3194       1.0000          .0000       .10000E+07
    16 'norm      '    .13161E-05   1.0000          .0000       .10000E+07
    17 'Prefactor '    16.849       1.0000          .0000       .10000E+07
    18 'Normalizat'    .99246       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0196       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7020E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   13624.52     FROM MIGRAD    STATUS=CONVERGED    148 CALLS     1169 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .93259E-08    13.286       -.42150E-07** at limit **
   2  Prefactor     9.3739        1.4486        .83243E-09   -.64214E-01
   3  Prefactor     2.9057        7.8018       -.14342E-06   -.94560E-01
   4  Prefactor      .0000        7.8202        .31486E-06** at limit **
   5  norm          2.9693        2.6540       -.12531E-07   -.25550E-03
   6  Prefactor     3.0121        4.0660        .24276E-07   -.58614E-03
   7  Prefactor     .65614E-07    22.970        .48449E-06** at limit **
   8  norm          .74107E-07    51.595       -.68437E-06** at limit **
   9  Prefactor      .0000        1.7263       -.14767E-06** at limit **
  10  Prefactor     .55511E-10    6.0000       -.41565E-06** at limit **
  11  norm          .78306        1.2218       -.30094E-06    .45706E-02
  12  Prefactor     38.937        28.613        .99742E-07   -.92862E-01
  13  norm          31.230        9.2159        .53912E-08   -.44966E-01
  14  norm          .55511E-10    36.840        .10754E-05** at limit **
  15  norm          4.2414        8.0998        .30172E-06   -.48862E-03
  16  norm          .49960E-09    4.7213        .10660E-05** at limit **
  17  Prefactor     14.514        56.468       -.16503E-05    .69576E-02
  18  Normalizat    .99351        .26188       -.10504E-06    .26244E-04
  19  Prefactor     1.0196        .72938E-01   -.77961E-06    .54280E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.32587e-09
  Prefactor  = 9.37393
  Prefactor  = 2.9057
  Prefactor  = 0
  norm       = 2.96933
  Prefactor  = 3.01205
  Prefactor  = 6.56142e-08
  norm       = 7.41074e-08
  Prefactor  = 0
  Prefactor  = 5.55112e-11
  norm       = 0.783058
  Prefactor  = 38.9366
  norm       = 31.2302
  norm       = 5.55112e-11
  norm       = 4.24142
  norm       = 4.996e-10
  Prefactor  = 14.5138
  Normalizat = 0.993508
  Prefactor  = 1.01962
 **********
 **   18 **HESSE 
 **********

 FCN=   13624.52     FROM HESSE     STATUS=OK           308 CALLS     1477 TOTAL
                     EDM=   .17E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .93259E-08    13.317        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     9.3739        12.212        .32740E-03   -1.5647    
   3  Prefactor     2.9057        30.200        .56912E-03   -1.5674    
   4  Prefactor      .0000        7.8322        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.9693        2.6526        .58878E-03   -1.5673    
   6  Prefactor     3.0121        4.0806        .58395E-03   -1.5673    
   7  Prefactor     .65614E-07    23.023        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .74107E-07    50.868        .15739E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor      .0000        1.7209        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .55511E-10    5.9906        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .78306        1.2625        .54595E-03   -1.5690    
  12  Prefactor     38.937        31.702        .15952E-03   -1.5583    
  13  norm          31.230        9.2714        .17906E-03   -1.5596    
  14  norm          .55511E-10    36.818        .17223E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.2414        8.1018        .48446E-03   -1.5667    
  16  norm          .49960E-09    4.7152        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     14.514        56.740        .24373E-03   -1.5632    
  18  Normalizat    .99351        .23781        .11330       -.93248    
  19  Prefactor     1.0196        .65440E-01    .31665E-01   -.92078    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.65145e-06
Minuit parameter uncertainties:
  1  0.000704293
  2  12.212
  3  18.7353
  4  8.80097e-06
  5  2.65261
  6  4.08063
  7  0.00245797
  8  0.00388324
  9  3.56305e-06
  10  3.2946e-05
  11  1.26252
  12  31.7023
  13  9.27139
  14  0.000107386
  15  8.10178
  16  9.61074e-05
  17  56.742
  18  0.238062
  19  0.065445
Done.

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

Extracting fit parameters...

4FGL J1435.9-8348
   Spectrum: PowerLaw
408    Prefactor:  0.000e+00  3.563e-06  0.000e+00  1.000e+06 ( 1.000e-12)
409        Index:  2.546e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
410        Scale:  7.726e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
687    Prefactor:  1.020e+00  6.544e-02  0.000e+00  1.000e+01 ( 1.000e+00)
688        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
689        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
682   Normalization:  9.935e-01  2.381e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 218.978 -83.802
Photon Flux Upper Limit: 7.37263836226e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00575077404818 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/38412871/likelihoodResults_725846401_726105601_4FGL_J1435.9-8348_daily_bin1877.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) = 13624.5233972
delta logL = -0.00758474467511

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 13624.5158127
delta logL = -1.82146322913e-07

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   13624.52     FROM MIGRAD    STATUS=CONVERGED     37 CALLS      243 TOTAL
                     EDM=   .49E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        1.7592        .42118E-03** at limit **
   2  Index         2.0408        1.2298        .78389E-06     .0000    
   3  Normalizat    .99351        1.3236        .32223E-05   -.13676E-04
   4  Prefactor     1.0196        1.2389       -.13389E-05   -.55528E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.0408
  Normalizat = 0.993508
  Prefactor  = 1.01962
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   13624.52     FROM HESSE     STATUS=FAILED         9 CALLS      252 TOTAL
                     EDM=   .49E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        1.7592        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .44988        1.7320        .78389E-06   -.63334    
   3  Normalizat    .99351        1.3236        .32223E-05   -.93248    
   4  Prefactor     1.0196        1.2389       -.13389E-05   -.92078    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 4.86086e-13
Minuit parameter uncertainties:
  1  2.02759e-06
  2  1.24971
  3  1.37165
  4  1.2764
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) = 13624.5158125
delta logL = 0.0

Extracting fit parameters...

4FGL J1435.9-8348
   Spectrum: PowerLaw
408    Prefactor:  0.000e+00  2.028e-06  0.000e+00  1.000e+06 ( 1.000e-12)
409        Index:  2.041e+00  1.250e+00  0.000e+00  1.000e+01 (-1.000e+00)
410        Scale:  7.726e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
687    Prefactor:  1.020e+00  1.276e+00  0.000e+00  1.000e+01 ( 1.000e+00)
688        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
689        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
682   Normalization:  9.935e-01  1.372e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 218.978 -83.802

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/38412871/cmap_HighResolution_725846401_726105601_4FGL_J1435.9-8348_daily_bin1877.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.75e-03', job_status='DONE', photon_flux_upper_limit='7.37e-08', time_completed='2024-01-18 15:12:00.606202', job_id='38412871', GAL2='1.02', fit_tolerance='1e-08', EG2='0.99', EG='0.99', time_epoch_completed='1705619520.61', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='0.00e+00', ts2='0.00', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='1877' AND source_name='4FGL J1435.9-8348' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Jan 18 15:12:00 PST 2024

