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 164 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.7+4808_daily_bin1674
RA = 254.438, Dec = 48.1368
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='670967', job_status='RUN', time_executed='2022-05-06 02:59:08.260798', time_epoch_executed='1651831148.26' WHERE source_name='4FGL J1657.7+4808' and cadence='daily' and bin_id='1674'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/670967

Creating custom pfile directory:
/scratch/kocevski/670967/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/670967/ft1_4FGL_J1657.7+4808_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/670967/ft2_4FGL_J1657.7+4808_daily_bin1674.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/670967/ft1_4FGL_J1657.7+4808_daily_bin1674.fits outfile=/scratch/kocevski/670967/ft1_filteredMKT_4FGL_J1657.7+4808_daily_bin1674.fits ra=254.438 dec=48.1368 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 3.49
user 2.58
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/670967/ft2_4FGL_J1657.7+4808_daily_bin1674.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/670967/ft2_4FGL_J1657.7+4808_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/670967/ft1_filteredMKT_4FGL_J1657.7+4808_daily_bin1674.fits evtable="EVENTS" outfile="/scratch/kocevski/670967/ft1_filtered_4FGL_J1657.7+4808_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.34
sys 0.16

Number of photons that the gtmktime cut: 1376

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/670967/ft1_filtered_4FGL_J1657.7+4808_daily_bin1674.fits" evtable="EVENTS" scfile=/scratch/kocevski/670967/ft2_4FGL_J1657.7+4808_daily_bin1674.fits sctable="SC_DATA" outfile=/scratch/kocevski/670967/ltcube_673228801_673488001_4FGL_J1657.7+4808_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/670967/ft2_4FGL_J1657.7+4808_daily_bin1674.fits
.....................!
real 14.55
user 14.13
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/670967/ft1_filtered_4FGL_J1657.7+4808_daily_bin1674.fits evtable="EVENTS" scfile=/scratch/kocevski/670967/ft2_4FGL_J1657.7+4808_daily_bin1674.fits sctable="SC_DATA" expcube=/scratch/kocevski/670967/ltcube_673228801_673488001_4FGL_J1657.7+4808_daily_bin1674.fits outfile=/scratch/kocevski/670967/expmap_673228801_673488001_4FGL_J1657.7+4808_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/670967/ltcube_673228801_673488001_4FGL_J1657.7+4808_daily_bin1674.fits
.....................!
real 193.64
user 186.74
sys 5.09

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

Setting source of interest to:
4FGL J1657.7+4808 @ 254.438 48.1368

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/670967/ft1_filtered_4FGL_J1657.7+4808_daily_bin1674.fits scfile=/scratch/kocevski/670967/ft2_4FGL_J1657.7+4808_daily_bin1674.fits outfile=/scratch/kocevski/670967/cmap_673228801_673488001_4FGL_J1657.7+4808_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.438 yref=48.1368 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.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/670967/ft1_filtered_4FGL_J1657.7+4808_daily_bin1674.fits scfile=/scratch/kocevski/670967/ft2_4FGL_J1657.7+4808_daily_bin1674.fits outfile=/scratch/kocevski/670967/cmap_HighResolution_673228801_673488001_4FGL_J1657.7+4808_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.438 yref=48.1368 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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/670967/ft1_filtered_4FGL_J1657.7+4808_daily_bin1674.fits evtable="EVENTS" scfile=/scratch/kocevski/670967/ft2_4FGL_J1657.7+4808_daily_bin1674.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/670967/Model_4FGL_J1657.7+4808_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/670967/ft1_filtered_4FGL_J1657.7+4808_daily_bin1674.fits.....................!
real 104.49
user 102.14
sys 1.26

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

Using source of interest name: '4FGL J1657.7+4808'

4FGL J1657.7+4808
   Spectrum: LogParabola
350         norm:  1.071e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
351        alpha:  2.309e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
352         beta:  1.099e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
353           Eb:  5.763e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.094       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10168E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.9517       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    17.313       1.0000         .10000E-03   10000.    
     7 'norm      '    .51055E-01   1.0000         .10000E-03   10000.    
     8 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.6363       1.0000         .10000E-03   10000.    
    11 'norm      '    .10244E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.5379       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.8271       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .15413E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10386E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    3.6956       1.0000         .10000E-03   10000.    
    18 'norm      '    .84337       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.9836       1.0000         .10000E-03   10000.    
    20 'norm      '    .11810       1.0000         .10000E-03   10000.    
    21 'norm      '    6.0126       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10264E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    4.6400       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10048E-01   1.0000         .10000E-03   10000.    
    25 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .65762E-02   1.0000         .10000E-03   10000.    
    27 'norm      '    2.6187       1.0000         .10000E-03   10000.    
    28 'Prefactor '    77.115       1.0000         .10000E-03   10000.    
    29 'Prefactor '    1.9848       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10130E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .37179E-01   1.0000         .10000E-03   10000.    
    32 'Prefactor '    .71666       1.0000         .10000E-03   10000.    
    33 'Prefactor '    .10125E-03   1.0000         .10000E-03   10000.    
    34 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    35 'norm      '    10.525       1.0000         .10000E-03   10000.    
    36 'Normalizat'    .91719       1.0000         .10000E-01   10.000    
    37 'Prefactor '    1.1170       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6850E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   14662.34     FROM MIGRAD    STATUS=CONVERGED    191 CALLS     5716 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.085        1.4102        .30002E-06    .30118E-03
   2  Prefactor     .10000E-03    2.1221        .66354E-08** at limit **
   3  Prefactor     7.9581        13.738        .11164E-05    .68796E-02
   4  Prefactor     .10000E-03    1.7652       -.90746E-07** at limit **
   5  Prefactor     .10000E-03    .47637       -.42699E-07** at limit **
   6  norm          17.316        10.620        .30744E-06    .15166E-02
   7  norm          .51122E-01    .87028E-01   -.35106E-08   -.11561E-03
   8  norm          .10000E-03    1.7573        .17026E-06** at limit **
   9  Prefactor     .10000E-03    .61771        .12859E-08** at limit **
  10  Prefactor     1.6377        3.3876       -.80088E-08    .11910E-03
  11  norm          .10000E-03    8.7879       -.18545E-06** at limit **
  12  Prefactor     2.5376        1.4917       -.32628E-07   -.10538E-03
  13  Prefactor     2.8269        1.4814        .19627E-07   -.10976E-04
  14  Prefactor     .10000E-03    7.0729        .89090E-07** at limit **
  15  Prefactor     .10000E-03    2.6345       -.49744E-07** at limit **
  16  Prefactor     .10000E-03    1.3624       -.22715E-07** at limit **
  17  norm          3.6957        1.2135       -.59065E-08    .32380E-05
  18  norm          .84340        .51550       -.85972E-08    .33705E-04
  19  Prefactor     2.9834        3.6938        .49951E-06    .12756E-02
  20  norm          .11837        .35784       -.45830E-07   -.36755E-04
  21  norm          6.0114        4.9090       -.20716E-06   -.51733E-03
  22  Prefactor     .10000E-03    3.3938        .13442E-07** at limit **
  23  norm          4.6402        1.3715        .69765E-08    .48228E-05
  24  Prefactor     .37142E-03    197.20        .42714E-04** at limit **
  25  norm          .10000E-03    1.2580       -.36370E-07** at limit **
  26  Prefactor     .11596E-03    221.98        .13265E-04** at limit **
  27  norm          2.6204        3.6155        .56371E-06   -.38069E-04
  28  Prefactor     77.054        20.907       -.72667E-06   -.39284E-03
  29  Prefactor     1.9863        3.3235        .16461E-07    .24561E-03
  30  Prefactor     .10001E-03    11.062       -.27032E-08** at limit **
  31  Prefactor     .24398E-02    926.51       -.63693E-04** at limit **
  32  Prefactor     .92562        155.68       -.69320E-05    .26557E-02
  33  Prefactor     .10000E-03    4.3660        .44694E-07** at limit **
  34  Prefactor     .10000E-03    4.7919       -.62877E-07** at limit **
  35  norm          10.530        1.2165        .66695E-07   -.99400E-03
  36  Normalizat    .91703        .16235       -.66411E-06    .10519E-03
  37  Prefactor     1.1170        .13439        .71618E-06    .17157E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.0848
  Prefactor  = 0.0001
  Prefactor  = 7.95814
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  norm       = 17.316
  norm       = 0.0511215
  norm       = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 1.63771
  norm       = 0.0001
  Prefactor  = 2.53755
  Prefactor  = 2.82692
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.69568
  norm       = 0.843395
  Prefactor  = 2.98342
  norm       = 0.118374
  norm       = 6.01144
  Prefactor  = 0.0001
  norm       = 4.64025
  Prefactor  = 0.000371415
  norm       = 0.0001
  Prefactor  = 0.000115957
  norm       = 2.62039
  Prefactor  = 77.0537
  Prefactor  = 1.98634
  Prefactor  = 0.000100013
  Prefactor  = 0.00243977
  Prefactor  = 0.925623
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.53
  Normalizat = 0.917034
  Prefactor  = 1.11699
 **********
 **   18 **HESSE 
 **********

 FCN=   14662.34     FROM HESSE     STATUS=OK           973 CALLS     6689 TOTAL
                     EDM=   .66E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.085        29.613        .24218E-02   -1.4881    
   2  Prefactor     .10000E-03    2.0977        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     7.9581        14.076        .35547E-02   -1.5144    
   4  Prefactor     .10000E-03    1.4890        .49733E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    .46815        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          17.316        10.677        .24064E-02   -1.4875    
   7  norm          .51122E-01    .85211E-01    .92752E-02   -1.5663    
   8  norm          .10000E-03    3.0928        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    .61150        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.6377        3.4121        .82608E-02   -1.5452    
  11  norm          .10000E-03    8.7831        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.5376        1.4270        .64090E-02   -1.5389    
  13  Prefactor     2.8269        1.4058        .60469E-02   -1.5372    
  14  Prefactor     .10000E-03    .55724        .49959E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    .62401        .50040E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.3612        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.6957        1.2139        .52521E-02   -1.5323    
  18  norm          .84340        .54343        .12601E-01   -1.5524    
  19  Prefactor     2.9834        3.8670        .58759E-02   -1.5363    
  20  norm          .11837        .36542        .95972E-02   -1.5639    
  21  norm          6.0114        4.9115        .40937E-02   -1.5218    
  22  Prefactor     .10000E-03    3.3457        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          4.6402        1.3811        .46710E-02   -1.5277    
  24  Prefactor     .37142E-03    1.0305        .39630E-01   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    1.2484        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .11596E-03    300.62        .93996E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          2.6204        3.7295        .63010E-02   -1.5384    
  28  Prefactor     77.054        39.425        .11432E-02   -1.3950    
  29  Prefactor     1.9863        3.3927        .73539E-02   -1.5426    
  30  Prefactor     .10001E-03    11.067        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .24398E-02    31.456        .18638       -1.5698    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     .92562        22.179        .15780       -1.5516    
  33  Prefactor     .10000E-03    4.2547        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Prefactor     .10000E-03    4.7856        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  35  norm          10.530        7.6804        .30876E-02   -1.5059    
  36  Normalizat    .91703        .14007        .65121E-01   -.95864    
  37  Prefactor     1.1170        .11352        .36973E-01   -.88925    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.64096e-07
Minuit parameter uncertainties:
  1  29.6384
  2  3.95603e-07
  3  14.0821
  4  0.0001703
  5  8.47083e-07
  6  10.6785
  7  0.0852108
  8  0.000237367
  9  1.37537e-08
  10  3.41253
  11  4.57328e-05
  12  1.427
  13  1.40583
  14  4.84314e-05
  15  1.18902e-06
  16  7.798e-07
  17  1.21389
  18  0.543432
  19  3.86735
  20  0.365429
  21  4.91183
  22  2.78933e-07
  23  1.38106
  24  0.0334482
  25  1.14625e-06
  26  0.139225
  27  3.72985
  28  39.4381
  29  3.39308
  30  0.000753126
  31  0.542867
  32  9.06507
  33  2.26267e-05
  34  8.14275e-06
  35  7.68108
  36  0.140128
  37  0.113545
Done.

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

Extracting fit parameters...

4FGL J1657.7+4808
   Spectrum: LogParabola
350         norm:  8.434e-01  5.434e-01  1.000e-04  1.000e+04 ( 1.000e-11)
351        alpha:  2.309e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
352         beta:  1.099e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
353           Eb:  5.763e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
682    Prefactor:  1.117e+00  1.135e-01  0.000e+00  1.000e+01 ( 1.000e+00)
683        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
684        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
681   Normalization:  9.170e-01  1.401e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.66
Ra Dec: 254.438 48.137
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 3.12e-08 +/- 2.01e-08
Energy Flux (Fixed Index): 1.05e-05 +/- 6.76e-06

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 14662.1493755
delta logL = 0.190997971629

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 14662.1403547
delta logL = 0.200018847032

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .92878       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8323       1.0000          .0000       5.0000    
     3 'Normalizat'    .93148       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1074       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6850E+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=   14662.14     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      248 TOTAL
                     EDM=   .10E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .92879        .56430        .70577E-03    .23209E-03
   2  alpha         1.8323        .67262        .22327E-01    .81144E-05
   3  Normalizat    .93147        .15337        .14289E-02   -.37616E-04
   4  Prefactor     1.1074        .13205        .22745E-03   -.21893E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.92879
  alpha      = 1.8323
  Normalizat = 0.931469
  Prefactor  = 1.10745
 **********
 **   18 **HESSE 
 **********

 FCN=   14662.14     FROM HESSE     STATUS=OK            27 CALLS      275 TOTAL
                     EDM=   .23E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .92879        .56773        .28231E-04   -1.5515    
   2  alpha         1.8323        .67738        .89309E-03   -.27036    
   3  Normalizat    .93147        .15379        .57157E-04   -.95363    
   4  Prefactor     1.1074        .13242        .90979E-05   -.89229    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.32056e-11
Minuit parameter uncertainties:
  1  0.56773
  2  0.686634
  3  0.153868
  4  0.132455
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/670967': 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): 0
logL (Free Index) = 14662.1403547
delta logL = 0.200018848484

Extracting fit parameters...

4FGL J1657.7+4808
   Spectrum: LogParabola
350         norm:  9.288e-01  5.677e-01  1.000e-04  1.000e+04 ( 1.000e-11)
351        alpha:  1.832e+00  6.866e-01  0.000e+00  5.000e+00 ( 1.000e+00)
352         beta:  1.099e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
353           Eb:  5.763e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
682    Prefactor:  1.107e+00  1.325e-01  0.000e+00  1.000e+01 ( 1.000e+00)
683        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
684        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
681   Normalization:  9.315e-01  1.539e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.05
Ra Dec: 254.438 48.137
Photon Index (Free Index): 1.83 +/- 0.69
Photon Flux (Free Index): 2.35e-08 +/- 1.87e-08
Energy Flux (Free Index): 1.51e-05 +/- 1.38e-05

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/670967/cmap_HighResolution_673228801_673488001_4FGL_J1657.7+4808_daily_bin1674.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.12e-08', energy_flux2='1.51e-05', photon_flux_error='2.01e-08', dlogl='2.00e-01', energy_flux='1.05e-05', photon_flux2='2.35e-08', job_status='DONE', time_completed='2022-05-06 03:34:28.275865', photon_index_error2='0.69', photon_index2='1.83', ts='4.66', fit_tolerance='1e-08', GAL='1.12', photon_index_error='0.00', energy_flux_error2='1.38e-05', EG='0.92', time_epoch_completed='1651833268.28', return_code='0', job_id='670967', GAL2='1.11', EG2='0.93', return_code2='0', energy_flux_error='6.76e-06', photon_flux_error2='1.87e-08', ts2='5.05', photon_index='2.31' WHERE bin_id='1674' AND source_name='4FGL J1657.7+4808' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri May  6 03:34:28 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0202>
Subject: Job 670972: <4FGL_J1657.7+4808_daily_bin1674> in cluster <slac> Done

Job <4FGL_J1657.7+4808_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) <bullet0202>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri May  6 02:56:35 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:35 2022
Terminated at Fri May  6 03:33:35 2022
Results reported at Fri May  6 03:33:35 2022

Your job looked like:

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

Successfully completed.

Resource usage summary:

    CPU time :                                   2106.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             328.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   2219 sec.
    Turnaround time :                            12330 sec.

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


------------------------------------------------------------
Sender: LSF System <scs@bullet0183>
Subject: Job 670967: <4FGL_J1657.7+4808_daily_bin1674> in cluster <slac> Done

Job <4FGL_J1657.7+4808_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) <bullet0183>, 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:34:28 2022
Results reported at Fri May  6 03:34:28 2022

Your job looked like:

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

Successfully completed.

Resource usage summary:

    CPU time :                                   2115.29 sec.
    Max Memory :                                 624 MB
    Average Memory :                             310.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   2931 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   2292 sec.
    Turnaround time :                            12383 sec.

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

