/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/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)


Waiting 41 seconds before starting...
Proceeding.

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 make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/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 = 7640
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1431.1-3120_daily_bin1304
RA = 217.796, Dec = -31.3468
tmin = 577324801, tmax = 577584001
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='587337', job_status='RUN', time_executed='2021-09-09 22:57:20.687491', time_epoch_executed='1631253440.69' WHERE source_name='4FGL J1431.1-3120' and cadence='daily' and bin_id='1304'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/587337

Creating custom pfile directory:
/scratch/kocevski/587337/pfiles/

Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStop>=577324801.0 && nMetStart<577584001.0' /Data/Flight/Reprocess/P305

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=577324801.0 && nMetStart<577584001.0' /Data/Flight/Level1/LPA

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/587337/ft1_4FGL_J1431.1-3120_daily_bin1304.fits


Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT2 --filter 'nMetStop>=577324801.0 && nMetStart<577584001.0' /Data/Flight/Level1/LPA

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/587337/ft2_4FGL_J1431.1-3120_daily_bin1304.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/587337/ft1_4FGL_J1431.1-3120_daily_bin1304.fits outfile=/scratch/kocevski/587337/ft1_filteredMKT_4FGL_J1431.1-3120_daily_bin1304.fits ra=217.796 dec=-31.3468 rad=12.0 tmin=577324801.0 tmax=577584001.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.08
user 2.86
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/587337/ft2_4FGL_J1431.1-3120_daily_bin1304.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/587337/ft2_4FGL_J1431.1-3120_daily_bin1304.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/scratch/kocevski/587337/ft1_filteredMKT_4FGL_J1431.1-3120_daily_bin1304.fits evtable="EVENTS" outfile="/scratch/kocevski/587337/ft1_filtered_4FGL_J1431.1-3120_daily_bin1304.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('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/587337/ft1_filtered_4FGL_J1431.1-3120_daily_bin1304.fits" evtable="EVENTS" scfile=/scratch/kocevski/587337/ft2_4FGL_J1431.1-3120_daily_bin1304.fits sctable="SC_DATA" outfile=/scratch/kocevski/587337/ltcube_577324801_577584001_4FGL_J1431.1-3120_daily_bin1304.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 /scratch/kocevski/587337/ft2_4FGL_J1431.1-3120_daily_bin1304.fits
.....................!
real 12.48
user 12.11
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/587337/ft1_filtered_4FGL_J1431.1-3120_daily_bin1304.fits evtable="EVENTS" scfile=/scratch/kocevski/587337/ft2_4FGL_J1431.1-3120_daily_bin1304.fits sctable="SC_DATA" expcube=/scratch/kocevski/587337/ltcube_577324801_577584001_4FGL_J1431.1-3120_daily_bin1304.fits outfile=/scratch/kocevski/587337/expmap_577324801_577584001_4FGL_J1431.1-3120_daily_bin1304.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 /scratch/kocevski/587337/ltcube_577324801_577584001_4FGL_J1431.1-3120_daily_bin1304.fits
.....................!
real 192.30
user 186.79
sys 5.10

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 /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/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=/scratch/kocevski/587337/ft1_filtered_4FGL_J1431.1-3120_daily_bin1304.fits scfile=/scratch/kocevski/587337/ft2_4FGL_J1431.1-3120_daily_bin1304.fits outfile=/scratch/kocevski/587337/cmap_577324801_577584001_4FGL_J1431.1-3120_daily_bin1304.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.53
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/587337/ft1_filtered_4FGL_J1431.1-3120_daily_bin1304.fits scfile=/scratch/kocevski/587337/ft2_4FGL_J1431.1-3120_daily_bin1304.fits outfile=/scratch/kocevski/587337/cmap_HighResolution_577324801_577584001_4FGL_J1431.1-3120_daily_bin1304.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.55
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/587337/ft1_filtered_4FGL_J1431.1-3120_daily_bin1304.fits evtable="EVENTS" scfile=/scratch/kocevski/587337/ft2_4FGL_J1431.1-3120_daily_bin1304.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/587337/Model_4FGL_J1431.1-3120_daily_bin1304.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...
/scratch/kocevski/587337/ft1_filtered_4FGL_J1431.1-3120_daily_bin1304.fits.................................!
real 20.82
user 19.43
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/587337/ft1_filtered_4FGL_J1431.1-3120_daily_bin1304.fits', '/scratch/kocevski/587337/ft2_4FGL_J1431.1-3120_daily_bin1304.fits', expMap='/scratch/kocevski/587337/expmap_577324801_577584001_4FGL_J1431.1-3120_daily_bin1304.fits', expCube='/scratch/kocevski/587337/ltcube_577324801_577584001_4FGL_J1431.1-3120_daily_bin1304.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/587337/Model_4FGL_J1431.1-3120_daily_bin1304.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  1.000e-04  1.000e+04 ( 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): /scratch/kocevski/587337/ft1_filtered_4FGL_J1431.1-3120_daily_bin1304.fits
Spacecraft file(s): /scratch/kocevski/587337/ft2_4FGL_J1431.1-3120_daily_bin1304.fits
Exposure map: /scratch/kocevski/587337/expmap_577324801_577584001_4FGL_J1431.1-3120_daily_bin1304.fits
Exposure cube: /scratch/kocevski/587337/ltcube_577324801_577584001_4FGL_J1431.1-3120_daily_bin1304.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/587337/Model_4FGL_J1431.1-3120_daily_bin1304.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 398.83146105

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 396.453636436

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.9903       1.0000         .10000E-03   10000.    
     2 'norm      '    3.1522       1.0000         .10000E-03   10000.    
     3 'norm      '    7.5808       1.0000         .10000E-03   10000.    
     4 'norm      '    2.0324       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.0206       1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.6914       1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.8009       1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.6487       1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.7721       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.1076       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.5897       1.0000         .10000E-03   10000.    
    12 'norm      '    50.827       1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.444       1.0000         .10000E-03   10000.    
    14 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.0975       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .18507       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.6531       1.0000         .10000E-03   10000.    
    18 'norm      '    .48156E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.3796       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .34214E-01   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .20249       1.0000         .10000E-03   10000.    
    22 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    75.013       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .36552       1.0000         .10000E-03   10000.    
    25 'norm      '    .11151E-02   1.0000         .10000E-03   10000.    
    26 'norm      '    11.240       1.0000         .10000E-03   10000.    
    27 'Prefactor '    52.755       1.0000         .10000E-03   10000.    
    28 'norm      '    .11199E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    30 'Prefactor '    .59130       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=   396.0352     FROM MIGRAD    STATUS=CONVERGED    293 CALLS      483 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.9903        1.0013         .0000         .0000    
   2  norm          3.1522        1.0132         .0000         .0000    
   3  norm          9.6641        2.3169       -.47778E-06   -.33771E-02
   4  norm          2.0324        1.0340         .0000         .0000    
   5  Prefactor     1.0206        1.2913         .0000         .0000    
   6  Prefactor     11.549        1.9052       -.39635E-06   -.23512E-02
   7  Prefactor     5.9648        1.0296       -.45206E-07   -.25584E-03
   8  Prefactor     7.6487        1.0021         .0000         .0000    
   9  Prefactor     5.6816        2.5744        .79114E-06    .56263E-02
  10  Prefactor     .87522E-02    6.5164        .30543E-05   -.44259E-03
  11  Prefactor     .10084E-03    331.73        .39557E-04** at limit **
  12  norm          .14477E-03    92.387        .53480E-05** at limit **
  13  Prefactor     777.33        894.76       -.33046E-04   -.23824E-02
  14  norm          .10000E-03    1.2395       -.15604E-05** at limit **
  15  Prefactor     .14049E-02    3.3433        .33237E-05** at limit **
  16  Prefactor     .10000E-03    126.94       -.11794E-04** at limit **
  17  Prefactor     .10002E-03    339.63       -.82118E-05** at limit **
  18  norm          .10000E-03    53.551       -.61171E-05** at limit **
  19  Prefactor     .23004E-01    47.478        .84271E-05   -.82412E-02
  20  Prefactor     .10000E-03    60.840        .54348E-05** at limit **
  21  Prefactor     .10000E-03    103.54       -.14411E-05** at limit **
  22  norm          .10000E-03    2.7022        .20587E-06** at limit **
  23  Prefactor     72.807        67.400        .30707E-05   -.42190E-03
  24  Prefactor     .10002E-03    62.745       -.72029E-05** at limit **
  25  norm          .10001E-03    33.083       -.25775E-05** at limit **
  26  norm          43.102        169.27        .66406E-05   -.18779E-02
  27  Prefactor     54.265        38.794       -.16976E-05   -.15992E-02
  28  norm          .10000E-03    31.124        .15445E-05** at limit **
  29  Normalizat    .10000E-01    2.0859       -.27048E-03** at limit **
  30  Prefactor     .56689        .20822        .38510E-06    .63988E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.99031
  norm       = 3.15221
  norm       = 9.66414
  norm       = 2.0324
  Prefactor  = 1.02056
  Prefactor  = 11.5493
  Prefactor  = 5.96477
  Prefactor  = 7.6487
  Prefactor  = 5.68161
  Prefactor  = 0.00875224
  Prefactor  = 0.000100837
  norm       = 0.000144765
  Prefactor  = 777.331
  norm       = 0.0001
  Prefactor  = 0.00140485
  Prefactor  = 0.0001
  Prefactor  = 0.000100016
  norm       = 0.000100001
  Prefactor  = 0.0230038
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 72.8075
  Prefactor  = 0.000100017
  norm       = 0.000100015
  norm       = 43.1024
  Prefactor  = 54.2648
  norm       = 0.000100001
  Normalizat = 0.01
  Prefactor  = 0.566895
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   396.0352     FROM HESSE     STATUS=FAILED        11 CALLS      494 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     490.77        480.76         .0000       -1.5076    
   2  norm          3.1522        1.0132         .0000       -1.5353    
   3  norm          9.6641        1.1314       -.47778E-06   -1.5086    
   4  norm          2.0324        1.0340         .0000       -1.5423    
   5  Prefactor     1.0206        1.2913         .0000       -1.5506    
   6  Prefactor     11.549        1.0930       -.39635E-06   -1.5028    
   7  Prefactor     5.9648        1.0178       -.45206E-07   -1.5219    
   8  Prefactor     7.6487        1.0021         .0000       -1.5155    
   9  Prefactor     5.6816        .80623        .79114E-06   -1.5231    
  10  Prefactor     .87522E-02    .31578        .30543E-05   -1.5727    
  11  Prefactor     .10084E-03    .17700        .39557E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .14477E-03    .49443E-02    .53480E-05   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     777.33        8.2990       -.33046E-04   -1.0057    
  14  norm          .10000E-03    .20571       -.15604E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .14049E-02    .35426E-01    .33237E-05   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    .24548       -.11794E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10002E-03    .97868E-01   -.82118E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    .28026       -.61171E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .23004E-01    .52397E-01    .84271E-05   -1.5738    
  20  Prefactor     .10000E-03    .21127        .54348E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    .24945       -.14411E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    .20571        .20587E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     72.807        .98532        .30707E-05   -1.3999    
  24  Prefactor     .10002E-03    .28669       -.72029E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10001E-03    .26752       -.25775E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          43.102        1.9571        .66406E-05   -1.7022    
  27  Prefactor     54.265        1.0142       -.16976E-05   -1.4233    
  28  norm          .10000E-03    .20571        .15445E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .10000E-01    .25505       -.27048E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .56689        .92040        .38510E-06   -1.0900    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.1486e-09
Minuit parameter uncertainties:
  1  1.00126
  2  1.01317
  3  1.13144
  4  1.03401
  5  1.29138
  6  1.09301
  7  1.01783
  8  1.00215
  9  0.806228
  10  0.104542
  11  0.000769614
  12  0.00094092
  13  8.29904
  14  4.54087e-06
  15  0.0135978
  16  1.92966e-05
  17  7.93947e-05
  18  2.67919e-05
  19  0.0523967
  20  4.03656e-06
  21  4.47322e-05
  22  3.99288e-06
  23  0.985322
  24  0.000140348
  25  0.000124944
  26  1.9571
  27  1.01417
  28  2.06005e-05
  29  8.56466e-06
  30  0.946619
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 396.03520068

Extracting fit parameters...

4FGL J1431.1-3120
   Spectrum: PowerLaw
324    Prefactor:  1.405e-03  1.360e-02  1.000e-04  1.000e+04 ( 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:  5.669e-01  9.466e-01  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.000e-02  8.565e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 217.796 -31.347
Photon Flux Upper Limit: 2.51e-06 ph cm-2 s-1
Energy Flux Upper Limit: 1.88e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/587337/likelihoodResults_577324801_577584001_4FGL_J1431.1-3120_daily_bin1304.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) = 396.035202406
delta logL = -1.72558594613e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 396.035201702
delta logL = -1.02193939711e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14026E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9885       1.0000          .0000       10.000    
     3 'Normalizat'    .10004E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .56684       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   396.0352     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      242 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    265.08        .20523E-01** at limit **
   2  Index         2.1756        8.5799        .50000        .98240E-07
   3  Normalizat    .10000E-01    .13426E-02    .12795E-01** at limit **
   4  Prefactor     .56690        .37140E-02    .12743E-03    .33424E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100007
  Index      = 2.1756
  Normalizat = 0.01
  Prefactor  = 0.566895
 **********
 **   18 **HESSE 
 **********

 FCN=   396.0352     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      271 TOTAL
                     EDM=   .78E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    1378.9        .41046E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1756        5.0753        .50000       -.60029    
   3  Normalizat    .10000E-01    .72882E-02    .25590E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .56690        .86465E-02    .25485E-04   -1.0900    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.83941e-11
Minuit parameter uncertainties:
  1  0.00658114
  2  526.629
  3  1.26697e-06
  4  0.00864654
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/587337': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 396.035199997
delta logL = 6.8302068712e-07

Extracting fit parameters...

4FGL J1431.1-3120
   Spectrum: PowerLaw
324    Prefactor:  1.000e-04  6.581e-03  1.000e-04  1.000e+04 ( 1.000e-14)
325        Index:  2.176e+00  5.266e+02  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:  5.669e-01  8.647e-03  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.000e-02  1.267e-06  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/587337/cmap_HighResolution_577324801_577584001_4FGL_J1431.1-3120_daily_bin1304.png

Cleaning up...

** Nuclear option initiated! **
rmdir /scratch/kocevski/587337

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.88e-01', job_status='DONE', photon_flux_upper_limit='2.51e-06', time_completed='2021-09-09 23:03:05.182752', job_id='587337', GAL2='0.57', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1631253785.18', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.57', dlogl='6.83e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.99' WHERE bin_id='1304' AND source_name='4FGL J1431.1-3120' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 23:03:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0280>
Subject: Job 587337: <4FGL_J1431.1-3120_daily_bin1304> in cluster <slac> Done

Job <4FGL_J1431.1-3120_daily_bin1304> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Thu Sep  9 22:56:24 2021
Job was executed on host(s) <bullet0280>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 22:56:26 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  9 22:56:26 2021
Terminated at Thu Sep  9 23:03:05 2021
Results reported at Thu Sep  9 23:03:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1431.1-3120_daily_bin1304 217.796 -31.3468 577324801 577584001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1431.1-3120 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   338.40 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             387.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   399 sec.
    Turnaround time :                            401 sec.

The output (if any) is above this job summary.

