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


Performing analysis on: 4FGL_J1647.5+4950_monthly_bin169
RA = 251.892, Dec = 49.8336
tmin = 675043201, tmax = 677635201
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='179918', job_status='RUN', time_executed='2022-06-23 02:34:58.587360', time_epoch_executed='1655976898.59' WHERE source_name='4FGL J1647.5+4950' and cadence='monthly' and bin_id='169'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/179918

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

Retrieving the FT1 file...

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

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

Retrieving 456 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/179918/ft1_4FGL_J1647.5+4950_monthly_bin169.fits


Retrieving the FT1 file...

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

Retrieving 456 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/179918/ft2_4FGL_J1647.5+4950_monthly_bin169.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/179918/ft1_4FGL_J1647.5+4950_monthly_bin169.fits outfile=/scratch/kocevski/179918/ft1_filteredMKT_4FGL_J1647.5+4950_monthly_bin169.fits ra=251.892 dec=49.8336 rad=12.0 tmin=675043201.0 tmax=677635201.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 22.78
user 22.10
sys 0.61

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

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

Number of photons that the gtmktime cut: 10093

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/179918/ft1_filtered_4FGL_J1647.5+4950_monthly_bin169.fits" evtable="EVENTS" scfile=/scratch/kocevski/179918/ft2_4FGL_J1647.5+4950_monthly_bin169.fits sctable="SC_DATA" outfile=/scratch/kocevski/179918/ltcube_675043201_677635201_4FGL_J1647.5+4950_monthly_bin169.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/179918/ft2_4FGL_J1647.5+4950_monthly_bin169.fits
.....................!
real 113.24
user 111.80
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/179918/ft1_filtered_4FGL_J1647.5+4950_monthly_bin169.fits evtable="EVENTS" scfile=/scratch/kocevski/179918/ft2_4FGL_J1647.5+4950_monthly_bin169.fits sctable="SC_DATA" expcube=/scratch/kocevski/179918/ltcube_675043201_677635201_4FGL_J1647.5+4950_monthly_bin169.fits outfile=/scratch/kocevski/179918/expmap_675043201_677635201_4FGL_J1647.5+4950_monthly_bin169.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/179918/ltcube_675043201_677635201_4FGL_J1647.5+4950_monthly_bin169.fits
.....................!
real 158.63
user 154.17
sys 4.06

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/179918/ft1_filtered_4FGL_J1647.5+4950_monthly_bin169.fits scfile=/scratch/kocevski/179918/ft2_4FGL_J1647.5+4950_monthly_bin169.fits outfile=/scratch/kocevski/179918/cmap_675043201_677635201_4FGL_J1647.5+4950_monthly_bin169.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.70
user 0.51
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/179918/ft1_filtered_4FGL_J1647.5+4950_monthly_bin169.fits scfile=/scratch/kocevski/179918/ft2_4FGL_J1647.5+4950_monthly_bin169.fits outfile=/scratch/kocevski/179918/cmap_HighResolution_675043201_677635201_4FGL_J1647.5+4950_monthly_bin169.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.69
user 0.54
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/179918/ft1_filtered_4FGL_J1647.5+4950_monthly_bin169.fits', '/scratch/kocevski/179918/ft2_4FGL_J1647.5+4950_monthly_bin169.fits', expMap='/scratch/kocevski/179918/expmap_675043201_677635201_4FGL_J1647.5+4950_monthly_bin169.fits', expCube='/scratch/kocevski/179918/ltcube_675043201_677635201_4FGL_J1647.5+4950_monthly_bin169.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/179918/Model_4FGL_J1647.5+4950_monthly_bin169.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/179918/ft1_filtered_4FGL_J1647.5+4950_monthly_bin169.fits
Spacecraft file(s): /scratch/kocevski/179918/ft2_4FGL_J1647.5+4950_monthly_bin169.fits
Exposure map: /scratch/kocevski/179918/expmap_675043201_677635201_4FGL_J1647.5+4950_monthly_bin169.fits
Exposure cube: /scratch/kocevski/179918/ltcube_675043201_677635201_4FGL_J1647.5+4950_monthly_bin169.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/179918/Model_4FGL_J1647.5+4950_monthly_bin169.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) = 108065.155015

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.5001       1.0000         .10000E-03   10000.    
     2 'norm      '    .14487E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .34090       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.9743       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.3809       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .13940E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .23683E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .13379       1.0000         .10000E-03   10000.    
    11 'norm      '    .69171       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .66219       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.0786       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.5082       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.2068       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.1078       1.0000         .10000E-03   10000.    
    20 'norm      '    3.5934       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .27164E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .54485E-01   1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.9123       1.0000         .10000E-03   10000.    
    24 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    3.4847       1.0000         .10000E-03   10000.    
    26 'Prefactor '    2.2520       1.0000         .10000E-03   10000.    
    27 'norm      '    4.0514       1.0000         .10000E-03   10000.    
    28 'Prefactor '    2.3230       1.0000         .10000E-03   10000.    
    29 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    3.3068       1.0000         .10000E-03   10000.    
    31 'Prefactor '    3.9760       1.0000         .10000E-03   10000.    
    32 'Prefactor '    12.287       1.0000         .10000E-03   10000.    
    33 'Prefactor '    15.068       1.0000         .10000E-03   10000.    
    34 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    35 'Prefactor '    4.9245       1.0000         .10000E-03   10000.    
    36 'Normalizat'    1.0185       1.0000         .10000E-01   10.000    
    37 'Prefactor '    1.0741       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   108064.3     FROM MIGRAD    STATUS=CONVERGED   1145 CALLS     5038 TOTAL
                     EDM=   .53E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.4992        1.4505         .0000        .65691E-02
   2  norm          .37817E-02    .34553         .0000        .14915E-02
   3  Prefactor     .37174        1.5019         .0000        .26653E-02
   4  Prefactor     3.9749        13.060         .0000        .21613E-03
   5  Prefactor     .10000E-03    .38147         .0000    ** at limit **
   6  Prefactor     .10000E-03    3.7343         .0000    ** at limit **
   7  Prefactor     6.3805        1.5778         .0000        .87129E-01
   8  Prefactor     .10000E-03    .98005E-01     .0000    ** at limit **
   9  norm          .10000E-03    .62726         .0000    ** at limit **
  10  norm          .13380        .46506E-01     .0000        .24294E-01
  11  norm          .69192        1.0975         .0000        .86325E-02
  12  Prefactor     .66229        .61124         .0000        .11453E-01
  13  Prefactor     .10000E-03    .31078         .0000    ** at limit **
  14  norm          .10000E-03    2.0222         .0000    ** at limit **
  15  Prefactor     3.0786        .53777         .0000        .64806E-02
  16  Prefactor     2.5082        .51682         .0000        .80913E-02
  17  Prefactor     1.2069        .60447         .0000        .13156E-01
  18  Prefactor     .10000E-03    .12538         .0000    ** at limit **
  19  Prefactor     1.1078        1.2046         .0000        .33587E-02
  20  norm          3.5934        .47253         .0000       -.10648E-03
  21  Prefactor     .10000E-03    .63449         .0000    ** at limit **
  22  norm          .54514E-01    .75784E-01     .0000        .40822E-01
  23  Prefactor     1.9132        1.5641         .0000        .27829    
  24  norm          .10000E-03    .23460E-01     .0000    ** at limit **
  25  norm          3.4849        1.9218         .0000        .52661E-01
  26  Prefactor     2.2522        1.6032         .0000        .66795E-02
  27  norm          4.0515        .50207         .0000        .33214E-02
  28  Prefactor     2.3231        .61857         .0000        .13559E-04
  29  norm          .10000E-03    .16828         .0000    ** at limit **
  30  Prefactor     3.3069        5.0692         .0000        .63279E-02
  31  Prefactor     3.9761        1.0308         .0000       -.61689E-03
  32  Prefactor     12.287        7.8375         .0000       -.16546E-02
  33  Prefactor     15.068        12.861         .0000        .31168E-04
  34  Prefactor     .10000E-03    3.8596         .0000    ** at limit **
  35  Prefactor     4.9245        3.1127         .0000       -.41618E-03
  36  Normalizat    1.0185        .50271E-01     .0000        .54042E-03
  37  Prefactor     1.0741        .42895E-01     .0000        .41294E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.49918
  norm       = 0.00378166
  Prefactor  = 0.371741
  Prefactor  = 3.97494
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.38051
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.1338
  norm       = 0.691916
  Prefactor  = 0.662285
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.07861
  Prefactor  = 2.5082
  Prefactor  = 1.20687
  Prefactor  = 0.0001
  Prefactor  = 1.10783
  norm       = 3.59338
  Prefactor  = 0.0001
  norm       = 0.0545136
  Prefactor  = 1.91316
  norm       = 0.0001
  norm       = 3.48492
  Prefactor  = 2.25221
  norm       = 4.05153
  Prefactor  = 2.32306
  norm       = 0.0001
  Prefactor  = 3.30689
  Prefactor  = 3.97611
  Prefactor  = 12.2869
  Prefactor  = 15.0682
  Prefactor  = 0.0001
  Prefactor  = 4.92445
  Normalizat = 1.0185
  Prefactor  = 1.0741
 **********
 **   18 **HESSE 
 **********

 FCN=   108064.3     FROM HESSE     STATUS=OK           919 CALLS     5957 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.4992        1.4397        .25847E-03   -1.5392    
   2  norm          .37817E-02    .36374        .55797E-01   -1.5696    
   3  Prefactor     .37174        1.6501        .13376       -1.5586    
   4  Prefactor     3.9749        13.018        .20232E-03   -1.5309    
   5  Prefactor     .10000E-03    .39562        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.8439        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     6.3805        1.5576        .79447E-03   -1.5203    
   8  Prefactor     .10000E-03    .15103        .37339E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    8.0659        .49621E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .13380        .41145E-01    .37766E-03   -1.5635    
  11  norm          .69192        1.1218        .42269E-03   -1.5542    
  12  Prefactor     .66229        .59258        .23581E-03   -1.5545    
  13  Prefactor     .10000E-03    2.2775        .34414E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    2.0268        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.0786        .55631        .66448E-04   -1.5357    
  16  Prefactor     2.5082        .53625        .72190E-04   -1.5391    
  17  Prefactor     1.2069        .58623        .17024E-03   -1.5488    
  18  Prefactor     .10000E-03    .27343        .22156E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.1078        1.2033        .22474E-03   -1.5497    
  20  norm          3.5934        .47192        .78786E-04   -1.5329    
  21  Prefactor     .10000E-03    .86112        .83744E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .54514E-01    .84793E-01    .10025E-02   -1.5661    
  23  Prefactor     1.9132        1.5247        .15030E-02   -1.5431    
  24  norm          .10000E-03    .43510E-01    .96382E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          3.4849        1.9183        .10830E-02   -1.5335    
  26  Prefactor     2.2522        1.5959        .27380E-03   -1.5408    
  27  norm          4.0515        .49971        .77231E-04   -1.5305    
  28  Prefactor     2.3231        .61772        .12933E-03   -1.5403    
  29  norm          .10000E-03    .39967        .25940E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     3.3069        5.0509        .11131E-02   -1.5344    
  31  Prefactor     3.9761        1.0250        .20228E-04   -1.5309    
  32  Prefactor     12.287        7.8339        .11428E-03   -1.5007    
  33  Prefactor     15.068        12.851        .10318E-03   -1.4931    
  34  Prefactor     .10000E-03    3.8900        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  35  Prefactor     4.9245        3.1105        .18124E-03   -1.5264    
  36  Normalizat    1.0185        .57290E-01    .26620E-03   -.92413    
  37  Prefactor     1.0741        .49962E-01    .23583E-03   -.90299    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.32829e-08
Minuit parameter uncertainties:
  1  1.43976
  2  0.0731895
  3  1.56629
  4  13.0277
  5  1.6426e-06
  6  4.44296e-05
  7  1.55756
  8  1.3054e-06
  9  6.41858e-06
  10  0.0411454
  11  1.12183
  12  0.592584
  13  6.71495e-07
  14  1.7699e-06
  15  0.556311
  16  0.536249
  17  0.58623
  18  1.65819e-06
  19  1.20331
  20  0.471924
  21  2.82615e-05
  22  0.0847933
  23  1.52469
  24  9.19979e-08
  25  1.91834
  26  1.59596
  27  0.499708
  28  0.617722
  29  7.00464e-07
  30  5.05151
  31  1.02503
  32  7.83458
  33  12.8529
  34  5.47102e-05
  35  3.11064
  36  0.0572931
  37  0.0499644
Done.

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

Extracting fit parameters...

4FGL J1647.5+4950
   Spectrum: PowerLaw
362    Prefactor:  1.207e+00  5.862e-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.074e+00  4.996e-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.019e+00  5.729e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.89
Ra Dec: 251.892 49.834
Photon Index (Fixed Index): 2.39 +/- 0.00
Photon Flux (Fixed Index): 1.31e-08 +/- 6.37e-09
Energy Flux (Fixed Index): 4.39e-06 +/- 2.13e-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) = 108064.329233
delta logL = 0.0002182090102

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 108064.32919
delta logL = 0.000261426044744

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.2120       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3781       1.0000          .0000       10.000    
     3 'Normalizat'    1.0186       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0740       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7070E+05   .2000E-04
 **********
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   108064.3     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      248 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.2120        .64269        .17070E-03   -.17348E-02
   2  Index         2.3781        .34513        .10330E-01    .84764E-03
   3  Normalizat    1.0186        .54128E-01    .26619E-03   -.68335E-05
   4  Prefactor     1.0740        .49076E-01    .23583E-03   -.33166E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.21199
  Index      = 2.37808
  Normalizat = 1.01863
  Prefactor  = 1.07402
 **********
 **   18 **HESSE 
 **********

 FCN=   108064.3     FROM HESSE     STATUS=OK            25 CALLS      273 TOTAL
                     EDM=   .88E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.2120        .62809        .68280E-05   -1.5488    
   2  Index         2.3781        .33728        .20660E-02   -.55199    
   3  Normalizat    1.0186        .54172E-01    .10647E-04   -.92409    
   4  Prefactor     1.0740        .49116E-01    .94333E-05   -.90301    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.81724e-11
Minuit parameter uncertainties:
  1  0.628089
  2  0.337633
  3  0.0541749
  4  0.0491182
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/179918': 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) = 108064.32919
delta logL = 0.000261426044744

Extracting fit parameters...

4FGL J1647.5+4950
   Spectrum: PowerLaw
362    Prefactor:  1.212e+00  6.281e-01  1.000e-04  1.000e+04 ( 1.000e-12)
363        Index:  2.378e+00  3.376e-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.074e+00  4.912e-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.019e+00  5.417e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.87
Ra Dec: 251.892 49.834
Photon Index (Free Index): 2.38 +/- 0.34
Photon Flux (Free Index): 1.30e-08 +/- 7.26e-09
Energy Flux (Free Index): 4.40e-06 +/- 2.28e-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/179918/cmap_HighResolution_675043201_677635201_4FGL_J1647.5+4950_monthly_bin169.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.31e-08', energy_flux2='4.40e-06', photon_flux_error='6.37e-09', dlogl='2.61e-04', energy_flux='4.39e-06', photon_flux2='1.30e-08', job_status='DONE', time_completed='2022-06-23 05:33:20.013244', photon_index_error2='0.34', photon_index2='2.38', ts='5.89', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', energy_flux_error2='2.28e-06', EG='1.02', time_epoch_completed='1655987600.01', return_code='0', job_id='179918', GAL2='1.07', EG2='1.02', return_code2='0', energy_flux_error='2.13e-06', photon_flux_error2='7.26e-09', ts2='5.87', photon_index='2.39' WHERE bin_id='169' AND source_name='4FGL J1647.5+4950' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Thu Jun 23 05:33:20 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0033>
Subject: Job 179918: <4FGL_J1647.5+4950_monthly_bin169> in cluster <slac> Done

Job <4FGL_J1647.5+4950_monthly_bin169> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Jun 23 02:30:27 2022
Job was executed on host(s) <bullet0033>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Jun 23 02:33:02 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Jun 23 02:33:02 2022
Terminated at Thu Jun 23 05:33:21 2022
Results reported at Thu Jun 23 05:33:21 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1647.5+4950_monthly_bin169 251.892 49.8336 675043201 677635201 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 :                                   10659.00 sec.
    Max Memory :                                 633 MB
    Average Memory :                             469.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   10818 sec.
    Turnaround time :                            10974 sec.

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

