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


Performing analysis on: 4FGL_J1431.1-3120_daily_bin1375
RA = 217.796, Dec = -31.3468
tmin = 595728001, tmax = 595987201
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='587438', job_status='RUN', time_executed='2021-09-09 22:57:26.230424', time_epoch_executed='1631253446.23' WHERE source_name='4FGL J1431.1-3120' and cadence='daily' and bin_id='1375'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/587438

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/587438/ft1_4FGL_J1431.1-3120_daily_bin1375.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/587438/ft2_4FGL_J1431.1-3120_daily_bin1375.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/587438/ft1_4FGL_J1431.1-3120_daily_bin1375.fits outfile=/scratch/kocevski/587438/ft1_filteredMKT_4FGL_J1431.1-3120_daily_bin1375.fits ra=217.796 dec=-31.3468 rad=12.0 tmin=595728001.0 tmax=595987201.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 4.27
user 2.39
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/587438/ft2_4FGL_J1431.1-3120_daily_bin1375.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/587438/ft1_filteredMKT_4FGL_J1431.1-3120_daily_bin1375.fits evtable="EVENTS" outfile="/scratch/kocevski/587438/ft1_filtered_4FGL_J1431.1-3120_daily_bin1375.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.53
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/587438/ft1_filtered_4FGL_J1431.1-3120_daily_bin1375.fits" evtable="EVENTS" scfile=/scratch/kocevski/587438/ft2_4FGL_J1431.1-3120_daily_bin1375.fits sctable="SC_DATA" outfile=/scratch/kocevski/587438/ltcube_595728001_595987201_4FGL_J1431.1-3120_daily_bin1375.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/587438/ft2_4FGL_J1431.1-3120_daily_bin1375.fits
.....................!
real 12.41
user 11.95
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/587438/ft1_filtered_4FGL_J1431.1-3120_daily_bin1375.fits evtable="EVENTS" scfile=/scratch/kocevski/587438/ft2_4FGL_J1431.1-3120_daily_bin1375.fits sctable="SC_DATA" expcube=/scratch/kocevski/587438/ltcube_595728001_595987201_4FGL_J1431.1-3120_daily_bin1375.fits outfile=/scratch/kocevski/587438/expmap_595728001_595987201_4FGL_J1431.1-3120_daily_bin1375.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/587438/ltcube_595728001_595987201_4FGL_J1431.1-3120_daily_bin1375.fits
.....................!
real 190.17
user 185.12
sys 4.66

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/587438/ft1_filtered_4FGL_J1431.1-3120_daily_bin1375.fits scfile=/scratch/kocevski/587438/ft2_4FGL_J1431.1-3120_daily_bin1375.fits outfile=/scratch/kocevski/587438/cmap_595728001_595987201_4FGL_J1431.1-3120_daily_bin1375.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/587438/ft1_filtered_4FGL_J1431.1-3120_daily_bin1375.fits scfile=/scratch/kocevski/587438/ft2_4FGL_J1431.1-3120_daily_bin1375.fits outfile=/scratch/kocevski/587438/cmap_HighResolution_595728001_595987201_4FGL_J1431.1-3120_daily_bin1375.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.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/587438/ft1_filtered_4FGL_J1431.1-3120_daily_bin1375.fits evtable="EVENTS" scfile=/scratch/kocevski/587438/ft2_4FGL_J1431.1-3120_daily_bin1375.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/587438/Model_4FGL_J1431.1-3120_daily_bin1375.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/587438/ft1_filtered_4FGL_J1431.1-3120_daily_bin1375.fits...............................!
real 19.23
user 17.84
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/587438/ft1_filtered_4FGL_J1431.1-3120_daily_bin1375.fits', '/scratch/kocevski/587438/ft2_4FGL_J1431.1-3120_daily_bin1375.fits', expMap='/scratch/kocevski/587438/expmap_595728001_595987201_4FGL_J1431.1-3120_daily_bin1375.fits', expCube='/scratch/kocevski/587438/ltcube_595728001_595987201_4FGL_J1431.1-3120_daily_bin1375.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/587438/Model_4FGL_J1431.1-3120_daily_bin1375.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/587438/ft1_filtered_4FGL_J1431.1-3120_daily_bin1375.fits
Spacecraft file(s): /scratch/kocevski/587438/ft2_4FGL_J1431.1-3120_daily_bin1375.fits
Exposure map: /scratch/kocevski/587438/expmap_595728001_595987201_4FGL_J1431.1-3120_daily_bin1375.fits
Exposure cube: /scratch/kocevski/587438/ltcube_595728001_595987201_4FGL_J1431.1-3120_daily_bin1375.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/587438/Model_4FGL_J1431.1-3120_daily_bin1375.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) = 281.215324201

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10218E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11561E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .17042E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .26940       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .14451E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .16605E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2989.8       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10018E-01   1.0000         .10000E-03   10000.    
    14 'norm      '   10000.0       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .13313E-01   1.0000         .10000E-03   10000.    
    16 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    17 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    18 'norm      '    .22390E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    52.367       1.0000         .10000E-03   10000.    
    20 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10069E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .14624E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10177E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .56616E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10498E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .10001E-01   1.0000         .10000E-01   10.000    
    30 'Prefactor '    .29652       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.

 FCN=   277.4648     FROM MIGRAD    STATUS=CONVERGED    782 CALLS     4546 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    83.148        .68434E-07** at limit **
   2  norm          .10000E-03    41.916       -.74245E-07** at limit **
   3  norm          .10000E-03    44.133        .17327E-06** at limit **
   4  norm          .10000E-03    23.030        .87154E-07** at limit **
   5  Prefactor     .10000E-03    9.4035        .10187E-06** at limit **
   6  Prefactor     .10000E-03    97.976       -.15811E-05** at limit **
   7  Prefactor     .10005E-03    588.27        .25640E-05** at limit **
   8  Prefactor     .10000E-03    156.10        .52217E-06** at limit **
   9  Prefactor     .10218E-03    7842.2        .99742E-05** at limit **
  10  Prefactor     .10000E-03    98.409       -.16731E-05** at limit **
  11  Prefactor     .10011E-03    690.21       -.53171E-06** at limit **
  12  norm          2972.1        3770.5       -.17592E-04    .39645E-05
  13  Prefactor     .10069E-03    1797.6       -.39391E-04** at limit **
  14  norm         10000.0        235.06        .37426E-06** at limit **
  15  Prefactor     .10697E-03    7088.3       -.12396E-04** at limit **
  16  Prefactor    10000.0        7077.4        .91954E-04** at limit **
  17  Prefactor    10000.0        9627.7       -.17218E-04** at limit **
  18  norm          .10184E-03    6668.8       -.12115E-04** at limit **
  19  Prefactor    10000.0        5772.5       -.38995E-05** at limit **
  20  Prefactor    10000.0        6773.7        .74121E-04** at limit **
  21  Prefactor     .10008E-03    761.05        .13235E-04** at limit **
  22  norm          .10000E-03    59.929       -.76602E-06** at limit **
  23  Prefactor     .10000E-03    173.64       -.27918E-06** at limit **
  24  Prefactor     .10000E-03    764.90        .44224E-05** at limit **
  25  norm          .10000E-03    72.369        .18714E-05** at limit **
  26  norm          .10000E-03    166.08       -.88121E-07** at limit **
  27  Prefactor     .10007E-03    374.87        .21939E-04** at limit **
  28  norm          .10000E-03    122.27        .25689E-06** at limit **
  29  Normalizat    .10000E-01    .33633        .50089E-05** at limit **
  30  Prefactor     .29635        .14361        .10875E-05    .27741E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100045
  Prefactor  = 0.000100001
  Prefactor  = 0.000102176
  Prefactor  = 0.0001
  Prefactor  = 0.000100111
  norm       = 2972.11
  Prefactor  = 0.00010069
  norm       = 10000
  Prefactor  = 0.000106967
  Prefactor  = 10000
  Prefactor  = 10000
  norm       = 0.000101836
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 0.000100081
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100002
  norm       = 0.0001
  norm       = 0.000100002
  Prefactor  = 0.000100069
  norm       = 0.0001
  Normalizat = 0.01
  Prefactor  = 0.296346
 **********
 **   18 **HESSE 
 **********

 FCN=   277.4648     FROM HESSE     STATUS=OK           560 CALLS     5106 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    86.108        .15128E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    42.622        .10641E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    44.942        .10924E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    23.284        .78544E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    9.5019        .50045E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    101.71        .16449E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10005E-03    643.34        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    165.27        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10218E-03    7839.1        .20580E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    102.22        .16489E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10011E-03    700.89        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2972.1        3828.9        .43686E-04   -.41761    
  13  Prefactor     .10069E-03    6205.9        .18146E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm         10000.0        260.26        .21320E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10697E-03    7264.5        .18179E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor    10000.0        8558.4        .21003E-02    1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor    10000.0        9629.5        .18838E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10184E-03    6776.7        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor    10000.0        5717.9        .27711E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor    10000.0        8115.9        .19350E-02    1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10008E-03    924.13        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    61.341        .12766E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    186.61        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    1107.5        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    74.014        .14026E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    177.36        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10007E-03    440.82        .21094E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    128.67        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .10000E-01    .43633        .64581E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .29635        .15025        .13933E-03   -1.2248    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.05134e-08
Minuit parameter uncertainties:
  1  9.13503e-06
  2  3.63725e-05
  3  4.99202e-05
  4  1.21259e-05
  5  8.74773e-06
  6  8.44438e-06
  7  0.0109072
  8  0.000962827
  9  0.251757
  10  1.0752e-05
  11  0.0178559
  12  4539.24
  13  0.0852805
  14  0.000296886
  15  0.389718
  16  1.52865
  17  0.224826
  18  0.173075
  19  0.796009
  20  0.73517
  21  0.0175823
  22  0.000125349
  23  0.000749521
  24  0.00325587
  25  0.000151843
  26  0.00106084
  27  0.0111494
  28  3.1164e-05
  29  2.50988e-06
  30  0.15045
Done.

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

Extracting fit parameters...

4FGL J1431.1-3120
   Spectrum: PowerLaw
324    Prefactor:  1.070e-04  3.897e-01  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:  2.963e-01  1.505e-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  2.510e-06  1.000e-02  1.000e+01 ( 1.000e+00)

calc_int error: parameter max 10000.0 is not large enough
delta logLike = -0.931280954844

TS (Fixed Index): -0.00
Ra Dec: 217.796 -31.347
Photon Flux Upper Limit: -1.00e+00 ph cm-2 s-1
Energy Flux Upper Limit: -7.49e+04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/587438/likelihoodResults_595728001_595987201_4FGL_J1431.1-3120_daily_bin1375.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) = 277.464795822
delta logL = -1.71191396703e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 277.464795822
delta logL = -1.71191231857e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Index     '    1.2616       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=   277.4648     FROM MIGRAD    STATUS=CONVERGED     24 CALLS       91 TOTAL
                     EDM=   .11E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1    Index       1.2616        6.1734         .0000        .11084E-09
                               ERR DEF=  .500    
Final values: 
  Index      = 1.26158
 **********
 **   18 **HESSE 
 **********

 FCN=   277.4648     FROM HESSE     STATUS=OK            11 CALLS      102 TOTAL
                     EDM=   .22E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1    Index       1.2616        6.1734        .50000       -.84457    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.17818e-14
Minuit parameter uncertainties:
  1  4420.85
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/587438': 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): 0
logL (Free Index) = 277.464795822
delta logL = -1.71191231857e-06

Extracting fit parameters...

4FGL J1431.1-3120
   Spectrum: PowerLaw
324    Prefactor:  1.000e-04  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14) fixed
325        Index:  1.262e+00  4.421e+03  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:  2.961e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
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  0.000e+00  1.000e-02  1.000e+01 ( 1.000e+00) fixed


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/587438/cmap_HighResolution_595728001_595987201_4FGL_J1431.1-3120_daily_bin1375.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='-7.49e+04', job_status='DONE', photon_flux_upper_limit='-1.00e+00', time_completed='2021-09-09 23:03:43.258260', job_id='587438', GAL2='0.30', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1631253823.26', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.30', dlogl='-1.71e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.99' WHERE bin_id='1375' AND source_name='4FGL J1431.1-3120' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 23:03:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0290>
Subject: Job 587438: <4FGL_J1431.1-3120_daily_bin1375> in cluster <slac> Done

Job <4FGL_J1431.1-3120_daily_bin1375> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Thu Sep  9 22:56:32 2021
Job was executed on host(s) <bullet0290>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 22:56:33 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:33 2021
Terminated at Thu Sep  9 23:03:44 2021
Results reported at Thu Sep  9 23:03:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1431.1-3120_daily_bin1375 217.796 -31.3468 595728001 595987201 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 :                                   367.12 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             313.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   430 sec.
    Turnaround time :                            432 sec.

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

