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


Performing analysis on: 4FGL_J1416.1+1320_daily_bin1754
RA = 214.029, Dec = 13.347
tmin = 693964801, tmax = 694224001
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='644932', job_status='RUN', time_executed='2023-01-01 01:16:56.234445', time_epoch_executed='1672564616.23' WHERE source_name='4FGL J1416.1+1320' and cadence='daily' and bin_id='1754'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/644932

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/644932/ft1_4FGL_J1416.1+1320_daily_bin1754.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/644932/ft2_4FGL_J1416.1+1320_daily_bin1754.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/644932/ft1_4FGL_J1416.1+1320_daily_bin1754.fits outfile=/scratch/kocevski/644932/ft1_filteredMKT_4FGL_J1416.1+1320_daily_bin1754.fits ra=214.029 dec=13.347 rad=12.0 tmin=693964801.0 tmax=694224001.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.08
user 3.71
sys 0.25

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

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

Number of photons that the gtmktime cut: 705

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/644932/ft1_filtered_4FGL_J1416.1+1320_daily_bin1754.fits" evtable="EVENTS" scfile=/scratch/kocevski/644932/ft2_4FGL_J1416.1+1320_daily_bin1754.fits sctable="SC_DATA" outfile=/scratch/kocevski/644932/ltcube_693964801_694224001_4FGL_J1416.1+1320_daily_bin1754.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/644932/ft2_4FGL_J1416.1+1320_daily_bin1754.fits
.....................!
real 17.16
user 16.54
sys 0.46

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/644932/ft1_filtered_4FGL_J1416.1+1320_daily_bin1754.fits evtable="EVENTS" scfile=/scratch/kocevski/644932/ft2_4FGL_J1416.1+1320_daily_bin1754.fits sctable="SC_DATA" expcube=/scratch/kocevski/644932/ltcube_693964801_694224001_4FGL_J1416.1+1320_daily_bin1754.fits outfile=/scratch/kocevski/644932/expmap_693964801_694224001_4FGL_J1416.1+1320_daily_bin1754.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/644932/ltcube_693964801_694224001_4FGL_J1416.1+1320_daily_bin1754.fits
.....................!
real 194.85
user 187.64
sys 5.83

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/644932/ft1_filtered_4FGL_J1416.1+1320_daily_bin1754.fits scfile=/scratch/kocevski/644932/ft2_4FGL_J1416.1+1320_daily_bin1754.fits outfile=/scratch/kocevski/644932/cmap_693964801_694224001_4FGL_J1416.1+1320_daily_bin1754.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.60
user 0.39
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/644932/ft1_filtered_4FGL_J1416.1+1320_daily_bin1754.fits scfile=/scratch/kocevski/644932/ft2_4FGL_J1416.1+1320_daily_bin1754.fits outfile=/scratch/kocevski/644932/cmap_HighResolution_693964801_694224001_4FGL_J1416.1+1320_daily_bin1754.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 1.93
user 0.42
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .98864E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    3.2211       1.0000          .0000       .10000E+07
     3 'Prefactor '    1.6855       1.0000          .0000       .10000E+07
     4 'Prefactor '    .90039E-06   1.0000          .0000       .10000E+07
     5 'Prefactor '    .14920E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    29.546       1.0000          .0000       .10000E+07
     7 'Prefactor '    26.032       1.0000          .0000       .10000E+07
     8 'norm      '    .19595E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    .29338E-04   1.0000          .0000       .10000E+07
    10 'norm      '    .44965E-03   1.0000          .0000       .10000E+07
    11 'norm      '    .10201E-04   1.0000          .0000       .10000E+07
    12 'Prefactor '    12.715       1.0000          .0000       .10000E+07
    13 'norm      '    .34842E-02   1.0000          .0000       .10000E+07
    14 'Prefactor '    7.1483       1.0000          .0000       .10000E+07
    15 'Prefactor '    .89420       1.0000          .0000       .10000E+07
    16 'Prefactor '    36.307       1.0000          .0000       .10000E+07
    17 'Normalizat'    1.1122       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .90085       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=   7609.607     FROM MIGRAD    STATUS=CONVERGED     96 CALLS     1274 TOTAL
                     EDM=   .84E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .13252E-05    8.1650       -.18583E-06** at limit **
   2  Prefactor     3.2235        3.1911        .27010E-06   -.89290E-03
   3  Prefactor     1.6822        2.7958        .18553E-06   -.11507E-02
   4  Prefactor     .16376E-07    7.9216       -.63899E-06** at limit **
   5  Prefactor     .72004E-06    8.2567        .30426E-08** at limit **
   6  Prefactor     29.372        2.1858        .36569E-07   -.60401E-02
   7  Prefactor     25.872        1.6512        .33369E-07    .37095E-02
   8  norm          .21676E-05    8.5297        .36546E-06** at limit **
   9  Prefactor     .55511E-10    1.9569       -.10115E-06** at limit **
  10  norm          .11102E-09    5.1326       -.72838E-06** at limit **
  11  norm          .16653E-09    1.5979       -.35803E-06** at limit **
  12  Prefactor     12.531        10.359       -.44928E-06   -.69359E-01
  13  norm          .88540E-07    11.276       -.13335E-05** at limit **
  14  Prefactor     7.0194        5.0142       -.12689E-06   -.22837E-01
  15  Prefactor     1.0578        .72243       -.45389E-07    .12640E-02
  16  Prefactor     35.565        17.207        .32328E-07    .11363    
  17  Normalizat    1.1127        .20903       -.21914E-05   -.57528E-05
  18  Prefactor     .90102        .15632        .11117E-05   -.48748E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.32522e-06
  Prefactor  = 3.22346
  Prefactor  = 1.68222
  Prefactor  = 1.63758e-08
  Prefactor  = 7.20035e-07
  Prefactor  = 29.3718
  Prefactor  = 25.8718
  norm       = 2.1676e-06
  Prefactor  = 5.55112e-11
  norm       = 1.11022e-10
  norm       = 1.66533e-10
  Prefactor  = 12.5309
  norm       = 8.85403e-08
  Prefactor  = 7.01941
  Prefactor  = 1.05777
  Prefactor  = 35.5653
  Normalizat = 1.11275
  Prefactor  = 0.901022
 **********
 **   18 **HESSE 
 **********

 FCN=   7609.607     FROM HESSE     STATUS=OK           284 CALLS     1558 TOTAL
                     EDM=   .62E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .13252E-05    16.244        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.2235        3.2001        .56419E-03   -1.5672    
   3  Prefactor     1.6822        2.8244        .81081E-03   -1.5682    
   4  Prefactor     .16376E-07    7.9512        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .72004E-06    22.754        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     29.372        20.516        .18400E-03   -1.5600    
   7  Prefactor     25.872        20.048        .19604E-03   -1.5606    
   8  norm          .21676E-05    18.594        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .55511E-10    1.9791        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .11102E-09    .78625        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .16653E-09    1.5950        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     12.531        17.537        .28066E-03   -1.5637    
  13  norm          .88540E-07    14.116        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     7.0194        17.025        .37495E-03   -1.5655    
  15  Prefactor     1.0578        24.903        .46162E-03   -1.5687    
  16  Prefactor     35.565        24.159        .16598E-03   -1.5589    
  17  Normalizat    1.1127        .17150        .57738E-01   -.89344    
  18  Prefactor     .90102        .12780        .45016E-01   -.96105    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.22733e-07
Minuit parameter uncertainties:
  1  0.00927929
  2  3.20013
  3  2.8244
  4  0.000721156
  5  0.00809541
  6  20.5165
  7  20.0477
  8  0.0126972
  9  1.9624e-05
  10  1.90706e-05
  11  3.34417e-05
  12  17.5367
  13  0.0022362
  14  17.0249
  15  10.2648
  16  24.1593
  17  0.171587
  18  0.127841
Done.

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

Extracting fit parameters...

4FGL J1416.1+1320
   Spectrum: PowerLaw
242    Prefactor:  2.587e+01  2.005e+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.010e-01  1.278e-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.113e+00  1.716e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.95
Ra Dec: 214.029 13.347
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 3.38e-08 +/- 2.62e-08
Energy Flux (Fixed Index): 1.15e-05 +/- 8.90e-06

TS (Fixed Index): 3.95
Ra Dec: 214.029 13.347
Photon Flux Upper Limit: 9.44e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.28e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/644932/likelihoodResults_693964801_694224001_4FGL_J1416.1+1320_daily_bin1754.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) = 7608.85466717
delta logL = 0.752563521656

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7608.78329578
delta logL = 0.823934911284

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    35.541       1.0000          .0000       .10000E+07
     2 'Index     '    1.6839       1.0000          .0000       10.000    
     3 'Normalizat'    1.1338       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88979       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.

 FCN=   7608.783     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      210 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     35.541        35.243        .16776E-03   -.19330E-01
   2  Index         1.6839        .48189        .23189       -.48280E-04
   3  Normalizat    1.1338        .16986        .57261E-01    .12012E-03
   4  Prefactor     .88978        .12730        .44875E-01    .10913E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 35.5405
  Index      = 1.68392
  Normalizat = 1.13378
  Prefactor  = 0.889783
 **********
 **   18 **HESSE 
 **********

 FCN=   7608.783     FROM HESSE     STATUS=OK            31 CALLS      241 TOTAL
                     EDM=   .84E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     35.541        28.002        .67104E-05   -1.5589    
   2  Index         1.6839        .47030        .83346E-02   -.72511    
   3  Normalizat    1.1338        .20784        .25322E-03   -.88674    
   4  Prefactor     .88978        .15592        .21058E-03   -.96499    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.39274e-09
Minuit parameter uncertainties:
  1  28.0019
  2  0.471546
  3  0.207992
  4  0.155994
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/644932': 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) = 7608.78329578
delta logL = 0.823934912812

Extracting fit parameters...

4FGL J1416.1+1320
   Spectrum: PowerLaw
242    Prefactor:  3.554e+01  2.800e+01  0.000e+00  1.000e+06 ( 1.000e-13)
243        Index:  1.684e+00  4.715e-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.898e-01  1.560e-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.134e+00  2.080e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.58
Ra Dec: 214.029 13.347
Photon Index (Free Index): 1.68 +/- 0.47
Photon Flux (Free Index): 2.05e-08 +/- 1.97e-08
Energy Flux (Free Index): 3.52e-05 +/- 4.21e-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/644932/cmap_HighResolution_693964801_694224001_4FGL_J1416.1+1320_daily_bin1754.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.28e-03', comment='SUCCESS', photon_flux='3.38e-08', energy_flux2='3.52e-05', photon_flux_error='2.62e-08', dlogl='8.24e-01', energy_flux='1.15e-05', photon_flux2='2.05e-08', job_status='DONE', time_completed='2023-01-01 01:25:45.233321', photon_index_error2='0.47', photon_index2='1.68', ts='3.95', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', photon_flux_upper_limit='9.44e-08', energy_flux_error2='4.21e-05', EG='1.11', time_epoch_completed='1672565145.23', return_code='0', job_id='644932', GAL2='0.89', EG2='1.13', return_code2='0', energy_flux_error='8.90e-06', photon_flux_error2='1.97e-08', ts2='5.58', photon_index='2.37' WHERE bin_id='1754' AND source_name='4FGL J1416.1+1320' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Jan  1 01:25:45 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0022>
Subject: Job 644932: <4FGL_J1416.1+1320_daily_bin1754> in cluster <slac> Done

Job <4FGL_J1416.1+1320_daily_bin1754> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Sun Jan  1 01:15:19 2023
Job was executed on host(s) <bullet0022>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jan  1 01:16:23 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Jan  1 01:16:23 2023
Terminated at Sun Jan  1 01:25:46 2023
Results reported at Sun Jan  1 01:25:46 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1416.1+1320_daily_bin1754 214.029 13.347 693964801 694224001 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 :                                   528.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             349.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   562 sec.
    Turnaround time :                            627 sec.

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

