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


Performing analysis on: 4FGL_J1416.1+1320_daily_bin609
RA = 214.029, Dec = 13.347
tmin = 397180801, tmax = 397440001
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='282109', job_status='RUN', time_executed='2021-09-09 06:18:10.414241', time_epoch_executed='1631193490.41' WHERE source_name='4FGL J1416.1+1320' and cadence='daily' and bin_id='609'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/282109

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

Retrieving the FT1 file...

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

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

Retrieving 41 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/282109/ft1_4FGL_J1416.1+1320_daily_bin609.fits


Retrieving the FT1 file...

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

Retrieving 41 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/282109/ft2_4FGL_J1416.1+1320_daily_bin609.fits


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

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

Done.
real 5.59
user 3.73
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/282109/ft2_4FGL_J1416.1+1320_daily_bin609.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/282109/ft1_filteredMKT_4FGL_J1416.1+1320_daily_bin609.fits evtable="EVENTS" outfile="/scratch/kocevski/282109/ft1_filtered_4FGL_J1416.1+1320_daily_bin609.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 2.09
user 0.36
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/282109/ft1_filtered_4FGL_J1416.1+1320_daily_bin609.fits" evtable="EVENTS" scfile=/scratch/kocevski/282109/ft2_4FGL_J1416.1+1320_daily_bin609.fits sctable="SC_DATA" outfile=/scratch/kocevski/282109/ltcube_397180801_397440001_4FGL_J1416.1+1320_daily_bin609.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/282109/ft2_4FGL_J1416.1+1320_daily_bin609.fits
.....................!
real 11.83
user 10.54
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/282109/ft1_filtered_4FGL_J1416.1+1320_daily_bin609.fits evtable="EVENTS" scfile=/scratch/kocevski/282109/ft2_4FGL_J1416.1+1320_daily_bin609.fits sctable="SC_DATA" expcube=/scratch/kocevski/282109/ltcube_397180801_397440001_4FGL_J1416.1+1320_daily_bin609.fits outfile=/scratch/kocevski/282109/expmap_397180801_397440001_4FGL_J1416.1+1320_daily_bin609.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/282109/ltcube_397180801_397440001_4FGL_J1416.1+1320_daily_bin609.fits
.....................!
real 194.09
user 185.42
sys 4.66

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/282109/ft1_filtered_4FGL_J1416.1+1320_daily_bin609.fits scfile=/scratch/kocevski/282109/ft2_4FGL_J1416.1+1320_daily_bin609.fits outfile=/scratch/kocevski/282109/cmap_397180801_397440001_4FGL_J1416.1+1320_daily_bin609.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 1.92
user 0.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/282109/ft1_filtered_4FGL_J1416.1+1320_daily_bin609.fits scfile=/scratch/kocevski/282109/ft2_4FGL_J1416.1+1320_daily_bin609.fits outfile=/scratch/kocevski/282109/cmap_HighResolution_397180801_397440001_4FGL_J1416.1+1320_daily_bin609.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 2.54
user 0.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    36.402       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.0727       1.0000         .10000E-03   10000.    
     6 'Prefactor '    29.373       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    8.3637       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    5.3521       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.7955       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11139E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    10.877       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1221       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .80707       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=   4684.115     FROM MIGRAD    STATUS=CONVERGED    462 CALLS     2288 TOTAL
                     EDM=   .56E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     36.403        36.669       -.12457E-07   -.87268E-06
   2  Prefactor     .10000E-03    1.3143        .98890E-07** at limit **
   3  Prefactor     .10000E-03    2.3353        .17562E-06** at limit **
   4  Prefactor     .10000E-03    5.5130        .15263E-06** at limit **
   5  Prefactor     3.0739        10.379        .78240E-06   -.23355E-05
   6  Prefactor     29.372        32.664        .12835E-07   -.19474E-05
   7  Prefactor     .10000E-03    15.920        .20498E-06** at limit **
   8  Prefactor     .10000E-03    25.295        .49841E-06** at limit **
   9  norm          .10000E-03    10.358        .96796E-07** at limit **
  10  Prefactor     .10000E-03    3.2620        .83988E-07** at limit **
  11  norm          8.3638        3.6011       -.73198E-08   -.39243E-06
  12  Prefactor     .10000E-03    1.6855       -.42307E-07** at limit **
  13  norm          5.3525        3.5317       -.73981E-08    .10570E-04
  14  Prefactor     .10000E-03    12.704        .17220E-06** at limit **
  15  norm          .10000E-03    7.5632        .16655E-06** at limit **
  16  Prefactor     7.7618        26.835        .86660E-07    .14670E-04
  17  Prefactor     .10000E-03    16.575        .92249E-07** at limit **
  18  Prefactor     .10000E-03    8.1585       -.13608E-05** at limit **
  19  Prefactor     .10000E-03    37.002       -.74750E-05** at limit **
  20  Prefactor     10.805        54.168       -.12785E-06   -.60564E-06
  21  Normalizat    1.1220        .21745       -.52079E-06    .36632E-04
  22  Prefactor     .80714        .16013        .17359E-06    .43134E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 36.4026
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.07387
  Prefactor  = 29.3721
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 8.36378
  Prefactor  = 0.0001
  norm       = 5.35251
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 7.76175
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.8054
  Normalizat = 1.12196
  Prefactor  = 0.807142
 **********
 **   18 **HESSE 
 **********

 FCN=   4684.115     FROM HESSE     STATUS=OK           336 CALLS     2624 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     36.403        36.683        .66424E-04   -1.4501    
   2  Prefactor     .10000E-03    1.3189        .76628E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.3644        .10214E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.5301        .15695E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.0739        10.383        .23140E-03   -1.5357    
   6  Prefactor     29.372        32.689        .73924E-04   -1.4624    
   7  Prefactor     .10000E-03    15.957        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    25.432        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    10.363        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.2787        .12072E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          8.3638        3.6013        .82670E-04   -1.5129    
  12  Prefactor     .10000E-03    1.6881        .86763E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          5.3525        3.5297        .99910E-04   -1.5245    
  14  Prefactor     .10000E-03    12.714        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    7.5786        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     7.7618        26.827        .14362E-03   -1.5151    
  17  Prefactor     .10000E-03    16.686        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    8.1686        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    37.003        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     10.805        54.254        .12148E-03   -1.5050    
  21  Normalizat    1.1220        .26740        .24958E-03   -.89050    
  22  Prefactor     .80714        .19723        .21366E-03   -.99466    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.45847e-11
Minuit parameter uncertainties:
  1  36.7056
  2  2.62283e-07
  3  6.28415e-08
  4  5.42864e-08
  5  10.3887
  6  32.7092
  7  3.33924e-06
  8  4.09298e-06
  9  7.72112e-07
  10  6.99795e-07
  11  3.60136
  12  4.9698e-07
  13  3.52989
  14  1.28631e-05
  15  6.0179e-06
  16  26.8691
  17  6.95709e-06
  18  9.90453e-08
  19  0.000118777
  20  48.4943
  21  0.267726
  22  0.197403
Done.

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

Extracting fit parameters...

4FGL J1416.1+1320
   Spectrum: PowerLaw
242    Prefactor:  1.000e-04  3.339e-06  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:  8.071e-01  1.974e-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.122e+00  2.677e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 214.029 13.347
Photon Flux Upper Limit: 7.47e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.76e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/282109/likelihoodResults_397180801_397440001_4FGL_J1416.1+1320_daily_bin609.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4684.11535646
delta logL = -0.000298537285744

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4684.11505889
delta logL = -9.64200808085e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7504       1.0000          .0000       10.000    
     3 'Normalizat'    1.1220       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80714       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=   4684.115     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      277 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10193E-03    96.418        .18142E-02** at limit **
   2  Index         2.6836        6.4263        .50000        .16274E-04
   3  Normalizat    1.1220        .14312E-01    .24958E-03   -.26420E-05
   4  Prefactor     .80714        .10624E-01    .21366E-03   -.61723E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101926
  Index      = 2.68356
  Normalizat = 1.12195
  Prefactor  = 0.807143
 **********
 **   18 **HESSE 
 **********

 FCN=   4684.115     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      306 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10193E-03    406.97        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6836        8.0610        .50000       -.48170    
   3  Normalizat    1.1220        .30353E-01    .99833E-05   -.89050    
   4  Prefactor     .80714        .22533E-01    .85463E-05   -.99466    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.38264e-08
Minuit parameter uncertainties:
  1  0.0563792
  2  600.281
  3  0.0303539
  4  0.0225337
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/282109': 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): 102
logL (Free Index) = 4684.11505866
delta logL = -7.43493728805e-07

Extracting fit parameters...

4FGL J1416.1+1320
   Spectrum: PowerLaw
242    Prefactor:  1.019e-04  5.638e-02  1.000e-04  1.000e+04 ( 1.000e-13)
243        Index:  2.684e+00  6.003e+02  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:  8.071e-01  2.253e-02  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.122e+00  3.035e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 214.029 13.347

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/282109/cmap_HighResolution_397180801_397440001_4FGL_J1416.1+1320_daily_bin609.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.76e-03', job_status='DONE', photon_flux_upper_limit='7.47e-08', time_completed='2021-09-09 06:27:20.945851', job_id='282109', GAL2='0.81', fit_tolerance='1e-08', EG2='1.12', EG='1.12', time_epoch_completed='1631194040.95', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='-7.43e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='609' AND source_name='4FGL J1416.1+1320' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 06:27:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0215>
Subject: Job 282109: <4FGL_J1416.1+1320_daily_bin609> in cluster <slac> Done

Job <4FGL_J1416.1+1320_daily_bin609> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Thu Sep  9 06:16:59 2021
Job was executed on host(s) <bullet0215>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 06:17:00 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:00 2021
Terminated at Thu Sep  9 06:27:21 2021
Results reported at Thu Sep  9 06:27:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1416.1+1320_daily_bin609 214.029 13.347 397180801 397440001 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 :                                   493.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             335.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   621 sec.
    Turnaround time :                            622 sec.

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

