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


Performing analysis on: 4FGL_J1416.1+1320_daily_bin990
RA = 214.029, Dec = 13.347
tmin = 495936001, tmax = 496195201
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='283661', job_status='RUN', time_executed='2021-09-09 06:23:16.345757', time_epoch_executed='1631193796.35' WHERE source_name='4FGL J1416.1+1320' and cadence='daily' and bin_id='990'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/283661

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/283661/ft1_4FGL_J1416.1+1320_daily_bin990.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/283661/ft2_4FGL_J1416.1+1320_daily_bin990.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/283661/ft1_4FGL_J1416.1+1320_daily_bin990.fits outfile=/scratch/kocevski/283661/ft1_filteredMKT_4FGL_J1416.1+1320_daily_bin990.fits ra=214.029 dec=13.347 rad=12.0 tmin=495936001.0 tmax=496195201.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.63
user 3.28
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/283661/ft1_filtered_4FGL_J1416.1+1320_daily_bin990.fits" evtable="EVENTS" scfile=/scratch/kocevski/283661/ft2_4FGL_J1416.1+1320_daily_bin990.fits sctable="SC_DATA" outfile=/scratch/kocevski/283661/ltcube_495936001_496195201_4FGL_J1416.1+1320_daily_bin990.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/283661/ft2_4FGL_J1416.1+1320_daily_bin990.fits
.....................!
real 13.67
user 11.45
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/283661/ft1_filtered_4FGL_J1416.1+1320_daily_bin990.fits evtable="EVENTS" scfile=/scratch/kocevski/283661/ft2_4FGL_J1416.1+1320_daily_bin990.fits sctable="SC_DATA" expcube=/scratch/kocevski/283661/ltcube_495936001_496195201_4FGL_J1416.1+1320_daily_bin990.fits outfile=/scratch/kocevski/283661/expmap_495936001_496195201_4FGL_J1416.1+1320_daily_bin990.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/283661/ltcube_495936001_496195201_4FGL_J1416.1+1320_daily_bin990.fits
.....................!
real 197.89
user 186.02
sys 3.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/283661/ft1_filtered_4FGL_J1416.1+1320_daily_bin990.fits scfile=/scratch/kocevski/283661/ft2_4FGL_J1416.1+1320_daily_bin990.fits outfile=/scratch/kocevski/283661/cmap_495936001_496195201_4FGL_J1416.1+1320_daily_bin990.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.84
user 0.37
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.5630       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .36978E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.3801       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11195E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.6034       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10275E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    27.238       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    16.262       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.7872       1.0000         .10000E-03   10000.    
    11 'norm      '    7.8659       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    4.7055       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11231E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10052E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    39.263       1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.8448       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.4084       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10468E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    22.849       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.7044       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .67446       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=   6745.316     FROM MIGRAD    STATUS=CONVERGED    486 CALLS     2381 TOTAL
                     EDM=   .64E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.5638        80.311        .11071E-05   -.39600E-05
   2  Prefactor     .33730E-01    2.0042        .16986E-06   -.17673E-03
   3  Prefactor     3.3802        3.5008        .33832E-07   -.38129E-04
   4  Prefactor     .10000E-03    52.573        .52553E-05** at limit **
   5  Prefactor     1.6073        25.180       -.33537E-05   -.11290E-03
   6  Prefactor     .10000E-03    49.020       -.54698E-05** at limit **
   7  Prefactor     27.238        29.369       -.23787E-06   -.19581E-04
   8  Prefactor     .10000E-03    7.1630       -.36062E-07** at limit **
   9  norm          16.261        16.710        .13497E-06    .10410E-04
  10  Prefactor     3.7864        4.5398        .39487E-06   -.73824E-03
  11  norm          7.8659        3.2190        .17142E-07    .17474E-04
  12  Prefactor     .10000E-03    2.8784        .16652E-07** at limit **
  13  norm          4.7053        3.2957       -.98811E-07   -.74457E-04
  14  Prefactor     .10000E-03    105.28        .56444E-06** at limit **
  15  norm          .10000E-03    13.100        .66049E-07** at limit **
  16  Prefactor     39.281        31.761        .39518E-05    .21366E-03
  17  Prefactor     9.8310        25.441       -.13616E-05   -.34784E-04
  18  Prefactor     3.4064        9.9342        .26620E-05   -.63695E-03
  19  Prefactor     .10000E-03    41.148        .34574E-06** at limit **
  20  Prefactor     22.855        34.183        .14209E-05    .52756E-04
  21  Normalizat    1.7044        .21469       -.14664E-06   -.32478E-04
  22  Prefactor     .67442        .14841       -.43499E-06   -.23771E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.56382
  Prefactor  = 0.0337297
  Prefactor  = 3.38016
  Prefactor  = 0.000100001
  Prefactor  = 1.60726
  Prefactor  = 0.000100001
  Prefactor  = 27.2377
  Prefactor  = 0.0001
  norm       = 16.2609
  Prefactor  = 3.78637
  norm       = 7.86594
  Prefactor  = 0.0001
  norm       = 4.70526
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 39.2814
  Prefactor  = 9.83097
  Prefactor  = 3.40638
  Prefactor  = 0.000100001
  Prefactor  = 22.8553
  Normalizat = 1.70437
  Prefactor  = 0.674417
 **********
 **   18 **HESSE 
 **********

 FCN=   6745.316     FROM HESSE     STATUS=OK           352 CALLS     2733 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.5638        80.350        .21411E-03   -1.5330    
   2  Prefactor     .33730E-01    4.1579        .39291E-01   -1.5671    
   3  Prefactor     3.3802        3.5003        .15175E-03   -1.5340    
   4  Prefactor     .10000E-03    55.041        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.6073        26.406        .33473E-03   -1.5454    
   6  Prefactor     .10000E-03    50.195        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     27.238        29.384        .76760E-04   -1.4664    
   8  Prefactor     .10000E-03    7.1665        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          16.261        16.714        .99319E-04   -1.4901    
  10  Prefactor     3.7864        4.6880        .96045E-03   -1.5319    
  11  norm          7.8659        3.2196        .91571E-04   -1.5147    
  12  Prefactor     .10000E-03    2.9044        .13603E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          4.7053        3.2968        .11931E-03   -1.5274    
  14  Prefactor     .10000E-03    107.05        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    13.138        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     39.281        32.720        .63967E-04   -1.4454    
  17  Prefactor     9.8310        25.451        .12771E-03   -1.5081    
  18  Prefactor     3.4064        14.014        .10956E-02   -1.5339    
  19  Prefactor     .10000E-03    41.381        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     22.855        34.429        .83797E-04   -1.4751    
  21  Normalizat    1.7044        .25734        .25523E-03   -.72187    
  22  Prefactor     .67442        .17606        .26900E-03   -1.0454    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.10336e-09
Minuit parameter uncertainties:
  1  33.8951
  2  0.747931
  3  3.50048
  4  0.000458097
  5  13.0358
  6  0.000403453
  7  29.3998
  8  3.20349e-07
  9  16.7184
  10  4.68848
  11  3.21969
  12  2.80262e-06
  13  3.29691
  14  0.000173342
  15  1.03548e-05
  16  32.7354
  17  25.4795
  18  13.8238
  19  0.000358478
  20  34.4588
  21  0.257545
  22  0.176206
Done.

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

Extracting fit parameters...

4FGL J1416.1+1320
   Spectrum: PowerLaw
242    Prefactor:  2.724e+01  2.940e+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:  6.744e-01  1.762e-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.704e+00  2.575e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.25
Ra Dec: 214.029 13.347
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 3.56e-08 +/- 3.84e-08
Energy Flux (Fixed Index): 1.21e-05 +/- 1.31e-05

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

Saving results to:
/scratch/kocevski/283661/likelihoodResults_495936001_496195201_4FGL_J1416.1+1320_daily_bin990.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) = 6745.12461572
delta logL = 0.191534545989

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6745.0957887
delta logL = 0.220361559436

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    35.054       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9400       1.0000          .0000       10.000    
     3 'Normalizat'    1.7193       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .66620       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=   6745.096     FROM MIGRAD    STATUS=CONVERGED     80 CALLS      244 TOTAL
                     EDM=   .85E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     35.054        34.572        .67686E-04   -.31066E-03
   2  Index         1.9400        .59227        .92911E-02   -.14872E-03
   3  Normalizat    1.7193        .24788        .25432E-03    .49977E-04
   4  Prefactor     .66619        .17445        .27042E-03    .53770E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 35.0543
  Index      = 1.94004
  Normalizat = 1.7193
  Prefactor  = 0.666188
 **********
 **   18 **HESSE 
 **********

 FCN=   6745.096     FROM HESSE     STATUS=OK            23 CALLS      267 TOTAL
                     EDM=   .88E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     35.054        34.601        .13537E-04   -1.4523    
   2  Index         1.9400        .59280        .37164E-03   -.65858    
   3  Normalizat    1.7193        .24807        .50864E-04   -.71789    
   4  Prefactor     .66619        .17460        .10817E-04   -1.0487    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.75207e-10
Minuit parameter uncertainties:
  1  34.6212
  2  0.595046
  3  0.24825
  4  0.174739
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/283661': 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) = 6745.0957887
delta logL = 0.220361565818

Extracting fit parameters...

4FGL J1416.1+1320
   Spectrum: PowerLaw
242    Prefactor:  3.505e+01  3.462e+01  1.000e-04  1.000e+04 ( 1.000e-13)
243        Index:  1.940e+00  5.950e-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:  6.662e-01  1.747e-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.719e+00  2.482e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.70
Ra Dec: 214.029 13.347
Photon Index (Free Index): 1.94 +/- 0.60
Photon Flux (Free Index): 2.59e-08 +/- 3.16e-08
Energy Flux (Free Index): 2.09e-05 +/- 2.72e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/283661/cmap_HighResolution_495936001_496195201_4FGL_J1416.1+1320_daily_bin990.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.51e-03', comment='SUCCESS', photon_flux='3.56e-08', energy_flux2='2.09e-05', photon_flux_error='3.84e-08', dlogl='2.20e-01', energy_flux='1.21e-05', photon_flux2='2.59e-08', job_status='DONE', time_completed='2021-09-09 06:33:30.874239', photon_index_error2='0.60', photon_index2='1.94', ts='1.25', fit_tolerance='1e-08', GAL='0.67', photon_index_error='0.00', photon_flux_upper_limit='1.23e-07', energy_flux_error2='2.72e-05', EG='1.70', time_epoch_completed='1631194410.87', return_code='0', job_id='283661', GAL2='0.67', EG2='1.72', return_code2='0', energy_flux_error='1.31e-05', photon_flux_error2='3.16e-08', ts2='1.70', photon_index='2.37' WHERE bin_id='990' AND source_name='4FGL J1416.1+1320' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 06:33:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0107>
Subject: Job 283661: <4FGL_J1416.1+1320_daily_bin990> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1416.1+1320_daily_bin990 214.029 13.347 495936001 496195201 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 :                                   584.17 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             256.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   728 sec.
    Turnaround time :                            729 sec.

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

