/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 59 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7443
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1415.5+4830_daily_bin2
RA = 213.899, Dec = 48.5142
tmin = 239846401, tmax = 240105601
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = 12
zmax = 90

Fitting strategies:
Fix sources to their catalog values = True
Leave variable source normalizations free = True
Perform pre-fit where ALL sources are frozen to catalog values = False
Perform secondary fit with a free spectral index = True
Remove all catalog sources = False
Remove weak (TS < 2) catalog sources = False
Freeze Galactic component = False

Likelihood fit parameters:
Statistic: UNBINNED
Optimizer: MINUIT

Catalog: 4FGL

Repository Job = True

LAT data Source:
Data catalog

Updating database...

UPDATE lightcurve_data_v2 SET job_id='260661', job_status='RUN', time_executed='2021-09-09 05:16:43.250627', time_epoch_executed='1631189803.25' WHERE source_name='4FGL J1415.5+4830' and cadence='daily' and bin_id='2'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/260661

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/260661/ft1_4FGL_J1415.5+4830_daily_bin2.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/260661/ft2_4FGL_J1415.5+4830_daily_bin2.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/260661/ft1_4FGL_J1415.5+4830_daily_bin2.fits outfile=/scratch/kocevski/260661/ft1_filteredMKT_4FGL_J1415.5+4830_daily_bin2.fits ra=213.899 dec=48.5142 rad=12.0 tmin=239846401.0 tmax=240105601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 1.45
user 1.27
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/260661/ft2_4FGL_J1415.5+4830_daily_bin2.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/scratch/kocevski/260661/ft1_filteredMKT_4FGL_J1415.5+4830_daily_bin2.fits evtable="EVENTS" outfile="/scratch/kocevski/260661/ft1_filtered_4FGL_J1415.5+4830_daily_bin2.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/260661/ft1_filtered_4FGL_J1415.5+4830_daily_bin2.fits" evtable="EVENTS" scfile=/scratch/kocevski/260661/ft2_4FGL_J1415.5+4830_daily_bin2.fits sctable="SC_DATA" outfile=/scratch/kocevski/260661/ltcube_239846401_240105601_4FGL_J1415.5+4830_daily_bin2.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Working on file /scratch/kocevski/260661/ft2_4FGL_J1415.5+4830_daily_bin2.fits
.....................!
real 12.96
user 12.59
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/260661/ft1_filtered_4FGL_J1415.5+4830_daily_bin2.fits evtable="EVENTS" scfile=/scratch/kocevski/260661/ft2_4FGL_J1415.5+4830_daily_bin2.fits sctable="SC_DATA" expcube=/scratch/kocevski/260661/ltcube_239846401_240105601_4FGL_J1415.5+4830_daily_bin2.fits outfile=/scratch/kocevski/260661/expmap_239846401_240105601_4FGL_J1415.5+4830_daily_bin2.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql"

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

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /scratch/kocevski/260661/ltcube_239846401_240105601_4FGL_J1415.5+4830_daily_bin2.fits
.....................!
real 191.49
user 186.89
sys 4.21

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/260661/ft1_filtered_4FGL_J1415.5+4830_daily_bin2.fits scfile=/scratch/kocevski/260661/ft2_4FGL_J1415.5+4830_daily_bin2.fits outfile=/scratch/kocevski/260661/cmap_239846401_240105601_4FGL_J1415.5+4830_daily_bin2.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=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.58
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/260661/ft1_filtered_4FGL_J1415.5+4830_daily_bin2.fits scfile=/scratch/kocevski/260661/ft2_4FGL_J1415.5+4830_daily_bin2.fits outfile=/scratch/kocevski/260661/cmap_HighResolution_239846401_240105601_4FGL_J1415.5+4830_daily_bin2.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=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.56
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/260661/ft1_filtered_4FGL_J1415.5+4830_daily_bin2.fits evtable="EVENTS" scfile=/scratch/kocevski/260661/ft2_4FGL_J1415.5+4830_daily_bin2.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/260661/Model_4FGL_J1415.5+4830_daily_bin2.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

adding source EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/260661/ft1_filtered_4FGL_J1415.5+4830_daily_bin2.fits.....................!
real 39.71
user 38.23
sys 1.13

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/260661/ft1_filtered_4FGL_J1415.5+4830_daily_bin2.fits', '/scratch/kocevski/260661/ft2_4FGL_J1415.5+4830_daily_bin2.fits', expMap='/scratch/kocevski/260661/expmap_239846401_240105601_4FGL_J1415.5+4830_daily_bin2.fits', expCube='/scratch/kocevski/260661/ltcube_239846401_240105601_4FGL_J1415.5+4830_daily_bin2.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/260661/Model_4FGL_J1415.5+4830_daily_bin2.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/260661/ft1_filtered_4FGL_J1415.5+4830_daily_bin2.fits
Spacecraft file(s): /scratch/kocevski/260661/ft2_4FGL_J1415.5+4830_daily_bin2.fits
Exposure map: /scratch/kocevski/260661/expmap_239846401_240105601_4FGL_J1415.5+4830_daily_bin2.fits
Exposure cube: /scratch/kocevski/260661/ltcube_239846401_240105601_4FGL_J1415.5+4830_daily_bin2.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/260661/Model_4FGL_J1415.5+4830_daily_bin2.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .17457       1.0000         .10000E-03   10000.    
     2 'Prefactor '    20.909       1.0000         .10000E-03   10000.    
     3 'Prefactor '    31.717       1.0000         .10000E-03   10000.    
     4 'Prefactor '    30.494       1.0000         .10000E-03   10000.    
     5 'norm      '    25.197       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    72.033       1.0000         .10000E-03   10000.    
     8 'Prefactor '    107.75       1.0000         .10000E-03   10000.    
     9 'norm      '    3.4351       1.0000         .10000E-03   10000.    
    10 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .11735E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.9865       1.0000         .10000E-03   10000.    
    17 'Prefactor '    15.505       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    14.987       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    9.9132       1.0000         .10000E-03   10000.    
    26 'Prefactor '    31.600       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    11.004       1.0000         .10000E-03   10000.    
    29 'Prefactor '    2.6833       1.0000         .10000E-03   10000.    
    30 'norm      '    4.2056       1.0000         .10000E-03   10000.    
    31 'Prefactor '    5.6463       1.0000         .10000E-03   10000.    
    32 'Prefactor '    5.5571       1.0000         .10000E-03   10000.    
    33 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    34 'norm      '    3.6046       1.0000         .10000E-03   10000.    
    35 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    36 'Normalizat'    1.0116       1.0000         .10000E-01   10.000    
    37 'Prefactor '    .63194       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=   4404.246     FROM MIGRAD    STATUS=CONVERGED   1038 CALLS     5547 TOTAL
                     EDM=   .33E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .17037        2.9128        .29951E-06   -.19199E-03
   2  Prefactor     20.928        45.707        .11936E-06   -.15677E-04
   3  Prefactor     31.715        32.901        .25037E-06   -.71628E-05
   4  Prefactor     30.500        40.864        .73755E-07   -.77058E-05
   5  norm          25.199        9.5893        .77078E-08   -.25297E-04
   6  Prefactor     .10000E-03    53.484        .22462E-06** at limit **
   7  Prefactor     72.342        117.82       -.32522E-05   -.11328E-04
   8  Prefactor     107.77        68.339        .59875E-07   -.32243E-05
   9  norm          3.4354        2.0120        .28480E-07    .65982E-04
  10  norm          .10000E-03    34.607       -.11512E-06** at limit **
  11  norm          .10000E-03    2.2681       -.32658E-07** at limit **
  12  norm          .10000E-03    33.977       -.18312E-05** at limit **
  13  Prefactor     .10000E-03    16.792        .24074E-07** at limit **
  14  Prefactor     .10000E-03    6.0339       -.13021E-06** at limit **
  15  Prefactor     .10000E-03    19.283        .30997E-06** at limit **
  16  Prefactor     3.9868        5.0843       -.51804E-07    .42028E-05
  17  Prefactor     15.508        19.959        .28725E-06    .50582E-05
  18  Prefactor     .10000E-03    3.7217       -.40337E-07** at limit **
  19  Prefactor     .10000E-03    1.7790       -.13224E-07** at limit **
  20  Prefactor     .10000E-03    4.3763       -.62075E-07** at limit **
  21  norm          .10000E-03    5.6372        .84982E-07** at limit **
  22  Prefactor     .10000E-03    10.308        .13799E-06** at limit **
  23  Prefactor     14.996        24.628        .30324E-06    .31013E-06
  24  Prefactor     .10000E-03    37.675       -.19208E-06** at limit **
  25  Prefactor     9.9212        22.402        .22812E-06    .24251E-05
  26  Prefactor     31.601        38.605        .69999E-07    .18008E-05
  27  Prefactor     .10000E-03    30.932        .15675E-06** at limit **
  28  Prefactor     11.004        10.966        .12640E-06   -.48168E-05
  29  Prefactor     2.6950        32.549        .31930E-06    .56693E-07
  30  norm          4.2056        2.0604        .22065E-07    .34360E-04
  31  Prefactor     5.6494        12.078       -.18205E-05    .18614E-04
  32  Prefactor     5.5565        6.2410       -.66158E-07    .10620E-04
  33  Prefactor     .10000E-03    13.335        .11514E-05** at limit **
  34  norm          3.6043        3.0866       -.49209E-07    .72522E-05
  35  Prefactor     .10000E-03    3.0296        .50182E-08** at limit **
  36  Normalizat    1.0109        .24778       -.29780E-05    .10784E-04
  37  Prefactor     .63259        .25444        .46569E-05    .12751E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.170367
  Prefactor  = 20.9284
  Prefactor  = 31.7148
  Prefactor  = 30.5
  norm       = 25.1993
  Prefactor  = 0.0001
  Prefactor  = 72.3417
  Prefactor  = 107.774
  norm       = 3.4354
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.98676
  Prefactor  = 15.5081
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.9961
  Prefactor  = 0.0001
  Prefactor  = 9.92117
  Prefactor  = 31.6011
  Prefactor  = 0.0001
  Prefactor  = 11.0041
  Prefactor  = 2.69504
  norm       = 4.20562
  Prefactor  = 5.64941
  Prefactor  = 5.5565
  Prefactor  = 0.0001
  norm       = 3.6043
  Prefactor  = 0.0001
  Normalizat = 1.01088
  Prefactor  = 0.632587
 **********
 **   18 **HESSE 
 **********

 FCN=   4404.246     FROM HESSE     STATUS=OK           857 CALLS     6404 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .17037        15.146        .21035E-02   -1.5625    
   2  Prefactor     20.928        45.327        .87593E-04   -1.4793    
   3  Prefactor     31.715        32.924        .71147E-04   -1.4581    
   4  Prefactor     30.500        40.783        .72556E-04   -1.4603    
   5  norm          25.199        9.5996        .79803E-04   -1.4704    
   6  Prefactor     .10000E-03    53.536        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     72.342        119.02        .23651E-03   -1.4005    
   8  Prefactor     107.77        68.319        .38744E-04   -1.3628    
   9  norm          3.4354        2.0071        .67599E-04   -1.5337    
  10  norm          .10000E-03    34.608        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    2.2827        .97544E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    34.184        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    16.795        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.0359        .15922E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    19.296        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.9868        5.0725        .16170E-03   -1.5309    
  17  Prefactor     15.508        19.933        .10172E-03   -1.4920    
  18  Prefactor     .10000E-03    3.7244        .12504E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    1.8111        .17196E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.3788        .13559E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    5.6430        .15389E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    10.312        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     14.996        24.508        .10346E-03   -1.4933    
  24  Prefactor     .10000E-03    37.737        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     9.9212        22.388        .12727E-03   -1.5078    
  26  Prefactor     31.601        38.599        .71279E-04   -1.4583    
  27  Prefactor     .10000E-03    31.026        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     11.004        10.955        .60387E-03   -1.5044    
  29  Prefactor     2.6950        31.503        .24875E-03   -1.5380    
  30  norm          4.2056        2.0490        .62039E-04   -1.5298    
  31  Prefactor     5.6494        12.219        .84527E-03   -1.5233    
  32  Prefactor     5.5565        6.1874        .16215E-03   -1.5236    
  33  Prefactor     .10000E-03    13.820        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  norm          3.6043        3.0847        .10461E-03   -1.5328    
  35  Prefactor     .10000E-03    3.0335        .11279E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  36  Normalizat    1.0109        .24804        .21819E-03   -.92667    
  37  Prefactor     .63259        .25514        .30868E-03   -1.0623    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.12347e-10
Minuit parameter uncertainties:
  1  3.21261
  2  45.4021
  3  32.9428
  4  40.8208
  5  9.60024
  6  8.91553e-06
  7  119.412
  8  68.369
  9  2.00709
  10  4.92464e-06
  11  8.56237e-07
  12  0.000134412
  13  1.57293e-06
  14  7.27639e-07
  15  2.52455e-06
  16  5.07308
  17  19.9411
  18  5.57519e-08
  19  4.74585e-07
  20  4.83231e-08
  21  4.0694e-07
  22  3.23965e-06
  23  24.524
  24  2.06856e-05
  25  22.4067
  26  38.63
  27  1.45571e-05
  28  10.9572
  29  18.4403
  30  2.04901
  31  12.2245
  32  6.18815
  33  0.000104558
  34  3.08486
  35  1.03907e-06
  36  0.248327
  37  0.255613
Done.

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

Extracting fit parameters...

4FGL J1415.5+4830
   Spectrum: PowerLaw
322    Prefactor:  3.987e+00  5.073e+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

GAL_V02
   Spectrum: PowerLaw
650    Prefactor:  6.326e-01  2.556e-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:  1.011e+00  2.483e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.06
Ra Dec: 213.899 48.514
Photon Index (Fixed Index): 1.94 +/- 0.00
Photon Flux (Fixed Index): 1.70e-08 +/- 2.16e-08
Energy Flux (Fixed Index): 1.35e-05 +/- 1.72e-05

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

Saving results to:
/scratch/kocevski/260661/likelihoodResults_239846401_240105601_4FGL_J1415.5+4830_daily_bin2.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4403.98316862
delta logL = 0.262684636051

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4403.9815387
delta logL = 0.264314558704

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.0472       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5582       1.0000          .0000       10.000    
     3 'Normalizat'    .99193       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .64326       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4403.982     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      284 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.0472        5.4186        .45520E-03   -.26688E-03
   2  Index         2.5582        1.2186        .55349E-02    .19907E-04
   3  Normalizat    .99193        .22019        .21994E-03    .10338E-06
   4  Prefactor     .64328        .24985        .30612E-03    .74276E-07
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.04717
  Index      = 2.55823
  Normalizat = 0.991931
  Prefactor  = 0.64328
 **********
 **   18 **HESSE 
 **********

 FCN=   4403.982     FROM HESSE     STATUS=OK            25 CALLS      309 TOTAL
                     EDM=   .60E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.0472        3.8262        .18208E-04   -1.5422    
   2  Index         2.5582        .86586        .22140E-03   -.51020    
   3  Normalizat    .99193        .21934        .87977E-05   -.93301    
   4  Prefactor     .64328        .24918        .12245E-04   -1.0579    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.01199e-11
Minuit parameter uncertainties:
  1  3.82669
  2  0.87165
  3  0.21954
  4  0.24961
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/260661': 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) = 4403.98153868
delta logL = 0.264314575242

Extracting fit parameters...

4FGL J1415.5+4830
   Spectrum: PowerLaw
322    Prefactor:  2.047e+00  3.827e+00  1.000e-04  1.000e+04 ( 1.000e-13)
323        Index:  2.558e+00  8.716e-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:  6.433e-01  2.496e-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:  9.919e-01  2.195e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.58
Ra Dec: 213.899 48.514
Photon Index (Free Index): 2.56 +/- 0.87
Photon Flux (Free Index): 3.51e-08 +/- 3.98e-08
Energy Flux (Free Index): 9.58e-06 +/- 1.00e-05

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/260661/cmap_HighResolution_239846401_240105601_4FGL_J1415.5+4830_daily_bin2.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.63e-03', comment='SUCCESS', photon_flux='1.70e-08', energy_flux2='9.58e-06', photon_flux_error='2.16e-08', dlogl='2.64e-01', energy_flux='1.35e-05', photon_flux2='3.51e-08', job_status='DONE', time_completed='2021-09-09 05:32:06.235592', photon_index_error2='0.87', photon_index2='2.56', ts='1.06', fit_tolerance='1e-08', GAL='0.63', photon_index_error='0.00', photon_flux_upper_limit='7.55e-08', energy_flux_error2='1.00e-05', EG='1.01', time_epoch_completed='1631190726.24', return_code='0', job_id='260661', GAL2='0.64', EG2='0.99', return_code2='0', energy_flux_error='1.72e-05', photon_flux_error2='3.98e-08', ts2='1.58', photon_index='1.94' WHERE bin_id='2' AND source_name='4FGL J1415.5+4830' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 05:32:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0049>
Subject: Job 260661: <4FGL_J1415.5+4830_daily_bin2> in cluster <slac> Done

Job <4FGL_J1415.5+4830_daily_bin2> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Thu Sep  9 05:15:32 2021
Job was executed on host(s) <bullet0049>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 05:15:35 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:35 2021
Terminated at Thu Sep  9 05:32:07 2021
Results reported at Thu Sep  9 05:32:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1415.5+4830_daily_bin2 213.899 48.5142 239846401 240105601 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 :                                   920.28 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             292.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   991 sec.
    Turnaround time :                            995 sec.

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

