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


Performing analysis on: 4FGL_J1657.7+4808_monthly_bin167
RA = 254.438, Dec = 48.1368
tmin = 669859201, tmax = 672451201
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='901059', job_status='RUN', time_executed='2022-04-24 02:31:33.001616', time_epoch_executed='1650792693.0' WHERE source_name='4FGL J1657.7+4808' and cadence='monthly' and bin_id='167'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/901059

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

Retrieving the FT1 file...

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

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

Retrieving 456 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/901059/ft1_4FGL_J1657.7+4808_monthly_bin167.fits


Retrieving the FT1 file...

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

Retrieving 456 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/901059/ft2_4FGL_J1657.7+4808_monthly_bin167.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/901059/ft1_4FGL_J1657.7+4808_monthly_bin167.fits outfile=/scratch/kocevski/901059/ft1_filteredMKT_4FGL_J1657.7+4808_monthly_bin167.fits ra=254.438 dec=48.1368 rad=12.0 tmin=669859201.0 tmax=672451201.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 38.17
user 37.43
sys 0.67

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/901059/ft2_4FGL_J1657.7+4808_monthly_bin167.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/901059/ft1_filteredMKT_4FGL_J1657.7+4808_monthly_bin167.fits evtable="EVENTS" outfile="/scratch/kocevski/901059/ft1_filtered_4FGL_J1657.7+4808_monthly_bin167.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.85
user 0.67
sys 0.16

Number of photons that the gtmktime cut: 8091

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/901059/ft1_filtered_4FGL_J1657.7+4808_monthly_bin167.fits" evtable="EVENTS" scfile=/scratch/kocevski/901059/ft2_4FGL_J1657.7+4808_monthly_bin167.fits sctable="SC_DATA" outfile=/scratch/kocevski/901059/ltcube_669859201_672451201_4FGL_J1657.7+4808_monthly_bin167.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/901059/ft2_4FGL_J1657.7+4808_monthly_bin167.fits
.....................!
real 112.47
user 111.87
sys 0.39

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/901059/ft1_filtered_4FGL_J1657.7+4808_monthly_bin167.fits evtable="EVENTS" scfile=/scratch/kocevski/901059/ft2_4FGL_J1657.7+4808_monthly_bin167.fits sctable="SC_DATA" expcube=/scratch/kocevski/901059/ltcube_669859201_672451201_4FGL_J1657.7+4808_monthly_bin167.fits outfile=/scratch/kocevski/901059/expmap_669859201_672451201_4FGL_J1657.7+4808_monthly_bin167.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/901059/ltcube_669859201_672451201_4FGL_J1657.7+4808_monthly_bin167.fits
.....................!
real 193.09
user 187.17
sys 5.58

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/901059/ft1_filtered_4FGL_J1657.7+4808_monthly_bin167.fits scfile=/scratch/kocevski/901059/ft2_4FGL_J1657.7+4808_monthly_bin167.fits outfile=/scratch/kocevski/901059/cmap_669859201_672451201_4FGL_J1657.7+4808_monthly_bin167.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.78
user 0.62
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/901059/ft1_filtered_4FGL_J1657.7+4808_monthly_bin167.fits scfile=/scratch/kocevski/901059/ft2_4FGL_J1657.7+4808_monthly_bin167.fits outfile=/scratch/kocevski/901059/cmap_HighResolution_669859201_672451201_4FGL_J1657.7+4808_monthly_bin167.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.79
user 0.63
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/901059/ft1_filtered_4FGL_J1657.7+4808_monthly_bin167.fits evtable="EVENTS" scfile=/scratch/kocevski/901059/ft2_4FGL_J1657.7+4808_monthly_bin167.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/901059/Model_4FGL_J1657.7+4808_monthly_bin167.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/901059/ft1_filtered_4FGL_J1657.7+4808_monthly_bin167.fits.....................!
real 546.71
user 544.09
sys 1.70

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/901059/ft1_filtered_4FGL_J1657.7+4808_monthly_bin167.fits', '/scratch/kocevski/901059/ft2_4FGL_J1657.7+4808_monthly_bin167.fits', expMap='/scratch/kocevski/901059/expmap_669859201_672451201_4FGL_J1657.7+4808_monthly_bin167.fits', expCube='/scratch/kocevski/901059/ltcube_669859201_672451201_4FGL_J1657.7+4808_monthly_bin167.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/901059/Model_4FGL_J1657.7+4808_monthly_bin167.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/901059/ft1_filtered_4FGL_J1657.7+4808_monthly_bin167.fits
Spacecraft file(s): /scratch/kocevski/901059/ft2_4FGL_J1657.7+4808_monthly_bin167.fits
Exposure map: /scratch/kocevski/901059/expmap_669859201_672451201_4FGL_J1657.7+4808_monthly_bin167.fits
Exposure cube: /scratch/kocevski/901059/ltcube_669859201_672451201_4FGL_J1657.7+4808_monthly_bin167.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/901059/Model_4FGL_J1657.7+4808_monthly_bin167.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) = 84989.6082187

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.6992       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.8769       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .65423E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    20.318       1.0000         .10000E-03   10000.    
     7 'norm      '    .28120       1.0000         .10000E-03   10000.    
     8 'norm      '    2.8776       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .98953       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.2032       1.0000         .10000E-03   10000.    
    11 'norm      '    6.0629       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.2060       1.0000         .10000E-03   10000.    
    13 'Prefactor '    14.962       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.0192       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .62125E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.6270       1.0000         .10000E-03   10000.    
    17 'norm      '    3.5421       1.0000         .10000E-03   10000.    
    18 'norm      '    .24785       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .14371E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .38383E-01   1.0000         .10000E-03   10000.    
    21 'norm      '    14.578       1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.3079       1.0000         .10000E-03   10000.    
    23 'norm      '    4.7280       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .90586       1.0000         .10000E-03   10000.    
    25 'norm      '    .66826       1.0000         .10000E-03   10000.    
    26 'Prefactor '    6.5744       1.0000         .10000E-03   10000.    
    27 'norm      '    1.4572       1.0000         .10000E-03   10000.    
    28 'Prefactor '    17.273       1.0000         .10000E-03   10000.    
    29 'Prefactor '    3.4291       1.0000         .10000E-03   10000.    
    30 'Prefactor '    16.335       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .86103E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    4.9979       1.0000         .10000E-03   10000.    
    33 'Prefactor '    6.7197       1.0000         .10000E-03   10000.    
    34 'Prefactor '    .69801       1.0000         .10000E-03   10000.    
    35 'norm      '    .59987       1.0000         .10000E-03   10000.    
    36 'Normalizat'    .98659       1.0000         .10000E-01   10.000    
    37 'Prefactor '    1.0302       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   84989.60     FROM MIGRAD    STATUS=CONVERGED   1116 CALLS     5880 TOTAL
                     EDM=   .27E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.7155        8.6071         .0000       -.54977E-03
   2  Prefactor     1.8775        1.3520         .0000        .41220E-02
   3  Prefactor     .10006E-03    1.5192         .0000    ** at limit **
   4  Prefactor     .10000E-03    .31142         .0000    ** at limit **
   5  Prefactor     .10000E-03    .15301         .0000    ** at limit **
   6  norm          20.321        5.6369         .0000       -.36779E-02
   7  norm          .28119        .46773E-01     .0000        .80055E-02
   8  norm          2.8780        2.1104         .0000       -.17986E-02
   9  Prefactor     .98918        .97798         .0000        .12490E-01
  10  Prefactor     5.2042        1.7523         .0000        .27120E-02
  11  norm          6.0120        8.0518         .0000        .15712E-02
  12  Prefactor     1.2062        .73656         .0000        .13371E-01
  13  Prefactor     14.962        .96557         .0000        .18065E-03
  14  Prefactor     3.0191        .94454         .0000        .44507E-02
  15  Prefactor     .10000E-03    .10805         .0000    ** at limit **
  16  Prefactor     3.6291        2.1782         .0000        .41610E-01
  17  norm          3.5419        .51749         .0000       -.81208E-03
  18  norm          .24784        .20228         .0000        .18315E-01
  19  Prefactor     .10001E-03    .46124         .0000    ** at limit **
  20  norm          .38350E-01    .84518E-01     .0000        .27782E-01
  21  norm          14.577        2.7521         .0000        .52859E-03
  22  Prefactor     1.3074        1.3913         .0000        .36378E-02
  23  norm          4.7284        .63096         .0000        .23886E-02
  24  Prefactor     .90583        .79753         .0000       -.23886E-02
  25  norm          .66795        .77388         .0000        .97734E-02
  26  Prefactor     6.5229        11.538         .0000       -.23548E-02
  27  norm          1.4576        1.0861         .0000        .50086E-02
  28  Prefactor     17.267        10.064         .0000        .42140E-02
  29  Prefactor     3.4298        1.3144         .0000        .44770E-02
  30  Prefactor     16.316        11.066         .0000       -.15850E-02
  31  Prefactor     .10000E-03    22.427         .0000    ** at limit **
  32  Prefactor     4.9298        9.1254         .0000        .84238E-03
  33  Prefactor     6.7147        2.5810         .0000        .67217E-03
  34  Prefactor     .71113        5.2987         .0000        .69089E-01
  35  norm          .59994        1.5911         .0000        .31725    
  36  Normalizat    .98660        .60761E-01     .0000        .12666E-03
  37  Prefactor     1.0302        .48818E-01     .0000        .52917E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.71547
  Prefactor  = 1.87755
  Prefactor  = 0.000100061
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 20.3214
  norm       = 0.281195
  norm       = 2.87803
  Prefactor  = 0.989175
  Prefactor  = 5.20418
  norm       = 6.01204
  Prefactor  = 1.20618
  Prefactor  = 14.9622
  Prefactor  = 3.01911
  Prefactor  = 0.0001
  Prefactor  = 3.62907
  norm       = 3.54192
  norm       = 0.247837
  Prefactor  = 0.000100006
  norm       = 0.0383495
  norm       = 14.5768
  Prefactor  = 1.30737
  norm       = 4.72841
  Prefactor  = 0.905826
  norm       = 0.667945
  Prefactor  = 6.5229
  norm       = 1.45761
  Prefactor  = 17.2668
  Prefactor  = 3.42983
  Prefactor  = 16.3158
  Prefactor  = 0.000100003
  Prefactor  = 4.92975
  Prefactor  = 6.71474
  Prefactor  = 0.711134
  norm       = 0.599943
  Normalizat = 0.986595
  Prefactor  = 1.03022
 **********
 **   18 **HESSE 
 **********

 FCN=   84989.60     FROM HESSE     STATUS=OK           911 CALLS     6791 TOTAL
                     EDM=   .10E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.7155        8.5883        .15503E-03   -1.5190    
   2  Prefactor     1.8775        1.3434        .25809E-03   -1.5434    
   3  Prefactor     .10006E-03    1.8177        .10208       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    .94255        .30947E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    .29604        .21939E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          20.321        5.6031        .88856E-04   -1.4806    
   7  norm          .28119        .45757E-01    .23962E-04   -1.5602    
   8  norm          2.8780        2.1118        .23960E-03   -1.5369    
   9  Prefactor     .98918        .94651        .26791E-03   -1.5509    
  10  Prefactor     5.2042        1.7556        .17623E-03   -1.5252    
  11  norm          6.0120        8.0324        .16306E-03   -1.5218    
  12  Prefactor     1.2062        .65439        .12239E-03   -1.5488    
  13  Prefactor     14.962        .87903        .45795E-04   -1.4934    
  14  Prefactor     3.0191        .92297        .14548E-03   -1.5360    
  15  Prefactor     .10000E-03    .15277        .36126E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.6291        2.1731        .10607E-02   -1.5327    
  17  norm          3.5419        .51774        .77447E-04   -1.5332    
  18  norm          .24784        .17913        .10613E-02   -1.5608    
  19  Prefactor     .10001E-03    .58823        .54519E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .38350E-01    .15010        .11770E-02   -1.5669    
  21  norm          14.577        2.7265        .10490E-03   -1.4944    
  22  Prefactor     1.3074        1.3815        .34471E-03   -1.5479    
  23  norm          4.7284        .62910        .78993E-04   -1.5273    
  24  Prefactor     .90583        .57761        .23160E-02   -1.5518    
  25  norm          .66795        .91194        .25768E-02   -1.5545    
  26  Prefactor     6.5229        11.389        .15651E-03   -1.5197    
  27  norm          1.4576        1.0661        .24774E-03   -1.5467    
  28  Prefactor     17.267        10.025        .96368E-04   -1.4877    
  29  Prefactor     3.4298        1.3024        .19182E-03   -1.5338    
  30  Prefactor     16.316        11.047        .99098E-04   -1.4900    
  31  Prefactor     .10000E-03    22.650        .20858E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     4.9298        9.0772        .17988E-03   -1.5264    
  33  Prefactor     6.7147        2.5742        .15479E-03   -1.5190    
  34  Prefactor     .71113        5.5099        .24108E-02   -1.5539    
  35  norm          .59994        1.5634        .23344E-02   -1.5553    
  36  Normalizat    .98660        .70955E-01    .29767E-03   -.93481    
  37  Prefactor     1.0302        .57862E-01    .24708E-03   -.91729    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04305e-06
Minuit parameter uncertainties:
  1  8.58983
  2  1.34346
  3  0.000668566
  4  1.68672e-06
  5  4.46777e-07
  6  5.60321
  7  0.0457568
  8  2.11181
  9  0.946524
  10  1.75566
  11  8.03382
  12  0.654391
  13  0.879029
  14  0.922975
  15  8.71648e-06
  16  2.1731
  17  0.517739
  18  0.179135
  19  0.000114249
  20  0.150097
  21  2.72657
  22  1.38149
  23  0.629105
  24  0.577613
  25  0.911959
  26  11.393
  27  1.06611
  28  10.026
  29  1.30241
  30  11.048
  31  0.000545701
  32  9.07976
  33  2.57429
  34  3.95917
  35  1.56351
  36  0.0709618
  37  0.0578651
Done.

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

Extracting fit parameters...

4FGL J1657.7+4808
   Spectrum: LogParabola
350         norm:  2.478e-01  1.791e-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.030e+00  5.787e-02  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.866e-01  7.096e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.37
Ra Dec: 254.438 48.137
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 9.18e-09 +/- 6.63e-09
Energy Flux (Fixed Index): 3.08e-06 +/- 2.23e-06

TS (Fixed Index): 3.37
Ra Dec: 254.438 48.137
Photon Flux Upper Limit: 2.29e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.70e-06 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/901059/likelihoodResults_669859201_672451201_4FGL_J1657.7+4808_monthly_bin167.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 84989.4189987
delta logL = 0.178343038744

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 84989.4123183
delta logL = 0.185023416503

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .26197       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7427       1.0000          .0000       5.0000    
     3 'Normalizat'    .97860       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0339       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.

 FCN=   84989.41     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      218 TOTAL
                     EDM=   .86E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .26220        .96476        .21037E-01    .22147E-01
   2  alpha         2.7426        3.7184        .41399        .27938E-03
   3  Normalizat    .97860        .84683E-02    .67537E-01    .20098E-03
   4  Prefactor     1.0339        .72126E-02    .40959E-01    .14694E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.262196
  alpha      = 2.74263
  Normalizat = 0.978599
  Prefactor  = 1.03394
 **********
 **   18 **HESSE 
 **********

 FCN=   84989.41     FROM HESSE     STATUS=OK            33 CALLS      251 TOTAL
                     EDM=   .12E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .26220        .18593        .91318E-04   -1.5606    
   2  alpha         2.7426        .75440        .56602E-01    .97207E-01
   3  Normalizat    .97860        .67901E-01    .29875E-03   -.93751    
   4  Prefactor     1.0339        .56645E-01    .24669E-03   -.91607    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.19374e-07
Minuit parameter uncertainties:
  1  0.185929
  2  0.766461
  3  0.0679066
  4  0.0566481
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/901059': 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) = 84989.4123174
delta logL = 0.185024354083

Extracting fit parameters...

4FGL J1657.7+4808
   Spectrum: LogParabola
350         norm:  2.622e-01  1.859e-01  1.000e-04  1.000e+04 ( 1.000e-11)
351        alpha:  2.743e+00  7.665e-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.034e+00  5.665e-02  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.786e-01  6.791e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.76
Ra Dec: 254.438 48.137
Photon Index (Free Index): 2.74 +/- 0.77
Photon Flux (Free Index): 1.53e-08 +/- 1.26e-08
Energy Flux (Free Index): 3.64e-06 +/- 2.29e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  2.220e+00 [aplpy.core]
Saving /scratch/kocevski/901059/cmap_HighResolution_669859201_672451201_4FGL_J1657.7+4808_monthly_bin167.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.70e-06', comment='SUCCESS', photon_flux='9.18e-09', energy_flux2='3.64e-06', photon_flux_error='6.63e-09', dlogl='1.85e-01', energy_flux='3.08e-06', photon_flux2='1.53e-08', job_status='DONE', time_completed='2022-04-24 06:24:28.212121', photon_index_error2='0.77', photon_index2='2.74', ts='3.37', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', photon_flux_upper_limit='2.29e-08', energy_flux_error2='2.29e-06', EG='0.99', time_epoch_completed='1650806668.21', return_code='0', job_id='901059', GAL2='1.03', EG2='0.98', return_code2='0', energy_flux_error='2.23e-06', photon_flux_error2='1.26e-08', ts2='3.76', photon_index='2.31' WHERE bin_id='167' AND source_name='4FGL J1657.7+4808' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Sun Apr 24 06:24:28 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0148>
Subject: Job 901059: <4FGL_J1657.7+4808_monthly_bin167> in cluster <slac> Done

Job <4FGL_J1657.7+4808_monthly_bin167> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Apr 24 02:05:33 2022
Job was executed on host(s) <bullet0148>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Apr 24 02:30:53 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Apr 24 02:30:53 2022
Terminated at Sun Apr 24 06:24:30 2022
Results reported at Sun Apr 24 06:24:30 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1657.7+4808_monthly_bin167 254.438 48.1368 669859201 672451201 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 :                                   13924.00 sec.
    Max Memory :                                 631 MB
    Average Memory :                             435.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   14016 sec.
    Turnaround time :                            15537 sec.

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

