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


Performing analysis on: 4FGL_J1337.4+5502_daily_bin1747
RA = 204.367, Dec = 55.0418
tmin = 692150401, tmax = 692409601
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='802255', job_status='RUN', time_executed='2022-12-11 00:57:09.584685', time_epoch_executed='1670749029.58' WHERE source_name='4FGL J1337.4+5502' and cadence='daily' and bin_id='1747'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/802255

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/802255/ft1_4FGL_J1337.4+5502_daily_bin1747.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/802255/ft2_4FGL_J1337.4+5502_daily_bin1747.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/802255/ft1_4FGL_J1337.4+5502_daily_bin1747.fits outfile=/scratch/kocevski/802255/ft1_filteredMKT_4FGL_J1337.4+5502_daily_bin1747.fits ra=204.367 dec=55.0418 rad=12.0 tmin=692150401.0 tmax=692409601.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.99
user 3.73
sys 0.24

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

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

Number of photons that the gtmktime cut: 660

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/802255/ft1_filtered_4FGL_J1337.4+5502_daily_bin1747.fits" evtable="EVENTS" scfile=/scratch/kocevski/802255/ft2_4FGL_J1337.4+5502_daily_bin1747.fits sctable="SC_DATA" outfile=/scratch/kocevski/802255/ltcube_692150401_692409601_4FGL_J1337.4+5502_daily_bin1747.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/802255/ft2_4FGL_J1337.4+5502_daily_bin1747.fits
.....................!
real 11.98
user 11.63
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/802255/ft1_filtered_4FGL_J1337.4+5502_daily_bin1747.fits evtable="EVENTS" scfile=/scratch/kocevski/802255/ft2_4FGL_J1337.4+5502_daily_bin1747.fits sctable="SC_DATA" expcube=/scratch/kocevski/802255/ltcube_692150401_692409601_4FGL_J1337.4+5502_daily_bin1747.fits outfile=/scratch/kocevski/802255/expmap_692150401_692409601_4FGL_J1337.4+5502_daily_bin1747.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/802255/ltcube_692150401_692409601_4FGL_J1337.4+5502_daily_bin1747.fits
.....................!
real 190.70
user 185.15
sys 5.23

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/802255/ft1_filtered_4FGL_J1337.4+5502_daily_bin1747.fits scfile=/scratch/kocevski/802255/ft2_4FGL_J1337.4+5502_daily_bin1747.fits outfile=/scratch/kocevski/802255/cmap_692150401_692409601_4FGL_J1337.4+5502_daily_bin1747.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/802255/ft1_filtered_4FGL_J1337.4+5502_daily_bin1747.fits scfile=/scratch/kocevski/802255/ft2_4FGL_J1337.4+5502_daily_bin1747.fits outfile=/scratch/kocevski/802255/cmap_HighResolution_692150401_692409601_4FGL_J1337.4+5502_daily_bin1747.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.54
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .35710E-05   1.0000          .0000       .10000E+07
     2 'norm      '    3.7276       1.0000          .0000       .10000E+07
     3 'Prefactor '    3.2639       1.0000          .0000       .10000E+07
     4 'norm      '    1.1530       1.0000          .0000       .10000E+07
     5 'Prefactor '    .59162E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    2.9821       1.0000          .0000       .10000E+07
     7 'norm      '    6.9548       1.0000          .0000       .10000E+07
     8 'Prefactor '    32.141       1.0000          .0000       .10000E+07
     9 'Prefactor '    49.515       1.0000          .0000       .10000E+07
    10 'norm      '    .18199E-05   1.0000          .0000       .10000E+07
    11 'Prefactor '    18.101       1.0000          .0000       .10000E+07
    12 'Prefactor '    1.0617       1.0000          .0000       .10000E+07
    13 'norm      '    .15888E-05   1.0000          .0000       .10000E+07
    14 'norm      '    2.4915       1.0000          .0000       .10000E+07
    15 'Prefactor '    36.562       1.0000          .0000       .10000E+07
    16 'Prefactor '    .12466E-02   1.0000          .0000       .10000E+07
    17 'Prefactor '    35.324       1.0000          .0000       .10000E+07
    18 'Prefactor '    .44467       1.0000          .0000       .10000E+07
    19 'Prefactor '    .82430E-02   1.0000          .0000       .10000E+07
    20 'Prefactor '    .74409E-05   1.0000          .0000       .10000E+07
    21 'Prefactor '    25.508       1.0000          .0000       .10000E+07
    22 'Prefactor '    53.139       1.0000          .0000       .10000E+07
    23 'Prefactor '    19.039       1.0000          .0000       .10000E+07
    24 'Prefactor '    .28866E-01   1.0000          .0000       .10000E+07
    25 'Normalizat'    .86198       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.2064       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=   7199.946     FROM MIGRAD    STATUS=CONVERGED    172 CALLS     2270 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .16653E-09    1.8054       -.90448E-06** at limit **
   2  norm          3.7269        1.8314        .19519E-06   -.40480E-02
   3  Prefactor     3.1423        13.517       -.21989E-05    .21548E-02
   4  norm          1.1523        1.5617        .59490E-06   -.68303E-02
   5  Prefactor     .13878E-08    13.206       -.15949E-06** at limit **
   6  Prefactor     2.9145        6.4141       -.31861E-06    .38588E-03
   7  norm          7.0146        4.4078        .57363E-07   -.44217E-03
   8  Prefactor     29.477        40.608       -.26885E-05    .38436E-01
   9  Prefactor     50.967        33.987        .15141E-05   -.10973E-01
  10  norm          .16653E-09    1.8295        .78856E-06** at limit **
  11  Prefactor     18.423        3.5580        .26796E-06    .25227E-01
  12  Prefactor     1.1006        3.8719       -.33102E-06    .83238E-03
  13  norm           .0000        .63401       -.12787E-06** at limit **
  14  norm          2.4885        3.2362        .25268E-06   -.13127E-02
  15  Prefactor     36.035        4.2789       -.42828E-07   -.38654E-01
  16  Prefactor     .72709E-06    32.795       -.13133E-05** at limit **
  17  Prefactor     35.394        4.3496        .72862E-07    .80648E-01
  18  Prefactor     .44445        9.4286       -.63336E-06   -.13383E-02
  19  Prefactor     .32699E-05    40.533       -.23341E-05** at limit **
  20  Prefactor     .22204E-09    3.0910       -.99599E-06** at limit **
  21  Prefactor     24.797        21.018        .55952E-06    .17546E-01
  22  Prefactor     53.985        12.146        .51547E-06    .23465    
  23  Prefactor     18.717        4.9863       -.11411E-07   -.64806E-02
  24  Prefactor     .55511E-10    39.973       -.27586E-06** at limit **
  25  Normalizat    .86340        .17680       -.59813E-05   -.24689E-04
  26  Prefactor     1.2059        .21794        .75542E-05   -.87412E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.66533e-10
  norm       = 3.72686
  Prefactor  = 3.14228
  norm       = 1.15227
  Prefactor  = 1.38778e-09
  Prefactor  = 2.91455
  norm       = 7.01459
  Prefactor  = 29.4767
  Prefactor  = 50.9667
  norm       = 1.66533e-10
  Prefactor  = 18.4225
  Prefactor  = 1.10062
  norm       = 0
  norm       = 2.48853
  Prefactor  = 36.0354
  Prefactor  = 7.27085e-07
  Prefactor  = 35.3935
  Prefactor  = 0.44445
  Prefactor  = 3.26988e-06
  Prefactor  = 2.22045e-10
  Prefactor  = 24.7967
  Prefactor  = 53.9855
  Prefactor  = 18.7174
  Prefactor  = 5.55112e-11
  Normalizat = 0.863399
  Prefactor  = 1.20585
 **********
 **   18 **HESSE 
 **********

 FCN=   7199.946     FROM HESSE     STATUS=OK           524 CALLS     2794 TOTAL
                     EDM=   .48E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .16653E-09    1.7964        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.7269        1.8275        .52276E-03   -1.5669    
   3  Prefactor     3.1423        13.613        .56029E-03   -1.5673    
   4  norm          1.1523        1.5992        .10762E-02   -1.5686    
   5  Prefactor     .13878E-08    13.267        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.9145        6.4428        .58765E-03   -1.5674    
   7  norm          7.0146        4.4778        .38018E-03   -1.5655    
   8  Prefactor     29.477        46.224        .17641E-03   -1.5599    
   9  Prefactor     50.967        42.396        .14212E-03   -1.5565    
  10  norm          .16653E-09    1.8214        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     18.423        45.965        .23514E-03   -1.5622    
  12  Prefactor     1.1006        3.9027        .11874E-02   -1.5687    
  13  norm           .0000        .62567        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.4885        3.2565        .64728E-03   -1.5676    
  15  Prefactor     36.035        26.453        .16540E-03   -1.5588    
  16  Prefactor     .72709E-06    34.197        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     35.394        42.942        .16827E-03   -1.5589    
  18  Prefactor     .44445        10.232        .84484E-03   -1.5695    
  19  Prefactor     .32699E-05    43.632        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .22204E-09    3.0120        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     24.797        21.620        .19804E-03   -1.5608    
  22  Prefactor     53.985        44.574        .13719E-03   -1.5561    
  23  Prefactor     18.717        31.879        .22926E-03   -1.5621    
  24  Prefactor     .55511E-10    7.1948        .11886E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .86340        .15576        .44414E-01   -.97758    
  26  Prefactor     1.2059        .18426        .58857E-01   -.86151    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.79894e-06
Minuit parameter uncertainties:
  1  3.20124e-05
  2  1.82751
  3  13.0805
  4  1.59924
  5  0.000269401
  6  6.44286
  7  4.47781
  8  46.2251
  9  42.3959
  10  3.6313e-05
  11  45.966
  12  3.90275
  13  4.18645e-08
  14  3.25649
  15  26.4527
  16  0.009973
  17  42.9421
  18  4.26512
  19  0.0238893
  20  5.43527e-05
  21  21.6198
  22  44.5745
  23  31.8793
  24  3.45155e-05
  25  0.155842
  26  0.18436
Done.

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

Extracting fit parameters...

4FGL J1337.4+5502
   Spectrum: PowerLaw
314    Prefactor:  1.842e+01  4.597e+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.206e+00  1.844e-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.634e-01  1.558e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/802255/likelihoodResults_692150401_692409601_4FGL_J1337.4+5502_daily_bin1747.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) = 7199.9361297
delta logL = 0.0100146176101

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7199.9339076
delta logL = 0.0122367216209

Fit tolerance = 1e-08

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

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

 FCN=   7199.934     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      292 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.453        49.945        .10176E-04   -.40708E-02
   2  Index         3.0588        2.1507        .90660E-02   -.31947E-03
   3  Normalizat    .85932        .17627        .24180E-03    .21693E-03
   4  Prefactor     1.2094        .21737        .25996E-03    .64480E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.4531
  Index      = 3.05877
  Normalizat = 0.859319
  Prefactor  = 1.2094
 **********
 **   18 **HESSE 
 **********

 FCN=   7199.934     FROM HESSE     STATUS=OK            23 CALLS      315 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.453        46.035        .20352E-05   -1.5629    
   2  Index         3.0588        1.9920        .36264E-03   -.39873    
   3  Normalizat    .85932        .17645        .96722E-05   -.97905    
   4  Prefactor     1.2094        .21746        .51992E-04   -.86042    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.46789e-08
Minuit parameter uncertainties:
  1  46.0365
  2  2.05996
  3  0.176572
  4  0.217624
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/802255': 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) = 7199.93390496
delta logL = 0.0122393598767

Extracting fit parameters...

4FGL J1337.4+5502
   Spectrum: PowerLaw
314    Prefactor:  1.545e+01  4.604e+01  0.000e+00  1.000e+06 ( 1.000e-13)
315        Index:  3.059e+00  2.060e+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.209e+00  2.176e-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.593e-01  1.766e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.20
Ra Dec: 204.367 55.042

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/802255/cmap_HighResolution_692150401_692409601_4FGL_J1337.4+5502_daily_bin1747.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.70e-03', job_status='DONE', photon_flux_upper_limit='8.48e-08', time_completed='2022-12-11 01:09:47.713268', job_id='802255', GAL2='1.21', fit_tolerance='1e-08', EG2='0.86', EG='0.86', time_epoch_completed='1670749787.71', return_code2='0', ts='0.20', comment='SUCCESS', return_code='0', GAL='1.21', dlogl='1.22e-02', ts2='0.23', photon_index_error='0.00', photon_index='2.76' WHERE bin_id='1747' AND source_name='4FGL J1337.4+5502' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Dec 11 01:09:47 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0101>
Subject: Job 802255: <4FGL_J1337.4+5502_daily_bin1747> in cluster <slac> Done

Job <4FGL_J1337.4+5502_daily_bin1747> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Sun Dec 11 00:55:23 2022
Job was executed on host(s) <bullet0101>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Dec 11 00:55:23 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Dec 11 00:55:23 2022
Terminated at Sun Dec 11 01:09:48 2022
Results reported at Sun Dec 11 01:09:48 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1337.4+5502_daily_bin1747 204.367 55.0418 692150401 692409601 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 :                                   760.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             269.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   865 sec.
    Turnaround time :                            865 sec.

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

