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

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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

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

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

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


Performing analysis on: 4FGL_J1638.1+5721_daily_bin1749
RA = 249.525, Dec = 57.3577
tmin = 692668801, tmax = 692928001
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='956915', job_status='RUN', time_executed='2022-12-17 01:01:59.294325', time_epoch_executed='1671267719.29' WHERE source_name='4FGL J1638.1+5721' and cadence='daily' and bin_id='1749'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/956915

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/956915/ft1_4FGL_J1638.1+5721_daily_bin1749.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/956915/ft2_4FGL_J1638.1+5721_daily_bin1749.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/956915/ft1_4FGL_J1638.1+5721_daily_bin1749.fits outfile=/scratch/kocevski/956915/ft1_filteredMKT_4FGL_J1638.1+5721_daily_bin1749.fits ra=249.525 dec=57.3577 rad=12.0 tmin=692668801.0 tmax=692928001.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.70
user 3.45
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/956915/ft2_4FGL_J1638.1+5721_daily_bin1749.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/956915/ft2_4FGL_J1638.1+5721_daily_bin1749.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/956915/ft1_filteredMKT_4FGL_J1638.1+5721_daily_bin1749.fits evtable="EVENTS" outfile="/scratch/kocevski/956915/ft1_filtered_4FGL_J1638.1+5721_daily_bin1749.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.50
user 0.32
sys 0.16

Number of photons that the gtmktime cut: 601

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/956915/ft1_filtered_4FGL_J1638.1+5721_daily_bin1749.fits" evtable="EVENTS" scfile=/scratch/kocevski/956915/ft2_4FGL_J1638.1+5721_daily_bin1749.fits sctable="SC_DATA" outfile=/scratch/kocevski/956915/ltcube_692668801_692928001_4FGL_J1638.1+5721_daily_bin1749.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/956915/ft2_4FGL_J1638.1+5721_daily_bin1749.fits
.....................!
real 12.27
user 11.91
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/956915/ft1_filtered_4FGL_J1638.1+5721_daily_bin1749.fits evtable="EVENTS" scfile=/scratch/kocevski/956915/ft2_4FGL_J1638.1+5721_daily_bin1749.fits sctable="SC_DATA" expcube=/scratch/kocevski/956915/ltcube_692668801_692928001_4FGL_J1638.1+5721_daily_bin1749.fits outfile=/scratch/kocevski/956915/expmap_692668801_692928001_4FGL_J1638.1+5721_daily_bin1749.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/956915/ltcube_692668801_692928001_4FGL_J1638.1+5721_daily_bin1749.fits
.....................!
real 191.56
user 186.06
sys 5.11

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 221 point sources and 0 extended sources

Setting source of interest to:
4FGL J1638.1+5721 @ 249.525 57.3577

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/956915/ft1_filtered_4FGL_J1638.1+5721_daily_bin1749.fits scfile=/scratch/kocevski/956915/ft2_4FGL_J1638.1+5721_daily_bin1749.fits outfile=/scratch/kocevski/956915/cmap_692668801_692928001_4FGL_J1638.1+5721_daily_bin1749.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=249.525 yref=57.3577 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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/956915/ft1_filtered_4FGL_J1638.1+5721_daily_bin1749.fits scfile=/scratch/kocevski/956915/ft2_4FGL_J1638.1+5721_daily_bin1749.fits outfile=/scratch/kocevski/956915/cmap_HighResolution_692668801_692928001_4FGL_J1638.1+5721_daily_bin1749.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=249.525 yref=57.3577 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.55
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/956915/ft1_filtered_4FGL_J1638.1+5721_daily_bin1749.fits evtable="EVENTS" scfile=/scratch/kocevski/956915/ft2_4FGL_J1638.1+5721_daily_bin1749.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/956915/Model_4FGL_J1638.1+5721_daily_bin1749.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/956915/ft1_filtered_4FGL_J1638.1+5721_daily_bin1749.fits.....................!
real 56.53
user 55.09
sys 1.29

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/956915/ft1_filtered_4FGL_J1638.1+5721_daily_bin1749.fits', '/scratch/kocevski/956915/ft2_4FGL_J1638.1+5721_daily_bin1749.fits', expMap='/scratch/kocevski/956915/expmap_692668801_692928001_4FGL_J1638.1+5721_daily_bin1749.fits', expCube='/scratch/kocevski/956915/ltcube_692668801_692928001_4FGL_J1638.1+5721_daily_bin1749.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/956915/Model_4FGL_J1638.1+5721_daily_bin1749.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1638.1+5721'

4FGL J1638.1+5721
   Spectrum: PowerLaw
349    Prefactor:  2.779e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
350        Index:  2.681e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
351        Scale:  5.489e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/956915/ft1_filtered_4FGL_J1638.1+5721_daily_bin1749.fits
Spacecraft file(s): /scratch/kocevski/956915/ft2_4FGL_J1638.1+5721_daily_bin1749.fits
Exposure map: /scratch/kocevski/956915/expmap_692668801_692928001_4FGL_J1638.1+5721_daily_bin1749.fits
Exposure cube: /scratch/kocevski/956915/ltcube_692668801_692928001_4FGL_J1638.1+5721_daily_bin1749.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/956915/Model_4FGL_J1638.1+5721_daily_bin1749.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) = 6462.95611353

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.7288       1.0000          .0000       .10000E+07
     2 'norm      '    3.6440       1.0000          .0000       .10000E+07
     3 'Prefactor '    .30281E-01   1.0000          .0000       .10000E+07
     4 'Prefactor '    .21912E-04   1.0000          .0000       .10000E+07
     5 'norm      '    7.8344       1.0000          .0000       .10000E+07
     6 'Prefactor '    .71819       1.0000          .0000       .10000E+07
     7 'Prefactor '    .55579E-01   1.0000          .0000       .10000E+07
     8 'Prefactor '    .71400E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    2.1696       1.0000          .0000       .10000E+07
    10 'Prefactor '    5.0187       1.0000          .0000       .10000E+07
    11 'norm      '    .30807E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    .11970E-05   1.0000          .0000       .10000E+07
    13 'Prefactor '    11.812       1.0000          .0000       .10000E+07
    14 'Prefactor '    8.1925       1.0000          .0000       .10000E+07
    15 'norm      '    4.5729       1.0000          .0000       .10000E+07
    16 'Prefactor '    5.5859       1.0000          .0000       .10000E+07
    17 'Prefactor '    9.0644       1.0000          .0000       .10000E+07
    18 'Prefactor '    .47232E-05   1.0000          .0000       .10000E+07
    19 'norm      '    .21599E-05   1.0000          .0000       .10000E+07
    20 'norm      '    1.1964       1.0000          .0000       .10000E+07
    21 'Prefactor '    2.0684       1.0000          .0000       .10000E+07
    22 'Prefactor '    .16828E-02   1.0000          .0000       .10000E+07
    23 'Prefactor '    4.8224       1.0000          .0000       .10000E+07
    24 'Prefactor '    4.3977       1.0000          .0000       .10000E+07
    25 'Prefactor '    .32919E-01   1.0000          .0000       .10000E+07
    26 'norm      '    9.8849       1.0000          .0000       .10000E+07
    27 'Prefactor '    .86275E-06   1.0000          .0000       .10000E+07
    28 'Prefactor '    49.793       1.0000          .0000       .10000E+07
    29 'Prefactor '    .69287E-01   1.0000          .0000       .10000E+07
    30 'Normalizat'    1.1421       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .72207       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7140E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6462.940     FROM MIGRAD    STATUS=CONVERGED    209 CALLS     3047 TOTAL
                     EDM=   .70E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.7139        7.7154        .17274E-06    .23592E-01
   2  norm          3.6465        2.6568       -.51292E-08   -.61288E-03
   3  Prefactor     .31097E-06    35.733        .80719E-07** at limit **
   4  Prefactor     .38858E-09    2.2769       -.46350E-07** at limit **
   5  norm          7.8309        6.4568        .24604E-07   -.12565E-02
   6  Prefactor     .26623        482.80       -.24516E-05    .45261E-02
   7  Prefactor     .77827E-07    16.275        .52261E-06** at limit **
   8  Prefactor     .33307E-09    4.1491        .97480E-07** at limit **
   9  Prefactor     2.1899        39.191        .63216E-06    .68941E-03
  10  Prefactor     5.1091        6.2139        .15243E-07   -.50526E-02
  11  norm          .55511E-10    7.8994       -.20280E-06** at limit **
  12  Prefactor      .0000        1.3547        .36181E-07** at limit **
  13  Prefactor     11.790        6.5787       -.26433E-07    .31181E-01
  14  Prefactor     8.2050        6.7790       -.23034E-07    .74028E-01
  15  norm          4.5297        4.2382       -.53614E-07   -.17326E-01
  16  Prefactor     5.5838        3.3646        .75759E-07    .96420E-03
  17  Prefactor     9.0717        2.1894        .32293E-07    .24134E-01
  18  Prefactor     .26645E-06    144.38       -.39145E-06** at limit **
  19  norm          .55511E-10    3.0790        .19619E-06** at limit **
  20  norm          1.1978        .72422        .80839E-08    .52650E-03
  21  Prefactor     2.0376        5.3714       -.44274E-07   -.50881E-02
  22  Prefactor     .11102E-09    5.3394        .19752E-06** at limit **
  23  Prefactor     4.8202        4.1595       -.42212E-07   -.18019E-01
  24  Prefactor     4.3993        3.6709       -.59026E-08    .56937E-03
  25  Prefactor     .18319E-08    26.452        .34896E-06** at limit **
  26  norm          9.8864        3.5195        .27758E-07   -.15115E-01
  27  Prefactor     .11102E-09    2.7812        .30843E-07** at limit **
  28  Prefactor     49.715        13.833       -.96088E-07   -.46500E-01
  29  Prefactor      .0000        10.241        .40317E-06** at limit **
  30  Normalizat    1.1423        .20891        .35536E-06   -.51031E-04
  31  Prefactor     .72201        .17578       -.19396E-05   -.73954E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.7139
  norm       = 3.64649
  Prefactor  = 3.10973e-07
  Prefactor  = 3.88578e-10
  norm       = 7.83085
  Prefactor  = 0.266226
  Prefactor  = 7.78266e-08
  Prefactor  = 3.33067e-10
  Prefactor  = 2.18986
  Prefactor  = 5.10905
  norm       = 5.55112e-11
  Prefactor  = 0
  Prefactor  = 11.7895
  Prefactor  = 8.20497
  norm       = 4.52966
  Prefactor  = 5.58379
  Prefactor  = 9.07166
  Prefactor  = 2.66454e-07
  norm       = 5.55112e-11
  norm       = 1.19783
  Prefactor  = 2.03759
  Prefactor  = 1.11022e-10
  Prefactor  = 4.82019
  Prefactor  = 4.39927
  Prefactor  = 1.83187e-09
  norm       = 9.88636
  Prefactor  = 1.11022e-10
  Prefactor  = 49.7146
  Prefactor  = 0
  Normalizat = 1.14234
  Prefactor  = 0.722014
 **********
 **   18 **HESSE 
 **********

 FCN=   6462.940     FROM HESSE     STATUS=OK           702 CALLS     3749 TOTAL
                     EDM=   .10E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.7139        9.5369        .36046E-03   -1.5652    
   2  norm          3.6465        2.6661        .52895E-03   -1.5670    
   3  Prefactor     .31097E-06    52.868        .16436E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .38858E-09    2.2912        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          7.8309        6.5648        .35801E-03   -1.5652    
   6  Prefactor     .26623        27.815        .11248E-01   -1.5698    
   7  Prefactor     .77827E-07    59.739        .15325E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .33307E-09    4.1514        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.1899        39.209        .69885E-03   -1.5678    
  10  Prefactor     5.1091        6.3399        .44863E-03   -1.5663    
  11  norm          .55511E-10    7.9121        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor      .0000        1.3576        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     11.790        7.2812        .29123E-03   -1.5639    
  14  Prefactor     8.2050        23.885        .35003E-03   -1.5651    
  15  norm          4.5297        7.7809        .47049E-03   -1.5665    
  16  Prefactor     5.5838        3.4311        .42483E-03   -1.5661    
  17  Prefactor     9.0717        7.9509        .33266E-03   -1.5648    
  18  Prefactor     .26645E-06    142.01        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .55511E-10    .41742        .29180E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.1978        .75272        .10388E-02   -1.5686    
  21  Prefactor     2.0376        7.7815        .71806E-03   -1.5679    
  22  Prefactor     .11102E-09    5.3444        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     4.8202        7.6654        .45787E-03   -1.5664    
  24  Prefactor     4.3993        3.7109        .48001E-03   -1.5666    
  25  Prefactor     .18319E-08    26.515        .16300E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          9.8864        7.4370        .31847E-03   -1.5645    
  27  Prefactor     .11102E-09    2.7931        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     49.715        52.749        .14173E-03   -1.5567    
  29  Prefactor      .0000        62.542        .14842E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.1423        .18582        .36499E-01   -.88404    
  31  Prefactor     .72201        .15497        .42694E-01   -1.0267    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.02377e-06
Minuit parameter uncertainties:
  1  9.53694
  2  2.66614
  3  0.00810957
  4  5.78024e-05
  5  6.56479
  6  5.44248
  7  0.00431176
  8  7.27507e-05
  9  18.5324
  10  6.33992
  11  4.38238e-05
  12  3.97156e-06
  13  7.28123
  14  23.8851
  15  7.78089
  16  3.43114
  17  7.95087
  18  0.0123027
  19  7.46527e-06
  20  0.752722
  21  7.78149
  22  4.30597e-05
  23  7.66546
  24  3.71091
  25  0.000438087
  26  7.43702
  27  3.64249e-05
  28  52.7495
  29  6.99242e-05
  30  0.185929
  31  0.155062
Done.

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

Extracting fit parameters...

4FGL J1638.1+5721
   Spectrum: PowerLaw
349    Prefactor:  1.179e+01  7.281e+00  0.000e+00  1.000e+06 ( 1.000e-12)
350        Index:  2.681e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
351        Scale:  5.489e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
711    Prefactor:  7.220e-01  1.551e-01  0.000e+00  1.000e+01 ( 1.000e+00)
712        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
713        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
710   Normalization:  1.142e+00  1.859e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.18
Ra Dec: 249.525 57.358
Photon Index (Fixed Index): 2.68 +/- 0.00
Photon Flux (Fixed Index): 6.74e-08 +/- 4.16e-08
Energy Flux (Fixed Index): 1.65e-05 +/- 1.02e-05

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) = 6462.81024387
delta logL = 0.130107904274

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6462.80715072
delta logL = 0.133201052164

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.251       1.0000          .0000       .10000E+07
     2 'Index     '    2.3672       1.0000          .0000       10.000    
     3 'Normalizat'    1.1598       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71161       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7140E+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=   6462.807     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      297 TOTAL
                     EDM=   .79E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.250        8.6622        .10996E-04    .24665E-01
   2  Index         2.3673        .58783        .88903E-02    .49557E-03
   3  Normalizat    1.1597        .19696        .22865E-03   -.19239E-03
   4  Prefactor     .71165        .17351        .25591E-03   -.17414E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.2503
  Index      = 2.36731
  Normalizat = 1.15969
  Prefactor  = 0.711653
 **********
 **   18 **HESSE 
 **********

 FCN=   6462.807     FROM HESSE     STATUS=OK            23 CALLS      320 TOTAL
                     EDM=   .82E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.250        8.6449        .21993E-05   -1.5635    
   2  Index         2.3673        .58629        .35561E-03   -.55452    
   3  Normalizat    1.1597        .19723        .45731E-04   -.87858    
   4  Prefactor     .71165        .17366        .10236E-04   -1.0307    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.20819e-09
Minuit parameter uncertainties:
  1  8.64494
  2  0.588165
  3  0.197358
  4  0.173788
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/956915': 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) = 6462.80715055
delta logL = 0.133201219897

Extracting fit parameters...

4FGL J1638.1+5721
   Spectrum: PowerLaw
349    Prefactor:  1.325e+01  8.645e+00  0.000e+00  1.000e+06 ( 1.000e-12)
350        Index:  2.367e+00  5.882e-01  0.000e+00  1.000e+01 (-1.000e+00)
351        Scale:  5.489e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
711    Prefactor:  7.117e-01  1.738e-01  0.000e+00  1.000e+01 ( 1.000e+00)
712        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
713        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
710   Normalization:  1.160e+00  1.974e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.39
Ra Dec: 249.525 57.358
Photon Index (Free Index): 2.37 +/- 0.59
Photon Flux (Free Index): 5.46e-08 +/- 4.69e-08
Energy Flux (Free Index): 1.87e-05 +/- 1.32e-05

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/956915/cmap_HighResolution_692668801_692928001_4FGL_J1638.1+5721_daily_bin1749.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.74e-08', energy_flux2='1.87e-05', photon_flux_error='4.16e-08', dlogl='1.33e-01', energy_flux='1.65e-05', photon_flux2='5.46e-08', job_status='DONE', time_completed='2022-12-17 01:15:32.891104', photon_index_error2='0.59', photon_index2='2.37', ts='4.18', fit_tolerance='1e-08', GAL='0.72', photon_index_error='0.00', energy_flux_error2='1.32e-05', EG='1.14', time_epoch_completed='1671268532.89', return_code='0', job_id='956915', GAL2='0.71', EG2='1.16', return_code2='0', energy_flux_error='1.02e-05', photon_flux_error2='4.69e-08', ts2='4.39', photon_index='2.68' WHERE bin_id='1749' AND source_name='4FGL J1638.1+5721' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Dec 17 01:15:32 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0079>
Subject: Job 956915: <4FGL_J1638.1+5721_daily_bin1749> in cluster <slac> Done

Job <4FGL_J1638.1+5721_daily_bin1749> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Sat Dec 17 01:00:27 2022
Job was executed on host(s) <bullet0079>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Dec 17 01:00:29 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Dec 17 01:00:29 2022
Terminated at Sat Dec 17 01:15:33 2022
Results reported at Sat Dec 17 01:15:33 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1638.1+5721_daily_bin1749 249.525 57.3577 692668801 692928001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1638.1+5721 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   815.18 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             318.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   904 sec.
    Turnaround time :                            906 sec.

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

