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


Performing analysis on: 4FGL_J1416.1+1320_daily_bin345
RA = 214.029, Dec = 13.347
tmin = 328752001, tmax = 329011201
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='278268', job_status='RUN', time_executed='2021-09-09 06:09:22.137348', time_epoch_executed='1631192962.14' WHERE source_name='4FGL J1416.1+1320' and cadence='daily' and bin_id='345'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/278268

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/278268/ft1_4FGL_J1416.1+1320_daily_bin345.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/278268/ft2_4FGL_J1416.1+1320_daily_bin345.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/278268/ft1_4FGL_J1416.1+1320_daily_bin345.fits outfile=/scratch/kocevski/278268/ft1_filteredMKT_4FGL_J1416.1+1320_daily_bin345.fits ra=214.029 dec=13.347 rad=12.0 tmin=328752001.0 tmax=329011201.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.52
user 3.23
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/278268/ft1_filtered_4FGL_J1416.1+1320_daily_bin345.fits" evtable="EVENTS" scfile=/scratch/kocevski/278268/ft2_4FGL_J1416.1+1320_daily_bin345.fits sctable="SC_DATA" outfile=/scratch/kocevski/278268/ltcube_328752001_329011201_4FGL_J1416.1+1320_daily_bin345.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/278268/ft2_4FGL_J1416.1+1320_daily_bin345.fits
.....................!
real 11.91
user 11.36
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/278268/ft1_filtered_4FGL_J1416.1+1320_daily_bin345.fits evtable="EVENTS" scfile=/scratch/kocevski/278268/ft2_4FGL_J1416.1+1320_daily_bin345.fits sctable="SC_DATA" expcube=/scratch/kocevski/278268/ltcube_328752001_329011201_4FGL_J1416.1+1320_daily_bin345.fits outfile=/scratch/kocevski/278268/expmap_328752001_329011201_4FGL_J1416.1+1320_daily_bin345.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/278268/ltcube_328752001_329011201_4FGL_J1416.1+1320_daily_bin345.fits
.....................!
real 189.75
user 185.15
sys 4.24

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/278268/ft1_filtered_4FGL_J1416.1+1320_daily_bin345.fits scfile=/scratch/kocevski/278268/ft2_4FGL_J1416.1+1320_daily_bin345.fits outfile=/scratch/kocevski/278268/cmap_328752001_329011201_4FGL_J1416.1+1320_daily_bin345.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.70
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/278268/ft1_filtered_4FGL_J1416.1+1320_daily_bin345.fits scfile=/scratch/kocevski/278268/ft2_4FGL_J1416.1+1320_daily_bin345.fits outfile=/scratch/kocevski/278268/cmap_HighResolution_328752001_329011201_4FGL_J1416.1+1320_daily_bin345.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.54
user 0.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13277E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.3360       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .18488E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.107       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10307E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10110E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    50.719       1.0000         .10000E-03   10000.    
     9 'norm      '    .10094E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .24732       1.0000         .10000E-03   10000.    
    11 'norm      '    5.6789       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11499E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    5.9903       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10495E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    15.075       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    21.382       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10224E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10237E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2620       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .87988       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=   6623.225     FROM MIGRAD    STATUS=CONVERGED    878 CALLS     3113 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    29.731        .15221    ** at limit **
   2  Prefactor     5.3374        3.9064        .13288E-03   -.38202E-03
   3  Prefactor     .10019E-03    4.6848        .48596E-01** at limit **
   4  Prefactor     12.109        14.812        .11513E-03   -.12373E-03
   5  Prefactor     .10000E-03    14.739        .18142E-02** at limit **
   6  Prefactor     .10000E-03    6.6629        .18142E-02** at limit **
   7  Prefactor     .10001E-03    42.685        .18142E-02** at limit **
   8  Prefactor     50.712        32.037        .56312E-04   -.18562E-03
   9  norm          .10000E-03    25.356        .18142E-02** at limit **
  10  Prefactor     .24796        15.945        .31598E-02    .21422E-03
  11  norm          5.6789        2.8495        .94557E-04   -.86326E-04
  12  Prefactor     .10001E-03    31.878        .31696E-02** at limit **
  13  norm          5.9899        3.2404        .10346E-03   -.45646E-03
  14  Prefactor     .10000E-03    12.940        .18142E-02** at limit **
  15  norm          15.075        14.370        .10316E-03   -.12674E-04
  16  Prefactor     .10000E-03    21.391        .18142E-02** at limit **
  17  Prefactor     21.393        28.215        .86621E-04    .43180E-04
  18  Prefactor     .10000E-03    18.791        .18142E-02** at limit **
  19  Prefactor     .10000E-03    46.026        .18142E-02** at limit **
  20  Prefactor     .10000E-03    21.598        .18142E-02** at limit **
  21  Normalizat    1.2620        .25371        .27376E-03   -.81928E-03
  22  Prefactor     .87985        .18164        .23016E-03   -.70370E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100018
  Prefactor  = 5.3374
  Prefactor  = 0.00010019
  Prefactor  = 12.1088
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 50.7124
  norm       = 0.000100001
  Prefactor  = 0.24796
  norm       = 5.67894
  Prefactor  = 0.000100014
  norm       = 5.98991
  Prefactor  = 0.0001
  norm       = 15.0753
  Prefactor  = 0.000100001
  Prefactor  = 21.3933
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.26205
  Prefactor  = 0.879847
 **********
 **   18 **HESSE 
 **********

 FCN=   6623.225     FROM HESSE     STATUS=OK           342 CALLS     3455 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    29.580        .15299       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     5.3374        3.9062        .53150E-05   -1.5246    
   3  Prefactor     .10019E-03    4.5656        .49485E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     12.109        14.812        .46051E-05   -1.5012    
   5  Prefactor     .10000E-03    14.745        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.6630        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10001E-03    42.702        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     50.712        32.035        .11262E-04   -1.4283    
   9  norm          .10000E-03    25.362        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .24796        16.089        .12639E-03   -1.5608    
  11  norm          5.6789        2.8494        .37823E-05   -1.5231    
  12  Prefactor     .10001E-03    33.025        .12679E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          5.9899        3.2402        .41384E-05   -1.5218    
  14  Prefactor     .10000E-03    12.940        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          15.075        14.370        .41263E-05   -1.4931    
  16  Prefactor     .10000E-03    21.397        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     21.393        28.211        .34648E-05   -1.4783    
  18  Prefactor     .10000E-03    18.805        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    46.053        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    21.598        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.2620        .25391        .54752E-04   -.84707    
  22  Prefactor     .87985        .18172        .46032E-04   -.96849    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.74517e-09
Minuit parameter uncertainties:
  1  0.00146879
  2  3.90635
  3  0.00186414
  4  14.8168
  5  0.0001146
  6  1.02654e-07
  7  0.000944694
  8  32.0459
  9  0.0003103
  10  3.99505
  11  2.84949
  12  0.00134594
  13  3.24029
  14  5.48443e-05
  15  14.373
  16  0.000250929
  17  28.229
  18  1.59289e-05
  19  0.000217657
  20  0.000147809
  21  0.254159
  22  0.18185
Done.

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

Extracting fit parameters...

4FGL J1416.1+1320
   Spectrum: PowerLaw
242    Prefactor:  1.000e-04  9.447e-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.798e-01  1.818e-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.262e+00  2.542e-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: 8.59e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.62e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/278268/likelihoodResults_328752001_329011201_4FGL_J1416.1+1320_daily_bin345.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) = 6623.22544393
delta logL = -0.000111556035336

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6623.22533291
delta logL = -5.32371814188e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5734       1.0000          .0000       10.000    
     3 'Normalizat'    1.2621       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87985       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=   6623.225     FROM MIGRAD    STATUS=CONVERGED    108 CALLS      305 TOTAL
                     EDM=   .24E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .13624E-03    6.7735        .13617    ** at limit **
   2  Index         1.6595        5.3196        .50000       -.23838E-06
   3  Normalizat    1.2621        .30922E-02    .27376E-03   -.87209E-04
   4  Prefactor     .87984        .22273E-02    .23016E-03   -.96319E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000136236
  Index      = 1.65951
  Normalizat = 1.26205
  Prefactor  = 0.879845
 **********
 **   18 **HESSE 
 **********

 FCN=   6623.225     FROM HESSE     STATUS=NOT POSDEF    39 CALLS      344 TOTAL
                     EDM=   .33E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .13624E-03    8.4722        .12423       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.6595        5.4924        .50000       -.73165    
   3  Normalizat    1.2621        .33037E-02    .10950E-04   -.84706    
   4  Prefactor     .87984        .23797E-02    .92064E-05   -.96849    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.3329e-11
Minuit parameter uncertainties:
  1  0.0350477
  2  100.644
  3  0.00330367
  4  0.00237968
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/278268': 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) = 6623.22533116
delta logL = 1.21771063277e-06

Extracting fit parameters...

4FGL J1416.1+1320
   Spectrum: PowerLaw
242    Prefactor:  1.362e-04  3.505e-02  1.000e-04  1.000e+04 ( 1.000e-13)
243        Index:  1.660e+00  1.006e+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.798e-01  2.380e-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.262e+00  3.304e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/278268/cmap_HighResolution_328752001_329011201_4FGL_J1416.1+1320_daily_bin345.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.62e-03', job_status='DONE', photon_flux_upper_limit='8.59e-08', time_completed='2021-09-09 06:19:34.332063', job_id='278268', GAL2='0.88', fit_tolerance='1e-08', EG2='1.26', EG='1.26', time_epoch_completed='1631193574.33', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='1.22e-06', ts2='0.00', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='345' AND source_name='4FGL J1416.1+1320' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 06:19:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0114>
Subject: Job 278268: <4FGL_J1416.1+1320_daily_bin345> in cluster <slac> Done

Job <4FGL_J1416.1+1320_daily_bin345> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep  9 06:06:43 2021
Job was executed on host(s) <bullet0114>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 06:06:44 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:44 2021
Terminated at Thu Sep  9 06:19:39 2021
Results reported at Thu Sep  9 06:19:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1416.1+1320_daily_bin345 214.029 13.347 328752001 329011201 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 :                                   608.08 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             250.05 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   774 sec.
    Turnaround time :                            776 sec.

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

