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


Performing analysis on: 4FGL_J1416.1+1320_daily_bin482
RA = 214.029, Dec = 13.347
tmin = 364262401, tmax = 364521601
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='280704', job_status='RUN', time_executed='2021-09-09 06:13:59.240229', time_epoch_executed='1631193239.24' WHERE source_name='4FGL J1416.1+1320' and cadence='daily' and bin_id='482'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/280704

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/280704/ft1_4FGL_J1416.1+1320_daily_bin482.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/280704/ft2_4FGL_J1416.1+1320_daily_bin482.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/280704/ft1_4FGL_J1416.1+1320_daily_bin482.fits outfile=/scratch/kocevski/280704/ft1_filteredMKT_4FGL_J1416.1+1320_daily_bin482.fits ra=214.029 dec=13.347 rad=12.0 tmin=364262401.0 tmax=364521601.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.78
user 2.99
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/280704/ft2_4FGL_J1416.1+1320_daily_bin482.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/280704/ft1_filteredMKT_4FGL_J1416.1+1320_daily_bin482.fits evtable="EVENTS" outfile="/scratch/kocevski/280704/ft1_filtered_4FGL_J1416.1+1320_daily_bin482.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.19
user 0.33
sys 0.19

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/280704/ft1_filtered_4FGL_J1416.1+1320_daily_bin482.fits evtable="EVENTS" scfile=/scratch/kocevski/280704/ft2_4FGL_J1416.1+1320_daily_bin482.fits sctable="SC_DATA" expcube=/scratch/kocevski/280704/ltcube_364262401_364521601_4FGL_J1416.1+1320_daily_bin482.fits outfile=/scratch/kocevski/280704/expmap_364262401_364521601_4FGL_J1416.1+1320_daily_bin482.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/280704/ltcube_364262401_364521601_4FGL_J1416.1+1320_daily_bin482.fits
.....................!
real 198.15
user 186.59
sys 5.03

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/280704/ft1_filtered_4FGL_J1416.1+1320_daily_bin482.fits scfile=/scratch/kocevski/280704/ft2_4FGL_J1416.1+1320_daily_bin482.fits outfile=/scratch/kocevski/280704/cmap_364262401_364521601_4FGL_J1416.1+1320_daily_bin482.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.24
user 0.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/280704/ft1_filtered_4FGL_J1416.1+1320_daily_bin482.fits scfile=/scratch/kocevski/280704/ft2_4FGL_J1416.1+1320_daily_bin482.fits outfile=/scratch/kocevski/280704/cmap_HighResolution_364262401_364521601_4FGL_J1416.1+1320_daily_bin482.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.19
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10544E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.5587       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.1992       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.0810       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10106E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .86627E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    40.765       1.0000         .10000E-03   10000.    
     9 'norm      '    .14362E-01   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    7.3237       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.9629       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .21566E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    5.4841       1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.427       1.0000         .10000E-03   10000.    
    17 'Prefactor '    37.641       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10193E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.4213       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.3666       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .66187       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=   5801.120     FROM MIGRAD    STATUS=CONVERGED    880 CALLS     3204 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    34.600        .18142E-02** at limit **
   2  Prefactor     4.5604        3.7979        .13027E-03    .11791E-03
   3  Prefactor     4.1974        3.7469        .13516E-03    .17193E-03
   4  Prefactor     2.0794        17.604        .28626E-03   -.27403E-04
   5  Prefactor     .10000E-03    2.2389        .11123E-02** at limit **
   6  Prefactor     .10000E-03    23.850        .18142E-02** at limit **
   7  Prefactor     .10001E-03    34.798        .10934    ** at limit **
   8  Prefactor     40.745        31.393        .62783E-04    .12538E-03
   9  norm          .10002E-03    19.313        .10656    ** at limit **
  10  Prefactor     .10000E-03    3.1698        .13206E-02** at limit **
  11  norm          7.3234        2.9247        .80010E-04    .66783E-04
  12  Prefactor     .10000E-03    2.3289        .11314E-02** at limit **
  13  norm          2.9630        2.3880        .10200E-03    .60853E-04
  14  Prefactor     .10003E-03    104.13        .36285E-03** at limit **
  15  norm          5.4552        15.996        .17158E-03    .17844E-03
  16  Prefactor     10.420        14.356        .12408E-03    .44804E-04
  17  Prefactor     37.633        21.742        .65326E-04    .67698E-04
  18  Prefactor     .10000E-03    3.6143        .14136E-02** at limit **
  19  Prefactor     4.4241        20.963        .19152E-03   -.35794E-04
  20  Prefactor     .10000E-03    35.234        .18142E-02** at limit **
  21  Normalizat    1.3664        .24756        .23575E-03    .21425E-03
  22  Prefactor     .66203        .17786        .23912E-03    .76483E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Prefactor  = 4.56043
  Prefactor  = 4.19741
  Prefactor  = 2.07942
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100012
  Prefactor  = 40.7445
  norm       = 0.000100022
  Prefactor  = 0.0001
  norm       = 7.32344
  Prefactor  = 0.0001
  norm       = 2.96297
  Prefactor  = 0.000100025
  norm       = 5.45515
  Prefactor  = 10.4204
  Prefactor  = 37.6332
  Prefactor  = 0.0001
  Prefactor  = 4.42408
  Prefactor  = 0.000100003
  Normalizat = 1.3664
  Prefactor  = 0.662026
 **********
 **   18 **HESSE 
 **********

 FCN=   5801.120     FROM HESSE     STATUS=OK           340 CALLS     3544 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    34.601        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     4.5604        3.7979        .52106E-05   -1.5281    
   3  Prefactor     4.1974        3.7468        .54064E-05   -1.5298    
   4  Prefactor     2.0794        17.597        .11451E-04   -1.5420    
   5  Prefactor     .10000E-03    2.2389        .22246E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    23.855        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10001E-03    33.422        .11212       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     40.745        31.394        .12557E-04   -1.4430    
   9  norm          .10002E-03    18.999        .10814       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.1702        .26413E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          7.3234        2.9247        .32004E-05   -1.5167    
  12  Prefactor     .10000E-03    2.3291        .22629E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.9630        2.3879        .40802E-05   -1.5364    
  14  Prefactor     .10003E-03    104.14        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          5.4552        15.997        .68631E-05   -1.5241    
  16  Prefactor     10.420        14.356        .49633E-05   -1.5062    
  17  Prefactor     37.633        21.742        .13065E-04   -1.4480    
  18  Prefactor     .10000E-03    3.6144        .28272E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     4.4241        20.963        .76609E-05   -1.5287    
  20  Prefactor     .10000E-03    35.238        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.3664        .24780        .47149E-04   -.81605    
  22  Prefactor     .66203        .17803        .47824E-04   -1.0503    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.30967e-09
Minuit parameter uncertainties:
  1  0.000550068
  2  3.79805
  3  3.74704
  4  12.1026
  5  4.22231e-06
  6  0.00010839
  7  0.00124303
  8  31.4065
  9  0.00130793
  10  1.27161e-05
  11  2.92478
  12  9.34141e-06
  13  2.38803
  14  0.00323411
  15  16.0092
  16  14.3612
  17  21.7462
  18  1.50145e-07
  19  19.2714
  20  0.000649402
  21  0.248015
  22  0.178185
Done.

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

Extracting fit parameters...

4FGL J1416.1+1320
   Spectrum: PowerLaw
242    Prefactor:  1.000e-04  1.243e-03  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:  6.620e-01  1.782e-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.366e+00  2.480e-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: 9.41e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.26e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/280704/likelihoodResults_364262401_364521601_4FGL_J1416.1+1320_daily_bin482.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) = 5801.12009664
delta logL = -1.75529567059e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5801.12009664
delta logL = -1.74941669684e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96366E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3731       1.0000          .0000       10.000    
     3 'Normalizat'    1.3664       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .66203       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=   5801.048     FROM MIGRAD    STATUS=CONVERGED    127 CALLS      309 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.1010        341.60        .90712E-02    .52919E-03
   2  Index         3.1535        6.5385        .24008        .59766E-04
   3  Normalizat    1.3451        .36453E-01    .53682E-01    .42067E-04
   4  Prefactor     .66862        .26872E-01    .41893E-01    .75026E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.10097
  Index      = 3.15352
  Normalizat = 1.34508
  Prefactor  = 0.668624
 **********
 **   18 **HESSE 
 **********

 FCN=   5801.048     FROM HESSE     STATUS=OK            33 CALLS      342 TOTAL
                     EDM=   .29E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.1010        26.238        .36285E-03   -1.5303    
   2  Index         3.1535        2.2455        .10689E-01   -.37825    
   3  Normalizat    1.3451        .24462        .23736E-03   -.82230    
   4  Prefactor     .66862        .17653        .23802E-03   -1.0477    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.92977e-11
Minuit parameter uncertainties:
  1  20.7593
  2  2.34359
  3  0.244827
  4  0.176681
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/280704': 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) = 5801.04760549
delta logL = 0.0724893994866

Extracting fit parameters...

4FGL J1416.1+1320
   Spectrum: PowerLaw
242    Prefactor:  4.101e+00  2.076e+01  1.000e-04  1.000e+04 ( 1.000e-13)
243        Index:  3.154e+00  2.344e+00  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:  6.686e-01  1.767e-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.345e+00  2.448e-01  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/280704/cmap_HighResolution_364262401_364521601_4FGL_J1416.1+1320_daily_bin482.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.26e-03', job_status='DONE', photon_flux_upper_limit='9.41e-08', time_completed='2021-09-09 06:24:23.867685', job_id='280704', GAL2='0.67', fit_tolerance='1e-08', EG2='1.35', EG='1.37', time_epoch_completed='1631193863.87', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.66', dlogl='7.25e-02', ts2='0.16', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='482' AND source_name='4FGL J1416.1+1320' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 06:24:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0213>
Subject: Job 280704: <4FGL_J1416.1+1320_daily_bin482> in cluster <slac> Done

Job <4FGL_J1416.1+1320_daily_bin482> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Thu Sep  9 06:11:56 2021
Job was executed on host(s) <bullet0213>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 06:11:58 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:11:58 2021
Terminated at Thu Sep  9 06:24:26 2021
Results reported at Thu Sep  9 06:24:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1416.1+1320_daily_bin482 214.029 13.347 364262401 364521601 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 :                                   597.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             267.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   747 sec.
    Turnaround time :                            750 sec.

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

