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 25 seconds before starting...
Proceeding.

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

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

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

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

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


Performing analysis on: 4FGL_J1647.5+4950_monthly_bin167
RA = 251.892, Dec = 49.8336
tmin = 669859201, tmax = 672451201
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = 12
zmax = 90

Fitting strategies:
Fix sources to their catalog values = True
Leave variable source normalizations free = True
Perform pre-fit where ALL sources are frozen to catalog values = False
Perform secondary fit with a free spectral index = True
Remove all catalog sources = False
Remove weak (TS < 2) catalog sources = False
Freeze Galactic component = False

Likelihood fit parameters:
Statistic: UNBINNED
Optimizer: MINUIT

Catalog: 4FGL

Repository job = True

LAT data source:
Data catalog

Updating database...

UPDATE lightcurve_data_v2 SET job_id='899465', job_status='RUN', time_executed='2022-04-24 02:31:18.186127', time_epoch_executed='1650792678.19' WHERE source_name='4FGL J1647.5+4950' and cadence='monthly' and bin_id='167'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/899465

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

Retrieving the FT1 file...

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

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

Retrieving 456 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/899465/ft1_4FGL_J1647.5+4950_monthly_bin167.fits


Retrieving the FT1 file...

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

Retrieving 456 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/899465/ft2_4FGL_J1647.5+4950_monthly_bin167.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/899465/ft1_4FGL_J1647.5+4950_monthly_bin167.fits outfile=/scratch/kocevski/899465/ft1_filteredMKT_4FGL_J1647.5+4950_monthly_bin167.fits ra=251.892 dec=49.8336 rad=12.0 tmin=669859201.0 tmax=672451201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 38.17
user 37.42
sys 0.67

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/899465/ft2_4FGL_J1647.5+4950_monthly_bin167.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/899465/ft2_4FGL_J1647.5+4950_monthly_bin167.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/scratch/kocevski/899465/ft1_filteredMKT_4FGL_J1647.5+4950_monthly_bin167.fits evtable="EVENTS" outfile="/scratch/kocevski/899465/ft1_filtered_4FGL_J1647.5+4950_monthly_bin167.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.83
user 0.65
sys 0.17

Number of photons that the gtmktime cut: 7844

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/899465/ft1_filtered_4FGL_J1647.5+4950_monthly_bin167.fits" evtable="EVENTS" scfile=/scratch/kocevski/899465/ft2_4FGL_J1647.5+4950_monthly_bin167.fits sctable="SC_DATA" outfile=/scratch/kocevski/899465/ltcube_669859201_672451201_4FGL_J1647.5+4950_monthly_bin167.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Working on file /scratch/kocevski/899465/ft2_4FGL_J1647.5+4950_monthly_bin167.fits
.....................!
real 110.58
user 109.90
sys 0.48

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/899465/ft1_filtered_4FGL_J1647.5+4950_monthly_bin167.fits evtable="EVENTS" scfile=/scratch/kocevski/899465/ft2_4FGL_J1647.5+4950_monthly_bin167.fits sctable="SC_DATA" expcube=/scratch/kocevski/899465/ltcube_669859201_672451201_4FGL_J1647.5+4950_monthly_bin167.fits outfile=/scratch/kocevski/899465/expmap_669859201_672451201_4FGL_J1647.5+4950_monthly_bin167.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql"

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

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /scratch/kocevski/899465/ltcube_669859201_672451201_4FGL_J1647.5+4950_monthly_bin167.fits
.....................!
real 191.07
user 185.32
sys 5.41

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 219 point sources and 0 extended sources

Setting source of interest to:
4FGL J1647.5+4950 @ 251.892 49.8336

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/899465/ft1_filtered_4FGL_J1647.5+4950_monthly_bin167.fits scfile=/scratch/kocevski/899465/ft2_4FGL_J1647.5+4950_monthly_bin167.fits outfile=/scratch/kocevski/899465/cmap_669859201_672451201_4FGL_J1647.5+4950_monthly_bin167.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=251.892 yref=49.8336 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.61
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/899465/ft1_filtered_4FGL_J1647.5+4950_monthly_bin167.fits scfile=/scratch/kocevski/899465/ft2_4FGL_J1647.5+4950_monthly_bin167.fits outfile=/scratch/kocevski/899465/cmap_HighResolution_669859201_672451201_4FGL_J1647.5+4950_monthly_bin167.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=251.892 yref=49.8336 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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/899465/ft1_filtered_4FGL_J1647.5+4950_monthly_bin167.fits evtable="EVENTS" scfile=/scratch/kocevski/899465/ft2_4FGL_J1647.5+4950_monthly_bin167.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/899465/Model_4FGL_J1647.5+4950_monthly_bin167.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

adding source EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/899465/ft1_filtered_4FGL_J1647.5+4950_monthly_bin167.fits.....................!
real 527.25
user 524.82
sys 1.50

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/899465/ft1_filtered_4FGL_J1647.5+4950_monthly_bin167.fits', '/scratch/kocevski/899465/ft2_4FGL_J1647.5+4950_monthly_bin167.fits', expMap='/scratch/kocevski/899465/expmap_669859201_672451201_4FGL_J1647.5+4950_monthly_bin167.fits', expCube='/scratch/kocevski/899465/ltcube_669859201_672451201_4FGL_J1647.5+4950_monthly_bin167.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/899465/Model_4FGL_J1647.5+4950_monthly_bin167.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1647.5+4950'

4FGL J1647.5+4950
   Spectrum: PowerLaw
362    Prefactor:  2.441e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
363        Index:  2.386e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
364        Scale:  8.183e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/899465/ft1_filtered_4FGL_J1647.5+4950_monthly_bin167.fits
Spacecraft file(s): /scratch/kocevski/899465/ft2_4FGL_J1647.5+4950_monthly_bin167.fits
Exposure map: /scratch/kocevski/899465/expmap_669859201_672451201_4FGL_J1647.5+4950_monthly_bin167.fits
Exposure cube: /scratch/kocevski/899465/ltcube_669859201_672451201_4FGL_J1647.5+4950_monthly_bin167.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/899465/Model_4FGL_J1647.5+4950_monthly_bin167.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.7867       1.0000         .10000E-03   10000.    
     2 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.0465       1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.5016       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.7712       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .74218E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10155E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    20.010       1.0000         .10000E-03   10000.    
    10 'norm      '    .26287       1.0000         .10000E-03   10000.    
    11 'norm      '    2.8440       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .87112       1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.2401       1.0000         .10000E-03   10000.    
    14 'norm      '    5.5116       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.1754       1.0000         .10000E-03   10000.    
    16 'Prefactor '    15.139       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.8968       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10286E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.4590       1.0000         .10000E-03   10000.    
    20 'norm      '    3.5926       1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.8850       1.0000         .10000E-03   10000.    
    22 'norm      '    .22977       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10325E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .17383E-01   1.0000         .10000E-03   10000.    
    25 'norm      '    16.091       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .85612       1.0000         .10000E-03   10000.    
    27 'norm      '    4.5617       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .87826       1.0000         .10000E-03   10000.    
    29 'norm      '    1.3595       1.0000         .10000E-03   10000.    
    30 'Prefactor '    16.670       1.0000         .10000E-03   10000.    
    31 'Prefactor '    3.1552       1.0000         .10000E-03   10000.    
    32 'Prefactor '    15.267       1.0000         .10000E-03   10000.    
    33 'Prefactor '    .18325E-03   1.0000         .10000E-03   10000.    
    34 'Prefactor '    3.9055       1.0000         .10000E-03   10000.    
    35 'Prefactor '    .34386       1.0000         .10000E-03   10000.    
    36 'Normalizat'    1.0230       1.0000         .10000E-01   10.000    
    37 'Prefactor '    1.0263       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7070E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   82539.59     FROM MIGRAD    STATUS=CONVERGED    107 CALLS     3951 TOTAL
                     EDM=   .58E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.7861        1.2151       -.53493E-06    .17411E-03
   2  norm          .10000E-03    1.3642        .35686E-07** at limit **
   3  Prefactor     7.0489        1.4894       -.27716E-06    .18667E-02
   4  Prefactor     6.5069        1.0633       -.73952E-08   -.72709E-04
   5  Prefactor     1.7723        1.2218        .20642E-06   -.25194E-03
   6  Prefactor     .10007E-03    2.5007       -.81144E-06** at limit **
   7  Prefactor     .10000E-03    .91380        .28551E-08** at limit **
   8  Prefactor     .10000E-03    .26520        .33260E-07** at limit **
   9  norm          20.003        2.4856        .33083E-06   -.60348E-02
  10  norm          .26287        .57326E-01   -.25307E-08   -.19093E-02
  11  norm          2.8395        2.0899        .41516E-06    .47602E-03
  12  Prefactor     .87072        .91389       -.99469E-08   -.15656E-03
  13  Prefactor     5.2371        1.7552       -.61849E-07   -.81330E-03
  14  norm          5.5179        1.1071        .38008E-07   -.24682E-03
  15  Prefactor     1.1756        .65400       -.57666E-07   -.12051E-02
  16  Prefactor     15.138        .88211        .13263E-07   -.91081E-03
  17  Prefactor     2.8969        .90458       -.71886E-07   -.10029E-02
  18  Prefactor     .10000E-03    2.1130       -.98571E-07** at limit **
  19  Prefactor     3.4651        2.1074        .89573E-06    .13108E-02
  20  norm          3.5926        .52481       -.96771E-09   -.38525E-03
  21  Prefactor     8.8888        1.6984       -.44450E-06    .21324E-02
  22  norm          .22990        .17145       -.16832E-07   -.98261E-03
  23  Prefactor     .10000E-03    3.3859        .59074E-06** at limit **
  24  norm          .17396E-01    .29672       -.14716E-07   -.28819E-03
  25  norm          16.081        2.9342       -.56393E-06   -.64748E-02
  26  Prefactor     .85619        1.0688        .29511E-07    .30755E-04
  27  norm          4.5612        .61134       -.12682E-07   -.18370E-02
  28  Prefactor     .87813        .56441       -.39977E-08   -.91210E-04
  29  norm          1.3609        1.0260        .38064E-07    .27620E-03
  30  Prefactor     16.653        2.8767       -.66360E-07   -.98350E-03
  31  Prefactor     3.1582        1.2524        .58652E-07   -.46970E-03
  32  Prefactor     15.153        9.9995       -.63661E-06    .11587E-02
  33  Prefactor     .10002E-03    14.541        .93934E-06** at limit **
  34  Prefactor     3.9440        1.7815        .27047E-06   -.57528E-03
  35  Prefactor     .31091        11.366       -.11369E-05    .64154E-04
  36  Normalizat    1.0230        .66996E-01   -.21066E-07   -.10262E-02
  37  Prefactor     1.0263        .59239E-01   -.97502E-07   -.11670E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.78611
  norm       = 0.0001
  Prefactor  = 7.04893
  Prefactor  = 6.50688
  Prefactor  = 1.77227
  Prefactor  = 0.000100075
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 20.0027
  norm       = 0.262874
  norm       = 2.83947
  Prefactor  = 0.870717
  Prefactor  = 5.23714
  norm       = 5.51789
  Prefactor  = 1.17557
  Prefactor  = 15.138
  Prefactor  = 2.89689
  Prefactor  = 0.0001
  Prefactor  = 3.46505
  norm       = 3.59264
  Prefactor  = 8.88881
  norm       = 0.2299
  Prefactor  = 0.0001
  norm       = 0.0173958
  norm       = 16.0814
  Prefactor  = 0.85619
  norm       = 4.56122
  Prefactor  = 0.878127
  norm       = 1.36085
  Prefactor  = 16.6533
  Prefactor  = 3.15818
  Prefactor  = 15.1525
  Prefactor  = 0.00010002
  Prefactor  = 3.94399
  Prefactor  = 0.310912
  Normalizat = 1.02304
  Prefactor  = 1.02629
 **********
 **   18 **HESSE 
 **********

 FCN=   82539.59     FROM HESSE     STATUS=OK           999 CALLS     4950 TOTAL
                     EDM=   .36E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.7861        1.2289        .78247E-02   -1.5441    
   2  norm          .10000E-03    .30993        .58808E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     7.0489        5.7008        .37781E-02   -1.5177    
   4  Prefactor     6.5069        8.4742        .39349E-02   -1.5198    
   5  Prefactor     1.7723        1.3160        .78662E-02   -1.5442    
   6  Prefactor     .10007E-03    1.6771        .10473       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    .31399        .55054E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    .14567        .40949E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          20.003        5.6004        .22385E-02   -1.4813    
  10  norm          .26287        .59164E-01    .68656E-02   -1.5605    
  11  norm          2.8395        2.0913        .60277E-02   -1.5371    
  12  Prefactor     .87072        .94625        .12702E-01   -1.5521    
  13  Prefactor     5.2371        1.7628        .43899E-02   -1.5250    
  14  norm          5.5179        7.8428        .42785E-02   -1.5238    
  15  Prefactor     1.1756        .73676        .10562E-01   -1.5491    
  16  Prefactor     15.138        .97565        .25735E-02   -1.4930    
  17  Prefactor     2.8969        .92793        .59688E-02   -1.5368    
  18  Prefactor     .10000E-03    .10989        .50083E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.4651        2.1379        .54362E-02   -1.5336    
  20  norm          3.5926        .52481        .53298E-02   -1.5329    
  21  Prefactor     8.8888        4.7545        .33617E-02   -1.5112    
  22  norm          .22990        .19346        .24147E-01   -1.5612    
  23  Prefactor     .10000E-03    .44104        .64213E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .17396E-01    .46966E-01    .27038E-01   -1.5682    
  25  norm          16.081        3.2372        .24961E-02   -1.4906    
  26  Prefactor     .85619        1.0947        .75818E-01   -1.5523    
  27  norm          4.5612        .62101        .47119E-02   -1.5281    
  28  Prefactor     .87813        .78248        .36294E-01   -1.5521    
  29  norm          1.3609        1.0492        .93658E-02   -1.5475    
  30  Prefactor     16.653        9.7980        .24524E-02   -1.4892    
  31  Prefactor     3.1582        1.2682        .57047E-02   -1.5353    
  32  Prefactor     15.153        10.647        .25627E-02   -1.4929    
  33  Prefactor     .10002E-03    15.618        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Prefactor     3.9440        8.7456        .51039E-02   -1.5311    
  35  Prefactor     .31091        1.2235        .16437       -1.5596    
  36  Normalizat    1.0230        .58646E-01    .63917E-01   -.92263    
  37  Prefactor     1.0263        .50218E-01    .41566E-01   -.91858    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.55363e-07
Minuit parameter uncertainties:
  1  1.22894
  2  1.77096e-06
  3  5.70122
  4  8.47573
  5  1.31601
  6  0.00070829
  7  1.62871e-07
  8  8.19497e-07
  9  5.60052
  10  0.0591643
  11  2.09135
  12  0.946265
  13  1.76277
  14  7.84428
  15  0.736762
  16  0.975649
  17  0.927933
  18  1.94154e-06
  19  2.13796
  20  0.524808
  21  4.75468
  22  0.193463
  23  2.22477e-05
  24  0.0469665
  25  3.23727
  26  1.09468
  27  0.621014
  28  0.782486
  29  1.04918
  30  9.79896
  31  1.26822
  32  10.6479
  33  0.0011199
  34  8.74838
  35  1.22359
  36  0.0586497
  37  0.05022
Done.

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

Extracting fit parameters...

4FGL J1647.5+4950
   Spectrum: PowerLaw
362    Prefactor:  2.897e+00  9.279e-01  1.000e-04  1.000e+04 ( 1.000e-12)
363        Index:  2.386e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
364        Scale:  8.183e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
704    Prefactor:  1.026e+00  5.022e-02  0.000e+00  1.000e+01 ( 1.000e+00)
705        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
706        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
703   Normalization:  1.023e+00  5.865e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 19.46
Ra Dec: 251.892 49.834
Photon Index (Fixed Index): 2.39 +/- 0.00
Photon Flux (Fixed Index): 3.15e-08 +/- 1.01e-08
Energy Flux (Fixed Index): 1.05e-05 +/- 3.37e-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) = 82539.4051362
delta logL = 0.188368267743

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 82539.4042693
delta logL = 0.189235208876

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   82539.40     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      284 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.0658        .98932        .15314E-03   -.66637E-03
   2  Index         2.2312        .25008        .11030E-01    .10911E-02
   3  Normalizat    1.0290        .65353E-01    .28199E-03    .13288E-03
   4  Prefactor     1.0232        .58327E-01    .25348E-03   -.64584E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.06585
  Index      = 2.23124
  Normalizat = 1.02895
  Prefactor  = 1.02315
 **********
 **   18 **HESSE 
 **********

 FCN=   82539.40     FROM HESSE     STATUS=OK            25 CALLS      309 TOTAL
                     EDM=   .32E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.0658        .98117        .61255E-05   -1.5358    
   2  Index         2.2312        .24792        .22060E-02   -.58686    
   3  Normalizat    1.0290        .65396E-01    .11280E-04   -.92067    
   4  Prefactor     1.0232        .58372E-01    .10139E-04   -.91962    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.20578e-11
Minuit parameter uncertainties:
  1  0.981173
  2  0.248071
  3  0.0654015
  4  0.0583752
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/899465': 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) = 82539.4042693
delta logL = 0.189235213169

Extracting fit parameters...

4FGL J1647.5+4950
   Spectrum: PowerLaw
362    Prefactor:  3.066e+00  9.812e-01  1.000e-04  1.000e+04 ( 1.000e-12)
363        Index:  2.231e+00  2.481e-01  0.000e+00  1.000e+01 (-1.000e+00)
364        Scale:  8.183e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
704    Prefactor:  1.023e+00  5.838e-02  0.000e+00  1.000e+01 ( 1.000e+00)
705        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
706        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
703   Normalization:  1.029e+00  6.540e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 19.72
Ra Dec: 251.892 49.834
Photon Index (Free Index): 2.23 +/- 0.25
Photon Flux (Free Index): 2.71e-08 +/- 1.13e-08
Energy Flux (Free Index): 1.15e-05 +/- 4.11e-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/899465/cmap_HighResolution_669859201_672451201_4FGL_J1647.5+4950_monthly_bin167.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.15e-08', energy_flux2='1.15e-05', photon_flux_error='1.01e-08', dlogl='1.89e-01', energy_flux='1.05e-05', photon_flux2='2.71e-08', job_status='DONE', time_completed='2022-04-24 04:58:34.021656', photon_index_error2='0.25', photon_index2='2.23', ts='19.46', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', energy_flux_error2='4.11e-06', EG='1.02', time_epoch_completed='1650801514.02', return_code='0', job_id='899465', GAL2='1.02', EG2='1.03', return_code2='0', energy_flux_error='3.37e-06', photon_flux_error2='1.13e-08', ts2='19.72', photon_index='2.39' WHERE bin_id='167' AND source_name='4FGL J1647.5+4950' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Sun Apr 24 04:58:34 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0043>
Subject: Job 899465: <4FGL_J1647.5+4950_monthly_bin167> in cluster <slac> Done

Job <4FGL_J1647.5+4950_monthly_bin167> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Apr 24 02:00:53 2022
Job was executed on host(s) <bullet0043>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Apr 24 02:30:44 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Apr 24 02:30:44 2022
Terminated at Sun Apr 24 04:58:35 2022
Results reported at Sun Apr 24 04:58:35 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1647.5+4950_monthly_bin167 251.892 49.8336 669859201 672451201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1647.5+4950 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   8801.00 sec.
    Max Memory :                                 1101 MB
    Average Memory :                             432.05 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   8870 sec.
    Turnaround time :                            10662 sec.

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

