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

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

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

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

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

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


Performing analysis on: 4FGL_J1647.4-6438_monthly_bin168
RA = 251.87, Dec = -64.6454
tmin = 672451201, tmax = 675043201
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = 12
zmax = 90

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

Likelihood fit parameters:
Statistic: UNBINNED
Optimizer: MINUIT

Catalog: 4FGL

Repository job = True

LAT data source:
Data catalog

Updating database...

UPDATE lightcurve_data_v2 SET job_id='640970', job_status='RUN', time_executed='2022-05-24 03:34:02.293406', time_epoch_executed='1653388442.29' WHERE source_name='4FGL J1647.4-6438' and cadence='monthly' and bin_id='168'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/640970

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

Retrieving the FT1 file...

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

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

Retrieving 455 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/640970/ft1_4FGL_J1647.4-6438_monthly_bin168.fits


Retrieving the FT1 file...

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

Retrieving 455 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/640970/ft2_4FGL_J1647.4-6438_monthly_bin168.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/640970/ft1_4FGL_J1647.4-6438_monthly_bin168.fits outfile=/scratch/kocevski/640970/ft1_filteredMKT_4FGL_J1647.4-6438_monthly_bin168.fits ra=251.87 dec=-64.6454 rad=12.0 tmin=672451201.0 tmax=675043201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 31.86
user 27.94
sys 0.73

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/640970/ft2_4FGL_J1647.4-6438_monthly_bin168.fits

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

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

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

Number of photons that the gtmktime cut: 15217

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

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

Working on file /scratch/kocevski/640970/ft2_4FGL_J1647.4-6438_monthly_bin168.fits
.....................!
real 139.56
user 138.67
sys 0.38

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

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

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /scratch/kocevski/640970/ltcube_672451201_675043201_4FGL_J1647.4-6438_monthly_bin168.fits
.....................!
real 193.40
user 187.53
sys 5.31

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
Extended source FHES J1501.0-6310 in ROI with RadialGaussian spatial model.
Extended source HESS J1507-622 in ROI with RadialDisk spatial model.
Extended source MSH 15-52 in ROI with RadialDisk spatial model.
Extended source HESS J1534-571 in ROI with RadialDisk spatial model.
Extended source MSH 15-56 PWN in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/MSH15-56_PWN.fits is the correct path to the extended template.
Extended source MSH 15-56 SNR in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/MSH15-56_SNRmask.fits is the correct path to the extended template.
Extended source FGES J1553.8-5325 in ROI with RadialDisk spatial model.
Extended source FHES J1642.1-5428 in ROI with RadialDisk spatial model.
Extended source HESS J1420-607 in ROI with RadialDisk spatial model.
Extended source RCW 86 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/RCW86.fits is the correct path to the extended template.
Extended source HESS J1614-518 in ROI with RadialDisk spatial model.
Extended source HESS J1616-508 in ROI with RadialDisk spatial model.
Extended source FGES J1631.6-4756 in ROI with RadialDisk spatial model.
Extended source FGES J1633.0-4746 in ROI with RadialDisk spatial model.
Extended source G337.0-0.1 in ROI with RadialDisk spatial model.
Extended source FGES J1655.5-4737 in ROI with RadialDisk spatial model.
Extended source HESS J1356-645 in ROI with RadialDisk spatial model.
Extended source FGES J1409.1-6121 in ROI with RadialDisk spatial model.
Extended source FGES J1652.2-4633 in ROI with RadialDisk spatial model.
Added 396 point sources and 19 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J1647.4-6438 @ 251.87 -64.6454

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/640970/ft1_filtered_4FGL_J1647.4-6438_monthly_bin168.fits scfile=/scratch/kocevski/640970/ft2_4FGL_J1647.4-6438_monthly_bin168.fits outfile=/scratch/kocevski/640970/cmap_672451201_675043201_4FGL_J1647.4-6438_monthly_bin168.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=251.87 yref=-64.6454 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.82
user 0.63
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/640970/ft1_filtered_4FGL_J1647.4-6438_monthly_bin168.fits scfile=/scratch/kocevski/640970/ft2_4FGL_J1647.4-6438_monthly_bin168.fits outfile=/scratch/kocevski/640970/cmap_HighResolution_672451201_675043201_4FGL_J1647.4-6438_monthly_bin168.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=251.87 yref=-64.6454 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.15

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

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

adding source EG_v02
adding source FGES J1409.1-6121
adding source FGES J1553.8-5325
adding source FGES J1631.6-4756
adding source FGES J1633.0-4746
adding source FGES J1652.2-4633
adding source FGES J1655.5-4737
adding source FHES J1501.0-6310
adding source FHES J1642.1-5428
adding source G337.0-0.1
adding source GAL_V02
adding source HESS J1356-645
adding source HESS J1420-607
adding source HESS J1507-622
adding source HESS J1534-571
adding source HESS J1614-518
adding source HESS J1616-508
adding source MSH 15-52
adding source MSH 15-56 PWN
adding source MSH 15-56 SNR
adding source RCW 86
Working on...
/scratch/kocevski/640970/ft1_filtered_4FGL_J1647.4-6438_monthly_bin168.fits.....................!
real 6866.61
user 6840.28
sys 4.80

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/640970/ft1_filtered_4FGL_J1647.4-6438_monthly_bin168.fits', '/scratch/kocevski/640970/ft2_4FGL_J1647.4-6438_monthly_bin168.fits', expMap='/scratch/kocevski/640970/expmap_672451201_675043201_4FGL_J1647.4-6438_monthly_bin168.fits', expCube='/scratch/kocevski/640970/ltcube_672451201_675043201_4FGL_J1647.4-6438_monthly_bin168.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/640970/Model_4FGL_J1647.4-6438_monthly_bin168.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1647.4-6438'

4FGL J1647.4-6438
   Spectrum: PowerLaw
886    Prefactor:  3.667e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
887        Index:  2.285e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
888        Scale:  1.482e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/640970/ft1_filtered_4FGL_J1647.4-6438_monthly_bin168.fits
Spacecraft file(s): /scratch/kocevski/640970/ft2_4FGL_J1647.4-6438_monthly_bin168.fits
Exposure map: /scratch/kocevski/640970/expmap_672451201_675043201_4FGL_J1647.4-6438_monthly_bin168.fits
Exposure cube: /scratch/kocevski/640970/ltcube_672451201_675043201_4FGL_J1647.4-6438_monthly_bin168.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/640970/Model_4FGL_J1647.4-6438_monthly_bin168.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10976E-02   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    22.658       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .15252E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.5313       1.0000         .10000E-03   10000.    
     6 'norm      '    .63224       1.0000         .10000E-03   10000.    
     7 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.3312       1.0000         .10000E-03   10000.    
     9 'Prefactor '    15.591       1.0000         .10000E-03   10000.    
    10 'norm      '    1.7911       1.0000         .10000E-03   10000.    
    11 'norm      '    5.2305       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.6174       1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.266       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .56225       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.3864       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .99372       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1479E+06   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   145150.0     FROM MIGRAD    STATUS=CONVERGED    345 CALLS     1480 TOTAL
                     EDM=   .48E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10008E-03    1.0050        .65787E-06** at limit **
   2  norm          .10000E-03    .83857        .24830E-07** at limit **
   3  Prefactor     22.653        11.326       -.20641E-05   -.32582E-03
   4  Prefactor     .10000E-03    .40232        .20939E-08** at limit **
   5  norm          2.5314        1.5986        .31760E-06   -.29433E-02
   6  norm          .63294        1.5532       -.58985E-06   -.69085E-03
   7  norm          .10000E-03    .82032       -.30724E-06** at limit **
   8  Prefactor     1.3314        .74919        .19789E-07   -.56070E-02
   9  Prefactor     15.591        25.640        .52685E-06    .42305E-04
  10  norm          1.7915        1.4709       -.12512E-06   -.45674E-03
  11  norm          5.2155        14.124       -.27899E-04   -.88106E-05
  12  Prefactor     1.6176        2.0666       -.45666E-06   -.24160E-03
  13  Prefactor     10.266        9.1120       -.21627E-06    .53535E-05
  14  Prefactor     .59452        1.3219       -.43580E-06    .56200E-03
  15  Prefactor     .10000E-03    1.4780        .19764E-06** at limit **
  16  Normalizat    1.3863        .89452E-01    .13055E-05    .25090E-03
  17  Prefactor     .99372        .15545E-01   -.57056E-08    .43092E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010008
  norm       = 0.0001
  Prefactor  = 22.6534
  Prefactor  = 0.000100001
  norm       = 2.53141
  norm       = 0.632941
  norm       = 0.0001
  Prefactor  = 1.3314
  Prefactor  = 15.5907
  norm       = 1.79152
  norm       = 5.21547
  Prefactor  = 1.61761
  Prefactor  = 10.2662
  Prefactor  = 0.59452
  Prefactor  = 0.0001
  Normalizat = 1.38633
  Prefactor  = 0.993717
 **********
 **   18 **HESSE 
 **********

 FCN=   145150.0     FROM HESSE     STATUS=OK           249 CALLS     1729 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10008E-03    1.1174        .12440       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .84215        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     22.653        11.354        .84149E-04   -1.4756    
   4  Prefactor     .10000E-03    .56212        .71557E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.5314        1.6797        .12836E-02   -1.5390    
   6  norm          .63294        1.5587        .47197E-03   -1.5549    
   7  norm          .10000E-03    .84131        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.3314        1.8449        .19029E-02   -1.5477    
   9  Prefactor     15.591        25.680        .10143E-03   -1.4918    
  10  norm          1.7915        1.4631        .31252E-03   -1.5440    
  11  norm          5.2155        14.123        .17576E-03   -1.5251    
  12  Prefactor     1.6176        2.0501        .33287E-03   -1.5454    
  13  Prefactor     10.266        9.1101        .12505E-03   -1.5067    
  14  Prefactor     .59452        7.4671        .61623E-02   -1.5554    
  15  Prefactor     .10000E-03    1.4980        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.3863        .93301E-01    .64544E-03   -.81025    
  17  Prefactor     .99372        .16452E-01    .13001E-03   -.92939    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.30822e-08
Minuit parameter uncertainties:
  1  0.000596895
  2  5.43686e-07
  3  11.3554
  4  4.96962e-05
  5  1.67978
  6  1.55879
  7  8.94863e-07
  8  1.84501
  9  25.6985
  10  1.46316
  11  14.1325
  12  2.05018
  13  9.11136
  14  4.21425
  15  1.96752e-06
  16  0.0933126
  17  0.0164521
Done.

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

Extracting fit parameters...

4FGL J1647.4-6438
   Spectrum: PowerLaw
886    Prefactor:  1.331e+00  1.845e+00  1.000e-04  1.000e+04 ( 1.000e-13)
887        Index:  2.285e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
888        Scale:  1.482e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
1443    Prefactor:  9.937e-01  1.645e-02  0.000e+00  1.000e+01 ( 1.000e+00)
1444        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
1445        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
1410   Normalization:  1.386e+00  9.331e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.80
Ra Dec: 251.870 -64.645
Photon Flux Upper Limit: 2.30e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.76e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/640970/likelihoodResults_672451201_675043201_4FGL_J1647.4-6438_monthly_bin168.txt

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) = 145148.81752
delta logL = 1.1844758229

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 145148.817513
delta logL = 1.1844827804

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.8371       1.0000         .10000E-03   10000.    
     2 'Index     '    1.3787       1.0000          .0000       10.000    
     3 'Normalizat'    1.3889       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99359       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1479E+06   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   145148.8     FROM MIGRAD    STATUS=FAILED        99 CALLS      333 TOTAL
                     EDM=   .18E-06    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.8331        1.8986        .30781E-03   -.94552E-05
   2  Index         1.3776        .47595        .32632E-01   -.30650E-02
   3  Normalizat    1.3889        .88083E-01    .64493E-03   -.39486E-05
   4  Prefactor     .99359        .15500E-01    .13001E-03    .13991E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   145148.8     FROM SIMPLEX   STATUS=UNCHANGED     68 CALLS      401 TOTAL
                     EDM=   .17E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.8331        1.8986        .52570E-04   -1.5437    
   2  Index         1.3776        .47595        .76101E-03   -.81028    
   3  Normalizat    1.3889        .88083E-01    .12800E-03   -.80950    
   4  Prefactor     .99359        .15500E-01    .22791E-04   -.92944    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   145148.8     FROM MIGRAD    STATUS=CONVERGED     27 CALLS      428 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.8331        2.0137        .12312E-04   -.59095E-05
   2  Index         1.3776        .50564        .65264E-02   -.11891E-03
   3  Normalizat    1.3889        .88104E-01    .25797E-04   -.28205E-05
   4  Prefactor     .99359        .15504E-01    .52005E-05    .13991E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.83309
  Index      = 1.37759
  Normalizat = 1.3889
  Prefactor  = 0.993586
 **********
 **   18 **HESSE 
 **********

 FCN=   145148.8     FROM HESSE     STATUS=OK            25 CALLS      453 TOTAL
                     EDM=   .24E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.8331        2.0468        .24625E-05   -1.5437    
   2  Index         1.3776        .51363        .13053E-02   -.81028    
   3  Normalizat    1.3889        .88142E-01    .51594E-05   -.80950    
   4  Prefactor     .99359        .15507E-01    .52005E-05   -.92944    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.40901e-13
Minuit parameter uncertainties:
  1  2.04691
  2  0.515553
  3  0.0881515
  4  0.0155068
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/640970': 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) = 145148.817511
delta logL = 1.18448560903

Extracting fit parameters...

4FGL J1647.4-6438
   Spectrum: PowerLaw
886    Prefactor:  1.833e+00  2.047e+00  1.000e-04  1.000e+04 ( 1.000e-13)
887        Index:  1.378e+00  5.156e-01  0.000e+00  1.000e+01 (-1.000e+00)
888        Scale:  1.482e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
1443    Prefactor:  9.936e-01  1.551e-02  0.000e+00  1.000e+01 ( 1.000e+00)
1444        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
1445        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
1410   Normalization:  1.389e+00  8.815e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.16
Ra Dec: 251.870 -64.645
Photon Index (Free Index): 1.38 +/- 0.52
Photon Flux (Free Index): 1.84e-09 +/- 2.42e-09
Energy Flux (Free Index): 8.78e-06 +/- 1.05e-05

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/640970/cmap_HighResolution_672451201_675043201_4FGL_J1647.4-6438_monthly_bin168.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.76e-03', comment='SUCCESS', energy_flux2='8.78e-06', dlogl='1.18e+00', photon_flux2='1.84e-09', job_status='DONE', time_completed='2022-05-24 09:34:43.225660', photon_index_error2='0.52', photon_index2='1.38', ts='0.80', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', photon_flux_upper_limit='2.30e-08', energy_flux_error2='1.05e-05', EG='1.39', time_epoch_completed='1653410083.23', return_code='0', job_id='640970', GAL2='0.99', EG2='1.39', return_code2='0', photon_flux_error2='2.42e-09', ts2='3.16', photon_index='2.28' WHERE bin_id='168' AND source_name='4FGL J1647.4-6438' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Tue May 24 09:34:43 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0196>
Subject: Job 640970: <4FGL_J1647.4-6438_monthly_bin168> in cluster <slac> Done

Job <4FGL_J1647.4-6438_monthly_bin168> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue May 24 03:30:24 2022
Job was executed on host(s) <bullet0196>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue May 24 03:30:26 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue May 24 03:30:26 2022
Terminated at Tue May 24 09:34:45 2022
Results reported at Tue May 24 09:34:45 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1647.4-6438_monthly_bin168 251.87 -64.6454 672451201 675043201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1647.4-6438 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   21526.00 sec.
    Max Memory :                                 908 MB
    Average Memory :                             793.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   21859 sec.
    Turnaround time :                            21861 sec.

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

