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


Performing analysis on: 4FGL_J1337.4+5502_daily_bin809
RA = 204.367, Dec = 55.0418
tmin = 449020801, tmax = 449280001
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='791685', job_status='RUN', time_executed='2021-09-08 04:15:48.642660', time_epoch_executed='1631099748.64' WHERE source_name='4FGL J1337.4+5502' and cadence='daily' and bin_id='809'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/791685

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/791685/ft1_4FGL_J1337.4+5502_daily_bin809.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/791685/ft2_4FGL_J1337.4+5502_daily_bin809.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/791685/ft1_4FGL_J1337.4+5502_daily_bin809.fits outfile=/scratch/kocevski/791685/ft1_filteredMKT_4FGL_J1337.4+5502_daily_bin809.fits ra=204.367 dec=55.0418 rad=12.0 tmin=449020801.0 tmax=449280001.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.60
user 5.31
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/791685/ft1_filtered_4FGL_J1337.4+5502_daily_bin809.fits" evtable="EVENTS" scfile=/scratch/kocevski/791685/ft2_4FGL_J1337.4+5502_daily_bin809.fits sctable="SC_DATA" outfile=/scratch/kocevski/791685/ltcube_449020801_449280001_4FGL_J1337.4+5502_daily_bin809.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/791685/ft2_4FGL_J1337.4+5502_daily_bin809.fits
.....................!
real 13.48
user 12.96
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/791685/ft1_filtered_4FGL_J1337.4+5502_daily_bin809.fits evtable="EVENTS" scfile=/scratch/kocevski/791685/ft2_4FGL_J1337.4+5502_daily_bin809.fits sctable="SC_DATA" expcube=/scratch/kocevski/791685/ltcube_449020801_449280001_4FGL_J1337.4+5502_daily_bin809.fits outfile=/scratch/kocevski/791685/expmap_449020801_449280001_4FGL_J1337.4+5502_daily_bin809.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/791685/ltcube_449020801_449280001_4FGL_J1337.4+5502_daily_bin809.fits
.....................!
real 191.33
user 185.31
sys 5.30

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/791685/ft1_filtered_4FGL_J1337.4+5502_daily_bin809.fits scfile=/scratch/kocevski/791685/ft2_4FGL_J1337.4+5502_daily_bin809.fits outfile=/scratch/kocevski/791685/cmap_449020801_449280001_4FGL_J1337.4+5502_daily_bin809.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.56
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/791685/ft1_filtered_4FGL_J1337.4+5502_daily_bin809.fits scfile=/scratch/kocevski/791685/ft2_4FGL_J1337.4+5502_daily_bin809.fits outfile=/scratch/kocevski/791685/cmap_HighResolution_449020801_449280001_4FGL_J1337.4+5502_daily_bin809.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.56
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10241E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    6.5832       1.0000         .10000E-03   10000.    
     4 'Prefactor '    93.067       1.0000         .10000E-03   10000.    
     5 'norm      '    5.2653       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.7122       1.0000         .10000E-03   10000.    
     8 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    81.465       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10390E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.6053       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.0174       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .72700E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    22.605       1.0000         .10000E-03   10000.    
    17 'norm      '    12.428       1.0000         .10000E-03   10000.    
    18 'norm      '    .10040E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .41250E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .25946E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    134.47       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .14245E-02   1.0000         .10000E-03   10000.    
    24 'Prefactor '    3.1537       1.0000         .10000E-03   10000.    
    25 'Prefactor '    7.6092       1.0000         .10000E-03   10000.    
    26 'Prefactor '    2.8091       1.0000         .10000E-03   10000.    
    27 'Prefactor '    13.841       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10314E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .88259       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .93486       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=   3724.854     FROM MIGRAD    STATUS=CONVERGED    893 CALLS     4634 TOTAL
                     EDM=   .29E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    112.11        .54476E-05** at limit **
   2  Prefactor     .10000E-03    13.111       -.57994E-06** at limit **
   3  norm          6.5839        3.8031        .23794E-08    .83299E-04
   4  Prefactor     93.066        41.322        .38583E-07    .33611E-05
   5  norm          5.2653        3.7675        .10630E-07    .23372E-04
   6  Prefactor     .10000E-03    15.638       -.37018E-06** at limit **
   7  Prefactor     1.7092        20.935       -.12831E-05    .10600E-04
   8  norm          .10000E-03    5.8588        .19046E-06** at limit **
   9  Prefactor     81.468        56.605        .10363E-06    .36305E-05
  10  Prefactor     .10000E-03    50.273       -.29493E-05** at limit **
  11  Prefactor     .10000E-03    14.574        .64230E-06** at limit **
  12  norm          1.6051        3.0953       -.24999E-06    .29265E-04
  13  Prefactor     .10000E-03    22.611       -.59340E-06** at limit **
  14  Prefactor     1.0105        16.460        .37374E-06    .83594E-05
  15  Prefactor     .10000E-03    454.59       -.12252E-04** at limit **
  16  Prefactor     22.623        21.354       -.17191E-06    .10875E-04
  17  norm          12.428        3.2469        .19746E-07   -.15430E-04
  18  norm          .10000E-03    171.23       -.63979E-05** at limit **
  19  norm          .10000E-03    5.4471       -.71827E-06** at limit **
  20  Prefactor     .10000E-03    34.196       -.27011E-06** at limit **
  21  Prefactor     .10000E-03    309.54       -.21356E-05** at limit **
  22  Prefactor     134.49        111.88       -.73850E-06   -.14450E-04
  23  Prefactor     .10000E-03    157.17        .50671E-05** at limit **
  24  Prefactor     3.1533        6.0430        .28286E-07   -.32107E-04
  25  Prefactor     7.6111        32.253        .56306E-06   -.68007E-05
  26  Prefactor     2.8038        6.2440        .14116E-05    .50437E-04
  27  Prefactor     13.853        34.955       -.96179E-06   -.10820E-04
  28  Prefactor     .10000E-03    28.439        .79494E-06** at limit **
  29  Prefactor     .10000E-03    61.846        .81662E-06** at limit **
  30  Prefactor     .10000E-03    24.352        .47012E-06** at limit **
  31  Prefactor     .10000E-03    13.411        .12321E-06** at limit **
  32  Normalizat    .88230        .23151       -.63835E-06    .14515E-04
  33  Prefactor     .93525        .25379       -.32944E-06    .10195E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.58389
  Prefactor  = 93.0655
  norm       = 5.26534
  Prefactor  = 0.0001
  Prefactor  = 1.70924
  norm       = 0.0001
  Prefactor  = 81.4677
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.60506
  Prefactor  = 0.0001
  Prefactor  = 1.01049
  Prefactor  = 0.0001
  Prefactor  = 22.6232
  norm       = 12.4283
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 134.492
  Prefactor  = 0.0001
  Prefactor  = 3.15329
  Prefactor  = 7.61106
  Prefactor  = 2.8038
  Prefactor  = 13.853
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.882301
  Prefactor  = 0.935251
 **********
 **   18 **HESSE 
 **********

 FCN=   3724.854     FROM HESSE     STATUS=OK           697 CALLS     5331 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    113.08        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    13.314        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          6.5839        3.7977        .81365E-04   -1.5195    
   4  Prefactor     93.066        41.407        .41658E-04   -1.3776    
   5  norm          5.2653        3.7629        .95414E-04   -1.5249    
   6  Prefactor     .10000E-03    15.642        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.7092        21.303        .16061E-02   -1.5446    
   8  norm          .10000E-03    6.0082        .28807E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     81.468        56.663        .44500E-04   -1.3900    
  10  Prefactor     .10000E-03    51.168        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    14.587        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.6051        3.0508        .14443E-03   -1.5455    
  13  Prefactor     .10000E-03    22.622        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.0105        19.119        .33845E-02   -1.5507    
  15  Prefactor     .10000E-03    444.39        .85106E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     22.623        22.773        .84248E-04   -1.4756    
  17  norm          12.428        3.2477        .54181E-04   -1.5003    
  18  norm          .10000E-03    172.11        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    9.9466        .26100E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    34.210        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    309.66        .21450E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     134.49        110.79        .17365E-03   -1.3383    
  23  Prefactor     .10000E-03    157.36        .20511E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     3.1533        6.0128        .98895E-03   -1.5353    
  25  Prefactor     7.6111        32.112        .14538E-03   -1.5156    
  26  Prefactor     2.8038        6.1951        .17098E-03   -1.5373    
  27  Prefactor     13.853        34.765        .10766E-03   -1.4963    
  28  Prefactor     .10000E-03    28.371        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    61.910        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    24.357        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    13.444        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .88230        .26297        .24468E-03   -.97085    
  33  Prefactor     .93525        .29186        .28668E-03   -.94920    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.78613e-10
Minuit parameter uncertainties:
  1  4.67722e-05
  2  5.5402e-05
  3  3.79783
  4  41.4196
  5  3.7631
  6  1.75709e-06
  7  12.0733
  8  7.01001e-06
  9  56.7006
  10  0.000220365
  11  3.80544e-06
  12  3.05106
  13  1.35157e-06
  14  8.79371
  15  0.000876569
  16  22.7815
  17  3.2477
  18  3.54373e-05
  19  0.000106789
  20  4.70929e-06
  21  1.39733e-05
  22  110.959
  23  0.000351573
  24  6.01394
  25  31.2956
  26  6.1965
  27  34.8163
  28  8.1332e-05
  29  2.1874e-05
  30  3.84207e-06
  31  3.6844e-06
  32  0.263357
  33  0.292354
Done.

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

Extracting fit parameters...

4FGL J1337.4+5502
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  1.352e-06  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:  9.353e-01  2.924e-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.823e-01  2.634e-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: 7.72e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.10e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/791685/likelihoodResults_449020801_449280001_4FGL_J1337.4+5502_daily_bin809.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) = 3724.8539592
delta logL = -0.000210340165722

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3724.85375168
delta logL = -2.8242729968e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.8070       1.0000          .0000       10.000    
     3 'Normalizat'    .88229       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93526       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=   3724.854     FROM MIGRAD    STATUS=CONVERGED    107 CALLS      288 TOTAL
                     EDM=   .60E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    271.77        .18142E-01** at limit **
   2  Index         2.0370        8.7261        .50000       -.24704E-07
   3  Normalizat    .88230        .15868E-01    .24468E-03    .13149E-04
   4  Prefactor     .93525        .19197E-01    .28668E-03    .62537E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.037
  Normalizat = 0.8823
  Prefactor  = 0.935252
 **********
 **   18 **HESSE 
 **********

 FCN=   3724.854     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      317 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1382.4        .32462E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0370        5.6623        .50000       -.63428    
   3  Normalizat    .88230        .38223E-01    .97873E-05   -.97085    
   4  Prefactor     .93525        .46241E-01    .11467E-04   -.94920    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.16785e-10
Minuit parameter uncertainties:
  1  0.000213529
  2  2311.55
  3  0.0382247
  4  0.0462431
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/791685': 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) = 3724.85374834
delta logL = 5.23814378539e-07

Extracting fit parameters...

4FGL J1337.4+5502
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  2.135e-04  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  2.037e+00  2.312e+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:  9.353e-01  4.624e-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.823e-01  3.822e-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/791685/cmap_HighResolution_449020801_449280001_4FGL_J1337.4+5502_daily_bin809.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.10e-03', job_status='DONE', photon_flux_upper_limit='7.72e-08', time_completed='2021-09-08 04:28:49.071108', job_id='791685', GAL2='0.94', fit_tolerance='1e-08', EG2='0.88', EG='0.88', time_epoch_completed='1631100529.07', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='5.24e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.76' WHERE bin_id='809' AND source_name='4FGL J1337.4+5502' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 04:28:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0048>
Subject: Job 791685: <4FGL_J1337.4+5502_daily_bin809> in cluster <slac> Done

Job <4FGL_J1337.4+5502_daily_bin809> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  8 04:15:30 2021
Job was executed on host(s) <bullet0048>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 04:15:35 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:15:35 2021
Terminated at Wed Sep  8 04:28:49 2021
Results reported at Wed Sep  8 04:28:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1337.4+5502_daily_bin809 204.367 55.0418 449020801 449280001 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 :                                   777.09 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             283.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   795 sec.
    Turnaround time :                            799 sec.

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

