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


Performing analysis on: 4FGL_J1416.1+1320_daily_bin923
RA = 214.029, Dec = 13.347
tmin = 478569601, tmax = 478828801
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='283560', job_status='RUN', time_executed='2021-09-09 06:24:07.696957', time_epoch_executed='1631193847.7' WHERE source_name='4FGL J1416.1+1320' and cadence='daily' and bin_id='923'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/283560

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/283560/ft1_4FGL_J1416.1+1320_daily_bin923.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/283560/ft2_4FGL_J1416.1+1320_daily_bin923.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/283560/ft1_4FGL_J1416.1+1320_daily_bin923.fits outfile=/scratch/kocevski/283560/ft1_filteredMKT_4FGL_J1416.1+1320_daily_bin923.fits ra=214.029 dec=13.347 rad=12.0 tmin=478569601.0 tmax=478828801.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.27
user 3.23
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/283560/ft1_filtered_4FGL_J1416.1+1320_daily_bin923.fits evtable="EVENTS" scfile=/scratch/kocevski/283560/ft2_4FGL_J1416.1+1320_daily_bin923.fits sctable="SC_DATA" expcube=/scratch/kocevski/283560/ltcube_478569601_478828801_4FGL_J1416.1+1320_daily_bin923.fits outfile=/scratch/kocevski/283560/expmap_478569601_478828801_4FGL_J1416.1+1320_daily_bin923.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/283560/ltcube_478569601_478828801_4FGL_J1416.1+1320_daily_bin923.fits
.....................!
real 200.48
user 185.09
sys 5.03

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/283560/ft1_filtered_4FGL_J1416.1+1320_daily_bin923.fits scfile=/scratch/kocevski/283560/ft2_4FGL_J1416.1+1320_daily_bin923.fits outfile=/scratch/kocevski/283560/cmap_478569601_478828801_4FGL_J1416.1+1320_daily_bin923.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 2.45
user 0.38
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/283560/ft1_filtered_4FGL_J1416.1+1320_daily_bin923.fits scfile=/scratch/kocevski/283560/ft2_4FGL_J1416.1+1320_daily_bin923.fits outfile=/scratch/kocevski/283560/cmap_HighResolution_478569601_478828801_4FGL_J1416.1+1320_daily_bin923.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.49
user 0.37
sys 0.20

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.7797       1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.0983       1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.3665       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    36.134       1.0000         .10000E-03   10000.    
     7 'Prefactor '    31.236       1.0000         .10000E-03   10000.    
     8 'Prefactor '    35.510       1.0000         .10000E-03   10000.    
     9 'norm      '    .10744E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .37938E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    3.2906       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    13.244       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.9338       1.0000         .10000E-03   10000.    
    15 'norm      '    .25619E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    17.191       1.0000         .10000E-03   10000.    
    18 'Prefactor '    16.422       1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.2731       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0392       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .96509       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=   6113.776     FROM MIGRAD    STATUS=CONVERGED    481 CALLS     2713 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    20.813       -.52921E-05** at limit **
   2  Prefactor     3.7799        4.0244       -.19093E-05   -.33291E-03
   3  Prefactor     5.0999        4.8665        .12163E-05   -.26724E-03
   4  Prefactor     7.3678        9.7712        .59919E-06   -.63856E-04
   5  Prefactor     .10000E-03    4.0677        .99772E-07** at limit **
   6  Prefactor     36.186        27.167        .12207E-04   -.20625E-04
   7  Prefactor     31.228        31.903       -.18585E-05   -.78927E-04
   8  Prefactor     35.547        29.615        .12910E-04   -.69706E-04
   9  norm          .10000E-03    11.703       -.43827E-06** at limit **
  10  Prefactor     .10000E-03    5.1834        .71210E-06** at limit **
  11  norm          3.2909        2.2239        .10472E-06   -.30045E-04
  12  Prefactor     .10000E-03    6.1591        .19599E-06** at limit **
  13  norm          13.244        3.9464       -.46500E-06   -.19837E-03
  14  Prefactor     5.9301        35.872       -.16759E-05   -.36059E-03
  15  norm          .10269E-03    17.440        .39552E-05** at limit **
  16  Prefactor     .10000E-03    19.485        .50142E-05** at limit **
  17  Prefactor     17.198        27.087        .46128E-05   -.11598E-03
  18  Prefactor     16.424        20.920        .14211E-05   -.80111E-04
  19  Prefactor     7.2761        24.732        .34892E-05   -.42679E-04
  20  Prefactor     .10000E-03    26.664       -.10590E-06** at limit **
  21  Normalizat    1.0392        .21280       -.34732E-05   -.22892E-03
  22  Prefactor     .96495        .15758       -.69847E-06   -.45569E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 3.77988
  Prefactor  = 5.09986
  Prefactor  = 7.36782
  Prefactor  = 0.0001
  Prefactor  = 36.1856
  Prefactor  = 31.2284
  Prefactor  = 35.5468
  norm       = 0.0001
  Prefactor  = 0.000100002
  norm       = 3.29088
  Prefactor  = 0.0001
  norm       = 13.2441
  Prefactor  = 5.9301
  norm       = 0.000102692
  Prefactor  = 0.0001
  Prefactor  = 17.1977
  Prefactor  = 16.424
  Prefactor  = 7.27615
  Prefactor  = 0.0001
  Normalizat = 1.03924
  Prefactor  = 0.96495
 **********
 **   18 **HESSE 
 **********

 FCN=   6113.776     FROM HESSE     STATUS=OK           352 CALLS     3065 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    20.818        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.7799        4.0325        .15584E-03   -1.5319    
   3  Prefactor     5.0999        4.8548        .16205E-03   -1.5256    
   4  Prefactor     7.3678        9.7677        .14777E-03   -1.5165    
   5  Prefactor     .10000E-03    4.0793        .15399E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     36.186        27.144        .66670E-04   -1.4504    
   7  Prefactor     31.228        31.669        .71692E-04   -1.4590    
   8  Prefactor     35.547        29.614        .67251E-04   -1.4515    
   9  norm          .10000E-03    11.730        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    14.246        .34008E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.2909        2.2249        .93255E-04   -1.5345    
  12  Prefactor     .10000E-03    6.2850        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          13.244        3.9489        .81535E-04   -1.4980    
  14  Prefactor     5.9301        26.034        .16485E-03   -1.5221    
  15  norm          .10269E-03    114.88        .52332E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    19.588        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     17.198        27.027        .96599E-04   -1.4878    
  18  Prefactor     16.424        20.885        .98835E-04   -1.4897    
  19  Prefactor     7.2761        24.666        .14873E-03   -1.5168    
  20  Prefactor     .10000E-03    26.680        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.0392        .25676        .28556E-03   -.91727    
  22  Prefactor     .96495        .19104        .22168E-03   -.93907    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.27086e-08
Minuit parameter uncertainties:
  1  2.09779e-05
  2  4.03278
  3  4.8552
  4  9.76981
  5  1.55676e-05
  6  27.1536
  7  31.686
  8  29.6266
  9  0.000102981
  10  0.00032343
  11  2.22493
  12  4.97585e-05
  13  3.94901
  14  24.8685
  15  0.0352409
  16  3.0943e-05
  17  27.046
  18  20.8939
  19  24.7005
  20  2.44545e-05
  21  0.257067
  22  0.191173
Done.

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

Extracting fit parameters...

4FGL J1416.1+1320
   Spectrum: PowerLaw
242    Prefactor:  3.123e+01  3.169e+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.650e-01  1.912e-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.039e+00  2.571e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.31
Ra Dec: 214.029 13.347
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 4.08e-08 +/- 4.14e-08
Energy Flux (Fixed Index): 1.39e-05 +/- 1.41e-05

TS (Fixed Index): 1.31
Ra Dec: 214.029 13.347
Photon Flux Upper Limit: 1.29e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.93e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/283560/likelihoodResults_478569601_478828801_4FGL_J1416.1+1320_daily_bin923.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) = 6113.77457211
delta logL = 0.000981963610684

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6113.77415485
delta logL = 0.00139922643666

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    30.217       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4095       1.0000          .0000       10.000    
     3 'Normalizat'    1.0380       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96569       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=   6113.774     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      271 TOTAL
                     EDM=   .49E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     30.234        38.024        .72887E-04    .55996E-04
   2  Index         2.4090        .71591        .84358E-02   -.14483E-04
   3  Normalizat    1.0379        .25202        .28573E-03   -.75479E-04
   4  Prefactor     .96570        .18953        .22160E-03   -.40324E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 30.2342
  Index      = 2.40905
  Normalizat = 1.03789
  Prefactor  = 0.965698
 **********
 **   18 **HESSE 
 **********

 FCN=   6113.774     FROM HESSE     STATUS=OK            25 CALLS      296 TOTAL
                     EDM=   .64E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     30.234        36.298        .29155E-05   -1.4608    
   2  Index         2.4090        .68342        .33743E-03   -.54473    
   3  Normalizat    1.0379        .25220        .11429E-04   -.91772    
   4  Prefactor     .96570        .18963        .88640E-05   -.93882    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.42887e-11
Minuit parameter uncertainties:
  1  36.3246
  2  0.686365
  3  0.252492
  4  0.189757
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/283560': 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) = 6113.77415436
delta logL = 0.00139971288172

Extracting fit parameters...

4FGL J1416.1+1320
   Spectrum: PowerLaw
242    Prefactor:  3.023e+01  3.632e+01  1.000e-04  1.000e+04 ( 1.000e-13)
243        Index:  2.409e+00  6.864e-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.657e-01  1.898e-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.038e+00  2.525e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.31
Ra Dec: 214.029 13.347
Photon Index (Free Index): 2.41 +/- 0.69
Photon Flux (Free Index): 4.17e-08 +/- 4.46e-08
Energy Flux (Free Index): 1.35e-05 +/- 1.54e-05

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/283560/cmap_HighResolution_478569601_478828801_4FGL_J1416.1+1320_daily_bin923.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.93e-03', comment='SUCCESS', photon_flux='4.08e-08', energy_flux2='1.35e-05', photon_flux_error='4.14e-08', dlogl='1.40e-03', energy_flux='1.39e-05', photon_flux2='4.17e-08', job_status='DONE', time_completed='2021-09-09 06:34:41.353260', photon_index_error2='0.69', photon_index2='2.41', ts='1.31', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', photon_flux_upper_limit='1.29e-07', energy_flux_error2='1.54e-05', EG='1.04', time_epoch_completed='1631194481.35', return_code='0', job_id='283560', GAL2='0.97', EG2='1.04', return_code2='0', energy_flux_error='1.41e-05', photon_flux_error2='4.46e-08', ts2='1.31', photon_index='2.37' WHERE bin_id='923' AND source_name='4FGL J1416.1+1320' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 06:34:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0016>
Subject: Job 283560: <4FGL_J1416.1+1320_daily_bin923> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1416.1+1320_daily_bin923 214.029 13.347 478569601 478828801 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 :                                   579.15 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             239.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   804 sec.
    Turnaround time :                            807 sec.

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

