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


Performing analysis on: 4FGL_J1337.4+5502_daily_bin1771
RA = 204.367, Dec = 55.0418
tmin = 698371201, tmax = 698630401
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='548874', job_status='RUN', time_executed='2023-02-21 00:58:43.653742', time_epoch_executed='1676969923.65' WHERE source_name='4FGL J1337.4+5502' and cadence='daily' and bin_id='1771'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/548874

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/548874/ft1_4FGL_J1337.4+5502_daily_bin1771.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/548874/ft2_4FGL_J1337.4+5502_daily_bin1771.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/548874/ft1_4FGL_J1337.4+5502_daily_bin1771.fits outfile=/scratch/kocevski/548874/ft1_filteredMKT_4FGL_J1337.4+5502_daily_bin1771.fits ra=204.367 dec=55.0418 rad=12.0 tmin=698371201.0 tmax=698630401.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.07
user 2.85
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/548874/ft2_4FGL_J1337.4+5502_daily_bin1771.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/548874/ft1_filteredMKT_4FGL_J1337.4+5502_daily_bin1771.fits evtable="EVENTS" outfile="/scratch/kocevski/548874/ft1_filtered_4FGL_J1337.4+5502_daily_bin1771.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.55
user 0.32
sys 0.16

Number of photons that the gtmktime cut: 420

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/548874/ft1_filtered_4FGL_J1337.4+5502_daily_bin1771.fits" evtable="EVENTS" scfile=/scratch/kocevski/548874/ft2_4FGL_J1337.4+5502_daily_bin1771.fits sctable="SC_DATA" outfile=/scratch/kocevski/548874/ltcube_698371201_698630401_4FGL_J1337.4+5502_daily_bin1771.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/548874/ft2_4FGL_J1337.4+5502_daily_bin1771.fits
.....................!
real 12.44
user 12.11
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/548874/ft1_filtered_4FGL_J1337.4+5502_daily_bin1771.fits evtable="EVENTS" scfile=/scratch/kocevski/548874/ft2_4FGL_J1337.4+5502_daily_bin1771.fits sctable="SC_DATA" expcube=/scratch/kocevski/548874/ltcube_698371201_698630401_4FGL_J1337.4+5502_daily_bin1771.fits outfile=/scratch/kocevski/548874/expmap_698371201_698630401_4FGL_J1337.4+5502_daily_bin1771.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/548874/ltcube_698371201_698630401_4FGL_J1337.4+5502_daily_bin1771.fits
.....................!
real 191.03
user 185.85
sys 4.86

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/548874/ft1_filtered_4FGL_J1337.4+5502_daily_bin1771.fits scfile=/scratch/kocevski/548874/ft2_4FGL_J1337.4+5502_daily_bin1771.fits outfile=/scratch/kocevski/548874/cmap_698371201_698630401_4FGL_J1337.4+5502_daily_bin1771.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/548874/ft1_filtered_4FGL_J1337.4+5502_daily_bin1771.fits scfile=/scratch/kocevski/548874/ft2_4FGL_J1337.4+5502_daily_bin1771.fits outfile=/scratch/kocevski/548874/cmap_HighResolution_698371201_698630401_4FGL_J1337.4+5502_daily_bin1771.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.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    27.888       1.0000          .0000       .10000E+07
     2 'norm      '    5.8516       1.0000          .0000       .10000E+07
     3 'Prefactor '    .32015E-02   1.0000          .0000       .10000E+07
     4 'norm      '    5.1215       1.0000          .0000       .10000E+07
     5 'Prefactor '    .22945E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    .62541E-05   1.0000          .0000       .10000E+07
     7 'norm      '    .31447E-06   1.0000          .0000       .10000E+07
     8 'Prefactor '    28.214       1.0000          .0000       .10000E+07
     9 'Prefactor '    .21141E-01   1.0000          .0000       .10000E+07
    10 'norm      '    .13672E-06   1.0000          .0000       .10000E+07
    11 'Prefactor '    13.281       1.0000          .0000       .10000E+07
    12 'Prefactor '    .84651E-05   1.0000          .0000       .10000E+07
    13 'norm      '    1.2847       1.0000          .0000       .10000E+07
    14 'norm      '    2.8350       1.0000          .0000       .10000E+07
    15 'Prefactor '    7.2413       1.0000          .0000       .10000E+07
    16 'Prefactor '    .33067E-02   1.0000          .0000       .10000E+07
    17 'Prefactor '    .27972E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    5.3322       1.0000          .0000       .10000E+07
    19 'Prefactor '    .14397E-03   1.0000          .0000       .10000E+07
    20 'Prefactor '    4.8284       1.0000          .0000       .10000E+07
    21 'Prefactor '    .15201E-03   1.0000          .0000       .10000E+07
    22 'Prefactor '    .41518E-03   1.0000          .0000       .10000E+07
    23 'Prefactor '    .17221E-03   1.0000          .0000       .10000E+07
    24 'Prefactor '    12.201       1.0000          .0000       .10000E+07
    25 'Normalizat'    .90187       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.2871       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=   4677.351     FROM MIGRAD    STATUS=CONVERGED    196 CALLS     1794 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     27.828        1.2649       -.18290E-07    .30116E-03
   2  norm          5.8546        6.8646        .16262E-06   -.19430E-03
   3  Prefactor     .18430E-07    13.193        .27170E-06** at limit **
   4  norm          5.0941        6.1411       -.31121E-06    .28376E-03
   5  Prefactor     .64454E-06    88.273       -.15648E-05** at limit **
   6  Prefactor      .0000        8.2717       -.62052E-06** at limit **
   7  norm           .0000        6.5867       -.28504E-06** at limit **
   8  Prefactor     29.191        8.5894        .46114E-07   -.53545E-01
   9  Prefactor     .38858E-09    80.048        .32044E-05** at limit **
  10  norm           .0000        1.6349        .28768E-06** at limit **
  11  Prefactor     23.036        90.262        .40479E-05   -.83721E-04
  12  Prefactor      .0000        2.3049       -.59447E-06** at limit **
  13  norm          1.2876        1.5413        .42223E-07    .38736E-04
  14  norm          2.6205        5.8744       -.51865E-06    .33033E-03
  15  Prefactor     7.2864        1.2260        .35109E-07   -.19303E-02
  16  Prefactor     .18485E-07    13.678        .34979E-06** at limit **
  17  Prefactor     .11102E-08    32.152       -.23317E-05** at limit **
  18  Prefactor     5.3287        4.4571       -.25936E-06    .41430E-03
  19  Prefactor     .26890E-06    8.2950        .61600E-06** at limit **
  20  Prefactor     4.8447        3.0731       -.89346E-07    .23605E-03
  21  Prefactor     .26606E-06    8.3209        .51296E-06** at limit **
  22  Prefactor     .23648E-07    51.217        .92350E-06** at limit **
  23  Prefactor      .0000        14.910       -.39646E-06** at limit **
  24  Prefactor     12.123        15.430       -.92504E-07   -.32460E-03
  25  Normalizat    .89592        .23569        .72386E-05   -.15129E-05
  26  Prefactor     1.2910        .27771       -.94380E-05    .71287E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 27.8279
  norm       = 5.85461
  Prefactor  = 1.84297e-08
  norm       = 5.09414
  Prefactor  = 6.4454e-07
  Prefactor  = 0
  norm       = 0
  Prefactor  = 29.1907
  Prefactor  = 3.88578e-10
  norm       = 0
  Prefactor  = 23.0357
  Prefactor  = 0
  norm       = 1.28764
  norm       = 2.62047
  Prefactor  = 7.28638
  Prefactor  = 1.84852e-08
  Prefactor  = 1.11022e-09
  Prefactor  = 5.32874
  Prefactor  = 2.68896e-07
  Prefactor  = 4.84469
  Prefactor  = 2.66065e-07
  Prefactor  = 2.36478e-08
  Prefactor  = 0
  Prefactor  = 12.1227
  Normalizat = 0.895917
  Prefactor  = 1.29105
 **********
 **   18 **HESSE 
 **********

 FCN=   4677.351     FROM HESSE     STATUS=OK           508 CALLS     2302 TOTAL
                     EDM=   .22E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     27.828        27.041        .18939E-03   -1.5602    
   2  norm          5.8546        7.1898        .41492E-03   -1.5660    
   3  Prefactor     .18430E-07    26.826        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          5.0941        6.1574        .44402E-03   -1.5663    
   5  Prefactor     .64454E-06    91.590        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        8.2432        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm           .0000        6.5674        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     29.191        42.749        .18830E-03   -1.5600    
   9  Prefactor     .38858E-09    77.764        .16963E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm           .0000        1.6336        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     23.036        90.077        .27460E-03   -1.5612    
  12  Prefactor      .0000        2.2969        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.2876        1.5740        .97798E-03   -1.5685    
  14  norm          2.6205        5.9751        .60370E-03   -1.5676    
  15  Prefactor     7.2864        21.622        .37251E-03   -1.5654    
  16  Prefactor     .18485E-07    26.789        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .11102E-08    32.191        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.3287        4.4628        .43499E-03   -1.5662    
  19  Prefactor     .26890E-06    16.649        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     4.8447        3.0749        .45758E-03   -1.5664    
  21  Prefactor     .26606E-06    16.544        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .23648E-07    51.458        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor      .0000        14.908        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     12.123        15.436        .28653E-03   -1.5638    
  25  Normalizat    .89592        .19792        .44925E-01   -.96604    
  26  Prefactor     1.2910        .23242        .58483E-01   -.83574    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.21458e-07
Minuit parameter uncertainties:
  1  27.0411
  2  7.1898
  3  0.00140699
  4  6.15742
  5  0.015367
  6  1.77574e-05
  7  1.08844e-05
  8  42.7491
  9  0.000349937
  10  2.09809e-06
  11  90.0826
  12  7.74809e-06
  13  1.57395
  14  5.97511
  15  21.6221
  16  0.00140762
  17  0.000381467
  18  4.46282
  19  0.0042319
  20  3.0749
  21  0.00419591
  22  0.00220702
  23  2.47155e-05
  24  15.4356
  25  0.198077
  26  0.232611
Done.

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

Extracting fit parameters...

4FGL J1337.4+5502
   Spectrum: PowerLaw
314    Prefactor:  2.304e+01  9.008e+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.291e+00  2.326e-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.959e-01  1.981e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.08
Ra Dec: 204.367 55.042
Photon Flux Upper Limit: 1.44e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.14e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/548874/likelihoodResults_698371201_698630401_4FGL_J1337.4+5502_daily_bin1771.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) = 4676.09969557
delta logL = 1.25122581327

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4676.08756669
delta logL = 1.26335469197

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.2020       1.0000          .0000       .10000E+07
     2 'Index     '    6.1636       1.0000          .0000       10.000    
     3 'Normalizat'    .78770       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3806       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=   4676.088     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      267 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.1949        14.655        .10345E-02    .50746E-02
   2  Index         6.1687        3.4802        .13435        .10395E-03
   3  Normalizat    .78771        .54701E-01    .43450E-01   -.26291E-04
   4  Prefactor     1.3807        .66909E-01    .56833E-01   -.56865E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.1949
  Index      = 6.16869
  Normalizat = 0.787711
  Prefactor  = 1.38065
 **********
 **   18 **HESSE 
 **********

 FCN=   4676.088     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      298 TOTAL
                     EDM=   .83E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.1949        29.638        .51122E-05   -1.5686    
   2  Index         6.1687        7.7580        .53265E-02    .23592    
   3  Normalizat    .78771        .20311        .26398E-03   -1.0053    
   4  Prefactor     1.3807        .24215        .25130E-03   -.80939    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.3484e-10
Minuit parameter uncertainties:
  1  11.9021
  2  6.2714
  3  0.203308
  4  0.24235
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/548874': 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) = 4676.0875605
delta logL = 1.26336088007

Extracting fit parameters...

4FGL J1337.4+5502
   Spectrum: PowerLaw
314    Prefactor:  1.195e+00  1.190e+01  0.000e+00  1.000e+06 ( 1.000e-13)
315        Index:  6.169e+00  6.271e+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.381e+00  2.424e-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.877e-01  2.033e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.85
Ra Dec: 204.367 55.042
Photon Index (Free Index): 6.17 +/- 6.27
Photon Flux (Free Index): 1.06e-07 +/- 7.83e-08
Energy Flux (Free Index): 1.31e-05 +/- 1.15e-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/548874/cmap_HighResolution_698371201_698630401_4FGL_J1337.4+5502_daily_bin1771.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.14e-02', comment='SUCCESS', energy_flux2='1.31e-05', dlogl='1.26e+00', photon_flux2='1.06e-07', job_status='DONE', time_completed='2023-02-21 01:08:04.981536', photon_index_error2='6.27', photon_index2='6.17', ts='0.08', fit_tolerance='1e-08', GAL='1.29', photon_index_error='0.00', photon_flux_upper_limit='1.44e-07', energy_flux_error2='1.15e-05', EG='0.90', time_epoch_completed='1676970484.98', return_code='0', job_id='548874', GAL2='1.38', EG2='0.79', return_code2='102', photon_flux_error2='7.83e-08', ts2='2.85', photon_index='2.76' WHERE bin_id='1771' AND source_name='4FGL J1337.4+5502' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Feb 21 01:08:05 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0079>
Subject: Job 548874: <4FGL_J1337.4+5502_daily_bin1771> in cluster <slac> Done

Job <4FGL_J1337.4+5502_daily_bin1771> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Feb 21 00:55:20 2023
Job was executed on host(s) <bullet0079>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Feb 21 00:55:20 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Feb 21 00:55:20 2023
Terminated at Tue Feb 21 01:08:05 2023
Results reported at Tue Feb 21 01:08:05 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1337.4+5502_daily_bin1771 204.367 55.0418 698371201 698630401 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 :                                   563.20 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             230.40 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   765 sec.
    Turnaround time :                            765 sec.

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

