/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 43 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 = 7424
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1337.4+5502_daily_bin1
RA = 204.367, Dec = 55.0418
tmin = 239587201, tmax = 239846401
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='784346', job_status='RUN', time_executed='2021-09-08 03:57:43.162438', time_epoch_executed='1631098663.16' WHERE source_name='4FGL J1337.4+5502' and cadence='daily' and bin_id='1'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/784346

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

Retrieving the FT1 file...

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

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

Retrieving 41 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/784346/ft1_4FGL_J1337.4+5502_daily_bin1.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/784346/ft2_4FGL_J1337.4+5502_daily_bin1.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/784346/ft1_4FGL_J1337.4+5502_daily_bin1.fits outfile=/scratch/kocevski/784346/ft1_filteredMKT_4FGL_J1337.4+5502_daily_bin1.fits ra=204.367 dec=55.0418 rad=12.0 tmin=239587201.0 tmax=239846401.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 1.38
user 1.18
sys 0.18

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/784346/ft1_filtered_4FGL_J1337.4+5502_daily_bin1.fits evtable="EVENTS" scfile=/scratch/kocevski/784346/ft2_4FGL_J1337.4+5502_daily_bin1.fits sctable="SC_DATA" expcube=/scratch/kocevski/784346/ltcube_239587201_239846401_4FGL_J1337.4+5502_daily_bin1.fits outfile=/scratch/kocevski/784346/expmap_239587201_239846401_4FGL_J1337.4+5502_daily_bin1.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/784346/ltcube_239587201_239846401_4FGL_J1337.4+5502_daily_bin1.fits
.....................!
real 195.78
user 190.59
sys 4.56

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/784346/ft1_filtered_4FGL_J1337.4+5502_daily_bin1.fits scfile=/scratch/kocevski/784346/ft2_4FGL_J1337.4+5502_daily_bin1.fits outfile=/scratch/kocevski/784346/cmap_239587201_239846401_4FGL_J1337.4+5502_daily_bin1.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.64
user 0.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/784346/ft1_filtered_4FGL_J1337.4+5502_daily_bin1.fits scfile=/scratch/kocevski/784346/ft2_4FGL_J1337.4+5502_daily_bin1.fits outfile=/scratch/kocevski/784346/cmap_HighResolution_239587201_239846401_4FGL_J1337.4+5502_daily_bin1.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.66
user 0.41
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.3450       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10146E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    4.0690       1.0000         .10000E-03   10000.    
     4 'Prefactor '    19.329       1.0000         .10000E-03   10000.    
     5 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    75.565       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .22277E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .20244E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.504       1.0000         .10000E-03   10000.    
    12 'norm      '    21.134       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .59088E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.5859       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .92252E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10629E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.2915       1.0000         .10000E-03   10000.    
    18 'norm      '    .31606E-02   1.0000         .10000E-03   10000.    
    19 'norm      '    1.1285       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .69434E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .44465       1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.6747       1.0000         .10000E-03   10000.    
    23 'Prefactor '    6.1795       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .55413       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .66954E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    3.6660       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .11181E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    31.965       1.0000         .10000E-03   10000.    
    29 'Prefactor '    2.9822       1.0000         .10000E-03   10000.    
    30 'Prefactor '    34.261       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .29368E-02   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .93492       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .71609       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=   3495.881     FROM MIGRAD    STATUS=CONVERGED    234 CALLS     3287 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.1548        6.4897       -.13509E-06   -.10681E-02
   2  Prefactor     .10000E-03    5.5758        .22941E-06** at limit **
   3  norm          4.0693        2.5544       -.25380E-06   -.24334E-03
   4  Prefactor     19.248        20.608        .11773E-05    .43212E-03
   5  norm          .10000E-03    .90516        .21871E-06** at limit **
   6  Prefactor     76.456        48.703        .49581E-06   -.97792E-02
   7  Prefactor     .10000E-03    5.7065       -.84192E-07** at limit **
   8  norm          .10000E-03    1.1389       -.11973E-06** at limit **
   9  Prefactor     .10000E-03    14.886       -.27103E-05** at limit **
  10  Prefactor     .10000E-03    29.031       -.43957E-05** at limit **
  11  Prefactor     10.464        21.846       -.21489E-06   -.12475E-02
  12  norm          21.108        7.8197        .61324E-06    .22315E-03
  13  Prefactor     .10000E-03    39.859       -.58529E-05** at limit **
  14  Prefactor     5.6613        7.9145        .12191E-05    .97593E-04
  15  Prefactor     .10000E-03    23.755        .16173E-05** at limit **
  16  Prefactor     .10000E-03    7.1519        .10406E-06** at limit **
  17  norm          2.2921        1.5532        .11868E-06    .18270E-04
  18  norm          .10427E-03    12.046        .42578E-05** at limit **
  19  norm          1.1203        8.4358        .14935E-05    .68506E-04
  20  Prefactor     .10169E-03    23.941        .59682E-05** at limit **
  21  Prefactor     .11478E-03    376.53        .24727E-05** at limit **
  22  Prefactor     2.2759        115.00        .23020E-05   -.99826E-03
  23  Prefactor     6.6434        13.608        .41476E-06    .35920E-03
  24  Prefactor     .51772        14.605       -.47984E-05   -.11308E-03
  25  Prefactor     .10000E-03    22.236       -.35021E-05** at limit **
  26  Prefactor     3.5867        5.7216        .73944E-06   -.18225E-03
  27  Prefactor     .10000E-03    14.587        .25654E-05** at limit **
  28  Prefactor     33.081        38.208        .32729E-06    .14083E-01
  29  Prefactor     .19851E-02    6490.8       -.49115E-05** at limit **
  30  Prefactor     34.445        30.438       -.29229E-06   -.12007E-01
  31  Prefactor     .10000E-03    22.826        .22203E-05** at limit **
  32  Normalizat    .93408        .24759       -.49128E-05   -.11949E-03
  33  Prefactor     .71709        .27157        .34490E-05   -.65516E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.15484
  Prefactor  = 0.0001
  norm       = 4.06926
  Prefactor  = 19.2481
  norm       = 0.0001
  Prefactor  = 76.4555
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 10.4636
  norm       = 21.108
  Prefactor  = 0.0001
  Prefactor  = 5.66135
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 2.29207
  norm       = 0.000104275
  norm       = 1.12029
  Prefactor  = 0.000101686
  Prefactor  = 0.000114781
  Prefactor  = 2.27589
  Prefactor  = 6.64339
  Prefactor  = 0.517718
  Prefactor  = 0.0001
  Prefactor  = 3.58666
  Prefactor  = 0.0001
  Prefactor  = 33.0807
  Prefactor  = 0.00198509
  Prefactor  = 34.445
  Prefactor  = 0.000100001
  Normalizat = 0.934079
  Prefactor  = 0.71709
 **********
 **   18 **HESSE 
 **********

 FCN=   3495.881     FROM HESSE     STATUS=OK           769 CALLS     4056 TOTAL
                     EDM=   .33E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.1548        345.29        .55322E-02   -1.5353    
   2  Prefactor     .10000E-03    5.4931        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          4.0693        2.5603        .49969E-02   -1.5304    
   4  Prefactor     19.248        20.667        .22775E-02   -1.4830    
   5  norm          .10000E-03    .90182        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     76.456        60.939        .11548E-02   -1.3957    
   7  Prefactor     .10000E-03    5.6596        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    1.1386        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    14.895        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    29.008        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     10.464        22.013        .30906E-02   -1.5061    
  12  norm          21.108        7.8243        .21782E-02   -1.4789    
  13  Prefactor     .10000E-03    39.874        .94814E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.6613        7.9065        .42495E-02   -1.5232    
  15  Prefactor     .10000E-03    23.807        .10407E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    7.1578        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.2921        1.5537        .67790E-02   -1.5405    
  18  norm          .10427E-03    37.762        .98856E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.1203        8.8543        .11006E-01   -1.5496    
  20  Prefactor     .10169E-03    33.641        .93564E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .11478E-03    381.63        .11043E-01   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     2.2759        609.49        .81414E-02   -1.5406    
  23  Prefactor     6.6434        147.11        .40374E-02   -1.5192    
  24  Prefactor     .51772        7.7690        .45760E-01   -1.5564    
  25  Prefactor     .10000E-03    22.166        .10502E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     3.5867        7.2208        .52741E-02   -1.5329    
  27  Prefactor     .10000E-03    14.609        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     33.081        61.050        .17718E-02   -1.4557    
  29  Prefactor     .19851E-02    164.12        .13302       -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     34.445        34.181        .17116E-02   -1.4533    
  31  Prefactor     .10000E-03    22.812        .99257E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .93408        .21009        .45346E-01   -.95273    
  33  Prefactor     .71709        .22993        .63566E-01   -1.0286    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.27813e-06
Minuit parameter uncertainties:
  1  66.4057
  2  7.97593e-06
  3  2.5604
  4  20.6748
  5  2.5708e-06
  6  60.9892
  7  3.71731e-06
  8  1.49704e-06
  9  0.000164222
  10  0.000589698
  11  22.0305
  12  7.82468
  13  0.000101515
  14  7.90792
  15  0.00037434
  16  3.66617e-06
  17  1.55376
  18  0.0254269
  19  6.30003
  20  0.0150725
  21  0.151181
  22  75.2738
  23  62.6989
  24  4.0113
  25  5.74048e-05
  26  7.22256
  27  0.000143136
  28  61.1652
  29  1.11551
  30  34.2004
  31  0.000294086
  32  0.210275
  33  0.230235
Done.

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

Extracting fit parameters...

4FGL J1337.4+5502
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  1.015e-04  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:  7.171e-01  2.302e-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.341e-01  2.103e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/784346/likelihoodResults_239587201_239846401_4FGL_J1337.4+5502_daily_bin1.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) = 3495.8809822
delta logL = -0.000119329232803

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3495.88086288
delta logL = -3.82442522096e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6892       1.0000          .0000       10.000    
     3 'Normalizat'    .93409       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71708       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=   3495.881     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      236 TOTAL
                     EDM=   .56E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    92.132        .90712E-02** at limit **
   2  Index         2.6902        6.1018        .50000       -.24542E-06
   3  Normalizat    .93408        .18898        .45336E-01    .51761E-05
   4  Prefactor     .71709        .22279        .63566E-01    .10954E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.69018
  Normalizat = 0.93408
  Prefactor  = 0.717089
 **********
 **   18 **HESSE 
 **********

 FCN=   3495.881     FROM HESSE     STATUS=OK            33 CALLS      269 TOTAL
                     EDM=   .66E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    40.245        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6902        6.3377        .50000       -.48021    
   3  Normalizat    .93408        .22304        .21239E-03   -.95273    
   4  Prefactor     .71709        .26264        .28120E-03   -1.0286    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.60926e-14
Minuit parameter uncertainties:
  1  8.41668e-06
  2  4.49516
  3  0.223262
  4  0.263093
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/784346': 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) = 3495.88086288
delta logL = -3.3110154618e-09

Extracting fit parameters...

4FGL J1337.4+5502
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  8.417e-06  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  2.690e+00  4.495e+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:  7.171e-01  2.631e-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.341e-01  2.233e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/784346/cmap_HighResolution_239587201_239846401_4FGL_J1337.4+5502_daily_bin1.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.04e-03', job_status='DONE', photon_flux_upper_limit='1.02e-07', time_completed='2021-09-08 04:09:06.635336', job_id='784346', GAL2='0.72', fit_tolerance='1e-08', EG2='0.93', EG='0.93', time_epoch_completed='1631099346.64', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.72', dlogl='-3.31e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.76' WHERE bin_id='1' AND source_name='4FGL J1337.4+5502' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 04:09:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0162>
Subject: Job 784346: <4FGL_J1337.4+5502_daily_bin1> in cluster <slac> Done

Job <4FGL_J1337.4+5502_daily_bin1> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  8 03:55:16 2021
Job was executed on host(s) <bullet0162>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 03:56:51 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  8 03:56:51 2021
Terminated at Wed Sep  8 04:09:07 2021
Results reported at Wed Sep  8 04:09:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1337.4+5502_daily_bin1 204.367 55.0418 239587201 239846401 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 :                                   681.36 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             342.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   735 sec.
    Turnaround time :                            831 sec.

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

