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


Performing analysis on: 4FGL_J1416.1+1320_daily_bin950
RA = 214.029, Dec = 13.347
tmin = 485568001, tmax = 485827201
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='283599', job_status='RUN', time_executed='2021-09-09 06:24:55.618131', time_epoch_executed='1631193895.62' WHERE source_name='4FGL J1416.1+1320' and cadence='daily' and bin_id='950'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/283599

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/283599/ft1_4FGL_J1416.1+1320_daily_bin950.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/283599/ft2_4FGL_J1416.1+1320_daily_bin950.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/283599/ft1_4FGL_J1416.1+1320_daily_bin950.fits outfile=/scratch/kocevski/283599/ft1_filteredMKT_4FGL_J1416.1+1320_daily_bin950.fits ra=214.029 dec=13.347 rad=12.0 tmin=485568001.0 tmax=485827201.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 5.41
user 3.69
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/283599/ft2_4FGL_J1416.1+1320_daily_bin950.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/283599/ft1_filteredMKT_4FGL_J1416.1+1320_daily_bin950.fits evtable="EVENTS" outfile="/scratch/kocevski/283599/ft1_filtered_4FGL_J1416.1+1320_daily_bin950.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.70
user 0.34
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/283599/ft1_filtered_4FGL_J1416.1+1320_daily_bin950.fits" evtable="EVENTS" scfile=/scratch/kocevski/283599/ft2_4FGL_J1416.1+1320_daily_bin950.fits sctable="SC_DATA" outfile=/scratch/kocevski/283599/ltcube_485568001_485827201_4FGL_J1416.1+1320_daily_bin950.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/283599/ft2_4FGL_J1416.1+1320_daily_bin950.fits
.....................!
real 14.24
user 11.40
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/283599/ft1_filtered_4FGL_J1416.1+1320_daily_bin950.fits evtable="EVENTS" scfile=/scratch/kocevski/283599/ft2_4FGL_J1416.1+1320_daily_bin950.fits sctable="SC_DATA" expcube=/scratch/kocevski/283599/ltcube_485568001_485827201_4FGL_J1416.1+1320_daily_bin950.fits outfile=/scratch/kocevski/283599/expmap_485568001_485827201_4FGL_J1416.1+1320_daily_bin950.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/283599/ltcube_485568001_485827201_4FGL_J1416.1+1320_daily_bin950.fits
.....................!
real 197.82
user 186.26
sys 4.95

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/283599/ft1_filtered_4FGL_J1416.1+1320_daily_bin950.fits scfile=/scratch/kocevski/283599/ft2_4FGL_J1416.1+1320_daily_bin950.fits outfile=/scratch/kocevski/283599/cmap_485568001_485827201_4FGL_J1416.1+1320_daily_bin950.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 10.46
user 0.39
sys 0.17

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.8421       1.0000         .10000E-03   10000.    
     4 'Prefactor '    20.249       1.0000         .10000E-03   10000.    
     5 'Prefactor '    13.328       1.0000         .10000E-03   10000.    
     6 'Prefactor '    16.756       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    40.277       1.0000         .10000E-03   10000.    
     9 'norm      '    37.685       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.3846       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.3310       1.0000         .10000E-03   10000.    
    13 'norm      '    1.2399       1.0000         .10000E-03   10000.    
    14 'Prefactor '    62.233       1.0000         .10000E-03   10000.    
    15 'norm      '    16.733       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    15.565       1.0000         .10000E-03   10000.    
    18 'Prefactor '    19.890       1.0000         .10000E-03   10000.    
    19 'Prefactor '    41.984       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.5306       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .53919       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=   6530.840     FROM MIGRAD    STATUS=CONVERGED    453 CALLS     2356 TOTAL
                     EDM=   .58E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.236       -.19421E-06** at limit **
   2  Prefactor     .10000E-03    1.3326       -.72695E-07** at limit **
   3  Prefactor     8.8421        5.7873       -.20512E-06   -.90558E-04
   4  Prefactor     20.248        14.768       -.25538E-06    .92524E-05
   5  Prefactor     13.326        16.546       -.19361E-05   -.11029E-04
   6  Prefactor     16.755        18.004       -.73695E-06    .11307E-05
   7  Prefactor     .10000E-03    7.7275       -.26268E-07** at limit **
   8  Prefactor     40.275        27.010       -.18135E-05    .65033E-05
   9  norm          37.683        33.490       -.20456E-05    .18823E-05
  10  Prefactor     .10000E-03    2.5297        .12863E-06** at limit **
  11  norm          2.3845        2.7963       -.22121E-06   -.45365E-03
  12  Prefactor     4.3312        5.4539       -.31477E-06   -.18575E-03
  13  norm          1.2393        3.1142       -.11155E-05   -.11316E-02
  14  Prefactor     62.215        51.028       -.18295E-04    .63057E-05
  15  norm          16.735        27.196        .11152E-04   -.90065E-05
  16  Prefactor     .10000E-03    9.7245       -.19122E-07** at limit **
  17  Prefactor     15.565        14.635        .47214E-07   -.15847E-05
  18  Prefactor     19.890        17.879       -.11281E-05   -.44129E-05
  19  Prefactor     41.988        34.545        .43067E-05    .11999E-04
  20  Prefactor     .10000E-03    34.671        .29154E-06** at limit **
  21  Normalizat    1.5307        .21333        .14282E-05   -.12507E-04
  22  Prefactor     .53914        .14793        .52879E-06    .64484E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.8421
  Prefactor  = 20.2485
  Prefactor  = 13.3258
  Prefactor  = 16.7548
  Prefactor  = 0.0001
  Prefactor  = 40.2746
  norm       = 37.6826
  Prefactor  = 0.0001
  norm       = 2.38451
  Prefactor  = 4.33124
  norm       = 1.23931
  Prefactor  = 62.2151
  norm       = 16.7346
  Prefactor  = 0.0001
  Prefactor  = 15.5647
  Prefactor  = 19.8898
  Prefactor  = 41.988
  Prefactor  = 0.0001
  Normalizat = 1.53065
  Prefactor  = 0.539144
 **********
 **   18 **HESSE 
 **********

 FCN=   6530.840     FROM HESSE     STATUS=OK           350 CALLS     2706 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.241        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    1.3390        .91083E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     8.8421        5.7909        .13479E-03   -1.5113    
   4  Prefactor     20.248        14.785        .89009E-04   -1.4808    
   5  Prefactor     13.326        16.652        .10972E-03   -1.4978    
   6  Prefactor     16.755        18.025        .97845E-04   -1.4889    
   7  Prefactor     .10000E-03    7.7324        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     40.275        27.038        .63160E-04   -1.4438    
   9  norm          37.683        33.512        .65288E-04   -1.4479    
  10  Prefactor     .10000E-03    2.5371        .12550E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.3845        2.7875        .14089E-03   -1.5399    
  12  Prefactor     4.3312        5.4421        .19356E-03   -1.5292    
  13  norm          1.2393        3.1348        .21581E-03   -1.5485    
  14  Prefactor     62.215        50.571        .50865E-04   -1.4129    
  15  norm          16.735        27.040        .97912E-04   -1.4890    
  16  Prefactor     .10000E-03    9.7308        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     15.565        14.632        .10152E-03   -1.4919    
  18  Prefactor     19.890        17.873        .89808E-04   -1.4816    
  19  Prefactor     41.988        34.505        .61867E-04   -1.4411    
  20  Prefactor     .10000E-03    34.698        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.5307        .25739        .24923E-03   -.76921    
  22  Prefactor     .53914        .17570        .27763E-03   -1.1021    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.14142e-09
Minuit parameter uncertainties:
  1  3.6238e-06
  2  2.08055e-06
  3  5.7913
  4  14.7881
  5  16.658
  6  18.0307
  7  2.16232e-06
  8  27.0464
  9  33.5286
  10  1.35515e-06
  11  2.78766
  12  5.44271
  13  3.13524
  14  50.6054
  15  27.0594
  16  2.26387e-05
  17  14.6352
  18  17.8776
  19  34.5209
  20  0.000147263
  21  0.257606
  22  0.175873
Done.

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

Extracting fit parameters...

4FGL J1416.1+1320
   Spectrum: PowerLaw
242    Prefactor:  1.000e-04  2.162e-06  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:  5.391e-01  1.759e-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.531e+00  2.576e-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: 5.15e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.98e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/283599/likelihoodResults_485568001_485827201_4FGL_J1416.1+1320_daily_bin950.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) = 6530.84039181
delta logL = -0.000611810281043

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6530.83978019
delta logL = -1.90476384887e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10276E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3594       1.0000          .0000       10.000    
     3 'Normalizat'    1.5307       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .53909       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=   6530.840     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      261 TOTAL
                     EDM=   .73E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    28.508        .18142E-01** at limit **
   2  Index         1.9455        5.9632        .50000       -.33026E-06
   3  Normalizat    1.5307        .91560E-02    .24923E-03   -.21804E-04
   4  Prefactor     .53914        .64099E-02    .27763E-03   -.19779E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.94546
  Normalizat = 1.53066
  Prefactor  = 0.539143
 **********
 **   18 **HESSE 
 **********

 FCN=   6530.840     FROM HESSE     STATUS=NOT POSDEF    27 CALLS      288 TOTAL
                     EDM=   .62E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    241.06        .23379E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9455        5.0241        .50000       -.65721    
   3  Normalizat    1.5307        .27416E-01    .49846E-04   -.76921    
   4  Prefactor     .53914        .19193E-01    .11105E-04   -1.1021    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.24743e-09
Minuit parameter uncertainties:
  1  7.39725e-06
  2  952.417
  3  0.0274159
  4  0.0191931
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/283599': 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) = 6530.83977922
delta logL = 7.75366061134e-07

Extracting fit parameters...

4FGL J1416.1+1320
   Spectrum: PowerLaw
242    Prefactor:  1.000e-04  7.397e-06  1.000e-04  1.000e+04 ( 1.000e-13)
243        Index:  1.945e+00  9.524e+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:  5.391e-01  1.919e-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.531e+00  2.742e-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/283599/cmap_HighResolution_485568001_485827201_4FGL_J1416.1+1320_daily_bin950.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.98e-03', job_status='DONE', photon_flux_upper_limit='5.15e-08', time_completed='2021-09-09 06:35:35.873405', job_id='283599', GAL2='0.54', fit_tolerance='1e-08', EG2='1.53', EG='1.53', time_epoch_completed='1631194535.87', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.54', dlogl='7.75e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='950' AND source_name='4FGL J1416.1+1320' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 06:35:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0119>
Subject: Job 283599: <4FGL_J1416.1+1320_daily_bin950> in cluster <slac> Done

Job <4FGL_J1416.1+1320_daily_bin950> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep  9 06:21:18 2021
Job was executed on host(s) <bullet0119>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 06:21:20 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:21:20 2021
Terminated at Thu Sep  9 06:35:36 2021
Results reported at Thu Sep  9 06:35:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1416.1+1320_daily_bin950 214.029 13.347 485568001 485827201 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 :                                   572.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             277.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   856 sec.
    Turnaround time :                            858 sec.

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

