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


Performing analysis on: 4FGL_J1415.5+4830_daily_bin1339
RA = 213.899, Dec = 48.5142
tmin = 586396801, tmax = 586656001
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='272696', job_status='RUN', time_executed='2021-09-09 05:48:26.063131', time_epoch_executed='1631191706.06' WHERE source_name='4FGL J1415.5+4830' and cadence='daily' and bin_id='1339'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/272696

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

Retrieving the FT1 file...

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

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

Retrieving 31 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/272696/ft1_4FGL_J1415.5+4830_daily_bin1339.fits


Retrieving the FT1 file...

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

Retrieving 31 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/272696/ft2_4FGL_J1415.5+4830_daily_bin1339.fits


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

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

Done.
real 3.09
user 2.39
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/272696/ft1_filtered_4FGL_J1415.5+4830_daily_bin1339.fits" evtable="EVENTS" scfile=/scratch/kocevski/272696/ft2_4FGL_J1415.5+4830_daily_bin1339.fits sctable="SC_DATA" outfile=/scratch/kocevski/272696/ltcube_586396801_586656001_4FGL_J1415.5+4830_daily_bin1339.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/272696/ft2_4FGL_J1415.5+4830_daily_bin1339.fits
.....................!
real 8.67
user 8.29
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/272696/ft1_filtered_4FGL_J1415.5+4830_daily_bin1339.fits evtable="EVENTS" scfile=/scratch/kocevski/272696/ft2_4FGL_J1415.5+4830_daily_bin1339.fits sctable="SC_DATA" expcube=/scratch/kocevski/272696/ltcube_586396801_586656001_4FGL_J1415.5+4830_daily_bin1339.fits outfile=/scratch/kocevski/272696/expmap_586396801_586656001_4FGL_J1415.5+4830_daily_bin1339.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/272696/ltcube_586396801_586656001_4FGL_J1415.5+4830_daily_bin1339.fits
.....................!
real 190.30
user 185.14
sys 4.60

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/272696/ft1_filtered_4FGL_J1415.5+4830_daily_bin1339.fits scfile=/scratch/kocevski/272696/ft2_4FGL_J1415.5+4830_daily_bin1339.fits outfile=/scratch/kocevski/272696/cmap_586396801_586656001_4FGL_J1415.5+4830_daily_bin1339.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.82
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/272696/ft1_filtered_4FGL_J1415.5+4830_daily_bin1339.fits scfile=/scratch/kocevski/272696/ft2_4FGL_J1415.5+4830_daily_bin1339.fits outfile=/scratch/kocevski/272696/cmap_HighResolution_586396801_586656001_4FGL_J1415.5+4830_daily_bin1339.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.80
user 0.38
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/272696/ft1_filtered_4FGL_J1415.5+4830_daily_bin1339.fits', '/scratch/kocevski/272696/ft2_4FGL_J1415.5+4830_daily_bin1339.fits', expMap='/scratch/kocevski/272696/expmap_586396801_586656001_4FGL_J1415.5+4830_daily_bin1339.fits', expCube='/scratch/kocevski/272696/ltcube_586396801_586656001_4FGL_J1415.5+4830_daily_bin1339.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/272696/Model_4FGL_J1415.5+4830_daily_bin1339.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/272696/ft1_filtered_4FGL_J1415.5+4830_daily_bin1339.fits
Spacecraft file(s): /scratch/kocevski/272696/ft2_4FGL_J1415.5+4830_daily_bin1339.fits
Exposure map: /scratch/kocevski/272696/expmap_586396801_586656001_4FGL_J1415.5+4830_daily_bin1339.fits
Exposure cube: /scratch/kocevski/272696/ltcube_586396801_586656001_4FGL_J1415.5+4830_daily_bin1339.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/272696/Model_4FGL_J1415.5+4830_daily_bin1339.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) = 4275.28669637

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    13.673       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    122.44       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.7424       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10135E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    2.7772       1.0000         .10000E-03   10000.    
    10 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    4.6814       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    18.501       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.2045       1.0000         .10000E-03   10000.    
    17 'Prefactor '    15.124       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.0563       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.7415       1.0000         .10000E-03   10000.    
    23 'Prefactor '    20.116       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    23.727       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    27.068       1.0000         .10000E-03   10000.    
    28 'Prefactor '    1.9436       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    30 'norm      '    .10330E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    1.9406       1.0000         .10000E-03   10000.    
    32 'Prefactor '    18.858       1.0000         .10000E-03   10000.    
    33 'Prefactor '    9.3181       1.0000         .10000E-03   10000.    
    34 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    35 'Prefactor '    3.6375       1.0000         .10000E-03   10000.    
    36 'Normalizat'    .79793       1.0000         .10000E-01   10.000    
    37 'Prefactor '    1.2340       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=   4275.246     FROM MIGRAD    STATUS=CONVERGED   1046 CALLS     5588 TOTAL
                     EDM=   .45E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.1526        .95793E-06** at limit **
   2  Prefactor     13.762        110.22       -.16193E-04   -.18783E-05
   3  Prefactor     .10000E-03    6.1868       -.49176E-08** at limit **
   4  Prefactor     122.39        82.318        .49283E-05    .96063E-05
   5  norm          .10000E-03    1.5920        .90095E-07** at limit **
   6  Prefactor     4.7632        222.29       -.38582E-05    .27632E-05
   7  Prefactor     .10000E-03    31.444        .23483E-05** at limit **
   8  Prefactor     .10000E-03    172.66        .78209E-06** at limit **
   9  norm          2.7776        1.7893       -.38435E-07    .14782E-04
  10  norm          .10000E-03    37.145       -.30351E-06** at limit **
  11  norm          4.6822        5.6836        .17338E-06    .18522E-04
  12  norm          .10000E-03    5.9276       -.31322E-08** at limit **
  13  Prefactor     18.502        31.716        .30613E-08    .12476E-05
  14  Prefactor     .10000E-03    8.0853        .19977E-06** at limit **
  15  Prefactor     .10000E-03    25.017        .77979E-07** at limit **
  16  Prefactor     4.2047        5.3439        .33932E-06   -.16156E-05
  17  Prefactor     15.130        25.876        .42914E-07    .65507E-05
  18  Prefactor     .10000E-03    8.0385        .32416E-06** at limit **
  19  Prefactor     3.0572        4.2748       -.21606E-07    .24613E-05
  20  Prefactor     .10000E-03    8.2865       -.78767E-06** at limit **
  21  norm          .10000E-03    22.341       -.17613E-05** at limit **
  22  Prefactor     1.7404        43.587        .74086E-05   -.98887E-05
  23  Prefactor     20.111        35.969        .81742E-07    .34243E-05
  24  Prefactor     .10000E-03    26.287        .97814E-06** at limit **
  25  Prefactor     23.731        29.516       -.28988E-06    .61560E-05
  26  Prefactor     .10000E-03    14.654        .42004E-06** at limit **
  27  Prefactor     27.036        65.898        .36389E-05   -.11496E-04
  28  Prefactor     1.9375        43.897       -.15827E-06    .73472E-05
  29  Prefactor     .10000E-03    38.904       -.20386E-05** at limit **
  30  norm          .10000E-03    1.5211       -.18319E-07** at limit **
  31  Prefactor     1.9404        9.1937        .17702E-06   -.22168E-05
  32  Prefactor     18.859        11.106        .61790E-07    .65125E-04
  33  Prefactor     9.3193        9.9586        .30624E-07    .67053E-05
  34  norm          .10000E-03    2.2452        .16658E-06** at limit **
  35  Prefactor     3.6370        13.462        .20929E-05   -.12391E-04
  36  Normalizat    .79745        .23422       -.12591E-05    .55186E-04
  37  Prefactor     1.2346        .24995        .12617E-05    .40731E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 13.7621
  Prefactor  = 0.0001
  Prefactor  = 122.388
  norm       = 0.0001
  Prefactor  = 4.76316
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.77757
  norm       = 0.0001
  norm       = 4.68223
  norm       = 0.0001
  Prefactor  = 18.5016
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.20465
  Prefactor  = 15.1298
  Prefactor  = 0.0001
  Prefactor  = 3.05716
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.74037
  Prefactor  = 20.1111
  Prefactor  = 0.0001
  Prefactor  = 23.7312
  Prefactor  = 0.0001
  Prefactor  = 27.0362
  Prefactor  = 1.93746
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.94045
  Prefactor  = 18.8589
  Prefactor  = 9.31928
  norm       = 0.0001
  Prefactor  = 3.63695
  Normalizat = 0.797446
  Prefactor  = 1.23457
 **********
 **   18 **HESSE 
 **********

 FCN=   4275.246     FROM HESSE     STATUS=OK           855 CALLS     6443 TOTAL
                     EDM=   .87E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.2428        .13051E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     13.762        110.85        .10832E-03   -1.4966    
   3  Prefactor     .10000E-03    6.1876        .15882E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     122.39        82.065        .36373E-04   -1.3491    
   5  norm          .10000E-03    1.5947        .80560E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.7632        222.25        .18477E-03   -1.5271    
   7  Prefactor     .10000E-03    31.368        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    174.68        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.7776        1.7887        .66612E-04   -1.5375    
  10  norm          .10000E-03    37.144        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          4.6822        5.6422        .15648E-03   -1.5275    
  12  norm          .10000E-03    5.9324        .15548E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     18.502        31.703        .93115E-04   -1.4847    
  14  Prefactor     .10000E-03    8.0868        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    25.057        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.2047        5.3316        .81147E-03   -1.5298    
  17  Prefactor     15.130        25.910        .10299E-03   -1.4930    
  18  Prefactor     .10000E-03    8.0495        .18100E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.0572        4.2155        .12769E-03   -1.5358    
  20  Prefactor     .10000E-03    8.2938        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    22.732        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     1.7404        43.903        .15895E-02   -1.5444    
  23  Prefactor     20.111        35.728        .89301E-04   -1.4811    
  24  Prefactor     .10000E-03    26.278        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     23.731        29.537        .82235E-04   -1.4733    
  26  Prefactor     .10000E-03    14.655        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     27.036        65.767        .77000E-04   -1.4668    
  28  Prefactor     1.9375        43.288        .29776E-03   -1.5430    
  29  Prefactor     .10000E-03    39.209        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  norm          .10000E-03    3.3144        .15429E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     1.9404        9.0210        .29803E-03   -1.5429    
  32  Prefactor     18.859        11.088        .92232E-04   -1.4839    
  33  Prefactor     9.3193        9.9096        .13129E-03   -1.5097    
  34  norm          .10000E-03    2.2500        .95573E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  35  Prefactor     3.6370        13.462        .10591E-02   -1.5327    
  36  Normalizat    .79745        .27825        .26428E-03   -1.0016    
  37  Prefactor     1.2346        .29997        .25919E-03   -.85274    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.67402e-11
Minuit parameter uncertainties:
  1  6.34947e-05
  2  78.3167
  3  1.04733e-05
  4  82.1419
  5  3.59534e-06
  6  65.332
  7  8.98696e-05
  8  6.14724e-05
  9  1.7887
  10  9.18575e-06
  11  5.64284
  12  3.09857e-06
  13  31.7321
  14  6.49101e-06
  15  1.30834e-05
  16  5.33216
  17  25.9294
  18  1.237e-05
  19  4.21593
  20  6.88516e-06
  21  5.51011e-05
  22  17.4962
  23  35.766
  24  3.41229e-05
  25  29.5548
  26  1.24347e-05
  27  65.9439
  28  18.3305
  29  6.99422e-05
  30  4.19181e-06
  31  8.36962
  32  11.089
  33  9.91134
  34  1.82721e-06
  35  13.4733
  36  0.278744
  37  0.300388
Done.

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

Extracting fit parameters...

4FGL J1415.5+4830
   Spectrum: PowerLaw
322    Prefactor:  4.205e+00  5.332e+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:  1.235e+00  3.004e-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.974e-01  2.787e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.19
Ra Dec: 213.899 48.514
Photon Index (Fixed Index): 1.94 +/- 0.00
Photon Flux (Fixed Index): 1.79e-08 +/- 2.27e-08
Energy Flux (Fixed Index): 1.42e-05 +/- 1.81e-05

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

Saving results to:
/scratch/kocevski/272696/likelihoodResults_586396801_586656001_4FGL_J1415.5+4830_daily_bin1339.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) = 4274.98867124
delta logL = 0.256983296983

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4274.98675821
delta logL = 0.258896326532

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.3571       1.0000         .10000E-03   10000.    
     2 'Index     '    1.2614       1.0000          .0000       10.000    
     3 'Normalizat'    .81216       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2255       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=   4274.987     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      202 TOTAL
                     EDM=   .49E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.3572        9.3157        .48241E-02   -.18088E-03
   2  Index         1.2612        1.0882        .30694       -.34845E-04
   3  Normalizat    .81212        .20814        .43769E-01    .13057E-04
   4  Prefactor     1.2255        .24550        .58780E-01    .40850E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.35715
  Index      = 1.26122
  Normalizat = 0.812123
  Prefactor  = 1.22552
 **********
 **   18 **HESSE 
 **********

 FCN=   4274.987     FROM HESSE     STATUS=OK            33 CALLS      235 TOTAL
                     EDM=   .25E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.3572        5.8095        .16251E-03   -1.5290    
   2  Index         1.2612        .76534        .11999E-01   -.84468    
   3  Normalizat    .81212        .24309        .26205E-03   -.99621    
   4  Prefactor     1.2255        .29117        .25994E-03   -.85549    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.52715e-11
Minuit parameter uncertainties:
  1  5.81027
  2  0.772288
  3  0.243415
  4  0.291553
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/272696': 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) = 4274.98675813
delta logL = 0.258896406835

Extracting fit parameters...

4FGL J1415.5+4830
   Spectrum: PowerLaw
322    Prefactor:  4.357e+00  5.810e+00  1.000e-04  1.000e+04 ( 1.000e-13)
323        Index:  1.261e+00  7.723e-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.226e+00  2.916e-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:  8.121e-01  2.434e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.71
Ra Dec: 213.899 48.514
Photon Index (Free Index): 1.26 +/- 0.77
Photon Flux (Free Index): 6.81e-09 +/- 1.08e-08
Energy Flux (Free Index): 4.72e-05 +/- 8.76e-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/272696/cmap_HighResolution_586396801_586656001_4FGL_J1415.5+4830_daily_bin1339.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.08e-03', comment='SUCCESS', photon_flux='1.79e-08', energy_flux2='4.72e-05', photon_flux_error='2.27e-08', dlogl='2.59e-01', energy_flux='1.42e-05', photon_flux2='6.81e-09', job_status='DONE', time_completed='2021-09-09 06:03:12.897333', photon_index_error2='0.77', photon_index2='1.26', ts='1.19', fit_tolerance='1e-08', GAL='1.23', photon_index_error='0.00', photon_flux_upper_limit='8.14e-08', energy_flux_error2='8.76e-05', EG='0.80', time_epoch_completed='1631192592.9', return_code='0', job_id='272696', GAL2='1.23', EG2='0.81', return_code2='0', energy_flux_error='1.81e-05', photon_flux_error2='1.08e-08', ts2='1.71', photon_index='1.94' WHERE bin_id='1339' AND source_name='4FGL J1415.5+4830' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 06:03:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0218>
Subject: Job 272696: <4FGL_J1415.5+4830_daily_bin1339> in cluster <slac> Done

Job <4FGL_J1415.5+4830_daily_bin1339> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Sep  9 05:48:04 2021
Job was executed on host(s) <bullet0218>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 05:48:06 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:48:06 2021
Terminated at Thu Sep  9 06:03:13 2021
Results reported at Thu Sep  9 06:03:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1415.5+4830_daily_bin1339 213.899 48.5142 586396801 586656001 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 :                                   881.32 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             335.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   907 sec.
    Turnaround time :                            909 sec.

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

