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


Performing analysis on: 4FGL_J0515.8+1527_daily_bin651
RA = 78.953, Dec = 15.4614
tmin = 408067201, tmax = 408326401
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='146283', job_status='RUN', time_executed='2021-08-22 06:53:15.150213', time_epoch_executed='1629640395.15' WHERE source_name='4FGL J0515.8+1527' and cadence='daily' and bin_id='651'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/146283

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/146283/ft1_4FGL_J0515.8+1527_daily_bin651.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/146283/ft2_4FGL_J0515.8+1527_daily_bin651.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/146283/ft1_4FGL_J0515.8+1527_daily_bin651.fits outfile=/scratch/kocevski/146283/ft1_filteredMKT_4FGL_J0515.8+1527_daily_bin651.fits ra=78.953 dec=15.4614 rad=12.0 tmin=408067201.0 tmax=408326401.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 5.03
user 3.63
sys 1.34

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/146283/ft2_4FGL_J0515.8+1527_daily_bin651.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/146283/ft2_4FGL_J0515.8+1527_daily_bin651.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/146283/ft1_filteredMKT_4FGL_J0515.8+1527_daily_bin651.fits evtable="EVENTS" outfile="/scratch/kocevski/146283/ft1_filtered_4FGL_J0515.8+1527_daily_bin651.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.66
user 0.34
sys 1.27

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/146283/ft1_filtered_4FGL_J0515.8+1527_daily_bin651.fits" evtable="EVENTS" scfile=/scratch/kocevski/146283/ft2_4FGL_J0515.8+1527_daily_bin651.fits sctable="SC_DATA" outfile=/scratch/kocevski/146283/ltcube_408067201_408326401_4FGL_J0515.8+1527_daily_bin651.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/146283/ft2_4FGL_J0515.8+1527_daily_bin651.fits
.....................!
real 13.22
user 11.52
sys 1.58

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/146283/ft1_filtered_4FGL_J0515.8+1527_daily_bin651.fits evtable="EVENTS" scfile=/scratch/kocevski/146283/ft2_4FGL_J0515.8+1527_daily_bin651.fits sctable="SC_DATA" expcube=/scratch/kocevski/146283/ltcube_408067201_408326401_4FGL_J0515.8+1527_daily_bin651.fits outfile=/scratch/kocevski/146283/expmap_408067201_408326401_4FGL_J0515.8+1527_daily_bin651.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/146283/ltcube_408067201_408326401_4FGL_J0515.8+1527_daily_bin651.fits
.....................!
real 194.50
user 186.51
sys 6.57

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
Extended source S 147 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/S147.fits is the correct path to the extended template.
Extended source IC 443 in ROI with RadialGaussian spatial model.
Added 165 point sources and 2 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0515.8+1527 @ 78.953 15.4614

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/146283/ft1_filtered_4FGL_J0515.8+1527_daily_bin651.fits scfile=/scratch/kocevski/146283/ft2_4FGL_J0515.8+1527_daily_bin651.fits outfile=/scratch/kocevski/146283/cmap_408067201_408326401_4FGL_J0515.8+1527_daily_bin651.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=78.953 yref=15.4614 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 1.67
user 0.37
sys 1.26

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/146283/ft1_filtered_4FGL_J0515.8+1527_daily_bin651.fits scfile=/scratch/kocevski/146283/ft2_4FGL_J0515.8+1527_daily_bin651.fits outfile=/scratch/kocevski/146283/cmap_HighResolution_408067201_408326401_4FGL_J0515.8+1527_daily_bin651.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=78.953 yref=15.4614 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 1.65
user 0.39
sys 1.25

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/146283/ft1_filtered_4FGL_J0515.8+1527_daily_bin651.fits evtable="EVENTS" scfile=/scratch/kocevski/146283/ft2_4FGL_J0515.8+1527_daily_bin651.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/146283/Model_4FGL_J0515.8+1527_daily_bin651.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
adding source IC 443
adding source S 147
Working on...
/scratch/kocevski/146283/ft1_filtered_4FGL_J0515.8+1527_daily_bin651.fits........................!
real 47.15
user 42.95
sys 2.77

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/146283/ft1_filtered_4FGL_J0515.8+1527_daily_bin651.fits', '/scratch/kocevski/146283/ft2_4FGL_J0515.8+1527_daily_bin651.fits', expMap='/scratch/kocevski/146283/expmap_408067201_408326401_4FGL_J0515.8+1527_daily_bin651.fits', expCube='/scratch/kocevski/146283/ltcube_408067201_408326401_4FGL_J0515.8+1527_daily_bin651.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/146283/Model_4FGL_J0515.8+1527_daily_bin651.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0515.8+1527'

4FGL J0515.8+1527
   Spectrum: PowerLaw
237    Prefactor:  1.467e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
238        Index:  1.942e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
239        Scale:  3.068e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/146283/ft1_filtered_4FGL_J0515.8+1527_daily_bin651.fits
Spacecraft file(s): /scratch/kocevski/146283/ft2_4FGL_J0515.8+1527_daily_bin651.fits
Exposure map: /scratch/kocevski/146283/expmap_408067201_408326401_4FGL_J0515.8+1527_daily_bin651.fits
Exposure cube: /scratch/kocevski/146283/ltcube_408067201_408326401_4FGL_J0515.8+1527_daily_bin651.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/146283/Model_4FGL_J0515.8+1527_daily_bin651.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) = 1373.34794651

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .34495E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    166.55       1.0000         .10000E-03   10000.    
     7 'Prefactor '    37.580       1.0000         .10000E-03   10000.    
     8 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.5394       1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    84.761       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    104.38       1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .77761       1.0000         .10000E-03   10000.    
    19 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    8.2959       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .10001E-01   1.0000         .10000E-01   10.000    
    26 'Prefactor '    .81446       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5710E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1373.319     FROM MIGRAD    STATUS=CONVERGED    598 CALLS     3119 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    385.69       -.39325E-06** at limit **
   2  Prefactor     .10000E-03    128.52       -.42396E-06** at limit **
   3  Prefactor     .10000E-03    23.327       -.29030E-06** at limit **
   4  norm          .10000E-03    5.7815        .76219E-07** at limit **
   5  Prefactor     .10000E-03    295.91       -.30655E-05** at limit **
   6  Prefactor     166.52        113.53        .18034E-05    .11534E-03
   7  Prefactor     37.619        74.510        .55164E-06    .34575E-04
   8  norm          .10000E-03    .80399       -.33405E-06** at limit **
   9  norm          .10000E-03    6.2718       -.33980E-06** at limit **
  10  Prefactor     3.5360        12.674        .32402E-06    .52567E-04
  11  norm          .10000E-03    38.547        .31829E-06** at limit **
  12  Prefactor     .10000E-03    24.912        .24639E-06** at limit **
  13  Prefactor     .10000E-03    420.06       -.74072E-06** at limit **
  14  norm          84.755        88.244        .13127E-07   -.40048E-04
  15  Prefactor     .10000E-03    380.39       -.37516E-06** at limit **
  16  norm          104.34        65.491        .33638E-06    .82703E-04
  17  norm          .10000E-03    1.1253       -.56631E-07** at limit **
  18  Prefactor     .77796        1.0570        .45764E-06   -.10625E-02
  19  norm          .10000E-03    170.32       -.58017E-07** at limit **
  20  Prefactor     .10000E-03    9.3937       -.42661E-07** at limit **
  21  Prefactor     .10000E-03    31.104       -.22541E-06** at limit **
  22  Prefactor     .10000E-03    43.355       -.24671E-06** at limit **
  23  Prefactor     .10000E-03    188.40        .61866E-06** at limit **
  24  Prefactor     8.3367        65.666       -.59280E-06    .67091E-04
  25  Normalizat    .10000E-01    .55931       -.19015E-04** at limit **
  26  Prefactor     .81426        .11344        .11559E-05    .31902E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 166.516
  Prefactor  = 37.6186
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 3.53603
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 84.7549
  Prefactor  = 0.0001
  norm       = 104.344
  norm       = 0.0001
  Prefactor  = 0.777955
  norm       = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 8.33667
  Normalizat = 0.01
  Prefactor  = 0.814257
 **********
 **   18 **HESSE 
 **********

 FCN=   1373.319     FROM HESSE     STATUS=OK           440 CALLS     3559 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    385.69        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    128.52        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    23.355        .17483E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    5.7887        .87021E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    296.64        .21330E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     166.52        114.70        .15628E-03   -1.3120    
   7  Prefactor     37.619        74.453        .65379E-04   -1.4481    
   8  norm          .10000E-03    .80550        .32173E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    6.2848        .90558E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.5360        12.621        .21486E-03   -1.5332    
  11  norm          .10000E-03    38.524        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    24.902        .18063E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    420.11        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          84.755        87.853        .21817E-03   -1.3864    
  15  Prefactor     .10000E-03    380.40        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          104.34        64.517        .39359E-04   -1.3661    
  17  norm          .10000E-03    1.1551        .76725E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .77796        .98874        .40378E-03   -1.5532    
  19  norm          .10000E-03    172.63        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    9.4133        .11093E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    31.109        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    43.364        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    188.31        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     8.3367        62.836        .13919E-03   -1.5130    
  25  Normalizat    .10000E-01    .80335        .16378E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .81426        .11650        .13127E-03   -.99205    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.60326e-10
Minuit parameter uncertainties:
  1  0.000780691
  2  0.00048761
  3  2.58584e-05
  4  9.48939e-06
  5  0.00163572
  6  114.854
  7  74.6379
  8  8.31969e-06
  9  2.21992e-05
  10  12.6304
  11  3.63753e-05
  12  3.71247e-05
  13  0.00150883
  14  87.9877
  15  0.000711339
  16  64.5601
  17  1.29104e-06
  18  0.988759
  19  0.0013942
  20  3.09823e-05
  21  2.2841e-05
  22  2.72476e-05
  23  0.000634296
  24  45.8423
  25  3.57839e-07
  26  0.116537
Done.

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

Extracting fit parameters...

4FGL J0515.8+1527
   Spectrum: PowerLaw
237    Prefactor:  1.000e-04  3.712e-05  1.000e-04  1.000e+04 ( 1.000e-13)
238        Index:  1.942e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
239        Scale:  3.068e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
560    Prefactor:  8.143e-01  1.165e-01  0.000e+00  1.000e+01 ( 1.000e+00)
561        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
562        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
559   Normalization:  1.000e-02  3.578e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 78.953 15.461
Photon Flux Upper Limit: 8.52e-07 ph cm-2 s-1
Energy Flux Upper Limit: 6.36e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/146283/likelihoodResults_408067201_408326401_4FGL_J0515.8+1527_daily_bin651.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) = 1373.31914589
delta logL = -0.000196712340994

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1373.31796477
delta logL = 0.000984400656307

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   1373.318     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      281 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .43584E-01    4.8308        .21340E-01    .10290E-03
   2  Index         3.6967        3.0498        .20902        .56672E-04
   3  Normalizat    .10000E-01    .50122E-02    .32094    ** at limit **
   4  Prefactor     .81326        .98548E-02    .29708E-01    .36219E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0435841
  Index      = 3.69674
  Normalizat = 0.01
  Prefactor  = 0.813256
 **********
 **   18 **HESSE 
 **********

 FCN=   1373.318     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      314 TOTAL
                     EDM=   .74E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .43584E-01    1129.8        .71900E-03   -1.5666    
   2  Index         3.6967        5.3897        .11185E-01   -.26370    
   3  Normalizat    .10000E-01    .64198        .16316E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .81326        .14644        .13129E-03   -.99242    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.4319e-07
Minuit parameter uncertainties:
  1  14.2967
  2  72.4782
  3  7.79244e-07
  4  0.146511
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/146283': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1373.31796475
delta logL = 0.000984430375183

Extracting fit parameters...

4FGL J0515.8+1527
   Spectrum: PowerLaw
237    Prefactor:  4.358e-02  1.430e+01  1.000e-04  1.000e+04 ( 1.000e-13)
238        Index:  3.697e+00  7.248e+01  0.000e+00  1.000e+01 (-1.000e+00)
239        Scale:  3.068e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
560    Prefactor:  8.133e-01  1.465e-01  0.000e+00  1.000e+01 ( 1.000e+00)
561        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
562        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
559   Normalization:  1.000e-02  7.792e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 78.953 15.461

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/146283/cmap_HighResolution_408067201_408326401_4FGL_J0515.8+1527_daily_bin651.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.36e-02', job_status='DONE', photon_flux_upper_limit='8.52e-07', time_completed='2021-08-22 07:00:41.017009', job_id='146283', GAL2='0.81', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1629640841.02', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='9.84e-04', ts2='0.00', photon_index_error='0.00', photon_index='1.94' WHERE bin_id='651' AND source_name='4FGL J0515.8+1527' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 22 07:00:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0067>
Subject: Job 146283: <4FGL_J0515.8+1527_daily_bin651> in cluster <slac> Done

Job <4FGL_J0515.8+1527_daily_bin651> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Aug 22 06:50:21 2021
Job was executed on host(s) <bullet0067>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 22 06:50:23 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 22 06:50:23 2021
Terminated at Sun Aug 22 07:00:41 2021
Results reported at Sun Aug 22 07:00:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0515.8+1527_daily_bin651 78.953 15.4614 408067201 408326401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0515.8+1527 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   457.48 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             271.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   618 sec.
    Turnaround time :                            620 sec.

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

