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


Performing analysis on: 4FGL_J1316.1-3338_daily_bin998
RA = 199.025, Dec = -33.6365
tmin = 498009601, tmax = 498268801
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='437694', job_status='RUN', time_executed='2021-09-07 09:49:59.005477', time_epoch_executed='1631033399.01' WHERE source_name='4FGL J1316.1-3338' and cadence='daily' and bin_id='998'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/437694

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/437694/ft1_4FGL_J1316.1-3338_daily_bin998.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/437694/ft2_4FGL_J1316.1-3338_daily_bin998.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/437694/ft1_4FGL_J1316.1-3338_daily_bin998.fits outfile=/scratch/kocevski/437694/ft1_filteredMKT_4FGL_J1316.1-3338_daily_bin998.fits ra=199.025 dec=-33.6365 rad=12.0 tmin=498009601.0 tmax=498268801.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 8.07
user 7.70
sys 0.29

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/437694/ft2_4FGL_J1316.1-3338_daily_bin998.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/437694/ft1_filteredMKT_4FGL_J1316.1-3338_daily_bin998.fits evtable="EVENTS" outfile="/scratch/kocevski/437694/ft1_filtered_4FGL_J1316.1-3338_daily_bin998.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.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/437694/ft1_filtered_4FGL_J1316.1-3338_daily_bin998.fits" evtable="EVENTS" scfile=/scratch/kocevski/437694/ft2_4FGL_J1316.1-3338_daily_bin998.fits sctable="SC_DATA" outfile=/scratch/kocevski/437694/ltcube_498009601_498268801_4FGL_J1316.1-3338_daily_bin998.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/437694/ft2_4FGL_J1316.1-3338_daily_bin998.fits
.....................!
real 15.97
user 15.38
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/437694/ft1_filtered_4FGL_J1316.1-3338_daily_bin998.fits evtable="EVENTS" scfile=/scratch/kocevski/437694/ft2_4FGL_J1316.1-3338_daily_bin998.fits sctable="SC_DATA" expcube=/scratch/kocevski/437694/ltcube_498009601_498268801_4FGL_J1316.1-3338_daily_bin998.fits outfile=/scratch/kocevski/437694/expmap_498009601_498268801_4FGL_J1316.1-3338_daily_bin998.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/437694/ltcube_498009601_498268801_4FGL_J1316.1-3338_daily_bin998.fits
.....................!
real 194.20
user 187.43
sys 4.60

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/437694/ft1_filtered_4FGL_J1316.1-3338_daily_bin998.fits scfile=/scratch/kocevski/437694/ft2_4FGL_J1316.1-3338_daily_bin998.fits outfile=/scratch/kocevski/437694/cmap_498009601_498268801_4FGL_J1316.1-3338_daily_bin998.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.57
user 0.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/437694/ft1_filtered_4FGL_J1316.1-3338_daily_bin998.fits scfile=/scratch/kocevski/437694/ft2_4FGL_J1316.1-3338_daily_bin998.fits outfile=/scratch/kocevski/437694/cmap_HighResolution_498009601_498268801_4FGL_J1316.1-3338_daily_bin998.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.57
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/437694/ft1_filtered_4FGL_J1316.1-3338_daily_bin998.fits evtable="EVENTS" scfile=/scratch/kocevski/437694/ft2_4FGL_J1316.1-3338_daily_bin998.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/437694/Model_4FGL_J1316.1-3338_daily_bin998.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/437694/ft1_filtered_4FGL_J1316.1-3338_daily_bin998.fits.....................!
real 78.23
user 75.97
sys 1.28

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/437694/ft1_filtered_4FGL_J1316.1-3338_daily_bin998.fits', '/scratch/kocevski/437694/ft2_4FGL_J1316.1-3338_daily_bin998.fits', expMap='/scratch/kocevski/437694/expmap_498009601_498268801_4FGL_J1316.1-3338_daily_bin998.fits', expCube='/scratch/kocevski/437694/ltcube_498009601_498268801_4FGL_J1316.1-3338_daily_bin998.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/437694/Model_4FGL_J1316.1-3338_daily_bin998.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/437694/ft1_filtered_4FGL_J1316.1-3338_daily_bin998.fits
Spacecraft file(s): /scratch/kocevski/437694/ft2_4FGL_J1316.1-3338_daily_bin998.fits
Exposure map: /scratch/kocevski/437694/expmap_498009601_498268801_4FGL_J1316.1-3338_daily_bin998.fits
Exposure cube: /scratch/kocevski/437694/ltcube_498009601_498268801_4FGL_J1316.1-3338_daily_bin998.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/437694/Model_4FGL_J1316.1-3338_daily_bin998.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) = 4016.81121554

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10130E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.2975       1.0000         .10000E-03   10000.    
     3 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    4.6250       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.9703       1.0000         .10000E-03   10000.    
     7 'norm      '    .10092E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    2.0192       1.0000         .10000E-03   10000.    
    10 'norm      '    14.056       1.0000         .10000E-03   10000.    
    11 'Prefactor '    233.91       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10103E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10215E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11795E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10220E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10074E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10095E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .12882E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    35.579       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .46162E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.3951       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .97030       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=   4016.767     FROM MIGRAD    STATUS=CONVERGED    500 CALLS     2509 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.572        .25622E-06** at limit **
   2  norm          2.2972        1.5813        .60639E-07    .45776E-04
   3  norm          .10000E-03    4.9576        .79237E-07** at limit **
   4  Prefactor     .10000E-03    3.3693        .85103E-07** at limit **
   5  norm          4.6200        10.184        .41398E-06   -.36166E-04
   6  Prefactor     1.9661        17.042        .32342E-04   -.21058E-03
   7  norm          .10000E-03    10.434        .11535E-07** at limit **
   8  Prefactor     .10000E-03    4.8439       -.92676E-07** at limit **
   9  norm          2.0181        3.8013        .25658E-06    .19639E-04
  10  norm          14.059        12.468        .20538E-06   -.65927E-04
  11  Prefactor     232.58        458.65       -.13783E-04   -.13199E-03
  12  Prefactor     .10000E-03    108.45        .10610E-05** at limit **
  13  Prefactor     .10000E-03    25.258        .12244E-05** at limit **
  14  Prefactor     .10000E-03    71.689        .15516E-05** at limit **
  15  norm          .10000E-03    16.254       -.22068E-06** at limit **
  16  norm          .10000E-03    36.751       -.61887E-06** at limit **
  17  norm          .10000E-03    28.447        .29276E-05** at limit **
  18  Prefactor     .10000E-03    5.1055        .12828E-05** at limit **
  19  Prefactor     .10000E-03    62.380        .43099E-06** at limit **
  20  Prefactor     35.818        123.27        .88343E-05    .12476E-03
  21  Prefactor     .10001E-03    428.97       -.22106E-05** at limit **
  22  Normalizat    1.3935        .40930       -.14212E-04    .52478E-04
  23  Prefactor     .97097        .15492        .40248E-05   -.60920E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 2.29717
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 4.61995
  Prefactor  = 1.96611
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.01806
  norm       = 14.0593
  Prefactor  = 232.578
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 35.8181
  Prefactor  = 0.000100012
  Normalizat = 1.39351
  Prefactor  = 0.970968
 **********
 **   18 **HESSE 
 **********

 FCN=   4016.767     FROM HESSE     STATUS=OK           360 CALLS     2869 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.574        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.2972        1.5813        .63989E-04   -1.5405    
   3  norm          .10000E-03    4.9736        .13782E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.3781        .11361E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          4.6200        10.166        .18715E-03   -1.5278    
   6  Prefactor     1.9661        17.418        .14770E-02   -1.5428    
   7  norm          .10000E-03    10.440        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.8637        .13623E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.0181        3.7763        .16485E-03   -1.5424    
  10  norm          14.059        12.473        .10683E-03   -1.4958    
  11  Prefactor     232.58        460.88        .13233E-03   -1.2646    
  12  Prefactor     .10000E-03    109.73        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    25.661        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    71.701        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    16.258        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    36.799        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    28.881        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    5.1632        .13982E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    62.466        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     35.818        123.10        .33593E-03   -1.4510    
  21  Prefactor     .10001E-03    429.00        .21196E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.3935        .48270        .40549E-03   -.80816    
  23  Prefactor     .97097        .18471        .18156E-03   -.93704    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.09718e-09
Minuit parameter uncertainties:
  1  9.78047e-05
  2  1.58133
  3  6.55671e-06
  4  3.49858e-06
  5  10.1701
  6  11.7083
  7  2.18568e-06
  8  8.74185e-07
  9  3.77671
  10  12.4749
  11  468.385
  12  9.46746e-05
  13  0.000196108
  14  0.000385984
  15  0.000113599
  16  0.000235938
  17  6.39392e-05
  18  3.07764e-05
  19  0.000153829
  20  123.99
  21  0.004526
  22  0.484292
  23  0.184826
Done.

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

Extracting fit parameters...

4FGL J1316.1-3338
   Spectrum: LogParabola
313         norm:  1.406e+01  1.247e+01  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:  9.710e-01  1.848e-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.394e+00  4.843e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.84
Ra Dec: 199.025 -33.636
Photon Index (Fixed Index): 2.25 +/- 0.00
Photon Flux (Fixed Index): 1.05e-07 +/- 9.29e-08
Energy Flux (Fixed Index): 4.07e-05 +/- 3.61e-05

TS (Fixed Index): 1.84
Ra Dec: 199.025 -33.636
Photon Flux Upper Limit: 3.03e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.18e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/437694/likelihoodResults_498009601_498268801_4FGL_J1316.1-3338_daily_bin998.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) = 4016.49385419
delta logL = 0.273512177981

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4016.49102958
delta logL = 0.276336789991

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.3565       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8750       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3084       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99317       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=   4016.491     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      288 TOTAL
                     EDM=   .63E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.3545        13.996        .13102E-03    .33919E-03
   2  alpha         2.8753        1.0451        .11156E-01    .45014E-04
   3  Normalizat    1.3084        .49618        .41613E-03   -.22960E-03
   4  Prefactor     .99333        .18696        .17968E-03   -.72501E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 9.35453
  alpha      = 2.87527
  Normalizat = 1.30838
  Prefactor  = 0.993334
 **********
 **   18 **HESSE 
 **********

 FCN=   4016.491     FROM HESSE     STATUS=OK            25 CALLS      313 TOTAL
                     EDM=   .62E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.3545        12.210        .52407E-05   -1.5096    
   2  alpha         2.8753        .91736        .44623E-03    .15068    
   3  Normalizat    1.3084        .49446        .83226E-04   -.83317    
   4  Prefactor     .99333        .18632        .35936E-04   -.92952    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.16828e-10
Minuit parameter uncertainties:
  1  12.2134
  2  0.939847
  3  0.496261
  4  0.186441
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/437694': 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) = 4016.49102802
delta logL = 0.276338348635

Extracting fit parameters...

4FGL J1316.1-3338
   Spectrum: LogParabola
313         norm:  9.355e+00  1.221e+01  1.000e-04  1.000e+04 ( 1.000e-12)
314        alpha:  2.875e+00  9.398e-01  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:  9.933e-01  1.864e-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.308e+00  4.963e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.46
Ra Dec: 199.025 -33.636
Photon Index (Free Index): 2.88 +/- 0.94
Photon Flux (Free Index): 1.65e-07 +/- 1.39e-07
Energy Flux (Free Index): 3.70e-05 +/- 2.89e-05

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/437694/cmap_HighResolution_498009601_498268801_4FGL_J1316.1-3338_daily_bin998.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.18e-04', comment='SUCCESS', photon_flux='1.05e-07', energy_flux2='3.70e-05', photon_flux_error='9.29e-08', dlogl='2.76e-01', energy_flux='4.07e-05', photon_flux2='1.65e-07', job_status='DONE', time_completed='2021-09-07 10:00:50.129778', photon_index_error2='0.94', photon_index2='2.88', ts='1.84', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', photon_flux_upper_limit='3.03e-07', energy_flux_error2='2.89e-05', EG='1.39', time_epoch_completed='1631034050.13', return_code='0', job_id='437694', GAL2='0.99', EG2='1.31', return_code2='0', energy_flux_error='3.61e-05', photon_flux_error2='1.39e-07', ts2='2.46', photon_index='2.25' WHERE bin_id='998' AND source_name='4FGL J1316.1-3338' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 10:00:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0052>
Subject: Job 437694: <4FGL_J1316.1-3338_daily_bin998> in cluster <slac> Done

Job <4FGL_J1316.1-3338_daily_bin998> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep  7 09:45:54 2021
Job was executed on host(s) <bullet0052>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 09:47:32 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:47:32 2021
Terminated at Tue Sep  7 10:00:50 2021
Results reported at Tue Sep  7 10:00:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1316.1-3338_daily_bin998 199.025 -33.6365 498009601 498268801 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 :                                   642.24 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             289.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   798 sec.
    Turnaround time :                            896 sec.

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

