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


Performing analysis on: 4FGL_J1657.0+6010_daily_bin1674
RA = 254.258, Dec = 60.1676
tmin = 673228801, tmax = 673488001
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='670970', job_status='RUN', time_executed='2022-05-06 02:57:49.891889', time_epoch_executed='1651831069.89' WHERE source_name='4FGL J1657.0+6010' and cadence='daily' and bin_id='1674'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/670970

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/670970/ft1_4FGL_J1657.0+6010_daily_bin1674.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/670970/ft2_4FGL_J1657.0+6010_daily_bin1674.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/670970/ft1_4FGL_J1657.0+6010_daily_bin1674.fits outfile=/scratch/kocevski/670970/ft1_filteredMKT_4FGL_J1657.0+6010_daily_bin1674.fits ra=254.258 dec=60.1676 rad=12.0 tmin=673228801.0 tmax=673488001.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 2.79
user 2.57
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/670970/ft2_4FGL_J1657.0+6010_daily_bin1674.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/670970/ft2_4FGL_J1657.0+6010_daily_bin1674.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/670970/ft1_filteredMKT_4FGL_J1657.0+6010_daily_bin1674.fits evtable="EVENTS" outfile="/scratch/kocevski/670970/ft1_filtered_4FGL_J1657.0+6010_daily_bin1674.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.33
sys 0.18

Number of photons that the gtmktime cut: 1472

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/670970/ft1_filtered_4FGL_J1657.0+6010_daily_bin1674.fits" evtable="EVENTS" scfile=/scratch/kocevski/670970/ft2_4FGL_J1657.0+6010_daily_bin1674.fits sctable="SC_DATA" outfile=/scratch/kocevski/670970/ltcube_673228801_673488001_4FGL_J1657.0+6010_daily_bin1674.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/670970/ft2_4FGL_J1657.0+6010_daily_bin1674.fits
.....................!
real 15.69
user 15.15
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/670970/ft1_filtered_4FGL_J1657.0+6010_daily_bin1674.fits evtable="EVENTS" scfile=/scratch/kocevski/670970/ft2_4FGL_J1657.0+6010_daily_bin1674.fits sctable="SC_DATA" expcube=/scratch/kocevski/670970/ltcube_673228801_673488001_4FGL_J1657.0+6010_daily_bin1674.fits outfile=/scratch/kocevski/670970/expmap_673228801_673488001_4FGL_J1657.0+6010_daily_bin1674.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/670970/ltcube_673228801_673488001_4FGL_J1657.0+6010_daily_bin1674.fits
.....................!
real 194.96
user 188.24
sys 5.75

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

Setting source of interest to:
4FGL J1657.0+6010 @ 254.258 60.1676

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/670970/ft1_filtered_4FGL_J1657.0+6010_daily_bin1674.fits scfile=/scratch/kocevski/670970/ft2_4FGL_J1657.0+6010_daily_bin1674.fits outfile=/scratch/kocevski/670970/cmap_673228801_673488001_4FGL_J1657.0+6010_daily_bin1674.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=254.258 yref=60.1676 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.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/670970/ft1_filtered_4FGL_J1657.0+6010_daily_bin1674.fits scfile=/scratch/kocevski/670970/ft2_4FGL_J1657.0+6010_daily_bin1674.fits outfile=/scratch/kocevski/670970/cmap_HighResolution_673228801_673488001_4FGL_J1657.0+6010_daily_bin1674.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=254.258 yref=60.1676 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.39
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/670970/ft1_filtered_4FGL_J1657.0+6010_daily_bin1674.fits evtable="EVENTS" scfile=/scratch/kocevski/670970/ft2_4FGL_J1657.0+6010_daily_bin1674.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/670970/Model_4FGL_J1657.0+6010_daily_bin1674.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/670970/ft1_filtered_4FGL_J1657.0+6010_daily_bin1674.fits.....................!
real 124.96
user 122.95
sys 1.30

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/670970/ft1_filtered_4FGL_J1657.0+6010_daily_bin1674.fits', '/scratch/kocevski/670970/ft2_4FGL_J1657.0+6010_daily_bin1674.fits', expMap='/scratch/kocevski/670970/expmap_673228801_673488001_4FGL_J1657.0+6010_daily_bin1674.fits', expCube='/scratch/kocevski/670970/ltcube_673228801_673488001_4FGL_J1657.0+6010_daily_bin1674.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/670970/Model_4FGL_J1657.0+6010_daily_bin1674.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1657.0+6010'

4FGL J1657.0+6010
   Spectrum: PowerLaw
375    Prefactor:  3.318e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
376        Index:  2.448e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
377        Scale:  9.922e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/670970/ft1_filtered_4FGL_J1657.0+6010_daily_bin1674.fits
Spacecraft file(s): /scratch/kocevski/670970/ft2_4FGL_J1657.0+6010_daily_bin1674.fits
Exposure map: /scratch/kocevski/670970/expmap_673228801_673488001_4FGL_J1657.0+6010_daily_bin1674.fits
Exposure cube: /scratch/kocevski/670970/ltcube_673228801_673488001_4FGL_J1657.0+6010_daily_bin1674.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/670970/Model_4FGL_J1657.0+6010_daily_bin1674.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) = 15678.6857071

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .92318       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .12471E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.0038       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11231E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10693E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    18.215       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.6177       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.9591       1.0000         .10000E-03   10000.    
    10 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .18818E-01   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    15.467       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .41537E-01   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    4.2275       1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.7675       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    5.4959       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    13.428       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    6.2628       1.0000         .10000E-03   10000.    
    32 'Normalizat'    .88070       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.1291       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7220E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   15678.68     FROM MIGRAD    STATUS=CONVERGED    894 CALLS     4786 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .92301        1.5063        .11809E-07   -.41900E-03
   2  Prefactor     .10000E-03    22.167        .56220E-05** at limit **
   3  Prefactor     .10001E-03    2.1748        .45635E-06** at limit **
   4  norm          1.0176        5.5863       -.29509E-05   -.70765E-03
   5  Prefactor     .10000E-03    36.033        .13543E-04** at limit **
   6  Prefactor     .10002E-03    1.7340       -.11830E-05** at limit **
   7  norm          18.217        11.023        .40811E-07    .25328E-03
   8  Prefactor     2.6167        1.5966        .72206E-06   -.46603E-02
   9  Prefactor     4.9618        15.692        .65228E-06    .13132E-04
  10  norm          .10000E-03    3.6968        .46074E-06** at limit **
  11  Prefactor     .17881E-01    .58082       -.30287E-07    .66703E-04
  12  Prefactor     .10000E-03    1.3985        .14453E-06** at limit **
  13  Prefactor     .10000E-03    5.3663        .29483E-05** at limit **
  14  norm          .10000E-03    .16466       -.26586E-07** at limit **
  15  Prefactor     .10000E-03    4.0815       -.14147E-05** at limit **
  16  Prefactor     15.471        10.466        .74607E-07    .11446E-03
  17  Prefactor     .10000E-03    1.7006        .66332E-07** at limit **
  18  Prefactor     .10000E-03    2.2253       -.74842E-07** at limit **
  19  Prefactor     .41919E-01    1.0547       -.37442E-07   -.31567E-04
  20  Prefactor     .10000E-03    17.662       -.14123E-04** at limit **
  21  norm          4.2281        7.2117       -.82933E-07   -.25280E-05
  22  Prefactor     1.7675        3.6234       -.49147E-06   -.34686E-03
  23  Prefactor     .10000E-03    10.737        .38181E-05** at limit **
  24  Prefactor     .10000E-03    42.740       -.19294E-04** at limit **
  25  norm          5.4960        1.8604       -.13311E-07    .22311E-04
  26  Prefactor     .10000E-03    8.0772        .94593E-06** at limit **
  27  Prefactor     .10000E-03    5.4946        .65183E-06** at limit **
  28  Prefactor     13.429        9.2011       -.16215E-07    .53618E-05
  29  Prefactor     .10000E-03    11.387        .14965E-06** at limit **
  30  Prefactor     .10000E-03    22.934        .91477E-05** at limit **
  31  norm          6.2630        4.5187        .38513E-07   -.30505E-03
  32  Normalizat    .88060        .12145        .66158E-06    .30122E-03
  33  Prefactor     1.1291        .10263       -.27510E-06    .41679E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.923006
  Prefactor  = 0.0001
  Prefactor  = 0.000100011
  norm       = 1.01764
  Prefactor  = 0.0001
  Prefactor  = 0.000100025
  norm       = 18.2165
  Prefactor  = 2.61667
  Prefactor  = 4.96179
  norm       = 0.0001
  Prefactor  = 0.0178809
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.4714
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0419186
  Prefactor  = 0.0001
  norm       = 4.22815
  Prefactor  = 1.7675
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.49603
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.4287
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.26302
  Normalizat = 0.880605
  Prefactor  = 1.12911
 **********
 **   18 **HESSE 
 **********

 FCN=   15678.68     FROM HESSE     STATUS=OK           711 CALLS     5497 TOTAL
                     EDM=   .38E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .92301        1.4424        .18833E-02   -1.5516    
   2  Prefactor     .10000E-03    22.180        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10001E-03    7.7873        .31730E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.0176        4.7253        .50343E-03   -1.5506    
   5  Prefactor     .10000E-03    36.830        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10002E-03    6.0829        .31178E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          18.217        10.941        .93843E-04   -1.4854    
   8  Prefactor     2.6167        3.6643        .12605E-02   -1.5384    
   9  Prefactor     4.9618        15.538        .18060E-03   -1.5262    
  10  norm          .10000E-03    3.7922        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .17881E-01    .88982        .35374E-01   -1.5681    
  12  Prefactor     .10000E-03    1.4008        .14460E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    5.4068        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    .68959        .92088E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.1856        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     15.471        9.9740        .10184E-03   -1.4921    
  17  Prefactor     .10000E-03    1.7326        .15934E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.2496        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .41919E-01    .99060        .45057E-01   -1.5667    
  20  Prefactor     .10000E-03    17.631        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          4.2281        6.9695        .19598E-03   -1.5297    
  22  Prefactor     1.7675        3.5121        .28509E-03   -1.5442    
  23  Prefactor     .10000E-03    10.745        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    42.763        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          5.4960        1.8604        .96293E-04   -1.5239    
  26  Prefactor     .10000E-03    8.1255        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    5.6488        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     13.429        9.1934        .10931E-03   -1.4975    
  29  Prefactor     .10000E-03    11.481        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    22.914        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          6.2630        4.5273        .80201E-03   -1.5207    
  32  Normalizat    .88060        .13907        .27624E-03   -.97145    
  33  Prefactor     1.1291        .11820        .21537E-03   -.88541    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.76974e-08
Minuit parameter uncertainties:
  1  1.44249
  2  4.80715e-05
  3  0.000576653
  4  4.38606
  5  0.00010142
  6  0.000773199
  7  10.9423
  8  3.66457
  9  15.5508
  10  4.62068e-06
  11  0.251573
  12  3.03564e-07
  13  4.05858e-06
  14  1.5297e-06
  15  7.55663e-06
  16  9.97509
  17  1.35773e-07
  18  1.20754e-07
  19  0.407073
  20  0.000122227
  21  6.97083
  22  3.51255
  23  3.27586e-05
  24  0.000213343
  25  1.86042
  26  4.66258e-06
  27  6.2052e-06
  28  9.19441
  29  4.2445e-06
  30  9.30815e-05
  31  4.52754
  32  0.139128
  33  0.11823
Done.

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

Extracting fit parameters...

4FGL J1657.0+6010
   Spectrum: PowerLaw
375    Prefactor:  1.000e-04  4.059e-06  1.000e-04  1.000e+04 ( 1.000e-13)
376        Index:  2.448e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
377        Scale:  9.922e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
719    Prefactor:  1.129e+00  1.182e-01  0.000e+00  1.000e+01 ( 1.000e+00)
720        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
721        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
718   Normalization:  8.806e-01  1.391e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 254.258 60.168
Photon Flux Upper Limit: 3.26e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.53e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/670970/likelihoodResults_673228801_673488001_4FGL_J1657.0+6010_daily_bin1674.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) = 15678.6854979
delta logL = -0.00088163746841

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 15678.6846161
delta logL = 1.26015947899e-07

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.4291       1.0000          .0000       10.000    
     3 'Normalizat'    .88060       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1291       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7220E+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=   15678.68     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      239 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10119E-03    55.690        .18142E-02** at limit **
   2  Index         2.3735        8.4553        .50000        .23796E-04
   3  Normalizat    .88060        .89841E-02    .27624E-03    .23541E-04
   4  Prefactor     1.1291        .78710E-02    .21537E-03    .21642E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101191
  Index      = 2.37355
  Normalizat = 0.880605
  Prefactor  = 1.12911
 **********
 **   18 **HESSE 
 **********

 FCN=   15678.68     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      268 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10119E-03    239.09        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3735        5.7525        .50000       -.55306    
   3  Normalizat    .88060        .19381E-01    .11050E-04   -.97145    
   4  Prefactor     1.1291        .16979E-01    .86148E-05   -.88541    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.28478e-08
Minuit parameter uncertainties:
  1  0.0338785
  2  541.526
  3  0.0193808
  4  0.0169791
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/670970': 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) = 15678.6846159
delta logL = 3.64947482012e-07

Extracting fit parameters...

4FGL J1657.0+6010
   Spectrum: PowerLaw
375    Prefactor:  1.012e-04  3.388e-02  1.000e-04  1.000e+04 ( 1.000e-13)
376        Index:  2.374e+00  5.415e+02  0.000e+00  1.000e+01 (-1.000e+00)
377        Scale:  9.922e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
719    Prefactor:  1.129e+00  1.698e-02  0.000e+00  1.000e+01 ( 1.000e+00)
720        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
721        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
718   Normalization:  8.806e-01  1.938e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 254.258 60.168

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/670970/cmap_HighResolution_673228801_673488001_4FGL_J1657.0+6010_daily_bin1674.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.53e-03', job_status='DONE', photon_flux_upper_limit='3.26e-08', time_completed='2022-05-06 03:38:13.085782', job_id='670970', GAL2='1.13', fit_tolerance='1e-08', EG2='0.88', EG='0.88', time_epoch_completed='1651833493.09', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.13', dlogl='3.65e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='1674' AND source_name='4FGL J1657.0+6010' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri May  6 03:38:13 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0152>
Subject: Job 670964: <4FGL_J1657.0+6010_daily_bin1674> in cluster <slac> Done

Job <4FGL_J1657.0+6010_daily_bin1674> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri May  6 00:08:05 2022
Job was executed on host(s) <bullet0152>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri May  6 02:56:16 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri May  6 02:56:16 2022
Terminated at Fri May  6 03:38:13 2022
Results reported at Fri May  6 03:38:13 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1657.0+6010_daily_bin1674 254.258 60.1676 673228801 673488001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1657.0+6010 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   2421.21 sec.
    Max Memory :                                 618 MB
    Average Memory :                             318.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   2516 sec.
    Turnaround time :                            12608 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0155>
Subject: Job 670970: <4FGL_J1657.0+6010_daily_bin1674> in cluster <slac> Done

Job <4FGL_J1657.0+6010_daily_bin1674> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri May  6 00:08:05 2022
Job was executed on host(s) <bullet0155>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri May  6 02:56:18 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri May  6 02:56:18 2022
Terminated at Fri May  6 03:38:13 2022
Results reported at Fri May  6 03:38:13 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1657.0+6010_daily_bin1674 254.258 60.1676 673228801 673488001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1657.0+6010 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   2418.10 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             336.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   2515 sec.
    Turnaround time :                            12608 sec.

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

