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


Performing analysis on: 4FGL_J1337.4+5502_daily_bin2
RA = 204.367, Dec = 55.0418
tmin = 239846401, tmax = 240105601
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='784348', job_status='RUN', time_executed='2021-09-08 03:57:53.524064', time_epoch_executed='1631098673.52' WHERE source_name='4FGL J1337.4+5502' and cadence='daily' and bin_id='2'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/784348

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/784348/ft1_4FGL_J1337.4+5502_daily_bin2.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/784348/ft2_4FGL_J1337.4+5502_daily_bin2.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/784348/ft1_4FGL_J1337.4+5502_daily_bin2.fits outfile=/scratch/kocevski/784348/ft1_filteredMKT_4FGL_J1337.4+5502_daily_bin2.fits ra=204.367 dec=55.0418 rad=12.0 tmin=239846401.0 tmax=240105601.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.48
user 1.28
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/784348/ft1_filtered_4FGL_J1337.4+5502_daily_bin2.fits" evtable="EVENTS" scfile=/scratch/kocevski/784348/ft2_4FGL_J1337.4+5502_daily_bin2.fits sctable="SC_DATA" outfile=/scratch/kocevski/784348/ltcube_239846401_240105601_4FGL_J1337.4+5502_daily_bin2.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/784348/ft2_4FGL_J1337.4+5502_daily_bin2.fits
.....................!
real 18.98
user 18.56
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/784348/ft1_filtered_4FGL_J1337.4+5502_daily_bin2.fits evtable="EVENTS" scfile=/scratch/kocevski/784348/ft2_4FGL_J1337.4+5502_daily_bin2.fits sctable="SC_DATA" expcube=/scratch/kocevski/784348/ltcube_239846401_240105601_4FGL_J1337.4+5502_daily_bin2.fits outfile=/scratch/kocevski/784348/expmap_239846401_240105601_4FGL_J1337.4+5502_daily_bin2.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/784348/ltcube_239846401_240105601_4FGL_J1337.4+5502_daily_bin2.fits
.....................!
real 193.11
user 187.96
sys 4.46

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/784348/ft1_filtered_4FGL_J1337.4+5502_daily_bin2.fits scfile=/scratch/kocevski/784348/ft2_4FGL_J1337.4+5502_daily_bin2.fits outfile=/scratch/kocevski/784348/cmap_239846401_240105601_4FGL_J1337.4+5502_daily_bin2.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.70
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/784348/ft1_filtered_4FGL_J1337.4+5502_daily_bin2.fits scfile=/scratch/kocevski/784348/ft2_4FGL_J1337.4+5502_daily_bin2.fits outfile=/scratch/kocevski/784348/cmap_HighResolution_239846401_240105601_4FGL_J1337.4+5502_daily_bin2.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=204.367 yref=55.0418 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.60
user 0.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    2.4456       1.0000         .10000E-03   10000.    
     4 'Prefactor '    45.732       1.0000         .10000E-03   10000.    
     5 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10237E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10114E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .33047E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    18.110       1.0000         .10000E-03   10000.    
    10 'Prefactor '    28.149       1.0000         .10000E-03   10000.    
    11 'Prefactor '    26.460       1.0000         .10000E-03   10000.    
    12 'norm      '    24.687       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10112E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    104.19       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11142E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.6167       1.0000         .10000E-03   10000.    
    18 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    107.13       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10354E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    3.2655       1.0000         .10000E-03   10000.    
    25 'Prefactor '    13.504       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10199E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    14.249       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    26.527       1.0000         .10000E-03   10000.    
    31 'Prefactor '    11.334       1.0000         .10000E-03   10000.    
    32 'Normalizat'    .85648       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .96841       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=   4332.864     FROM MIGRAD    STATUS=CONVERGED    894 CALLS     4656 TOTAL
                     EDM=   .34E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    30.487       -.11539E-04** at limit **
   2  Prefactor     .10000E-03    4.6241        .31380E-07** at limit **
   3  norm          2.4451        2.0959        .10358E-06    .73122E-05
   4  Prefactor     45.702        32.828        .60651E-05   -.36170E-04
   5  norm          .10000E-03    1.7809        .27465E-06** at limit **
   6  Prefactor     .10000E-03    65.640        .59301E-05** at limit **
   7  Prefactor     .10001E-03    6.3622       -.71398E-07** at limit **
   8  norm          .10006E-03    2.8355        .48509E-06** at limit **
   9  Prefactor     18.079        44.136       -.50592E-05   -.46857E-04
  10  Prefactor     28.149        31.860        .48469E-06   -.13001E-04
  11  Prefactor     26.456        38.973        .12298E-04   -.16897E-04
  12  norm          24.682        9.4460       -.19571E-05   -.57682E-04
  13  Prefactor     .10000E-03    44.747       -.15345E-04** at limit **
  14  Prefactor     .10000E-03    5.8453       -.11078E-05** at limit **
  15  Prefactor     104.18        67.262       -.71628E-05    .13294E-04
  16  Prefactor     .10000E-03    8.8340       -.79840E-06** at limit **
  17  norm          2.6162        1.8019       -.40626E-07   -.31345E-03
  18  norm          .10000E-03    34.125        .95475E-05** at limit **
  19  norm          .10000E-03    2.1844       -.14664E-06** at limit **
  20  Prefactor     107.21        66.821        .35677E-04    .11310E-04
  21  Prefactor     .10000E-03    293.16        .23462E-05** at limit **
  22  Prefactor     .10000E-03    16.307        .78136E-06** at limit **
  23  Prefactor     .10000E-03    18.215        .25049E-05** at limit **
  24  Prefactor     3.2640        4.9092       -.17547E-08   -.26089E-03
  25  Prefactor     13.498        19.600        .15003E-05   -.21228E-04
  26  Prefactor     .10000E-03    1.7211        .19198E-06** at limit **
  27  Prefactor     .10000E-03    10.572        .33969E-06** at limit **
  28  Prefactor     14.250        24.685       -.26843E-06   -.31841E-04
  29  Prefactor     .10000E-03    34.141        .97460E-05** at limit **
  30  Prefactor     26.525        37.194        .55964E-07   -.83116E-05
  31  Prefactor     11.333        11.319        .26710E-06    .67301E-06
  32  Normalizat    .85667        .21036       -.29688E-06   -.97149E-04
  33  Prefactor     .96839        .24046       -.36265E-05   -.16542E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.44508
  Prefactor  = 45.7018
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  norm       = 0.000100058
  Prefactor  = 18.0793
  Prefactor  = 28.1487
  Prefactor  = 26.4555
  norm       = 24.6818
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 104.181
  Prefactor  = 0.000100001
  norm       = 2.61617
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 107.205
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.26396
  Prefactor  = 13.4976
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.25
  Prefactor  = 0.0001
  Prefactor  = 26.5247
  Prefactor  = 11.3334
  Normalizat = 0.856674
  Prefactor  = 0.968394
 **********
 **   18 **HESSE 
 **********

 FCN=   4332.864     FROM HESSE     STATUS=OK           697 CALLS     5353 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    30.484        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    4.6802        .13814E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.4451        2.0866        .85504E-04   -1.5395    
   4  Prefactor     45.702        32.870        .59289E-04   -1.4355    
   5  norm          .10000E-03    1.8371        .17145E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    65.775        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10001E-03    18.287        .32171E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10006E-03    43.169        .21011E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     18.079        43.427        .94115E-04   -1.4857    
  10  Prefactor     28.149        31.912        .75511E-04   -1.4646    
  11  Prefactor     26.456        38.869        .77879E-04   -1.4679    
  12  norm          24.682        9.4537        .80622E-04   -1.4714    
  13  Prefactor     .10000E-03    44.725        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.1189        .31069E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     104.18        67.461        .39393E-04   -1.3663    
  16  Prefactor     .10000E-03    8.9096        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.6162        1.7958        .69992E-04   -1.5384    
  18  norm          .10000E-03    34.125        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    2.1977        .94953E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     107.21        66.830        .19427E-03   -1.3633    
  21  Prefactor     .10000E-03    293.16        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    16.309        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    18.227        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     3.2640        4.8922        .17143E-03   -1.5347    
  25  Prefactor     13.498        19.593        .10900E-03   -1.4973    
  26  Prefactor     .10000E-03    1.7496        .16783E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    10.575        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     14.250        24.638        .10611E-03   -1.4953    
  29  Prefactor     .10000E-03    34.181        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     26.525        37.190        .77780E-04   -1.4677    
  31  Prefactor     11.333        11.320        .11900E-03   -1.5035    
  32  Normalizat    .85667        .24688        .24619E-03   -.98000    
  33  Prefactor     .96839        .28099        .27916E-03   -.93791    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.05355e-09
Minuit parameter uncertainties:
  1  8.34835e-06
  2  1.24302e-05
  3  2.08667
  4  32.8832
  5  3.20216e-06
  6  0.000100692
  7  0.000631086
  8  0.00316448
  9  43.5032
  10  31.931
  11  38.9064
  12  9.45426
  13  0.000188077
  14  0.000182105
  15  67.5111
  16  0.000214599
  17  1.79584
  18  4.07394e-06
  19  2.18385e-05
  20  66.8767
  21  4.1296e-06
  22  1.39045e-05
  23  2.03234e-05
  24  4.89282
  25  19.6024
  26  1.43593e-05
  27  1.68891e-05
  28  24.6558
  29  3.19756e-05
  30  37.2222
  31  11.3219
  32  0.247209
  33  0.281415
Done.

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

Extracting fit parameters...

4FGL J1337.4+5502
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  1.881e-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:  9.684e-01  2.814e-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.567e-01  2.472e-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.03e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.11e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/784348/likelihoodResults_239846401_240105601_4FGL_J1337.4+5502_daily_bin2.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) = 4332.86456928
delta logL = -0.000106438194962

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4332.86446359
delta logL = -7.43718373997e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10176E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.3949       1.0000          .0000       10.000    
     3 'Normalizat'    .85667       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96840       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=   4332.864     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      275 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10764E-03    41.399        .18142E-01** at limit **
   2  Index         3.2089        7.5334        .50000        .70468E-05
   3  Normalizat    .85668        .53653E-02    .24619E-03    .29231E-04
   4  Prefactor     .96839        .64672E-02    .27916E-03    .11851E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000107645
  Index      = 3.20889
  Normalizat = 0.856676
  Prefactor  = 0.968393
 **********
 **   18 **HESSE 
 **********

 FCN=   4332.864     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      304 TOTAL
                     EDM=   .74E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10764E-03    243.44        .36285E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.2089        6.2439        .50000       -.36636    
   3  Normalizat    .85668        .13092E-01    .98478E-05   -.98000    
   4  Prefactor     .96839        .15781E-01    .11167E-04   -.93791    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.43431e-09
Minuit parameter uncertainties:
  1  0.0866348
  2  912.347
  3  0.0130924
  4  0.015781
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/784348': 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) = 4332.86446336
delta logL = -5.18740307598e-07

Extracting fit parameters...

4FGL J1337.4+5502
   Spectrum: PowerLaw
314    Prefactor:  1.076e-04  8.663e-02  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  3.209e+00  9.123e+02  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.684e-01  1.578e-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.567e-01  1.309e-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/784348/cmap_HighResolution_239846401_240105601_4FGL_J1337.4+5502_daily_bin2.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.11e-03', job_status='DONE', photon_flux_upper_limit='1.03e-07', time_completed='2021-09-08 04:11:52.596185', job_id='784348', GAL2='0.97', fit_tolerance='1e-08', EG2='0.86', EG='0.86', time_epoch_completed='1631099512.6', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='-5.19e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.76' WHERE bin_id='2' AND source_name='4FGL J1337.4+5502' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 04:11:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0222>
Subject: Job 784348: <4FGL_J1337.4+5502_daily_bin2> in cluster <slac> Done

Job <4FGL_J1337.4+5502_daily_bin2> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  8 03:55:17 2021
Job was executed on host(s) <bullet0222>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 03:56:52 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:52 2021
Terminated at Wed Sep  8 04:11:53 2021
Results reported at Wed Sep  8 04:11:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1337.4+5502_daily_bin2 204.367 55.0418 239846401 240105601 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 :                                   837.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             313.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   902 sec.
    Turnaround time :                            996 sec.

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

