/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 14 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 = 7539
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1415.5+4830_daily_bin655
RA = 213.899, Dec = 48.5142
tmin = 409104001, tmax = 409363201
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='266569', job_status='RUN', time_executed='2021-09-09 05:33:36.101549', time_epoch_executed='1631190816.1' WHERE source_name='4FGL J1415.5+4830' and cadence='daily' and bin_id='655'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/266569

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/266569/ft1_4FGL_J1415.5+4830_daily_bin655.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/266569/ft2_4FGL_J1415.5+4830_daily_bin655.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/266569/ft1_4FGL_J1415.5+4830_daily_bin655.fits outfile=/scratch/kocevski/266569/ft1_filteredMKT_4FGL_J1415.5+4830_daily_bin655.fits ra=213.899 dec=48.5142 rad=12.0 tmin=409104001.0 tmax=409363201.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 6.50
user 4.15
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/266569/ft2_4FGL_J1415.5+4830_daily_bin655.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/266569/ft1_filteredMKT_4FGL_J1415.5+4830_daily_bin655.fits evtable="EVENTS" outfile="/scratch/kocevski/266569/ft1_filtered_4FGL_J1415.5+4830_daily_bin655.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 1.90
user 0.28
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/266569/ft1_filtered_4FGL_J1415.5+4830_daily_bin655.fits" evtable="EVENTS" scfile=/scratch/kocevski/266569/ft2_4FGL_J1415.5+4830_daily_bin655.fits sctable="SC_DATA" outfile=/scratch/kocevski/266569/ltcube_409104001_409363201_4FGL_J1415.5+4830_daily_bin655.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/266569/ft2_4FGL_J1415.5+4830_daily_bin655.fits
.....................!
real 11.07
user 9.51
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/266569/ft1_filtered_4FGL_J1415.5+4830_daily_bin655.fits evtable="EVENTS" scfile=/scratch/kocevski/266569/ft2_4FGL_J1415.5+4830_daily_bin655.fits sctable="SC_DATA" expcube=/scratch/kocevski/266569/ltcube_409104001_409363201_4FGL_J1415.5+4830_daily_bin655.fits outfile=/scratch/kocevski/266569/expmap_409104001_409363201_4FGL_J1415.5+4830_daily_bin655.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/266569/ltcube_409104001_409363201_4FGL_J1415.5+4830_daily_bin655.fits
.....................!
real 149.35
user 140.72
sys 3.83

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/266569/ft1_filtered_4FGL_J1415.5+4830_daily_bin655.fits scfile=/scratch/kocevski/266569/ft2_4FGL_J1415.5+4830_daily_bin655.fits outfile=/scratch/kocevski/266569/cmap_409104001_409363201_4FGL_J1415.5+4830_daily_bin655.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 3.28
user 0.31
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/266569/ft1_filtered_4FGL_J1415.5+4830_daily_bin655.fits scfile=/scratch/kocevski/266569/ft2_4FGL_J1415.5+4830_daily_bin655.fits outfile=/scratch/kocevski/266569/cmap_HighResolution_409104001_409363201_4FGL_J1415.5+4830_daily_bin655.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 2.37
user 0.32
sys 0.17

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

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

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 5153.72478758

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10362E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    85.602       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .13493E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.9387       1.0000         .10000E-03   10000.    
     6 'Prefactor '    26.349       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    15.346       1.0000         .10000E-03   10000.    
    10 'norm      '    .10147E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .14612E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    15.222       1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.1026       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .76069E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .42553E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.5299       1.0000         .10000E-03   10000.    
    20 'Prefactor '    9.7498       1.0000         .10000E-03   10000.    
    21 'norm      '    19.534       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10126E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    56.616       1.0000         .10000E-03   10000.    
    25 'Prefactor '    21.200       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    23.901       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    15.174       1.0000         .10000E-03   10000.    
    30 'norm      '    2.5773       1.0000         .10000E-03   10000.    
    31 'Prefactor '    14.667       1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    33 'Prefactor '    2.7229       1.0000         .10000E-03   10000.    
    34 'norm      '    3.2849       1.0000         .10000E-03   10000.    
    35 'Prefactor '    10.099       1.0000         .10000E-03   10000.    
    36 'Normalizat'    1.0737       1.0000         .10000E-01   10.000    
    37 'Prefactor '    .82769       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=   5153.701     FROM MIGRAD    STATUS=CONVERGED   1091 CALLS     5743 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.9601       -.98169E-06** at limit **
   2  Prefactor     85.577        52.458        .24200E-05    .18284E-03
   3  Prefactor     .10054E-03    37.890       -.18221E-05** at limit **
   4  Prefactor     .10000E-03    25.787       -.10205E-05** at limit **
   5  norm          1.9496        5.9234       -.15327E-05   -.63991E-03
   6  Prefactor     26.354        61.230       -.30426E-05   -.10720E-03
   7  Prefactor     .10000E-03    67.881       -.21720E-07** at limit **
   8  Prefactor     .10000E-03    42.164        .22833E-05** at limit **
   9  norm          15.347        2.9427       -.10929E-07   -.16853E-03
  10  norm          .10000E-03    28.839       -.13262E-05** at limit **
  11  norm          .10000E-03    2.7174        .25005E-06** at limit **
  12  norm          .10000E-03    6.1688       -.51687E-08** at limit **
  13  Prefactor     .10000E-03    24.696        .76232E-06** at limit **
  14  Prefactor     15.221        19.702        .14160E-06    .34494E-04
  15  Prefactor     9.0708        34.632        .11907E-05   -.53261E-04
  16  Prefactor     .10003E-03    4.1876        .18596E-05** at limit **
  17  Prefactor     .10101E-03    30.481        .73908E-05** at limit **
  18  Prefactor     .10000E-03    35.322       -.45548E-06** at limit **
  19  Prefactor     7.5311        3.3505       -.31627E-07   -.40493E-03
  20  Prefactor     9.7482        13.576        .46917E-06    .14713E-03
  21  norm          19.529        16.117        .18117E-06    .90718E-04
  22  Prefactor     .10000E-03    10.115       -.82522E-06** at limit **
  23  Prefactor     .10000E-03    10.257        .87695E-06** at limit **
  24  Prefactor     56.603        60.219        .66080E-06   -.71775E-04
  25  Prefactor     21.199        27.240        .92663E-07   -.27826E-04
  26  Prefactor     .10000E-03    69.673       -.82777E-06** at limit **
  27  Prefactor     23.899        45.404        .24509E-06   -.60881E-05
  28  Prefactor     .10000E-03    6.6706       -.10366E-06** at limit **
  29  Prefactor     15.172        16.009       -.23379E-07   -.44816E-04
  30  norm          2.5771        1.7467       -.72721E-08   -.12117E-03
  31  Prefactor     14.674        17.788       -.37556E-05   -.33619E-04
  32  Prefactor     .10000E-03    2.4258        .89979E-08** at limit **
  33  Prefactor     2.7183        18.733        .11823E-04    .15058E-03
  34  norm          3.2839        5.0549        .10555E-06    .35264E-05
  35  Prefactor     10.099        15.829       -.26272E-07   -.10902E-04
  36  Normalizat    1.0737        .20882        .15013E-06   -.18627E-03
  37  Prefactor     .82782        .22445       -.40171E-06   -.17877E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100004
  Prefactor  = 85.5773
  Prefactor  = 0.000100535
  Prefactor  = 0.000100001
  norm       = 1.94958
  Prefactor  = 26.3538
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 15.3466
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.2214
  Prefactor  = 9.07083
  Prefactor  = 0.000100028
  Prefactor  = 0.000101011
  Prefactor  = 0.0001
  Prefactor  = 7.5311
  Prefactor  = 9.74817
  norm       = 19.5294
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 56.6035
  Prefactor  = 21.1991
  Prefactor  = 0.000100001
  Prefactor  = 23.899
  Prefactor  = 0.0001
  Prefactor  = 15.1724
  norm       = 2.57713
  Prefactor  = 14.6744
  Prefactor  = 0.0001
  Prefactor  = 2.71829
  norm       = 3.28386
  Prefactor  = 10.0995
  Normalizat = 1.07368
  Prefactor  = 0.827825
 **********
 **   18 **HESSE 
 **********

 FCN=   5153.701     FROM HESSE     STATUS=OK           857 CALLS     6600 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    19.009        .22791E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     85.577        51.494        .43420E-04   -1.3855    
   3  Prefactor     .10054E-03    211.78        .63571E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    25.857        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.9496        5.1076        .24273E-03   -1.5429    
   6  Prefactor     26.354        60.769        .78042E-04   -1.4681    
   7  Prefactor     .10000E-03    67.994        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    42.085        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          15.347        2.9437        .51405E-04   -1.4924    
  10  norm          .10000E-03    28.739        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    5.9631        .22738E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    6.1742        .17414E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    24.671        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     15.221        19.692        .10266E-03   -1.4927    
  15  Prefactor     9.0708        33.816        .13284E-03   -1.5106    
  16  Prefactor     .10003E-03    17.763        .25525E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10101E-03    165.68        .62783E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    35.872        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     7.5311        3.3503        .41678E-03   -1.5159    
  20  Prefactor     9.7482        13.530        .12834E-03   -1.5083    
  21  norm          19.529        16.108        .90622E-04   -1.4824    
  22  Prefactor     .10000E-03    10.080        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    10.215        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     56.603        60.124        .53314E-04   -1.4202    
  25  Prefactor     21.199        27.244        .86991E-04   -1.4787    
  26  Prefactor     .10000E-03    70.408        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     23.899        45.379        .81934E-04   -1.4730    
  28  Prefactor     .10000E-03    6.6759        .18107E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     15.172        16.002        .10282E-03   -1.4929    
  30  norm          2.5771        1.7454        .74992E-04   -1.5387    
  31  Prefactor     14.674        18.047        .10458E-03   -1.4942    
  32  Prefactor     .10000E-03    2.4315        .10918E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     2.7183        20.105        .12340E-02   -1.5378    
  34  norm          3.2839        5.0178        .17193E-03   -1.5346    
  35  Prefactor     10.099        15.706        .12609E-03   -1.5072    
  36  Normalizat    1.0737        .24115        .23749E-03   -.90601    
  37  Prefactor     .82782        .26106        .31394E-03   -.98711    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.14751e-08
Minuit parameter uncertainties:
  1  0.000519625
  2  51.5208
  3  0.0213738
  4  0.000357832
  5  5.10874
  6  60.9118
  7  5.91151e-05
  8  0.000288874
  9  2.94369
  10  0.000213954
  11  1.92117e-05
  12  5.63872e-06
  13  0.000132917
  14  19.7004
  15  33.8879
  16  0.00141936
  17  0.025952
  18  0.000177887
  19  3.35041
  20  13.5341
  21  16.1116
  22  8.36624e-05
  23  9.792e-05
  24  60.1881
  25  27.2595
  26  0.000472319
  27  45.4442
  28  2.15159e-05
  29  16.0062
  30  1.74539
  31  18.0535
  32  5.48824e-07
  33  14.7921
  34  5.01848
  35  15.7126
  36  0.241402
  37  0.261448
Done.

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

Extracting fit parameters...

4FGL J1415.5+4830
   Spectrum: PowerLaw
322    Prefactor:  1.000e-04  1.419e-03  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:  8.278e-01  2.614e-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.074e+00  2.414e-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.10e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.56e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/266569/likelihoodResults_409104001_409363201_4FGL_J1415.5+4830_daily_bin655.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) = 5153.70151315
delta logL = -0.000267320839157

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5153.70122216
delta logL = 2.36622772718e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15017E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0888       1.0000          .0000       10.000    
     3 'Normalizat'    1.0737       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82782       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=   5153.603     FROM MIGRAD    STATUS=CONVERGED     78 CALLS      253 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .47028        37.722        .10235E-01    .54332E-03
   2  Index         2.8202        6.4050        .12292        .10682E-03
   3  Normalizat    1.0608        .37432E-01    .39190E-01   -.37004E-04
   4  Prefactor     .83045        .44224E-01    .70830E-01    .92008E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.470281
  Index      = 2.82017
  Normalizat = 1.06076
  Prefactor  = 0.830446
 **********
 **   18 **HESSE 
 **********

 FCN=   5153.603     FROM HESSE     STATUS=OK            33 CALLS      286 TOTAL
                     EDM=   .90E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .47028        5.7240        .11498E-03   -1.5571    
   2  Index         2.8202        2.4172        .98762E-02   -.45111    
   3  Normalizat    1.0608        .21739        .23874E-03   -.91022    
   4  Prefactor     .83045        .25425        .31340E-03   -.98616    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.96165e-08
Minuit parameter uncertainties:
  1  3.28143
  2  2.55181
  3  0.217568
  4  0.254613
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/266569': 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) = 5153.60340734
delta logL = 0.0978384888504

Extracting fit parameters...

4FGL J1415.5+4830
   Spectrum: PowerLaw
322    Prefactor:  4.703e-01  3.281e+00  1.000e-04  1.000e+04 ( 1.000e-13)
323        Index:  2.820e+00  2.552e+00  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:  8.304e-01  2.546e-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.061e+00  2.176e-01  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/266569/cmap_HighResolution_409104001_409363201_4FGL_J1415.5+4830_daily_bin655.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.56e-03', job_status='DONE', photon_flux_upper_limit='6.10e-08', time_completed='2021-09-09 05:47:30.421000', job_id='266569', GAL2='0.83', fit_tolerance='1e-08', EG2='1.06', EG='1.07', time_epoch_completed='1631191650.42', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='9.78e-02', ts2='0.20', photon_index_error='0.00', photon_index='1.94' WHERE bin_id='655' AND source_name='4FGL J1415.5+4830' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 05:47:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0189>
Subject: Job 266569: <4FGL_J1415.5+4830_daily_bin655> in cluster <slac> Done

Job <4FGL_J1415.5+4830_daily_bin655> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Thu Sep  9 05:31:40 2021
Job was executed on host(s) <bullet0189>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 05:31:41 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:31:41 2021
Terminated at Thu Sep  9 05:47:30 2021
Results reported at Thu Sep  9 05:47:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1415.5+4830_daily_bin655 213.899 48.5142 409104001 409363201 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 :                                   796.15 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             296.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   949 sec.
    Turnaround time :                            950 sec.

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

