/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 180 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 = 7474
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1416.1+1320_daily_bin315
RA = 214.029, Dec = 13.347
tmin = 320976001, tmax = 321235201
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='278225', job_status='RUN', time_executed='2021-09-09 06:10:20.563626', time_epoch_executed='1631193020.56' WHERE source_name='4FGL J1416.1+1320' and cadence='daily' and bin_id='315'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/278225

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/278225/ft1_4FGL_J1416.1+1320_daily_bin315.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/278225/ft2_4FGL_J1416.1+1320_daily_bin315.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/278225/ft1_4FGL_J1416.1+1320_daily_bin315.fits outfile=/scratch/kocevski/278225/ft1_filteredMKT_4FGL_J1416.1+1320_daily_bin315.fits ra=214.029 dec=13.347 rad=12.0 tmin=320976001.0 tmax=321235201.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.56
user 3.25
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/278225/ft2_4FGL_J1416.1+1320_daily_bin315.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/278225/ft1_filteredMKT_4FGL_J1416.1+1320_daily_bin315.fits evtable="EVENTS" outfile="/scratch/kocevski/278225/ft1_filtered_4FGL_J1416.1+1320_daily_bin315.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.76
user 0.34
sys 0.17

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/278225/ft1_filtered_4FGL_J1416.1+1320_daily_bin315.fits evtable="EVENTS" scfile=/scratch/kocevski/278225/ft2_4FGL_J1416.1+1320_daily_bin315.fits sctable="SC_DATA" expcube=/scratch/kocevski/278225/ltcube_320976001_321235201_4FGL_J1416.1+1320_daily_bin315.fits outfile=/scratch/kocevski/278225/expmap_320976001_321235201_4FGL_J1416.1+1320_daily_bin315.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/278225/ltcube_320976001_321235201_4FGL_J1416.1+1320_daily_bin315.fits
.....................!
real 191.21
user 185.42
sys 5.08

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/278225/ft1_filtered_4FGL_J1416.1+1320_daily_bin315.fits scfile=/scratch/kocevski/278225/ft2_4FGL_J1416.1+1320_daily_bin315.fits outfile=/scratch/kocevski/278225/cmap_320976001_321235201_4FGL_J1416.1+1320_daily_bin315.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.88
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/278225/ft1_filtered_4FGL_J1416.1+1320_daily_bin315.fits scfile=/scratch/kocevski/278225/ft2_4FGL_J1416.1+1320_daily_bin315.fits outfile=/scratch/kocevski/278225/cmap_HighResolution_320976001_321235201_4FGL_J1416.1+1320_daily_bin315.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.22
user 0.41
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    19.973       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    34.389       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.6547       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .67919E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    55.182       1.0000         .10000E-03   10000.    
    15 'norm      '    .19251E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.5330       1.0000         .10000E-03   10000.    
    17 'Prefactor '    19.668       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.9641       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10947E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1951       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .86728       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=   6655.734     FROM MIGRAD    STATUS=CONVERGED    474 CALLS     2362 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    27.356       -.39506E-06** at limit **
   2  Prefactor     19.973        5.8814       -.48975E-07   -.13558E-04
   3  Prefactor     .10000E-03    1.2699       -.75614E-09** at limit **
   4  Prefactor     .10000E-03    10.406       -.25417E-05** at limit **
   5  Prefactor     34.389        16.556       -.36689E-06   -.21411E-03
   6  Prefactor     .10000E-03    6.4496        .11784E-06** at limit **
   7  Prefactor     .10000E-03    11.694        .55938E-06** at limit **
   8  Prefactor     .10000E-03    5.4094       -.14743E-07** at limit **
   9  norm          .10000E-03    6.9197       -.24371E-06** at limit **
  10  Prefactor     .10000E-03    8.9730        .11313E-05** at limit **
  11  norm          2.6548        1.9064       -.82284E-08    .21809E-03
  12  Prefactor     .10000E-03    1.8954       -.64311E-07** at limit **
  13  norm          .10000E-03    1.4715       -.11134E-05** at limit **
  14  Prefactor     55.172        33.621       -.48426E-05    .20593E-03
  15  norm          .10000E-03    13.526       -.24216E-07** at limit **
  16  Prefactor     2.5559        81.965        .53500E-04    .41485E-04
  17  Prefactor     19.665        21.442        .82259E-06   -.31166E-04
  18  Prefactor     .10000E-03    12.012        .19382E-05** at limit **
  19  Prefactor     4.9353        50.857       -.52386E-04    .20852E-04
  20  Prefactor     .10001E-03    105.43        .90692E-05** at limit **
  21  Normalizat    1.1951        .20790       -.21185E-06    .19674E-03
  22  Prefactor     .86735        .14494        .11465E-05    .10978E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 19.9727
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 34.3886
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.65476
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 55.1716
  norm       = 0.0001
  Prefactor  = 2.55587
  Prefactor  = 19.6651
  Prefactor  = 0.0001
  Prefactor  = 4.93526
  Prefactor  = 0.000100009
  Normalizat = 1.19507
  Prefactor  = 0.867347
 **********
 **   18 **HESSE 
 **********

 FCN=   6655.734     FROM HESSE     STATUS=OK           336 CALLS     2698 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    27.385        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     19.973        5.8898        .89622E-04   -1.4814    
   3  Prefactor     .10000E-03    1.2731        .89777E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    10.462        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     34.389        16.654        .34168E-03   -1.4534    
   6  Prefactor     .10000E-03    6.4551        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    11.707        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    5.4112        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    6.9335        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    9.3317        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.6548        1.9072        .92999E-04   -1.5382    
  12  Prefactor     .10000E-03    1.8997        .10967E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    14.034        .18699E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     55.172        33.506        .53998E-04   -1.4221    
  15  norm          .10000E-03    13.547        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.5559        81.106        .25663E-03   -1.5388    
  17  Prefactor     19.665        21.431        .90313E-04   -1.4821    
  18  Prefactor     .10000E-03    12.071        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     4.9353        51.848        .18051E-03   -1.5264    
  20  Prefactor     .10001E-03    106.56        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.1951        .25419        .27519E-03   -.86755    
  22  Prefactor     .86735        .17695        .22601E-03   -.97292    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.00942e-10
Minuit parameter uncertainties:
  1  7.7613e-06
  2  5.89001
  3  7.58666e-07
  4  6.74337e-05
  5  16.6563
  6  4.03104e-06
  7  2.54492e-05
  8  8.24515e-07
  9  4.89813e-06
  10  8.50761e-05
  11  1.90726
  12  7.30833e-06
  13  0.000178618
  14  33.5174
  15  0.000161983
  16  28.8378
  17  21.4389
  18  0.000142501
  19  32.0279
  20  0.0019757
  21  0.254455
  22  0.177064
Done.

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

Extracting fit parameters...

4FGL J1416.1+1320
   Spectrum: PowerLaw
242    Prefactor:  1.000e-04  2.545e-05  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.673e-01  1.771e-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.195e+00  2.545e-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: 6.62e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.11e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/278225/likelihoodResults_320976001_321235201_4FGL_J1416.1+1320_daily_bin315.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) = 6655.73427326
delta logL = -0.000406920491514

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6655.73386629
delta logL = 4.5061824494e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3566       1.0000          .0000       10.000    
     3 'Normalizat'    1.1951       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86734       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=   6655.734     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      244 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10131E-03    156.89        .18142E-02** at limit **
   2  Index         2.2914        5.5632        .50000        .92218E-05
   3  Normalizat    1.1951        .18069E-01    .27519E-03   -.88449E-04
   4  Prefactor     .86735        .12936E-01    .22601E-03    .29175E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101314
  Index      = 2.29137
  Normalizat = 1.19507
  Prefactor  = 0.867349
 **********
 **   18 **HESSE 
 **********

 FCN=   6655.734     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      273 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10131E-03    644.55        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2914        5.3369        .50000       -.57249    
   3  Normalizat    1.1951        .38786E-01    .11008E-04   -.86755    
   4  Prefactor     .86735        .27768E-01    .90404E-05   -.97292    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.30161e-08
Minuit parameter uncertainties:
  1  0.058844
  2  1082.03
  3  0.0387871
  4  0.0277683
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/278225': 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) = 6655.73386619
delta logL = 1.51183485286e-07

Extracting fit parameters...

4FGL J1416.1+1320
   Spectrum: PowerLaw
242    Prefactor:  1.013e-04  5.884e-02  1.000e-04  1.000e+04 ( 1.000e-13)
243        Index:  2.291e+00  1.082e+03  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.673e-01  2.777e-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.195e+00  3.879e-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/278225/cmap_HighResolution_320976001_321235201_4FGL_J1416.1+1320_daily_bin315.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.11e-03', job_status='DONE', photon_flux_upper_limit='6.62e-08', time_completed='2021-09-09 06:20:03.638651', job_id='278225', GAL2='0.87', fit_tolerance='1e-08', EG2='1.20', EG='1.20', time_epoch_completed='1631193603.64', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='1.51e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='315' AND source_name='4FGL J1416.1+1320' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 06:20:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0282>
Subject: Job 278225: <4FGL_J1416.1+1320_daily_bin315> in cluster <slac> Done

Job <4FGL_J1416.1+1320_daily_bin315> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep  9 06:06:40 2021
Job was executed on host(s) <bullet0282>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 06:06:42 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:06:42 2021
Terminated at Thu Sep  9 06:20:04 2021
Results reported at Thu Sep  9 06:20:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1416.1+1320_daily_bin315 214.029 13.347 320976001 321235201 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 :                                   567.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             307.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   802 sec.
    Turnaround time :                            804 sec.

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

