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


Performing analysis on: 4FGL_J2005.5+7752_daily_bin1696
RA = 301.393, Dec = 77.8829
tmin = 678931201, tmax = 679190401
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='792782', job_status='RUN', time_executed='2022-07-11 00:31:48.637176', time_epoch_executed='1657524708.64' WHERE source_name='4FGL J2005.5+7752' and cadence='daily' and bin_id='1696'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/792782

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/792782/ft1_4FGL_J2005.5+7752_daily_bin1696.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/792782/ft2_4FGL_J2005.5+7752_daily_bin1696.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/792782/ft1_4FGL_J2005.5+7752_daily_bin1696.fits outfile=/scratch/kocevski/792782/ft1_filteredMKT_4FGL_J2005.5+7752_daily_bin1696.fits ra=301.393 dec=77.8829 rad=12.0 tmin=678931201.0 tmax=679190401.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 3.55
user 3.33
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/792782/ft2_4FGL_J2005.5+7752_daily_bin1696.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/792782/ft2_4FGL_J2005.5+7752_daily_bin1696.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/792782/ft1_filteredMKT_4FGL_J2005.5+7752_daily_bin1696.fits evtable="EVENTS" outfile="/scratch/kocevski/792782/ft1_filtered_4FGL_J2005.5+7752_daily_bin1696.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.49
user 0.32
sys 0.16

Number of photons that the gtmktime cut: 1514

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/792782/ft1_filtered_4FGL_J2005.5+7752_daily_bin1696.fits" evtable="EVENTS" scfile=/scratch/kocevski/792782/ft2_4FGL_J2005.5+7752_daily_bin1696.fits sctable="SC_DATA" outfile=/scratch/kocevski/792782/ltcube_678931201_679190401_4FGL_J2005.5+7752_daily_bin1696.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/792782/ft2_4FGL_J2005.5+7752_daily_bin1696.fits
.....................!
real 12.00
user 11.66
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/792782/ft1_filtered_4FGL_J2005.5+7752_daily_bin1696.fits evtable="EVENTS" scfile=/scratch/kocevski/792782/ft2_4FGL_J2005.5+7752_daily_bin1696.fits sctable="SC_DATA" expcube=/scratch/kocevski/792782/ltcube_678931201_679190401_4FGL_J2005.5+7752_daily_bin1696.fits outfile=/scratch/kocevski/792782/expmap_678931201_679190401_4FGL_J2005.5+7752_daily_bin1696.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/792782/ltcube_678931201_679190401_4FGL_J2005.5+7752_daily_bin1696.fits
.....................!
real 194.11
user 188.18
sys 5.59

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 J2208.4+6443 in ROI with RadialGaussian spatial model.
Extended source FHES J2129.9+5833 in ROI with RadialGaussian spatial model.
Added 209 point sources and 2 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 J2005.5+7752 @ 301.393 77.8829

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/792782/ft1_filtered_4FGL_J2005.5+7752_daily_bin1696.fits scfile=/scratch/kocevski/792782/ft2_4FGL_J2005.5+7752_daily_bin1696.fits outfile=/scratch/kocevski/792782/cmap_678931201_679190401_4FGL_J2005.5+7752_daily_bin1696.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=301.393 yref=77.8829 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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/792782/ft1_filtered_4FGL_J2005.5+7752_daily_bin1696.fits scfile=/scratch/kocevski/792782/ft2_4FGL_J2005.5+7752_daily_bin1696.fits outfile=/scratch/kocevski/792782/cmap_HighResolution_678931201_679190401_4FGL_J2005.5+7752_daily_bin1696.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=301.393 yref=77.8829 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.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/792782/ft1_filtered_4FGL_J2005.5+7752_daily_bin1696.fits evtable="EVENTS" scfile=/scratch/kocevski/792782/ft2_4FGL_J2005.5+7752_daily_bin1696.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/792782/Model_4FGL_J2005.5+7752_daily_bin1696.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 FHES J2129.9+5833
adding source FHES J2208.4+6443
adding source GAL_V02
Working on...
/scratch/kocevski/792782/ft1_filtered_4FGL_J2005.5+7752_daily_bin1696.fits.....................!
real 206.53
user 204.95
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/792782/ft1_filtered_4FGL_J2005.5+7752_daily_bin1696.fits', '/scratch/kocevski/792782/ft2_4FGL_J2005.5+7752_daily_bin1696.fits', expMap='/scratch/kocevski/792782/expmap_678931201_679190401_4FGL_J2005.5+7752_daily_bin1696.fits', expCube='/scratch/kocevski/792782/ltcube_678931201_679190401_4FGL_J2005.5+7752_daily_bin1696.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/792782/Model_4FGL_J2005.5+7752_daily_bin1696.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2005.5+7752'

4FGL J2005.5+7752
   Spectrum: LogParabola
492         norm:  3.878e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
493        alpha:  2.142e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
494         beta:  5.082e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
495           Eb:  9.080e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/792782/ft1_filtered_4FGL_J2005.5+7752_daily_bin1696.fits
Spacecraft file(s): /scratch/kocevski/792782/ft2_4FGL_J2005.5+7752_daily_bin1696.fits
Exposure map: /scratch/kocevski/792782/expmap_678931201_679190401_4FGL_J2005.5+7752_daily_bin1696.fits
Exposure cube: /scratch/kocevski/792782/ltcube_678931201_679190401_4FGL_J2005.5+7752_daily_bin1696.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/792782/Model_4FGL_J2005.5+7752_daily_bin1696.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) = 15253.4577869

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.2147       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .28643E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    29.753       1.0000         .10000E-03   10000.    
     5 'norm      '    8.4455       1.0000         .10000E-03   10000.    
     6 'norm      '    2.6626       1.0000         .10000E-03   10000.    
     7 'norm      '    1.2902       1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.0343       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.7785       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .83452       1.0000         .10000E-03   10000.    
    12 'norm      '    56.939       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    31.991       1.0000         .10000E-03   10000.    
    15 'norm      '    3.5948       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.7494       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1396       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .97416       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6940E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   15253.46     FROM MIGRAD    STATUS=CONVERGED    437 CALLS     2093 TOTAL
                     EDM=   .49E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.2143        8.2081        .10975E-06   -.94117E-05
   2  Prefactor     .10000E-03    .72502        .33876E-07** at limit **
   3  Prefactor     .10001E-03    11.197        .78858E-06** at limit **
   4  Prefactor     29.711        61.017        .81347E-05    .32665E-04
   5  norm          8.4473        4.1636       -.58837E-09   -.49454E-04
   6  norm          2.6623        .77724        .12000E-08   -.70957E-03
   7  norm          1.2868        4.3220        .10221E-05   -.28175E-04
   8  Prefactor     7.0381        10.118       -.16070E-05   -.17681E-04
   9  Prefactor     1.7671        70.752        .16220E-04   -.16431E-04
  10  Prefactor     .10000E-03    26.510        .59041E-07** at limit **
  11  Prefactor     .83982        2.7202       -.33081E-06    .11027E-03
  12  norm          56.938        41.413        .13247E-06    .89132E-06
  13  norm          .10000E-03    1.2108        .52800E-07** at limit **
  14  Prefactor     31.992        27.264        .39738E-07   -.13073E-04
  15  norm          3.5951        3.7108        .46896E-07   -.74138E-04
  16  Prefactor     .10000E-03    11.072        .13793E-06** at limit **
  17  Prefactor     .10000E-03    8.2619        .26789E-07** at limit **
  18  Prefactor     8.7490        10.828        .18394E-06   -.67000E-06
  19  Normalizat    1.1395        .18363       -.11918E-05   -.45213E-04
  20  Prefactor     .97420        .50820E-01   -.58160E-07   -.33229E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.21428
  Prefactor  = 0.0001
  Prefactor  = 0.00010001
  Prefactor  = 29.711
  norm       = 8.44731
  norm       = 2.66231
  norm       = 1.28679
  Prefactor  = 7.0381
  Prefactor  = 1.76715
  Prefactor  = 0.0001
  Prefactor  = 0.839821
  norm       = 56.9376
  norm       = 0.0001
  Prefactor  = 31.9919
  norm       = 3.59512
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.74905
  Normalizat = 1.13949
  Prefactor  = 0.974198
 **********
 **   18 **HESSE 
 **********

 FCN=   15253.46     FROM HESSE     STATUS=OK           299 CALLS     2392 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.2143        8.1933        .19629E-03   -1.5297    
   2  Prefactor     .10000E-03    .73292        .10256E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10001E-03    99.014        .77758E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     29.711        61.205        .73452E-04   -1.4617    
   5  norm          8.4473        4.1038        .68971E-03   -1.5127    
   6  norm          2.6623        .77329        .55449E-04   -1.5382    
   7  norm          1.2868        4.2353        .38991E-03   -1.5481    
   8  Prefactor     7.0381        10.202        .15126E-03   -1.5177    
   9  Prefactor     1.7671        72.119        .15693E-02   -1.5442    
  10  Prefactor     .10000E-03    26.514        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .83982        10.201        .31945E-02   -1.5525    
  12  norm          56.938        41.421        .53163E-04   -1.4197    
  13  norm          .10000E-03    1.2209        .13269E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     31.992        27.250        .70843E-04   -1.4576    
  15  norm          3.5951        3.7188        .21313E-03   -1.5329    
  16  Prefactor     .10000E-03    11.209        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    8.2650        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     8.7490        10.825        .13551E-03   -1.5116    
  19  Normalizat    1.1395        .19352        .43727E-03   -.88494    
  20  Prefactor     .97420        .54253E-01    .14319E-03   -.93595    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.00841e-10
Minuit parameter uncertainties:
  1  8.1955
  2  1.02968e-06
  3  0.00202677
  4  61.3349
  5  4.10398
  6  0.77329
  7  4.23624
  8  10.2049
  9  22.6069
  10  8.35251e-06
  11  5.85465
  12  41.4418
  13  3.0105e-06
  14  27.2605
  15  3.71906
  16  2.56239e-05
  17  3.92832e-06
  18  10.8272
  19  0.193641
  20  0.0542562
Done.

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

Extracting fit parameters...

4FGL J2005.5+7752
   Spectrum: LogParabola
492         norm:  1.000e-04  3.011e-06  1.000e-04  1.000e+04 ( 1.000e-12)
493        alpha:  2.142e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
494         beta:  5.082e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
495           Eb:  9.080e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
691    Prefactor:  9.742e-01  5.426e-02  0.000e+00  1.000e+01 ( 1.000e+00)
692        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
693        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
683   Normalization:  1.139e+00  1.936e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 301.393 77.883
Photon Flux Upper Limit: 4.82e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.28e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/792782/likelihoodResults_678931201_679190401_4FGL_J2005.5+7752_daily_bin1696.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) = 15253.4593937
delta logL = -0.00390284778223

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 15253.455491
delta logL = -9.5518771559e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1456       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1395       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97421       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6940E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   15253.46     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      243 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    8.3548        .13276E-02** at limit **
   2  alpha         2.2955        3.8434        .16675        .16009E-06
   3  Normalizat    1.1395        .17213        .43727E-03   -.13291E-03
   4  Prefactor     .97420        .53015E-01    .14319E-03   -.33539E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.29547
  Normalizat = 1.13948
  Prefactor  = 0.974199
 **********
 **   18 **HESSE 
 **********

 FCN=   15253.46     FROM HESSE     STATUS=OK            23 CALLS      266 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.2358        .26552E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.2955        3.1387        .66698E-02   -.81902E-01
   3  Normalizat    1.1395        .17218        .17491E-04   -.88494    
   4  Prefactor     .97420        .53028E-01    .28639E-04   -.93595    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.22484e-10
Minuit parameter uncertainties:
  1  2.4072e-05
  2  157.93
  3  0.17226
  4  0.0530312
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/792782': 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) = 15253.4554904
delta logL = 4.84293195768e-07

Extracting fit parameters...

4FGL J2005.5+7752
   Spectrum: LogParabola
492         norm:  1.000e-04  2.407e-05  1.000e-04  1.000e+04 ( 1.000e-12)
493        alpha:  2.295e+00  1.579e+02  0.000e+00  5.000e+00 ( 1.000e+00)
494         beta:  5.082e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
495           Eb:  9.080e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
691    Prefactor:  9.742e-01  5.303e-02  0.000e+00  1.000e+01 ( 1.000e+00)
692        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
693        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
683   Normalization:  1.139e+00  1.723e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 301.393 77.883

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/792782/cmap_HighResolution_678931201_679190401_4FGL_J2005.5+7752_daily_bin1696.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.28e-05', job_status='DONE', photon_flux_upper_limit='4.82e-08', time_completed='2022-07-11 00:53:53.316297', job_id='792782', GAL2='0.97', fit_tolerance='1e-08', EG2='1.14', EG='1.14', time_epoch_completed='1657526033.32', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='4.84e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.14' WHERE bin_id='1696' AND source_name='4FGL J2005.5+7752' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Jul 11 00:53:53 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0198>
Subject: Job 792782: <4FGL_J2005.5+7752_daily_bin1696> in cluster <slac> Done

Job <4FGL_J2005.5+7752_daily_bin1696> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Jul 11 00:30:21 2022
Job was executed on host(s) <bullet0198>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Jul 11 00:30:22 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Jul 11 00:30:22 2022
Terminated at Mon Jul 11 00:53:53 2022
Results reported at Mon Jul 11 00:53:53 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2005.5+7752_daily_bin1696 301.393 77.8829 678931201 679190401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2005.5+7752 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   1325.99 sec.
    Max Memory :                                 625 MB
    Average Memory :                             339.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   2932 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   1411 sec.
    Turnaround time :                            1412 sec.

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

