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


Performing analysis on: 4FGL_J1337.4+5502_daily_bin35
RA = 204.367, Dec = 55.0418
tmin = 248400001, tmax = 248659201
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='784410', job_status='RUN', time_executed='2021-09-08 03:57:35.870437', time_epoch_executed='1631098655.87' WHERE source_name='4FGL J1337.4+5502' and cadence='daily' and bin_id='35'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/784410

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/784410/ft1_4FGL_J1337.4+5502_daily_bin35.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/784410/ft2_4FGL_J1337.4+5502_daily_bin35.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/784410/ft1_4FGL_J1337.4+5502_daily_bin35.fits outfile=/scratch/kocevski/784410/ft1_filteredMKT_4FGL_J1337.4+5502_daily_bin35.fits ra=204.367 dec=55.0418 rad=12.0 tmin=248400001.0 tmax=248659201.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.31
user 1.03
sys 0.16

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/784410/ft1_filtered_4FGL_J1337.4+5502_daily_bin35.fits evtable="EVENTS" scfile=/scratch/kocevski/784410/ft2_4FGL_J1337.4+5502_daily_bin35.fits sctable="SC_DATA" expcube=/scratch/kocevski/784410/ltcube_248400001_248659201_4FGL_J1337.4+5502_daily_bin35.fits outfile=/scratch/kocevski/784410/expmap_248400001_248659201_4FGL_J1337.4+5502_daily_bin35.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/784410/ltcube_248400001_248659201_4FGL_J1337.4+5502_daily_bin35.fits
.....................!
real 157.36
user 152.09
sys 4.63

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/784410/ft1_filtered_4FGL_J1337.4+5502_daily_bin35.fits scfile=/scratch/kocevski/784410/ft2_4FGL_J1337.4+5502_daily_bin35.fits outfile=/scratch/kocevski/784410/cmap_248400001_248659201_4FGL_J1337.4+5502_daily_bin35.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.31
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/784410/ft1_filtered_4FGL_J1337.4+5502_daily_bin35.fits scfile=/scratch/kocevski/784410/ft2_4FGL_J1337.4+5502_daily_bin35.fits outfile=/scratch/kocevski/784410/cmap_HighResolution_248400001_248659201_4FGL_J1337.4+5502_daily_bin35.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.69
user 0.32
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    45.739       1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.9726       1.0000         .10000E-03   10000.    
     3 'norm      '    .10028E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    4.9326       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10112E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.7071       1.0000         .10000E-03   10000.    
     8 'norm      '    .10407E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11224E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    14.888       1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.8456       1.0000         .10000E-03   10000.    
    12 'norm      '    4.4344       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.481       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.3236       1.0000         .10000E-03   10000.    
    18 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10118E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10130E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10869E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    21.555       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .16821E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    17.765       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10465E-01   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .26265E-02   1.0000         .10000E-03   10000.    
    30 'Prefactor '    28.361       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .80214       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.2024       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=   5199.086     FROM MIGRAD    STATUS=CONVERGED    915 CALLS     4611 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     45.886        87.648        .15774E-03   -.31766E-05
   2  Prefactor     4.9730        4.6625       -.38069E-06    .74705E-04
   3  norm          .10000E-03    1.3880       -.51716E-06** at limit **
   4  Prefactor     .10000E-03    7.4680       -.22834E-05** at limit **
   5  norm          4.9327        2.4114        .23362E-06    .23574E-04
   6  Prefactor     .10000E-03    27.741       -.28835E-05** at limit **
   7  Prefactor     4.7080        9.6611       -.39701E-06   -.13085E-03
   8  norm          .10000E-03    2.0974        .57013E-06** at limit **
   9  Prefactor     .10000E-03    21.190        .79355E-05** at limit **
  10  Prefactor     14.884        18.575        .91807E-06   -.12422E-03
  11  Prefactor     6.8576        46.905        .89177E-05   -.71439E-04
  12  norm          4.4335        4.2345        .84970E-07   -.96852E-03
  13  Prefactor     .10000E-03    28.596        .29074E-05** at limit **
  14  Prefactor     10.480        6.0256        .47548E-06   -.37561E-03
  15  Prefactor     .10000E-03    22.145       -.98353E-05** at limit **
  16  Prefactor     .10000E-03    7.6147        .19649E-05** at limit **
  17  norm          1.3243        1.4357        .28987E-06   -.37922E-03
  18  norm          .10000E-03    28.746        .33121E-05** at limit **
  19  norm          .10000E-03    2.6266        .23160E-06** at limit **
  20  Prefactor     .10000E-03    34.933        .11012E-05** at limit **
  21  Prefactor     .10000E-03    174.27        .47467E-04** at limit **
  22  Prefactor     21.527        45.283       -.11117E-04   -.18097E-03
  23  Prefactor     .10000E-03    35.291       -.14676E-05** at limit **
  24  Prefactor     .10000E-03    1.5478        .45006E-07** at limit **
  25  Prefactor     .10000E-03    7.0938        .63532E-06** at limit **
  26  Prefactor     .10001E-03    1.7684        .19081E-05** at limit **
  27  Prefactor     17.754        22.903        .62722E-06   -.23875E-03
  28  Prefactor     .10001E-03    111.49       -.16287E-04** at limit **
  29  Prefactor     .10000E-03    31.846        .30522E-05** at limit **
  30  Prefactor     28.345        36.639       -.94301E-06   -.69967E-04
  31  Prefactor     .10000E-03    4.2145        .37405E-07** at limit **
  32  Normalizat    .80219        .17790       -.85765E-05   -.31691E-03
  33  Prefactor     1.2022        .20767        .88192E-07   -.58076E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 45.8862
  Prefactor  = 4.97296
  norm       = 0.000100001
  Prefactor  = 0.0001
  norm       = 4.9327
  Prefactor  = 0.0001
  Prefactor  = 4.70805
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 14.8842
  Prefactor  = 6.85764
  norm       = 4.43346
  Prefactor  = 0.0001
  Prefactor  = 10.4803
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.32431
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.5273
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100009
  Prefactor  = 17.7537
  Prefactor  = 0.000100013
  Prefactor  = 0.000100001
  Prefactor  = 28.3447
  Prefactor  = 0.0001
  Normalizat = 0.802195
  Prefactor  = 1.20217
 **********
 **   18 **HESSE 
 **********

 FCN=   5199.086     FROM HESSE     STATUS=OK           689 CALLS     5300 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     45.886        87.476        .29642E-03   -1.4352    
   2  Prefactor     4.9730        4.6215        .14372E-03   -1.5262    
   3  norm          .10000E-03    4.6194        .16307E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    7.4804        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          4.9327        2.4122        .75710E-04   -1.5264    
   6  Prefactor     .10000E-03    27.815        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.7080        9.6124        .18547E-03   -1.5274    
   8  norm          .10000E-03    10.870        .20090E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    21.209        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     14.884        18.569        .10380E-03   -1.4936    
  11  Prefactor     6.8576        46.126        .15335E-03   -1.5184    
  12  norm          4.4335        4.2252        .64487E-03   -1.5287    
  13  Prefactor     .10000E-03    28.643        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     10.480        6.0159        .12376E-03   -1.5060    
  15  Prefactor     .10000E-03    22.169        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    7.6301        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.3243        1.4133        .84779E-04   -1.5478    
  18  norm          .10000E-03    28.747        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    2.6713        .11403E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    35.030        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    174.27        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     21.527        44.471        .86272E-04   -1.4780    
  23  Prefactor     .10000E-03    35.456        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    1.5505        .87605E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    7.1013        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10001E-03    5.2088        .17660E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     17.754        22.666        .95024E-04   -1.4865    
  28  Prefactor     .10001E-03    115.31        .36301E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    238.37        .79014E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     28.345        36.622        .75229E-04   -1.4643    
  31  Prefactor     .10000E-03    4.2161        .14457E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .80219        .20923        .24228E-03   -.99987    
  33  Prefactor     1.2022        .24655        .25130E-03   -.86265    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.71287e-09
Minuit parameter uncertainties:
  1  87.7221
  2  4.62181
  3  0.000113274
  4  2.80865e-05
  5  2.4122
  6  0.000204917
  7  9.6156
  8  0.000222081
  9  6.3428e-06
  10  18.576
  11  35.6101
  12  4.22548
  13  0.000110071
  14  6.01621
  15  9.62317e-05
  16  5.45195e-06
  17  1.41337
  18  4.54504e-06
  19  4.00924e-05
  20  7.75487e-05
  21  5.61225e-05
  22  44.5395
  23  0.000290016
  24  7.45778e-06
  25  2.66625e-05
  26  0.000437664
  27  22.6765
  28  0.00243775
  29  0.000706469
  30  36.6508
  31  8.58758e-06
  32  0.209443
  33  0.246785
Done.

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

Extracting fit parameters...

4FGL J1337.4+5502
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  1.101e-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:  1.202e+00  2.468e-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.022e-01  2.094e-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: 6.81e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.38e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/784410/likelihoodResults_248400001_248659201_4FGL_J1337.4+5502_daily_bin35.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): 102
logL (Free Index) = 5199.08626624
delta logL = -0.000166224418535

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5199.08610173
delta logL = -1.71500778379e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10755E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.5558       1.0000          .0000       10.000    
     3 'Normalizat'    .80219       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2022       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=   5199.086     FROM MIGRAD    STATUS=CONVERGED    112 CALLS      293 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    284.16        .18142E-01** at limit **
   2  Index         2.0906        5.6491        .50000        .14325E-07
   3  Normalizat    .80219        .11954E-01    .24228E-03    .68129E-03
   4  Prefactor     1.2022        .14937E-01    .25130E-03    .66343E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.09063
  Normalizat = 0.802193
  Prefactor  = 1.20218
 **********
 **   18 **HESSE 
 **********

 FCN=   5199.086     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      322 TOTAL
                     EDM=   .81E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1376.1        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0906        8.5861        .50000       -.62103    
   3  Normalizat    .80219        .27809E-01    .48456E-04   -.99987    
   4  Prefactor     1.2022        .34751E-01    .50260E-04   -.86264    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.09511e-10
Minuit parameter uncertainties:
  1  0.00238657
  2  2007.3
  3  0.0278097
  4  0.0347512
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/784410': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5199.08609969
delta logL = 3.23469066643e-07

Extracting fit parameters...

4FGL J1337.4+5502
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  2.387e-03  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  2.091e+00  2.007e+03  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.202e+00  3.475e-02  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.022e-01  2.781e-02  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/784410/cmap_HighResolution_248400001_248659201_4FGL_J1337.4+5502_daily_bin35.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.38e-03', job_status='DONE', photon_flux_upper_limit='6.81e-08', time_completed='2021-09-08 04:10:25.312554', job_id='784410', GAL2='1.20', fit_tolerance='1e-08', EG2='0.80', EG='0.80', time_epoch_completed='1631099425.31', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.20', dlogl='3.23e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.76' WHERE bin_id='35' AND source_name='4FGL J1337.4+5502' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 04:10:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0168>
Subject: Job 784410: <4FGL_J1337.4+5502_daily_bin35> in cluster <slac> Done

Job <4FGL_J1337.4+5502_daily_bin35> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  8 03:55:21 2021
Job was executed on host(s) <bullet0168>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 03:57:24 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:57:24 2021
Terminated at Wed Sep  8 04:10:26 2021
Results reported at Wed Sep  8 04:10:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1337.4+5502_daily_bin35 204.367 55.0418 248400001 248659201 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 :                                   761.09 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             376.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   781 sec.
    Turnaround time :                            905 sec.

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

