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


Performing analysis on: 4FGL_J1416.1+1320_weekly_bin761
RA = 214.029, Dec = 13.347
tmin = 699235201, tmax = 699840001
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='489563', job_status='RUN', time_executed='2023-03-07 01:16:53.144997', time_epoch_executed='1678180613.15' WHERE source_name='4FGL J1416.1+1320' and cadence='weekly' and bin_id='761'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/489563

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/489563/ft1_4FGL_J1416.1+1320_weekly_bin761.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/489563/ft2_4FGL_J1416.1+1320_weekly_bin761.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/489563/ft1_4FGL_J1416.1+1320_weekly_bin761.fits outfile=/scratch/kocevski/489563/ft1_filteredMKT_4FGL_J1416.1+1320_weekly_bin761.fits ra=214.029 dec=13.347 rad=12.0 tmin=699235201.0 tmax=699840001.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.64
user 8.28
sys 0.33

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/489563/ft2_4FGL_J1416.1+1320_weekly_bin761.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/489563/ft1_filteredMKT_4FGL_J1416.1+1320_weekly_bin761.fits evtable="EVENTS" outfile="/scratch/kocevski/489563/ft1_filtered_4FGL_J1416.1+1320_weekly_bin761.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.54
user 0.36
sys 0.17

Number of photons that the gtmktime cut: 1340

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/489563/ft1_filtered_4FGL_J1416.1+1320_weekly_bin761.fits" evtable="EVENTS" scfile=/scratch/kocevski/489563/ft2_4FGL_J1416.1+1320_weekly_bin761.fits sctable="SC_DATA" outfile=/scratch/kocevski/489563/ltcube_699235201_699840001_4FGL_J1416.1+1320_weekly_bin761.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/489563/ft2_4FGL_J1416.1+1320_weekly_bin761.fits
.....................!
real 27.44
user 27.00
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/489563/ft1_filtered_4FGL_J1416.1+1320_weekly_bin761.fits evtable="EVENTS" scfile=/scratch/kocevski/489563/ft2_4FGL_J1416.1+1320_weekly_bin761.fits sctable="SC_DATA" expcube=/scratch/kocevski/489563/ltcube_699235201_699840001_4FGL_J1416.1+1320_weekly_bin761.fits outfile=/scratch/kocevski/489563/expmap_699235201_699840001_4FGL_J1416.1+1320_weekly_bin761.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/489563/ltcube_699235201_699840001_4FGL_J1416.1+1320_weekly_bin761.fits
.....................!
real 190.54
user 185.05
sys 5.12

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/489563/ft1_filtered_4FGL_J1416.1+1320_weekly_bin761.fits scfile=/scratch/kocevski/489563/ft2_4FGL_J1416.1+1320_weekly_bin761.fits outfile=/scratch/kocevski/489563/cmap_699235201_699840001_4FGL_J1416.1+1320_weekly_bin761.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.57
user 0.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/489563/ft1_filtered_4FGL_J1416.1+1320_weekly_bin761.fits scfile=/scratch/kocevski/489563/ft2_4FGL_J1416.1+1320_weekly_bin761.fits outfile=/scratch/kocevski/489563/cmap_HighResolution_699235201_699840001_4FGL_J1416.1+1320_weekly_bin761.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.58
user 0.41
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/489563/ft1_filtered_4FGL_J1416.1+1320_weekly_bin761.fits evtable="EVENTS" scfile=/scratch/kocevski/489563/ft2_4FGL_J1416.1+1320_weekly_bin761.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/489563/Model_4FGL_J1416.1+1320_weekly_bin761.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/489563/ft1_filtered_4FGL_J1416.1+1320_weekly_bin761.fits....................!
real 98.39
user 97.01
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/489563/ft1_filtered_4FGL_J1416.1+1320_weekly_bin761.fits', '/scratch/kocevski/489563/ft2_4FGL_J1416.1+1320_weekly_bin761.fits', expMap='/scratch/kocevski/489563/expmap_699235201_699840001_4FGL_J1416.1+1320_weekly_bin761.fits', expCube='/scratch/kocevski/489563/ltcube_699235201_699840001_4FGL_J1416.1+1320_weekly_bin761.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/489563/Model_4FGL_J1416.1+1320_weekly_bin761.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/489563/ft1_filtered_4FGL_J1416.1+1320_weekly_bin761.fits
Spacecraft file(s): /scratch/kocevski/489563/ft2_4FGL_J1416.1+1320_weekly_bin761.fits
Exposure map: /scratch/kocevski/489563/expmap_699235201_699840001_4FGL_J1416.1+1320_weekly_bin761.fits
Exposure cube: /scratch/kocevski/489563/ltcube_699235201_699840001_4FGL_J1416.1+1320_weekly_bin761.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/489563/Model_4FGL_J1416.1+1320_weekly_bin761.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) = 15089.6553145

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.665       1.0000          .0000       .10000E+07
     2 'Prefactor '    .44409E-09   1.0000          .0000       .10000E+07
     3 'Prefactor '    1.8267       1.0000          .0000       .10000E+07
     4 'Prefactor '    .15465E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    11.907       1.0000          .0000       .10000E+07
     6 'Prefactor '    .11278       1.0000          .0000       .10000E+07
     7 'Prefactor '    59.653       1.0000          .0000       .10000E+07
     8 'norm      '    15.950       1.0000          .0000       .10000E+07
     9 'Prefactor '    2.8948       1.0000          .0000       .10000E+07
    10 'norm      '    2.8741       1.0000          .0000       .10000E+07
    11 'norm      '    .55511E-10   1.0000          .0000       .10000E+07
    12 'Prefactor '    .68941E-04   1.0000          .0000       .10000E+07
    13 'norm      '    6.1183       1.0000          .0000       .10000E+07
    14 'Prefactor '    11.042       1.0000          .0000       .10000E+07
    15 'Prefactor '    10.722       1.0000          .0000       .10000E+07
    16 'Prefactor '    .35149E-04   1.0000          .0000       .10000E+07
    17 'Normalizat'    1.1489       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .90294       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=   15089.56     FROM MIGRAD    STATUS=CONVERGED    102 CALLS     1043 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.221        7.7414       -.28168E-07    .18401    
   2  Prefactor      .0000        .91278       -.20609E-07** at limit **
   3  Prefactor     1.8226        3.0167       -.30439E-06    .11866E-02
   4  Prefactor     .23110E-05    19.440        .33494E-06** at limit **
   5  Prefactor     11.818        8.3906       -.27914E-07   -.14345E-01
   6  Prefactor     .70102E-01    5.9570       -.10207E-06** at limit **
   7  Prefactor     58.774        7.6462        .18559E-07   -.32879E-01
   8  norm          15.967        2.0653        .12529E-07   -.38715E-01
   9  Prefactor     2.9129        3.6670       -.34968E-06    .11563E-02
  10  norm          2.8723        1.3802       -.59440E-07    .40069E-03
  11  norm           .0000        .67302        .11181E-06** at limit **
  12  Prefactor     .27234E-06    14.186        .29392E-06** at limit **
  13  norm          6.1154        8.6105       -.13316E-07    .35186E-02
  14  Prefactor     11.068        10.431        .13858E-06    .67392E-01
  15  Prefactor     10.264        2.7128       -.48992E-08    .47152E-01
  16  Prefactor     .22204E-08    8.9226        .33604E-06** at limit **
  17  Normalizat    1.1502        .16641       -.45394E-05    .12154E-03
  18  Prefactor     .90298        .11910        .18105E-05    .12798E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.2214
  Prefactor  = 0
  Prefactor  = 1.82263
  Prefactor  = 2.31104e-06
  Prefactor  = 11.8177
  Prefactor  = 0.0701018
  Prefactor  = 58.774
  norm       = 15.9674
  Prefactor  = 2.91294
  norm       = 2.8723
  norm       = 0
  Prefactor  = 2.72338e-07
  norm       = 6.11541
  Prefactor  = 11.0678
  Prefactor  = 10.2641
  Prefactor  = 2.22045e-09
  Normalizat = 1.15022
  Prefactor  = 0.902982
 **********
 **   18 **HESSE 
 **********

 FCN=   15089.56     FROM HESSE     STATUS=OK           288 CALLS     1331 TOTAL
                     EDM=   .14E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.221        25.772        .22558E-03   -1.5620    
   2  Prefactor      .0000        .91168        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.8226        3.0476        .77205E-03   -1.5681    
   4  Prefactor     .23110E-05    23.378        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     11.818        8.3889        .29006E-03   -1.5639    
   6  Prefactor     .70102E-01    5.7392        .13598E-01   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     58.774        21.836        .12948E-03   -1.5555    
   8  norm          15.967        17.885        .25052E-03   -1.5628    
   9  Prefactor     2.9129        3.7100        .59701E-03   -1.5674    
  10  norm          2.8723        1.3824        .59929E-03   -1.5674    
  11  norm           .0000        .67106        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .27234E-06    14.717        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          6.1154        8.6901        .40565E-03   -1.5659    
  14  Prefactor     11.068        10.659        .30125E-03   -1.5641    
  15  Prefactor     10.264        16.221        .30574E-03   -1.5644    
  16  Prefactor     .22204E-08    8.9370        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.1502        .13610        .61607E-01   -.88155    
  18  Prefactor     .90298        .96635E-01    .45042E-01   -.96037    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.44573e-06
Minuit parameter uncertainties:
  1  25.7722
  2  2.19543e-06
  3  3.04763
  4  0.0147007
  5  8.38891
  6  1.26859
  7  21.8356
  8  17.8848
  9  3.71004
  10  1.38244
  11  2.89125e-06
  12  0.00400404
  13  8.69014
  14  10.6587
  15  16.2214
  16  0.000280354
  17  0.136145
  18  0.096653
Done.

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

Extracting fit parameters...

4FGL J1416.1+1320
   Spectrum: PowerLaw
242    Prefactor:  5.877e+01  2.184e+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:  9.030e-01  9.665e-02  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.150e+00  1.361e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 16.42
Ra Dec: 214.029 13.347
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 7.68e-08 +/- 2.85e-08
Energy Flux (Fixed Index): 2.61e-05 +/- 9.70e-06

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) = 15088.4457656
delta logL = 1.11022281603

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 15088.4365042
delta logL = 1.11948418462

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    68.208       1.0000          .0000       .10000E+07
     2 'Index     '    1.9407       1.0000          .0000       10.000    
     3 'Normalizat'    1.1827       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88871       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=   15088.44     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      277 TOTAL
                     EDM=   .71E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     68.213        26.718        .48436E-05   -.21979E-02
   2  Index         1.9408        .28096        .70608E-02   -.13794E-03
   3  Normalizat    1.1826        .16489        .26928E-03   -.11378E-02
   4  Prefactor     .88877        .11820        .21929E-03   -.13103E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 68.2134
  Index      = 1.94085
  Normalizat = 1.18262
  Prefactor  = 0.88877
 **********
 **   18 **HESSE 
 **********

 FCN=   15088.44     FROM HESSE     STATUS=OK            23 CALLS      300 TOTAL
                     EDM=   .71E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     68.213        26.805        .96872E-06   -1.5543    
   2  Index         1.9408        .28181        .28243E-03   -.65837    
   3  Normalizat    1.1826        .16506        .53856E-04   -.87142    
   4  Prefactor     .88877        .11832        .43858E-04   -.96535    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.10949e-10
Minuit parameter uncertainties:
  1  26.8049
  2  0.282047
  3  0.165133
  4  0.118354
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/489563': 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) = 15088.436504
delta logL = 1.1194844056

Extracting fit parameters...

4FGL J1416.1+1320
   Spectrum: PowerLaw
242    Prefactor:  6.821e+01  2.680e+01  0.000e+00  1.000e+06 ( 1.000e-13)
243        Index:  1.941e+00  2.820e-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.888e-01  1.184e-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.183e+00  1.651e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 18.68
Ra Dec: 214.029 13.347
Photon Index (Free Index): 1.94 +/- 0.28
Photon Flux (Free Index): 5.05e-08 +/- 2.72e-08
Energy Flux (Free Index): 4.06e-05 +/- 2.18e-05

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/489563/cmap_HighResolution_699235201_699840001_4FGL_J1416.1+1320_weekly_bin761.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.68e-08', energy_flux2='4.06e-05', photon_flux_error='2.85e-08', dlogl='1.12e+00', energy_flux='2.61e-05', photon_flux2='5.05e-08', job_status='DONE', time_completed='2023-03-07 01:28:00.752201', photon_index_error2='0.28', photon_index2='1.94', ts='16.42', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', energy_flux_error2='2.18e-05', EG='1.15', time_epoch_completed='1678181280.75', return_code='0', job_id='489563', GAL2='0.89', EG2='1.18', return_code2='0', energy_flux_error='9.70e-06', photon_flux_error2='2.72e-08', ts2='18.68', photon_index='2.37' WHERE bin_id='761' AND source_name='4FGL J1416.1+1320' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Mar  7 01:28:00 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0212>
Subject: Job 489563: <4FGL_J1416.1+1320_weekly_bin761> in cluster <slac> Done

Job <4FGL_J1416.1+1320_weekly_bin761> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Tue Mar  7 01:15:25 2023
Job was executed on host(s) <bullet0212>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Mar  7 01:15:26 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Mar  7 01:15:26 2023
Terminated at Tue Mar  7 01:28:01 2023
Results reported at Tue Mar  7 01:28:01 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1416.1+1320_weekly_bin761 214.029 13.347 699235201 699840001 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 :                                   668.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             334.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   755 sec.
    Turnaround time :                            756 sec.

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

