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


Performing analysis on: 4FGL_J1337.4+5502_daily_bin1762
RA = 204.367, Dec = 55.0418
tmin = 696038401, tmax = 696297601
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='110563', job_status='RUN', time_executed='2023-01-25 01:01:34.498376', time_epoch_executed='1674637294.5' WHERE source_name='4FGL J1337.4+5502' and cadence='daily' and bin_id='1762'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/110563

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/110563/ft1_4FGL_J1337.4+5502_daily_bin1762.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/110563/ft2_4FGL_J1337.4+5502_daily_bin1762.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/110563/ft1_4FGL_J1337.4+5502_daily_bin1762.fits outfile=/scratch/kocevski/110563/ft1_filteredMKT_4FGL_J1337.4+5502_daily_bin1762.fits ra=204.367 dec=55.0418 rad=12.0 tmin=696038401.0 tmax=696297601.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.42
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/110563/ft2_4FGL_J1337.4+5502_daily_bin1762.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/110563/ft1_filteredMKT_4FGL_J1337.4+5502_daily_bin1762.fits evtable="EVENTS" outfile="/scratch/kocevski/110563/ft1_filtered_4FGL_J1337.4+5502_daily_bin1762.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: 547

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/110563/ft1_filtered_4FGL_J1337.4+5502_daily_bin1762.fits" evtable="EVENTS" scfile=/scratch/kocevski/110563/ft2_4FGL_J1337.4+5502_daily_bin1762.fits sctable="SC_DATA" outfile=/scratch/kocevski/110563/ltcube_696038401_696297601_4FGL_J1337.4+5502_daily_bin1762.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/110563/ft2_4FGL_J1337.4+5502_daily_bin1762.fits
.....................!
real 12.29
user 11.84
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/110563/ft1_filtered_4FGL_J1337.4+5502_daily_bin1762.fits evtable="EVENTS" scfile=/scratch/kocevski/110563/ft2_4FGL_J1337.4+5502_daily_bin1762.fits sctable="SC_DATA" expcube=/scratch/kocevski/110563/ltcube_696038401_696297601_4FGL_J1337.4+5502_daily_bin1762.fits outfile=/scratch/kocevski/110563/expmap_696038401_696297601_4FGL_J1337.4+5502_daily_bin1762.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/110563/ltcube_696038401_696297601_4FGL_J1337.4+5502_daily_bin1762.fits
.....................!
real 191.61
user 186.10
sys 4.77

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/110563/ft1_filtered_4FGL_J1337.4+5502_daily_bin1762.fits scfile=/scratch/kocevski/110563/ft2_4FGL_J1337.4+5502_daily_bin1762.fits outfile=/scratch/kocevski/110563/cmap_696038401_696297601_4FGL_J1337.4+5502_daily_bin1762.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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/110563/ft1_filtered_4FGL_J1337.4+5502_daily_bin1762.fits scfile=/scratch/kocevski/110563/ft2_4FGL_J1337.4+5502_daily_bin1762.fits outfile=/scratch/kocevski/110563/cmap_HighResolution_696038401_696297601_4FGL_J1337.4+5502_daily_bin1762.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.55
user 0.38
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/110563/ft1_filtered_4FGL_J1337.4+5502_daily_bin1762.fits', '/scratch/kocevski/110563/ft2_4FGL_J1337.4+5502_daily_bin1762.fits', expMap='/scratch/kocevski/110563/expmap_696038401_696297601_4FGL_J1337.4+5502_daily_bin1762.fits', expCube='/scratch/kocevski/110563/ltcube_696038401_696297601_4FGL_J1337.4+5502_daily_bin1762.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/110563/Model_4FGL_J1337.4+5502_daily_bin1762.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/110563/ft1_filtered_4FGL_J1337.4+5502_daily_bin1762.fits
Spacecraft file(s): /scratch/kocevski/110563/ft2_4FGL_J1337.4+5502_daily_bin1762.fits
Exposure map: /scratch/kocevski/110563/expmap_696038401_696297601_4FGL_J1337.4+5502_daily_bin1762.fits
Exposure cube: /scratch/kocevski/110563/ltcube_696038401_696297601_4FGL_J1337.4+5502_daily_bin1762.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/110563/Model_4FGL_J1337.4+5502_daily_bin1762.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) = 6068.68217374

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.8843       1.0000          .0000       .10000E+07
     2 'norm      '    .23265E-04   1.0000          .0000       .10000E+07
     3 'Prefactor '    .24726E-03   1.0000          .0000       .10000E+07
     4 'norm      '    4.4253       1.0000          .0000       .10000E+07
     5 'Prefactor '    37.410       1.0000          .0000       .10000E+07
     6 'Prefactor '    .14531E-02   1.0000          .0000       .10000E+07
     7 'norm      '    .22959       1.0000          .0000       .10000E+07
     8 'Prefactor '    50.952       1.0000          .0000       .10000E+07
     9 'Prefactor '    .13742E-03   1.0000          .0000       .10000E+07
    10 'norm      '    .66058E-08   1.0000          .0000       .10000E+07
    11 'Prefactor '    45.840       1.0000          .0000       .10000E+07
    12 'Prefactor '    .50352       1.0000          .0000       .10000E+07
    13 'norm      '    3.3211       1.0000          .0000       .10000E+07
    14 'norm      '    9.1726       1.0000          .0000       .10000E+07
    15 'Prefactor '    13.139       1.0000          .0000       .10000E+07
    16 'Prefactor '    .56911E-02   1.0000          .0000       .10000E+07
    17 'Prefactor '    34.369       1.0000          .0000       .10000E+07
    18 'Prefactor '    3.2183       1.0000          .0000       .10000E+07
    19 'Prefactor '    .29183E-05   1.0000          .0000       .10000E+07
    20 'Prefactor '    .20933E-06   1.0000          .0000       .10000E+07
    21 'Prefactor '    .18433E-03   1.0000          .0000       .10000E+07
    22 'Prefactor '    .14675E-05   1.0000          .0000       .10000E+07
    23 'Prefactor '    57.647       1.0000          .0000       .10000E+07
    24 'Prefactor '    5.6924       1.0000          .0000       .10000E+07
    25 'Normalizat'    .81543       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0525       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=   6068.608     FROM MIGRAD    STATUS=CONVERGED    181 CALLS     2296 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.9412        6.0646       -.19291E-06   -.92068E-03
   2  norm           .0000        3.3750       -.40144E-07** at limit **
   3  Prefactor     .16653E-09    6.2251       -.41588E-06** at limit **
   4  norm          4.4383        2.4459        .21504E-07    .35165E-05
   5  Prefactor     39.380        13.715       -.19825E-06    .97979E-01
   6  Prefactor     .14795E-01    11.024        .56008E-06** at limit **
   7  norm          .22443        7.6722        .80930E-06** at limit **
   8  Prefactor     51.627        5.1962       -.51088E-07   -.47159E-01
   9  Prefactor     .34637E-05    26.311        .31331E-06** at limit **
  10  norm           .0000        1.2804       -.58713E-07** at limit **
  11  Prefactor     48.996        41.235       -.23907E-06   -.18037    
  12  Prefactor     .51936        7.2954        .46470E-06    .42883E-03
  13  norm          3.3305        1.7121       -.19655E-07    .45164E-03
  14  norm          9.1345        4.5539        .50443E-07    .12238E-02
  15  Prefactor     13.549        3.4785       -.52699E-07    .85588E-02
  16  Prefactor     .55511E-10    14.331       -.11312E-07** at limit **
  17  Prefactor     36.646        19.285       -.25855E-06    .15836    
  18  Prefactor     3.1859        3.6206        .40731E-07   -.84367E-03
  19  Prefactor     .58448E-06    19.953        .16389E-06** at limit **
  20  Prefactor      .0000        1.0537        .49981E-08** at limit **
  21  Prefactor     .11212E-04    56.905        .10552E-05** at limit **
  22  Prefactor     .23073E-05    22.070        .46872E-06** at limit **
  23  Prefactor     60.612        31.077       -.24300E-06    .15087    
  24  Prefactor     5.6994        10.679        .34275E-07   -.67185E-03
  25  Normalizat    .80978        .19023        .47483E-05    .62764E-05
  26  Prefactor     1.0535        .22411       -.37019E-05    .72752E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.94122
  norm       = 0
  Prefactor  = 1.66533e-10
  norm       = 4.43829
  Prefactor  = 39.3799
  Prefactor  = 0.0147945
  norm       = 0.224433
  Prefactor  = 51.6273
  Prefactor  = 3.46367e-06
  norm       = 0
  Prefactor  = 48.9956
  Prefactor  = 0.519359
  norm       = 3.33048
  norm       = 9.13446
  Prefactor  = 13.5487
  Prefactor  = 5.55112e-11
  Prefactor  = 36.6458
  Prefactor  = 3.18586
  Prefactor  = 5.84477e-07
  Prefactor  = 0
  Prefactor  = 1.12117e-05
  Prefactor  = 2.30727e-06
  Prefactor  = 60.6116
  Prefactor  = 5.69941
  Normalizat = 0.809782
  Prefactor  = 1.05349
 **********
 **   18 **HESSE 
 **********

 FCN=   6068.608     FROM HESSE     STATUS=OK           524 CALLS     2820 TOTAL
                     EDM=   .54E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.9412        6.1744        .41375E-03   -1.5659    
   2  norm           .0000        3.2948        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .16653E-09    6.2587        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          4.4383        2.4527        .47847E-03   -1.5666    
   5  Prefactor     39.380        42.405        .16351E-03   -1.5582    
   6  Prefactor     .14795E-01    8.6733        .62649E-02   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .22443        1.9814        .56120E-02   -1.5698    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     51.627        35.126        .14010E-03   -1.5564    
   9  Prefactor     .34637E-05    26.765        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm           .0000        1.2783        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     48.996        56.620        .14771E-03   -1.5568    
  12  Prefactor     .51936        7.3327        .78356E-03   -1.5694    
  13  norm          3.3305        1.7173        .55521E-03   -1.5671    
  14  norm          9.1345        4.5965        .33068E-03   -1.5648    
  15  Prefactor     13.549        37.082        .27608E-03   -1.5634    
  16  Prefactor     .55511E-10    14.362        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     36.646        45.864        .17060E-03   -1.5587    
  18  Prefactor     3.1859        3.7194        .56446E-03   -1.5672    
  19  Prefactor     .58448E-06    19.967        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor      .0000        1.0492        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .11212E-04    62.077        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .23073E-05    22.554        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     60.612        49.981        .13172E-03   -1.5552    
  24  Prefactor     5.6994        10.693        .42077E-03   -1.5660    
  25  Normalizat    .80978        .16447        .43811E-01   -.99707    
  26  Prefactor     1.0535        .19015        .58943E-01   -.90967    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.41673e-06
Minuit parameter uncertainties:
  1  6.17437
  2  1.15702e-06
  3  6.11817e-05
  4  2.45273
  5  42.4058
  6  0.716428
  7  1.33369
  8  35.1257
  9  0.0192567
  10  9.85817e-07
  11  56.6205
  12  3.90297
  13  1.71726
  14  4.59647
  15  37.0821
  16  4.12906e-05
  17  45.8649
  18  3.71943
  19  0.00683255
  20  1.73277e-06
  21  0.0527638
  22  0.0144274
  23  49.9811
  24  10.6935
  25  0.164574
  26  0.190271
Done.

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

Extracting fit parameters...

4FGL J1337.4+5502
   Spectrum: PowerLaw
314    Prefactor:  4.900e+01  5.662e+01  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:  1.053e+00  1.903e-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:  8.098e-01  1.646e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.95
Ra Dec: 204.367 55.042
Photon Flux Upper Limit: 1.13e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.91e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/110563/likelihoodResults_696038401_696297601_4FGL_J1337.4+5502_daily_bin1762.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) = 6068.12805387
delta logL = 0.479773974265

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6068.09130163
delta logL = 0.516526217806

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.4719       1.0000          .0000       .10000E+07
     2 'Index     '    4.4027       1.0000          .0000       10.000    
     3 'Normalizat'    .77116       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0903       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   6068.091     FROM MIGRAD    STATUS=FAILED        80 CALLS      330 TOTAL
                     EDM=   .30E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.4741        297.08        .13015E-04    .20904E-01
   2  Index         4.4027        7.1879        .63343E-02    .56799E-03
   3  Normalizat    .77115        .16715        .24248E-03    .75824E-03
   4  Prefactor     1.0903        .20681        .25679E-03    .53665E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6068.091     FROM SIMPLEX   STATUS=UNCHANGED     84 CALLS      414 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.4741        297.08        .32058E-04    .20904E-01
   2  Index         4.4027        7.1879        .15349E-02    .56799E-03
   3  Normalizat    .77115        .16715        .23169E-03    .75824E-03
   4  Prefactor     1.0903        .20681        .20591E-03    .53665E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6068.091     FROM MIGRAD    STATUS=CONVERGED     27 CALLS      441 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.4756        33.827        .52061E-06    .20932E-01
   2  Index         4.4026        2.3598        .25337E-03    .45156E-03
   3  Normalizat    .77115        .18772        .48496E-04    .70149E-03
   4  Prefactor     1.0903        .22834        .51358E-04    .50174E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.47559
  Index      = 4.40258
  Normalizat = 0.771152
  Prefactor  = 1.09026
 **********
 **   18 **HESSE 
 **********

 FCN=   6068.091     FROM HESSE     STATUS=OK            23 CALLS      464 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.4756        32.697        .37304E-06   -1.5646    
   2  Index         4.4026        2.2870        .50674E-04   -.11977    
   3  Normalizat    .77115        .18773        .96993E-05   -1.0115    
   4  Prefactor     1.0903        .22833        .10272E-04   -.89778    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.58014e-09
Minuit parameter uncertainties:
  1  32.6974
  2  2.3768
  3  0.187889
  4  0.228531
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/110563': 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) = 6068.09130154
delta logL = 0.516526298616

Extracting fit parameters...

4FGL J1337.4+5502
   Spectrum: PowerLaw
314    Prefactor:  9.476e+00  3.270e+01  0.000e+00  1.000e+06 ( 1.000e-13)
315        Index:  4.403e+00  2.377e+00  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:  1.090e+00  2.285e-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:  7.712e-01  1.879e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.09
Ra Dec: 204.367 55.042
Photon Index (Free Index): 4.40 +/- 2.38
Photon Flux (Free Index): 5.89e-08 +/- 4.82e-08
Energy Flux (Free Index): 8.32e-06 +/- 7.01e-06

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/110563/cmap_HighResolution_696038401_696297601_4FGL_J1337.4+5502_daily_bin1762.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.91e-03', comment='SUCCESS', energy_flux2='8.32e-06', dlogl='5.17e-01', photon_flux2='5.89e-08', job_status='DONE', time_completed='2023-01-25 01:13:16.224502', photon_index_error2='2.38', photon_index2='4.40', ts='0.95', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', photon_flux_upper_limit='1.13e-07', energy_flux_error2='7.01e-06', EG='0.81', time_epoch_completed='1674637996.22', return_code='0', job_id='110563', GAL2='1.09', EG2='0.77', return_code2='0', photon_flux_error2='4.82e-08', ts2='2.09', photon_index='2.76' WHERE bin_id='1762' AND source_name='4FGL J1337.4+5502' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Jan 25 01:13:16 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0055>
Subject: Job 110563: <4FGL_J1337.4+5502_daily_bin1762> in cluster <slac> Done

Job <4FGL_J1337.4+5502_daily_bin1762> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Wed Jan 25 01:00:27 2023
Job was executed on host(s) <bullet0055>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Jan 25 01:01:15 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Jan 25 01:01:15 2023
Terminated at Wed Jan 25 01:13:17 2023
Results reported at Wed Jan 25 01:13:17 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1337.4+5502_daily_bin1762 204.367 55.0418 696038401 696297601 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 :                                   703.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             325.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   721 sec.
    Turnaround time :                            770 sec.

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

