/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 147 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 = 7397
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1316.1-3338_daily_bin322
RA = 199.025, Dec = -33.6365
tmin = 322790401, tmax = 323049601
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='433363', job_status='RUN', time_executed='2021-09-07 09:33:58.019569', time_epoch_executed='1631032438.02' WHERE source_name='4FGL J1316.1-3338' and cadence='daily' and bin_id='322'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/433363

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/433363/ft1_4FGL_J1316.1-3338_daily_bin322.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/433363/ft2_4FGL_J1316.1-3338_daily_bin322.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/433363/ft1_4FGL_J1316.1-3338_daily_bin322.fits outfile=/scratch/kocevski/433363/ft1_filteredMKT_4FGL_J1316.1-3338_daily_bin322.fits ra=199.025 dec=-33.6365 rad=12.0 tmin=322790401.0 tmax=323049601.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 12.15
user 11.65
sys 0.38

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/433363/ft2_4FGL_J1316.1-3338_daily_bin322.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/433363/ft2_4FGL_J1316.1-3338_daily_bin322.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/433363/ft1_filteredMKT_4FGL_J1316.1-3338_daily_bin322.fits evtable="EVENTS" outfile="/scratch/kocevski/433363/ft1_filtered_4FGL_J1316.1-3338_daily_bin322.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.50
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/433363/ft1_filtered_4FGL_J1316.1-3338_daily_bin322.fits" evtable="EVENTS" scfile=/scratch/kocevski/433363/ft2_4FGL_J1316.1-3338_daily_bin322.fits sctable="SC_DATA" outfile=/scratch/kocevski/433363/ltcube_322790401_323049601_4FGL_J1316.1-3338_daily_bin322.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/433363/ft2_4FGL_J1316.1-3338_daily_bin322.fits
.....................!
real 14.65
user 14.25
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/433363/ft1_filtered_4FGL_J1316.1-3338_daily_bin322.fits evtable="EVENTS" scfile=/scratch/kocevski/433363/ft2_4FGL_J1316.1-3338_daily_bin322.fits sctable="SC_DATA" expcube=/scratch/kocevski/433363/ltcube_322790401_323049601_4FGL_J1316.1-3338_daily_bin322.fits outfile=/scratch/kocevski/433363/expmap_322790401_323049601_4FGL_J1316.1-3338_daily_bin322.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/433363/ltcube_322790401_323049601_4FGL_J1316.1-3338_daily_bin322.fits
.....................!
real 192.80
user 186.50
sys 4.67

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 200 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 J1316.1-3338 @ 199.025 -33.6365

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/433363/ft1_filtered_4FGL_J1316.1-3338_daily_bin322.fits scfile=/scratch/kocevski/433363/ft2_4FGL_J1316.1-3338_daily_bin322.fits outfile=/scratch/kocevski/433363/cmap_322790401_323049601_4FGL_J1316.1-3338_daily_bin322.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=199.025 yref=-33.6365 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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/433363/ft1_filtered_4FGL_J1316.1-3338_daily_bin322.fits scfile=/scratch/kocevski/433363/ft2_4FGL_J1316.1-3338_daily_bin322.fits outfile=/scratch/kocevski/433363/cmap_HighResolution_322790401_323049601_4FGL_J1316.1-3338_daily_bin322.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=199.025 yref=-33.6365 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.56
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/433363/ft1_filtered_4FGL_J1316.1-3338_daily_bin322.fits evtable="EVENTS" scfile=/scratch/kocevski/433363/ft2_4FGL_J1316.1-3338_daily_bin322.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/433363/Model_4FGL_J1316.1-3338_daily_bin322.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/433363/ft1_filtered_4FGL_J1316.1-3338_daily_bin322.fits.....................!
real 41.90
user 40.55
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/433363/ft1_filtered_4FGL_J1316.1-3338_daily_bin322.fits', '/scratch/kocevski/433363/ft2_4FGL_J1316.1-3338_daily_bin322.fits', expMap='/scratch/kocevski/433363/expmap_322790401_323049601_4FGL_J1316.1-3338_daily_bin322.fits', expCube='/scratch/kocevski/433363/ltcube_322790401_323049601_4FGL_J1316.1-3338_daily_bin322.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/433363/Model_4FGL_J1316.1-3338_daily_bin322.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1316.1-3338'

4FGL J1316.1-3338
   Spectrum: LogParabola
313         norm:  5.429e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
314        alpha:  2.254e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
315         beta:  7.264e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
316           Eb:  8.040e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/433363/ft1_filtered_4FGL_J1316.1-3338_daily_bin322.fits
Spacecraft file(s): /scratch/kocevski/433363/ft2_4FGL_J1316.1-3338_daily_bin322.fits
Exposure map: /scratch/kocevski/433363/expmap_322790401_323049601_4FGL_J1316.1-3338_daily_bin322.fits
Exposure cube: /scratch/kocevski/433363/ltcube_322790401_323049601_4FGL_J1316.1-3338_daily_bin322.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/433363/Model_4FGL_J1316.1-3338_daily_bin322.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) = 1873.73205928

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    6.5749       1.0000         .10000E-03   10000.    
     3 'norm      '    11.794       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    5.8170       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.1433       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .69095E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    88.639       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11063E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .71516E-02   1.0000         .10000E-03   10000.    
    15 'norm      '    5.6746       1.0000         .10000E-03   10000.    
    16 'norm      '    .10167E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10446E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10992E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    43.482       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .42344       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.3800       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .80249       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6660E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1873.610     FROM MIGRAD    STATUS=CONVERGED    515 CALLS     2535 TOTAL
                     EDM=   .54E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    37.926        .49151E-06** at limit **
   2  norm          6.5749        2.9937       -.29574E-07   -.18919E-03
   3  norm          11.797        15.704       -.30458E-07   -.39412E-04
   4  Prefactor     .10000E-03    10.709        .46174E-06** at limit **
   5  norm          5.8188        14.347        .16038E-05   -.25685E-04
   6  Prefactor     .10000E-03    32.081        .21354E-05** at limit **
   7  norm          .10000E-03    51.765       -.81213E-06** at limit **
   8  Prefactor     6.1432        25.245        .19201E-05    .92258E-05
   9  norm          .10000E-03    3.9267        .79352E-06** at limit **
  10  norm          .10000E-03    5.0337        .30356E-06** at limit **
  11  Prefactor     .10000E-03    6260.4        .49154E-05** at limit **
  12  Prefactor     88.551        62.687       -.58485E-06   -.25859E-04
  13  Prefactor     .10000E-03    20.660        .60118E-06** at limit **
  14  Prefactor     .10001E-03    781.56       -.12153E-04** at limit **
  15  norm          5.6497        122.73        .34868E-05    .73665E-06
  16  norm          .10000E-03    71.520       -.46222E-07** at limit **
  17  norm          .10000E-03    14.952       -.15486E-05** at limit **
  18  Prefactor     .10000E-03    14.665       -.14771E-05** at limit **
  19  Prefactor     .10000E-03    500.39       -.37131E-05** at limit **
  20  Prefactor     42.868        231.74       -.13102E-04   -.41134E-04
  21  Prefactor     .10622E-03    9934.2       -.24044E-03** at limit **
  22  Normalizat    1.3805        .65895        .21154E-04   -.23896E-03
  23  Prefactor     .80228        .24837       -.13080E-04   -.23036E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 6.57487
  norm       = 11.7967
  Prefactor  = 0.0001
  norm       = 5.81883
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 6.14319
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 88.5513
  Prefactor  = 0.0001
  Prefactor  = 0.000100009
  norm       = 5.64968
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 42.8676
  Prefactor  = 0.000106219
  Normalizat = 1.38052
  Prefactor  = 0.802278
 **********
 **   18 **HESSE 
 **********

 FCN=   1873.610     FROM HESSE     STATUS=OK           358 CALLS     2893 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    37.933        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          6.5749        2.9949        .48497E-04   -1.5195    
   3  norm          11.797        15.673        .11665E-03   -1.5021    
   4  Prefactor     .10000E-03    10.742        .13807E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          5.8188        14.343        .16652E-03   -1.5225    
   6  Prefactor     .10000E-03    32.283        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    51.795        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     6.1432        25.284        .16197E-03   -1.5212    
   9  norm          .10000E-03    3.9970        .83986E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    5.0378        .94873E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    6261.1        .18721E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     88.551        62.757        .21338E-03   -1.3823    
  13  Prefactor     .10000E-03    20.724        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10001E-03    787.36        .18665E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          5.6497        122.51        .16863E-03   -1.5233    
  16  norm          .10000E-03    71.541        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    15.008        .16365E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    15.151        .32309E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    503.04        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     42.868        236.73        .30398E-03   -1.4398    
  21  Prefactor     .10622E-03    9890.8        .21908E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.3805        .68826        .38814E-03   -.81194    
  23  Prefactor     .80228        .25471        .18390E-03   -.99644    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.2585e-09
Minuit parameter uncertainties:
  1  5.58461e-05
  2  2.99496
  3  15.6782
  4  5.1633e-05
  5  14.3516
  6  0.000324636
  7  0.000147761
  8  24.9437
  9  5.17162e-05
  10  1.57096e-05
  11  0.00293931
  12  62.8041
  13  6.58216e-05
  14  0.00527173
  15  52.7405
  16  4.56236e-05
  17  0.000127153
  18  9.25731e-05
  19  0.000344092
  20  202.723
  21  0.857404
  22  0.692949
  23  0.255088
Done.

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

Extracting fit parameters...

4FGL J1316.1-3338
   Spectrum: LogParabola
313         norm:  1.000e-04  1.571e-05  1.000e-04  1.000e+04 ( 1.000e-12)
314        alpha:  2.254e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
315         beta:  7.264e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
316           Eb:  8.040e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
663    Prefactor:  8.023e-01  2.551e-01  0.000e+00  1.000e+01 ( 1.000e+00)
664        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
665        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
662   Normalization:  1.381e+00  6.929e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 199.025 -33.636
Photon Flux Upper Limit: 2.04e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.93e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/433363/likelihoodResults_322790401_323049601_4FGL_J1316.1-3338_daily_bin322.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) = 1873.61054707
delta logL = -0.000890081681518

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1873.60965695
delta logL = 3.62233549822e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2441       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3805       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80228       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6660E+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=   1873.610     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      236 TOTAL
                     EDM=   .28E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    320.45        .95248E-02** at limit **
   2  alpha         1.8846        3.3291        .16571        .41507E-08
   3  Normalizat    1.3805        .11628        .38809E-03    .90078E-05
   4  Prefactor     .80227        .43620E-01    .18390E-03    .21235E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.8846
  Normalizat = 1.38054
  Prefactor  = 0.802273
 **********
 **   18 **HESSE 
 **********

 FCN=   1873.610     FROM HESSE     STATUS=OK            23 CALLS      259 TOTAL
                     EDM=   .12E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5.4615        .98742E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.8846        3.3881        .66284E-02   -.24872    
   3  Normalizat    1.3805        .66427        .15524E-04   -.81193    
   4  Prefactor     .80227        .25038        .73559E-05   -.99645    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.19758e-12
Minuit parameter uncertainties:
  1  2.03231e-06
  2  293.187
  3  0.668475
  4  0.250731
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/433363': 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) = 1873.60965623
delta logL = 7.60909870223e-07

Extracting fit parameters...

4FGL J1316.1-3338
   Spectrum: LogParabola
313         norm:  1.000e-04  2.032e-06  1.000e-04  1.000e+04 ( 1.000e-12)
314        alpha:  1.885e+00  2.932e+02  0.000e+00  5.000e+00 ( 1.000e+00)
315         beta:  7.264e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
316           Eb:  8.040e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
663    Prefactor:  8.023e-01  2.507e-01  0.000e+00  1.000e+01 ( 1.000e+00)
664        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
665        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
662   Normalization:  1.381e+00  6.685e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 199.025 -33.636

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/433363/cmap_HighResolution_322790401_323049601_4FGL_J1316.1-3338_daily_bin322.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.93e-05', job_status='DONE', photon_flux_upper_limit='2.04e-07', time_completed='2021-09-07 09:42:23.317324', job_id='433363', GAL2='0.80', fit_tolerance='1e-08', EG2='1.38', EG='1.38', time_epoch_completed='1631032943.32', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.80', dlogl='7.61e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.25' WHERE bin_id='322' AND source_name='4FGL J1316.1-3338' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 09:42:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0182>
Subject: Job 433363: <4FGL_J1316.1-3338_daily_bin322> in cluster <slac> Done

Job <4FGL_J1316.1-3338_daily_bin322> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Tue Sep  7 09:30:43 2021
Job was executed on host(s) <bullet0182>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 09:31:20 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep  7 09:31:20 2021
Terminated at Tue Sep  7 09:42:24 2021
Results reported at Tue Sep  7 09:42:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1316.1-3338_daily_bin322 199.025 -33.6365 322790401 323049601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1316.1-3338 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   501.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             215.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   663 sec.
    Turnaround time :                            701 sec.

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

