/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 25 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 = 7401
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1416.1+1320_daily_bin19
RA = 214.029, Dec = 13.347
tmin = 244252801, tmax = 244512001
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='276550', job_status='RUN', time_executed='2021-09-09 06:02:49.964899', time_epoch_executed='1631192569.96' WHERE source_name='4FGL J1416.1+1320' and cadence='daily' and bin_id='19'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/276550

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/276550/ft1_4FGL_J1416.1+1320_daily_bin19.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/276550/ft2_4FGL_J1416.1+1320_daily_bin19.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/276550/ft1_4FGL_J1416.1+1320_daily_bin19.fits outfile=/scratch/kocevski/276550/ft1_filteredMKT_4FGL_J1416.1+1320_daily_bin19.fits ra=214.029 dec=13.347 rad=12.0 tmin=244252801.0 tmax=244512001.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 2.63
user 2.22
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/276550/ft2_4FGL_J1416.1+1320_daily_bin19.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/276550/ft1_filteredMKT_4FGL_J1416.1+1320_daily_bin19.fits evtable="EVENTS" outfile="/scratch/kocevski/276550/ft1_filtered_4FGL_J1416.1+1320_daily_bin19.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.52
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/276550/ft1_filtered_4FGL_J1416.1+1320_daily_bin19.fits" evtable="EVENTS" scfile=/scratch/kocevski/276550/ft2_4FGL_J1416.1+1320_daily_bin19.fits sctable="SC_DATA" outfile=/scratch/kocevski/276550/ltcube_244252801_244512001_4FGL_J1416.1+1320_daily_bin19.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/276550/ft2_4FGL_J1416.1+1320_daily_bin19.fits
.....................!
real 12.57
user 11.91
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/276550/ft1_filtered_4FGL_J1416.1+1320_daily_bin19.fits evtable="EVENTS" scfile=/scratch/kocevski/276550/ft2_4FGL_J1416.1+1320_daily_bin19.fits sctable="SC_DATA" expcube=/scratch/kocevski/276550/ltcube_244252801_244512001_4FGL_J1416.1+1320_daily_bin19.fits outfile=/scratch/kocevski/276550/expmap_244252801_244512001_4FGL_J1416.1+1320_daily_bin19.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/276550/ltcube_244252801_244512001_4FGL_J1416.1+1320_daily_bin19.fits
.....................!
real 193.63
user 185.96
sys 4.92

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/276550/ft1_filtered_4FGL_J1416.1+1320_daily_bin19.fits scfile=/scratch/kocevski/276550/ft2_4FGL_J1416.1+1320_daily_bin19.fits outfile=/scratch/kocevski/276550/cmap_244252801_244512001_4FGL_J1416.1+1320_daily_bin19.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/276550/ft1_filtered_4FGL_J1416.1+1320_daily_bin19.fits scfile=/scratch/kocevski/276550/ft2_4FGL_J1416.1+1320_daily_bin19.fits outfile=/scratch/kocevski/276550/cmap_HighResolution_244252801_244512001_4FGL_J1416.1+1320_daily_bin19.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.64
user 0.38
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/276550/ft1_filtered_4FGL_J1416.1+1320_daily_bin19.fits', '/scratch/kocevski/276550/ft2_4FGL_J1416.1+1320_daily_bin19.fits', expMap='/scratch/kocevski/276550/expmap_244252801_244512001_4FGL_J1416.1+1320_daily_bin19.fits', expCube='/scratch/kocevski/276550/ltcube_244252801_244512001_4FGL_J1416.1+1320_daily_bin19.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/276550/Model_4FGL_J1416.1+1320_daily_bin19.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  1.000e-04  1.000e+04 ( 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/276550/ft1_filtered_4FGL_J1416.1+1320_daily_bin19.fits
Spacecraft file(s): /scratch/kocevski/276550/ft2_4FGL_J1416.1+1320_daily_bin19.fits
Exposure map: /scratch/kocevski/276550/expmap_244252801_244512001_4FGL_J1416.1+1320_daily_bin19.fits
Exposure cube: /scratch/kocevski/276550/ltcube_244252801_244512001_4FGL_J1416.1+1320_daily_bin19.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/276550/Model_4FGL_J1416.1+1320_daily_bin19.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) = 5446.85318861

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    42.923       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.4443       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.7773       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .34743E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    4.2404       1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.8961       1.0000         .10000E-03   10000.    
    13 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .11635E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    19.922       1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.0927       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10332E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1963       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .90643       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.

 FCN=   5446.843     FROM MIGRAD    STATUS=CONVERGED    491 CALLS     2369 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     42.923        39.674        .34973E-07   -.70525E-05
   2  Prefactor     3.4442        4.6716        .41873E-06   -.36797E-05
   3  Prefactor     3.7775        4.2064        .56535E-07   -.58487E-05
   4  Prefactor     .10000E-03    14.576       -.56067E-06** at limit **
   5  Prefactor     .10000E-03    11.001       -.31679E-07** at limit **
   6  Prefactor     .10028E-03    17.788       -.11576E-05** at limit **
   7  Prefactor     .10000E-03    12.272        .23664E-06** at limit **
   8  Prefactor     .10000E-03    15.336        .15567E-06** at limit **
   9  norm          .10000E-03    7.0590        .17106E-07** at limit **
  10  Prefactor     .10000E-03    2.3654       -.12953E-06** at limit **
  11  norm          4.2405        2.5107        .57881E-08   -.96882E-05
  12  Prefactor     8.8961        8.1705        .24605E-05   -.10072E-03
  13  norm          .10000E-03    1.1770       -.68391E-07** at limit **
  14  Prefactor     .10000E-03    31.838        .77909E-06** at limit **
  15  norm          .10001E-03    52.607        .33903E-05** at limit **
  16  Prefactor     .10000E-03    15.751        .41503E-06** at limit **
  17  Prefactor     19.921        30.404        .72739E-06   -.18622E-04
  18  Prefactor     5.0934        11.860       -.11214E-06   -.57032E-05
  19  Prefactor     .10000E-03    40.741       -.18294E-05** at limit **
  20  Prefactor     .10000E-03    15.194       -.20787E-06** at limit **
  21  Normalizat    1.1964        .22024       -.10157E-05    .52038E-04
  22  Prefactor     .90634        .15878       -.11235E-06   -.86289E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 42.9231
  Prefactor  = 3.44423
  Prefactor  = 3.77749
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100279
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 4.24045
  Prefactor  = 8.89607
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100006
  Prefactor  = 0.000100001
  Prefactor  = 19.9215
  Prefactor  = 5.09335
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Normalizat = 1.19641
  Prefactor  = 0.906337
 **********
 **   18 **HESSE 
 **********

 FCN=   5446.843     FROM HESSE     STATUS=OK           340 CALLS     2709 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     42.923        39.686        .61189E-04   -1.4397    
   2  Prefactor     3.4442        4.6643        .17679E-03   -1.5337    
   3  Prefactor     3.7775        4.2020        .15457E-03   -1.5319    
   4  Prefactor     .10000E-03    14.682        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    11.107        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10028E-03    140.55        .58836E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    12.297        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    15.448        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    7.0612        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.3724        .11092E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          4.2405        2.5104        .87681E-04   -1.5296    
  12  Prefactor     8.8961        8.2151        .67192E-03   -1.5111    
  13  norm          .10000E-03    1.1890        .78198E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    32.055        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10001E-03    55.165        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    15.832        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     19.921        30.407        .89736E-04   -1.4815    
  18  Prefactor     5.0934        11.842        .17817E-03   -1.5257    
  19  Prefactor     .10000E-03    41.507        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    15.203        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.1964        .27147        .25980E-03   -.86714    
  22  Prefactor     .90634        .19636        .21809E-03   -.95920    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.23966e-09
Minuit parameter uncertainties:
  1  39.7108
  2  4.66483
  3  4.20229
  4  0.00020343
  5  1.55657e-05
  6  0.0125558
  7  8.58058e-05
  8  4.26275e-05
  9  2.14954e-06
  10  9.99721e-06
  11  2.51047
  12  8.21616
  13  3.82154e-06
  14  0.000193063
  15  0.00113557
  16  0.000186159
  17  30.4308
  18  11.8478
  19  0.000910728
  20  6.4743e-05
  21  0.271786
  22  0.196509
Done.

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

Extracting fit parameters...

4FGL J1416.1+1320
   Spectrum: PowerLaw
242    Prefactor:  1.000e-04  8.581e-05  1.000e-04  1.000e+04 ( 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.063e-01  1.965e-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.196e+00  2.718e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/276550/likelihoodResults_244252801_244512001_4FGL_J1416.1+1320_daily_bin19.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5446.84311397
delta logL = -0.000387287155718

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5446.8427267
delta logL = -8.10905476101e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3652       1.0000          .0000       10.000    
     3 'Normalizat'    1.1964       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90635       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=   5446.843     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      244 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10044E-03    192.16        .18142E-02** at limit **
   2  Index         2.3246        6.3863        .50000        .45063E-05
   3  Normalizat    1.1964        .20804E-01    .25980E-03    .17942E-05
   4  Prefactor     .90634        .15519E-01    .21809E-03    .30756E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100442
  Index      = 2.32455
  Normalizat = 1.19641
  Prefactor  = 0.906337
 **********
 **   18 **HESSE 
 **********

 FCN=   5446.843     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      273 TOTAL
                     EDM=   .56E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10044E-03    800.05        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3246        7.1647        .50000       -.56461    
   3  Normalizat    1.1964        .45720E-01    .10392E-04   -.86714    
   4  Prefactor     .90634        .34104E-01    .87235E-05   -.95920    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.60775e-09
Minuit parameter uncertainties:
  1  0.0381492
  2  1445.47
  3  0.0457211
  4  0.0341048
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/276550': 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): 102
logL (Free Index) = 5446.84272665
delta logL = 3.98413249059e-08

Extracting fit parameters...

4FGL J1416.1+1320
   Spectrum: PowerLaw
242    Prefactor:  1.004e-04  3.815e-02  1.000e-04  1.000e+04 ( 1.000e-13)
243        Index:  2.325e+00  1.445e+03  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:  9.063e-01  3.410e-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.196e+00  4.572e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 214.029 13.347

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/276550/cmap_HighResolution_244252801_244512001_4FGL_J1416.1+1320_daily_bin19.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.07e-03', job_status='DONE', photon_flux_upper_limit='6.58e-08', time_completed='2021-09-09 06:11:43.563066', job_id='276550', GAL2='0.91', fit_tolerance='1e-08', EG2='1.20', EG='1.20', time_epoch_completed='1631193103.56', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='3.98e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='19' AND source_name='4FGL J1416.1+1320' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 06:11:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0136>
Subject: Job 276550: <4FGL_J1416.1+1320_daily_bin19> in cluster <slac> Done

Job <4FGL_J1416.1+1320_daily_bin19> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Sep  9 06:02:01 2021
Job was executed on host(s) <bullet0136>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 06:02:02 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  9 06:02:02 2021
Terminated at Thu Sep  9 06:11:44 2021
Results reported at Thu Sep  9 06:11:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1416.1+1320_daily_bin19 214.029 13.347 244252801 244512001 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 :                                   526.24 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             327.06 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   581 sec.
    Turnaround time :                            583 sec.

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

