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 91 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.0+6010_monthly_bin167
RA = 254.258, Dec = 60.1676
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='901058', job_status='RUN', time_executed='2022-04-24 02:32:35.335213', time_epoch_executed='1650792755.34' WHERE source_name='4FGL J1657.0+6010' and cadence='monthly' and bin_id='167'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/901058

Creating custom pfile directory:
/scratch/kocevski/901058/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/901058/ft1_4FGL_J1657.0+6010_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/901058/ft2_4FGL_J1657.0+6010_monthly_bin167.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/901058/ft1_4FGL_J1657.0+6010_monthly_bin167.fits outfile=/scratch/kocevski/901058/ft1_filteredMKT_4FGL_J1657.0+6010_monthly_bin167.fits ra=254.258 dec=60.1676 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 37.90
user 36.86
sys 0.94

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/901058/ft2_4FGL_J1657.0+6010_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/901058/ft1_filteredMKT_4FGL_J1657.0+6010_monthly_bin167.fits evtable="EVENTS" outfile="/scratch/kocevski/901058/ft1_filtered_4FGL_J1657.0+6010_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.84
user 0.63
sys 0.20

Number of photons that the gtmktime cut: 7657

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/901058/ft1_filtered_4FGL_J1657.0+6010_monthly_bin167.fits" evtable="EVENTS" scfile=/scratch/kocevski/901058/ft2_4FGL_J1657.0+6010_monthly_bin167.fits sctable="SC_DATA" outfile=/scratch/kocevski/901058/ltcube_669859201_672451201_4FGL_J1657.0+6010_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/901058/ft2_4FGL_J1657.0+6010_monthly_bin167.fits
.....................!
real 110.57
user 109.99
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/901058/ft1_filtered_4FGL_J1657.0+6010_monthly_bin167.fits evtable="EVENTS" scfile=/scratch/kocevski/901058/ft2_4FGL_J1657.0+6010_monthly_bin167.fits sctable="SC_DATA" expcube=/scratch/kocevski/901058/ltcube_669859201_672451201_4FGL_J1657.0+6010_monthly_bin167.fits outfile=/scratch/kocevski/901058/expmap_669859201_672451201_4FGL_J1657.0+6010_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/901058/ltcube_669859201_672451201_4FGL_J1657.0+6010_monthly_bin167.fits
.....................!
real 191.49
user 186.34
sys 4.82

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/901058/ft1_filtered_4FGL_J1657.0+6010_monthly_bin167.fits scfile=/scratch/kocevski/901058/ft2_4FGL_J1657.0+6010_monthly_bin167.fits outfile=/scratch/kocevski/901058/cmap_669859201_672451201_4FGL_J1657.0+6010_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.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.77
user 0.60
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/901058/ft1_filtered_4FGL_J1657.0+6010_monthly_bin167.fits scfile=/scratch/kocevski/901058/ft2_4FGL_J1657.0+6010_monthly_bin167.fits outfile=/scratch/kocevski/901058/cmap_HighResolution_669859201_672451201_4FGL_J1657.0+6010_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.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.78
user 0.60
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/901058/ft1_filtered_4FGL_J1657.0+6010_monthly_bin167.fits evtable="EVENTS" scfile=/scratch/kocevski/901058/ft2_4FGL_J1657.0+6010_monthly_bin167.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/901058/Model_4FGL_J1657.0+6010_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/901058/ft1_filtered_4FGL_J1657.0+6010_monthly_bin167.fits.....................!
real 591.78
user 589.57
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.1900       1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.1295       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.8041       1.0000         .10000E-03   10000.    
     4 'norm      '    .10228E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.1590       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    19.616       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.2161       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.3353       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.2525       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.2839       1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.0409       1.0000         .10000E-03   10000.    
    14 'norm      '    .34634E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .83618       1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.6325       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .81696       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .85525       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.5447       1.0000         .10000E-03   10000.    
    21 'norm      '    1.9457       1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.9816       1.0000         .10000E-03   10000.    
    23 'Prefactor '    14.239       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    3.2373       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .76806       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    10.488       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .17780E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    8.1680       1.0000         .10000E-03   10000.    
    31 'norm      '    7.8316       1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.0378       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.0253       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=   81808.53     FROM MIGRAD    STATUS=CONVERGED    907 CALLS     4056 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.1898        .67147        .22741E-06    .13374E-02
   2  Prefactor     5.1201        19.722       -.26750E-04    .56325E-05
   3  Prefactor     1.8044        1.2391       -.24174E-07    .26507E-03
   4  norm          .10000E-03    .31648       -.14643E-06** at limit **
   5  Prefactor     8.1594        6.1811        .19132E-06    .99617E-04
   6  Prefactor     .10000E-03    .30657       -.67701E-07** at limit **
   7  norm          19.615        5.5381       -.83696E-08    .97906E-04
   8  Prefactor     5.2161        1.7592        .28916E-06    .31135E-03
   9  Prefactor     .10000E-03    2.7308       -.39951E-07** at limit **
  10  norm          3.3353        1.7728        .19893E-06   -.20521E-03
  11  Prefactor     2.2530        .82153       -.25173E-07    .29167E-04
  12  Prefactor     3.2839        2.0846       -.16794E-06   -.73114E-06
  13  Prefactor     9.0400        4.7565       -.13989E-06    .12901E-03
  14  norm          .34617E-01    .74883E-01    .12028E-07    .55237E-03
  15  Prefactor     .83821        1.1355       -.27611E-06    .12006E-02
  16  Prefactor     4.6331        3.6246       -.20343E-06    .19572E-03
  17  Prefactor     .10000E-03    .36696       -.86704E-07** at limit **
  18  Prefactor     .81742        1.0676       -.89553E-07   -.33416E-03
  19  Prefactor     .85529        .72749       -.38707E-07   -.62931E-03
  20  Prefactor     1.5436        5.9665        .16753E-06   -.10389E-03
  21  norm          1.9458        1.4705        .74762E-08   -.59344E-03
  22  Prefactor     2.9817        1.2461       -.41974E-07    .45355E-04
  23  Prefactor     14.239        10.282       -.18134E-06    .19662E-04
  24  Prefactor     .10000E-03    13.499        .33520E-06** at limit **
  25  norm          3.2373        .68481       -.90899E-08    .16811E-03
  26  Prefactor     .76836        1.5444       -.17224E-06   -.60691E-03
  27  Prefactor     .10000E-03    1.3933        .38151E-06** at limit **
  28  Prefactor     10.488        4.6136       -.22359E-06    .33478E-04
  29  Prefactor     .10000E-03    .94046       -.11836E-06** at limit **
  30  Prefactor     8.1678        16.816       -.26714E-06    .36658E-05
  31  norm          7.8317        2.4370       -.79305E-08   -.11781E-03
  32  Normalizat    1.0378        .55571E-01    .69066E-06    .82679E-03
  33  Prefactor     1.0253        .44852E-01   -.98724E-07    .14082E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 2.18983
  Prefactor  = 5.12007
  Prefactor  = 1.80439
  norm       = 0.0001
  Prefactor  = 8.15938
  Prefactor  = 0.0001
  norm       = 19.6148
  Prefactor  = 5.21615
  Prefactor  = 0.0001
  norm       = 3.33528
  Prefactor  = 2.25298
  Prefactor  = 3.28393
  Prefactor  = 9.03996
  norm       = 0.0346171
  Prefactor  = 0.838212
  Prefactor  = 4.63312
  Prefactor  = 0.0001
  Prefactor  = 0.817416
  Prefactor  = 0.855286
  Prefactor  = 1.54364
  norm       = 1.94576
  Prefactor  = 2.9817
  Prefactor  = 14.2391
  Prefactor  = 0.0001
  norm       = 3.23729
  Prefactor  = 0.768361
  Prefactor  = 0.0001
  Prefactor  = 10.4879
  Prefactor  = 0.0001
  Prefactor  = 8.16783
  norm       = 7.83173
  Normalizat = 1.03784
  Prefactor  = 1.02531
 **********
 **   18 **HESSE 
 **********

 FCN=   81808.53     FROM HESSE     STATUS=OK           733 CALLS     4789 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.1898        .67074        .12442E-03   -1.5412    
   2  Prefactor     5.1201        19.747        .17751E-03   -1.5255    
   3  Prefactor     1.8044        1.2277        .25280E-03   -1.5439    
   4  norm          .10000E-03    1.4218        .30614E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     8.1594        6.1674        .14036E-03   -1.5137    
   6  Prefactor     .10000E-03    .84415        .30417E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          19.615        5.5047        .90433E-04   -1.4822    
   8  Prefactor     5.2161        1.7635        .17601E-03   -1.5251    
   9  Prefactor     .10000E-03    2.7560        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.3353        1.8010        .11081E-02   -1.5343    
  11  Prefactor     2.2530        .81821        .15061E-03   -1.5408    
  12  Prefactor     3.2839        2.0789        .22344E-03   -1.5346    
  13  Prefactor     9.0400        4.7321        .66649E-03   -1.5107    
  14  norm          .34617E-01    .10308        .10120E-02   -1.5671    
  15  Prefactor     .83821        2.2629        .30942E-02   -1.5525    
  16  Prefactor     4.6331        3.5170        .18700E-03   -1.5277    
  17  Prefactor     .10000E-03    2.0162        .32249E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .81742        1.0392        .31965E-03   -1.5527    
  19  Prefactor     .85529        .55379        .21467E-02   -1.5523    
  20  Prefactor     1.5436        6.0374        .17145E-02   -1.5459    
  21  norm          1.9458        1.4961        .14740E-02   -1.5429    
  22  Prefactor     2.9817        1.2349        .19286E-03   -1.5363    
  23  Prefactor     14.239        10.267        .10614E-03   -1.4953    
  24  Prefactor     .10000E-03    13.566        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          3.2373        .68470        .10559E-03   -1.5348    
  26  Prefactor     .76836        5.0175        .24641E-02   -1.5533    
  27  Prefactor     .10000E-03    1.4365        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     10.488        4.6186        .12372E-03   -1.5060    
  29  Prefactor     .10000E-03    9.4227        .53647E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     8.1678        16.813        .14028E-03   -1.5136    
  31  norm          7.8317        2.4377        .71642E-03   -1.5148    
  32  Normalizat    1.0378        .64686E-01    .26825E-03   -.91773    
  33  Prefactor     1.0253        .53179E-01    .22989E-03   -.91891    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.11789e-09
Minuit parameter uncertainties:
  1  0.670738
  2  19.772
  3  1.2277
  4  4.01277e-05
  5  6.16785
  6  9.77569e-06
  7  5.50482
  8  1.76355
  9  6.22126e-07
  10  1.80106
  11  0.818219
  12  2.07898
  13  4.73229
  14  0.103079
  15  2.26317
  16  3.51714
  17  1.15798e-05
  18  1.03921
  19  0.553791
  20  6.03981
  21  1.4961
  22  1.2349
  23  10.2684
  24  1.40056e-05
  25  0.684702
  26  3.92718
  27  5.94738e-06
  28  4.61878
  29  1.23671e-05
  30  16.823
  31  2.43777
  32  0.0646906
  33  0.0531815
Done.

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

Extracting fit parameters...

4FGL J1657.0+6010
   Spectrum: PowerLaw
375    Prefactor:  9.040e+00  4.732e+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

GAL_V02
   Spectrum: PowerLaw
719    Prefactor:  1.025e+00  5.318e-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:  1.038e+00  6.469e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.73
Ra Dec: 254.258 60.168
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 1.72e-08 +/- 8.99e-09
Energy Flux (Fixed Index): 5.30e-06 +/- 2.78e-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): 102
logL (Free Index) = 81807.2482851
delta logL = 1.28481156123

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 81807.0038241
delta logL = 1.52927262326

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .16808       1.0000         .10000E-03   10000.    
     2 'Index     '    4.9649       1.0000          .0000       10.000    
     3 'Normalizat'    1.0011       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0498       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.

 FCN=   81807.00     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      303 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .16710        .43107        .93543E-02    .34884E-01
   2  Index         4.9683        .90522        .12773        .20514E-02
   3  Normalizat    1.0010        .93749E-02    .46180E-01   -.66822E-03
   4  Prefactor     1.0499        .80375E-02    .39919E-01   -.80503E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.167105
  Index      = 4.96828
  Normalizat = 1.00105
  Prefactor  = 1.04991
 **********
 **   18 **HESSE 
 **********

 FCN=   81807.00     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      338 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .16710        1.0968        .43208E-03   -1.5626    
   2  Index         4.9683        2.3557        .74574E-02   -.63431E-02
   3  Normalizat    1.0010        .39336E-01    .27241E-03   -.92995    
   4  Prefactor     1.0499        .33267E-01    .22754E-03   -.91084    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.2699e-09
Minuit parameter uncertainties:
  1  0.855993
  2  2.45293
  3  0.0393374
  4  0.0332678
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/901058': 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) = 81807.0038163
delta logL = 1.52928044174

Extracting fit parameters...

4FGL J1657.0+6010
   Spectrum: PowerLaw
375    Prefactor:  1.671e-01  8.560e-01  1.000e-04  1.000e+04 ( 1.000e-13)
376        Index:  4.968e+00  2.453e+00  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.050e+00  3.327e-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:  1.001e+00  3.934e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.51
Ra Dec: 254.258 60.168
Photon Index (Free Index): 4.97 +/- 2.45
Photon Flux (Free Index): 3.79e-08 +/- 1.33e-08
Energy Flux (Free Index): 5.05e-06 +/- 2.31e-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/901058/cmap_HighResolution_669859201_672451201_4FGL_J1657.0+6010_monthly_bin167.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.72e-08', energy_flux2='5.05e-06', photon_flux_error='8.99e-09', dlogl='1.53e+00', energy_flux='5.30e-06', photon_flux2='3.79e-08', job_status='DONE', time_completed='2022-04-24 04:54:46.952967', photon_index_error2='2.45', photon_index2='4.97', ts='5.73', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', energy_flux_error2='2.31e-06', EG='1.04', time_epoch_completed='1650801286.95', return_code='0', job_id='901058', GAL2='1.05', EG2='1.00', return_code2='102', energy_flux_error='2.78e-06', photon_flux_error2='1.33e-08', ts2='9.51', photon_index='2.45' WHERE bin_id='167' AND source_name='4FGL J1657.0+6010' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Sun Apr 24 04:54:46 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0226>
Subject: Job 901058: <4FGL_J1657.0+6010_monthly_bin167> in cluster <slac> Done

Job <4FGL_J1657.0+6010_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) <bullet0226>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Apr 24 02:30:52 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:52 2022
Terminated at Sun Apr 24 04:54:48 2022
Results reported at Sun Apr 24 04:54:48 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1657.0+6010_monthly_bin167 254.258 60.1676 669859201 672451201 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 :                                   8498.00 sec.
    Max Memory :                                 1101 MB
    Average Memory :                             432.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   8635 sec.
    Turnaround time :                            10155 sec.

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

