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


Performing analysis on: 4FGL_J1337.4+5502_daily_bin820
RA = 204.367, Dec = 55.0418
tmin = 451872001, tmax = 452131201
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='791700', job_status='RUN', time_executed='2021-09-08 04:15:48.759750', time_epoch_executed='1631099748.76' WHERE source_name='4FGL J1337.4+5502' and cadence='daily' and bin_id='820'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/791700

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/791700/ft1_4FGL_J1337.4+5502_daily_bin820.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/791700/ft2_4FGL_J1337.4+5502_daily_bin820.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/791700/ft1_4FGL_J1337.4+5502_daily_bin820.fits outfile=/scratch/kocevski/791700/ft1_filteredMKT_4FGL_J1337.4+5502_daily_bin820.fits ra=204.367 dec=55.0418 rad=12.0 tmin=451872001.0 tmax=452131201.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 3.40
user 3.16
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/791700/ft1_filtered_4FGL_J1337.4+5502_daily_bin820.fits evtable="EVENTS" scfile=/scratch/kocevski/791700/ft2_4FGL_J1337.4+5502_daily_bin820.fits sctable="SC_DATA" expcube=/scratch/kocevski/791700/ltcube_451872001_452131201_4FGL_J1337.4+5502_daily_bin820.fits outfile=/scratch/kocevski/791700/expmap_451872001_452131201_4FGL_J1337.4+5502_daily_bin820.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/791700/ltcube_451872001_452131201_4FGL_J1337.4+5502_daily_bin820.fits
.....................!
real 192.10
user 187.02
sys 4.37

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/791700/ft1_filtered_4FGL_J1337.4+5502_daily_bin820.fits scfile=/scratch/kocevski/791700/ft2_4FGL_J1337.4+5502_daily_bin820.fits outfile=/scratch/kocevski/791700/cmap_451872001_452131201_4FGL_J1337.4+5502_daily_bin820.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.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/791700/ft1_filtered_4FGL_J1337.4+5502_daily_bin820.fits scfile=/scratch/kocevski/791700/ft2_4FGL_J1337.4+5502_daily_bin820.fits outfile=/scratch/kocevski/791700/cmap_HighResolution_451872001_452131201_4FGL_J1337.4+5502_daily_bin820.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/791700/ft1_filtered_4FGL_J1337.4+5502_daily_bin820.fits evtable="EVENTS" scfile=/scratch/kocevski/791700/ft2_4FGL_J1337.4+5502_daily_bin820.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/791700/Model_4FGL_J1337.4+5502_daily_bin820.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/791700/ft1_filtered_4FGL_J1337.4+5502_daily_bin820.fits.....................!
real 47.17
user 45.73
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    3.4311       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    4.2392       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .12382E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.1856       1.0000         .10000E-03   10000.    
    11 'Prefactor '    45.885       1.0000         .10000E-03   10000.    
    12 'norm      '    6.3617       1.0000         .10000E-03   10000.    
    13 'Prefactor '    113.04       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .55200E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11530E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    16.268       1.0000         .10000E-03   10000.    
    17 'norm      '    8.5801       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    228.03       1.0000         .10000E-03   10000.    
    22 'Prefactor '    10.297       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .35683E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    7.4854       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    1.1353       1.0000         .10000E-03   10000.    
    32 'Normalizat'    .88749       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .81009       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=   5494.132     FROM MIGRAD    STATUS=CONVERGED    860 CALLS     4523 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    34.920        .20081E-05** at limit **
   2  Prefactor     .10000E-03    3.5034       -.67289E-07** at limit **
   3  norm          3.4316        2.2008       -.49014E-07   -.11355E-04
   4  Prefactor     .10000E-03    16.120        .59835E-05** at limit **
   5  norm          4.2399        2.7849       -.13877E-06   -.26891E-03
   6  Prefactor     .10000E-03    13.008        .45368E-05** at limit **
   7  Prefactor     .10000E-03    4.1211        .26786E-07** at limit **
   8  norm          .10000E-03    1.5956       -.89238E-07** at limit **
   9  Prefactor     .10000E-03    42.684        .13472E-04** at limit **
  10  Prefactor     9.1910        25.028        .42962E-05   -.10004E-04
  11  Prefactor     45.889        43.999        .36578E-05   -.36937E-04
  12  norm          6.3610        5.9062       -.93620E-06   -.14894E-03
  13  Prefactor     113.03        65.581       -.15292E-05    .44883E-04
  14  Prefactor     .10004E-03    2.4076        .17069E-05** at limit **
  15  Prefactor     .10000E-03    53.488       -.88572E-05** at limit **
  16  Prefactor     16.257        10.025       -.66725E-06   -.10947E-02
  17  norm          8.5802        2.3410       -.11701E-06    .16859E-03
  18  norm          .10000E-03    30.145       -.12875E-04** at limit **
  19  norm          .10000E-03    .93592        .20371E-07** at limit **
  20  Prefactor     .10000E-03    12.069       -.12975E-05** at limit **
  21  Prefactor     228.04        261.17        .97672E-05   -.72704E-06
  22  Prefactor     10.275        36.400       -.38436E-04    .74578E-04
  23  Prefactor     .10006E-03    158.82       -.65616E-04** at limit **
  24  Prefactor     .10000E-03    1.9493        .76129E-07** at limit **
  25  Prefactor     .10000E-03    11.257       -.52972E-05** at limit **
  26  Prefactor     7.4851        3.1959        .86590E-06    .86479E-03
  27  Prefactor     .10000E-03    5.5735       -.89382E-06** at limit **
  28  Prefactor     .10000E-03    18.447       -.57545E-05** at limit **
  29  Prefactor     .10000E-03    38.005        .97283E-05** at limit **
  30  Prefactor     .10000E-03    9.9170        .18616E-05** at limit **
  31  Prefactor     1.1318        35.094       -.40120E-05   -.24673E-03
  32  Normalizat    .88739        .16089       -.28642E-06    .20547E-03
  33  Prefactor     .81009        .18414        .17041E-05    .69425E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.43159
  Prefactor  = 0.0001
  norm       = 4.23988
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.19099
  Prefactor  = 45.8885
  norm       = 6.36101
  Prefactor  = 113.035
  Prefactor  = 0.00010004
  Prefactor  = 0.0001
  Prefactor  = 16.2572
  norm       = 8.5802
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 228.041
  Prefactor  = 10.2745
  Prefactor  = 0.000100056
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.48505
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.13181
  Normalizat = 0.88739
  Prefactor  = 0.810087
 **********
 **   18 **HESSE 
 **********

 FCN=   5494.132     FROM HESSE     STATUS=OK           683 CALLS     5206 TOTAL
                     EDM=   .74E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    34.930        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.5248        .13540E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.4316        2.2000        .85295E-04   -1.5337    
   4  Prefactor     .10000E-03    16.190        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          4.2399        2.7814        .96326E-04   -1.5296    
   6  Prefactor     .10000E-03    13.014        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.1391        .14693E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    1.6034        .91414E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    42.734        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     9.1910        24.832        .13224E-03   -1.5102    
  11  Prefactor     45.889        43.940        .59190E-04   -1.4352    
  12  norm          6.3610        5.8690        .13418E-03   -1.5203    
  13  Prefactor     113.03        65.737        .37838E-04   -1.3578    
  14  Prefactor     .10004E-03    7.6771        .20312E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    53.914        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     16.257        9.2588        .99302E-04   -1.4901    
  17  norm          8.5802        2.3452        .55641E-04   -1.5122    
  18  norm          .10000E-03    30.176        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    .93838        .70017E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    12.078        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     228.04        261.18        .13398E-03   -1.2676    
  22  Prefactor     10.275        36.319        .12487E-03   -1.5067    
  23  Prefactor     .10006E-03    159.75        .42630E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    1.9672        .10105E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    11.303        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     7.4851        3.2035        .80801E-04   -1.5161    
  27  Prefactor     .10000E-03    5.5762        .17091E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    18.496        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    38.121        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    9.9202        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     1.1318        36.421        .43745E-03   -1.5495    
  32  Normalizat    .88739        .18931        .22230E-03   -.96905    
  33  Prefactor     .81009        .21587        .27810E-03   -.99358    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.37925e-09
Minuit parameter uncertainties:
  1  6.49166e-06
  2  2.57448e-06
  3  2.20008
  4  2.96738e-05
  5  2.78153
  6  4.9633e-06
  7  2.42893e-06
  8  6.17833e-06
  9  0.000257833
  10  24.86
  11  43.9713
  12  5.86953
  13  65.779
  14  0.00111462
  15  5.65804e-05
  16  9.25963
  17  2.34521
  18  2.77871e-06
  19  2.32871e-06
  20  4.54034e-06
  21  262.53
  22  36.3973
  23  0.00601159
  24  1.14326e-05
  25  2.7758e-05
  26  3.20362
  27  4.36384e-07
  28  3.3987e-05
  29  0.000140698
  30  2.399e-06
  31  12.8488
  32  0.189448
  33  0.216097
Done.

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

Extracting fit parameters...

4FGL J1337.4+5502
   Spectrum: PowerLaw
314    Prefactor:  1.130e+02  6.578e+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.101e-01  2.161e-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.874e-01  1.894e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.66
Ra Dec: 204.367 55.042
Photon Index (Fixed Index): 2.76 +/- 0.00
Photon Flux (Fixed Index): 7.78e-08 +/- 4.52e-08
Energy Flux (Fixed Index): 1.79e-05 +/- 1.04e-05

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) = 5493.69915141
delta logL = 0.432523325409

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5493.69756006
delta logL = 0.434114680283

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    54.257       1.0000         .10000E-03   10000.    
     2 'Index     '    3.5050       1.0000          .0000       10.000    
     3 'Normalizat'    .86037       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83677       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=   5493.698     FROM MIGRAD    STATUS=CONVERGED     78 CALLS      287 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     54.241        86.124        .54454E-04   -.70106E-04
   2  Index         3.5053        1.1704        .51020E-02   -.38030E-04
   3  Normalizat    .86030        .18391        .22529E-03   -.31561E-03
   4  Prefactor     .83698        .21779        .27395E-03   -.25527E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 54.2412
  Index      = 3.5053
  Normalizat = 0.860297
  Prefactor  = 0.836977
 **********
 **   18 **HESSE 
 **********

 FCN=   5493.698     FROM HESSE     STATUS=OK            25 CALLS      312 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     54.241        67.850        .10891E-04   -1.4234    
   2  Index         3.5053        .92418        .20408E-03   -.30358    
   3  Normalizat    .86030        .18388        .45057E-04   -.97870    
   4  Prefactor     .83698        .21749        .54789E-04   -.98379    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.24368e-10
Minuit parameter uncertainties:
  1  67.9465
  2  0.930056
  3  0.184016
  4  0.217711
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/791700': 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) = 5493.69755904
delta logL = 0.434115698491

Extracting fit parameters...

4FGL J1337.4+5502
   Spectrum: PowerLaw
314    Prefactor:  5.424e+01  6.795e+01  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  3.505e+00  9.301e-01  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.370e-01  2.177e-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.603e-01  1.840e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.62
Ra Dec: 204.367 55.042
Photon Index (Free Index): 3.51 +/- 0.93
Photon Flux (Free Index): 9.60e-08 +/- 5.14e-08
Energy Flux (Free Index): 1.60e-05 +/- 8.67e-06

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/791700/cmap_HighResolution_451872001_452131201_4FGL_J1337.4+5502_daily_bin820.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.78e-08', energy_flux2='1.60e-05', photon_flux_error='4.52e-08', dlogl='4.34e-01', energy_flux='1.79e-05', photon_flux2='9.60e-08', job_status='DONE', time_completed='2021-09-08 04:29:44.947317', photon_index_error2='0.93', photon_index2='3.51', ts='4.66', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', energy_flux_error2='8.67e-06', EG='0.89', time_epoch_completed='1631100584.95', return_code='0', job_id='791700', GAL2='0.84', EG2='0.86', return_code2='0', energy_flux_error='1.04e-05', photon_flux_error2='5.14e-08', ts2='5.62', photon_index='2.76' WHERE bin_id='820' AND source_name='4FGL J1337.4+5502' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 04:29:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0193>
Subject: Job 791700: <4FGL_J1337.4+5502_daily_bin820> in cluster <slac> Done

Job <4FGL_J1337.4+5502_daily_bin820> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  8 04:15:32 2021
Job was executed on host(s) <bullet0193>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 04:15:40 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:40 2021
Terminated at Wed Sep  8 04:29:45 2021
Results reported at Wed Sep  8 04:29:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1337.4+5502_daily_bin820 204.367 55.0418 451872001 452131201 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 :                                   833.20 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             330.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   848 sec.
    Turnaround time :                            853 sec.

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

