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


Performing analysis on: 4FGL_J1431.1-3120_daily_bin1371
RA = 217.796, Dec = -31.3468
tmin = 594691201, tmax = 594950401
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='587432', job_status='RUN', time_executed='2021-09-09 22:57:22.285509', time_epoch_executed='1631253442.29' WHERE source_name='4FGL J1431.1-3120' and cadence='daily' and bin_id='1371'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/587432

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/587432/ft1_4FGL_J1431.1-3120_daily_bin1371.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/587432/ft2_4FGL_J1431.1-3120_daily_bin1371.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/587432/ft1_4FGL_J1431.1-3120_daily_bin1371.fits outfile=/scratch/kocevski/587432/ft1_filteredMKT_4FGL_J1431.1-3120_daily_bin1371.fits ra=217.796 dec=-31.3468 rad=12.0 tmin=594691201.0 tmax=594950401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 2.95
user 2.74
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/587432/ft1_filtered_4FGL_J1431.1-3120_daily_bin1371.fits" evtable="EVENTS" scfile=/scratch/kocevski/587432/ft2_4FGL_J1431.1-3120_daily_bin1371.fits sctable="SC_DATA" outfile=/scratch/kocevski/587432/ltcube_594691201_594950401_4FGL_J1431.1-3120_daily_bin1371.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/587432/ft2_4FGL_J1431.1-3120_daily_bin1371.fits
.....................!
real 12.89
user 12.53
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/587432/ft1_filtered_4FGL_J1431.1-3120_daily_bin1371.fits evtable="EVENTS" scfile=/scratch/kocevski/587432/ft2_4FGL_J1431.1-3120_daily_bin1371.fits sctable="SC_DATA" expcube=/scratch/kocevski/587432/ltcube_594691201_594950401_4FGL_J1431.1-3120_daily_bin1371.fits outfile=/scratch/kocevski/587432/expmap_594691201_594950401_4FGL_J1431.1-3120_daily_bin1371.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/587432/ltcube_594691201_594950401_4FGL_J1431.1-3120_daily_bin1371.fits
.....................!
real 189.92
user 185.36
sys 4.13

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/587432/ft1_filtered_4FGL_J1431.1-3120_daily_bin1371.fits scfile=/scratch/kocevski/587432/ft2_4FGL_J1431.1-3120_daily_bin1371.fits outfile=/scratch/kocevski/587432/cmap_594691201_594950401_4FGL_J1431.1-3120_daily_bin1371.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/587432/ft1_filtered_4FGL_J1431.1-3120_daily_bin1371.fits scfile=/scratch/kocevski/587432/ft2_4FGL_J1431.1-3120_daily_bin1371.fits outfile=/scratch/kocevski/587432/cmap_HighResolution_594691201_594950401_4FGL_J1431.1-3120_daily_bin1371.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/587432/ft1_filtered_4FGL_J1431.1-3120_daily_bin1371.fits evtable="EVENTS" scfile=/scratch/kocevski/587432/ft2_4FGL_J1431.1-3120_daily_bin1371.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/587432/Model_4FGL_J1431.1-3120_daily_bin1371.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/587432/ft1_filtered_4FGL_J1431.1-3120_daily_bin1371.fits.........................!
real 26.94
user 25.70
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    46.192       1.0000         .10000E-03   10000.    
     2 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    78.323       1.0000         .10000E-03   10000.    
     4 'norm      '    53.688       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10101E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    123.69       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    153.17       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10232E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    63.574       1.0000         .10000E-03   10000.    
    12 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .81255       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    2277.0       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .14904E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    25 'norm      '   10000.0       1.0000         .10000E-03   10000.    
    26 'norm      '    363.50       1.0000         .10000E-03   10000.    
    27 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    28 'norm      '   10000.0       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.1914       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .34107       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=   807.4843     FROM MIGRAD    STATUS=CONVERGED    730 CALLS     3920 TOTAL
                     EDM=   .76E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     46.144        131.55       -.22546E-05   -.78397E-05
   2  norm          .10000E-03    29.479        .21729E-07** at limit **
   3  norm          78.337        112.19        .41499E-06   -.79356E-05
   4  norm          53.662        39.587       -.91748E-06   -.26144E-04
   5  Prefactor     .10000E-03    13.680        .10972E-05** at limit **
   6  Prefactor     123.69        172.21       -.73140E-06   -.10319E-04
   7  Prefactor     .10000E-03    187.11       -.64081E-06** at limit **
   8  Prefactor     152.96        297.26       -.40097E-05   -.62874E-05
   9  Prefactor     .10000E-03    606.89        .80245E-07** at limit **
  10  Prefactor     .10000E-03    203.63       -.58302E-05** at limit **
  11  Prefactor     63.406        97.135       -.21274E-05   -.13219E-04
  12  norm          .10000E-03    12.116       -.79855E-06** at limit **
  13  Prefactor     .10000E-03    87.383       -.54058E-06** at limit **
  14  norm          .81258        .43201       -.12035E-07   -.33502E-03
  15  Prefactor     .10000E-03    97.329       -.21950E-06** at limit **
  16  Prefactor     .10000E-03    109.64       -.43637E-06** at limit **
  17  Prefactor     2276.1        2147.3       -.41270E-05   -.62886E-06
  18  norm          .10000E-03    22.885       -.89230E-07** at limit **
  19  Prefactor     .10000E-03    1713.7       -.16865E-05** at limit **
  20  Prefactor     .10000E-03    423.06        .88816E-07** at limit **
  21  Prefactor     .10000E-03    85.788       -.77942E-06** at limit **
  22  norm          .10000E-03    5.6897       -.59088E-06** at limit **
  23  Prefactor     .10000E-03    323.00       -.15655E-05** at limit **
  24  Prefactor    10000.0        1791.2        .15692E-05** at limit **
  25  norm         10000.0        1986.0        .63197E-05** at limit **
  26  norm          351.63        9676.2       -.16882E-03   -.19735E-05
  27  Prefactor    10000.0        7224.5        .17915E-05** at limit **
  28  norm         10000.0        6886.9        .24652E-05** at limit **
  29  Normalizat    1.1945        .95790        .22959E-04   -.39911E-04
  30  Prefactor     .34008        .30258       -.12891E-04   -.20129E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 46.1442
  norm       = 0.0001
  norm       = 78.3371
  norm       = 53.6621
  Prefactor  = 0.0001
  Prefactor  = 123.692
  Prefactor  = 0.0001
  Prefactor  = 152.962
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 63.406
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.812577
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2276.15
  norm       = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10000
  norm       = 10000
  norm       = 351.628
  Prefactor  = 10000
  norm       = 10000
  Normalizat = 1.19446
  Prefactor  = 0.340082
 **********
 **   18 **HESSE 
 **********

 FCN=   807.4843     FROM HESSE     STATUS=OK           564 CALLS     4484 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     46.144        131.79        .58994E-04   -1.4348    
   2  norm          .10000E-03    29.479        .15079E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          78.337        112.25        .45376E-04   -1.3935    
   4  norm          53.662        39.606        .54741E-04   -1.4242    
   5  Prefactor     .10000E-03    13.762        .10253E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     123.69        172.38        .36191E-04   -1.3479    
   7  Prefactor     .10000E-03    187.19        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     152.96        297.54        .16285E-03   -1.3228    
   9  Prefactor     .10000E-03    606.89        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    205.26        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     63.406        97.225        .25164E-03   -1.4114    
  12  norm          .10000E-03    12.145        .96736E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    87.404        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .81258        .43300        .13091E-04   -1.5528    
  15  Prefactor     .10000E-03    97.345        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    109.65        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2276.1        2147.0        .47693E-04   -.57612    
  18  norm          .10000E-03    22.886        .13284E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    1717.2        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    423.16        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    85.823        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    5.7031        .66292E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    323.35        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor    10000.0        1791.1        .21438E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm         10000.0        1985.5        .21050E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          351.63        9551.3        .10686E-03   -1.1935    
  27  Prefactor    10000.0        7224.8        .20080E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm         10000.0        6889.8        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.1945        .96947        .38789E-03   -.86774    
  30  Prefactor     .34008        .30661        .22608E-03   -1.1998    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.6693e-10
Minuit parameter uncertainties:
  1  132.636
  2  5.35946e-06
  3  112.557
  4  39.6253
  5  4.73661e-05
  6  173.084
  7  0.000181131
  8  300.538
  9  5.73666e-05
  10  0.00150566
  11  97.4698
  12  4.74022e-05
  13  8.5877e-05
  14  0.433006
  15  7.66355e-06
  16  9.28881e-05
  17  2253.97
  18  6.0492e-06
  19  0.00540222
  20  0.000348186
  21  0.00014235
  22  2.35211e-05
  23  0.000148457
  24  0.00163165
  25  0.00589722
  26  7350.08
  27  0.00742165
  28  0.0124602
  29  0.98466
  30  0.308091
Done.

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

Extracting fit parameters...

4FGL J1431.1-3120
   Spectrum: PowerLaw
324    Prefactor:  1.000e-04  7.664e-06  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:  3.401e-01  3.081e-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.194e+00  9.847e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 217.796 -31.347
Photon Flux Upper Limit: 4.85e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.63e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/587432/likelihoodResults_594691201_594950401_4FGL_J1431.1-3120_daily_bin1371.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) = 807.484328803
delta logL = -3.41645762774e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 807.484318686
delta logL = -2.40471184725e-05

Fit tolerance = 1e-08

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

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

 FCN=   807.4843     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      203 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    97.250        .96180E-02** at limit **
   2  Index         1.9598        5.3864        .50000        .29922E-05
   3  Normalizat    1.1945        .19730E-01    .87582E-01    .19887E-05
   4  Prefactor     .34008        .64549E-02    .37381E-01    .49449E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100015
  Index      = 1.95981
  Normalizat = 1.19447
  Prefactor  = 0.34008
 **********
 **   18 **HESSE 
 **********

 FCN=   807.4843     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      236 TOTAL
                     EDM=   .77E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    477.21        .19236E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9598        5.9156        .50000       -.65359    
   3  Normalizat    1.1945        .44051E-01    .38785E-03   -.86774    
   4  Prefactor     .34008        .14431E-01    .22609E-03   -1.1998    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.72772e-08
Minuit parameter uncertainties:
  1  0.00536488
  2  403.604
  3  0.0440526
  4  0.0144316
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/587432': 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) = 807.484294617
delta logL = 2.2241579245e-08

Extracting fit parameters...

4FGL J1431.1-3120
   Spectrum: PowerLaw
324    Prefactor:  1.000e-04  5.365e-03  1.000e-04  1.000e+04 ( 1.000e-14)
325        Index:  1.960e+00  4.036e+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:  3.401e-01  1.443e-02  0.000e+00  1.000e+01 ( 1.000e+00)
695        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
696        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
693   Normalization:  1.194e+00  4.405e-02  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/587432/cmap_HighResolution_594691201_594950401_4FGL_J1431.1-3120_daily_bin1371.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.63e-02', job_status='DONE', photon_flux_upper_limit='4.85e-07', time_completed='2021-09-09 23:04:17.493519', job_id='587432', GAL2='0.34', fit_tolerance='1e-08', EG2='1.19', EG='1.19', time_epoch_completed='1631253857.49', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.34', dlogl='2.22e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.99' WHERE bin_id='1371' AND source_name='4FGL J1431.1-3120' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 23:04:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0244>
Subject: Job 587432: <4FGL_J1431.1-3120_daily_bin1371> in cluster <slac> Done

Job <4FGL_J1431.1-3120_daily_bin1371> 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) <bullet0244>, 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:04:18 2021
Results reported at Thu Sep  9 23:04:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1431.1-3120_daily_bin1371 217.796 -31.3468 594691201 594950401 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 :                                   411.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             243.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   464 sec.
    Turnaround time :                            466 sec.

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

