aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 49 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 = 7709
number of fields = 31
RA_SUN column already exists. File will not be modified.DDone.


Performing analysis on: 4FGL_J1316.1-3338_daily_bin1692
RA = 199.025, Dec = -33.6365
tmin = 677894401, tmax = 678153601
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='405498', job_status='RUN', time_executed='2022-06-29 04:31:17.390763', time_epoch_executed='1656502277.39' WHERE source_name='4FGL J1316.1-3338' and cadence='daily' and bin_id='1692'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/405498

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/405498/ft1_4FGL_J1316.1-3338_daily_bin1692.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/405498/ft2_4FGL_J1316.1-3338_daily_bin1692.fits


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

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

Done.
real 4.44
user 4.22
sys 0.20

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

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

Number of photons that the gtmktime cut: 1381

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/405498/ft1_filtered_4FGL_J1316.1-3338_daily_bin1692.fits" evtable="EVENTS" scfile=/scratch/kocevski/405498/ft2_4FGL_J1316.1-3338_daily_bin1692.fits sctable="SC_DATA" outfile=/scratch/kocevski/405498/ltcube_677894401_678153601_4FGL_J1316.1-3338_daily_bin1692.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/405498/ft2_4FGL_J1316.1-3338_daily_bin1692.fits
.....................!
real 13.44
user 13.02
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/405498/ft1_filtered_4FGL_J1316.1-3338_daily_bin1692.fits evtable="EVENTS" scfile=/scratch/kocevski/405498/ft2_4FGL_J1316.1-3338_daily_bin1692.fits sctable="SC_DATA" expcube=/scratch/kocevski/405498/ltcube_677894401_678153601_4FGL_J1316.1-3338_daily_bin1692.fits outfile=/scratch/kocevski/405498/expmap_677894401_678153601_4FGL_J1316.1-3338_daily_bin1692.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/405498/ltcube_677894401_678153601_4FGL_J1316.1-3338_daily_bin1692.fits
.....................!
real 191.72
user 186.06
sys 5.23

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/405498/ft1_filtered_4FGL_J1316.1-3338_daily_bin1692.fits scfile=/scratch/kocevski/405498/ft2_4FGL_J1316.1-3338_daily_bin1692.fits outfile=/scratch/kocevski/405498/cmap_677894401_678153601_4FGL_J1316.1-3338_daily_bin1692.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.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/405498/ft1_filtered_4FGL_J1316.1-3338_daily_bin1692.fits scfile=/scratch/kocevski/405498/ft2_4FGL_J1316.1-3338_daily_bin1692.fits outfile=/scratch/kocevski/405498/cmap_HighResolution_677894401_678153601_4FGL_J1316.1-3338_daily_bin1692.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.55
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/405498/ft1_filtered_4FGL_J1316.1-3338_daily_bin1692.fits evtable="EVENTS" scfile=/scratch/kocevski/405498/ft2_4FGL_J1316.1-3338_daily_bin1692.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/405498/Model_4FGL_J1316.1-3338_daily_bin1692.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/405498/ft1_filtered_4FGL_J1316.1-3338_daily_bin1692.fits.....................!
real 238.25
user 236.25
sys 1.31

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    3.1681       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    3.1287       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .64732E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .29109E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.0116       1.0000         .10000E-03   10000.    
    10 'norm      '    4.4246       1.0000         .10000E-03   10000.    
    11 'Prefactor '    443.03       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.3433       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .33011E-01   1.0000         .10000E-03   10000.    
    16 'norm      '    74.260       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .19376E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10861E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .13570E-02   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.3027       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .92946       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=   14116.42     FROM MIGRAD    STATUS=CONVERGED    965 CALLS     3491 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.6015        .18142E-02** at limit **
   2  norm          .10000E-03    .16518        .92688E-04** at limit **
   3  norm          3.1690        4.1699        .22770E-03    .79687E-04
   4  Prefactor     .10000E-03    1.1088        .12188E-02** at limit **
   5  norm          3.1308        3.1958        .20689E-03    .90338E-04
   6  Prefactor     .10003E-03    5.4523        .62572E-01** at limit **
   7  norm          .10000E-03    2.8434        .18142E-02** at limit **
   8  Prefactor     .10000E-03    10.310        .34997E-02** at limit **
   9  norm          1.0155        1.3658        .19367E-02    .74118E-03
  10  norm          4.4266        3.5550        .95724E-03    .39777E-03
  11  Prefactor     443.16        231.30        .97197E-04   -.13086E-03
  12  Prefactor     .10000E-03    6.4633        .18142E-02** at limit **
  13  Prefactor     8.3085        9.7704        .13879E-03   -.14253E-04
  14  Prefactor     .10000E-03    14.457        .18142E-02** at limit **
  15  norm          .52543E-01    8.9495        .13270        .27433E-03
  16  norm          74.259        34.996        .46592E-04   -.30227E-03
  17  norm          .10000E-03    2.0094        .16436E-02** at limit **
  18  Prefactor     .67669E-01    30.545        .23475E-02    .19436E-03
  19  Prefactor     .10006E-03    270.20        .41414E-02** at limit **
  20  Prefactor     .10000E-03    33.554        .18142E-02** at limit **
  21  Prefactor     .10001E-03    267.28        .20548E-02** at limit **
  22  Normalizat    1.3020        .23010        .37149E-03   -.40732E-03
  23  Prefactor     .92956        .89527E-01    .17190E-03   -.11742E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 3.16903
  Prefactor  = 0.0001
  norm       = 3.13079
  Prefactor  = 0.000100032
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 1.01552
  norm       = 4.4266
  Prefactor  = 443.16
  Prefactor  = 0.0001
  Prefactor  = 8.30846
  Prefactor  = 0.0001
  norm       = 0.0525428
  norm       = 74.2589
  norm       = 0.0001
  Prefactor  = 0.067669
  Prefactor  = 0.000100063
  Prefactor  = 0.0001
  Prefactor  = 0.000100009
  Normalizat = 1.30195
  Prefactor  = 0.9295 * **********
 **   18 **HESSE 
 **********

 FCN=   14116.42     FROM HESSE     STATUS=OK           370 CALLS     3861 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.6033        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .16518        .18538E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.1690        4.1691        .91078E-05   -1.5352    
   4  Prefactor     .10000E-03    1.1089        .24376E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.1308        3.1949        .82756E-05   -1.5354    
   6  Prefactor     .10003E-03    4.4213        .72012E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    2.8436        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    10.510        .69994E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.0155        1.3646        .77469E-04   -1.5506    
  10  norm          4.4266        3.5536        .38289E-04   -1.5287    
  11  Prefactor     443.16        231.29        .19439E-04   -1.1466    
  12  Prefactor     .10000E-03    6.4636        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     8.3085        9.7267        .55516E-05   -1.5131    
  14  Prefactor     .10000E-03    14.458        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .52543E-01    8.9292        .13309       -1.5662    
  16  norm          74.259        34.990        .93184E-05   -1.3982    
  17  norm          .10000E-03    2.0094        .32873E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .67669E-01    30.856        .93899E-04   -1.5656    
  19  Prefactor     .10006E-03    272.14        .82829E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    33.556        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10001E-03    267.29        .41096E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.3020        .22871        .14860E-04   -.83508    
  23  Prefactor     .92956        .89453E-01    .34379E-04   -.95116    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.62299e-09
Minuit parameter uncertainties:
  1  2.74423e-05
  2  1.77724e-06
  3  4.16951
  4  4.68888e-06
  5  3.19505
  6  0.000752803
  7  1.37564e-06
  8  0.000159367
  9  1.36466
  10  3.55377
  11  231.779
  12  1.00198e-06
  13  9.72852
  14  1.77013e-05
  15  1.36882
  16  34.9996
  17  2.38971e-06
  18  2.88936
  19  0.00829779
  20  3.3435e-05
  21  0.00318499
  22  0.228887
  23  0.08946DoDone.

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

Extracting fit parameters...

4FGL J1316.1-3338
   Spectrum: LogParabola
313         norm:  4.427e+00  3.554e+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

GAL_V02
   Spectrum: PowerLaw
663    Prefactor:  9.296e-01  8.947e-02  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.302e+00  2.289e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.17
Ra Dec: 199.025 -33.636
Photon Index (Fixed Index): 2.25 +/- 0.00
Photon Flux (Fixed Index): 3.30e-08 +/- 2.65e-08
Energy Flux (Fixed Index): 1.28e-05 +/- 1.03e-05

TS (Fixed Index): 3.17
Ra Dec: 199.025 -33.636
Photon Flux Upper Limit: 9.49e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.68e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/405498/likelihoodResults_677894401_678153601_4FGL_J1316.1-3338_daily_bin1692.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) = 14116.2059962
delta logL = 0.214411454535

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 14116.2057656
delta logL = 0.214642129436

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.5977       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.9093       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2539       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94084       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=   14116.21     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      239 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.5950        32.840        .53259E-02    .86598E-03
   2  alpha         2.9092        3.8940        .41871        .11165E-03
   3  Normalizat    1.2545        .61076E-01    .85202E-01    .33995E-04
   4  Prefactor     .94065        .21325E-01    .45523E-01   -.52988E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 3.59496
  alpha      = 2.90918
  Normalizat = 1.25452
  Prefactor  = 0.94065
 **********
 **   18 **HESSE 
 **********

 FCN=   14116.21     FROM HESSE     STATUS=OK            33 CALLS      272 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.5950        4.8157        .13852E-03   -1.5329    
   2  alpha         2.9092        1.1946        .17135E-01    .16441    
   3  Normalizat    1.2545        .23920        .37725E-03   -.84934    
   4  Prefactor     .94065        .91547E-01    .17095E-03   -.94735    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.13241e-10
Minuit parameter uncertainties:
  1  4.81618
  2  1.24711
  3  0.239408
  4  0.0915615
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/405498': 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) = 14116.2057615
delta logL = 0.214646153876

Extracting fit parameters...

4FGL J1316.1-3338
   Spectrum: LogParabola
313         norm:  3.595e+00  4.816e+00  1.000e-04  1.000e+04 ( 1.000e-12)
314        alpha:  2.909e+00  1.247e+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:  9.407e-01  9.156e-02  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.255e+00  2.394e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.66
Ra Dec: 199.025 -33.636
Photon Index (Free Index): 2.91 +/- 1.25
Photon Flux (Free Index): 6.68e-08 +/- 6.48e-08
Energy Flux (Free Index): 1.47e-05 +/- 9.55e-06

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/405498/cmap_HighResolution_677894401_678153601_4FGL_J1316.1-3338_daily_bin1692.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.68e-05', comment='SUCCESS', photon_flux='3.30e-08', energy_flux2='1.47e-05', photon_flux_error='2.65e-08', dlogl='2.15e-01', energy_flux='1.28e-05', photon_flux2='6.68e-08', job_status='DONE', time_completed='2022-06-29 04:58:03.072930', photon_index_error2='1.25', photon_index2='2.91', ts='3.17', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', photon_flux_upper_limit='9.49e-08', energy_flux_error2='9.55e-06', EG='1.30', time_epoch_completed='1656503883.07', return_code='0', job_id='405498', GAL2='0.94', EG2='1.25', return_code2='0', energy_flux_error='1.03e-05', photon_flux_error2='6.48e-08', ts2='3.66', photon_index='2.25' WHERE bin_id='1692' AND source_name='4FGL J1316.1-3338' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Jun 29 04:58:03 PDT 2022

-----------------------------------------------------------
Sender: LSF System <lsf@bullet0221>
Subject: Job 405499: <4FGL_J1316.1-3338_daily_bin1692> in cluster <slac> Done

Job <4FGL_J1316.1-3338_daily_bin1692> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Jun 29 00:06:52 2022
Job was executed on host(s) <bullet0221>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Jun 29 04:30:19 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Jun 29 04:30:19 2022
Terminated at Wed Jun 29 04:57:19 2022
Results reported at Wed Jun 29 04:57:19 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1316.1-3338_daily_bin1692 199.025 -33.6365 677894401 678153601 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 :                                   1603.42 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             363.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1619 sec.
    Turnaround time :                            17427 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0038>
Subject: Job 405498: <4FGL_J1316.1-3338_daily_bin1692> in cluster <slac> Done

Job <4FGL_J1316.1-3338_daily_bin1692> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Jun 29 00:06:52 2022
Job was executed on host(s) <bullet0038>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Jun 29 04:30:19 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Jun 29 04:30:19 2022
Terminated at Wed Jun 29 04:58:03 2022
Results reported at Wed Jun 29 04:58:03 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1316.1-3338_daily_bin1692 199.025 -33.6365 677894401 678153601 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 :                                   1606.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             350.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1664 sec.
    Turnaround time :                            17471 sec.

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

