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 29 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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


Performing analysis on: 4FGL_J1647.5+4950_monthly_bin171
RA = 251.892, Dec = 49.8336
tmin = 680227201, tmax = 682819201
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='289907', job_status='RUN', time_executed='2022-09-17 03:02:40.413360', time_epoch_executed='1663408960.41' WHERE source_name='4FGL J1647.5+4950' and cadence='monthly' and bin_id='171'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/289907

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

Retrieving the FT1 file...

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

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

Retrieving 455 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/289907/ft1_4FGL_J1647.5+4950_monthly_bin171.fits


Retrieving the FT1 file...

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

Retrieving 455 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/289907/ft2_4FGL_J1647.5+4950_monthly_bin171.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/289907/ft1_4FGL_J1647.5+4950_monthly_bin171.fits outfile=/scratch/kocevski/289907/ft1_filteredMKT_4FGL_J1647.5+4950_monthly_bin171.fits ra=251.892 dec=49.8336 rad=12.0 tmin=680227201.0 tmax=682819201.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 29.39
user 28.47
sys 0.75

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/289907/ft2_4FGL_J1647.5+4950_monthly_bin171.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/289907/ft1_filteredMKT_4FGL_J1647.5+4950_monthly_bin171.fits evtable="EVENTS" outfile="/scratch/kocevski/289907/ft1_filtered_4FGL_J1647.5+4950_monthly_bin171.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.86
user 0.69
sys 0.16

Number of photons that the gtmktime cut: 11125

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/289907/ft1_filtered_4FGL_J1647.5+4950_monthly_bin171.fits" evtable="EVENTS" scfile=/scratch/kocevski/289907/ft2_4FGL_J1647.5+4950_monthly_bin171.fits sctable="SC_DATA" outfile=/scratch/kocevski/289907/ltcube_680227201_682819201_4FGL_J1647.5+4950_monthly_bin171.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/289907/ft2_4FGL_J1647.5+4950_monthly_bin171.fits
.....................!
real 152.01
user 150.57
sys 1.05

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/289907/ft1_filtered_4FGL_J1647.5+4950_monthly_bin171.fits evtable="EVENTS" scfile=/scratch/kocevski/289907/ft2_4FGL_J1647.5+4950_monthly_bin171.fits sctable="SC_DATA" expcube=/scratch/kocevski/289907/ltcube_680227201_682819201_4FGL_J1647.5+4950_monthly_bin171.fits outfile=/scratch/kocevski/289907/expmap_680227201_682819201_4FGL_J1647.5+4950_monthly_bin171.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/289907/ltcube_680227201_682819201_4FGL_J1647.5+4950_monthly_bin171.fits
.....................!
real 192.89
user 187.09
sys 5.32

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/289907/ft1_filtered_4FGL_J1647.5+4950_monthly_bin171.fits scfile=/scratch/kocevski/289907/ft2_4FGL_J1647.5+4950_monthly_bin171.fits outfile=/scratch/kocevski/289907/cmap_680227201_682819201_4FGL_J1647.5+4950_monthly_bin171.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.80
user 0.61
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/289907/ft1_filtered_4FGL_J1647.5+4950_monthly_bin171.fits scfile=/scratch/kocevski/289907/ft2_4FGL_J1647.5+4950_monthly_bin171.fits outfile=/scratch/kocevski/289907/cmap_HighResolution_680227201_682819201_4FGL_J1647.5+4950_monthly_bin171.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.81
user 0.64
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/289907/ft1_filtered_4FGL_J1647.5+4950_monthly_bin171.fits evtable="EVENTS" scfile=/scratch/kocevski/289907/ft2_4FGL_J1647.5+4950_monthly_bin171.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/289907/Model_4FGL_J1647.5+4950_monthly_bin171.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/289907/ft1_filtered_4FGL_J1647.5+4950_monthly_bin171.fits.....................!
real 733.69
user 729.17
sys 1.79

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/289907/ft1_filtered_4FGL_J1647.5+4950_monthly_bin171.fits', '/scratch/kocevski/289907/ft2_4FGL_J1647.5+4950_monthly_bin171.fits', expMap='/scratch/kocevski/289907/expmap_680227201_682819201_4FGL_J1647.5+4950_monthly_bin171.fits', expCube='/scratch/kocevski/289907/ltcube_680227201_682819201_4FGL_J1647.5+4950_monthly_bin171.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/289907/Model_4FGL_J1647.5+4950_monthly_bin171.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  0.000e+00  1.000e+06 ( 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/289907/ft1_filtered_4FGL_J1647.5+4950_monthly_bin171.fits
Spacecraft file(s): /scratch/kocevski/289907/ft2_4FGL_J1647.5+4950_monthly_bin171.fits
Exposure map: /scratch/kocevski/289907/expmap_680227201_682819201_4FGL_J1647.5+4950_monthly_bin171.fits
Exposure cube: /scratch/kocevski/289907/ltcube_680227201_682819201_4FGL_J1647.5+4950_monthly_bin171.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/289907/Model_4FGL_J1647.5+4950_monthly_bin171.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) = 118082.811145

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.8126       1.0000          .0000       .10000E+07
     2 'norm      '    2.2558       1.0000          .0000       .10000E+07
     3 'Prefactor '    .14149E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    .23267       1.0000          .0000       .10000E+07
     5 'Prefactor '    .87430E-07   1.0000          .0000       .10000E+07
     6 'Prefactor '    5.3043       1.0000          .0000       .10000E+07
     7 'Prefactor '    .88979       1.0000          .0000       .10000E+07
     8 'Prefactor '    .50260       1.0000          .0000       .10000E+07
     9 'norm      '    7.2280       1.0000          .0000       .10000E+07
    10 'norm      '    .17196       1.0000          .0000       .10000E+07
    11 'norm      '    .27379       1.0000          .0000       .10000E+07
    12 'Prefactor '    .84967       1.0000          .0000       .10000E+07
    13 'Prefactor '    6.2948       1.0000          .0000       .10000E+07
    14 'norm      '    .26009E-04   1.0000          .0000       .10000E+07
    15 'Prefactor '    2.9506       1.0000          .0000       .10000E+07
    16 'Prefactor '    11.014       1.0000          .0000       .10000E+07
    17 'Prefactor '    5.8238       1.0000          .0000       .10000E+07
    18 'Prefactor '    .50874       1.0000          .0000       .10000E+07
    19 'Prefactor '    .12490E-07   1.0000          .0000       .10000E+07
    20 'norm      '    2.8943       1.0000          .0000       .10000E+07
    21 'Prefactor '    3.7048       1.0000          .0000       .10000E+07
    22 'norm      '    .14149       1.0000          .0000       .10000E+07
    23 'Prefactor '    .36276E-05   1.0000          .0000       .10000E+07
    24 'norm      '    .20810       1.0000          .0000       .10000E+07
    25 'norm      '    5.5547       1.0000          .0000       .10000E+07
    26 'Prefactor '    .32528       1.0000          .0000       .10000E+07
    27 'norm      '    2.6626       1.0000          .0000       .10000E+07
    28 'Prefactor '    .51493       1.0000          .0000       .10000E+07
    29 'norm      '    2.8424       1.0000          .0000       .10000E+07
    30 'Prefactor '    8.1670       1.0000          .0000       .10000E+07
    31 'Prefactor '    .29814E-02   1.0000          .0000       .10000E+07
    32 'Prefactor '    12.442       1.0000          .0000       .10000E+07
    33 'Prefactor '    9.1562       1.0000          .0000       .10000E+07
    34 'Normalizat'    .92936       1.0000         .10000E-01   10.000    
    35 'Prefactor '    1.1419       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=   118080.8     FROM MIGRAD    STATUS=CONVERGED    156 CALLS     2113 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.8124        1.1315       -.10970E-07   -.48907E-03
   2  norm          2.2553        1.3066       -.94853E-08   -.41633E-03
   3  Prefactor     .11102E-09    3.3615        .20458E-07** at limit **
   4  Prefactor     .19208        142.04       -.16528E-06** at limit **
   5  Prefactor      .0000        .43305        .32197E-07** at limit **
   6  Prefactor     5.3066        4.2072        .10966E-07    .26708E-03
   7  Prefactor     .89024        1.4014       -.22193E-07   -.14578E-02
   8  Prefactor     .50215        .64268       -.22169E-07   -.53185E-03
   9  norm          7.2396        3.5026        .65248E-07    .55051E-02
  10  norm          .17195        .46760E-01   -.77737E-10** at limit **
  11  norm          .27334        1.0923        .16967E-08    .26030E-04
  12  Prefactor     .84994        .62402       -.45289E-09    .17503E-03
  13  Prefactor     6.2936        1.6621       -.97344E-08   -.30745E-03
  14  norm          .55511E-10    2.8425        .13263E-06** at limit **
  15  Prefactor     2.9507        .60369       -.25189E-08   -.22847E-02
  16  Prefactor     11.014        .71964       -.11603E-08   -.35996E-02
  17  Prefactor     5.8239        .81736       -.12381E-07   -.19616E-02
  18  Prefactor     .50897        .48420        .27458E-09   -.17001E-03
  19  Prefactor      .0000        .45927        .47871E-08** at limit **
  20  norm          2.8943        .42664        .14786E-08   -.14424E-03
  21  Prefactor     3.7054        3.2462       -.25367E-07   -.54071E-06
  22  norm          .14144        .14671       -.36065E-08** at limit **
  23  Prefactor      .0000        .60013       -.91028E-08** at limit **
  24  norm          .20808        .13955       -.10254E-07** at limit **
  25  norm          5.5550        1.9582        .89970E-09   -.18617E-04
  26  Prefactor     .32669        1.2910        .79746E-08   -.14961E-03
  27  norm          2.6625        .44880        .76328E-08    .27842E-02
  28  Prefactor     .51492        .34835        .12019E-07    .14546E-02
  29  norm          2.8413        1.1644        .31585E-07    .14649E-02
  30  Prefactor     8.1830        5.8776        .37970E-08    .23750E-01
  31  Prefactor     .23870E-08    9.0112        .18208E-06** at limit **
  32  Prefactor     12.351        3.5770        .42477E-08    .25649E-02
  33  Prefactor     9.1320        4.1469       -.27371E-07    .41694E-01
  34  Normalizat    .92939        .58054E-01    .41228E-06    .41204E-04
  35  Prefactor     1.1420        .49746E-01   -.29761E-06    .33225E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.8124
  norm       = 2.25533
  Prefactor  = 1.11022e-10
  Prefactor  = 0.192083
  Prefactor  = 0
  Prefactor  = 5.30655
  Prefactor  = 0.890242
  Prefactor  = 0.502145
  norm       = 7.23965
  norm       = 0.171952
  norm       = 0.273344
  Prefactor  = 0.849935
  Prefactor  = 6.29357
  norm       = 5.55112e-11
  Prefactor  = 2.9507
  Prefactor  = 11.0138
  Prefactor  = 5.82386
  Prefactor  = 0.508973
  Prefactor  = 0
  norm       = 2.89431
  Prefactor  = 3.70541
  norm       = 0.141442
  Prefactor  = 0
  norm       = 0.208078
  norm       = 5.55501
  Prefactor  = 0.32669
  norm       = 2.66247
  Prefactor  = 0.514922
  norm       = 2.84128
  Prefactor  = 8.18297
  Prefactor  = 2.38698e-09
  Prefactor  = 12.3511
  Prefactor  = 9.13198
  Normalizat = 0.929394
  Prefactor  = 1.14195
 **********
 **   18 **HESSE 
 **********

 FCN=   118080.8     FROM HESSE     STATUS=OK           886 CALLS     2999 TOTAL
                     EDM=   .70E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.8124        1.1411        .77563E-03   -1.5681    
   2  norm          2.2553        1.3206        .68376E-03   -1.5678    
   3  Prefactor     .11102E-09    3.3511        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .19208        3.1509        .18392E-01   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor      .0000        .43177        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.3066        4.2263        .43616E-03   -1.5662    
   7  Prefactor     .89024        1.4236        .46469E-03   -1.5689    
   8  Prefactor     .50215        .65010        .78449E-03   -1.5694    
   9  norm          7.2396        3.5224        .37285E-03   -1.5654    
  10  norm          .17195        .51107E-01    .82231E-03   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .27334        .71790        .10587E-01   -1.5698    
  12  Prefactor     .84994        .62336        .49304E-03   -1.5690    
  13  Prefactor     6.2936        1.6608        .39985E-03   -1.5658    
  14  norm          .55511E-10    2.8470        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.9507        .60648        .59098E-03   -1.5674    
  16  Prefactor     11.014        .71780        .30164E-03   -1.5642    
  17  Prefactor     5.8239        .82941        .41593E-03   -1.5660    
  18  Prefactor     .50897        .49339        .77835E-03   -1.5694    
  19  Prefactor      .0000        .45803        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          2.8943        .42648        .59707E-03   -1.5674    
  21  Prefactor     3.7054        3.2591        .52443E-03   -1.5669    
  22  norm          .14144        .15362        .12927E-02   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor      .0000        .59529        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .20808        .13648        .24207E-02   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          5.5550        1.9618        .42604E-03   -1.5661    
  26  Prefactor     .32669        .63486        .70117E-02   -1.5697    
  27  norm          2.6625        .45307        .62438E-03   -1.5675    
  28  Prefactor     .51492        .35625        .77222E-03   -1.5694    
  29  norm          2.8413        1.1822        .60285E-03   -1.5674    
  30  Prefactor     8.1830        7.2914        .35058E-03   -1.5651    
  31  Prefactor     .23870E-08    .17902        .52254E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     12.351        7.6031        .28373E-03   -1.5638    
  33  Prefactor     9.1320        9.5528        .33097E-03   -1.5648    
  34  Normalizat    .92939        .48508E-01    .65470E-01   -.95435    
  35  Prefactor     1.1420        .40871E-01    .54083E-01   -.88137    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.97698e-06
Minuit parameter uncertainties:
  1  1.14111
  2  1.32055
  3  4.21987e-05
  4  1.55593
  5  7.42384e-07
  6  4.22627
  7  1.42358
  8  0.650103
  9  3.5224
  10  0.0511065
  11  0.717902
  12  0.623359
  13  1.66076
  14  2.8011e-05
  15  0.606481
  16  0.717802
  17  0.829408
  18  0.493393
  19  1.05038e-06
  20  0.426482
  21  3.25908
  22  0.153622
  23  1.23355e-06
  24  0.136481
  25  1.96177
  26  0.634859
  27  0.453069
  28  0.356249
  29  1.18224
  30  7.29138
  31  4.14262e-05
  32  7.60306
  33  9.55279
  34  0.0485098
  35  0.0408718
Done.

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

Extracting fit parameters...

4FGL J1647.5+4950
   Spectrum: PowerLaw
362    Prefactor:  5.824e+00  8.294e-01  0.000e+00  1.000e+06 ( 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.142e+00  4.087e-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:  9.294e-01  4.851e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 140.51
Ra Dec: 251.892 49.834
Photon Index (Fixed Index): 2.39 +/- 0.00
Photon Flux (Fixed Index): 6.34e-08 +/- 9.02e-09
Energy Flux (Fixed Index): 2.12e-05 +/- 3.01e-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) = 118078.513208
delta logL = 2.2662357996

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 118078.513162
delta logL = 2.26628187714

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.4478       1.0000          .0000       .10000E+07
     2 'Index     '    2.1181       1.0000          .0000       10.000    
     3 'Normalizat'    .94757       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1325       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=   118078.5     FROM MIGRAD    STATUS=CONVERGED     78 CALLS      268 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.4478        .95569        .12356E-04   -.33859E-03
   2  Index         2.1181        .12469        .83580E-02    .22820E-02
   3  Normalizat    .94757        .54173E-01    .28691E-03   -.72275E-04
   4  Prefactor     1.1325        .48676E-01    .24002E-03    .90943E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.4478
  Index      = 2.11815
  Normalizat = 0.947571
  Prefactor  = 1.13249
 **********
 **   18 **HESSE 
 **********

 FCN=   118078.5     FROM HESSE     STATUS=OK            25 CALLS      293 TOTAL
                     EDM=   .47E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.4478        .95239        .49424E-06   -1.5657    
   2  Index         2.1181        .12420        .16716E-02   -.61428    
   3  Normalizat    .94757        .54224E-01    .11476E-04   -.94808    
   4  Prefactor     1.1325        .48725E-01    .96007E-05   -.88435    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.70997e-12
Minuit parameter uncertainties:
  1  0.952385
  2  0.124217
  3  0.0542271
  4  0.0487273
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/289907': 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) = 118078.513162
delta logL = 2.26628187714

Extracting fit parameters...

4FGL J1647.5+4950
   Spectrum: PowerLaw
362    Prefactor:  6.448e+00  9.524e-01  0.000e+00  1.000e+06 ( 1.000e-12)
363        Index:  2.118e+00  1.242e-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.132e+00  4.873e-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:  9.476e-01  5.423e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 144.25
Ra Dec: 251.892 49.834
Photon Index (Free Index): 2.12 +/- 0.12
Photon Flux (Free Index): 4.95e-08 +/- 9.94e-09
Energy Flux (Free Index): 2.61e-05 +/- 5.02e-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/289907/cmap_HighResolution_680227201_682819201_4FGL_J1647.5+4950_monthly_bin171.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.34e-08', energy_flux2='2.61e-05', photon_flux_error='9.02e-09', dlogl='2.27e+00', energy_flux='2.12e-05', photon_flux2='4.95e-08', job_status='DONE', time_completed='2022-09-17 05:17:29.961806', photon_index_error2='0.12', photon_index2='2.12', ts='140.51', fit_tolerance='1e-08', GAL='1.14', photon_index_error='0.00', energy_flux_error2='5.02e-06', EG='0.93', time_epoch_completed='1663417049.96', return_code='0', job_id='289907', GAL2='1.13', EG2='0.95', return_code2='0', energy_flux_error='3.01e-06', photon_flux_error2='9.94e-09', ts2='144.25', photon_index='2.39' WHERE bin_id='171' AND source_name='4FGL J1647.5+4950' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Sat Sep 17 05:17:30 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0264>
Subject: Job 289907: <4FGL_J1647.5+4950_monthly_bin171> in cluster <slac> Done

Job <4FGL_J1647.5+4950_monthly_bin171> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep 17 02:20:41 2022
Job was executed on host(s) <bullet0264>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 17 03:02:01 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 17 03:02:01 2022
Terminated at Sat Sep 17 05:17:31 2022
Results reported at Sat Sep 17 05:17:31 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1647.5+4950_monthly_bin171 251.892 49.8336 680227201 682819201 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 :                                   8055.00 sec.
    Max Memory :                                 1100 MB
    Average Memory :                             486.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   8129 sec.
    Turnaround time :                            10610 sec.

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

