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 180 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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 = 7522
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1416.1+1320_daily_bin1708
RA = 214.029, Dec = 13.347
tmin = 682041601, tmax = 682300801
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='143432', job_status='RUN', time_executed='2022-09-16 18:18:04.981168', time_epoch_executed='1663377484.98' WHERE source_name='4FGL J1416.1+1320' and cadence='daily' and bin_id='1708'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/143432

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/143432/ft1_4FGL_J1416.1+1320_daily_bin1708.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/143432/ft2_4FGL_J1416.1+1320_daily_bin1708.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/143432/ft1_4FGL_J1416.1+1320_daily_bin1708.fits outfile=/scratch/kocevski/143432/ft1_filteredMKT_4FGL_J1416.1+1320_daily_bin1708.fits ra=214.029 dec=13.347 rad=12.0 tmin=682041601.0 tmax=682300801.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.02
user 3.75
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/143432/ft2_4FGL_J1416.1+1320_daily_bin1708.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/143432/ft2_4FGL_J1416.1+1320_daily_bin1708.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/143432/ft1_filteredMKT_4FGL_J1416.1+1320_daily_bin1708.fits evtable="EVENTS" outfile="/scratch/kocevski/143432/ft1_filtered_4FGL_J1416.1+1320_daily_bin1708.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.34
sys 0.15

Number of photons that the gtmktime cut: 616

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/143432/ft1_filtered_4FGL_J1416.1+1320_daily_bin1708.fits" evtable="EVENTS" scfile=/scratch/kocevski/143432/ft2_4FGL_J1416.1+1320_daily_bin1708.fits sctable="SC_DATA" outfile=/scratch/kocevski/143432/ltcube_682041601_682300801_4FGL_J1416.1+1320_daily_bin1708.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/143432/ft2_4FGL_J1416.1+1320_daily_bin1708.fits
.....................!
real 14.50
user 14.08
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/143432/ft1_filtered_4FGL_J1416.1+1320_daily_bin1708.fits evtable="EVENTS" scfile=/scratch/kocevski/143432/ft2_4FGL_J1416.1+1320_daily_bin1708.fits sctable="SC_DATA" expcube=/scratch/kocevski/143432/ltcube_682041601_682300801_4FGL_J1416.1+1320_daily_bin1708.fits outfile=/scratch/kocevski/143432/expmap_682041601_682300801_4FGL_J1416.1+1320_daily_bin1708.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/143432/ltcube_682041601_682300801_4FGL_J1416.1+1320_daily_bin1708.fits
.....................!
real 194.01
user 188.23
sys 5.30

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
Added 142 point sources and 0 extended sources

Setting source of interest to:
4FGL J1416.1+1320 @ 214.029 13.347

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/143432/ft1_filtered_4FGL_J1416.1+1320_daily_bin1708.fits scfile=/scratch/kocevski/143432/ft2_4FGL_J1416.1+1320_daily_bin1708.fits outfile=/scratch/kocevski/143432/cmap_682041601_682300801_4FGL_J1416.1+1320_daily_bin1708.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=214.029 yref=13.347 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/143432/ft1_filtered_4FGL_J1416.1+1320_daily_bin1708.fits scfile=/scratch/kocevski/143432/ft2_4FGL_J1416.1+1320_daily_bin1708.fits outfile=/scratch/kocevski/143432/cmap_HighResolution_682041601_682300801_4FGL_J1416.1+1320_daily_bin1708.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=214.029 yref=13.347 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.60
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/143432/ft1_filtered_4FGL_J1416.1+1320_daily_bin1708.fits evtable="EVENTS" scfile=/scratch/kocevski/143432/ft2_4FGL_J1416.1+1320_daily_bin1708.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/143432/Model_4FGL_J1416.1+1320_daily_bin1708.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 EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/143432/ft1_filtered_4FGL_J1416.1+1320_daily_bin1708.fits.....................!
real 51.66
user 50.26
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/143432/ft1_filtered_4FGL_J1416.1+1320_daily_bin1708.fits', '/scratch/kocevski/143432/ft2_4FGL_J1416.1+1320_daily_bin1708.fits', expMap='/scratch/kocevski/143432/expmap_682041601_682300801_4FGL_J1416.1+1320_daily_bin1708.fits', expCube='/scratch/kocevski/143432/ltcube_682041601_682300801_4FGL_J1416.1+1320_daily_bin1708.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/143432/Model_4FGL_J1416.1+1320_daily_bin1708.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1416.1+1320'

4FGL J1416.1+1320
   Spectrum: PowerLaw
242    Prefactor:  8.909e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
243        Index:  2.373e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
244        Scale:  8.905e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/143432/ft1_filtered_4FGL_J1416.1+1320_daily_bin1708.fits
Spacecraft file(s): /scratch/kocevski/143432/ft2_4FGL_J1416.1+1320_daily_bin1708.fits
Exposure map: /scratch/kocevski/143432/expmap_682041601_682300801_4FGL_J1416.1+1320_daily_bin1708.fits
Exposure cube: /scratch/kocevski/143432/ltcube_682041601_682300801_4FGL_J1416.1+1320_daily_bin1708.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/143432/Model_4FGL_J1416.1+1320_daily_bin1708.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) = 6921.69216406

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .66231       1.0000          .0000       .10000E+07
     2 'Prefactor '    .61257E-06   1.0000          .0000       .10000E+07
     3 'Prefactor '    .12718E-06   1.0000          .0000       .10000E+07
     4 'Prefactor '    7.8898       1.0000          .0000       .10000E+07
     5 'Prefactor '    16.034       1.0000          .0000       .10000E+07
     6 'Prefactor '    15.358       1.0000          .0000       .10000E+07
     7 'Prefactor '    92.440       1.0000          .0000       .10000E+07
     8 'norm      '    .40403E-05   1.0000          .0000       .10000E+07
     9 'Prefactor '    .80214E-07   1.0000          .0000       .10000E+07
    10 'norm      '    5.0187       1.0000          .0000       .10000E+07
    11 'norm      '    .94053E-06   1.0000          .0000       .10000E+07
    12 'Prefactor '    34.834       1.0000          .0000       .10000E+07
    13 'norm      '    .13183E-01   1.0000          .0000       .10000E+07
    14 'Prefactor '    15.806       1.0000          .0000       .10000E+07
    15 'Prefactor '    77.386       1.0000          .0000       .10000E+07
    16 'Prefactor '    .56249E-06   1.0000          .0000       .10000E+07
    17 'Normalizat'    1.1921       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .84666       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4610E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6918.610     FROM MIGRAD    STATUS=CONVERGED    109 CALLS      789 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .57671E-06    72.331       -.61878E-06** at limit **
   2  Prefactor      .0000        2.4200       -.20102E-06** at limit **
   3  Prefactor      .0000        1.4117        .35239E-06** at limit **
   4  Prefactor     7.8343        9.5911        .17415E-07    .60840E-02
   5  Prefactor     15.886        8.0919        .48416E-08   -.16077    
   6  Prefactor     15.583        2.5532       -.38968E-08    .69533E-01
   7  Prefactor     92.018        12.286       -.73183E-07    .21457    
   8  norm          .50515E-08    7.1563       -.58434E-06** at limit **
   9  Prefactor      .0000        1.7250       -.20727E-06** at limit **
  10  norm          5.0196        2.7220       -.68714E-07    .69128E-03
  11  norm           .0000        1.8476       -.12338E-06** at limit **
  12  Prefactor     35.371        19.621       -.72159E-07    .45174E-01
  13  norm          .47462E-07    15.881        .13418E-05** at limit **
  14  Prefactor     15.797        1.1918        .19225E-08    .16384E-01
  15  Prefactor     77.426        3.6104       -.20910E-07    .30953E-01
  16  Prefactor     .91593E-08    8.1621        .36827E-06** at limit **
  17  Normalizat    1.1930        .24268       -.21252E-05    .77909E-04
  18  Prefactor     .84624        .17378       -.41034E-06    .87963E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.76705e-07
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 7.83433
  Prefactor  = 15.8864
  Prefactor  = 15.5833
  Prefactor  = 92.0183
  norm       = 5.05151e-09
  Prefactor  = 0
  norm       = 5.01959
  norm       = 0
  Prefactor  = 35.3709
  norm       = 4.7462e-08
  Prefactor  = 15.7969
  Prefactor  = 77.4265
  Prefactor  = 9.15934e-09
  Normalizat = 1.19304
  Prefactor  = 0.846243
 **********
 **   18 **HESSE 
 **********

 FCN=   6918.610     FROM HESSE     STATUS=OK           278 CALLS     1067 TOTAL
                     EDM=   .10E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .57671E-06    80.467        .63822E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor      .0000        2.4120        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor      .0000        1.4106        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     7.8343        9.6149        .35673E-03   -1.5652    
   5  Prefactor     15.886        15.204        .24985E-03   -1.5628    
   6  Prefactor     15.583        14.907        .25531E-03   -1.5629    
   7  Prefactor     92.018        33.140        .10401E-03   -1.5516    
   8  norm          .50515E-08    7.1635        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor      .0000        1.7236        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          5.0196        2.7244        .44864E-03   -1.5663    
  11  norm           .0000        1.8354        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     35.371        23.912        .16945E-03   -1.5589    
  13  norm          .47462E-07    15.958        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     15.797        23.768        .25166E-03   -1.5628    
  15  Prefactor     77.426        27.833        .11368E-03   -1.5532    
  16  Prefactor     .91593E-08    8.1821        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.1930        .20169        .61827E-01   -.86818    
  18  Prefactor     .84624        .14332        .44321E-01   -.98046    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.0335e-06
Minuit parameter uncertainties:
  1  0.0136243
  2  6.72583e-07
  3  1.02967e-05
  4  9.61489
  5  15.2037
  6  14.9071
  7  33.1397
  8  0.000381264
  9  5.04086e-07
  10  2.72436
  11  8.63181e-07
  12  23.9119
  13  0.001741
  14  23.7685
  15  27.8335
  16  0.000546854
  17  0.201823
  18  0.143383
Done.

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

Extracting fit parameters...

4FGL J1416.1+1320
   Spectrum: PowerLaw
242    Prefactor:  9.202e+01  3.314e+01  0.000e+00  1.000e+06 ( 1.000e-13)
243        Index:  2.373e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
244        Scale:  8.905e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
458    Prefactor:  8.462e-01  1.434e-01  0.000e+00  1.000e+01 ( 1.000e+00)
459        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
460        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
457   Normalization:  1.193e+00  2.018e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 20.47
Ra Dec: 214.029 13.347
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 1.20e-07 +/- 4.33e-08
Energy Flux (Fixed Index): 4.09e-05 +/- 1.47e-05

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) = 6917.83287463
delta logL = 0.777509988734

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6917.68926299
delta logL = 0.921121628745

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    113.91       1.0000          .0000       .10000E+07
     2 'Index     '    1.9637       1.0000          .0000       10.000    
     3 'Normalizat'    1.2291       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83014       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4610E+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=   6917.689     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      251 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     113.93        43.259        .18740E-04   -.61223E-03
   2  Index         1.9632        .29048        .53709E-02   -.54283E-04
   3  Normalizat    1.2293        .24123        .27012E-03   -.45792E-03
   4  Prefactor     .83016        .17353        .23150E-03   -.57675E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 113.931
  Index      = 1.96321
  Normalizat = 1.22933
  Prefactor  = 0.830155
 **********
 **   18 **HESSE 
 **********

 FCN=   6917.689     FROM HESSE     STATUS=OK            25 CALLS      276 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     113.93        43.173        .37480E-05   -1.5494    
   2  Index         1.9632        .28986        .21484E-03   -.65273    
   3  Normalizat    1.2293        .24146        .54023E-04   -.85701    
   4  Prefactor     .83016        .17370        .46300E-04   -.98626    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.77476e-10
Minuit parameter uncertainties:
  1  43.1731
  2  0.290114
  3  0.24168
  4  0.173814
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/143432': 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) = 6917.68925982
delta logL = 0.921124800071

Extracting fit parameters...

4FGL J1416.1+1320
   Spectrum: PowerLaw
242    Prefactor:  1.139e+02  4.317e+01  0.000e+00  1.000e+06 ( 1.000e-13)
243        Index:  1.963e+00  2.901e-01  0.000e+00  1.000e+01 (-1.000e+00)
244        Scale:  8.905e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
458    Prefactor:  8.302e-01  1.738e-01  0.000e+00  1.000e+01 ( 1.000e+00)
459        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
460        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
457   Normalization:  1.229e+00  2.417e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 22.31
Ra Dec: 214.029 13.347
Photon Index (Free Index): 1.96 +/- 0.29
Photon Flux (Free Index): 8.65e-08 +/- 4.18e-08
Energy Flux (Free Index): 6.56e-05 +/- 3.82e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/143432/cmap_HighResolution_682041601_682300801_4FGL_J1416.1+1320_daily_bin1708.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.20e-07', energy_flux2='6.56e-05', photon_flux_error='4.33e-08', dlogl='9.21e-01', energy_flux='4.09e-05', photon_flux2='8.65e-08', job_status='DONE', time_completed='2022-09-16 18:25:27.616216', photon_index_error2='0.29', photon_index2='1.96', ts='20.47', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', energy_flux_error2='3.82e-05', EG='1.19', time_epoch_completed='1663377927.62', return_code='0', job_id='143432', GAL2='0.83', EG2='1.23', return_code2='0', energy_flux_error='1.47e-05', photon_flux_error2='4.18e-08', ts2='22.31', photon_index='2.37' WHERE bin_id='1708' AND source_name='4FGL J1416.1+1320' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 18:25:27 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0226>
Subject: Job 143432: <4FGL_J1416.1+1320_daily_bin1708> in cluster <slac> Done

Job <4FGL_J1416.1+1320_daily_bin1708> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Sep 16 18:10:17 2022
Job was executed on host(s) <bullet0226>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 18:14:56 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 16 18:14:56 2022
Terminated at Fri Sep 16 18:25:28 2022
Results reported at Fri Sep 16 18:25:28 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1416.1+1320_daily_bin1708 214.029 13.347 682041601 682300801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1416.1+1320 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   444.51 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             248.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   632 sec.
    Turnaround time :                            911 sec.

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

