/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 97 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 = 7472
number of fields = 31
RA_SUN column already exists. File will not be modified.
DDone.


Performing analysis on: 4FGL_J1416.1+1320_daily_bin1655
RA = 214.029, Dec = 13.347
tmin = 668304001, tmax = 668563201
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='189614', job_status='RUN', time_executed='2022-03-10 00:13:11.073274', time_epoch_executed='1646899991.07' WHERE source_name='4FGL J1416.1+1320' and cadence='daily' and bin_id='1655'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/189614

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/189614/ft1_4FGL_J1416.1+1320_daily_bin1655.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/189614/ft2_4FGL_J1416.1+1320_daily_bin1655.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/189614/ft1_4FGL_J1416.1+1320_daily_bin1655.fits outfile=/scratch/kocevski/189614/ft1_filteredMKT_4FGL_J1416.1+1320_daily_bin1655.fits ra=214.029 dec=13.347 rad=12.0 tmin=668304001.0 tmax=668563201.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.75
user 3.45
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/189614/ft2_4FGL_J1416.1+1320_daily_bin1655.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/189614/ft1_filteredMKT_4FGL_J1416.1+1320_daily_bin1655.fits evtable="EVENTS" outfile="/scratch/kocevski/189614/ft1_filtered_4FGL_J1416.1+1320_daily_bin1655.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.51
user 0.34
sys 0.14
Number of photons that survived the gtmktime cut: 647

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/189614/ft1_filtered_4FGL_J1416.1+1320_daily_bin1655.fits" evtable="EVENTS" scfile=/scratch/kocevski/189614/ft2_4FGL_J1416.1+1320_daily_bin1655.fits sctable="SC_DATA" outfile=/scratch/kocevski/189614/ltcube_668304001_668563201_4FGL_J1416.1+1320_daily_bin1655.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/189614/ft2_4FGL_J1416.1+1320_daily_bin1655.fits
.....................!
real 12.08
user 11.72
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/189614/ft1_filtered_4FGL_J1416.1+1320_daily_bin1655.fits evtable="EVENTS" scfile=/scratch/kocevski/189614/ft2_4FGL_J1416.1+1320_daily_bin1655.fits sctable="SC_DATA" expcube=/scratch/kocevski/189614/ltcube_668304001_668563201_4FGL_J1416.1+1320_daily_bin1655.fits outfile=/scratch/kocevski/189614/expmap_668304001_668563201_4FGL_J1416.1+1320_daily_bin1655.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/189614/ltcube_668304001_668563201_4FGL_J1416.1+1320_daily_bin1655.fits
.....................!
real 190.10
user 185.12
sys 4.59

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/189614/ft1_filtered_4FGL_J1416.1+1320_daily_bin1655.fits scfile=/scratch/kocevski/189614/ft2_4FGL_J1416.1+1320_daily_bin1655.fits outfile=/scratch/kocevski/189614/cmap_668304001_668563201_4FGL_J1416.1+1320_daily_bin1655.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.53
user 0.36
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.7798       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10177E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    94.668       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.4334       1.0000         .10000E-03   10000.    
    11 'norm      '    6.9562       1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.0570       1.0000         .10000E-03   10000.    
    13 'norm      '    .66428E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    14.999       1.0000         .10000E-03   10000.    
    15 'norm      '    11.990       1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.2923       1.0000         .10000E-03   10000.    
    17 'Prefactor '    14.767       1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.1175       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .15382E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    27.364       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .96174       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .95380       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=   7355.570     FROM MIGRAD    STATUS=CONVERGED    472 CALLS     2363 TOTAL
                     EDM=   .37E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.453       -.52216E-06** at limit **
   2  Prefactor     3.7807        4.1393        .23100E-06   -.40644E-04
   3  Prefactor     .10000E-03    1.3461        .26395E-07** at limit **
   4  Prefactor     .10000E-03    25.024        .96765E-06** at limit **
   5  Prefactor     .10000E-03    11.293        .63422E-08** at limit **
   6  Prefactor     .10000E-03    11.616        .12945E-06** at limit **
   7  Prefactor     94.672        33.908        .55937E-07    .34103E-04
   8  Prefactor     .10000E-03    10.388        .64737E-07** at limit **
   9  norm          .10000E-03    13.995        .69642E-06** at limit **
  10  Prefactor     5.4340        4.9688        .59631E-08    .15959E-03
  11  norm          6.9559        3.0116        .10352E-07    .52845E-04
  12  Prefactor     6.0549        6.1546       -.40608E-07   -.31248E-03
  13  norm          .80022E-01    1.3330       -.25743E-06    .53264E-03
  14  Prefactor     15.000        111.00       -.31843E-06    .33318E-04
  15  norm          11.982        47.068        .41389E-06    .37825E-04
  16  Prefactor     9.2628        25.548       -.74923E-06    .17843E-04
  17  Prefactor     14.770        21.092       -.21070E-06   -.34039E-04
  18  Prefactor     4.1183        7.6208        .42149E-05   -.13808E-03
  19  Prefactor     .10000E-03    25.095       -.16417E-05** at limit **
  20  Prefactor     27.325        37.954       -.21395E-05   -.24708E-03
  21  Normalizat    .96168        .18935       -.44470E-06    .54939E-04
  22  Prefactor     .95374        .13673        .20161E-06    .35062E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 3.78072
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 94.672
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 5.43399
  norm       = 6.95594
  Prefactor  = 6.05487
  norm       = 0.0800216
  Prefactor  = 14.9996
  norm       = 11.9821
  Prefactor  = 9.26283
  Prefactor  = 14.7701
  Prefactor  = 4.1183
  Prefactor  = 0.0001
  Prefactor  = 27.3251
  Normalizat = 0.961683
  Prefactor  = 0.953744
 **********
 **   18 **HESSE 
 **********

 FCN=   7355.570     FROM HESSE     STATUS=OK           346 CALLS     2709 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.474        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.7807        4.1346        .17345E-03   -1.5319    
   3  Prefactor     .10000E-03    1.3548        .97162E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    25.816        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    11.400        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    11.656        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     94.672        33.930        .41308E-04   -1.3759    
   8  Prefactor     .10000E-03    10.438        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    14.081        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.4340        4.9660        .17239E-03   -1.5242    
  11  norm          6.9559        3.0113        .94839E-04   -1.5180    
  12  Prefactor     6.0549        6.1467        .16314E-03   -1.5216    
  13  norm          .80022E-01    26.702        .18316E-02   -1.5651    
  14  Prefactor     15.000        103.64        .10342E-03   -1.4933    
  15  norm          11.982        45.489        .11569E-03   -1.5016    
  16  Prefactor     9.2628        25.488        .13147E-03   -1.5099    
  17  Prefactor     14.770        21.091        .10423E-03   -1.4939    
  18  Prefactor     4.1183        7.6412        .99331E-03   -1.5302    
  19  Prefactor     .10000E-03    25.166        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     27.325        38.046        .76584E-04   -1.4662    
  21  Normalizat    .96168        .22384        .28771E-03   -.94325    
  22  Prefactor     .95374        .16277        .21139E-03   -.94288    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.14704e-09
Minuit parameter uncertainties:
  1  0.000215362
  2  4.13494
  3  2.27615e-08
  4  0.000206559
  5  3.80208e-05
  6  2.00081e-05
  7  33.9365
  8  6.46107e-06
  9  0.000207232
  10  4.96641
  11  3.0114
  12  6.14739
  13  2.92303
  14  79.0532
  15  45.6211
  16  25.5179
  17  21.1013
  18  7.643
  19  0.000148905
  20  38.0794
  21  0.224054
  22  0.162858
Done.

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

Extracting fit parameters...

4FGL J1416.1+1320
   Spectrum: PowerLaw
242    Prefactor:  9.467e+01  3.394e+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.537e-01  1.629e-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:  9.617e-01  2.241e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 20.71
Ra Dec: 214.029 13.347
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 1.24e-07 +/- 4.43e-08
Energy Flux (Fixed Index): 4.20e-05 +/- 1.51e-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) = 7354.09711229
delta logL = 1.47283389314

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7353.9169579
delta logL = 1.65298828376

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    120.04       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8545       1.0000          .0000       10.000    
     3 'Normalizat'    1.0110       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93069       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=   7353.917     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      220 TOTAL
                     EDM=   .68E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     120.13        50.162        .91827E-03    .76512E-05
   2  Index         1.8540        .27990        .12800       -.42552E-05
   3  Normalizat    1.0115        .18542        .45390E-01   -.17484E-04
   4  Prefactor     .93032        .13558        .45395E-01   -.15156E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 120.13
  Index      = 1.85401
  Normalizat = 1.0115
  Prefactor  = 0.930321
 **********
 **   18 **HESSE 
 **********

 FCN=   7353.917     FROM HESSE     STATUS=OK            31 CALLS      251 TOTAL
                     EDM=   .23E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     120.13        44.748        .36731E-04   -1.3511    
   2  Index         1.8540        .26632        .52879E-02   -.68052    
   3  Normalizat    1.0115        .22031        .28152E-03   -.92646    
   4  Prefactor     .93032        .16125        .21372E-03   -.95089    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.30716e-12
Minuit parameter uncertainties:
  1  44.7608
  2  0.266525
  3  0.220505
  4  0.161333
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/189614': 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) = 7353.91695126
delta logL = 1.65299492069

Extracting fit parameters...

4FGL J1416.1+1320
   Spectrum: PowerLaw
242    Prefactor:  1.201e+02  4.476e+01  1.000e-04  1.000e+04 ( 1.000e-13)
243        Index:  1.854e+00  2.665e-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.303e-01  1.613e-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.011e+00  2.205e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 24.06
Ra Dec: 214.029 13.347
Photon Index (Free Index): 1.85 +/- 0.27
Photon Flux (Free Index): 8.09e-08 +/- 3.87e-08
Energy Flux (Free Index): 8.26e-05 +/- 4.91e-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/189614/cmap_HighResolution_668304001_668563201_4FGL_J1416.1+1320_daily_bin1655.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.24e-07', energy_flux2='8.26e-05', photon_flux_error='4.43e-08', dlogl='1.65e+00', energy_flux='4.20e-05', photon_flux2='8.09e-08', job_status='DONE', time_completed='2022-03-10 00:22:13.835293', photon_index_error2='0.27', photon_index2='1.85', ts='20.71', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', energy_flux_error2='4.91e-05', EG='0.96', time_epoch_completed='1646900533.84', return_code='0', job_id='189614', GAL2='0.93', EG2='1.01', return_code2='0', energy_flux_error='1.51e-05', photon_flux_error2='3.87e-08', ts2='24.06', photon_index='2.37' WHERE bin_id='1655' AND source_name='4FGL J1416.1+1320' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Mar 10 00:22:13 PST 2022

------------------------------------------------------------
Sender: LSF System <scs@bullet0026>
Subject: Job 189581: <4FGL_J1416.1+1320_daily_bin1655> in cluster <slac> Done

Job <4FGL_J1416.1+1320_daily_bin1655> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Mar 10 00:08:10 2022
Job was executed on host(s) <bullet0026>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Mar 10 00:08:50 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Mar 10 00:08:50 2022
Terminated at Thu Mar 10 00:22:00 2022
Results reported at Thu Mar 10 00:22:00 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1416.1+1320_daily_bin1655 214.029 13.347 668304001 668563201 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 :                                   449.19 sec.
    Max Memory :                                 618 MB
    Average Memory :                             186.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   790 sec.
    Turnaround time :                            830 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0263>
Subject: Job 189614: <4FGL_J1416.1+1320_daily_bin1655> in cluster <slac> Done

Job <4FGL_J1416.1+1320_daily_bin1655> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Mar 10 00:08:11 2022
Job was executed on host(s) <bullet0263>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Mar 10 00:08:57 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Mar 10 00:08:57 2022
Terminated at Thu Mar 10 00:22:14 2022
Results reported at Thu Mar 10 00:22:14 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1416.1+1320_daily_bin1655 214.029 13.347 668304001 668563201 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 :                                   544.25 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             290.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   797 sec.
    Turnaround time :                            843 sec.

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

