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


Performing analysis on: 4FGL_J1337.4+5502_daily_bin764
RA = 204.367, Dec = 55.0418
tmin = 437356801, tmax = 437616001
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='790501', job_status='RUN', time_executed='2021-09-08 04:13:19.062421', time_epoch_executed='1631099599.06' WHERE source_name='4FGL J1337.4+5502' and cadence='daily' and bin_id='764'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/790501

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/790501/ft1_4FGL_J1337.4+5502_daily_bin764.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/790501/ft2_4FGL_J1337.4+5502_daily_bin764.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/790501/ft1_4FGL_J1337.4+5502_daily_bin764.fits outfile=/scratch/kocevski/790501/ft1_filteredMKT_4FGL_J1337.4+5502_daily_bin764.fits ra=204.367 dec=55.0418 rad=12.0 tmin=437356801.0 tmax=437616001.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 4.61
user 4.37
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/790501/ft2_4FGL_J1337.4+5502_daily_bin764.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/790501/ft1_filteredMKT_4FGL_J1337.4+5502_daily_bin764.fits evtable="EVENTS" outfile="/scratch/kocevski/790501/ft1_filtered_4FGL_J1337.4+5502_daily_bin764.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.45
user 0.29
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/790501/ft1_filtered_4FGL_J1337.4+5502_daily_bin764.fits" evtable="EVENTS" scfile=/scratch/kocevski/790501/ft2_4FGL_J1337.4+5502_daily_bin764.fits sctable="SC_DATA" outfile=/scratch/kocevski/790501/ltcube_437356801_437616001_4FGL_J1337.4+5502_daily_bin764.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/790501/ft2_4FGL_J1337.4+5502_daily_bin764.fits
.....................!
real 13.08
user 12.75
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/790501/ft1_filtered_4FGL_J1337.4+5502_daily_bin764.fits evtable="EVENTS" scfile=/scratch/kocevski/790501/ft2_4FGL_J1337.4+5502_daily_bin764.fits sctable="SC_DATA" expcube=/scratch/kocevski/790501/ltcube_437356801_437616001_4FGL_J1337.4+5502_daily_bin764.fits outfile=/scratch/kocevski/790501/expmap_437356801_437616001_4FGL_J1337.4+5502_daily_bin764.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/790501/ltcube_437356801_437616001_4FGL_J1337.4+5502_daily_bin764.fits
.....................!
real 156.57
user 152.39
sys 3.70

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/790501/ft1_filtered_4FGL_J1337.4+5502_daily_bin764.fits scfile=/scratch/kocevski/790501/ft2_4FGL_J1337.4+5502_daily_bin764.fits outfile=/scratch/kocevski/790501/cmap_437356801_437616001_4FGL_J1337.4+5502_daily_bin764.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.49
user 0.32
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/790501/ft1_filtered_4FGL_J1337.4+5502_daily_bin764.fits scfile=/scratch/kocevski/790501/ft2_4FGL_J1337.4+5502_daily_bin764.fits outfile=/scratch/kocevski/790501/cmap_HighResolution_437356801_437616001_4FGL_J1337.4+5502_daily_bin764.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.50
user 0.34
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/790501/ft1_filtered_4FGL_J1337.4+5502_daily_bin764.fits', '/scratch/kocevski/790501/ft2_4FGL_J1337.4+5502_daily_bin764.fits', expMap='/scratch/kocevski/790501/expmap_437356801_437616001_4FGL_J1337.4+5502_daily_bin764.fits', expCube='/scratch/kocevski/790501/ltcube_437356801_437616001_4FGL_J1337.4+5502_daily_bin764.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/790501/Model_4FGL_J1337.4+5502_daily_bin764.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/790501/ft1_filtered_4FGL_J1337.4+5502_daily_bin764.fits
Spacecraft file(s): /scratch/kocevski/790501/ft2_4FGL_J1337.4+5502_daily_bin764.fits
Exposure map: /scratch/kocevski/790501/expmap_437356801_437616001_4FGL_J1337.4+5502_daily_bin764.fits
Exposure cube: /scratch/kocevski/790501/ltcube_437356801_437616001_4FGL_J1337.4+5502_daily_bin764.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/790501/Model_4FGL_J1337.4+5502_daily_bin764.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 4647.50214165

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    5.4012       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    4.3051       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .37082E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.4531       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.6409       1.0000         .10000E-03   10000.    
    12 'norm      '    .10274E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.5812       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .63484E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.8424       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    51.041       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    8.3445       1.0000         .10000E-03   10000.    
    26 'Prefactor '    1.1024       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .19857       1.0000         .10000E-03   10000.    
    28 'Prefactor '    4.3885       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    38.361       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.1657       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .84152       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=   4647.417     FROM MIGRAD    STATUS=CONVERGED    940 CALLS     4655 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    52.363       -.31845E-05** at limit **
   2  Prefactor     .10000E-03    3.3153        .86731E-08** at limit **
   3  norm          5.4016        2.4571        .51093E-08   -.61658E-05
   4  Prefactor     .10000E-03    9.7323       -.18620E-07** at limit **
   5  norm          4.3048        2.5471        .14800E-07    .70742E-05
   6  Prefactor     .10000E-03    15.349       -.14300E-07** at limit **
   7  Prefactor     .10000E-03    8.0121        .33246E-06** at limit **
   8  norm          2.4530        3.3061       -.38781E-08   -.13234E-03
   9  Prefactor     .10000E-03    51.701       -.91934E-05** at limit **
  10  Prefactor     .10000E-03    7.3410        .53534E-08** at limit **
  11  Prefactor     9.6532        38.829       -.14815E-05    .31801E-04
  12  norm          .10000E-03    2.9951        .87836E-07** at limit **
  13  Prefactor     9.5721        47.760        .33231E-06   -.13540E-04
  14  Prefactor     .10000E-03    1.8078       -.47522E-07** at limit **
  15  Prefactor     .10000E-03    55.418        .17013E-04** at limit **
  16  Prefactor     .10001E-03    7.3987        .44794E-06** at limit **
  17  norm          1.8421        1.6235        .27000E-07   -.99322E-04
  18  norm          .10000E-03    29.769       -.31475E-05** at limit **
  19  norm          .10000E-03    .93178       -.15325E-07** at limit **
  20  Prefactor     51.043        36.606       -.14465E-08   -.14727E-04
  21  Prefactor     .10000E-03    230.47       -.30873E-05** at limit **
  22  Prefactor     .10000E-03    17.817       -.60701E-07** at limit **
  23  Prefactor     .10000E-03    74.970       -.54732E-05** at limit **
  24  Prefactor     .10000E-03    2.5926        .15134E-07** at limit **
  25  Prefactor     8.3353        25.092       -.26828E-05   -.15666E-05
  26  Prefactor     1.1022        2.0386       -.19093E-06   -.43813E-03
  27  Prefactor     .10069E-03    28.602       -.34299E-05** at limit **
  28  Prefactor     4.3949        18.227        .35552E-06    .93518E-05
  29  Prefactor     .10000E-03    34.042        .12069E-04** at limit **
  30  Prefactor     38.451        40.955        .82438E-05    .16910E-03
  31  Prefactor     .10000E-03    35.917       -.97800E-05** at limit **
  32  Normalizat    1.1659        .18752        .29379E-06    .12403E-03
  33  Prefactor     .84141        .21901       -.48282E-06    .92601E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.4016
  Prefactor  = 0.0001
  norm       = 4.30483
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  norm       = 2.453
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.65324
  norm       = 0.0001
  Prefactor  = 9.57213
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100011
  norm       = 1.84213
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 51.0425
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.33532
  Prefactor  = 1.10221
  Prefactor  = 0.000100691
  Prefactor  = 4.39488
  Prefactor  = 0.0001
  Prefactor  = 38.4508
  Prefactor  = 0.0001
  Normalizat = 1.16592
  Prefactor  = 0.841412
 **********
 **   18 **HESSE 
 **********

 FCN=   4647.417     FROM HESSE     STATUS=OK           699 CALLS     5354 TOTAL
                     EDM=   .71E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    52.400        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.3478        .12115E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          5.4016        2.4476        .69508E-04   -1.5243    
   4  Prefactor     .10000E-03    9.7436        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          4.3048        2.5481        .80850E-04   -1.5293    
   6  Prefactor     .10000E-03    15.356        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    27.936        .36870E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.4530        3.2910        .13923E-03   -1.5395    
   9  Prefactor     .10000E-03    51.620        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.3488        .18037E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     9.6532        38.525        .12906E-03   -1.5086    
  12  norm          .10000E-03    5.9063        .22768E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     9.5721        47.883        .12947E-03   -1.5089    
  14  Prefactor     .10000E-03    1.8230        .89290E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    55.105        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10001E-03    40.194        .35617E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.8421        1.6127        .77917E-04   -1.5437    
  18  norm          .10000E-03    29.755        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    .93245        .64263E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     51.043        36.459        .56135E-04   -1.4278    
  21  Prefactor     .10000E-03    230.47        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    17.824        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    75.407        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    2.5994        .10717E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     8.3353        25.169        .13878E-03   -1.5130    
  26  Prefactor     1.1022        1.7121        .12503E-02   -1.5498    
  27  Prefactor     .10069E-03    37.107        .10058       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     4.3949        17.860        .19226E-03   -1.5289    
  29  Prefactor     .10000E-03    33.864        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     38.451        42.235        .64713E-04   -1.4467    
  31  Prefactor     .10000E-03    35.957        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    1.1659        .21998        .20551E-03   -.87662    
  33  Prefactor     .84141        .25732        .29070E-03   -.98219    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.0698e-10
Minuit parameter uncertainties:
  1  4.44786e-07
  2  9.88453e-07
  3  2.44768
  4  4.10076e-07
  5  2.54821
  6  2.33709e-07
  7  0.000547335
  8  3.29128
  9  0.000149415
  10  9.72486e-07
  11  38.6125
  12  1.34474e-05
  13  42.8725
  14  2.16412e-06
  15  6.59522e-05
  16  0.00133722
  17  1.61272
  18  5.16221e-08
  19  1.78858e-07
  20  36.4745
  21  2.60637e-06
  22  2.25465e-06
  23  0.000113628
  24  4.88916e-06
  25  25.2008
  26  1.71214
  27  0.010132
  28  17.728
  29  9.53907e-06
  30  42.2678
  31  5.44067e-05
  32  0.220149
  33  0.257688
Done.

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

Extracting fit parameters...

4FGL J1337.4+5502
   Spectrum: PowerLaw
314    Prefactor:  9.572e+00  4.287e+01  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:  8.414e-01  2.577e-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:  1.166e+00  2.201e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/790501/likelihoodResults_437356801_437616001_4FGL_J1337.4+5502_daily_bin764.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) = 4647.41567004
delta logL = 0.00173833785357

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4647.41508778
delta logL = 0.00232059362406

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.761       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3870       1.0000          .0000       10.000    
     3 'Normalizat'    1.1694       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83815       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=   4647.415     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      290 TOTAL
                     EDM=   .75E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.765        51.742        .12213E-03   -.52592E-04
   2  Index         2.3884        3.3193        .17406E-01   -.25840E-04
   3  Normalizat    1.1691        .21013        .20526E-03    .34117E-03
   4  Prefactor     .83847        .25559        .29115E-03    .24788E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.765
  Index      = 2.38843
  Normalizat = 1.16911
  Prefactor  = 0.838474
 **********
 **   18 **HESSE 
 **********

 FCN=   4647.415     FROM HESSE     STATUS=OK            25 CALLS      315 TOTAL
                     EDM=   .70E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.765        51.309        .48854E-05   -1.5052    
   2  Index         2.3884        3.3101        .69623E-03   -.54956    
   3  Normalizat    1.1691        .21020        .41052E-04   -.87563    
   4  Prefactor     .83847        .25568        .11646E-04   -.98325    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.02981e-10
Minuit parameter uncertainties:
  1  47.0694
  2  3.78979
  3  0.210351
  4  0.25604
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/790501': 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) = 4647.41508682
delta logL = 0.00232154893092

Extracting fit parameters...

4FGL J1337.4+5502
   Spectrum: PowerLaw
314    Prefactor:  1.076e+01  4.707e+01  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  2.388e+00  3.790e+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:  8.385e-01  2.560e-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:  1.169e+00  2.104e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.06
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/790501/cmap_HighResolution_437356801_437616001_4FGL_J1337.4+5502_daily_bin764.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.85e-03', job_status='DONE', photon_flux_upper_limit='8.67e-08', time_completed='2021-09-08 04:25:46.229887', job_id='790501', GAL2='0.84', fit_tolerance='1e-08', EG2='1.17', EG='1.17', time_epoch_completed='1631100346.23', return_code2='0', ts='0.06', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='2.32e-03', ts2='0.06', photon_index_error='0.00', photon_index='2.76' WHERE bin_id='764' AND source_name='4FGL J1337.4+5502' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 04:25:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0135>
Subject: Job 790501: <4FGL_J1337.4+5502_daily_bin764> in cluster <slac> Done

Job <4FGL_J1337.4+5502_daily_bin764> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep  8 04:10:43 2021
Job was executed on host(s) <bullet0135>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 04:13: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:13:04 2021
Terminated at Wed Sep  8 04:25:47 2021
Results reported at Wed Sep  8 04:25:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1337.4+5502_daily_bin764 204.367 55.0418 437356801 437616001 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 :                                   735.36 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             297.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   762 sec.
    Turnaround time :                            904 sec.

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

