/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 75 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 = 7365
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1416.1+1320_daily_bin25
RA = 214.029, Dec = 13.347
tmin = 245808001, tmax = 246067201
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='276559', job_status='RUN', time_executed='2021-09-09 06:03:45.840220', time_epoch_executed='1631192625.84' WHERE source_name='4FGL J1416.1+1320' and cadence='daily' and bin_id='25'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/276559

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

Retrieving the FT1 file...

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

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

Retrieving 49 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/276559/ft1_4FGL_J1416.1+1320_daily_bin25.fits


Retrieving the FT1 file...

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

Retrieving 49 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/276559/ft2_4FGL_J1416.1+1320_daily_bin25.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/276559/ft1_4FGL_J1416.1+1320_daily_bin25.fits outfile=/scratch/kocevski/276559/ft1_filteredMKT_4FGL_J1416.1+1320_daily_bin25.fits ra=214.029 dec=13.347 rad=12.0 tmin=245808001.0 tmax=246067201.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 1.91
user 1.27
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/276559/ft1_filtered_4FGL_J1416.1+1320_daily_bin25.fits" evtable="EVENTS" scfile=/scratch/kocevski/276559/ft2_4FGL_J1416.1+1320_daily_bin25.fits sctable="SC_DATA" outfile=/scratch/kocevski/276559/ltcube_245808001_246067201_4FGL_J1416.1+1320_daily_bin25.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/276559/ft2_4FGL_J1416.1+1320_daily_bin25.fits
.....................!
real 14.52
user 12.80
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/276559/ft1_filtered_4FGL_J1416.1+1320_daily_bin25.fits evtable="EVENTS" scfile=/scratch/kocevski/276559/ft2_4FGL_J1416.1+1320_daily_bin25.fits sctable="SC_DATA" expcube=/scratch/kocevski/276559/ltcube_245808001_246067201_4FGL_J1416.1+1320_daily_bin25.fits outfile=/scratch/kocevski/276559/expmap_245808001_246067201_4FGL_J1416.1+1320_daily_bin25.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/276559/ltcube_245808001_246067201_4FGL_J1416.1+1320_daily_bin25.fits
.....................!
real 193.19
user 185.21
sys 4.19

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/276559/ft1_filtered_4FGL_J1416.1+1320_daily_bin25.fits scfile=/scratch/kocevski/276559/ft2_4FGL_J1416.1+1320_daily_bin25.fits outfile=/scratch/kocevski/276559/cmap_245808001_246067201_4FGL_J1416.1+1320_daily_bin25.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.73
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/276559/ft1_filtered_4FGL_J1416.1+1320_daily_bin25.fits scfile=/scratch/kocevski/276559/ft2_4FGL_J1416.1+1320_daily_bin25.fits outfile=/scratch/kocevski/276559/cmap_HighResolution_245808001_246067201_4FGL_J1416.1+1320_daily_bin25.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.75
user 0.39
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.1437       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10216E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.1817       1.0000         .10000E-03   10000.    
     7 'Prefactor '    31.250       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    16.245       1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.9312       1.0000         .10000E-03   10000.    
    11 'norm      '    6.1235       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.8715       1.0000         .10000E-03   10000.    
    14 'Prefactor '    33.605       1.0000         .10000E-03   10000.    
    15 'norm      '    .10138E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    32.772       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2894       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .98292       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=   10522.52     FROM MIGRAD    STATUS=CONVERGED    457 CALLS     2360 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.273        .29836E-05** at limit **
   2  Prefactor     1.1433        2.4594       -.96644E-06   -.15725E-02
   3  Prefactor     .10000E-03    2.8941        .10222E-07** at limit **
   4  Prefactor     .10000E-03    16.445       -.39973E-06** at limit **
   5  Prefactor     .10000E-03    8.5463        .44201E-06** at limit **
   6  Prefactor     2.1683        10.192       -.11003E-05   -.20336E-03
   7  Prefactor     31.249        22.389       -.45492E-06    .30943E-04
   8  Prefactor     .10000E-03    5.3237       -.61324E-06** at limit **
   9  norm          16.244        14.808       -.27369E-06    .17629E-04
  10  Prefactor     8.9319        5.9440       -.32719E-07   -.55383E-04
  11  norm          6.1235        2.3944        .31215E-08    .17004E-04
  12  Prefactor     .10000E-03    3.1895       -.22108E-07** at limit **
  13  norm          1.8714        1.9341       -.12351E-06   -.66821E-03
  14  Prefactor     33.609        26.747        .47564E-05   -.22146E-03
  15  norm          .10000E-03    16.627       -.13831E-05** at limit **
  16  Prefactor     .10000E-03    12.062       -.61977E-06** at limit **
  17  Prefactor     .10000E-03    11.667       -.15746E-05** at limit **
  18  Prefactor     .10000E-03    3.8096        .76391E-07** at limit **
  19  Prefactor     .10000E-03    5.4201        .59517E-06** at limit **
  20  Prefactor     32.768        29.698       -.40513E-05    .15890E-03
  21  Normalizat    1.2894        .16833        .84746E-07    .48001E-04
  22  Prefactor     .98294        .12502        .26999E-07    .59562E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 1.14331
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.16829
  Prefactor  = 31.2495
  Prefactor  = 0.0001
  norm       = 16.2444
  Prefactor  = 8.93193
  norm       = 6.12353
  Prefactor  = 0.0001
  norm       = 1.87145
  Prefactor  = 33.6089
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 32.7683
  Normalizat = 1.28941
  Prefactor  = 0.982935
 **********
 **   18 **HESSE 
 **********

 FCN=   10522.52     FROM HESSE     STATUS=OK           336 CALLS     2696 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.141        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.1433        2.6707        .24858E-03   -1.5494    
   3  Prefactor     .10000E-03    2.9841        .34065E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    16.775        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    8.6746        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.1683        10.395        .27870E-03   -1.5413    
   7  Prefactor     31.249        22.419        .71676E-04   -1.4589    
   8  Prefactor     .10000E-03    5.3266        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          16.244        14.813        .99372E-04   -1.4902    
  10  Prefactor     8.9319        5.9400        .13412E-03   -1.5110    
  11  norm          6.1235        2.3948        .96516E-04   -1.5213    
  12  Prefactor     .10000E-03    3.2792        .35744E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.8714        1.9298        .14064E-03   -1.5434    
  14  Prefactor     33.609        25.772        .69125E-04   -1.4548    
  15  norm          .10000E-03    16.874        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    12.102        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    11.690        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    3.8135        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.4210        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     32.768        29.232        .69996E-04   -1.4562    
  21  Normalizat    1.2894        .20488        .27952E-03   -.83883    
  22  Prefactor     .98294        .15234        .23310E-03   -.93301    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.10097e-09
Minuit parameter uncertainties:
  1  0.000115809
  2  2.67095
  3  1.92658e-06
  4  2.25389e-05
  5  1.63858e-05
  6  9.49754
  7  22.4254
  8  1.27788e-05
  9  14.8161
  10  5.94034
  11  2.39479
  12  2.76544e-06
  13  1.9299
  14  25.7805
  15  0.000223049
  16  3.62572e-05
  17  3.80854e-05
  18  3.1545e-06
  19  4.88326e-06
  20  29.245
  21  0.205006
  22  0.152407
Done.

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

Extracting fit parameters...

4FGL J1416.1+1320
   Spectrum: PowerLaw
242    Prefactor:  3.125e+01  2.243e+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.829e-01  1.524e-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.289e+00  2.050e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.16
Ra Dec: 214.029 13.347
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 4.08e-08 +/- 2.93e-08
Energy Flux (Fixed Index): 1.39e-05 +/- 9.96e-06

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) = 10522.5077264
delta logL = 0.0139378714775

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10522.5070308
delta logL = 0.0146335273985

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    31.170       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2334       1.0000          .0000       10.000    
     3 'Normalizat'    1.2982       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97967       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.

 FCN=   10522.51     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      235 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     31.122        576.85        .17942E-02    .72160E-04
   2  Index         2.2309        5.9811        .24599        .19227E-04
   3  Normalizat    1.2984        .10537        .63013E-01    .19546E-03
   4  Prefactor     .97964        .49777E-01    .46013E-01    .24365E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 31.1217
  Index      = 2.23086
  Normalizat = 1.2984
  Prefactor  = 0.979644
 **********
 **   18 **HESSE 
 **********

 FCN=   10522.51     FROM HESSE     STATUS=OK            31 CALLS      266 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     31.122        23.785        .71767E-04   -1.4592    
   2  Index         2.2309        .84782        .11143E-01   -.58696    
   3  Normalizat    1.2984        .21037        .27872E-03   -.83614    
   4  Prefactor     .97964        .15218        .23347E-03   -.93411    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.78108e-10
Minuit parameter uncertainties:
  1  23.7918
  2  0.853797
  3  0.210513
  4  0.152248
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/276559': 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) = 10522.5070253
delta logL = 0.0146389586916

Extracting fit parameters...

4FGL J1416.1+1320
   Spectrum: PowerLaw
242    Prefactor:  3.112e+01  2.379e+01  1.000e-04  1.000e+04 ( 1.000e-13)
243        Index:  2.231e+00  8.538e-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.796e-01  1.522e-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.298e+00  2.105e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.15
Ra Dec: 214.029 13.347
Photon Index (Free Index): 2.23 +/- 0.85
Photon Flux (Free Index): 3.32e-08 +/- 4.97e-08
Energy Flux (Free Index): 1.41e-05 +/- 1.11e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/276559/cmap_HighResolution_245808001_246067201_4FGL_J1416.1+1320_daily_bin25.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.08e-08', energy_flux2='1.41e-05', photon_flux_error='2.93e-08', dlogl='1.46e-02', energy_flux='1.39e-05', photon_flux2='3.32e-08', job_status='DONE', time_completed='2021-09-09 06:15:01.155082', photon_index_error2='0.85', photon_index2='2.23', ts='6.16', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', energy_flux_error2='1.11e-05', EG='1.29', time_epoch_completed='1631193301.16', return_code='0', job_id='276559', GAL2='0.98', EG2='1.30', return_code2='0', energy_flux_error='9.96e-06', photon_flux_error2='4.97e-08', ts2='6.15', photon_index='2.37' WHERE bin_id='25' AND source_name='4FGL J1416.1+1320' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 06:15:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0021>
Subject: Job 276559: <4FGL_J1416.1+1320_daily_bin25> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1416.1+1320_daily_bin25 214.029 13.347 245808001 246067201 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 :                                   659.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             320.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   778 sec.
    Turnaround time :                            780 sec.

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

