aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 164 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 74146
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1640.3+6850_monthly_bin168
RA = 250.082, Dec = 68.8483
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='639957', job_status='RUN', time_executed='2022-05-24 03:32:23.574594', time_epoch_executed='1653388343.57' WHERE source_name='4FGL J1640.3+6850' and cadence='monthly' and bin_id='168'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/639957

Creating custom pfile directory:
/scratch/kocevski/639957/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/639957/ft1_4FGL_J1640.3+6850_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/639957/ft2_4FGL_J1640.3+6850_monthly_bin168.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/639957/ft1_4FGL_J1640.3+6850_monthly_bin168.fits outfile=/scratch/kocevski/639957/ft1_filteredMKT_4FGL_J1640.3+6850_monthly_bin168.fits ra=250.082 dec=68.8483 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.95
user 27.99
sys 0.87

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/639957/ft2_4FGL_J1640.3+6850_monthly_bin168.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/639957/ft2_4FGL_J1640.3+6850_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/639957/ft1_filteredMKT_4FGL_J1640.3+6850_monthly_bin168.fits evtable="EVENTS" outfile="/scratch/kocevski/639957/ft1_filtered_4FGL_J1640.3+6850_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.88
user 0.68
sys 0.18

Number of photons that the gtmktime cut: 11583

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/639957/ft1_filtered_4FGL_J1640.3+6850_monthly_bin168.fits" evtable="EVENTS" scfile=/scratch/kocevski/639957/ft2_4FGL_J1640.3+6850_monthly_bin168.fits sctable="SC_DATA" outfile=/scratch/kocevski/639957/ltcube_672451201_675043201_4FGL_J1640.3+6850_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/639957/ft2_4FGL_J1640.3+6850_monthly_bin168.fits
.....................!
real 132.41
user 131.67
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/639957/ft1_filtered_4FGL_J1640.3+6850_monthly_bin168.fits evtable="EVENTS" scfile=/scratch/kocevski/639957/ft2_4FGL_J1640.3+6850_monthly_bin168.fits sctable="SC_DATA" expcube=/scratch/kocevski/639957/ltcube_672451201_675043201_4FGL_J1640.3+6850_monthly_bin168.fits outfile=/scratch/kocevski/639957/expmap_672451201_675043201_4FGL_J1640.3+6850_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/639957/ltcube_672451201_675043201_4FGL_J1640.3+6850_monthly_bin168.fits
.....................!
real 192.86
user 186.30
sys 6.09

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 209 point sources and 0 extended sources

Setting source of interest to:
4FGL J1640.3+6850 @ 250.082 68.8483

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/639957/ft1_filtered_4FGL_J1640.3+6850_monthly_bin168.fits scfile=/scratch/kocevski/639957/ft2_4FGL_J1640.3+6850_monthly_bin168.fits outfile=/scratch/kocevski/639957/cmap_672451201_675043201_4FGL_J1640.3+6850_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=250.082 yref=68.8483 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.61
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/639957/ft1_filtered_4FGL_J1640.3+6850_monthly_bin168.fits scfile=/scratch/kocevski/639957/ft2_4FGL_J1640.3+6850_monthly_bin168.fits outfile=/scratch/kocevski/639957/cmap_HighResolution_672451201_675043201_4FGL_J1640.3+6850_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=250.082 yref=68.8483 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.62
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/639957/ft1_filtered_4FGL_J1640.3+6850_monthly_bin168.fits evtable="EVENTS" scfile=/scratch/kocevski/639957/ft2_4FGL_J1640.3+6850_monthly_bin168.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/639957/Model_4FGL_J1640.3+6850_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/639957/ft1_filtered_4FGL_J1640.3+6850_monthly_bin168.fits.....................!
real 1014.83
user 1011.17
sys 1.29

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/639957/ft1_filtered_4FGL_J1640.3+6850_monthly_bin168.fits', '/scratch/kocevski/639957/ft2_4FGL_J1640.3+6850_monthly_bin168.fits', expMap='/scratch/kocevski/639957/expmap_672451201_675043201_4FGL_J1640.3+6850_monthly_bin168.fits', expCube='/scratch/kocevski/639957/ltcube_672451201_675043201_4FGL_J1640.3+6850_monthly_bin168.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/639957/Model_4FGL_J1640.3+6850_monthly_bin168.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1640.3+6850'

4FGL J1640.3+6850
   Spectrum: PowerLaw
350    Prefactor:  3.992e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
351        Index:  2.132e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
352        Scale:  2.329e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/639957/ft1_filtered_4FGL_J1640.3+6850_monthly_bin168.fits
Spacecraft file(s): /scratch/kocevski/639957/ft2_4FGL_J1640.3+6850_monthly_bin168.fits
Exposure map: /scratch/kocevski/639957/expmap_672451201_675043201_4FGL_J1640.3+6850_monthly_bin168.fits
Exposure cube: /scratch/kocevski/639957/ltcube_672451201_675043201_4FGL_J1640.3+6850_monthly_bin168.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/639957/Model_4FGL_J1640.3+6850_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) = 123112.819901

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.3031       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10215E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .74990       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11634E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10537E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.897       1.0000         .10000E-03   10000.    
     7 'norm      '    1.0384       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.8264       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    9.6783       1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.363       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.4157       1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.247       1.0000         .10000E-03   10000.    
    14 'norm      '    2.6443       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .28953E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .16280       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.7672       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .13269       1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.4919       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.8864       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .61275E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    3.5673       1.0000         .10000E-03   10000.    
    25 'norm      '    4.6080       1.0000         .10000E-03   10000.    
    26 'Prefactor '    1.4451       1.0000         .10000E-03   10000.    
    27 'norm      '    3.5620       1.0000         .10000E-03   10000.    
    28 'Prefactor '    1.8552       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .47388E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    3.8327       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10342E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    10.809       1.0000         .10000E-03   10000.    
    33 'Normalizat'    .91208       1.0000         .10000E-01   10.000    
    34 'Prefactor '    1.0839       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6760E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   123112.7     FROM MIGRAD    STATUS=CONVERGED    949 CALLS     4937 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.2956        9.1985        .61557E-06   -.18474E-03
   2  Prefactor     .10000E-03    .98911        .78935E-08** at limit **
   3  Prefactor     .73479        1.7152       -.36991E-06    .22562E-03
   4  Prefactor     .10000E-03    8.1029       -.13200E-06** at limit **
   5  Prefactor     .10000E-03    .44575        .51325E-07** at limit **
   6  Prefactor     12.880        4.8127        .45666E-06    .32425E-03
   7  norm          1.0384        .40024        .19770E-07   -.10292E-02
   8  Prefactor     2.8129        12.650        .23817E-05    .13421E-04
   9  Prefactor     .10000E-03    2.5824       -.73634E-07** at limit **
  10  norm          9.6757        3.8298        .30553E-08    .21401E-03
  11  Prefactor     11.378        9.9433       -.45885E-06   -.58843E-04
  12  Prefactor     2.4153        1.4932        .26258E-06   -.20951E-02
  13  Prefactor     10.246        6.3529       -.12472E-06   -.99651E-04
  14  norm          2.6430        1.5839        .14947E-06   -.16542E-02
  15  Prefactor     .10005E-03    .57943       -.71948E-07** at limit **
  16  norm          .16277        .12014        .45511E-07   -.79145E-02
  17  Prefactor     1.7693        1.4313        .26619E-06   -.30817E-02
  18  Prefactor     .13383        .21711       -.21442E-06    .11546E-02
  19  Prefactor     5.4886        2.9471        .20259E-06   -.18661E-03
  20  Prefactor     .10000E-03    .24258        .56058E-07** at limit **
  21  Prefactor     1.8721        5.5639        .35327E-05    .40586E-03
  22  Prefactor     .10000E-03    .25899        .53208E-07** at limit **
  23  Prefactor     .10000E-03    5.5647       -.10250E-05** at limit **
  24  norm          3.5669        .59648        .66760E-08   -.55108E-03
  25  norm          4.6080        .26654       -.16405E-07    .23778E-02
  26  Prefactor     1.4417        2.3217       -.35053E-09   -.16280E-02
  27  norm          3.5623        .94398        .19001E-07   -.14986E-02
  28  Prefactor     1.8581        2.5793        .62909E-07   -.41897E-03
  29  Prefactor     .10000E-03    31.136        .79329E-05** at limit **
  30  Prefactor     3.8328        1.4396        .12175E-06   -.23691E-02
  31  Prefactor     .10000E-03    .74630        .68956E-07** at limit **
  32  Prefactor     10.859        14.053        .27028E-05    .18650E-03
  33  Normalizat    .91215        .42571E-01   -.35844E-06    .43018E-03
  34  Prefactor     1.0839        .34736E-01   -.14933E-06    .35150E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.29563
  Prefactor  = 0.0001
  Prefactor  = 0.734792
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.8805
  norm       = 1.03835
  Prefactor  = 2.81286
  Prefactor  = 0.0001
  norm       = 9.6757
  Prefactor  = 11.378
  Prefactor  = 2.41525
  Prefactor  = 10.2465
  norm       = 2.64299
  Prefactor  = 0.000100049
  norm       = 0.162774
  Prefactor  = 1.76925
  Prefactor  = 0.133833
  Prefactor  = 5.48856
  Prefactor  = 0.0001
  Prefactor  = 1.87209
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.56686
  norm       = 4.60799
  Prefactor  = 1.44168
  norm       = 3.56228
  Prefactor  = 1.8581
  Prefactor  = 0.000100002
  Prefactor  = 3.83282
  Prefactor  = 0.0001
  Prefactor  = 10.8591
  Normalizat = 0.912147
  Prefactor  = 1.08386
 **********
 **   18 **HESSE 
 **********

 FCN=   123112.7     FROM HESSE     STATUS=OK           766 CALLS     5703 TOTAL
                     EDM=   .81E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.2956        9.5121        .38686E-03   -1.5480    
   2  Prefactor     .10000E-03    1.0010        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .73479        6.4442        .68149E-02   -1.5537    
   4  Prefactor     .10000E-03    8.2809        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    1.9340        .44607E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     12.880        4.7610        .11154E-03   -1.4990    
   7  norm          1.0384        .39630        .13314E-03   -1.5504    
   8  Prefactor     2.8129        12.600        .24191E-03   -1.5373    
   9  Prefactor     .10000E-03    2.6166        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          9.6757        3.8266        .12881E-03   -1.5086    
  11  Prefactor     11.378        9.9456        .11884E-03   -1.5033    
  12  Prefactor     2.4153        1.5510        .26337E-03   -1.5397    
  13  Prefactor     10.246        6.2688        .12517E-03   -1.5068    
  14  norm          2.6430        1.5964        .25072E-03   -1.5383    
  15  Prefactor     .10005E-03    .71693        .87826E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .16277        .11471        .90981E-04   -1.5627    
  17  Prefactor     1.7693        1.4648        .31507E-03   -1.5442    
  18  Prefactor     .13383        .58952        .17860E-02   -1.5635    
  19  Prefactor     5.4886        2.8539        .17145E-03   -1.5239    
  20  Prefactor     .10000E-03    .97482        .32563E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     1.8721        5.6230        .30302E-03   -1.5434    
  22  Prefactor     .10000E-03    1.4956        .34192E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    5.6160        .21053E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          3.5669        .59500        .10507E-03   -1.5330    
  25  norm          4.6080        .26542        .40928E-04   -1.5279    
  26  Prefactor     1.4417        2.5694        .35865E-03   -1.5468    
  27  norm          3.5623        .93897        .16207E-03   -1.5330    
  28  Prefactor     1.8581        2.5672        .30603E-03   -1.5435    
  29  Prefactor     .10000E-03    32.124        .42368E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     3.8328        1.4125        .20615E-03   -1.5316    
  31  Prefactor     .10000E-03    2.8154        .56906E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     10.859        14.119        .12186E-03   -1.5049    
  33  Normalizat    .91215        .48673E-01    .27325E-03   -.96035    
  34  Prefactor     1.0839        .39822E-01    .21198E-03   -.89984    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.06962e-09
Minuit parameter uncertainties:
  1  7.02246
  2  4.38988e-07
  3  4.35242
  4  1.16757e-05
  5  8.47178e-06
  6  4.7611
  7  0.396297
  8  11.9107
  9  2.41344e-08
  10  3.8267
  11  9.94701
  12  1.55104
  13  6.26925
  14  1.59643
  15  0.000375172
  16  0.114709
  17  1.4648
  18  0.561573
  19  2.85394
  20  1.12843e-05
  21  5.62462
  22  4.03443e-06
  23  2.69666e-05
  24  0.595003
  25  0.265423
  26  2.56956
  27  0.938973
  28  2.56739
  29  0.000504444
  30  1.41247
  31  3.65244e-05
  32  14.123
  33  0.0486755
  34  0.0398229
Done.

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

Extracting fit parameters...

4FGL J1640.3+6850
   Spectrum: PowerLaw
350    Prefactor:  1.025e+01  6.269e+00  1.000e-04  1.000e+04 ( 1.000e-14)
351        Index:  2.132e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
352        Scale:  2.329e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
673    Prefactor:  1.084e+00  3.982e-02  0.000e+00  1.000e+01 ( 1.000e+00)
674        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
675        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
672   Normalization:  9.121e-01  4.868e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.55
Ra Dec: 250.082 68.848
Photon Index (Fixed Index): 2.13 +/- 0.00
Photon Flux (Fixed Index): 7.45e-09 +/- 4.55e-09
Energy Flux (Fixed Index): 3.82e-06 +/- 2.33e-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) = 123110.399854
delta logL = 2.32060832503

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 123110.331984
delta logL = 2.38847821069

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.5967       1.0000         .10000E-03   10000.    
     2 'Index     '    3.3940       1.0000          .0000       10.000    
     3 'Normalizat'    .88446       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0964       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6760E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   123110.3     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      254 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.5968        4.7692        .83905E-02    .15546E-01
   2  Index         3.3941        .84264        .10025        .35983E-02
   3  Normalizat    .88440        .10139E-01    .44703E-01    .34449E-03
   4  Prefactor     1.0965        .82815E-02    .37723E-01    .86499E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.59677
  Index      = 3.39412
  Normalizat = 0.884404
  Prefactor  = 1.09648
 **********
 **   18 **HESSE 
 **********

 FCN=   123110.3     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      287 TOTAL
                     EDM=   .87E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.5968        9.2605        .14877E-03   -1.5455    
   2  Index         3.3941        1.8567        .70434E-02   -.32697    
   3  Normalizat    .88440        .39632E-01    .27700E-03   -.97010    
   4  Prefactor     1.0965        .30646E-01    .21088E-03   -.89579    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.73176e-08
Minuit parameter uncertainties:
  1  7.69232
  2  1.90796
  3  0.0396329
  4  0.0306463
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/639957': 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) = 123110.331983
delta logL = 2.38847909332

Extracting fit parameters...

4FGL J1640.3+6850
   Spectrum: PowerLaw
350    Prefactor:  1.597e+00  7.692e+00  1.000e-04  1.000e+04 ( 1.000e-14)
351        Index:  3.394e+00  1.908e+00  0.000e+00  1.000e+01 (-1.000e+00)
352        Scale:  2.329e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
673    Prefactor:  1.096e+00  3.065e-02  0.000e+00  1.000e+01 ( 1.000e+00)
674        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
675        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
672   Normalization:  8.844e-01  3.963e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.57
Ra Dec: 250.082 68.848
Photon Index (Free Index): 3.39 +/- 1.91
Photon Flux (Free Index): 2.92e-08 +/- 1.53e-08
Energy Flux (Free Index): 5.01e-06 +/- 1.87e-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/639957/cmap_HighResolution_672451201_675043201_4FGL_J1640.3+6850_monthly_bin168.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.45e-09', energy_flux2='5.01e-06', photon_flux_error='4.55e-09', dlogl='2.39e+00', energy_flux='3.82e-06', photon_flux2='2.92e-08', job_status='DONE', time_completed='2022-05-24 07:19:07.473805', photon_index_error2='1.91', photon_index2='3.39', ts='4.55', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', energy_flux_error2='1.87e-06', EG='0.91', time_epoch_completed='1653401947.47', return_code='0', job_id='639957', GAL2='1.10', EG2='0.88', return_code2='102', energy_flux_error='2.33e-06', photon_flux_error2='1.53e-08', ts2='9.57', photon_index='2.13' WHERE bin_id='168' AND source_name='4FGL J1640.3+6850' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Tue May 24 07:19:07 PDT 2022


------------------------------------------------------------
Sender: LSF System <scs@bullet0256>
Subject: Job 639957: <4FGL_J1640.3+6850_monthly_bin168> in cluster <slac> Done

Job <4FGL_J1640.3+6850_monthly_bin168> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue May 24 03:25:26 2022
Job was executed on host(s) <bullet0256>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue May 24 03:29:29 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:29:29 2022
Terminated at Tue May 24 07:19:08 2022
Results reported at Tue May 24 07:19:08 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1640.3+6850_monthly_bin168 250.082 68.8483 672451201 675043201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1640.3+6850 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   13566.00 sec.
    Max Memory :                                 984 MB
    Average Memory :                             489.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   13779 sec.
    Turnaround time :                            14022 sec.

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

