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


Performing analysis on: 4FGL_J1415.5+4830_daily_bin1
RA = 213.899, Dec = 48.5142
tmin = 239587201, tmax = 239846401
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='260659', job_status='RUN', time_executed='2021-09-09 05:16:46.685791', time_epoch_executed='1631189806.69' WHERE source_name='4FGL J1415.5+4830' and cadence='daily' and bin_id='1'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/260659

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

Retrieving the FT1 file...

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

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

Retrieving 41 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/260659/ft1_4FGL_J1415.5+4830_daily_bin1.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/260659/ft2_4FGL_J1415.5+4830_daily_bin1.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/260659/ft1_4FGL_J1415.5+4830_daily_bin1.fits outfile=/scratch/kocevski/260659/ft1_filteredMKT_4FGL_J1415.5+4830_daily_bin1.fits ra=213.899 dec=48.5142 rad=12.0 tmin=239587201.0 tmax=239846401.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.30
user 1.13
sys 0.16

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/260659/ft2_4FGL_J1415.5+4830_daily_bin1.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/260659/ft2_4FGL_J1415.5+4830_daily_bin1.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/260659/ft1_filteredMKT_4FGL_J1415.5+4830_daily_bin1.fits evtable="EVENTS" outfile="/scratch/kocevski/260659/ft1_filtered_4FGL_J1415.5+4830_daily_bin1.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.50
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/260659/ft1_filtered_4FGL_J1415.5+4830_daily_bin1.fits" evtable="EVENTS" scfile=/scratch/kocevski/260659/ft2_4FGL_J1415.5+4830_daily_bin1.fits sctable="SC_DATA" outfile=/scratch/kocevski/260659/ltcube_239587201_239846401_4FGL_J1415.5+4830_daily_bin1.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/260659/ft2_4FGL_J1415.5+4830_daily_bin1.fits
.....................!
real 15.18
user 14.78
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/260659/ft1_filtered_4FGL_J1415.5+4830_daily_bin1.fits evtable="EVENTS" scfile=/scratch/kocevski/260659/ft2_4FGL_J1415.5+4830_daily_bin1.fits sctable="SC_DATA" expcube=/scratch/kocevski/260659/ltcube_239587201_239846401_4FGL_J1415.5+4830_daily_bin1.fits outfile=/scratch/kocevski/260659/expmap_239587201_239846401_4FGL_J1415.5+4830_daily_bin1.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/260659/ltcube_239587201_239846401_4FGL_J1415.5+4830_daily_bin1.fits
.....................!
real 190.56
user 185.42
sys 4.75

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 205 point sources and 0 extended sources

Setting source of interest to:
4FGL J1415.5+4830 @ 213.899 48.5142

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/260659/ft1_filtered_4FGL_J1415.5+4830_daily_bin1.fits scfile=/scratch/kocevski/260659/ft2_4FGL_J1415.5+4830_daily_bin1.fits outfile=/scratch/kocevski/260659/cmap_239587201_239846401_4FGL_J1415.5+4830_daily_bin1.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=213.899 yref=48.5142 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.57
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/260659/ft1_filtered_4FGL_J1415.5+4830_daily_bin1.fits scfile=/scratch/kocevski/260659/ft2_4FGL_J1415.5+4830_daily_bin1.fits outfile=/scratch/kocevski/260659/cmap_HighResolution_239587201_239846401_4FGL_J1415.5+4830_daily_bin1.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=213.899 yref=48.5142 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.36
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/260659/ft1_filtered_4FGL_J1415.5+4830_daily_bin1.fits evtable="EVENTS" scfile=/scratch/kocevski/260659/ft2_4FGL_J1415.5+4830_daily_bin1.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/260659/Model_4FGL_J1415.5+4830_daily_bin1.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/260659/ft1_filtered_4FGL_J1415.5+4830_daily_bin1.fits.....................!
real 36.50
user 35.11
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/260659/ft1_filtered_4FGL_J1415.5+4830_daily_bin1.fits', '/scratch/kocevski/260659/ft2_4FGL_J1415.5+4830_daily_bin1.fits', expMap='/scratch/kocevski/260659/expmap_239587201_239846401_4FGL_J1415.5+4830_daily_bin1.fits', expCube='/scratch/kocevski/260659/ltcube_239587201_239846401_4FGL_J1415.5+4830_daily_bin1.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/260659/Model_4FGL_J1415.5+4830_daily_bin1.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1415.5+4830'

4FGL J1415.5+4830
   Spectrum: PowerLaw
322    Prefactor:  1.339e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
323        Index:  1.944e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
324        Scale:  2.185e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/260659/ft1_filtered_4FGL_J1415.5+4830_daily_bin1.fits
Spacecraft file(s): /scratch/kocevski/260659/ft2_4FGL_J1415.5+4830_daily_bin1.fits
Exposure map: /scratch/kocevski/260659/expmap_239587201_239846401_4FGL_J1415.5+4830_daily_bin1.fits
Exposure cube: /scratch/kocevski/260659/ltcube_239587201_239846401_4FGL_J1415.5+4830_daily_bin1.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/260659/Model_4FGL_J1415.5+4830_daily_bin1.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) = 3749.07933251

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.8704       1.0000         .10000E-03   10000.    
     5 'norm      '    20.782       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10120E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    15.692       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    2.5342       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.0068       1.0000         .10000E-03   10000.    
    12 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .16813E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.6439       1.0000         .10000E-03   10000.    
    15 'Prefactor '    15.765       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .22751E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .82152E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.2181       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .21005E-02   1.0000         .10000E-03   10000.    
    21 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    42.659       1.0000         .10000E-03   10000.    
    24 'Prefactor '    4.0240       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    31.597       1.0000         .10000E-03   10000.    
    27 'Prefactor '    19.526       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    30 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    3.4659       1.0000         .10000E-03   10000.    
    33 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    34 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    35 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    36 'Normalizat'    .73618       1.0000         .10000E-01   10.000    
    37 'Prefactor '    1.0454       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6530E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3748.941     FROM MIGRAD    STATUS=CONVERGED   1069 CALLS     6518 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.1511       -.32617E-07** at limit **
   2  Prefactor     .10000E-03    14.800        .76154E-06** at limit **
   3  Prefactor     .10000E-03    34.611       -.28815E-06** at limit **
   4  Prefactor     8.8693        22.614        .36784E-06    .24655E-04
   5  norm          20.782        7.8616       -.60523E-07   -.14123E-04
   6  Prefactor     .10000E-03    48.031        .49067E-06** at limit **
   7  Prefactor     15.694        132.32       -.19263E-05    .13300E-04
   8  Prefactor     .10000E-03    28.127        .14827E-05** at limit **
   9  norm          2.5343        1.6623       -.48086E-07    .50374E-04
  10  norm          .10000E-03    37.333       -.70420E-06** at limit **
  11  norm          1.0090        9.4842       -.51206E-06   -.70724E-05
  12  norm          .10000E-03    7.1872       -.19351E-06** at limit **
  13  Prefactor     .10001E-03    321.98       -.33274E-05** at limit **
  14  Prefactor     3.6408        23.833        .37726E-05    .37480E-03
  15  Prefactor     15.867        58.964       -.37054E-06    .24409E-04
  16  Prefactor     .10000E-03    6.9293        .10746E-05** at limit **
  17  Prefactor     .10000E-03    23.195        .59283E-06** at limit **
  18  Prefactor     .10600E-03    223.42        .94650E-06** at limit **
  19  Prefactor     3.2133        6.6978        .81167E-06    .24287E-03
  20  Prefactor     .66291E-03    297.96       -.93101E-05** at limit **
  21  norm          .10000E-03    5.6591       -.40903E-07** at limit **
  22  Prefactor     .10000E-03    13.999       -.75048E-06** at limit **
  23  Prefactor     42.714        64.329       -.14928E-05    .42852E-04
  24  Prefactor     4.0046        443.85       -.29616E-05   -.15851E-05
  25  Prefactor     .10000E-03    16.866        .25815E-06** at limit **
  26  Prefactor     31.606        31.749       -.44974E-06   -.69329E-04
  27  Prefactor     19.555        42.251        .12922E-05    .83054E-04
  28  Prefactor     .10000E-03    38.029       -.21189E-05** at limit **
  29  Prefactor     .10000E-03    9.2731       -.10913E-06** at limit **
  30  norm          .10000E-03    .66705       -.36583E-07** at limit **
  31  Prefactor     .10000E-03    5.3201       -.58413E-07** at limit **
  32  Prefactor     3.4658        4.4416        .22445E-07    .59182E-04
  33  Prefactor     .10000E-03    17.036       -.38962E-06** at limit **
  34  norm          .10000E-03    2.4475       -.22485E-06** at limit **
  35  Prefactor     .10000E-03    3.2465       -.53062E-07** at limit **
  36  Normalizat    .73589        .23604        .45565E-05    .45366E-03
  37  Prefactor     1.0458        .25626       -.40909E-05    .44126E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.86931
  norm       = 20.7823
  Prefactor  = 0.0001
  Prefactor  = 15.6939
  Prefactor  = 0.000100001
  norm       = 2.53433
  norm       = 0.0001
  norm       = 1.00904
  norm       = 0.0001
  Prefactor  = 0.00010001
  Prefactor  = 3.64082
  Prefactor  = 15.8665
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000105999
  Prefactor  = 3.21326
  Prefactor  = 0.000662907
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 42.7142
  Prefactor  = 4.00462
  Prefactor  = 0.0001
  Prefactor  = 31.6061
  Prefactor  = 19.5551
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.46576
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.735887
  Prefactor  = 1.04579
 **********
 **   18 **HESSE 
 **********

 FCN=   3748.941     FROM HESSE     STATUS=OK           853 CALLS     7371 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.1520        .64158E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    14.828        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    34.774        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     8.8693        22.592        .13458E-03   -1.5112    
   5  norm          20.782        7.8555        .87862E-04   -1.4796    
   6  Prefactor     .10000E-03    48.058        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     15.694        132.80        .10111E-03   -1.4915    
   8  Prefactor     .10000E-03    28.159        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.5343        1.6611        .61041E-04   -1.5390    
  10  norm          .10000E-03    37.343        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.0090        9.4598        .33585E-03   -1.5507    
  12  norm          .10000E-03    7.2101        .16035E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10001E-03    326.49        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.6408        24.998        .21163E-03   -1.5326    
  15  Prefactor     15.867        59.273        .10087E-03   -1.4911    
  16  Prefactor     .10000E-03    18.728        .28931E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    23.356        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10600E-03    244.40        .38504E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.2133        6.5059        .14367E-03   -1.5349    
  20  Prefactor     .66291E-03    33.896        .66804E-01   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    5.6605        .14225E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    14.025        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     42.714        63.532        .61378E-04   -1.4400    
  24  Prefactor     4.0046        437.74        .20103E-03   -1.5308    
  25  Prefactor     .10000E-03    16.915        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     31.606        31.762        .71282E-04   -1.4583    
  27  Prefactor     19.555        42.312        .90640E-04   -1.4823    
  28  Prefactor     .10000E-03    37.761        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    9.2950        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  norm          .10000E-03    .67512        .48811E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    5.3349        .13794E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     3.4658        4.4363        .14160E-03   -1.5336    
  33  Prefactor     .10000E-03    17.489        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  norm          .10000E-03    2.4861        .93490E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  35  Prefactor     .10000E-03    3.2516        .10775E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  36  Normalizat    .73589        .24537        .23575E-03   -1.0249    
  37  Prefactor     1.0458        .26211        .23886E-03   -.91218    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.47718e-08
Minuit parameter uncertainties:
  1  8.96329e-07
  2  0.000147583
  3  4.00396e-05
  4  22.6138
  5  7.85591
  6  0.000157433
  7  91.5822
  8  0.000372922
  9  1.66112
  10  0.00020923
  11  6.18007
  12  1.47483e-05
  13  0.0035669
  14  19.0915
  15  59.4942
  16  0.000221919
  17  0.000169242
  18  0.0768939
  19  6.50733
  20  0.27642
  21  1.20007e-06
  22  0.000138928
  23  63.6329
  24  84.3773
  25  9.15901e-05
  26  31.7789
  27  42.3773
  28  0.000317642
  29  8.11463e-06
  30  1.63332e-06
  31  2.97374e-06
  32  4.43674
  33  1.10138e-05
  34  6.11888e-06
  35  6.96489e-07
  36  0.245737
  37  0.262436
Done.

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

Extracting fit parameters...

4FGL J1415.5+4830
   Spectrum: PowerLaw
322    Prefactor:  1.000e-04  2.219e-04  1.000e-04  1.000e+04 ( 1.000e-13)
323        Index:  1.944e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
324        Scale:  2.185e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
650    Prefactor:  1.046e+00  2.624e-01  0.000e+00  1.000e+01 ( 1.000e+00)
651        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
652        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
649   Normalization:  7.359e-01  2.457e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 213.899 48.514
Photon Flux Upper Limit: 6.91e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.16e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/260659/likelihoodResults_239587201_239846401_4FGL_J1415.5+4830_daily_bin1.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) = 3748.94168781
delta logL = -0.000253189203704

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3748.94143495
delta logL = -3.31454884872e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11793E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9067       1.0000          .0000       10.000    
     3 'Normalizat'    .73588       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0458       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6530E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3748.941     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      225 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.6488        .50277E-01** at limit **
   2  Index         1.8663        2.7155        .50000        .14318E-04
   3  Normalizat    .73588        .35226E-02    .42767E-01   -.19218E-03
   4  Prefactor     1.0458        .42114E-02    .40160E-01   -.35075E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.86634
  Normalizat = 0.735882
  Prefactor  = 1.04579
 **********
 **   18 **HESSE 
 **********

 FCN=   3748.941     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      258 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    258.09        .29663E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8663        8.7404        .50000       -.67735    
   3  Normalizat    .73588        .16255E-01    .23576E-03   -1.0249    
   4  Prefactor     1.0458        .19441E-01    .23886E-03   -.91218    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.74225e-09
Minuit parameter uncertainties:
  1  8.11087e-05
  2  13.7079
  3  0.0162547
  4  0.0194411
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/260659': 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) = 3748.94143431
delta logL = 3.13813416142e-07

Extracting fit parameters...

4FGL J1415.5+4830
   Spectrum: PowerLaw
322    Prefactor:  1.000e-04  8.111e-05  1.000e-04  1.000e+04 ( 1.000e-13)
323        Index:  1.866e+00  1.371e+01  0.000e+00  1.000e+01 (-1.000e+00)
324        Scale:  2.185e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
650    Prefactor:  1.046e+00  1.944e-02  0.000e+00  1.000e+01 ( 1.000e+00)
651        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
652        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
649   Normalization:  7.359e-01  1.625e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 213.899 48.514

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/260659/cmap_HighResolution_239587201_239846401_4FGL_J1415.5+4830_daily_bin1.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.16e-03', job_status='DONE', photon_flux_upper_limit='6.91e-08', time_completed='2021-09-09 05:31:11.280862', job_id='260659', GAL2='1.05', fit_tolerance='1e-08', EG2='0.74', EG='0.74', time_epoch_completed='1631190671.28', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='3.14e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.94' WHERE bin_id='1' AND source_name='4FGL J1415.5+4830' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 05:31:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0047>
Subject: Job 260659: <4FGL_J1415.5+4830_daily_bin1> in cluster <slac> Done

Job <4FGL_J1415.5+4830_daily_bin1> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Thu Sep  9 05:15:30 2021
Job was executed on host(s) <bullet0047>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 05:15:33 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  9 05:15:33 2021
Terminated at Thu Sep  9 05:31:12 2021
Results reported at Thu Sep  9 05:31:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1415.5+4830_daily_bin1 213.899 48.5142 239587201 239846401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1415.5+4830 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   863.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             290.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   938 sec.
    Turnaround time :                            942 sec.

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

