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


Performing analysis on: 4FGL_J1416.1+1320_daily_bin908
RA = 214.029, Dec = 13.347
tmin = 474681601, tmax = 474940801
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='443167', job_status='RUN', time_executed='2021-09-09 14:48:34.400333', time_epoch_executed='1631224114.4' WHERE source_name='4FGL J1416.1+1320' and cadence='daily' and bin_id='908'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/443167

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/443167/ft1_4FGL_J1416.1+1320_daily_bin908.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/443167/ft2_4FGL_J1416.1+1320_daily_bin908.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/443167/ft1_4FGL_J1416.1+1320_daily_bin908.fits outfile=/scratch/kocevski/443167/ft1_filteredMKT_4FGL_J1416.1+1320_daily_bin908.fits ra=214.029 dec=13.347 rad=12.0 tmin=474681601.0 tmax=474940801.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.65
user 3.42
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/443167/ft2_4FGL_J1416.1+1320_daily_bin908.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/443167/ft1_filteredMKT_4FGL_J1416.1+1320_daily_bin908.fits evtable="EVENTS" outfile="/scratch/kocevski/443167/ft1_filtered_4FGL_J1416.1+1320_daily_bin908.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.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/443167/ft1_filtered_4FGL_J1416.1+1320_daily_bin908.fits" evtable="EVENTS" scfile=/scratch/kocevski/443167/ft2_4FGL_J1416.1+1320_daily_bin908.fits sctable="SC_DATA" outfile=/scratch/kocevski/443167/ltcube_474681601_474940801_4FGL_J1416.1+1320_daily_bin908.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/443167/ft2_4FGL_J1416.1+1320_daily_bin908.fits
.....................!
real 15.89
user 15.21
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/443167/ft1_filtered_4FGL_J1416.1+1320_daily_bin908.fits evtable="EVENTS" scfile=/scratch/kocevski/443167/ft2_4FGL_J1416.1+1320_daily_bin908.fits sctable="SC_DATA" expcube=/scratch/kocevski/443167/ltcube_474681601_474940801_4FGL_J1416.1+1320_daily_bin908.fits outfile=/scratch/kocevski/443167/expmap_474681601_474940801_4FGL_J1416.1+1320_daily_bin908.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/443167/ltcube_474681601_474940801_4FGL_J1416.1+1320_daily_bin908.fits
.....................!
real 190.99
user 186.01
sys 4.53

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/443167/ft1_filtered_4FGL_J1416.1+1320_daily_bin908.fits scfile=/scratch/kocevski/443167/ft2_4FGL_J1416.1+1320_daily_bin908.fits outfile=/scratch/kocevski/443167/cmap_474681601_474940801_4FGL_J1416.1+1320_daily_bin908.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.58
user 0.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/443167/ft1_filtered_4FGL_J1416.1+1320_daily_bin908.fits scfile=/scratch/kocevski/443167/ft2_4FGL_J1416.1+1320_daily_bin908.fits outfile=/scratch/kocevski/443167/cmap_HighResolution_474681601_474940801_4FGL_J1416.1+1320_daily_bin908.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=214.029 yref=13.347 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .60004E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.9328       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10095E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    22.144       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.2081       1.0000         .10000E-03   10000.    
    11 'norm      '    3.1410       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.9547       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    52.326       1.0000         .10000E-03   10000.    
    15 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    20.327       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    32.885       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.3119       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .86208       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=   6766.182     FROM MIGRAD    STATUS=CONVERGED    468 CALLS     2367 TOTAL
                     EDM=   .82E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    33.313       -.34156E-05** at limit **
   2  Prefactor     .10000E-03    1.7214       -.25099E-07** at limit **
   3  Prefactor     .10000E-03    1.3528       -.48085E-07** at limit **
   4  Prefactor     .10005E-03    6.8941        .25808E-07** at limit **
   5  Prefactor     .10000E-03    4.4389       -.76372E-08** at limit **
   6  Prefactor     9.9337        15.898       -.18321E-05   -.55560E-03
   7  Prefactor     .10000E-03    41.247        .47037E-05** at limit **
   8  Prefactor     .10000E-03    9.8362       -.24471E-05** at limit **
   9  norm          22.145        20.986        .36484E-06   -.76868E-05
  10  Prefactor     4.2081        5.6106       -.29088E-05   -.72056E-05
  11  norm          3.1412        2.0781       -.74899E-07   -.98172E-05
  12  Prefactor     2.9558        6.4086       -.23860E-05   -.32397E-03
  13  norm          .10000E-03    .94047       -.13699E-07** at limit **
  14  Prefactor     52.320        32.639       -.44927E-05    .69568E-04
  15  norm          .10000E-03    9.9956        .29853E-05** at limit **
  16  Prefactor     .10000E-03    16.716        .10621E-06** at limit **
  17  Prefactor     20.328        24.163        .10729E-05   -.24870E-04
  18  Prefactor     .10000E-03    33.525        .14162E-05** at limit **
  19  Prefactor     32.865        27.355       -.12700E-04    .33092E-03
  20  Prefactor     .10000E-03    45.203       -.30535E-05** at limit **
  21  Normalizat    1.3118        .19980        .22142E-05   -.27105E-04
  22  Prefactor     .86205        .14653        .93465E-06    .80570E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100048
  Prefactor  = 0.0001
  Prefactor  = 9.93372
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 22.1454
  Prefactor  = 4.20808
  norm       = 3.14124
  Prefactor  = 2.9558
  norm       = 0.0001
  Prefactor  = 52.3197
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.3282
  Prefactor  = 0.000100004
  Prefactor  = 32.8645
  Prefactor  = 0.000100002
  Normalizat = 1.3118
  Prefactor  = 0.862046
 **********
 **   18 **HESSE 
 **********

 FCN=   6766.182     FROM HESSE     STATUS=OK           338 CALLS     2705 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    33.487        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    1.7776        .21073E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.3581        .93426E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10005E-03    39.853        .41626E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.4601        .16923E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     9.9337        16.114        .63572E-03   -1.5078    
   7  Prefactor     .10000E-03    41.661        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    9.8473        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          22.145        20.992        .85119E-04   -1.4766    
  10  Prefactor     4.2081        5.5870        .19645E-03   -1.5298    
  11  norm          3.1412        2.0782        .93882E-04   -1.5353    
  12  Prefactor     2.9558        6.4395        .23626E-03   -1.5364    
  13  norm          .10000E-03    .95157        .77869E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     52.320        32.628        .55445E-04   -1.4260    
  15  norm          .10000E-03    10.025        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    16.797        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     20.328        24.142        .88839E-04   -1.4806    
  18  Prefactor     .10000E-03    34.641        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     32.865        27.032        .69876E-04   -1.4561    
  20  Prefactor     .10000E-03    45.219        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.3118        .24319        .25828E-03   -.83215    
  22  Prefactor     .86205        .17896        .23045E-03   -.97480    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.63008e-09
Minuit parameter uncertainties:
  1  6.75748e-05
  2  8.02648e-06
  3  3.09977e-06
  4  0.0027698
  5  1.34104e-05
  6  16.1208
  7  0.000183217
  8  3.16291e-05
  9  20.9994
  10  5.58767
  11  2.07825
  12  6.44096
  13  1.51221e-06
  14  32.6396
  15  2.55639e-05
  16  0.000183108
  17  24.154
  18  0.000735221
  19  27.0426
  20  0.000606996
  21  0.243405
  22  0.179079
Done.

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

Extracting fit parameters...

4FGL J1416.1+1320
   Spectrum: PowerLaw
242    Prefactor:  1.000e-04  1.832e-04  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.620e-01  1.791e-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.312e+00  2.434e-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.74e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.97e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/443167/likelihoodResults_474681601_474940801_4FGL_J1416.1+1320_daily_bin908.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) = 6766.18227013
delta logL = -0.000114301127724

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6766.18215633
delta logL = -4.97076143802e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10547E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6080       1.0000          .0000       10.000    
     3 'Normalizat'    1.3118       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86205       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=   6766.182     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      288 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10266E-03    .62431        .10522    ** at limit **
   2  Index         2.5303        5.2905        .50000        .92158E-05
   3  Normalizat    1.3118        .10135E-02    .25828E-03    .15686E-03
   4  Prefactor     .86204        .75484E-03    .23045E-03   -.24242E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102663
  Index      = 2.5303
  Normalizat = 1.3118
  Prefactor  = 0.86204
 **********
 **   18 **HESSE 
 **********

 FCN=   6766.182     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      319 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10266E-03    61.348        .60468E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5303        6.8512        .50000       -.51662    
   3  Normalizat    1.3118        .64135E-02    .51657E-04   -.83215    
   4  Prefactor     .86204        .47766E-02    .92181E-05   -.97480    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.7332e-10
Minuit parameter uncertainties:
  1  0.0255876
  2  176.391
  3  0.00641351
  4  0.00477659
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/443167': 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) = 6766.18215609
delta logL = -2.61640707322e-07

Extracting fit parameters...

4FGL J1416.1+1320
   Spectrum: PowerLaw
242    Prefactor:  1.027e-04  2.559e-02  1.000e-04  1.000e+04 ( 1.000e-13)
243        Index:  2.530e+00  1.764e+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.620e-01  4.777e-03  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.312e+00  6.414e-03  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/443167/cmap_HighResolution_474681601_474940801_4FGL_J1416.1+1320_daily_bin908.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.97e-03', job_status='DONE', photon_flux_upper_limit='7.74e-08', time_completed='2021-09-09 14:58:35.213509', job_id='443167', GAL2='0.86', fit_tolerance='1e-08', EG2='1.31', EG='1.31', time_epoch_completed='1631224715.21', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='-2.62e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='908' AND source_name='4FGL J1416.1+1320' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 14:58:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0264>
Subject: Job 443167: <4FGL_J1416.1+1320_daily_bin908> in cluster <slac> Done

Job <4FGL_J1416.1+1320_daily_bin908> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Thu Sep  9 14:45:58 2021
Job was executed on host(s) <bullet0264>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 14:46: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 14:46:00 2021
Terminated at Thu Sep  9 14:58:35 2021
Results reported at Thu Sep  9 14:58:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1416.1+1320_daily_bin908 214.029 13.347 474681601 474940801 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.12 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             289.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   755 sec.
    Turnaround time :                            757 sec.

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

