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


Performing analysis on: 4FGL_J1337.4+5502_daily_bin1766
RA = 204.367, Dec = 55.0418
tmin = 697075201, tmax = 697334401
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='850708', job_status='RUN', time_executed='2023-02-06 00:56:43.272736', time_epoch_executed='1675673803.27' WHERE source_name='4FGL J1337.4+5502' and cadence='daily' and bin_id='1766'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/850708

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/850708/ft1_4FGL_J1337.4+5502_daily_bin1766.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/850708/ft2_4FGL_J1337.4+5502_daily_bin1766.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/850708/ft1_4FGL_J1337.4+5502_daily_bin1766.fits outfile=/scratch/kocevski/850708/ft1_filteredMKT_4FGL_J1337.4+5502_daily_bin1766.fits ra=204.367 dec=55.0418 rad=12.0 tmin=697075201.0 tmax=697334401.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.77
user 3.48
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/850708/ft2_4FGL_J1337.4+5502_daily_bin1766.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/850708/ft2_4FGL_J1337.4+5502_daily_bin1766.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/850708/ft1_filteredMKT_4FGL_J1337.4+5502_daily_bin1766.fits evtable="EVENTS" outfile="/scratch/kocevski/850708/ft1_filtered_4FGL_J1337.4+5502_daily_bin1766.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.51
user 0.35
sys 0.15

Number of photons that the gtmktime cut: 536

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/850708/ft1_filtered_4FGL_J1337.4+5502_daily_bin1766.fits" evtable="EVENTS" scfile=/scratch/kocevski/850708/ft2_4FGL_J1337.4+5502_daily_bin1766.fits sctable="SC_DATA" outfile=/scratch/kocevski/850708/ltcube_697075201_697334401_4FGL_J1337.4+5502_daily_bin1766.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/850708/ft2_4FGL_J1337.4+5502_daily_bin1766.fits
.....................!
real 15.10
user 14.48
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/850708/ft1_filtered_4FGL_J1337.4+5502_daily_bin1766.fits evtable="EVENTS" scfile=/scratch/kocevski/850708/ft2_4FGL_J1337.4+5502_daily_bin1766.fits sctable="SC_DATA" expcube=/scratch/kocevski/850708/ltcube_697075201_697334401_4FGL_J1337.4+5502_daily_bin1766.fits outfile=/scratch/kocevski/850708/expmap_697075201_697334401_4FGL_J1337.4+5502_daily_bin1766.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/850708/ltcube_697075201_697334401_4FGL_J1337.4+5502_daily_bin1766.fits
.....................!
real 193.84
user 186.18
sys 5.30

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

Setting source of interest to:
4FGL J1337.4+5502 @ 204.367 55.0418

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/850708/ft1_filtered_4FGL_J1337.4+5502_daily_bin1766.fits scfile=/scratch/kocevski/850708/ft2_4FGL_J1337.4+5502_daily_bin1766.fits outfile=/scratch/kocevski/850708/cmap_697075201_697334401_4FGL_J1337.4+5502_daily_bin1766.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=204.367 yref=55.0418 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.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/850708/ft1_filtered_4FGL_J1337.4+5502_daily_bin1766.fits scfile=/scratch/kocevski/850708/ft2_4FGL_J1337.4+5502_daily_bin1766.fits outfile=/scratch/kocevski/850708/cmap_HighResolution_697075201_697334401_4FGL_J1337.4+5502_daily_bin1766.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=204.367 yref=55.0418 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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/850708/ft1_filtered_4FGL_J1337.4+5502_daily_bin1766.fits evtable="EVENTS" scfile=/scratch/kocevski/850708/ft2_4FGL_J1337.4+5502_daily_bin1766.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/850708/Model_4FGL_J1337.4+5502_daily_bin1766.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/850708/ft1_filtered_4FGL_J1337.4+5502_daily_bin1766.fits.....................!
real 50.02
user 48.08
sys 1.26

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/850708/ft1_filtered_4FGL_J1337.4+5502_daily_bin1766.fits', '/scratch/kocevski/850708/ft2_4FGL_J1337.4+5502_daily_bin1766.fits', expMap='/scratch/kocevski/850708/expmap_697075201_697334401_4FGL_J1337.4+5502_daily_bin1766.fits', expCube='/scratch/kocevski/850708/ltcube_697075201_697334401_4FGL_J1337.4+5502_daily_bin1766.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/850708/Model_4FGL_J1337.4+5502_daily_bin1766.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1337.4+5502'

4FGL J1337.4+5502
   Spectrum: PowerLaw
314    Prefactor:  7.731e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
315        Index:  2.758e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
316        Scale:  5.686e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/850708/ft1_filtered_4FGL_J1337.4+5502_daily_bin1766.fits
Spacecraft file(s): /scratch/kocevski/850708/ft2_4FGL_J1337.4+5502_daily_bin1766.fits
Exposure map: /scratch/kocevski/850708/expmap_697075201_697334401_4FGL_J1337.4+5502_daily_bin1766.fits
Exposure cube: /scratch/kocevski/850708/ltcube_697075201_697334401_4FGL_J1337.4+5502_daily_bin1766.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/850708/Model_4FGL_J1337.4+5502_daily_bin1766.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) = 5854.85886487

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.6965       1.0000          .0000       .10000E+07
     2 'norm      '    .64610       1.0000          .0000       .10000E+07
     3 'Prefactor '    2.6749       1.0000          .0000       .10000E+07
     4 'norm      '    3.7922       1.0000          .0000       .10000E+07
     5 'Prefactor '    .49173E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    .21339E-03   1.0000          .0000       .10000E+07
     7 'norm      '    5.0307       1.0000          .0000       .10000E+07
     8 'Prefactor '    1.7303       1.0000          .0000       .10000E+07
     9 'Prefactor '    86.802       1.0000          .0000       .10000E+07
    10 'norm      '    .45955E-05   1.0000          .0000       .10000E+07
    11 'Prefactor '    .36954       1.0000          .0000       .10000E+07
    12 'Prefactor '    .11654E-05   1.0000          .0000       .10000E+07
    13 'norm      '    .26978E-07   1.0000          .0000       .10000E+07
    14 'norm      '    .17430E-03   1.0000          .0000       .10000E+07
    15 'Prefactor '    .59245E-02   1.0000          .0000       .10000E+07
    16 'Prefactor '    .53978E-02   1.0000          .0000       .10000E+07
    17 'Prefactor '    .46553       1.0000          .0000       .10000E+07
    18 'Prefactor '    .81712E-07   1.0000          .0000       .10000E+07
    19 'Prefactor '    .83241E-02   1.0000          .0000       .10000E+07
    20 'Prefactor '    .88724       1.0000          .0000       .10000E+07
    21 'Prefactor '    12.042       1.0000          .0000       .10000E+07
    22 'Prefactor '    .37950E-03   1.0000          .0000       .10000E+07
    23 'Prefactor '    .12918E-03   1.0000          .0000       .10000E+07
    24 'Prefactor '    .29666E-04   1.0000          .0000       .10000E+07
    25 'Normalizat'    .94650       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .81420       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6640E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5854.857     FROM MIGRAD    STATUS=CONVERGED    163 CALLS     2326 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.6960        2.4471        .46818E-06   -.17789E-02
   2  norm          .64608        1.0938        .13195E-07   -.77567E-03
   3  Prefactor     2.6266        20.087       -.10417E-04   -.13255E-01
   4  norm          3.7934        2.3769        .58503E-07   -.58164E-03
   5  Prefactor     .42188E-08    9.1727       -.27647E-05** at limit **
   6  Prefactor      .0000        2.3955        .24749E-06** at limit **
   7  norm          5.0167        4.1217       -.19159E-06   -.17127E-02
   8  Prefactor     2.4814        278.07       -.16153E-04    .94328E-02
   9  Prefactor     86.129        50.834        .17806E-05    .61266E-01
  10  norm           .0000        1.5590        .39073E-06** at limit **
  11  Prefactor     .22081E-05    25.480        .34289E-05** at limit **
  12  Prefactor      .0000        1.5670       -.11802E-07** at limit **
  13  norm           .0000        .35069       -.17573E-06** at limit **
  14  norm           .0000        3.1032       -.42377E-06** at limit **
  15  Prefactor     .40190E-07    6.3855       -.22914E-05** at limit **
  16  Prefactor     .47462E-07    10.215       -.31484E-05** at limit **
  17  Prefactor     .12212E-07    106.25        .14371E-04** at limit **
  18  Prefactor      .0000        1.3046       -.12859E-06** at limit **
  19  Prefactor     .79381E-08    8.0985       -.25832E-05** at limit **
  20  Prefactor     .88999        2.2935        .94015E-07   -.13445E-02
  21  Prefactor     12.058        1.3281        .17952E-06    .37898E-02
  22  Prefactor     .27428E-06    7.1391        .19251E-05** at limit **
  23  Prefactor     .50127E-07    11.186        .29090E-05** at limit **
  24  Prefactor      .0000        3.4428       -.43383E-06** at limit **
  25  Normalizat    .94702        .17142        .32302E-05   -.26144E-03
  26  Prefactor     .81420        .20876        .13293E-04   -.18290E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.69603
  norm       = 0.64608
  Prefactor  = 2.62659
  norm       = 3.79345
  Prefactor  = 4.21885e-09
  Prefactor  = 0
  norm       = 5.01667
  Prefactor  = 2.48144
  Prefactor  = 86.1295
  norm       = 0
  Prefactor  = 2.20807e-06
  Prefactor  = 0
  norm       = 0
  norm       = 0
  Prefactor  = 4.01901e-08
  Prefactor  = 4.7462e-08
  Prefactor  = 1.22125e-08
  Prefactor  = 0
  Prefactor  = 7.93809e-09
  Prefactor  = 0.889987
  Prefactor  = 12.058
  Prefactor  = 2.74281e-07
  Prefactor  = 5.01266e-08
  Prefactor  = 0
  Normalizat = 0.947021
  Prefactor  = 0.814203
 **********
 **   18 **HESSE 
 **********

 FCN=   5854.857     FROM HESSE     STATUS=OK           500 CALLS     2826 TOTAL
                     EDM=   .87E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.6960        2.4731        .80753E-03   -1.5682    
   2  norm          .64608        1.1147        .65196E-03   -1.5692    
   3  Prefactor     2.6266        26.303        .62282E-03   -1.5676    
   4  norm          3.7934        2.3829        .51812E-03   -1.5669    
   5  Prefactor     .42188E-08    20.618        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        2.3952        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          5.0167        4.3559        .44809E-03   -1.5663    
   8  Prefactor     2.4814        454.70        .79778E-03   -1.5676    
   9  Prefactor     86.129        66.049        .10734E-03   -1.5522    
  10  norm           .0000        1.5544        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .22081E-05    69.878        .93104E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor      .0000        1.5636        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm           .0000        .34966        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm           .0000        3.0864        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .40190E-07    15.291        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .47462E-07    20.770        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .12212E-07    106.29        .82256E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor      .0000        1.3056        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .79381E-08    15.461        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .88999        2.6150        .46646E-03   -1.5689    
  21  Prefactor     12.058        17.735        .28843E-03   -1.5639    
  22  Prefactor     .27428E-06    18.764        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .50127E-07    17.594        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor      .0000        3.4415        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .94702        .14576        .45493E-01   -.94827    
  26  Prefactor     .81420        .17550        .43902E-01   -.99207    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.67913e-07
Minuit parameter uncertainties:
  1  2.47313
  2  1.11466
  3  16.6237
  4  2.38285
  5  0.000590536
  6  4.87122e-06
  7  4.35587
  8  67.1861
  9  66.0499
  10  6.128e-06
  11  0.0248434
  12  1.77028e-07
  13  1.17767e-06
  14  7.01327e-06
  15  0.00156734
  16  0.0019862
  17  0.00228034
  18  1.09097e-06
  19  0.000701548
  20  2.61502
  21  17.7346
  22  0.00453712
  23  0.00187836
  24  7.86039e-06
  25  0.145826
  26  0.175623
Done.

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

Extracting fit parameters...

4FGL J1337.4+5502
   Spectrum: PowerLaw
314    Prefactor:  2.208e-06  2.484e-02  0.000e+00  1.000e+06 ( 1.000e-13)
315        Index:  2.758e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
316        Scale:  5.686e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
661    Prefactor:  8.142e-01  1.756e-01  0.000e+00  1.000e+01 ( 1.000e+00)
662        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
663        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
660   Normalization:  9.470e-01  1.458e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 204.367 55.042
Photon Flux Upper Limit: 7.15e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.65e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/850708/likelihoodResults_697075201_697334401_4FGL_J1337.4+5502_daily_bin1766.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) = 5854.86358292
delta logL = -0.00695048495618

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5854.85663245
delta logL = -1.79425114766e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .82606E-06   1.0000          .0000       .10000E+07
     2 'Index     '    4.2424       1.0000          .0000       10.000    
     3 'Normalizat'    .94701       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81423       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6640E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5854.857     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      252 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .59397E-08    84.545        .42118E-03** at limit **
   2  Index         1.5940        8.4464        .50000       -.90949E-09
   3  Normalizat    .94702        .69361E-02    .45500E-01    .29370E-03
   4  Prefactor     .81420        .85514E-02    .43902E-01   -.42118E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.93969e-09
  Index      = 1.59401
  Normalizat = 0.947025
  Prefactor  = 0.814199
 **********
 **   18 **HESSE 
 **********

 FCN=   5854.857     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      283 TOTAL
                     EDM=   .89E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .59397E-08    408.30        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.5940        5.5780        .50000       -.74940    
   3  Normalizat    .94702        .15476E-01    .20029E-03   -.94827    
   4  Prefactor     .81420        .19079E-01    .26298E-03   -.99207    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.93224e-09
Minuit parameter uncertainties:
  1  0.00311555
  2  89588
  3  0.0154758
  4  0.0190789
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/850708': 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) = 5854.85663242
delta logL = 1.53868313646e-08

Extracting fit parameters...

4FGL J1337.4+5502
   Spectrum: PowerLaw
314    Prefactor:  5.940e-09  3.116e-03  0.000e+00  1.000e+06 ( 1.000e-13)
315        Index:  1.594e+00  8.959e+04  0.000e+00  1.000e+01 (-1.000e+00)
316        Scale:  5.686e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
661    Prefactor:  8.142e-01  1.908e-02  0.000e+00  1.000e+01 ( 1.000e+00)
662        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
663        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
660   Normalization:  9.470e-01  1.548e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 204.367 55.042

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/850708/cmap_HighResolution_697075201_697334401_4FGL_J1337.4+5502_daily_bin1766.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.65e-03', job_status='DONE', photon_flux_upper_limit='7.15e-08', time_completed='2023-02-06 01:08:28.362127', job_id='850708', GAL2='0.81', fit_tolerance='1e-08', EG2='0.95', EG='0.95', time_epoch_completed='1675674508.36', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='1.54e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.76' WHERE bin_id='1766' AND source_name='4FGL J1337.4+5502' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Feb  6 01:08:28 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0124>
Subject: Job 850708: <4FGL_J1337.4+5502_daily_bin1766> in cluster <slac> Done

Job <4FGL_J1337.4+5502_daily_bin1766> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Feb  6 00:55:19 2023
Job was executed on host(s) <bullet0124>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Feb  6 00:55:38 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Feb  6 00:55:38 2023
Terminated at Mon Feb  6 01:08:28 2023
Results reported at Mon Feb  6 01:08:28 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1337.4+5502_daily_bin1766 204.367 55.0418 697075201 697334401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1337.4+5502 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   700.04 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             295.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   770 sec.
    Turnaround time :                            789 sec.

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

