aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 20 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 = 7488
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1807.2+6429_daily_bin1668
RA = 271.809, Dec = 64.4988
tmin = 671673601, tmax = 671932801
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='555932', job_status='RUN', time_executed='2022-04-18 03:09:22.383879', time_epoch_executed='1650276562.38' WHERE source_name='4FGL J1807.2+6429' and cadence='daily' and bin_id='1668'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/555932

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/555932/ft1_4FGL_J1807.2+6429_daily_bin1668.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/555932/ft2_4FGL_J1807.2+6429_daily_bin1668.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/555932/ft1_4FGL_J1807.2+6429_daily_bin1668.fits outfile=/scratch/kocevski/555932/ft1_filteredMKT_4FGL_J1807.2+6429_daily_bin1668.fits ra=271.809 dec=64.4988 rad=12.0 tmin=671673601.0 tmax=671932801.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.61
user 3.37
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/555932/ft2_4FGL_J1807.2+6429_daily_bin1668.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/555932/ft2_4FGL_J1807.2+6429_daily_bin1668.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/555932/ft1_filteredMKT_4FGL_J1807.2+6429_daily_bin1668.fits evtable="EVENTS" outfile="/scratch/kocevski/555932/ft1_filtered_4FGL_J1807.2+6429_daily_bin1668.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.51
user 0.34
sys 0.16

Number of photons that the gtmktime cut: 1132

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/555932/ft1_filtered_4FGL_J1807.2+6429_daily_bin1668.fits" evtable="EVENTS" scfile=/scratch/kocevski/555932/ft2_4FGL_J1807.2+6429_daily_bin1668.fits sctable="SC_DATA" outfile=/scratch/kocevski/555932/ltcube_671673601_671932801_4FGL_J1807.2+6429_daily_bin1668.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/555932/ft2_4FGL_J1807.2+6429_daily_bin1668.fits
.....................!
real 14.85
user 14.46
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/555932/ft1_filtered_4FGL_J1807.2+6429_daily_bin1668.fits evtable="EVENTS" scfile=/scratch/kocevski/555932/ft2_4FGL_J1807.2+6429_daily_bin1668.fits sctable="SC_DATA" expcube=/scratch/kocevski/555932/ltcube_671673601_671932801_4FGL_J1807.2+6429_daily_bin1668.fits outfile=/scratch/kocevski/555932/expmap_671673601_671932801_4FGL_J1807.2+6429_daily_bin1668.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/555932/ltcube_671673601_671932801_4FGL_J1807.2+6429_daily_bin1668.fits
.....................!
real 194.58
user 187.99
sys 6.04

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 196 point sources and 0 extended sources

Setting source of interest to:
4FGL J1807.2+6429 @ 271.809 64.4988

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/555932/ft1_filtered_4FGL_J1807.2+6429_daily_bin1668.fits scfile=/scratch/kocevski/555932/ft2_4FGL_J1807.2+6429_daily_bin1668.fits outfile=/scratch/kocevski/555932/cmap_671673601_671932801_4FGL_J1807.2+6429_daily_bin1668.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=271.809 yref=64.4988 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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/555932/ft1_filtered_4FGL_J1807.2+6429_daily_bin1668.fits scfile=/scratch/kocevski/555932/ft2_4FGL_J1807.2+6429_daily_bin1668.fits outfile=/scratch/kocevski/555932/cmap_HighResolution_671673601_671932801_4FGL_J1807.2+6429_daily_bin1668.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=271.809 yref=64.4988 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.57
user 0.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/555932/ft1_filtered_4FGL_J1807.2+6429_daily_bin1668.fits evtable="EVENTS" scfile=/scratch/kocevski/555932/ft2_4FGL_J1807.2+6429_daily_bin1668.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/555932/Model_4FGL_J1807.2+6429_daily_bin1668.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/555932/ft1_filtered_4FGL_J1807.2+6429_daily_bin1668.fits.....................!
real 119.60
user 117.99
sys 1.29

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/555932/ft1_filtered_4FGL_J1807.2+6429_daily_bin1668.fits', '/scratch/kocevski/555932/ft2_4FGL_J1807.2+6429_daily_bin1668.fits', expMap='/scratch/kocevski/555932/expmap_671673601_671932801_4FGL_J1807.2+6429_daily_bin1668.fits', expCube='/scratch/kocevski/555932/ltcube_671673601_671932801_4FGL_J1807.2+6429_daily_bin1668.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/555932/Model_4FGL_J1807.2+6429_daily_bin1668.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1807.2+6429'

4FGL J1807.2+6429
   Spectrum: PowerLaw
365    Prefactor:  1.727e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
366        Index:  1.991e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
367        Scale:  3.180e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/555932/ft1_filtered_4FGL_J1807.2+6429_daily_bin1668.fits
Spacecraft file(s): /scratch/kocevski/555932/ft2_4FGL_J1807.2+6429_daily_bin1668.fits
Exposure map: /scratch/kocevski/555932/expmap_671673601_671932801_4FGL_J1807.2+6429_daily_bin1668.fits
Exposure cube: /scratch/kocevski/555932/ltcube_671673601_671932801_4FGL_J1807.2+6429_daily_bin1668.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/555932/Model_4FGL_J1807.2+6429_daily_bin1668.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) = 11680.5996938

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    5.2705       1.0000         .10000E-03   10000.    
     3 'norm      '    11.650       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10178E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.3137       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.3477       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.9188       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10598       1.0000         .10000E-03   10000.    
    12 'Prefactor '    32.564       1.0000         .10000E-03   10000.    
    13 'norm      '    .44512       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    19.012       1.0000         .10000E-03   10000.    
    17 'norm      '    .12273E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    22.966       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    18.211       1.0000         .10000E-03   10000.    
    21 'norm      '    10.363       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    8.6932       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10599E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .87085       1.0000         .10000E-03   10000.    
    29 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    5.7233       1.0000         .10000E-03   10000.    
    32 'Prefactor '    15.975       1.0000         .10000E-03   10000.    
    33 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    34 'Normalizat'    1.0538       1.0000         .10000E-01   10.000    
    35 'Prefactor '    .97660       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6480E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   11680.60     FROM MIGRAD    STATUS=CONVERGED   1041 CALLS     5255 TOTAL
                     EDM=   .68E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    85.588       -.51147E-06** at limit **
   2  Prefactor     5.2713        22.277        .16627E-05   -.11190E-04
   3  norm          11.649        8.3667        .45763E-05    .16518E-03
   4  Prefactor     .10000E-03    18.205       -.57576E-06** at limit **
   5  norm          .10000E-03    .29809        .69539E-07** at limit **
   6  Prefactor     4.3139        7.2206       -.10839E-05   -.17793E-03
   7  Prefactor     4.3553        15.932       -.27609E-06   -.65483E-04
   8  Prefactor     2.9150        2.1970        .49290E-06   -.26846E-02
   9  Prefactor     .10000E-03    4.7240       -.10230E-06** at limit **
  10  Prefactor     .10000E-03    46.515        .12444E-06** at limit **
  11  Prefactor     .10125E-03    33.301        .34935E-06** at limit **
  12  Prefactor     32.568        74.778        .24237E-05   -.25617E-05
  13  norm          .44396        1.1935        .13075E-06   -.21683E-03
  14  Prefactor     .10000E-03    12.146       -.17132E-06** at limit **
  15  Prefactor     .10000E-03    6.7291       -.11336E-07** at limit **
  16  Prefactor     19.012        13.714       -.97943E-06   -.42322E-04
  17  norm          .10000E-03    1.3585        .76024E-07** at limit **
  18  Prefactor     22.965        25.257        .23691E-05    .95909E-05
  19  Prefactor     .10000E-03    259.25        .10266E-05** at limit **
  20  Prefactor     18.206        6.9010       -.16124E-06   -.87946E-04
  21  norm          10.362        6.5077        .10521E-05    .39102E-04
  22  Prefactor     .10000E-03    11.359        .15194E-06** at limit **
  23  Prefactor     .10000E-03    9.9676        .16125E-09** at limit **
  24  Prefactor     8.6897        13.604        .16393E-05    .46089E-04
  25  Prefactor     .10000E-03    38.466       -.40825E-06** at limit **
  26  Prefactor     .10000E-03    20.442        .28945E-06** at limit **
  27  norm          .10000E-03    1.4556       -.12638E-06** at limit **
  28  norm          .87082        1.4793        .68084E-07    .20357E-03
  29  norm          .10000E-03    1.4388        .14606E-07** at limit **
  30  norm          .10000E-03    8.2260        .86386E-07** at limit **
  31  Prefactor     5.7233        8.2680        .37285E-06   -.68407E-05
  32  Prefactor     15.975        6.4742       -.11250E-07   -.30255E-04
  33  norm          .10000E-03    .70362        .17777E-07** at limit **
  34  Normalizat    1.0539        .17917       -.20349E-05    .58614E-05
  35  Prefactor     .97655        .10276        .14260E-06   -.17418E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 5.27131
  norm       = 11.6491
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.31394
  Prefactor  = 4.35527
  Prefactor  = 2.915
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000101253
  Prefactor  = 32.5681
  norm       = 0.443962
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.0121
  norm       = 0.0001
  Prefactor  = 22.9654
  Prefactor  = 0.0001
  Prefactor  = 18.2063
  norm       = 10.3624
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.6897
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.870822
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 5.72329
  Prefactor  = 15.975
  norm       = 0.0001
  Normalizat = 1.05387
  Prefactor  = 0.976554
 **********
 **   18 **HESSE 
 **********

 FCN=   11680.60     FROM HESSE     STATUS=OK           788 CALLS     6043 TOTAL
                     EDM=   .33E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    85.605        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     5.2713        22.066        .17508E-03   -1.5249    
   3  norm          11.649        8.3711        .11737E-03   -1.5025    
   4  Prefactor     .10000E-03    18.435        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    .45397        .10680E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.3139        7.1593        .19396E-03   -1.5293    
   7  Prefactor     4.3553        15.218        .19318E-03   -1.5291    
   8  Prefactor     2.9150        5.4343        .11890E-02   -1.5366    
   9  Prefactor     .10000E-03    4.7555        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    46.686        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10125E-03    30.559        .18999       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     32.568        74.999        .70219E-04   -1.4566    
  13  norm          .44396        1.2550        .18418E-02   -1.5575    
  14  Prefactor     .10000E-03    12.181        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    6.8187        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     19.012        13.738        .91857E-04   -1.4836    
  17  norm          .10000E-03    2.6879        .24023E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     22.965        25.266        .83583E-04   -1.4749    
  19  Prefactor     .10000E-03    260.18        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     18.206        6.8204        .93854E-04   -1.4854    
  21  norm          10.362        6.5037        .12447E-03   -1.5064    
  22  Prefactor     .10000E-03    11.383        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    10.047        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     8.6897        13.016        .13595E-03   -1.5118    
  25  Prefactor     .10000E-03    38.499        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    20.443        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    3.5416        .24022E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .87082        1.0968        .16669E-02   -1.5521    
  29  norm          .10000E-03    1.4415        .12660E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  norm          .10000E-03    8.2968        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     5.7233        8.2649        .16790E-03   -1.5229    
  32  Prefactor     15.975        6.4832        .10021E-03   -1.4908    
  33  norm          .10000E-03    .72548        .17697E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Normalizat    1.0539        .21346        .33568E-03   -.91247    
  35  Prefactor     .97655        .12052        .21484E-03   -.93515    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.2741e-08
Minuit parameter uncertainties:
  1  5.6507e-06
  2  21.5837
  3  8.3719
  4  5.12113e-05
  5  5.21492e-06
  6  7.16076
  7  15.2315
  8  5.43523
  9  1.04558e-06
  10  8.60595e-06
  11  0.0123813
  12  75.2177
  13  1.25505
  14  1.06638e-05
  15  1.63487e-06
  16  13.7402
  17  1.45596e-05
  18  25.2776
  19  4.10226e-06
  20  6.82065
  21  6.50416
  22  3.64303e-06
  23  8.57769e-06
  24  13.0202
  25  5.28099e-06
  26  3.57114e-06
  27  3.86455e-05
  28  1.09683
  29  9.10195e-07
  30  1.16232e-05
  31  8.26651
  32  6.48349
  33  7.84963e-07
  34  0.213636
  35  0.120555
Done.

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

Extracting fit parameters...

4FGL J1807.2+6429
   Spectrum: PowerLaw
365    Prefactor:  2.297e+01  2.528e+01  1.000e-04  1.000e+04 ( 1.000e-14)
366        Index:  1.991e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
367        Scale:  3.180e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
645    Prefactor:  9.766e-01  1.206e-01  0.000e+00  1.000e+01 ( 1.000e+00)
646        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
647        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
644   Normalization:  1.054e+00  2.136e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.06
Ra Dec: 271.809 64.499
Photon Index (Fixed Index): 1.99 +/- 0.00
Photon Flux (Fixed Index): 2.27e-08 +/- 2.50e-08
Energy Flux (Fixed Index): 1.60e-05 +/- 1.77e-05

TS (Fixed Index): 1.06
Ra Dec: 271.809 64.499
Photon Flux Upper Limit: 7.62e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.71e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/555932/likelihoodResults_671673601_671932801_4FGL_J1807.2+6429_daily_bin1668.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) = 11678.5087992
delta logL = 2.08968949697

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 11678.4776469
delta logL = 2.12084179606

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .73088       1.0000         .10000E-03   10000.    
     2 'Index     '    3.6610       1.0000          .0000       10.000    
     3 'Normalizat'    .96836       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0085       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6480E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   11678.48     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      253 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .73000        4.1204        .10275E-01    .15783E-02
   2  Index         3.6616        1.2445        .81329E-01    .42590E-03
   3  Normalizat    .96820        .44560E-01    .78604E-01    .34244E-04
   4  Prefactor     1.0086        .27507E-01    .43553E-01    .49809E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.729999
  Index      = 3.66163
  Normalizat = 0.968199
  Prefactor  = 1.00861
 **********
 **   18 **HESSE 
 **********

 FCN=   11678.48     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      288 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .73000        9.6896        .46924E-03   -1.5537    
   2  Index         3.6616        2.3126        .30185E-02   -.27098    
   3  Normalizat    .96820        .15525        .34790E-03   -.94104    
   4  Prefactor     1.0086        .95430E-01    .21163E-03   -.92443    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.42893e-10
Minuit parameter uncertainties:
  1  5.31986
  2  2.4121
  3  0.155322
  4  0.0954463
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/555932': 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) = 11678.4776456
delta logL = 2.12084308647

Extracting fit parameters...

4FGL J1807.2+6429
   Spectrum: PowerLaw
365    Prefactor:  7.300e-01  5.320e+00  1.000e-04  1.000e+04 ( 1.000e-14)
366        Index:  3.662e+00  2.412e+00  0.000e+00  1.000e+01 (-1.000e+00)
367        Scale:  3.180e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
645    Prefactor:  1.009e+00  9.545e-02  0.000e+00  1.000e+01 ( 1.000e+00)
646        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
647        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
644   Normalization:  9.682e-01  1.553e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.52
Ra Dec: 271.809 64.499
Photon Index (Free Index): 3.66 +/- 2.41
Photon Flux (Free Index): 8.72e-08 +/- 4.55e-08
Energy Flux (Free Index): 1.39e-05 +/- 8.69e-06

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/555932/cmap_HighResolution_671673601_671932801_4FGL_J1807.2+6429_daily_bin1668.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.71e-03', comment='SUCCESS', photon_flux='2.27e-08', energy_flux2='1.39e-05', photon_flux_error='2.50e-08', dlogl='2.12e+00', energy_flux='1.60e-05', photon_flux2='8.72e-08', job_status='DONE', time_completed='2022-04-18 03:40:54.886150', photon_index_error2='2.41', photon_index2='3.66', ts='1.06', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='7.62e-08', energy_flux_error2='8.69e-06', EG='1.05', time_epoch_completed='1650278454.89', return_code='0', job_id='555932', GAL2='1.01', EG2='0.97', return_code2='102', energy_flux_error='1.77e-05', photon_flux_error2='4.55e-08', ts2='5.52', photon_index='1.99' WHERE bin_id='1668' AND source_name='4FGL J1807.2+6429' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Apr 18 03:40:54 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0114>
Subject: Job 555761: <4FGL_J1807.2+6429_daily_bin1668> in cluster <slac> Done

Job <4FGL_J1807.2+6429_daily_bin1668> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Apr 18 00:07:44 2022
Job was executed on host(s) <bullet0114>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Apr 18 03:04:15 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Apr 18 03:04:15 2022
Terminated at Mon Apr 18 03:37:24 2022
Results reported at Mon Apr 18 03:37:24 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1807.2+6429_daily_bin1668 271.809 64.4988 671673601 671932801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1807.2+6429 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   1889.26 sec.
    Max Memory :                                 619 MB
    Average Memory :                             316.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1989 sec.
    Turnaround time :                            12580 sec.

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


------------------------------------------------------------
Sender: LSF System <scs@bullet0181>
Subject: Job 555932: <4FGL_J1807.2+6429_daily_bin1668> in cluster <slac> Done

Job <4FGL_J1807.2+6429_daily_bin1668> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Apr 18 00:07:58 2022
Job was executed on host(s) <bullet0181>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Apr 18 03:08:51 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Apr 18 03:08:51 2022
Terminated at Mon Apr 18 03:40:55 2022
Results reported at Mon Apr 18 03:40:55 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1807.2+6429_daily_bin1668 271.809 64.4988 671673601 671932801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1807.2+6429 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   1893.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             342.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1925 sec.
    Turnaround time :                            12777 sec.

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

