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


Performing analysis on: 4FGL_J1416.1+1320_daily_bin147
RA = 214.029, Dec = 13.347
tmin = 277430401, tmax = 277689601
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='276746', job_status='RUN', time_executed='2021-09-09 06:05:28.356302', time_epoch_executed='1631192728.36' WHERE source_name='4FGL J1416.1+1320' and cadence='daily' and bin_id='147'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/276746

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/276746/ft1_4FGL_J1416.1+1320_daily_bin147.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/276746/ft2_4FGL_J1416.1+1320_daily_bin147.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/276746/ft1_4FGL_J1416.1+1320_daily_bin147.fits outfile=/scratch/kocevski/276746/ft1_filteredMKT_4FGL_J1416.1+1320_daily_bin147.fits ra=214.029 dec=13.347 rad=12.0 tmin=277430401.0 tmax=277689601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.49
user 3.29
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/276746/ft1_filtered_4FGL_J1416.1+1320_daily_bin147.fits" evtable="EVENTS" scfile=/scratch/kocevski/276746/ft2_4FGL_J1416.1+1320_daily_bin147.fits sctable="SC_DATA" outfile=/scratch/kocevski/276746/ltcube_277430401_277689601_4FGL_J1416.1+1320_daily_bin147.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/276746/ft2_4FGL_J1416.1+1320_daily_bin147.fits
.....................!
real 12.12
user 11.43
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/276746/ft1_filtered_4FGL_J1416.1+1320_daily_bin147.fits evtable="EVENTS" scfile=/scratch/kocevski/276746/ft2_4FGL_J1416.1+1320_daily_bin147.fits sctable="SC_DATA" expcube=/scratch/kocevski/276746/ltcube_277430401_277689601_4FGL_J1416.1+1320_daily_bin147.fits outfile=/scratch/kocevski/276746/expmap_277430401_277689601_4FGL_J1416.1+1320_daily_bin147.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/276746/ltcube_277430401_277689601_4FGL_J1416.1+1320_daily_bin147.fits
.....................!
real 193.38
user 186.04
sys 4.58

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/276746/ft1_filtered_4FGL_J1416.1+1320_daily_bin147.fits scfile=/scratch/kocevski/276746/ft2_4FGL_J1416.1+1320_daily_bin147.fits outfile=/scratch/kocevski/276746/cmap_277430401_277689601_4FGL_J1416.1+1320_daily_bin147.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.13
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/276746/ft1_filtered_4FGL_J1416.1+1320_daily_bin147.fits scfile=/scratch/kocevski/276746/ft2_4FGL_J1416.1+1320_daily_bin147.fits outfile=/scratch/kocevski/276746/cmap_HighResolution_277430401_277689601_4FGL_J1416.1+1320_daily_bin147.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.96
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    42.773       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10420E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.7605       1.0000         .10000E-03   10000.    
     6 'Prefactor '    47.411       1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.1902       1.0000         .10000E-03   10000.    
     8 'Prefactor '    42.619       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    4.4496       1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.6948       1.0000         .10000E-03   10000.    
    13 'norm      '    .31058       1.0000         .10000E-03   10000.    
    14 'Prefactor '    22.939       1.0000         .10000E-03   10000.    
    15 'norm      '    .10096E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.6995       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    15.958       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2253       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .98413       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=   6194.650     FROM MIGRAD    STATUS=CONVERGED    474 CALLS     2351 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     42.780        63.586        .69335E-05    .12349E-03
   2  Prefactor     .10000E-03    1.9565        .89577E-07** at limit **
   3  Prefactor     .10000E-03    3.6002       -.51593E-06** at limit **
   4  Prefactor     .10000E-03    5.5288        .34692E-06** at limit **
   5  Prefactor     2.7574        6.7914        .27796E-05   -.96355E-03
   6  Prefactor     47.410        32.593       -.93412E-06   -.47443E-04
   7  Prefactor     7.1835        23.981       -.83167E-05   -.13632E-03
   8  Prefactor     42.620        30.848        .10312E-05    .63464E-04
   9  norm          .10000E-03    6.7724        .22213E-05** at limit **
  10  Prefactor     .10000E-03    2.6795        .19925E-06** at limit **
  11  norm          4.4496        2.3563        .44059E-08    .13956E-03
  12  Prefactor     9.6949        6.4800        .53237E-07    .17526E-03
  13  norm          .31047        2.2311       -.15452E-05    .63316E-03
  14  Prefactor     22.938        30.361       -.52638E-06   -.37775E-04
  15  norm          .10000E-03    14.341        .26132E-05** at limit **
  16  Prefactor     .10000E-03    12.710       -.14618E-05** at limit **
  17  Prefactor     2.6950        51.185       -.82148E-05   -.64302E-04
  18  Prefactor     .10000E-03    6.2548       -.24432E-05** at limit **
  19  Prefactor     15.953        18.460       -.17812E-05   -.78824E-04
  20  Prefactor     .10000E-03    34.051       -.41325E-06** at limit **
  21  Normalizat    1.2252        .21713       -.51393E-06    .28712E-03
  22  Prefactor     .98426        .15889        .89734E-06    .26565E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 42.7801
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.75741
  Prefactor  = 47.4098
  Prefactor  = 7.18347
  Prefactor  = 42.6203
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 4.44959
  Prefactor  = 9.69495
  norm       = 0.310465
  Prefactor  = 22.9378
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.69496
  Prefactor  = 0.0001
  Prefactor  = 15.9533
  Prefactor  = 0.0001
  Normalizat = 1.22522
  Prefactor  = 0.984256
 **********
 **   18 **HESSE 
 **********

 FCN=   6194.650     FROM HESSE     STATUS=OK           338 CALLS     2689 TOTAL
                     EDM=   .69E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     42.780        63.782        .61296E-04   -1.4399    
   2  Prefactor     .10000E-03    1.9704        .10748E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    11.822        .28828E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.5418        .18072E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.7574        13.030        .12249E-02   -1.5376    
   6  Prefactor     47.410        32.674        .58234E-04   -1.4330    
   7  Prefactor     7.1835        24.302        .14959E-03   -1.5172    
   8  Prefactor     42.620        30.873        .61407E-04   -1.4401    
   9  norm          .10000E-03    6.7943        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.6931        .12583E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          4.4496        2.3578        .85615E-04   -1.5286    
  12  Prefactor     9.6949        6.4772        .12870E-03   -1.5085    
  13  norm          .31047        4.2929        .21572E-02   -1.5597    
  14  Prefactor     22.938        30.371        .83633E-04   -1.4750    
  15  norm          .10000E-03    14.412        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    12.741        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.6950        52.186        .24794E-03   -1.5380    
  18  Prefactor     .10000E-03    6.2822        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     15.953        18.497        .10026E-03   -1.4909    
  20  Prefactor     .10000E-03    34.130        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.2252        .26843        .27892E-03   -.85827    
  22  Prefactor     .98426        .19201        .22624E-03   -.93256    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.86837e-09
Minuit parameter uncertainties:
  1  63.8835
  2  2.08526e-06
  3  7.71093e-05
  4  7.02381e-06
  5  11.9922
  6  32.6861
  7  24.3358
  8  30.8847
  9  7.82013e-05
  10  1.07027e-05
  11  2.3578
  12  6.47769
  13  2.30876
  14  30.3915
  15  0.000155855
  16  5.20643e-05
  17  23.7418
  18  7.79325e-05
  19  18.5035
  20  1.85197e-06
  21  0.268731
  22  0.192147
Done.

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

Extracting fit parameters...

4FGL J1416.1+1320
   Spectrum: PowerLaw
242    Prefactor:  7.183e+00  2.434e+01  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.843e-01  1.921e-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.225e+00  2.687e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/276746/likelihoodResults_277430401_277689601_4FGL_J1416.1+1320_daily_bin147.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6194.48841174
delta logL = 0.161713460712

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6194.48837196
delta logL = 0.16175323438

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.373       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7016       1.0000          .0000       10.000    
     3 'Normalizat'    1.2349       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97584       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=   6194.488     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      278 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.356        27.812        .10215E-03    .17807E-05
   2  Index         1.7015        .86661        .13450E-01   -.15977E-03
   3  Normalizat    1.2349        .25541        .27795E-03    .44092E-04
   4  Prefactor     .97585        .18941        .22704E-03   -.22784E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.3562
  Index      = 1.70152
  Normalizat = 1.23487
  Prefactor  = 0.975852
 **********
 **   18 **HESSE 
 **********

 FCN=   6194.488     FROM HESSE     STATUS=OK            25 CALLS      303 TOTAL
                     EDM=   .23E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.356        28.043        .40861E-05   -1.4924    
   2  Index         1.7015        .87433        .26900E-02   -.72041    
   3  Normalizat    1.2349        .25567        .11118E-04   -.85532    
   4  Prefactor     .97585        .18961        .90815E-05   -.93539    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.29649e-11
Minuit parameter uncertainties:
  1  28.0668
  2  0.882415
  3  0.255933
  4  0.189739
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/276746': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6194.48837178
delta logL = 0.161753413132

Extracting fit parameters...

4FGL J1416.1+1320
   Spectrum: PowerLaw
242    Prefactor:  1.536e+01  2.807e+01  1.000e-04  1.000e+04 ( 1.000e-13)
243        Index:  1.702e+00  8.824e-01  0.000e+00  1.000e+01 (-1.000e+00)
244        Scale:  8.905e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
458    Prefactor:  9.759e-01  1.897e-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.235e+00  2.559e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.10
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/276746/cmap_HighResolution_277430401_277689601_4FGL_J1416.1+1320_daily_bin147.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.45e-03', job_status='DONE', photon_flux_upper_limit='9.66e-08', time_completed='2021-09-09 06:15:15.922919', job_id='276746', GAL2='0.98', fit_tolerance='1e-08', EG2='1.23', EG='1.23', time_epoch_completed='1631193315.92', return_code2='0', ts='0.10', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='1.62e-01', ts2='0.43', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='147' AND source_name='4FGL J1416.1+1320' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 06:15:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0078>
Subject: Job 276746: <4FGL_J1416.1+1320_daily_bin147> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1416.1+1320_daily_bin147 214.029 13.347 277430401 277689601 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 :                                   555.25 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             290.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   776 sec.
    Turnaround time :                            777 sec.

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

