/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 36 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 = 7398
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1416.1+1320_daily_bin340
RA = 214.029, Dec = 13.347
tmin = 327456001, tmax = 327715201
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='278262', job_status='RUN', time_executed='2021-09-09 06:08:15.785976', time_epoch_executed='1631192895.79' WHERE source_name='4FGL J1416.1+1320' and cadence='daily' and bin_id='340'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/278262

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/278262/ft1_4FGL_J1416.1+1320_daily_bin340.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/278262/ft2_4FGL_J1416.1+1320_daily_bin340.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/278262/ft1_4FGL_J1416.1+1320_daily_bin340.fits outfile=/scratch/kocevski/278262/ft1_filteredMKT_4FGL_J1416.1+1320_daily_bin340.fits ra=214.029 dec=13.347 rad=12.0 tmin=327456001.0 tmax=327715201.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 3.81
user 3.08
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/278262/ft1_filtered_4FGL_J1416.1+1320_daily_bin340.fits evtable="EVENTS" scfile=/scratch/kocevski/278262/ft2_4FGL_J1416.1+1320_daily_bin340.fits sctable="SC_DATA" expcube=/scratch/kocevski/278262/ltcube_327456001_327715201_4FGL_J1416.1+1320_daily_bin340.fits outfile=/scratch/kocevski/278262/expmap_327456001_327715201_4FGL_J1416.1+1320_daily_bin340.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/278262/ltcube_327456001_327715201_4FGL_J1416.1+1320_daily_bin340.fits
.....................!
real 190.47
user 184.71
sys 3.30

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/278262/ft1_filtered_4FGL_J1416.1+1320_daily_bin340.fits scfile=/scratch/kocevski/278262/ft2_4FGL_J1416.1+1320_daily_bin340.fits outfile=/scratch/kocevski/278262/cmap_327456001_327715201_4FGL_J1416.1+1320_daily_bin340.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.62
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/278262/ft1_filtered_4FGL_J1416.1+1320_daily_bin340.fits scfile=/scratch/kocevski/278262/ft2_4FGL_J1416.1+1320_daily_bin340.fits outfile=/scratch/kocevski/278262/cmap_HighResolution_327456001_327715201_4FGL_J1416.1+1320_daily_bin340.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.55
user 0.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    67.844       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11012E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.5199       1.0000         .10000E-03   10000.    
     4 'Prefactor '    17.465       1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.7666       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.6433       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-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      '    11.785       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.6619       1.0000         .10000E-03   10000.    
    13 'norm      '    4.3182       1.0000         .10000E-03   10000.    
    14 'Prefactor '    12.315       1.0000         .10000E-03   10000.    
    15 'norm      '    .10077E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.6214       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    24.564       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .85906       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1579       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=   6075.575     FROM MIGRAD    STATUS=CONVERGED    489 CALLS     2372 TOTAL
                     EDM=   .99E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     67.846        53.631       -.82273E-06   -.63189E-05
   2  Prefactor     .10040E-03    2.2767       -.17663E-05** at limit **
   3  Prefactor     1.5201        4.2665        .77325E-05   -.26661E-03
   4  Prefactor     17.466        12.668       -.16145E-06   -.15962E-05
   5  Prefactor     7.7678        9.8228        .12470E-05   -.39712E-04
   6  Prefactor     2.6453        46.313        .17383E-05    .58714E-05
   7  Prefactor     .10000E-03    13.972       -.30539E-06** at limit **
   8  Prefactor     .10000E-03    10.280       -.42881E-06** at limit **
   9  norm          .10000E-03    6.6331        .45998E-07** at limit **
  10  Prefactor     .10000E-03    2.1482        .26352E-07** at limit **
  11  norm          11.786        3.9973        .94912E-07   -.78431E-05
  12  Prefactor     4.6620        5.9564        .33664E-06    .16451E-04
  13  norm          4.3183        3.1454        .51237E-06   -.10310E-03
  14  Prefactor     12.311        14.745        .93735E-07   -.35996E-05
  15  norm          .10000E-03    5.6419        .25100E-07** at limit **
  16  Prefactor     .10000E-03    10.943        .10183E-06** at limit **
  17  Prefactor     .10000E-03    11.142        .50389E-06** at limit **
  18  Prefactor     3.6167        8.4290        .19946E-05   -.63656E-04
  19  Prefactor     .10007E-03    72.967       -.11398E-04** at limit **
  20  Prefactor     24.499        36.900        .88211E-05    .22011E-03
  21  Normalizat    .85916        .21899       -.30104E-05    .72909E-04
  22  Prefactor     1.1577        .16496        .90009E-07    .22896E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 67.8456
  Prefactor  = 0.000100396
  Prefactor  = 1.52012
  Prefactor  = 17.4659
  Prefactor  = 7.76776
  Prefactor  = 2.64526
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 11.7856
  Prefactor  = 4.66195
  norm       = 4.3183
  Prefactor  = 12.3109
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.61666
  Prefactor  = 0.00010007
  Prefactor  = 24.4994
  Normalizat = 0.859158
  Prefactor  = 1.1577
 **********
 **   18 **HESSE 
 **********

 FCN=   6075.575     FROM HESSE     STATUS=OK           344 CALLS     2716 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     67.846        53.642        .48730E-04   -1.4059    
   2  Prefactor     .10040E-03    37.962        .21731E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.5201        4.2890        .13070E-02   -1.5461    
   4  Prefactor     17.466        12.671        .95837E-04   -1.4872    
   5  Prefactor     7.7678        9.8281        .71943E-03   -1.5150    
   6  Prefactor     2.6453        46.421        .25077E-03   -1.5383    
   7  Prefactor     .10000E-03    13.993        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    10.294        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    6.6341        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.1519        .11155E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          11.786        3.9961        .87728E-04   -1.5021    
  12  Prefactor     4.6620        5.9477        .18639E-03   -1.5276    
  13  norm          4.3183        3.1422        .56258E-03   -1.5292    
  14  Prefactor     12.311        14.735        .11415E-03   -1.5006    
  15  norm          .10000E-03    5.6435        .18071E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    10.960        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    11.166        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.6167        8.4200        .10616E-02   -1.5328    
  19  Prefactor     .10007E-03    76.813        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     24.499        37.036        .80823E-04   -1.4718    
  21  Normalizat    .85916        .26261        .30398E-03   -.97910    
  22  Prefactor     1.1577        .19968        .20430E-03   -.87643    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.10215e-08
Minuit parameter uncertainties:
  1  53.6805
  2  0.00776191
  3  4.28983
  4  12.673
  5  9.83011
  6  22.1824
  7  1.21903e-05
  8  5.40667e-06
  9  4.59887e-06
  10  2.10379e-06
  11  3.99622
  12  5.94846
  13  3.14231
  14  14.7396
  15  4.82746e-06
  16  3.62318e-05
  17  2.38044e-05
  18  8.42272
  19  0.00463825
  20  37.0705
  21  0.262996
  22  0.199806
Done.

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

Extracting fit parameters...

4FGL J1416.1+1320
   Spectrum: PowerLaw
242    Prefactor:  1.000e-04  1.219e-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.158e+00  1.998e-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.592e-01  2.630e-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.94e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.36e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/278262/likelihoodResults_327456001_327715201_4FGL_J1416.1+1320_daily_bin340.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) = 6075.57576514
delta logL = -0.000340467308888

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6075.5754247
delta logL = -2.94921846944e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3660       1.0000          .0000       10.000    
     3 'Normalizat'    .85914       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1577       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=   6075.575     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      244 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10020E-03    160.57        .18142E-02** at limit **
   2  Index         2.3420        8.8223        .50000        .35132E-05
   3  Normalizat    .85916        .16982E-01    .30398E-03    .21317E-05
   4  Prefactor     1.1577        .13128E-01    .20430E-03    .24485E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100201
  Index      = 2.34199
  Normalizat = 0.85916
  Prefactor  = 1.1577
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10020E-03    699.23        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3420        5.5216        .50000       -.56049    
   3  Normalizat    .85916        .37481E-01    .12159E-04   -.97910    
   4  Prefactor     1.1577        .28974E-01    .81718E-05   -.87643    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.90407e-09
Minuit parameter uncertainties:
  1  0.0240154
  2  1045.16
  3  0.0374819
  4  0.0289741
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/278262': 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) = 6075.57542465
delta logL = 2.15850377572e-08

Extracting fit parameters...

4FGL J1416.1+1320
   Spectrum: PowerLaw
242    Prefactor:  1.002e-04  2.402e-02  1.000e-04  1.000e+04 ( 1.000e-13)
243        Index:  2.342e+00  1.045e+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:  1.158e+00  2.897e-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:  8.592e-01  3.748e-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/278262/cmap_HighResolution_327456001_327715201_4FGL_J1416.1+1320_daily_bin340.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.36e-03', job_status='DONE', photon_flux_upper_limit='6.94e-08', time_completed='2021-09-09 06:17:38.342639', job_id='278262', GAL2='1.16', fit_tolerance='1e-08', EG2='0.86', EG='0.86', time_epoch_completed='1631193458.34', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.16', dlogl='2.16e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='340' AND source_name='4FGL J1416.1+1320' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 06:17:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0278>
Subject: Job 278262: <4FGL_J1416.1+1320_daily_bin340> in cluster <slac> Done

Job <4FGL_J1416.1+1320_daily_bin340> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep  9 06:06:42 2021
Job was executed on host(s) <bullet0278>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 06:06:44 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:06:44 2021
Terminated at Thu Sep  9 06:17:39 2021
Results reported at Thu Sep  9 06:17:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1416.1+1320_daily_bin340 214.029 13.347 327456001 327715201 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 :                                   547.04 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             350.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   655 sec.
    Turnaround time :                            657 sec.

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

