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


Performing analysis on: 4FGL_J1416.1+1320_daily_bin667
RA = 214.029, Dec = 13.347
tmin = 412214401, tmax = 412473601
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='282174', job_status='RUN', time_executed='2021-09-09 06:18:22.330134', time_epoch_executed='1631193502.33' WHERE source_name='4FGL J1416.1+1320' and cadence='daily' and bin_id='667'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/282174

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/282174/ft1_4FGL_J1416.1+1320_daily_bin667.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/282174/ft2_4FGL_J1416.1+1320_daily_bin667.fits


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

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

Done.
real 4.42
user 3.20
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/282174/ft1_filtered_4FGL_J1416.1+1320_daily_bin667.fits evtable="EVENTS" scfile=/scratch/kocevski/282174/ft2_4FGL_J1416.1+1320_daily_bin667.fits sctable="SC_DATA" expcube=/scratch/kocevski/282174/ltcube_412214401_412473601_4FGL_J1416.1+1320_daily_bin667.fits outfile=/scratch/kocevski/282174/expmap_412214401_412473601_4FGL_J1416.1+1320_daily_bin667.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/282174/ltcube_412214401_412473601_4FGL_J1416.1+1320_daily_bin667.fits
.....................!
real 196.02
user 185.20
sys 4.65

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/282174/ft1_filtered_4FGL_J1416.1+1320_daily_bin667.fits scfile=/scratch/kocevski/282174/ft2_4FGL_J1416.1+1320_daily_bin667.fits outfile=/scratch/kocevski/282174/cmap_412214401_412473601_4FGL_J1416.1+1320_daily_bin667.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.83
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/282174/ft1_filtered_4FGL_J1416.1+1320_daily_bin667.fits scfile=/scratch/kocevski/282174/ft2_4FGL_J1416.1+1320_daily_bin667.fits outfile=/scratch/kocevski/282174/cmap_HighResolution_412214401_412473601_4FGL_J1416.1+1320_daily_bin667.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.18
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    76.021       1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.4299       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    13.478       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11609E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    81.374       1.0000         .10000E-03   10000.    
     7 'Prefactor '    117.38       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .17116E-01   1.0000         .10000E-03   10000.    
     9 'norm      '    .10047E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10273E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.9531       1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.1375       1.0000         .10000E-03   10000.    
    13 'norm      '    .29743E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10133E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10081E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10239E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    16.413       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11384E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    72.557       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .60861       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.4039       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=   3623.830     FROM MIGRAD    STATUS=CONVERGED    522 CALLS     2446 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     76.332        104.05       -.20594E-06    .37231E-04
   2  Prefactor     5.4281        9.7315        .43698E-05   -.16052E-04
   3  Prefactor     .10000E-03    2.9202        .26506E-06** at limit **
   4  Prefactor     13.477        12.998       -.84563E-07   -.12564E-05
   5  Prefactor     .10000E-03    22.964       -.18147E-05** at limit **
   6  Prefactor     81.685        178.81        .34810E-05    .24693E-04
   7  Prefactor     117.47        72.514        .10233E-07   -.20187E-04
   8  Prefactor     .10000E-03    857.42        .28185E-04** at limit **
   9  norm          .10000E-03    49.684        .11519E-05** at limit **
  10  Prefactor     .10000E-03    6.5866       -.13785E-06** at limit **
  11  norm          2.9536        3.0504        .14891E-06   -.62953E-04
  12  Prefactor     7.1427        11.099        .21667E-06   -.24833E-04
  13  norm          .10033E-03    1.8953        .25313E-07** at limit **
  14  Prefactor     .10000E-03    67.263        .15974E-08** at limit **
  15  norm          .10000E-03    25.046        .96069E-08** at limit **
  16  Prefactor     .10000E-03    22.599       -.31148E-06** at limit **
  17  Prefactor     16.416        40.426        .24459E-06   -.61685E-05
  18  Prefactor     .10000E-03    40.751       -.21789E-06** at limit **
  19  Prefactor     .10000E-03    239.94        .25120E-07** at limit **
  20  Prefactor     72.592        86.660       -.57929E-06   -.21071E-05
  21  Normalizat    .60869        .31903        .69550E-05   -.55968E-04
  22  Prefactor     1.4038        .23827       -.30231E-05    .13242E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 76.3323
  Prefactor  = 5.42814
  Prefactor  = 0.0001
  Prefactor  = 13.4772
  Prefactor  = 0.0001
  Prefactor  = 81.6851
  Prefactor  = 117.468
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.95362
  Prefactor  = 7.14266
  norm       = 0.000100329
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.4158
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 72.5924
  Normalizat = 0.608688
  Prefactor  = 1.4038
 **********
 **   18 **HESSE 
 **********

 FCN=   3623.830     FROM HESSE     STATUS=OK           346 CALLS     2792 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     76.332        104.31        .23027E-03   -1.3958    
   2  Prefactor     5.4281        9.7739        .86222E-03   -1.5242    
   3  Prefactor     .10000E-03    2.9225        .10043E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     13.477        12.999        .10910E-03   -1.4974    
   5  Prefactor     .10000E-03    23.296        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     81.685        178.77        .22262E-03   -1.3898    
   7  Prefactor     117.47        72.440        .37139E-04   -1.3536    
   8  Prefactor     .10000E-03    879.38        .36433E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    49.684        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.5959        .15082E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.9536        3.0454        .10167E-03   -1.5364    
  12  Prefactor     7.1427        11.066        .15015E-03   -1.5173    
  13  norm          .10033E-03    4.5540        .28799E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    67.291        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    25.052        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    22.634        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     16.416        40.432        .98860E-04   -1.4897    
  18  Prefactor     .10000E-03    40.913        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    242.78        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     72.592        86.498        .47131E-04   -1.4002    
  21  Normalizat    .60869        .35026        .39615E-03   -1.0762    
  22  Prefactor     1.4038        .26816        .20440E-03   -.80271    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.43788e-10
Minuit parameter uncertainties:
  1  104.557
  2  9.77675
  3  3.96275e-06
  4  13.002
  5  9.30779e-05
  6  179.964
  7  72.4943
  8  0.00151384
  9  1.1722e-05
  10  9.96155e-06
  11  3.04559
  12  11.0688
  13  0.00244852
  14  1.87656e-05
  15  2.99265e-06
  16  1.65953e-05
  17  40.4999
  18  2.34633e-05
  19  0.000391955
  20  86.6481
  21  0.351543
  22  0.26843
Done.

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

Extracting fit parameters...

4FGL J1416.1+1320
   Spectrum: PowerLaw
242    Prefactor:  1.175e+02  7.249e+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.404e+00  2.684e-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:  6.087e-01  3.515e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.06
Ra Dec: 214.029 13.347
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 1.54e-07 +/- 9.47e-08
Energy Flux (Fixed Index): 5.22e-05 +/- 3.22e-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) = 3623.27785332
delta logL = 0.552059156793

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3623.27737946
delta logL = 0.552533019333

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    67.841       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0277       1.0000          .0000       10.000    
     3 'Normalizat'    .51817       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4486       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=   3623.277     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      292 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     67.859        78.569        .48731E-04   -.50040E-03
   2  Index         3.0280        .78457        .39522E-02   -.29459E-03
   3  Normalizat    .51826        .35775        .42668E-03    .28370E-03
   4  Prefactor     1.4484        .26550        .20154E-03    .10200E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 67.8592
  Index      = 3.02796
  Normalizat = 0.518257
  Prefactor  = 1.44842
 **********
 **   18 **HESSE 
 **********

 FCN=   3623.277     FROM HESSE     STATUS=OK            23 CALLS      315 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     67.859        69.863        .97461E-05   -1.4059    
   2  Index         3.0280        .69723        .15809E-03   -.40542    
   3  Normalizat    .51826        .35604        .17067E-04   -1.1158    
   4  Prefactor     1.4484        .26432        .40308E-04   -.78995    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.51193e-09
Minuit parameter uncertainties:
  1  69.9476
  2  0.699931
  3  0.357621
  4  0.264567
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/282174': 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) = 3623.27737822
delta logL = 0.55253425321

Extracting fit parameters...

4FGL J1416.1+1320
   Spectrum: PowerLaw
242    Prefactor:  6.786e+01  6.995e+01  1.000e-04  1.000e+04 ( 1.000e-13)
243        Index:  3.028e+00  6.999e-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.448e+00  2.646e-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:  5.183e-01  3.576e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.27
Ra Dec: 214.029 13.347
Photon Index (Free Index): 3.03 +/- 0.70
Photon Flux (Free Index): 2.52e-07 +/- 1.55e-07
Energy Flux (Free Index): 4.95e-05 +/- 2.66e-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/282174/cmap_HighResolution_412214401_412473601_4FGL_J1416.1+1320_daily_bin667.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.54e-07', energy_flux2='4.95e-05', photon_flux_error='9.47e-08', dlogl='5.53e-01', energy_flux='5.22e-05', photon_flux2='2.52e-07', job_status='DONE', time_completed='2021-09-09 06:26:18.494145', photon_index_error2='0.70', photon_index2='3.03', ts='4.06', fit_tolerance='1e-08', GAL='1.40', photon_index_error='0.00', energy_flux_error2='2.66e-05', EG='0.61', time_epoch_completed='1631193978.49', return_code='0', job_id='282174', GAL2='1.45', EG2='0.52', return_code2='0', energy_flux_error='3.22e-05', photon_flux_error2='1.55e-07', ts2='5.27', photon_index='2.37' WHERE bin_id='667' AND source_name='4FGL J1416.1+1320' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 06:26:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0192>
Subject: Job 282174: <4FGL_J1416.1+1320_daily_bin667> in cluster <slac> Done

Job <4FGL_J1416.1+1320_daily_bin667> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Thu Sep  9 06:17:05 2021
Job was executed on host(s) <bullet0192>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 06:17:07 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:17:07 2021
Terminated at Thu Sep  9 06:26:19 2021
Results reported at Thu Sep  9 06:26:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1416.1+1320_daily_bin667 214.029 13.347 412214401 412473601 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 :                                   425.10 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             315.06 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   551 sec.
    Turnaround time :                            554 sec.

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

