/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 69 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 = 7451
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1416.1+1320_daily_bin758
RA = 214.029, Dec = 13.347
tmin = 435801601, tmax = 436060801
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='282310', job_status='RUN', time_executed='2021-09-09 06:19:37.216048', time_epoch_executed='1631193577.22' WHERE source_name='4FGL J1416.1+1320' and cadence='daily' and bin_id='758'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/282310

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/282310/ft1_4FGL_J1416.1+1320_daily_bin758.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/282310/ft2_4FGL_J1416.1+1320_daily_bin758.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/282310/ft1_4FGL_J1416.1+1320_daily_bin758.fits outfile=/scratch/kocevski/282310/ft1_filteredMKT_4FGL_J1416.1+1320_daily_bin758.fits ra=214.029 dec=13.347 rad=12.0 tmin=435801601.0 tmax=436060801.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 7.60
user 5.35
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/282310/ft2_4FGL_J1416.1+1320_daily_bin758.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/282310/ft1_filteredMKT_4FGL_J1416.1+1320_daily_bin758.fits evtable="EVENTS" outfile="/scratch/kocevski/282310/ft1_filtered_4FGL_J1416.1+1320_daily_bin758.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 2.26
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/282310/ft1_filtered_4FGL_J1416.1+1320_daily_bin758.fits" evtable="EVENTS" scfile=/scratch/kocevski/282310/ft2_4FGL_J1416.1+1320_daily_bin758.fits sctable="SC_DATA" outfile=/scratch/kocevski/282310/ltcube_435801601_436060801_4FGL_J1416.1+1320_daily_bin758.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/282310/ft2_4FGL_J1416.1+1320_daily_bin758.fits
.....................!
real 12.13
user 11.31
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/282310/ft1_filtered_4FGL_J1416.1+1320_daily_bin758.fits evtable="EVENTS" scfile=/scratch/kocevski/282310/ft2_4FGL_J1416.1+1320_daily_bin758.fits sctable="SC_DATA" expcube=/scratch/kocevski/282310/ltcube_435801601_436060801_4FGL_J1416.1+1320_daily_bin758.fits outfile=/scratch/kocevski/282310/expmap_435801601_436060801_4FGL_J1416.1+1320_daily_bin758.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/282310/ltcube_435801601_436060801_4FGL_J1416.1+1320_daily_bin758.fits
.....................!
real 192.48
user 187.21
sys 4.87

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/282310/ft1_filtered_4FGL_J1416.1+1320_daily_bin758.fits scfile=/scratch/kocevski/282310/ft2_4FGL_J1416.1+1320_daily_bin758.fits outfile=/scratch/kocevski/282310/cmap_435801601_436060801_4FGL_J1416.1+1320_daily_bin758.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 1.12
user 0.37
sys 0.19

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/282310/ft1_filtered_4FGL_J1416.1+1320_daily_bin758.fits scfile=/scratch/kocevski/282310/ft2_4FGL_J1416.1+1320_daily_bin758.fits outfile=/scratch/kocevski/282310/cmap_HighResolution_435801601_436060801_4FGL_J1416.1+1320_daily_bin758.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.56
user 0.38
sys 0.19

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.809       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .42299       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.3957       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .44638E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    64.565       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .69151       1.0000         .10000E-03   10000.    
    11 'norm      '    12.970       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .92695       1.0000         .10000E-03   10000.    
    13 'norm      '    1.5855       1.0000         .10000E-03   10000.    
    14 'Prefactor '    37.662       1.0000         .10000E-03   10000.    
    15 'norm      '    3.8432       1.0000         .10000E-03   10000.    
    16 'Prefactor '    23.263       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.7955       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    26.299       1.0000         .10000E-03   10000.    
    20 'Prefactor '    19.476       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .80991       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1086       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=   7807.509     FROM MIGRAD    STATUS=CONVERGED    490 CALLS     2152 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.810        33.824        .40352E-06    .36703E-05
   2  Prefactor     .10000E-03    1.3833        .60019E-07** at limit **
   3  Prefactor     .40916        2.4909        .83186E-07   -.10539E-03
   4  Prefactor     3.3911        17.818        .82269E-06    .91947E-06
   5  Prefactor     .10002E-03    7.3979       -.14388E-06** at limit **
   6  Prefactor     .10000E-03    27.330       -.72798E-07** at limit **
   7  Prefactor     .10000E-03    15.028        .16322E-06** at limit **
   8  Prefactor     64.560        30.148       -.38818E-06   -.55355E-04
   9  norm          .10000E-03    8.6874        .64324E-07** at limit **
  10  Prefactor     .69115        5.7638       -.10191E-05   -.80745E-04
  11  norm          12.969        3.6315       -.24533E-07   -.18885E-04
  12  Prefactor     .92645        7.5151        .33466E-05   -.22745E-03
  13  norm          1.5854        1.7902       -.55256E-07   -.11004E-03
  14  Prefactor     37.650        36.735       -.29633E-05   -.16299E-03
  15  norm          3.8573        45.869        .48738E-05    .38154E-04
  16  Prefactor     23.262        20.065        .89771E-07    .13400E-05
  17  Prefactor     3.7930        13.835        .79427E-06   -.19866E-04
  18  Prefactor     .10000E-03    3.9184       -.27537E-07** at limit **
  19  Prefactor     26.294        27.924       -.53160E-06   -.25929E-04
  20  Prefactor     19.475        21.898        .23980E-06    .58744E-05
  21  Normalizat    .80990        .19909       -.25894E-06   -.75021E-05
  22  Prefactor     1.1087        .14010       -.29536E-06    .21109E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.8097
  Prefactor  = 0.0001
  Prefactor  = 0.409158
  Prefactor  = 3.39114
  Prefactor  = 0.000100018
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 64.5597
  norm       = 0.0001
  Prefactor  = 0.691148
  norm       = 12.9693
  Prefactor  = 0.926453
  norm       = 1.58544
  Prefactor  = 37.6496
  norm       = 3.85729
  Prefactor  = 23.262
  Prefactor  = 3.79299
  Prefactor  = 0.0001
  Prefactor  = 26.2939
  Prefactor  = 19.4754
  Normalizat = 0.8099
  Prefactor  = 1.10868
 **********
 **   18 **HESSE 
 **********

 FCN=   7807.509     FROM HESSE     STATUS=OK           356 CALLS     2508 TOTAL
                     EDM=   .80E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.810        33.795        .11658E-03   -1.5021    
   2  Prefactor     .10000E-03    1.3903        .10147E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .40916        11.132        .26367E-02   -1.5580    
   4  Prefactor     3.3911        17.562        .21955E-03   -1.5340    
   5  Prefactor     .10002E-03    99.768        .45549E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    27.448        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    15.095        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     64.560        30.281        .49944E-04   -1.4099    
   9  norm          .10000E-03    8.6953        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .69115        12.437        .37114E-02   -1.5542    
  11  norm          12.969        3.6315        .86557E-04   -1.4988    
  12  Prefactor     .92645        8.4187        .46123E-03   -1.5515    
  13  norm          1.5854        1.7793        .12115E-03   -1.5456    
  14  Prefactor     37.650        38.914        .65308E-04   -1.4480    
  15  norm          3.8573        47.556        .20586E-03   -1.5315    
  16  Prefactor     23.262        20.064        .83049E-04   -1.4743    
  17  Prefactor     3.7930        13.792        .20720E-03   -1.5318    
  18  Prefactor     .10000E-03    3.9220        .17079E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     26.294        27.912        .78116E-04   -1.4682    
  20  Prefactor     19.475        21.891        .90757E-04   -1.4825    
  21  Normalizat    .80990        .23102        .32383E-03   -.99702    
  22  Prefactor     1.1087        .16631        .20415E-03   -.89190    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.96263e-08
Minuit parameter uncertainties:
  1  33.8493
  2  9.26891e-07
  3  4.2688
  4  15.4415
  5  0.00270826
  6  2.03563e-05
  7  1.39731e-05
  8  30.2883
  9  1.05897e-05
  10  5.8648
  11  3.6316
  12  5.58627
  13  1.77936
  14  38.9399
  15  27.1143
  16  20.0694
  17  13.8032
  18  8.26284e-07
  19  27.9255
  20  21.8998
  21  0.2313
  22  0.166388
Done.

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

Extracting fit parameters...

4FGL J1416.1+1320
   Spectrum: PowerLaw
242    Prefactor:  1.000e-04  1.397e-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:  1.109e+00  1.664e-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:  8.099e-01  2.313e-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.10e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.70e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/282310/likelihoodResults_435801601_436060801_4FGL_J1416.1+1320_daily_bin758.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) = 7807.50913028
delta logL = -0.000315724932079

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7807.50881657
delta logL = -2.01697639568e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7063       1.0000          .0000       10.000    
     3 'Normalizat'    .80990       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1087       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7807.509     FROM MIGRAD    STATUS=FAILED       103 CALLS      298 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .31003E-03    11.669        .11997    ** at limit **
   2  Index         1.5875        9.0687        .50000        .79172E-05
   3  Normalizat    .80990        .43929E-02    .32383E-03   -.63544E-05
   4  Prefactor     1.1087        .32129E-02    .20415E-03    .12741E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7807.509     FROM SIMPLEX   STATUS=PROGRESS      74 CALLS      372 TOTAL
                     EDM=   .98E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10081E-03    11.669        .15744E-02** at limit **
   2  Index         1.5590        9.0687        .18209E-01    .79172E-05
   3  Normalizat    .80983        .43929E-02    .45027E-04   -.63544E-05
   4  Prefactor     1.1086        .32129E-02    .31313E-04    .12741E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7807.509     FROM MIGRAD    STATUS=FAILED        84 CALLS      456 TOTAL
                     EDM=   .31E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    9896.6        .24382E-03** at limit **
   2  Index         1.5396        6.7667        .50000       -.33769E-05
   3  Normalizat    .80990        .10174        .25906E-05   -.51783E-03
   4  Prefactor     1.1087        .74413E-01    .81660E-05   -.11644E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100007
  Index      = 1.53956
  Normalizat = 0.809903
  Prefactor  = 1.10867
 **********
 **   18 **HESSE 
 **********

 FCN=   7807.509     FROM HESSE     STATUS=OK            27 CALLS      483 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    110.97        .48765E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.5396        9.0924        .50000       -.76438    
   3  Normalizat    .80990        .22363        .51812E-06   -.99702    
   4  Prefactor     1.1087        .16346        .16332E-05   -.89190    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.97338e-08
Minuit parameter uncertainties:
  1  0.00176989
  2  149.103
  3  0.22388
  4  0.163533
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/282310': 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): 1
logL (Free Index) = 7807.50881173
delta logL = 2.82076962321e-06

Extracting fit parameters...

4FGL J1416.1+1320
   Spectrum: PowerLaw
242    Prefactor:  1.000e-04  1.770e-03  1.000e-04  1.000e+04 ( 1.000e-13)
243        Index:  1.540e+00  1.491e+02  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:  1.109e+00  1.635e-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:  8.099e-01  2.239e-01  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/282310/cmap_HighResolution_435801601_436060801_4FGL_J1416.1+1320_daily_bin758.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.70e-03', job_status='DONE', photon_flux_upper_limit='6.10e-08', time_completed='2021-09-09 06:30:18.301823', job_id='282310', GAL2='1.11', fit_tolerance='1e-08', EG2='0.81', EG='0.81', time_epoch_completed='1631194218.3', return_code2='1', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='2.82e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='758' AND source_name='4FGL J1416.1+1320' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 06:30:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0294>
Subject: Job 282310: <4FGL_J1416.1+1320_daily_bin758> in cluster <slac> Done

Job <4FGL_J1416.1+1320_daily_bin758> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Thu Sep  9 06:17:14 2021
Job was executed on host(s) <bullet0294>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 06:17:16 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:17:16 2021
Terminated at Thu Sep  9 06:30:19 2021
Results reported at Thu Sep  9 06:30:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1416.1+1320_daily_bin758 214.029 13.347 435801601 436060801 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 :                                   626.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             308.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   782 sec.
    Turnaround time :                            785 sec.

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

