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


Performing analysis on: 4FGL_J1416.1+1320_daily_bin1224
RA = 214.029, Dec = 13.347
tmin = 556588801, tmax = 556848001
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='285322', job_status='RUN', time_executed='2021-09-09 06:28:31.548487', time_epoch_executed='1631194111.55' WHERE source_name='4FGL J1416.1+1320' and cadence='daily' and bin_id='1224'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/285322

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/285322/ft1_4FGL_J1416.1+1320_daily_bin1224.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/285322/ft2_4FGL_J1416.1+1320_daily_bin1224.fits


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

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

Done.
real 3.58
user 3.37
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/285322/ft1_filtered_4FGL_J1416.1+1320_daily_bin1224.fits evtable="EVENTS" scfile=/scratch/kocevski/285322/ft2_4FGL_J1416.1+1320_daily_bin1224.fits sctable="SC_DATA" expcube=/scratch/kocevski/285322/ltcube_556588801_556848001_4FGL_J1416.1+1320_daily_bin1224.fits outfile=/scratch/kocevski/285322/expmap_556588801_556848001_4FGL_J1416.1+1320_daily_bin1224.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/285322/ltcube_556588801_556848001_4FGL_J1416.1+1320_daily_bin1224.fits
.....................!
real 192.52
user 186.58
sys 5.28

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/285322/ft1_filtered_4FGL_J1416.1+1320_daily_bin1224.fits scfile=/scratch/kocevski/285322/ft2_4FGL_J1416.1+1320_daily_bin1224.fits outfile=/scratch/kocevski/285322/cmap_556588801_556848001_4FGL_J1416.1+1320_daily_bin1224.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.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/285322/ft1_filtered_4FGL_J1416.1+1320_daily_bin1224.fits scfile=/scratch/kocevski/285322/ft2_4FGL_J1416.1+1320_daily_bin1224.fits outfile=/scratch/kocevski/285322/cmap_HighResolution_556588801_556848001_4FGL_J1416.1+1320_daily_bin1224.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=214.029 yref=13.347 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    58.689       1.0000         .10000E-03   10000.    
     2 'Prefactor '    17.156       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10477E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .12049E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    56.587       1.0000         .10000E-03   10000.    
     6 'Prefactor '    36.365       1.0000         .10000E-03   10000.    
     7 'Prefactor '    90.829       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10185E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    95.402       1.0000         .10000E-03   10000.    
    10 'Prefactor '    17.106       1.0000         .10000E-03   10000.    
    11 'norm      '    13.536       1.0000         .10000E-03   10000.    
    12 'Prefactor '    24.675       1.0000         .10000E-03   10000.    
    13 'norm      '    16.431       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10449E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    88.898       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .19662       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1745       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4610E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1800.318     FROM MIGRAD    STATUS=CONVERGED     54 CALLS     2649 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     58.694        1.4849        .16794E-05   -.41248E-02
   2  Prefactor     17.148        1.1586        .15262E-05    .57141E-03
   3  Prefactor     .10000E-03    8.3172        .26628E-05** at limit **
   4  Prefactor     .10036E-03    60.604       -.11851E-03** at limit **
   5  Prefactor     56.579        2.0242       -.27068E-05    .53137E-02
   6  Prefactor     36.369        1.4202        .19310E-05   -.26654E-02
   7  Prefactor     90.813        3.9526       -.46897E-05    .17137E-01
   8  Prefactor     .10000E-03    6.5927       -.10580E-04** at limit **
   9  norm          95.389        3.4029       -.39025E-05    .15159E-01
  10  Prefactor     17.107        1.2033        .19620E-05   -.12051E-02
  11  norm          13.535        1.0013        .83430E-10   -.12523E-03
  12  Prefactor     24.670        1.0703       -.56977E-06    .22118E-03
  13  norm          16.430        1.0138       -.42395E-06   -.11458E-02
  14  Prefactor     .10199E-03    9.5257        .33284E-04** at limit **
  15  norm          .10002E-03    4.9632       -.27962E-05** at limit **
  16  Prefactor     .10111E-03    39.100        .10282E-03** at limit **
  17  Prefactor     .10125E-03    8.5507       -.38934E-04** at limit **
  18  Prefactor     .10003E-03    6.2059       -.13624E-04** at limit **
  19  Prefactor     .10004E-03    11.857        .21172E-04** at limit **
  20  Prefactor     88.896        1.1552       -.72008E-06    .26186E-02
  21  Normalizat    .19703        .44298        .79807E-06   -.59431E-04
  22  Prefactor     1.1743        .33927       -.26471E-05   -.15458E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 58.6936
  Prefactor  = 17.1484
  Prefactor  = 0.0001
  Prefactor  = 0.000100356
  Prefactor  = 56.5792
  Prefactor  = 36.3694
  Prefactor  = 90.8132
  Prefactor  = 0.000100004
  norm       = 95.3886
  Prefactor  = 17.1068
  norm       = 13.5352
  Prefactor  = 24.6705
  norm       = 16.4298
  Prefactor  = 0.000101993
  norm       = 0.000100022
  Prefactor  = 0.000101106
  Prefactor  = 0.000101255
  Prefactor  = 0.000100028
  Prefactor  = 0.000100037
  Prefactor  = 88.8955
  Normalizat = 0.197031
  Prefactor  = 1.17426
 **********
 **   18 **HESSE 
 **********

 FCN=   1800.318     FROM HESSE     STATUS=OK           380 CALLS     3029 TOTAL
                     EDM=   .36E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     58.694        124.97        .13092E-02   -1.4174    
   2  Prefactor     17.148        16.322        .24174E-02   -1.4880    
   3  Prefactor     .10000E-03    8.2834        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10036E-03    69.366        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     56.579        54.394        .13332E-02   -1.4202    
   6  Prefactor     36.369        51.156        .16615E-02   -1.4501    
   7  Prefactor     90.813        68.011        .10541E-02   -1.3799    
   8  Prefactor     .10000E-03    18.823        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          95.389        70.313        .10287E-02   -1.3752    
  10  Prefactor     17.107        25.509        .24210E-02   -1.4881    
  11  norm          13.535        7.7701        .27218E-02   -1.4972    
  12  Prefactor     24.670        23.377        .20160E-02   -1.4714    
  13  norm          16.430        6.8414        .24701E-02   -1.4897    
  14  Prefactor     .10199E-03    20.008        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10002E-03    10.881        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10111E-03    45.524        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10125E-03    17.967        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10003E-03    10.763        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10004E-03    12.168        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     88.896        71.600        .10654E-02   -1.3819    
  21  Normalizat    .19703        5.7252        .13588       -1.2963    
  22  Prefactor     1.1743        .96691        .35263E-01   -.87127    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.57627e-06
Minuit parameter uncertainties:
  1  125.536
  2  16.3261
  3  7.16215e-05
  4  0.00994968
  5  54.4422
  6  51.218
  7  68.069
  8  0.000517682
  9  70.3742
  10  25.5255
  11  7.77066
  12  23.3858
  13  6.84176
  14  0.0126343
  15  0.000968321
  16  0.0142034
  17  0.00949814
  18  0.0011023
  19  0.00133947
  20  71.6691
  21  1.50419
  22  0.982072
Done.

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

Extracting fit parameters...

4FGL J1416.1+1320
   Spectrum: PowerLaw
242    Prefactor:  9.081e+01  6.807e+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:  1.174e+00  9.821e-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.970e-01  1.504e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.32
Ra Dec: 214.029 13.347
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 1.19e-07 +/- 8.89e-08
Energy Flux (Fixed Index): 4.03e-05 +/- 3.02e-05

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) = 1800.29575204
delta logL = 0.0220760132158

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1800.29372411
delta logL = 0.0241039420625

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    99.527       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2249       1.0000          .0000       10.000    
     3 'Normalizat'    .21284       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1667       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=   1800.294     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      289 TOTAL
                     EDM=   .17E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     99.541        79.194        .20148E-03    .30893E-05
   2  Index         2.2248        .66978        .52072E-02    .35980E-05
   3  Normalizat    .21271        .45156        .57569E-03    .25968E-05
   4  Prefactor     1.1668        .34159        .19103E-03   -.43592E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 99.5411
  Index      = 2.22478
  Normalizat = 0.212709
  Prefactor  = 1.16683
 **********
 **   18 **HESSE 
 **********

 FCN=   1800.294     FROM HESSE     STATUS=OK            25 CALLS      314 TOTAL
                     EDM=   .16E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     99.541        78.231        .80593E-05   -1.3709    
   2  Index         2.2248        .66118        .20829E-03   -.58842    
   3  Normalizat    .21271        .45067        .23028E-04   -1.2849    
   4  Prefactor     1.1668        .34098        .76414E-05   -.87358    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.59376e-12
Minuit parameter uncertainties:
  1  78.312
  2  0.663996
  3  0.458741
  4  0.341622
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/285322': 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) = 1800.29372402
delta logL = 0.0241040401668

Extracting fit parameters...

4FGL J1416.1+1320
   Spectrum: PowerLaw
242    Prefactor:  9.954e+01  7.831e+01  1.000e-04  1.000e+04 ( 1.000e-13)
243        Index:  2.225e+00  6.640e-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:  1.167e+00  3.416e-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:  2.127e-01  4.587e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.36
Ra Dec: 214.029 13.347
Photon Index (Free Index): 2.22 +/- 0.66
Photon Flux (Free Index): 1.05e-07 +/- 9.53e-08
Energy Flux (Free Index): 4.53e-05 +/- 4.24e-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/285322/cmap_HighResolution_556588801_556848001_4FGL_J1416.1+1320_daily_bin1224.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.19e-07', energy_flux2='4.53e-05', photon_flux_error='8.89e-08', dlogl='2.41e-02', energy_flux='4.03e-05', photon_flux2='1.05e-07', job_status='DONE', time_completed='2021-09-09 06:34:52.124897', photon_index_error2='0.66', photon_index2='2.22', ts='6.32', fit_tolerance='1e-08', GAL='1.17', photon_index_error='0.00', energy_flux_error2='4.24e-05', EG='0.20', time_epoch_completed='1631194492.12', return_code='0', job_id='285322', GAL2='1.17', EG2='0.21', return_code2='0', energy_flux_error='3.02e-05', photon_flux_error2='9.53e-08', ts2='6.36', photon_index='2.37' WHERE bin_id='1224' AND source_name='4FGL J1416.1+1320' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 06:34:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0276>
Subject: Job 285322: <4FGL_J1416.1+1320_daily_bin1224> in cluster <slac> Done

Job <4FGL_J1416.1+1320_daily_bin1224> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep  9 06:26:52 2021
Job was executed on host(s) <bullet0276>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 06:26:53 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:26:53 2021
Terminated at Thu Sep  9 06:34:52 2021
Results reported at Thu Sep  9 06:34:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1416.1+1320_daily_bin1224 214.029 13.347 556588801 556848001 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 :                                   375.37 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             350.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   479 sec.
    Turnaround time :                            480 sec.

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

