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


Performing analysis on: 4FGL_J1337.4+5502_daily_bin1179
RA = 204.367, Dec = 55.0418
tmin = 544924801, tmax = 545184001
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='793417', job_status='RUN', time_executed='2021-09-08 04:21:18.830625', time_epoch_executed='1631100078.83' WHERE source_name='4FGL J1337.4+5502' and cadence='daily' and bin_id='1179'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/793417

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/793417/ft1_4FGL_J1337.4+5502_daily_bin1179.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/793417/ft2_4FGL_J1337.4+5502_daily_bin1179.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/793417/ft1_4FGL_J1337.4+5502_daily_bin1179.fits outfile=/scratch/kocevski/793417/ft1_filteredMKT_4FGL_J1337.4+5502_daily_bin1179.fits ra=204.367 dec=55.0418 rad=12.0 tmin=544924801.0 tmax=545184001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.16
user 3.90
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/793417/ft1_filtered_4FGL_J1337.4+5502_daily_bin1179.fits evtable="EVENTS" scfile=/scratch/kocevski/793417/ft2_4FGL_J1337.4+5502_daily_bin1179.fits sctable="SC_DATA" expcube=/scratch/kocevski/793417/ltcube_544924801_545184001_4FGL_J1337.4+5502_daily_bin1179.fits outfile=/scratch/kocevski/793417/expmap_544924801_545184001_4FGL_J1337.4+5502_daily_bin1179.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/793417/ltcube_544924801_545184001_4FGL_J1337.4+5502_daily_bin1179.fits
.....................!
real 192.90
user 187.06
sys 5.36

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/793417/ft1_filtered_4FGL_J1337.4+5502_daily_bin1179.fits scfile=/scratch/kocevski/793417/ft2_4FGL_J1337.4+5502_daily_bin1179.fits outfile=/scratch/kocevski/793417/cmap_544924801_545184001_4FGL_J1337.4+5502_daily_bin1179.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/793417/ft1_filtered_4FGL_J1337.4+5502_daily_bin1179.fits scfile=/scratch/kocevski/793417/ft2_4FGL_J1337.4+5502_daily_bin1179.fits outfile=/scratch/kocevski/793417/cmap_HighResolution_544924801_545184001_4FGL_J1337.4+5502_daily_bin1179.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.54
user 0.37
sys 0.17

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

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

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 86.8978625749

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 84.3411877108

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.4032       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.1042       1.0000         .10000E-03   10000.    
     3 'norm      '    3.6111       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .85682E-01   1.0000         .10000E-03   10000.    
     5 'norm      '    1.3704       1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.9973       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.9880       1.0000         .10000E-03   10000.    
     8 'norm      '    64.762       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.2099       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .26956       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .24762       1.0000         .10000E-03   10000.    
    12 'norm      '    .11838E-01   1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.7312       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.0992       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.5055       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.6613       1.0000         .10000E-03   10000.    
    17 'norm      '    7.0609       1.0000         .10000E-03   10000.    
    18 'norm      '    3.8570       1.0000         .10000E-03   10000.    
    19 'norm      '    2.0332       1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.0150       1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.5156       1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.0564       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .13743       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .13040E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10063       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .17428       1.0000         .10000E-03   10000.    
    27 'Prefactor '    2.8051       1.0000         .10000E-03   10000.    
    28 'Prefactor '    2.6706       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .18423       1.0000         .10000E-03   10000.    
    30 'Prefactor '    8.1876       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .56294       1.0000         .10000E-03   10000.    
    32 'Normalizat'    .10017E-01   1.0000         .10000E-01   10.000    
    33 'Prefactor '    .21673       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   84.32681     FROM MIGRAD    STATUS=CONVERGED    175 CALLS      421 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.4032        1.0023         .0000         .0000    
   2  Prefactor     1.1042        1.1851         .0000         .0000    
   3  norm          3.6111        1.0099         .0000         .0000    
   4  Prefactor     .10004E-03    .22291       -.54527E-05** at limit **
   5  norm          .13025E-03    .21675        .40256E-05** at limit **
   6  Prefactor     7.9973        1.0020         .0000         .0000    
   7  Prefactor     1.9880        1.0358         .0000         .0000    
   8  norm          64.839        1.0006       -.36257E-06    .10819E-01
   9  Prefactor     .10000E-03    .26449       -.14273E-04** at limit **
  10  Prefactor     .10015E-03    .26474        .20754E-04** at limit **
  11  Prefactor     .10000E-03    .25974       -.56027E-05** at limit **
  12  norm          .10000E-03    .20621       -.37835E-06** at limit **
  13  Prefactor     7.7312        1.0021         .0000         .0000    
  14  Prefactor     1.0992        1.1889         .0000         .0000    
  15  Prefactor     4.5055        1.0063         .0000         .0000    
  16  Prefactor     1.6613        1.0545         .0000         .0000    
  17  norm          7.0722        1.0033        .70775E-06    .45769E-04
  18  norm          3.8570        1.0087         .0000         .0000    
  19  norm          2.0332        1.0340         .0000         .0000    
  20  Prefactor     7.0150        1.0026         .0000         .0000    
  21  Prefactor     7.5156        1.0022         .0000         .0000    
  22  Prefactor     .10411E-03    .12979       -.15863E-05** at limit **
  23  Prefactor     .10044E-03    .23465       -.25780E-05** at limit **
  24  Prefactor     .10000E-03    .20571       -.54334E-06** at limit **
  25  Prefactor     .10000E-03    .22630       -.45359E-05** at limit **
  26  Prefactor     .10001E-03    .24303       -.76882E-05** at limit **
  27  Prefactor     2.8051        1.0168         .0000         .0000    
  28  Prefactor     .10225E-03    .97174E-01    .45700E-04** at limit **
  29  Prefactor     .10074E-03    .24529       -.79609E-05** at limit **
  30  Prefactor     8.1876        1.0019         .0000         .0000    
  31  Prefactor     .10000E-03    .33207       -.69714E-05** at limit **
  32  Normalizat    .10000E-01    .25505        .15516E-03** at limit **
  33  Prefactor     .21676        .50663        .10931E-04   -.15895E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.4032
  Prefactor  = 1.10422
  norm       = 3.61115
  Prefactor  = 0.000100045
  norm       = 0.000130246
  Prefactor  = 7.99726
  Prefactor  = 1.98797
  norm       = 64.8389
  Prefactor  = 0.0001
  Prefactor  = 0.000100147
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 7.73116
  Prefactor  = 1.0992
  Prefactor  = 4.50549
  Prefactor  = 1.66126
  norm       = 7.07225
  norm       = 3.85705
  norm       = 2.03325
  Prefactor  = 7.01503
  Prefactor  = 7.51563
  Prefactor  = 0.000104112
  Prefactor  = 0.000100441
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 2.80506
  Prefactor  = 0.000102247
  Prefactor  = 0.000100745
  Prefactor  = 8.18764
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 0.216761
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   84.32681     FROM HESSE     STATUS=FAILED        11 CALLS      432 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     509.96        502.52         .0000       -1.5164    
   2  Prefactor     1.1042        1.1851         .0000       -1.5498    
   3  norm          3.6111        1.0099         .0000       -1.5328    
   4  Prefactor     .10004E-03    .22291       -.54527E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .13025E-03    .21675        .40256E-05   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.9973        1.0020         .0000       -1.5142    
   7  Prefactor     1.9880        1.0358         .0000       -1.5426    
   8  norm          64.839        1.0006       -.36257E-06   -1.4096    
   9  Prefactor     .10000E-03    .26449       -.14273E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10015E-03    .26474        .20754E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    .25974       -.56027E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .20621       -.37835E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     7.7312        1.0021         .0000       -1.5152    
  14  Prefactor     1.0992        1.1889         .0000       -1.5498    
  15  Prefactor     4.5055        1.0063         .0000       -1.5283    
  16  Prefactor     1.6613        1.0545         .0000       -1.5450    
  17  norm          7.0722        1.0033        .70775E-06   -1.5176    
  18  norm          3.8570        1.0087         .0000       -1.5315    
  19  norm          2.0332        1.0340         .0000       -1.5423    
  20  Prefactor     7.0150        1.0026         .0000       -1.5178    
  21  Prefactor     7.5156        1.0022         .0000       -1.5160    
  22  Prefactor     .10411E-03    .12979       -.15863E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10044E-03    .23465       -.25780E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    .20571       -.54334E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    .22630       -.45359E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10001E-03    .24303       -.76882E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     2.8051        1.0168         .0000       -1.5373    
  28  Prefactor     .10225E-03    .97174E-01    .45700E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10074E-03    .24529       -.79609E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     8.1876        1.0019         .0000       -1.5136    
  31  Prefactor     .10000E-03    .33207       -.69714E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .10000E-01    .25505        .15516E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     .21676        .50663        .10931E-04   -1.2753    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.44592e-10
Minuit parameter uncertainties:
  1  1.0023
  2  1.18513
  3  1.00992
  4  0.000200041
  5  0.00512084
  6  1.00197
  7  1.03576
  8  1.00062
  9  1.18225e-05
  10  0.000394407
  11  1.5794e-06
  12  3.24191e-07
  13  1.00211
  14  1.18888
  15  1.00629
  16  1.05452
  17  1.00333
  18  1.00866
  19  1.03398
  20  1.00256
  21  1.00223
  22  0.00146105
  23  0.000643129
  24  3.22959e-07
  25  7.41148e-07
  26  7.78399e-05
  27  1.01684
  28  0.000934647
  29  0.000854946
  30  1.00188
  31  3.35559e-07
  32  1.489e-06
  33  0.517446
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 84.3268074829

Extracting fit parameters...

4FGL J1337.4+5502
   Spectrum: PowerLaw
314    Prefactor:  7.731e+00  1.002e+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

GAL_V02
   Spectrum: PowerLaw
661    Prefactor:  2.168e-01  5.174e-01  0.000e+00  1.000e+01 ( 1.000e+00)
662        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
663        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
660   Normalization:  1.000e-02  1.489e-06  1.000e-02  1.000e+01 ( 1.000e+00)

calc_int error: parameter max 10000.0 is not large enough
delta logLike = 0.0

TS (Fixed Index): 0.00
Ra Dec: 204.367 55.042
Photon Flux Upper Limit: -1.00e+00 ph cm-2 s-1
Energy Flux Upper Limit: -7.90e+04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/793417/likelihoodResults_544924801_545184001_4FGL_J1337.4+5502_daily_bin1179.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): 101
logL (Free Index) = 84.3273609697
delta logL = -0.000553486854216

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 84.3273609697
delta logL = -0.000553486854216

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Index     '    2.7584       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   84.32736     FROM MIGRAD    STATUS=CONVERGED     15 CALLS       62 TOTAL
                     EDM=   .00E+00  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1    Index       2.7584        1.0068        .22722         .0000    
                               ERR DEF=  .500    
Final values: 
  Index      = 2.7584
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   84.32736     FROM HESSE     STATUS=FAILED         7 CALLS       69 TOTAL
                     EDM=   .00E+00  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1    Index       .86181        1.9542        .22722       -.46488    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 0
Minuit parameter uncertainties:
  1  1.01551
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/793417': 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): 101
logL (Free Index) = 84.3273609697
delta logL = -0.000553486854216

Extracting fit parameters...

4FGL J1337.4+5502
   Spectrum: PowerLaw
314    Prefactor:  7.731e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13) fixed
315        Index:  2.758e+00  1.016e+00  0.000e+00  1.000e+01 (-1.000e+00)
316        Scale:  5.686e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
661    Prefactor:  2.144e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
662        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
663        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
660   Normalization:  1.022e-02  0.000e+00  1.000e-02  1.000e+01 ( 1.000e+00) fixed


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/793417/cmap_HighResolution_544924801_545184001_4FGL_J1337.4+5502_daily_bin1179.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='-7.90e+04', job_status='DONE', photon_flux_upper_limit='-1.00e+00', time_completed='2021-09-08 04:27:17.438898', job_id='793417', GAL2='0.21', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1631100437.44', return_code2='101', ts='0.00', comment='SUCCESS', return_code='101', GAL='0.22', dlogl='-5.53e-04', ts2='0.00', photon_index_error='0.00', photon_index='2.76' WHERE bin_id='1179' AND source_name='4FGL J1337.4+5502' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 04:27:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0117>
Subject: Job 793417: <4FGL_J1337.4+5502_daily_bin1179> in cluster <slac> Done

Job <4FGL_J1337.4+5502_daily_bin1179> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep  8 04:20:56 2021
Job was executed on host(s) <bullet0117>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 04:21:05 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:21:05 2021
Terminated at Wed Sep  8 04:27:17 2021
Results reported at Wed Sep  8 04:27:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1337.4+5502_daily_bin1179 204.367 55.0418 544924801 545184001 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 :                                   334.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             458.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   372 sec.
    Turnaround time :                            381 sec.

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

