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


Performing analysis on: 4FGL_J2001.5-0818_weekly_bin731
RA = 300.375, Dec = -8.3162
tmin = 681091201, tmax = 681696001
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='129123', job_status='RUN', time_executed='2022-08-09 00:59:24.052829', time_epoch_executed='1660031964.05' WHERE source_name='4FGL J2001.5-0818' and cadence='weekly' and bin_id='731'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/129123

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/129123/ft1_4FGL_J2001.5-0818_weekly_bin731.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/129123/ft2_4FGL_J2001.5-0818_weekly_bin731.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/129123/ft1_4FGL_J2001.5-0818_weekly_bin731.fits outfile=/scratch/kocevski/129123/ft1_filteredMKT_4FGL_J2001.5-0818_weekly_bin731.fits ra=300.375 dec=-8.3162 rad=12.0 tmin=681091201.0 tmax=681696001.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 5.70
user 5.45
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/129123/ft2_4FGL_J2001.5-0818_weekly_bin731.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/129123/ft2_4FGL_J2001.5-0818_weekly_bin731.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/129123/ft1_filteredMKT_4FGL_J2001.5-0818_weekly_bin731.fits evtable="EVENTS" outfile="/scratch/kocevski/129123/ft1_filtered_4FGL_J2001.5-0818_weekly_bin731.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.53
user 0.36
sys 0.16

Number of photons that the gtmktime cut: 147

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/129123/ft1_filtered_4FGL_J2001.5-0818_weekly_bin731.fits" evtable="EVENTS" scfile=/scratch/kocevski/129123/ft2_4FGL_J2001.5-0818_weekly_bin731.fits sctable="SC_DATA" outfile=/scratch/kocevski/129123/ltcube_681091201_681696001_4FGL_J2001.5-0818_weekly_bin731.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/129123/ft2_4FGL_J2001.5-0818_weekly_bin731.fits
.....................!
real 27.36
user 26.95
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/129123/ft1_filtered_4FGL_J2001.5-0818_weekly_bin731.fits evtable="EVENTS" scfile=/scratch/kocevski/129123/ft2_4FGL_J2001.5-0818_weekly_bin731.fits sctable="SC_DATA" expcube=/scratch/kocevski/129123/ltcube_681091201_681696001_4FGL_J2001.5-0818_weekly_bin731.fits outfile=/scratch/kocevski/129123/expmap_681091201_681696001_4FGL_J2001.5-0818_weekly_bin731.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/129123/ltcube_681091201_681696001_4FGL_J2001.5-0818_weekly_bin731.fits
.....................!
real 192.41
user 186.05
sys 6.04

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 G24.7+0.6 in ROI with RadialDisk spatial model.
Extended source W 41 in ROI with RadialGaussian spatial model.
Extended source FGES J1836.5-0651 in ROI with RadialDisk spatial model.
Extended source FGES J1838.9-0704 in ROI with RadialDisk spatial model.
Extended source Kes 73 in ROI with RadialDisk spatial model.
Extended source HESS J1841-055 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/HESSJ1841-055.fits is the correct path to the extended template.
Extended source Kes 79 in ROI with RadialDisk spatial model.
Extended source W 44 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/W44.fits is the correct path to the extended template.
Extended source HESS J1857+026 in ROI with RadialDisk spatial model.
Extended source G42.8+0.6 in ROI with RadialDisk spatial model.
Added 282 point sources and 10 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 J2001.5-0818 @ 300.375 -8.3162

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/129123/ft1_filtered_4FGL_J2001.5-0818_weekly_bin731.fits scfile=/scratch/kocevski/129123/ft2_4FGL_J2001.5-0818_weekly_bin731.fits outfile=/scratch/kocevski/129123/cmap_681091201_681696001_4FGL_J2001.5-0818_weekly_bin731.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=300.375 yref=-8.3162 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.56
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/129123/ft1_filtered_4FGL_J2001.5-0818_weekly_bin731.fits scfile=/scratch/kocevski/129123/ft2_4FGL_J2001.5-0818_weekly_bin731.fits outfile=/scratch/kocevski/129123/cmap_HighResolution_681091201_681696001_4FGL_J2001.5-0818_weekly_bin731.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=300.375 yref=-8.3162 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.57
user 0.40
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/129123/ft1_filtered_4FGL_J2001.5-0818_weekly_bin731.fits evtable="EVENTS" scfile=/scratch/kocevski/129123/ft2_4FGL_J2001.5-0818_weekly_bin731.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/129123/Model_4FGL_J2001.5-0818_weekly_bin731.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 J1836.5-0651
adding source FGES J1838.9-0704
adding source G24.7+0.6
adding source G42.8+0.6
adding source GAL_V02
adding source HESS J1841-055
adding source HESS J1857+026
adding source Kes 73
adding source Kes 79
adding source W 41
adding source W 44
Working on...
/scratch/kocevski/129123/ft1_filtered_4FGL_J2001.5-0818_weekly_bin731.fits.....................!
real 47.03
user 45.65
sys 1.27

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/129123/ft1_filtered_4FGL_J2001.5-0818_weekly_bin731.fits', '/scratch/kocevski/129123/ft2_4FGL_J2001.5-0818_weekly_bin731.fits', expMap='/scratch/kocevski/129123/expmap_681091201_681696001_4FGL_J2001.5-0818_weekly_bin731.fits', expCube='/scratch/kocevski/129123/ltcube_681091201_681696001_4FGL_J2001.5-0818_weekly_bin731.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/129123/Model_4FGL_J2001.5-0818_weekly_bin731.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2001.5-0818'

4FGL J2001.5-0818
   Spectrum: PowerLaw
678    Prefactor:  2.722e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
679        Index:  2.153e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
680        Scale:  2.709e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/129123/ft1_filtered_4FGL_J2001.5-0818_weekly_bin731.fits
Spacecraft file(s): /scratch/kocevski/129123/ft2_4FGL_J2001.5-0818_weekly_bin731.fits
Exposure map: /scratch/kocevski/129123/expmap_681091201_681696001_4FGL_J2001.5-0818_weekly_bin731.fits
Exposure cube: /scratch/kocevski/129123/ltcube_681091201_681696001_4FGL_J2001.5-0818_weekly_bin731.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/129123/Model_4FGL_J2001.5-0818_weekly_bin731.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) = 1783.98811538

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    121.90       1.0000         .10000E-03   10000.    
     2 'Prefactor '    130.57       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10240E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .28823E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    84.574       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .38744E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10355E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .12881E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .64644E-02   1.0000         .10000E-03   10000.    
    10 'norm      '    .12894E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.6649       1.0000         .10000E-03   10000.    
    13 'norm      '    .31374E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .79295E-02   1.0000         .10000E-03   10000.    
    15 'norm      '    4.2675       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10640E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    19 'Prefactor '    .76269       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1028E+06   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1783.920     FROM MIGRAD    STATUS=CONVERGED    378 CALLS     2088 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     121.93        131.17        .19193E-04   -.35923E-05
   2  Prefactor     130.65        123.19        .39785E-04   -.22211E-04
   3  Prefactor     .10000E-03    22.662       -.34595E-06** at limit **
   4  Prefactor     .10000E-03    287.72       -.77877E-04** at limit **
   5  Prefactor     84.543        271.10       -.34800E-04   -.35067E-04
   6  Prefactor     .10000E-03    511.07        .49699E-03** at limit **
   7  Prefactor     .10000E-03    43.863        .13060E-04** at limit **
   8  Prefactor     .10000E-03    608.56        .28113E-03** at limit **
   9  Prefactor     .10000E-03    1505.1       -.23323E-03** at limit **
  10  norm          .10000E-03    1910.0       -.65426E-03** at limit **
  11  Prefactor     .10000E-03    27.806       -.48005E-06** at limit **
  12  Prefactor     .10029E-03    9846.5       -.31828E-01** at limit **
  13  norm          .10000E-03    214.71       -.21460E-03** at limit **
  14  norm          .10000E-03    2057.7       -.63204E-03** at limit **
  15  norm          4.2680        9.8307       -.69408E-06   -.11671E-03
  16  Prefactor     .10000E-03    62.994        .11198E-04** at limit **
  17  norm          .10000E-03    46.670       -.19073E-04** at limit **
  18  Normalizat    .10000E-01    .18400       -.47085E-05** at limit **
  19  Prefactor     .76257        .75333E-01   -.22632E-05    .28145E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 121.932
  Prefactor  = 130.655
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 84.5431
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100294
  norm       = 0.0001
  norm       = 0.0001
  norm       = 4.26804
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.01
  Prefactor  = 0.762571
 **********
 **   18 **HESSE 
 **********

 FCN=   1783.920     FROM HESSE     STATUS=OK           254 CALLS     2342 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     121.93        131.25        .18226E-03   -1.3495    
   2  Prefactor     130.65        123.40        .17618E-03   -1.3417    
   3  Prefactor     .10000E-03    22.671        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    287.71        .19871E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     84.543        271.10        .43681E-04   -1.3866    
   6  Prefactor     .10000E-03    511.06        .19534E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    43.863        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    608.64        .20587E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1505.1        .18826E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    1910.0        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    27.811        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10029E-03    9846.8        .12484E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    214.72        .21371E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    2057.7        .18492E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.2680        9.8108        .19504E-03   -1.5295    
  16  Prefactor     .10000E-03    62.998        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    46.670        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .10000E-01    .19015        .10837E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .76257        .73287E-01    .10966E-03   -1.0112    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.01068e-10
Minuit parameter uncertainties:
  1  131.563
  2  123.642
  3  7.13799e-05
  4  0.000161646
  5  275.223
  6  0.000284938
  7  9.82107e-06
  8  0.000400679
  9  8.65107e-06
  10  1.93978e-05
  11  1.42838e-06
  12  0.189385
  13  0.000109836
  14  2.0571e-05
  15  9.81447
  16  5.3307e-05
  17  7.95417e-08
  18  3.12172e-06
  19  0.0732966
Done.

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

Extracting fit parameters...

4FGL J2001.5-0818
   Spectrum: PowerLaw
678    Prefactor:  1.000e-04  4.007e-04  1.000e-04  1.000e+04 ( 1.000e-14)
679        Index:  2.153e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
680        Scale:  2.709e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
1004    Prefactor:  7.626e-01  7.330e-02  0.000e+00  1.000e+01 ( 1.000e+00)
1005        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
1006        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
990   Normalization:  1.000e-02  3.122e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 300.375 -8.316
Photon Flux Upper Limit: 1.50e-06 ph cm-2 s-1
Energy Flux Upper Limit: 1.14e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/129123/likelihoodResults_681091201_681696001_4FGL_J2001.5-0818_weekly_bin731.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): 102
logL (Free Index) = 1783.92020635
delta logL = -1.59351584443e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1783.92020073
delta logL = -1.03194877283e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96336E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1535       1.0000          .0000       10.000    
     3 'Normalizat'    .10001E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76257       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1028E+06   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   1783.920     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      211 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    639.69        .90715E-02** at limit **
   2  Index         2.1447        7.3773        .50000        .11457E-06
   3  Normalizat    .10000E-01    .36192E-03    .25816    ** at limit **
   4  Prefactor     .76257        .32331E-02    .24809E-01    .96175E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.14473
  Normalizat = 0.01
  Prefactor  = 0.762571
 **********
 **   18 **HESSE 
 **********

 FCN=   1783.920     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      244 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6620.3        .18143E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1447        8.7055        .50000       -.60779    
   3  Normalizat    .10000E-01    .22748E-02    .10837E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .76257        .76941E-02    .10966E-03   -1.0112    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.5882e-09
Minuit parameter uncertainties:
  1  0.00326801
  2  1333.87
  3  1.11904e-09
  4  0.00769411
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/129123': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1783.92019041
delta logL = 2.73303157883e-10

Extracting fit parameters...

4FGL J2001.5-0818
   Spectrum: PowerLaw
678    Prefactor:  1.000e-04  3.268e-03  1.000e-04  1.000e+04 ( 1.000e-14)
679        Index:  2.145e+00  1.334e+03  0.000e+00  1.000e+01 (-1.000e+00)
680        Scale:  2.709e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
1004    Prefactor:  7.626e-01  7.694e-03  0.000e+00  1.000e+01 ( 1.000e+00)
1005        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
1006        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
990   Normalization:  1.000e-02  1.119e-09  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 300.375 -8.316

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/129123/cmap_HighResolution_681091201_681696001_4FGL_J2001.5-0818_weekly_bin731.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.14e-01', job_status='DONE', photon_flux_upper_limit='1.50e-06', time_completed='2022-08-09 01:08:00.900234', job_id='129123', GAL2='0.76', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1660032480.9', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.76', dlogl='2.73e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.15' WHERE bin_id='731' AND source_name='4FGL J2001.5-0818' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Aug  9 01:08:00 PDT 2022


------------------------------------------------------------
Sender: LSF System <scs@bullet0179>
Subject: Job 129123: <4FGL_J2001.5-0818_weekly_bin731> in cluster <slac> Done

Job <4FGL_J2001.5-0818_weekly_bin731> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Aug  9 00:55:28 2022
Job was executed on host(s) <bullet0179>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug  9 00:55:29 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug  9 00:55:29 2022
Terminated at Tue Aug  9 01:08:01 2022
Results reported at Tue Aug  9 01:08:01 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2001.5-0818_weekly_bin731 300.375 -8.3162 681091201 681696001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2001.5-0818 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   518.00 sec.
    Max Memory :                                 1260 MB
    Average Memory :                             290.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   752 sec.
    Turnaround time :                            753 sec.

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

