/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 130 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 make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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


Performing analysis on: 4FGL_J1337.4+5502_daily_bin1157
RA = 204.367, Dec = 55.0418
tmin = 539222401, tmax = 539481601
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='793377', job_status='RUN', time_executed='2021-09-08 04:23:25.483315', time_epoch_executed='1631100205.48' WHERE source_name='4FGL J1337.4+5502' and cadence='daily' and bin_id='1157'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/793377

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/793377/ft1_4FGL_J1337.4+5502_daily_bin1157.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/793377/ft2_4FGL_J1337.4+5502_daily_bin1157.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/793377/ft1_4FGL_J1337.4+5502_daily_bin1157.fits outfile=/scratch/kocevski/793377/ft1_filteredMKT_4FGL_J1337.4+5502_daily_bin1157.fits ra=204.367 dec=55.0418 rad=12.0 tmin=539222401.0 tmax=539481601.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 5.70
user 5.30
sys 0.32

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/793377/ft1_filtered_4FGL_J1337.4+5502_daily_bin1157.fits" evtable="EVENTS" scfile=/scratch/kocevski/793377/ft2_4FGL_J1337.4+5502_daily_bin1157.fits sctable="SC_DATA" outfile=/scratch/kocevski/793377/ltcube_539222401_539481601_4FGL_J1337.4+5502_daily_bin1157.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/793377/ft2_4FGL_J1337.4+5502_daily_bin1157.fits
.....................!
real 15.23
user 14.82
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/793377/ft1_filtered_4FGL_J1337.4+5502_daily_bin1157.fits evtable="EVENTS" scfile=/scratch/kocevski/793377/ft2_4FGL_J1337.4+5502_daily_bin1157.fits sctable="SC_DATA" expcube=/scratch/kocevski/793377/ltcube_539222401_539481601_4FGL_J1337.4+5502_daily_bin1157.fits outfile=/scratch/kocevski/793377/expmap_539222401_539481601_4FGL_J1337.4+5502_daily_bin1157.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/793377/ltcube_539222401_539481601_4FGL_J1337.4+5502_daily_bin1157.fits
.....................!
real 193.48
user 187.47
sys 5.38

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/793377/ft1_filtered_4FGL_J1337.4+5502_daily_bin1157.fits scfile=/scratch/kocevski/793377/ft2_4FGL_J1337.4+5502_daily_bin1157.fits outfile=/scratch/kocevski/793377/cmap_539222401_539481601_4FGL_J1337.4+5502_daily_bin1157.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.57
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/793377/ft1_filtered_4FGL_J1337.4+5502_daily_bin1157.fits scfile=/scratch/kocevski/793377/ft2_4FGL_J1337.4+5502_daily_bin1157.fits outfile=/scratch/kocevski/793377/cmap_HighResolution_539222401_539481601_4FGL_J1337.4+5502_daily_bin1157.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.60
user 0.40
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/793377/ft1_filtered_4FGL_J1337.4+5502_daily_bin1157.fits', '/scratch/kocevski/793377/ft2_4FGL_J1337.4+5502_daily_bin1157.fits', expMap='/scratch/kocevski/793377/expmap_539222401_539481601_4FGL_J1337.4+5502_daily_bin1157.fits', expCube='/scratch/kocevski/793377/ltcube_539222401_539481601_4FGL_J1337.4+5502_daily_bin1157.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/793377/Model_4FGL_J1337.4+5502_daily_bin1157.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  1.000e-04  1.000e+04 ( 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/793377/ft1_filtered_4FGL_J1337.4+5502_daily_bin1157.fits
Spacecraft file(s): /scratch/kocevski/793377/ft2_4FGL_J1337.4+5502_daily_bin1157.fits
Exposure map: /scratch/kocevski/793377/expmap_539222401_539481601_4FGL_J1337.4+5502_daily_bin1157.fits
Exposure cube: /scratch/kocevski/793377/ltcube_539222401_539481601_4FGL_J1337.4+5502_daily_bin1157.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/793377/Model_4FGL_J1337.4+5502_daily_bin1157.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) = 2538.61558495

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    168.75       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.891       1.0000         .10000E-03   10000.    
     5 'norm      '    7.7762       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10259E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.039       1.0000         .10000E-03   10000.    
     8 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .16708E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    43.903       1.0000         .10000E-03   10000.    
    12 'norm      '    8.6653       1.0000         .10000E-03   10000.    
    13 'Prefactor '    135.45       1.0000         .10000E-03   10000.    
    14 'Prefactor '    26.656       1.0000         .10000E-03   10000.    
    15 'Prefactor '    25.556       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    3.2766       1.0000         .10000E-03   10000.    
    18 'norm      '    .10142E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .11254E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10098E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    44.538       1.0000         .10000E-03   10000.    
    24 'Prefactor '    9.1447       1.0000         .10000E-03   10000.    
    25 'Prefactor '    17.434       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .17640E-01   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    87.243       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10251E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .84984       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.2440       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.

 FCN=   2538.582     FROM MIGRAD    STATUS=CONVERGED    890 CALLS     4600 TOTAL
                     EDM=   .72E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     168.75        164.15       -.40040E-06    .18814E-05
   2  Prefactor     .10000E-03    6.3242       -.54697E-07** at limit **
   3  norm          .10000E-03    2.2288       -.48408E-07** at limit **
   4  Prefactor     11.885        56.761        .57518E-06    .68368E-07
   5  norm          7.7749        6.3235        .11678E-06   -.15625E-05
   6  Prefactor     .10000E-03    651.47       -.86254E-05** at limit **
   7  Prefactor     11.034        16.982        .18364E-06    .66031E-06
   8  norm          .10000E-03    4.5963        .30037E-07** at limit **
   9  Prefactor     .10000E-03    191.95        .48535E-05** at limit **
  10  Prefactor     .10000E-03    20.810       -.51478E-07** at limit **
  11  Prefactor     43.934        65.520       -.45505E-05   -.12026E-04
  12  norm          8.6649        6.7225        .53680E-07   -.29952E-05
  13  Prefactor     135.44        115.37        .48988E-06   -.81990E-05
  14  Prefactor     26.652        10.192        .71992E-07    .34580E-05
  15  Prefactor     25.607        84.089        .18999E-05    .51844E-05
  16  Prefactor     .10000E-03    18.446        .97186E-07** at limit **
  17  norm          3.2756        3.3884        .25205E-06   -.32350E-05
  18  norm          .10000E-03    59.071       -.10535E-06** at limit **
  19  norm          .10000E-03    2.6733        .94961E-07** at limit **
  20  Prefactor     .10000E-03    22.929        .84920E-08** at limit **
  21  Prefactor     .10000E-03    332.54        .58361E-06** at limit **
  22  Prefactor     .10000E-03    43.489       -.70060E-07** at limit **
  23  Prefactor     44.545        76.563        .97113E-06   -.47572E-05
  24  Prefactor     9.1431        9.0955        .74947E-08   -.39252E-04
  25  Prefactor     17.433        23.807        .65833E-07   -.39663E-05
  26  Prefactor     .10000E-03    1.9313        .10006E-06** at limit **
  27  Prefactor     .10000E-03    246.02        .76082E-05** at limit **
  28  Prefactor     .10000E-03    21.176        .18377E-06** at limit **
  29  Prefactor     .10000E-03    52.910        .11032E-06** at limit **
  30  Prefactor     87.305        67.670        .11392E-05   -.61249E-05
  31  Prefactor     .10000E-03    28.900       -.12384E-06** at limit **
  32  Normalizat    .85001        .33609       -.42444E-05    .27964E-04
  33  Prefactor     1.2440        .36543        .28053E-05   -.78674E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 168.749
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 11.8846
  norm       = 7.77495
  Prefactor  = 0.000100001
  Prefactor  = 11.0339
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 43.9341
  norm       = 8.66492
  Prefactor  = 135.441
  Prefactor  = 26.6525
  Prefactor  = 25.6072
  Prefactor  = 0.0001
  norm       = 3.27557
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 44.5451
  Prefactor  = 9.14311
  Prefactor  = 17.4332
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 87.3047
  Prefactor  = 0.0001
  Normalizat = 0.850005
  Prefactor  = 1.24396
 **********
 **   18 **HESSE 
 **********

 FCN=   2538.582     FROM HESSE     STATUS=OK           687 CALLS     5287 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     168.75        164.20        .31056E-04   -1.3103    
   2  Prefactor     .10000E-03    6.3421        .12372E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    2.2517        .73423E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     11.885        56.753        .11617E-03   -1.5018    
   5  norm          7.7749        6.3206        .10919E-03   -1.5150    
   6  Prefactor     .10000E-03    659.28        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     11.034        16.991        .12058E-03   -1.5043    
   8  norm          .10000E-03    4.6094        .10549E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    200.46        .20384E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    20.853        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     43.934        67.625        .60506E-04   -1.4381    
  12  norm          8.6649        6.7218        .11125E-03   -1.5119    
  13  Prefactor     135.44        115.35        .34604E-04   -1.3375    
  14  Prefactor     26.652        10.201        .77592E-04   -1.4675    
  15  Prefactor     25.607        84.438        .79241E-04   -1.4695    
  16  Prefactor     .10000E-03    18.586        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.2756        3.3815        .88712E-04   -1.5346    
  18  norm          .10000E-03    59.077        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    2.6796        .80447E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    22.930        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    332.75        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    43.506        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     44.545        76.550        .60075E-04   -1.4372    
  24  Prefactor     9.1431        9.0883        .13253E-03   -1.5103    
  25  Prefactor     17.433        23.803        .95922E-04   -1.4873    
  26  Prefactor     .10000E-03    1.9457        .68359E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    251.63        .36444E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    21.194        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    52.952        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     87.305        67.151        .21507E-03   -1.3836    
  31  Prefactor     .10000E-03    29.097        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .85001        .37527        .27509E-03   -.98240    
  33  Prefactor     1.2440        .41334        .28248E-03   -.84989    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.97041e-10
Minuit parameter uncertainties:
  1  164.645
  2  4.6475e-06
  3  1.86339e-06
  4  52.022
  5  6.32114
  6  0.00190204
  7  16.9984
  8  7.87586e-06
  9  0.0010973
  10  2.36205e-05
  11  67.7435
  12  6.72243
  13  115.539
  14  10.2016
  15  84.836
  16  7.20383e-06
  17  3.38169
  18  7.56197e-05
  19  7.29582e-07
  20  6.85356e-06
  21  0.00102018
  22  4.02114e-05
  23  76.7196
  24  9.0897
  25  23.8159
  26  1.22259e-06
  27  7.64529e-05
  28  5.62914e-06
  29  0.000137351
  30  67.2091
  31  1.12044e-05
  32  0.376425
  33  0.414432
Done.

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

Extracting fit parameters...

4FGL J1337.4+5502
   Spectrum: PowerLaw
314    Prefactor:  1.354e+02  1.155e+02  1.000e-04  1.000e+04 ( 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.244e+00  4.144e-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.500e-01  3.764e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.46
Ra Dec: 204.367 55.042
Photon Index (Fixed Index): 2.76 +/- 0.00
Photon Flux (Fixed Index): 9.32e-08 +/- 7.94e-08
Energy Flux (Fixed Index): 2.15e-05 +/- 1.83e-05

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

Saving results to:
/scratch/kocevski/793377/likelihoodResults_539222401_539481601_4FGL_J1337.4+5502_daily_bin1157.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) = 2538.17567414
delta logL = 0.406011402654

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2538.16297744
delta logL = 0.418708101095

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    135.44       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9549       1.0000          .0000       10.000    
     3 'Normalizat'    .92143       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1895       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=   2538.163     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      228 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     134.62        144.09        .17303E-03    .20697E-05
   2  Index         1.9512        .80559        .74610E-02    .85132E-05
   3  Normalizat    .92157        .33489        .26541E-03   -.11137E-05
   4  Prefactor     1.1895        .40265        .28775E-03   -.18110E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 134.621
  Index      = 1.95125
  Normalizat = 0.921567
  Prefactor  = 1.18946
 **********
 **   18 **HESSE 
 **********

 FCN=   2538.163     FROM HESSE     STATUS=OK            25 CALLS      253 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     134.62        146.21        .69212E-05   -1.3382    
   2  Index         1.9512        .81714        .29844E-03   -.65575    
   3  Normalizat    .92157        .33532        .10616E-04   -.95706    
   4  Prefactor     1.1895        .40304        .57550E-04   -.86656    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.03352e-10
Minuit parameter uncertainties:
  1  146.601
  2  0.823044
  3  0.336086
  4  0.404086
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/793377': 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) = 2538.1629598
delta logL = 0.418725743413

Extracting fit parameters...

4FGL J1337.4+5502
   Spectrum: PowerLaw
314    Prefactor:  1.346e+02  1.466e+02  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  1.951e+00  8.230e-01  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.189e+00  4.041e-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.216e-01  3.361e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.25
Ra Dec: 204.367 55.042
Photon Index (Free Index): 1.95 +/- 0.82
Photon Flux (Free Index): 4.20e-08 +/- 6.18e-08
Energy Flux (Free Index): 3.28e-05 +/- 4.49e-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/793377/cmap_HighResolution_539222401_539481601_4FGL_J1337.4+5502_daily_bin1157.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.08e-02', comment='SUCCESS', photon_flux='9.32e-08', energy_flux2='3.28e-05', photon_flux_error='7.94e-08', dlogl='4.19e-01', energy_flux='2.15e-05', photon_flux2='4.20e-08', job_status='DONE', time_completed='2021-09-08 04:35:34.227022', photon_index_error2='0.82', photon_index2='1.95', ts='3.46', fit_tolerance='1e-08', GAL='1.24', photon_index_error='0.00', photon_flux_upper_limit='2.64e-07', energy_flux_error2='4.49e-05', EG='0.85', time_epoch_completed='1631100934.23', return_code='0', job_id='793377', GAL2='1.19', EG2='0.92', return_code2='0', energy_flux_error='1.83e-05', photon_flux_error2='6.18e-08', ts2='4.25', photon_index='2.76' WHERE bin_id='1157' AND source_name='4FGL J1337.4+5502' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 04:35:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0069>
Subject: Job 793377: <4FGL_J1337.4+5502_daily_bin1157> in cluster <slac> Done

Job <4FGL_J1337.4+5502_daily_bin1157> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep  8 04:20:53 2021
Job was executed on host(s) <bullet0069>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 04:21:04 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  8 04:21:04 2021
Terminated at Wed Sep  8 04:35:35 2021
Results reported at Wed Sep  8 04:35:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1337.4+5502_daily_bin1157 204.367 55.0418 539222401 539481601 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 :                                   650.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             298.66 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   870 sec.
    Turnaround time :                            882 sec.

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

