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


Performing analysis on: 4FGL_J1316.1-3338_daily_bin869
RA = 199.025, Dec = -33.6365
tmin = 464572801, tmax = 464832001
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='437510', job_status='RUN', time_executed='2021-09-07 09:45:58.984464', time_epoch_executed='1631033158.98' WHERE source_name='4FGL J1316.1-3338' and cadence='daily' and bin_id='869'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/437510

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/437510/ft1_4FGL_J1316.1-3338_daily_bin869.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/437510/ft2_4FGL_J1316.1-3338_daily_bin869.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/437510/ft1_4FGL_J1316.1-3338_daily_bin869.fits outfile=/scratch/kocevski/437510/ft1_filteredMKT_4FGL_J1316.1-3338_daily_bin869.fits ra=199.025 dec=-33.6365 rad=12.0 tmin=464572801.0 tmax=464832001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.43
user 3.19
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/437510/ft1_filtered_4FGL_J1316.1-3338_daily_bin869.fits" evtable="EVENTS" scfile=/scratch/kocevski/437510/ft2_4FGL_J1316.1-3338_daily_bin869.fits sctable="SC_DATA" outfile=/scratch/kocevski/437510/ltcube_464572801_464832001_4FGL_J1316.1-3338_daily_bin869.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/437510/ft2_4FGL_J1316.1-3338_daily_bin869.fits
.....................!
real 17.07
user 16.71
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/437510/ft1_filtered_4FGL_J1316.1-3338_daily_bin869.fits evtable="EVENTS" scfile=/scratch/kocevski/437510/ft2_4FGL_J1316.1-3338_daily_bin869.fits sctable="SC_DATA" expcube=/scratch/kocevski/437510/ltcube_464572801_464832001_4FGL_J1316.1-3338_daily_bin869.fits outfile=/scratch/kocevski/437510/expmap_464572801_464832001_4FGL_J1316.1-3338_daily_bin869.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/437510/ltcube_464572801_464832001_4FGL_J1316.1-3338_daily_bin869.fits
.....................!
real 193.58
user 188.23
sys 4.40

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/437510/ft1_filtered_4FGL_J1316.1-3338_daily_bin869.fits scfile=/scratch/kocevski/437510/ft2_4FGL_J1316.1-3338_daily_bin869.fits outfile=/scratch/kocevski/437510/cmap_464572801_464832001_4FGL_J1316.1-3338_daily_bin869.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.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/437510/ft1_filtered_4FGL_J1316.1-3338_daily_bin869.fits scfile=/scratch/kocevski/437510/ft2_4FGL_J1316.1-3338_daily_bin869.fits outfile=/scratch/kocevski/437510/cmap_HighResolution_464572801_464832001_4FGL_J1316.1-3338_daily_bin869.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.41
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/437510/ft1_filtered_4FGL_J1316.1-3338_daily_bin869.fits evtable="EVENTS" scfile=/scratch/kocevski/437510/ft2_4FGL_J1316.1-3338_daily_bin869.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/437510/Model_4FGL_J1316.1-3338_daily_bin869.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/437510/ft1_filtered_4FGL_J1316.1-3338_daily_bin869.fits.....................!
real 147.32
user 145.63
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    18.511       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    7.8840       1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.4085       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.9604       1.0000         .10000E-03   10000.    
    10 'norm      '    .53177E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    66.367       1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.0014       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    35.907       1.0000         .10000E-03   10000.    
    17 'norm      '    .30824E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.9445       1.0000         .10000E-03   10000.    
    19 'Prefactor '    21.133       1.0000         .10000E-03   10000.    
    20 'Prefactor '    49.261       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.3484       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .84741       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=   8092.232     FROM MIGRAD    STATUS=CONVERGED    521 CALLS     2552 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.6306       -.26162E-07** at limit **
   2  norm          .10000E-03    .30386        .75997E-07** at limit **
   3  norm          18.513        10.392       -.26903E-07   -.11742E-03
   4  Prefactor     .10000E-03    2.4665        .10904E-05** at limit **
   5  norm          7.8839        5.1779       -.24900E-07    .14305E-03
   6  Prefactor     9.4072        11.603        .30532E-07    .62288E-04
   7  norm          .10000E-03    8.8995       -.15524E-06** at limit **
   8  Prefactor     .10000E-03    1.6704       -.72151E-07** at limit **
   9  norm          1.9600        3.5864       -.11139E-05    .29970E-03
  10  norm          .10008E-03    7.7113       -.39941E-05** at limit **
  11  Prefactor     .10000E-03    98.603        .20196E-06** at limit **
  12  Prefactor     66.368        36.682        .24303E-07    .58482E-04
  13  Prefactor     8.0020        11.460       -.32801E-07    .10486E-03
  14  Prefactor     .10000E-03    35.436       -.52702E-07** at limit **
  15  norm          .10000E-03    8.4392       -.13261E-07** at limit **
  16  norm          35.906        31.686       -.24980E-07    .86232E-05
  17  norm          .10000E-03    46.545       -.16128E-04** at limit **
  18  Prefactor     4.9450        4.8756        .39053E-06    .15402E-02
  19  Prefactor     21.131        31.497        .31873E-07    .15047E-04
  20  Prefactor     49.248        62.081        .98786E-07    .65494E-04
  21  Prefactor     .10000E-03    151.39       -.48509E-06** at limit **
  22  Normalizat    1.3483        .27253        .23618E-06    .28739E-03
  23  Prefactor     .84746        .10032       -.58507E-08    .48687E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 18.5128
  Prefactor  = 0.000100002
  norm       = 7.88392
  Prefactor  = 9.40723
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.96005
  norm       = 0.000100077
  Prefactor  = 0.000100001
  Prefactor  = 66.3682
  Prefactor  = 8.00202
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 35.9056
  norm       = 0.0001
  Prefactor  = 4.945
  Prefactor  = 21.131
  Prefactor  = 49.2483
  Prefactor  = 0.000100001
  Normalizat = 1.34828
  Prefactor  = 0.847461
 **********
 **   18 **HESSE 
 **********

 FCN=   8092.232     FROM HESSE     STATUS=OK           374 CALLS     2926 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.6347        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .31037        .48424E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          18.513        10.401        .93091E-04   -1.4847    
   4  Prefactor     .10000E-03    2.5747        .14063E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          7.8839        5.1778        .14280E-03   -1.5146    
   6  Prefactor     9.4072        11.603        .13065E-03   -1.5094    
   7  norm          .10000E-03    8.9515        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.6746        .11356E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.9600        3.5915        .11161E-02   -1.5428    
  10  norm          .10008E-03    5.5562        .59535E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    98.572        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     66.368        36.682        .49265E-04   -1.4077    
  13  Prefactor     8.0020        11.444        .14174E-03   -1.5142    
  14  Prefactor     .10000E-03    35.460        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    8.4402        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          35.906        31.690        .66880E-04   -1.4509    
  17  norm          .10000E-03    48.215        .52644E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.9450        4.7050        .18087E-03   -1.5263    
  19  Prefactor     21.131        31.499        .87128E-04   -1.4788    
  20  Prefactor     49.248        62.083        .57135E-04   -1.4303    
  21  Prefactor     .10000E-03    151.33        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.3483        .32907        .38580E-03   -.82137    
  23  Prefactor     .84746        .12117        .17793E-03   -.98002    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.92496e-09
Minuit parameter uncertainties:
  1  1.07764e-05
  2  3.02576e-06
  3  10.402
  4  0.000126407
  5  5.17809
  6  11.6056
  7  3.08631e-05
  8  6.73526e-06
  9  3.59185
  10  0.00130689
  11  0.000649851
  12  36.6949
  13  11.4469
  14  8.39385e-05
  15  2.9443e-07
  16  31.7051
  17  0.000145769
  18  4.70534
  19  31.5235
  20  62.1643
  21  0.000947695
  22  0.32958
  23  0.121206
Done.

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

Extracting fit parameters...

4FGL J1316.1-3338
   Spectrum: LogParabola
313         norm:  1.001e-04  1.307e-03  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.475e-01  1.212e-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.348e+00  3.296e-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: 1.20e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.65e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/437510/likelihoodResults_464572801_464832001_4FGL_J1316.1-3338_daily_bin869.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) = 8092.23181878
delta logL = -8.96650726645e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8092.01884458
delta logL = 0.212884536662

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.2915       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.3871       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2876       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85928       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.

 FCN=   8092.019     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      297 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.2875        46.490        .97399E-02    .12906E-02
   2  alpha         3.3879        4.1473        .45030        .58795E-04
   3  Normalizat    1.2877        .56261E-01    .88814E-01    .18726E-04
   4  Prefactor     .85933        .21235E-01    .44484E-01    .32907E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.28751
  alpha      = 3.38791
  Normalizat = 1.28775
  Prefactor  = 0.859328
 **********
 **   18 **HESSE 
 **********

 FCN=   8092.019     FROM HESSE     STATUS=OK            33 CALLS      330 TOTAL
                     EDM=   .10E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.2875        9.8513        .15372E-03   -1.5481    
   2  alpha         3.3879        3.9824        .24867E-01    .36309    
   3  Normalizat    1.2877        .33232        .39331E-03   -.83933    
   4  Prefactor     .85933        .12260        .17674E-03   -.97577    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.0208e-07
Minuit parameter uncertainties:
  1  7.12416
  2  3.1398
  3  0.332875
  4  0.122641
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/437510': 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) = 8092.01884294
delta logL = 0.212886176211

Extracting fit parameters...

4FGL J1316.1-3338
   Spectrum: LogParabola
313         norm:  1.288e+00  7.124e+00  1.000e-04  1.000e+04 ( 1.000e-12)
314        alpha:  3.388e+00  3.140e+00  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.593e-01  1.226e-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.288e+00  3.329e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/437510/cmap_HighResolution_464572801_464832001_4FGL_J1316.1-3338_daily_bin869.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.65e-05', job_status='DONE', photon_flux_upper_limit='1.20e-07', time_completed='2021-09-07 10:01:44.002117', job_id='437510', GAL2='0.86', fit_tolerance='1e-08', EG2='1.29', EG='1.35', time_epoch_completed='1631034104.0', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='2.13e-01', ts2='0.48', photon_index_error='0.00', photon_index='2.25' WHERE bin_id='869' AND source_name='4FGL J1316.1-3338' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 10:01:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0123>
Subject: Job 437510: <4FGL_J1316.1-3338_daily_bin869> in cluster <slac> Done

Job <4FGL_J1316.1-3338_daily_bin869> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep  7 09:45:40 2021
Job was executed on host(s) <bullet0123>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 09:45:46 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:45:46 2021
Terminated at Tue Sep  7 10:01:44 2021
Results reported at Tue Sep  7 10:01:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1316.1-3338_daily_bin869 199.025 -33.6365 464572801 464832001 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 :                                   943.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             356.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   958 sec.
    Turnaround time :                            964 sec.

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

