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


Performing analysis on: 4FGL_J1657.0+6010_monthly_bin168
RA = 254.258, Dec = 60.1676
tmin = 672451201, tmax = 675043201
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='640988', job_status='RUN', time_executed='2022-05-24 03:32:03.429282', time_epoch_executed='1653388323.43' WHERE source_name='4FGL J1657.0+6010' and cadence='monthly' and bin_id='168'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/640988

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

Retrieving the FT1 file...

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

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

Retrieving 455 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/640988/ft1_4FGL_J1657.0+6010_monthly_bin168.fits


Retrieving the FT1 file...

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

Retrieving 455 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/640988/ft2_4FGL_J1657.0+6010_monthly_bin168.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/640988/ft1_4FGL_J1657.0+6010_monthly_bin168.fits outfile=/scratch/kocevski/640988/ft1_filteredMKT_4FGL_J1657.0+6010_monthly_bin168.fits ra=254.258 dec=60.1676 rad=12.0 tmin=672451201.0 tmax=675043201.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 28.64
user 27.91
sys 0.62

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

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

Number of photons that the gtmktime cut: 11082

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/640988/ft1_filtered_4FGL_J1657.0+6010_monthly_bin168.fits" evtable="EVENTS" scfile=/scratch/kocevski/640988/ft2_4FGL_J1657.0+6010_monthly_bin168.fits sctable="SC_DATA" outfile=/scratch/kocevski/640988/ltcube_672451201_675043201_4FGL_J1657.0+6010_monthly_bin168.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/640988/ft2_4FGL_J1657.0+6010_monthly_bin168.fits
.....................!
real 130.68
user 129.98
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/640988/ft1_filtered_4FGL_J1657.0+6010_monthly_bin168.fits evtable="EVENTS" scfile=/scratch/kocevski/640988/ft2_4FGL_J1657.0+6010_monthly_bin168.fits sctable="SC_DATA" expcube=/scratch/kocevski/640988/ltcube_672451201_675043201_4FGL_J1657.0+6010_monthly_bin168.fits outfile=/scratch/kocevski/640988/expmap_672451201_675043201_4FGL_J1657.0+6010_monthly_bin168.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/640988/ltcube_672451201_675043201_4FGL_J1657.0+6010_monthly_bin168.fits
.....................!
real 191.85
user 186.67
sys 4.72

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/640988/ft1_filtered_4FGL_J1657.0+6010_monthly_bin168.fits scfile=/scratch/kocevski/640988/ft2_4FGL_J1657.0+6010_monthly_bin168.fits outfile=/scratch/kocevski/640988/cmap_672451201_675043201_4FGL_J1657.0+6010_monthly_bin168.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.80
user 0.63
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/640988/ft1_filtered_4FGL_J1657.0+6010_monthly_bin168.fits scfile=/scratch/kocevski/640988/ft2_4FGL_J1657.0+6010_monthly_bin168.fits outfile=/scratch/kocevski/640988/cmap_HighResolution_672451201_675043201_4FGL_J1657.0+6010_monthly_bin168.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.85
user 0.63
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .99569       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .40026       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.1856       1.0000         .10000E-03   10000.    
     4 'norm      '    .54311       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .46817       1.0000         .10000E-03   10000.    
     7 'norm      '    27.560       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.3862       1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.4369       1.0000         .10000E-03   10000.    
    10 'norm      '    2.2064       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .61369       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .14191E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .15004       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.2391       1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.6006       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .85931       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.2691       1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.4813       1.0000         .10000E-03   10000.    
    23 'Prefactor '    14.978       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    3.0988       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10999E-02   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .98552       1.0000         .10000E-03   10000.    
    29 'Prefactor '    1.5415       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10306E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    10.986       1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.0003       1.0000         .10000E-01   10.000    
    33 '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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   117992.9     FROM MIGRAD    STATUS=CONVERGED    922 CALLS     4095 TOTAL
                     EDM=   .18E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .99562        .39323         .0000        .38189E-02
   2  Prefactor     .38828        3.3215         .0000        .32531E-02
   3  Prefactor     2.1856        1.3991         .0000        .56612E-02
   4  norm          .54276        .89817         .0000        .12663E-01
   5  Prefactor     .10001E-03    4.1579         .0000    ** at limit **
   6  Prefactor     .47095        .59094         .0000        .88251E-02
   7  norm          27.559        5.0502         .0000       -.23201E-02
   8  Prefactor     2.3863        1.4389         .0000        .10689E-01
   9  Prefactor     9.4361        6.1275         .0000       -.62896E-03
  10  norm          2.2064        1.5318         .0000        .19505    
  11  Prefactor     .61374        .44657         .0000        .79952E-02
  12  Prefactor     .10000E-03    .45417         .0000    ** at limit **
  13  Prefactor     .10001E-03    .61814         .0000    ** at limit **
  14  norm          .15011        .11629         .0000        .28761E-01
  15  Prefactor     1.2393        1.3987         .0000        .17877E-01
  16  Prefactor     4.6002        2.7853         .0000        .20729E-02
  17  Prefactor     .10000E-03    .21830         .0000    ** at limit **
  18  Prefactor     .10000E-03    .22823         .0000    ** at limit **
  19  Prefactor     .85945        .62800         .0000        .86709E-02
  20  Prefactor     .10002E-03    4.1001         .0000    ** at limit **
  21  norm          1.2691        .98965         .0000        .39907E-02
  22  Prefactor     3.4815        1.1059         .0000        .80708E-02
  23  Prefactor     14.978        8.0217         .0000        .95473E-04
  24  Prefactor     .10000E-03    16.044         .0000    ** at limit **
  25  norm          3.0988        .55266         .0000       -.25234E-02
  26  Prefactor     .10000E-03    1.1902         .0000    ** at limit **
  27  Prefactor     .10000E-03    .32829         .0000    ** at limit **
  28  Prefactor     .98614        2.2985         .0000        .24464    
  29  Prefactor     1.5417        2.3540         .0000        .29451E-02
  30  Prefactor     .10002E-03    27.514         .0000    ** at limit **
  31  norm          10.986        2.2019         .0000        .13666E-02
  32  Normalizat    1.0003        .46558E-01     .0000        .37616E-03
  33  Prefactor     1.0498        .37411E-01     .0000       -.54319E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.995618
  Prefactor  = 0.388281
  Prefactor  = 2.18561
  norm       = 0.542757
  Prefactor  = 0.000100012
  Prefactor  = 0.47095
  norm       = 27.5592
  Prefactor  = 2.38629
  Prefactor  = 9.43608
  norm       = 2.20643
  Prefactor  = 0.613745
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  norm       = 0.150115
  Prefactor  = 1.23927
  Prefactor  = 4.60017
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.859447
  Prefactor  = 0.000100024
  norm       = 1.26909
  Prefactor  = 3.48148
  Prefactor  = 14.9777
  Prefactor  = 0.000100003
  norm       = 3.09882
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.986142
  Prefactor  = 1.5417
  Prefactor  = 0.00010002
  norm       = 10.9865
  Normalizat = 1.00032
  Prefactor  = 1.04982
 **********
 **   18 **HESSE 
 **********

 FCN=   117992.9     FROM HESSE     STATUS=OK           739 CALLS     4834 TOTAL
                     EDM=   .15E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .99562        .38729        .13025E-03   -1.5508    
   2  Prefactor     .38828        3.2277        .19558       -1.5583    
   3  Prefactor     2.1856        1.3709        .27842E-03   -1.5412    
   4  norm          .54276        1.4073        .36207E-02   -1.5561    
   5  Prefactor     .10001E-03    4.2507        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .47095        1.1942        .27657E-02   -1.5571    
   7  norm          27.559        5.0372        .76312E-04   -1.4658    
   8  Prefactor     2.3863        1.4331        .26515E-03   -1.5399    
   9  Prefactor     9.4361        6.0523        .13046E-03   -1.5094    
  10  norm          2.2064        1.5207        .13847E-02   -1.5411    
  11  Prefactor     .61374        .44909        .18921E-03   -1.5551    
  12  Prefactor     .10000E-03    .46001        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10001E-03    3.8231        .51574E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .15011        .11049        .89002E-03   -1.5630    
  15  Prefactor     1.2393        1.3535        .39484E-03   -1.5485    
  16  Prefactor     4.6002        2.6986        .18766E-03   -1.5279    
  17  Prefactor     .10000E-03    .53365        .30410E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    .99102        .31341E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .85945        .48841        .22286E-02   -1.5523    
  20  Prefactor     .10002E-03    4.1213        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.2691        .97529        .28888E-03   -1.5483    
  22  Prefactor     3.4815        1.0951        .18986E-03   -1.5335    
  23  Prefactor     14.978        8.0104        .10349E-03   -1.4934    
  24  Prefactor     .10000E-03    16.198        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          3.0988        .55239        .10469E-03   -1.5356    
  26  Prefactor     .10000E-03    1.2002        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    .65610        .62724E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .98614        2.2775        .26229E-02   -1.5509    
  29  Prefactor     1.5417        2.3279        .34337E-03   -1.5460    
  30  Prefactor     .10002E-03    28.054        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          10.986        2.2002        .12087E-03   -1.5045    
  32  Normalizat    1.0003        .52807E-01    .26530E-03   -.93020    
  33  Prefactor     1.0498        .43487E-01    .22451E-03   -.91087    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.50322e-06
Minuit parameter uncertainties:
  1  0.38729
  2  2.23885
  3  1.37088
  4  1.40742
  5  0.000447492
  6  1.19421
  7  5.0373
  8  1.4331
  9  6.05267
  10  1.52076
  11  0.449093
  12  2.70553e-07
  13  0.000306701
  14  0.110493
  15  1.35356
  16  2.69868
  17  1.45753e-05
  18  3.8968e-06
  19  0.488413
  20  0.000628994
  21  0.975305
  22  1.09513
  23  8.01095
  24  0.00046167
  25  0.552387
  26  1.35278e-05
  27  9.51179e-05
  28  2.27768
  29  2.32806
  30  0.00148404
  31  2.20017
  32  0.05281
  33  0.0434889
Done.

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

Extracting fit parameters...

4FGL J1657.0+6010
   Spectrum: PowerLaw
375    Prefactor:  1.000e-04  3.067e-04  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.050e+00  4.349e-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.000e+00  5.281e-02  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/640988/likelihoodResults_672451201_675043201_4FGL_J1657.0+6010_monthly_bin168.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 117992.919457
delta logL = -0.00121080427198

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 117992.918246
delta logL = 4.32773958892e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4163       1.0000          .0000       10.000    
     3 'Normalizat'    1.0003       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=   117992.9     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      231 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .11906E-01    .90712E-01** at limit **
   2  Index         2.3873        5.6677        .50000        .52495E-04
   3  Normalizat    1.0003        .14413E-03    .46171E-01    .15465E-03
   4  Prefactor     1.0498        .12523E-03    .39920E-01    .68478E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.38731
  Normalizat = 1.00032
  Prefactor  = 1.04982
 **********
 **   18 **HESSE 
 **********

 FCN=   117992.9     FROM HESSE     STATUS=NOT POSDEF    37 CALLS      268 TOTAL
                     EDM=   .20E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.134        .53594E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3873        5.5497        .50000       -.54983    
   3  Normalizat    1.0003        .16635E-02    .26530E-03   -.93020    
   4  Prefactor     1.0498        .14459E-02    .22451E-03   -.91087    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.02572e-06
Minuit parameter uncertainties:
  1  0.000100534
  2  114.625
  3  0.00166354
  4  0.00144586
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/640988': 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) = 117992.918246
delta logL = 8.83475877345e-07

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
719    Prefactor:  1.050e+00  1.446e-03  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.000e+00  1.664e-03  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  2.220e+00 [aplpy.core]
Saving /scratch/kocevski/640988/cmap_HighResolution_672451201_675043201_4FGL_J1657.0+6010_monthly_bin168.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.11e-04', job_status='DONE', photon_flux_upper_limit='1.05e-08', time_completed='2022-05-24 07:43:13.618838', job_id='640988', GAL2='1.05', fit_tolerance='1e-08', EG2='1.00', EG='1.00', time_epoch_completed='1653403393.62', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='8.83e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='168' AND source_name='4FGL J1657.0+6010' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Tue May 24 07:43:13 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0186>
Subject: Job 640988: <4FGL_J1657.0+6010_monthly_bin168> in cluster <slac> Done

Job <4FGL_J1657.0+6010_monthly_bin168> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue May 24 03:30:25 2022
Job was executed on host(s) <bullet0186>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue May 24 03:30:36 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue May 24 03:30:36 2022
Terminated at Tue May 24 07:43:15 2022
Results reported at Tue May 24 07:43:15 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1657.0+6010_monthly_bin168 254.258 60.1676 672451201 675043201 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 :                                   15021.00 sec.
    Max Memory :                                 634 MB
    Average Memory :                             494.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   15160 sec.
    Turnaround time :                            15170 sec.

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

