/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 8 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 = 73104
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1657.7+4808_monthly_bin153
RA = 254.438, Dec = 48.1368
tmin = 633571201, tmax = 636163201
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='118861', job_status='RUN', time_executed='2021-10-29 18:35:46.467899', time_epoch_executed='1635557746.47' WHERE source_name='4FGL J1657.7+4808' and cadence='monthly' and bin_id='153'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/118861

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

Retrieving the FT1 file...

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

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

Retrieving 457 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/118861/ft1_4FGL_J1657.7+4808_monthly_bin153.fits


Retrieving the FT1 file...

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

Retrieving 457 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/118861/ft2_4FGL_J1657.7+4808_monthly_bin153.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/118861/ft1_4FGL_J1657.7+4808_monthly_bin153.fits outfile=/scratch/kocevski/118861/ft1_filteredMKT_4FGL_J1657.7+4808_monthly_bin153.fits ra=254.438 dec=48.1368 rad=12.0 tmin=633571201.0 tmax=636163201.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 31.62
user 30.44
sys 0.59

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/118861/ft2_4FGL_J1657.7+4808_monthly_bin153.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/118861/ft1_filteredMKT_4FGL_J1657.7+4808_monthly_bin153.fits evtable="EVENTS" outfile="/scratch/kocevski/118861/ft1_filtered_4FGL_J1657.7+4808_monthly_bin153.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.83
user 0.62
sys 0.20

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/118861/ft1_filtered_4FGL_J1657.7+4808_monthly_bin153.fits" evtable="EVENTS" scfile=/scratch/kocevski/118861/ft2_4FGL_J1657.7+4808_monthly_bin153.fits sctable="SC_DATA" outfile=/scratch/kocevski/118861/ltcube_633571201_636163201_4FGL_J1657.7+4808_monthly_bin153.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/118861/ft2_4FGL_J1657.7+4808_monthly_bin153.fits
.....................!
real 117.85
user 115.20
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/118861/ft1_filtered_4FGL_J1657.7+4808_monthly_bin153.fits evtable="EVENTS" scfile=/scratch/kocevski/118861/ft2_4FGL_J1657.7+4808_monthly_bin153.fits sctable="SC_DATA" expcube=/scratch/kocevski/118861/ltcube_633571201_636163201_4FGL_J1657.7+4808_monthly_bin153.fits outfile=/scratch/kocevski/118861/expmap_633571201_636163201_4FGL_J1657.7+4808_monthly_bin153.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/118861/ltcube_633571201_636163201_4FGL_J1657.7+4808_monthly_bin153.fits
.....................!
real 193.83
user 185.24
sys 6.55

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/118861/ft1_filtered_4FGL_J1657.7+4808_monthly_bin153.fits scfile=/scratch/kocevski/118861/ft2_4FGL_J1657.7+4808_monthly_bin153.fits outfile=/scratch/kocevski/118861/cmap_633571201_636163201_4FGL_J1657.7+4808_monthly_bin153.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.59
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/118861/ft1_filtered_4FGL_J1657.7+4808_monthly_bin153.fits scfile=/scratch/kocevski/118861/ft2_4FGL_J1657.7+4808_monthly_bin153.fits outfile=/scratch/kocevski/118861/cmap_HighResolution_633571201_636163201_4FGL_J1657.7+4808_monthly_bin153.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.78
user 0.60
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/118861/ft1_filtered_4FGL_J1657.7+4808_monthly_bin153.fits evtable="EVENTS" scfile=/scratch/kocevski/118861/ft2_4FGL_J1657.7+4808_monthly_bin153.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/118861/Model_4FGL_J1657.7+4808_monthly_bin153.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/118861/ft1_filtered_4FGL_J1657.7+4808_monthly_bin153.fits.....................!
real 668.44
user 661.07
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14936E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.3783       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .94044       1.0000         .10000E-03   10000.    
     6 'norm      '    14.859       1.0000         .10000E-03   10000.    
     7 'norm      '    .34199       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.1811       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.5313       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .19224       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.9700       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.8346       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .79082       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.1901       1.0000         .10000E-03   10000.    
    17 'norm      '    3.3876       1.0000         .10000E-03   10000.    
    18 'norm      '    .33123       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .28354       1.0000         .10000E-03   10000.    
    21 'norm      '    3.5841       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .33158       1.0000         .10000E-03   10000.    
    23 'norm      '    2.1176       1.0000         .10000E-03   10000.    
    24 'Prefactor '    2.4665       1.0000         .10000E-03   10000.    
    25 'norm      '    .98659       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .17847E-02   1.0000         .10000E-03   10000.    
    27 'norm      '    1.0615       1.0000         .10000E-03   10000.    
    28 'Prefactor '    17.657       1.0000         .10000E-03   10000.    
    29 'Prefactor '    28.802       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    20.587       1.0000         .10000E-03   10000.    
    32 'Prefactor '    5.4925       1.0000         .10000E-03   10000.    
    33 'Prefactor '    3.7671       1.0000         .10000E-03   10000.    
    34 'Prefactor '    .27569       1.0000         .10000E-03   10000.    
    35 'norm      '    2.4728       1.0000         .10000E-03   10000.    
    36 'Normalizat'    .98604       1.0000         .10000E-01   10.000    
    37 'Prefactor '    1.1308       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=   102696.5     FROM MIGRAD    STATUS=CONVERGED   1130 CALLS     5036 TOTAL
                     EDM=   .13E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.8334         .0000    ** at limit **
   2  Prefactor     2.3813        1.2896         .0000        .75098E-02
   3  Prefactor     .10000E-03    3.9805         .0000    ** at limit **
   4  Prefactor     .10000E-03    .25134         .0000    ** at limit **
   5  Prefactor     .94058        .73085         .0000        .16341E-01
   6  norm          14.859        4.6031         .0000       -.12481E-02
   7  norm          .34199        .41452E-01     .0000        .59311E-02
   8  norm          .10000E-03    1.0354         .0000    ** at limit **
   9  Prefactor     1.1812        .88684         .0000        .12768E-01
  10  Prefactor     4.5314        1.5877         .0000        .98252E-01
  11  norm          .10000E-03    3.1005         .0000    ** at limit **
  12  Prefactor     .19229        .38406         .0000        .37873E-01
  13  Prefactor     1.9700        .49432         .0000        .56483E-02
  14  Prefactor     2.8346        .78328         .0000        .51105E-02
  15  Prefactor     .79085        .48250         .0000        .61771E-02
  16  Prefactor     3.1900        2.1472         .0000        .22176E-02
  17  norm          3.3876        .47591         .0000        .74981E-03
  18  norm          .33125        .19512         .0000        .21445E-01
  19  Prefactor     .10000E-03    .36149         .0000    ** at limit **
  20  norm          .28355        .17505         .0000        .28864E-01
  21  norm          3.5842        1.9762         .0000        .31681E-02
  22  Prefactor     .33213        .64488         .0000        .14522E-01
  23  norm          2.1176        .45569         .0000        .68009E-02
  24  Prefactor     2.4662        .74380         .0000        .35501E-03
  25  norm          .98710        .97958         .0000        .82036E-02
  26  Prefactor     .10000E-03    4.3589         .0000    ** at limit **
  27  norm          1.0655        1.0807         .0000        .14130E-01
  28  Prefactor     17.653        9.6596         .0000        .27573E-02
  29  Prefactor     28.801        1.9805         .0000        .66251E-02
  30  Prefactor     .10000E-03    6.0544         .0000    ** at limit **
  31  Prefactor     20.586        17.400         .0000       -.51514E-04
  32  Prefactor     5.4916        6.6331         .0000        .31537E-03
  33  Prefactor     3.7672        1.7399         .0000        .19080E-02
  34  Prefactor     .23618        .91557         .0000        .35341E-02
  35  norm          2.4728        1.7112         .0000        .12004    
  36  Normalizat    .98601        .54255E-01     .0000        .28782E-03
  37  Prefactor     1.1308        .43364E-01     .0000        .36670E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 2.38131
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.94058
  norm       = 14.8587
  norm       = 0.341987
  norm       = 0.0001
  Prefactor  = 1.18121
  Prefactor  = 4.53136
  norm       = 0.0001
  Prefactor  = 0.192295
  Prefactor  = 1.96998
  Prefactor  = 2.83459
  Prefactor  = 0.790854
  Prefactor  = 3.19004
  norm       = 3.38759
  norm       = 0.33125
  Prefactor  = 0.0001
  norm       = 0.283547
  norm       = 3.58423
  Prefactor  = 0.332125
  norm       = 2.11755
  Prefactor  = 2.4662
  norm       = 0.987098
  Prefactor  = 0.000100002
  norm       = 1.06546
  Prefactor  = 17.6533
  Prefactor  = 28.8012
  Prefactor  = 0.0001
  Prefactor  = 20.5859
  Prefactor  = 5.49158
  Prefactor  = 3.76717
  Prefactor  = 0.236183
  norm       = 2.47277
  Normalizat = 0.986009
  Prefactor  = 1.13085
 **********
 **   18 **HESSE 
 **********

 FCN=   102696.5     FROM HESSE     STATUS=OK           909 CALLS     5945 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.7472        .18645       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.3813        1.2774        .25577E-03   -1.5399    
   3  Prefactor     .10000E-03    4.0618        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    .72872        .30478E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .94058        .70786        .22613E-03   -1.5514    
   6  norm          14.859        4.5772        .10390E-03   -1.4937    
   7  norm          .34199        .40312E-01    .20802E-04   -1.5591    
   8  norm          .10000E-03    1.0854        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.1812        .87149        .24649E-03   -1.5491    
  10  Prefactor     4.5314        1.5887        .94561E-03   -1.5282    
  11  norm          .10000E-03    3.1177        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .19229        .29046        .16255E-03   -1.5620    
  13  Prefactor     1.9700        .39416        .67262E-04   -1.5427    
  14  Prefactor     2.8346        .77441        .13912E-03   -1.5371    
  15  Prefactor     .79085        .48282        .16533E-03   -1.5530    
  16  Prefactor     3.1900        2.1423        .22687E-03   -1.5351    
  17  norm          3.3876        .47535        .79474E-04   -1.5340    
  18  norm          .33125        .18463        .10004E-03   -1.5593    
  19  Prefactor     .10000E-03    2.0130        .34879E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .28355        .16510        .96061E-04   -1.5601    
  21  norm          3.5842        1.9449        .21346E-03   -1.5329    
  22  Prefactor     .33213        .76405        .34601E-02   -1.5593    
  23  norm          2.1176        .44962        .94166E-04   -1.5417    
  24  Prefactor     2.4662        .74285        .14646E-03   -1.5394    
  25  norm          .98710        .89140        .28043E-02   -1.5509    
  26  Prefactor     .10000E-03    3.7519        .18182       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          1.0655        1.0477        .31590E-03   -1.5502    
  28  Prefactor     17.653        9.6241        .95316E-04   -1.4867    
  29  Prefactor     28.801        1.9681        .37326E-03   -1.4634    
  30  Prefactor     .10000E-03    6.0891        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     20.586        17.328        .88276E-04   -1.4800    
  32  Prefactor     5.4916        6.6064        .17144E-03   -1.5239    
  33  Prefactor     3.7672        1.7374        .20800E-03   -1.5320    
  34  Prefactor     .23618        1.1257        .11923       -1.5611    
  35  norm          2.4728        1.7048        .13001E-02   -1.5393    
  36  Normalizat    .98601        .63216E-01    .29364E-03   -.93501    
  37  Prefactor     1.1308        .52091E-01    .23667E-03   -.88487    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.8162e-08
Minuit parameter uncertainties:
  1  4.38355e-05
  2  1.27745
  3  2.14767e-06
  4  7.44172e-07
  5  0.707868
  6  4.57727
  7  0.0403121
  8  7.724e-07
  9  0.871498
  10  1.58872
  11  8.04075e-06
  12  0.290462
  13  0.394162
  14  0.77441
  15  0.482819
  16  2.14231
  17  0.475352
  18  0.184629
  19  1.00117e-06
  20  0.165096
  21  1.94495
  22  0.764071
  23  0.449622
  24  0.742848
  25  0.891416
  26  0.000179684
  27  1.0477
  28  9.62493
  29  1.96807
  30  4.98851e-05
  31  17.332
  32  6.60732
  33  1.73738
  34  1.03105
  35  1.70481
  36  0.0632207
  37  0.0520934
Done.

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

Extracting fit parameters...

4FGL J1657.7+4808
   Spectrum: LogParabola
350         norm:  3.313e-01  1.846e-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.131e+00  5.209e-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.860e-01  6.322e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.89
Ra Dec: 254.438 48.137
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 1.23e-08 +/- 6.83e-09
Energy Flux (Fixed Index): 4.12e-06 +/- 2.30e-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) = 102696.459804
delta logL = 0.0287619554583

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 102696.45745
delta logL = 0.031115759004

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   102696.5     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      269 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .31693        .19047        .10205E-03    .78358E-03
   2  alpha         2.1522        .59218        .52925E-01   -.64202E-04
   3  Normalizat    .98876        .59694E-01    .29328E-03   -.62023E-06
   4  Prefactor     1.1296        .50811E-01    .23679E-03   -.15364E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.316934
  alpha      = 2.15217
  Normalizat = 0.988761
  Prefactor  = 1.1296
 **********
 **   18 **HESSE 
 **********

 FCN=   102696.5     FROM HESSE     STATUS=OK            27 CALLS      296 TOTAL
                     EDM=   .38E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .31693        .20053        .20410E-04   -1.5595    
   2  alpha         2.1522        .62504        .21170E-02   -.13959    
   3  Normalizat    .98876        .59809E-01    .11731E-04   -.93408    
   4  Prefactor     1.1296        .50850E-01    .94715E-05   -.88526    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.77646e-13
Minuit parameter uncertainties:
  1  0.200535
  2  0.631882
  3  0.0598133
  4  0.0508517
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/118861': 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) = 102696.457449
delta logL = 0.0311170213972

Extracting fit parameters...

4FGL J1657.7+4808
   Spectrum: LogParabola
350         norm:  3.169e-01  2.005e-01  1.000e-04  1.000e+04 ( 1.000e-11)
351        alpha:  2.152e+00  6.319e-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.130e+00  5.085e-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.888e-01  5.981e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.95
Ra Dec: 254.438 48.137
Photon Index (Free Index): 2.15 +/- 0.63
Photon Flux (Free Index): 1.02e-08 +/- 1.01e-08
Energy Flux (Free Index): 4.08e-06 +/- 2.34e-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/118861/cmap_HighResolution_633571201_636163201_4FGL_J1657.7+4808_monthly_bin153.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.23e-08', energy_flux2='4.08e-06', photon_flux_error='6.83e-09', dlogl='3.11e-02', energy_flux='4.12e-06', photon_flux2='1.02e-08', job_status='DONE', time_completed='2021-10-29 21:57:00.099096', photon_index_error2='0.63', photon_index2='2.15', ts='5.89', fit_tolerance='1e-08', GAL='1.13', photon_index_error='0.00', energy_flux_error2='2.34e-06', EG='0.99', time_epoch_completed='1635569820.1', return_code='0', job_id='118861', GAL2='1.13', EG2='0.99', return_code2='0', energy_flux_error='2.30e-06', photon_flux_error2='1.01e-08', ts2='5.95', photon_index='2.31' WHERE bin_id='153' AND source_name='4FGL J1657.7+4808' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Fri Oct 29 21:57:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0039>
Subject: Job 118861: <4FGL_J1657.7+4808_monthly_bin153> in cluster <slac> Done

Job <4FGL_J1657.7+4808_monthly_bin153> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Oct 29 18:35:15 2021
Job was executed on host(s) <bullet0039>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Oct 29 18:35:29 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Oct 29 18:35:29 2021
Terminated at Fri Oct 29 21:57:00 2021
Results reported at Fri Oct 29 21:57:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1657.7+4808_monthly_bin153 254.438 48.1368 633571201 636163201 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 :                                   11919.30 sec.
    Max Memory :                                 1271 MB
    Average Memory :                             470.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   3417 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   12091 sec.
    Turnaround time :                            12105 sec.

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

