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 79 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 = 17469
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1807.2+6429_weekly_bin730
RA = 271.809, Dec = 64.4988
tmin = 680486401, tmax = 681091201
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='659732', job_status='RUN', time_executed='2022-08-02 02:25:56.247557', time_epoch_executed='1659432356.25' WHERE source_name='4FGL J1807.2+6429' and cadence='weekly' and bin_id='730'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/659732

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/659732/ft1_4FGL_J1807.2+6429_weekly_bin730.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/659732/ft2_4FGL_J1807.2+6429_weekly_bin730.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/659732/ft1_4FGL_J1807.2+6429_weekly_bin730.fits outfile=/scratch/kocevski/659732/ft1_filteredMKT_4FGL_J1807.2+6429_weekly_bin730.fits ra=271.809 dec=64.4988 rad=12.0 tmin=680486401.0 tmax=681091201.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 6.30
user 5.98
sys 0.29

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

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

Number of photons that the gtmktime cut: 4873

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/659732/ft1_filtered_4FGL_J1807.2+6429_weekly_bin730.fits" evtable="EVENTS" scfile=/scratch/kocevski/659732/ft2_4FGL_J1807.2+6429_weekly_bin730.fits sctable="SC_DATA" outfile=/scratch/kocevski/659732/ltcube_680486401_681091201_4FGL_J1807.2+6429_weekly_bin730.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/659732/ft2_4FGL_J1807.2+6429_weekly_bin730.fits
.....................!
real 33.43
user 32.93
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/659732/ft1_filtered_4FGL_J1807.2+6429_weekly_bin730.fits evtable="EVENTS" scfile=/scratch/kocevski/659732/ft2_4FGL_J1807.2+6429_weekly_bin730.fits sctable="SC_DATA" expcube=/scratch/kocevski/659732/ltcube_680486401_681091201_4FGL_J1807.2+6429_weekly_bin730.fits outfile=/scratch/kocevski/659732/expmap_680486401_681091201_4FGL_J1807.2+6429_weekly_bin730.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/659732/ltcube_680486401_681091201_4FGL_J1807.2+6429_weekly_bin730.fits
.....................!
real 192.89
user 187.12
sys 4.64

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/659732/ft1_filtered_4FGL_J1807.2+6429_weekly_bin730.fits scfile=/scratch/kocevski/659732/ft2_4FGL_J1807.2+6429_weekly_bin730.fits outfile=/scratch/kocevski/659732/cmap_680486401_681091201_4FGL_J1807.2+6429_weekly_bin730.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.60
user 0.43
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/659732/ft1_filtered_4FGL_J1807.2+6429_weekly_bin730.fits scfile=/scratch/kocevski/659732/ft2_4FGL_J1807.2+6429_weekly_bin730.fits outfile=/scratch/kocevski/659732/cmap_HighResolution_680486401_681091201_4FGL_J1807.2+6429_weekly_bin730.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.61
user 0.43
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/659732/ft1_filtered_4FGL_J1807.2+6429_weekly_bin730.fits', '/scratch/kocevski/659732/ft2_4FGL_J1807.2+6429_weekly_bin730.fits', expMap='/scratch/kocevski/659732/expmap_680486401_681091201_4FGL_J1807.2+6429_weekly_bin730.fits', expCube='/scratch/kocevski/659732/ltcube_680486401_681091201_4FGL_J1807.2+6429_weekly_bin730.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/659732/Model_4FGL_J1807.2+6429_weekly_bin730.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/659732/ft1_filtered_4FGL_J1807.2+6429_weekly_bin730.fits
Spacecraft file(s): /scratch/kocevski/659732/ft2_4FGL_J1807.2+6429_weekly_bin730.fits
Exposure map: /scratch/kocevski/659732/expmap_680486401_681091201_4FGL_J1807.2+6429_weekly_bin730.fits
Exposure cube: /scratch/kocevski/659732/ltcube_680486401_681091201_4FGL_J1807.2+6429_weekly_bin730.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/659732/Model_4FGL_J1807.2+6429_weekly_bin730.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) = 50050.3587325

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    15.078       1.0000         .10000E-03   10000.    
     3 'norm      '    17.732       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.6684       1.0000         .10000E-03   10000.    
     5 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.1888       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .12979       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    12.628       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.9749       1.0000         .10000E-03   10000.    
    12 'Prefactor '    25.681       1.0000         .10000E-03   10000.    
    13 'norm      '    4.5104       1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.5496       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .91126       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.6562       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10128E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.7725       1.0000         .10000E-03   10000.    
    21 'norm      '    5.3814       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.1407       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   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      '    2.1766       1.0000         .10000E-03   10000.    
    28 'norm      '    2.0350       1.0000         .10000E-03   10000.    
    29 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    30 'norm      '    9.1826       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .44236E-02   1.0000         .10000E-03   10000.    
    32 'Prefactor '    3.0011       1.0000         .10000E-03   10000.    
    33 'norm      '    2.5461       1.0000         .10000E-03   10000.    
    34 'Normalizat'    .96666       1.0000         .10000E-01   10.000    
    35 'Prefactor '    1.0572       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=   50050.21     FROM MIGRAD    STATUS=CONVERGED   1002 CALLS     4442 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.126       -.78259E-05** at limit **
   2  Prefactor     15.077        13.012        .63338E-07    .14469E-04
   3  norm          17.732        3.9573       -.45830E-06    .73512E-04
   4  Prefactor     1.6685        3.6018       -.23359E-05   -.15316E-03
   5  norm          .10000E-03    .57691E-01   -.72948E-08** at limit **
   6  Prefactor     5.1876        3.1369        .21587E-07    .93509E-05
   7  Prefactor     .15358        1.1931       -.14526E-07   -.22996E-03
   8  Prefactor     .10000E-03    .78438        .35548E-07** at limit **
   9  Prefactor     .10000E-03    1.2700       -.45639E-08** at limit **
  10  Prefactor     12.628        15.129       -.77108E-07    .17107E-04
  11  Prefactor     5.9752        10.794       -.77049E-07   -.12931E-03
  12  Prefactor     25.681        22.898        .11873E-06    .11836E-04
  13  norm          4.5103        1.0830       -.61968E-08    .32781E-04
  14  Prefactor     6.5497        5.8684       -.25756E-07   -.12142E-03
  15  Prefactor     .90975        2.2370       -.13666E-06   -.64862E-05
  16  Prefactor     .10000E-03    2.0426        .30051E-07** at limit **
  17  norm          2.6563        1.5455       -.12865E-06   -.25334E-03
  18  Prefactor     .10000E-03    9.1757       -.33755E-05** at limit **
  19  Prefactor     .10000E-03    12.629        .77489E-05** at limit **
  20  Prefactor     4.7722        1.6445        .21321E-06   -.35491E-02
  21  norm          5.3815        2.6117       -.15316E-06   -.16744E-04
  22  Prefactor     .10000E-03    4.7057       -.87355E-06** at limit **
  23  Prefactor     3.1410        4.3700       -.26253E-06   -.10120E-02
  24  Prefactor     .10000E-03    4.4243        .55319E-06** at limit **
  25  Prefactor     .10000E-03    29.991        .59029E-05** at limit **
  26  Prefactor     .10000E-03    6.9736        .12292E-05** at limit **
  27  norm          2.1766        1.0274       -.33530E-07    .21852E-05
  28  norm          2.0350        .73786       -.10293E-08    .30897E-04
  29  norm          .10000E-03    .52097       -.15907E-06** at limit **
  30  norm          9.1828        4.1465        .61385E-06    .24080E-03
  31  Prefactor     .10019E-03    1.2689       -.28708E-06** at limit **
  32  Prefactor     3.0014        2.4474       -.10002E-06   -.19419E-03
  33  norm          2.5463        .76901        .12459E-07    .26930E-03
  34  Normalizat    .96662        .84688E-01    .41435E-06    .32525E-03
  35  Prefactor     1.0572        .50998E-01   -.52663E-07    .70755E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 15.0767
  norm       = 17.7323
  Prefactor  = 1.66846
  norm       = 0.0001
  Prefactor  = 5.18765
  Prefactor  = 0.15358
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.6282
  Prefactor  = 5.97519
  Prefactor  = 25.6809
  norm       = 4.51026
  Prefactor  = 6.54974
  Prefactor  = 0.909755
  Prefactor  = 0.0001
  norm       = 2.65633
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.7722
  norm       = 5.38147
  Prefactor  = 0.0001
  Prefactor  = 3.14101
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.17663
  norm       = 2.03496
  norm       = 0.0001
  norm       = 9.18279
  Prefactor  = 0.000100194
  Prefactor  = 3.00141
  norm       = 2.54634
  Normalizat = 0.966619
  Prefactor  = 1.05719
 **********
 **   18 **HESSE 
 **********

 FCN=   50050.21     FROM HESSE     STATUS=OK           800 CALLS     5242 TOTAL
                     EDM=   .31E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    17.124        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     15.077        12.914        .10315E-03   -1.4931    
   3  norm          17.732        3.9629        .95113E-04   -1.4866    
   4  Prefactor     1.6685        3.6003        .32643E-03   -1.5450    
   5  norm          .10000E-03    .98556E-01    .10072E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.1876        3.1228        .17648E-03   -1.5252    
   7  Prefactor     .15358        1.2845        .87285E-01   -1.5630    
   8  Prefactor     .10000E-03    .79733        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.2912        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     12.628        15.109        .11272E-03   -1.4997    
  11  Prefactor     5.9752        10.869        .82136E-03   -1.5219    
  12  Prefactor     25.681        22.918        .79049E-04   -1.4694    
  13  norm          4.5103        1.0812        .10860E-03   -1.5283    
  14  Prefactor     6.5497        5.8803        .78405E-03   -1.5196    
  15  Prefactor     .90975        5.6145        .48316E-02   -1.5517    
  16  Prefactor     .10000E-03    2.0548        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.6563        1.5456        .19732E-03   -1.5382    
  18  Prefactor     .10000E-03    9.5631        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    12.613        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     4.7722        2.5316        .92085E-03   -1.5271    
  21  norm          5.3815        2.6108        .17323E-03   -1.5244    
  22  Prefactor     .10000E-03    4.7943        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     3.1410        5.3777        .11437E-02   -1.5353    
  24  Prefactor     .10000E-03    4.5209        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    30.138        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    6.9750        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          2.1766        1.0290        .27908E-04   -1.5413    
  28  norm          2.0350        .73897        .11277E-03   -1.5423    
  29  norm          .10000E-03    1.2482        .30762E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  norm          9.1828        4.0713        .13226E-03   -1.5102    
  31  Prefactor     .10019E-03    2.9899        .78283E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     3.0014        2.4530        .23431E-03   -1.5361    
  33  norm          2.5463        .76958        .10430E-03   -1.5389    
  34  Normalizat    .96662        .99390E-01    .34008E-03   -.94157    
  35  Prefactor     1.0572        .59075E-01    .20650E-03   -.90847    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.09766e-07
Minuit parameter uncertainties:
  1  9.55107e-06
  2  12.9167
  3  3.96291
  4  3.60077
  5  1.73726e-07
  6  3.12291
  7  0.888058
  8  1.86683e-06
  9  5.94886e-07
  10  15.1131
  11  10.8722
  12  22.9257
  13  1.08119
  14  5.88085
  15  4.52046
  16  7.29495e-07
  17  1.54558
  18  4.21088e-05
  19  4.79993e-06
  20  2.53165
  21  2.61083
  22  2.49836e-06
  23  5.3785
  24  1.08681e-05
  25  2.06008e-05
  26  3.61858e-07
  27  1.02904
  28  0.738974
  29  1.48407e-05
  30  4.07144
  31  0.0015246
  32  2.45308
  33  0.769585
  34  0.0994089
  35  0.0590785
Done.

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

Extracting fit parameters...

4FGL J1807.2+6429
   Spectrum: PowerLaw
365    Prefactor:  1.000e-04  4.211e-05  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:  1.057e+00  5.908e-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.666e-01  9.941e-02  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/659732/likelihoodResults_680486401_681091201_4FGL_J1807.2+6429_weekly_bin730.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) = 50050.2111511
delta logL = -0.00049956037401

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 50050.2106515
delta logL = 6.01867213845e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0085       1.0000          .0000       10.000    
     3 'Normalizat'    .96662       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0572       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=   50050.21     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      223 TOTAL
                     EDM=   .99E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .60351E-01    .15791    ** at limit **
   2  Index         2.0250        .76733        .50000       -.12724E-04
   3  Normalizat    .96662        .39282E-03    .76843E-01    .31939E-03
   4  Prefactor     1.0572        .24951E-03    .39506E-01    .28123E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.02498
  Normalizat = 0.966619
  Prefactor  = 1.05719
 **********
 **   18 **HESSE 
 **********

 FCN=   50050.21     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      258 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    39.210        .55891E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0250        5.3406        .50000       -.63727    
   3  Normalizat    .96662        .41540E-02    .34008E-03   -.94157    
   4  Prefactor     1.0572        .26432E-02    .20650E-03   -.90847    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.89957e-09
Minuit parameter uncertainties:
  1  0.00034777
  2  8.14866
  3  0.00415403
  4  0.00264322
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/659732': 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) = 50050.2106515
delta logL = 1.18758180179e-07

Extracting fit parameters...

4FGL J1807.2+6429
   Spectrum: PowerLaw
365    Prefactor:  1.000e-04  3.478e-04  1.000e-04  1.000e+04 ( 1.000e-14)
366        Index:  2.025e+00  8.149e+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.057e+00  2.643e-03  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.666e-01  4.154e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 271.809 64.499

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/659732/cmap_HighResolution_680486401_681091201_4FGL_J1807.2+6429_weekly_bin730.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.10e-03', job_status='DONE', photon_flux_upper_limit='1.46e-08', time_completed='2022-08-02 04:13:14.114682', job_id='659732', GAL2='1.06', fit_tolerance='1e-08', EG2='0.97', EG='0.97', time_epoch_completed='1659438794.11', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='1.19e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.99' WHERE bin_id='730' AND source_name='4FGL J1807.2+6429' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Aug  2 04:13:14 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0071>
Subject: Job 659731: <4FGL_J1807.2+6429_weekly_bin730> in cluster <slac> Done

Job <4FGL_J1807.2+6429_weekly_bin730> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Aug  2 00:06:57 2022
Job was executed on host(s) <bullet0071>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug  2 02:24:40 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug  2 02:24:40 2022
Terminated at Tue Aug  2 03:54:51 2022
Results reported at Tue Aug  2 03:54:51 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1807.2+6429_weekly_bin730 271.809 64.4988 680486401 681091201 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 :                                   5314.00 sec.
    Max Memory :                                 623 MB
    Average Memory :                             385.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   39 MB
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   5413 sec.
    Turnaround time :                            13674 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0231>
Subject: Job 659732: <4FGL_J1807.2+6429_weekly_bin730> in cluster <slac> Done

Job <4FGL_J1807.2+6429_weekly_bin730> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Aug  2 00:06:57 2022
Job was executed on host(s) <bullet0231>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug  2 02:24:38 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug  2 02:24:38 2022
Terminated at Tue Aug  2 04:13:15 2022
Results reported at Tue Aug  2 04:13:15 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1807.2+6429_weekly_bin730 271.809 64.4988 680486401 681091201 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 :                                   6426.00 sec.
    Max Memory :                                 1096 MB
    Average Memory :                             390.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   6516 sec.
    Turnaround time :                            14778 sec.

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

