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


Performing analysis on: 4FGL_J1416.1+1320_daily_bin473
RA = 214.029, Dec = 13.347
tmin = 361929601, tmax = 362188801
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='280691', job_status='RUN', time_executed='2021-09-09 06:12:53.103080', time_epoch_executed='1631193173.1' WHERE source_name='4FGL J1416.1+1320' and cadence='daily' and bin_id='473'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/280691

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

Retrieving the FT1 file...

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

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

Retrieving 51 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/280691/ft1_4FGL_J1416.1+1320_daily_bin473.fits


Retrieving the FT1 file...

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

Retrieving 51 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/280691/ft2_4FGL_J1416.1+1320_daily_bin473.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/280691/ft1_4FGL_J1416.1+1320_daily_bin473.fits outfile=/scratch/kocevski/280691/ft1_filteredMKT_4FGL_J1416.1+1320_daily_bin473.fits ra=214.029 dec=13.347 rad=12.0 tmin=361929601.0 tmax=362188801.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.58
user 5.27
sys 0.24

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/280691/ft1_filtered_4FGL_J1416.1+1320_daily_bin473.fits evtable="EVENTS" scfile=/scratch/kocevski/280691/ft2_4FGL_J1416.1+1320_daily_bin473.fits sctable="SC_DATA" expcube=/scratch/kocevski/280691/ltcube_361929601_362188801_4FGL_J1416.1+1320_daily_bin473.fits outfile=/scratch/kocevski/280691/expmap_361929601_362188801_4FGL_J1416.1+1320_daily_bin473.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/280691/ltcube_361929601_362188801_4FGL_J1416.1+1320_daily_bin473.fits
.....................!
real 189.90
user 185.06
sys 4.37

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/280691/ft1_filtered_4FGL_J1416.1+1320_daily_bin473.fits scfile=/scratch/kocevski/280691/ft2_4FGL_J1416.1+1320_daily_bin473.fits outfile=/scratch/kocevski/280691/cmap_361929601_362188801_4FGL_J1416.1+1320_daily_bin473.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.59
user 0.38
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10492E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    23.470       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .33869       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    18.655       1.0000         .10000E-03   10000.    
     8 'Prefactor '    13.547       1.0000         .10000E-03   10000.    
     9 'norm      '    .10046E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.3923       1.0000         .10000E-03   10000.    
    11 'norm      '    17.284       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .91869       1.0000         .10000E-03   10000.    
    13 'norm      '    .14917E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    10.347       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.2139       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.3592       1.0000         .10000E-03   10000.    
    19 'Prefactor '    13.564       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10537E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .25516       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.3434       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=   6157.093     FROM MIGRAD    STATUS=CONVERGED    514 CALLS     2425 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    349.39       -.12120E-05** at limit **
   2  Prefactor     23.472        6.4930        .59032E-07    .10408E-03
   3  Prefactor     .10000E-03    1.4896        .33545E-07** at limit **
   4  Prefactor     .10000E-03    9.8732        .64348E-06** at limit **
   5  Prefactor     .30577        9.6587       -.92805E-06    .27101E-03
   6  Prefactor     .10000E-03    17.418       -.77347E-09** at limit **
   7  Prefactor     18.631        36.185        .82965E-09    .94324E-05
   8  Prefactor     13.558        23.201        .48842E-07    .43738E-05
   9  norm          .10000E-03    10.006       -.47979E-06** at limit **
  10  Prefactor     3.3963        8.5228       -.98402E-06   -.21111E-03
  11  norm          17.284        4.4809       -.64114E-07    .25017E-04
  12  Prefactor     .92032        8.5259        .42152E-05   -.17013E-04
  13  norm          .10000E-03    1.2603       -.75459E-07** at limit **
  14  Prefactor     .10000E-03    12.548       -.18098E-06** at limit **
  15  norm          10.348        12.385       -.38407E-07   -.83659E-04
  16  Prefactor     .10000E-03    20.049        .37961E-07** at limit **
  17  Prefactor     3.2077        21.436        .46884E-06   -.30234E-04
  18  Prefactor     2.3601        17.828        .79777E-06   -.46384E-04
  19  Prefactor     13.553        25.407       -.11440E-06    .57532E-05
  20  Prefactor     .10000E-03    92.479        .41742E-06** at limit **
  21  Normalizat    .25514        .28882       -.43588E-06   -.16795E-04
  22  Prefactor     1.3434        .20351       -.38370E-06   -.16909E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 23.4717
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.305769
  Prefactor  = 0.0001
  Prefactor  = 18.6306
  Prefactor  = 13.558
  norm       = 0.000100001
  Prefactor  = 3.39628
  norm       = 17.2844
  Prefactor  = 0.920317
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 10.348
  Prefactor  = 0.0001
  Prefactor  = 3.20766
  Prefactor  = 2.36014
  Prefactor  = 13.5529
  Prefactor  = 0.0001
  Normalizat = 0.255135
  Prefactor  = 1.34342
 **********
 **   18 **HESSE 
 **********

 FCN=   6157.093     FROM HESSE     STATUS=OK           350 CALLS     2775 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    363.03        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     23.472        6.3653        .82682E-04   -1.4739    
   3  Prefactor     .10000E-03    1.4959        .93524E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    10.036        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .30577        73.527        .41921E-02   -1.5597    
   6  Prefactor     .10000E-03    17.502        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     18.631        35.675        .92730E-04   -1.4844    
   8  Prefactor     13.558        22.750        .10883E-03   -1.4971    
   9  norm          .10000E-03    10.076        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.3963        8.4459        .21967E-03   -1.5339    
  11  norm          17.284        4.4686        .40877E-03   -1.4876    
  12  Prefactor     .92032        8.6209        .40794E-03   -1.5516    
  13  norm          .10000E-03    6.2610        .16981E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    12.553        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          10.348        12.380        .12456E-03   -1.5064    
  16  Prefactor     .10000E-03    20.130        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     3.2077        21.449        .22598E-03   -1.5350    
  18  Prefactor     2.3601        17.670        .26682E-03   -1.5401    
  19  Prefactor     13.553        25.276        .10876E-03   -1.4972    
  20  Prefactor     .10000E-03    93.705        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .25514        .23710        .49657E-03   -1.2562    
  22  Prefactor     1.3434        .17543        .17466E-03   -.82025    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.26808e-09
Minuit parameter uncertainties:
  1  0.0011434
  2  6.36548
  3  1.16781e-06
  4  0.000161529
  5  9.49336
  6  9.8867e-06
  7  35.7163
  8  22.7646
  9  0.000151634
  10  8.44888
  11  4.46873
  12  5.63423
  13  2.37965e-06
  14  1.60566e-05
  15  12.3834
  16  9.55715e-06
  17  16.5978
  18  12.9208
  19  25.2963
  20  0.000201015
  21  0.238043
  22  0.175505
Done.

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

Extracting fit parameters...

4FGL J1416.1+1320
   Spectrum: PowerLaw
242    Prefactor:  1.863e+01  3.572e+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.343e+00  1.755e-01  0.000e+00  1.000e+01 ( 1.000e+00)
459        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
460        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
457   Normalization:  2.551e-01  2.380e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.37
Ra Dec: 214.029 13.347
Photon Flux Upper Limit: 1.20e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.22e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/280691/likelihoodResults_361929601_362188801_4FGL_J1416.1+1320_daily_bin473.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): 0
logL (Free Index) = 6157.0249989
delta logL = 0.0684596532574

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6157.01025935
delta logL = 0.083199197612

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.593       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8438       1.0000          .0000       10.000    
     3 'Normalizat'    .23778       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3515       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=   6157.010     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      213 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.494        504.42        .27161E-02    .68641E-04
   2  Index         2.8504        3.6260        .22490        .55827E-04
   3  Normalizat    .23784        .44961E-01    .11633       -.48320E-04
   4  Prefactor     1.3515        .33836E-01    .31767E-01   -.30041E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.4936
  Index      = 2.8504
  Normalizat = 0.237844
  Prefactor  = 1.35151
 **********
 **   18 **HESSE 
 **********

 FCN=   6157.010     FROM HESSE     STATUS=OK            31 CALLS      244 TOTAL
                     EDM=   .76E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.494        39.153        .10864E-03   -1.4973    
   2  Index         2.8504        1.6468        .81712E-02   -.44440    
   3  Normalizat    .23784        .22772        .51404E-03   -1.2676    
   4  Prefactor     1.3515        .17418        .17421E-03   -.81788    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.59402e-09
Minuit parameter uncertainties:
  1  39.2277
  2  1.68575
  3  0.228619
  4  0.174253
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/280691': 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) = 6157.01024608
delta logL = 0.0832124667204

Extracting fit parameters...

4FGL J1416.1+1320
   Spectrum: PowerLaw
242    Prefactor:  1.349e+01  3.923e+01  1.000e-04  1.000e+04 ( 1.000e-13)
243        Index:  2.850e+00  1.686e+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:  1.352e+00  1.743e-01  0.000e+00  1.000e+01 ( 1.000e+00)
459        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
460        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
457   Normalization:  2.378e-01  2.286e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.37
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/280691/cmap_HighResolution_361929601_362188801_4FGL_J1416.1+1320_daily_bin473.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.22e-03', job_status='DONE', photon_flux_upper_limit='1.20e-07', time_completed='2021-09-09 06:22:20.900445', job_id='280691', GAL2='1.35', fit_tolerance='1e-08', EG2='0.24', EG='0.26', time_epoch_completed='1631193740.9', return_code2='0', ts='0.37', comment='SUCCESS', return_code='0', GAL='1.34', dlogl='8.32e-02', ts2='0.57', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='473' AND source_name='4FGL J1416.1+1320' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 06:22:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0021>
Subject: Job 280691: <4FGL_J1416.1+1320_daily_bin473> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1416.1+1320_daily_bin473 214.029 13.347 361929601 362188801 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 :                                   555.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             245.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   625 sec.
    Turnaround time :                            627 sec.

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

