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


Performing analysis on: 4FGL_J0515.8+1527_daily_bin32
RA = 78.953, Dec = 15.4614
tmin = 247622401, tmax = 247881601
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='138946', job_status='RUN', time_executed='2021-08-22 06:31:09.226717', time_epoch_executed='1629639069.23' WHERE source_name='4FGL J0515.8+1527' and cadence='daily' and bin_id='32'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/138946

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/138946/ft1_4FGL_J0515.8+1527_daily_bin32.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/138946/ft2_4FGL_J0515.8+1527_daily_bin32.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/138946/ft1_4FGL_J0515.8+1527_daily_bin32.fits outfile=/scratch/kocevski/138946/ft1_filteredMKT_4FGL_J0515.8+1527_daily_bin32.fits ra=78.953 dec=15.4614 rad=12.0 tmin=247622401.0 tmax=247881601.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 2.15
user 1.26
sys 0.87

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/138946/ft2_4FGL_J0515.8+1527_daily_bin32.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/138946/ft1_filteredMKT_4FGL_J0515.8+1527_daily_bin32.fits evtable="EVENTS" outfile="/scratch/kocevski/138946/ft1_filtered_4FGL_J0515.8+1527_daily_bin32.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.23
user 0.31
sys 0.91

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/138946/ft1_filtered_4FGL_J0515.8+1527_daily_bin32.fits" evtable="EVENTS" scfile=/scratch/kocevski/138946/ft2_4FGL_J0515.8+1527_daily_bin32.fits sctable="SC_DATA" outfile=/scratch/kocevski/138946/ltcube_247622401_247881601_4FGL_J0515.8+1527_daily_bin32.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/138946/ft2_4FGL_J0515.8+1527_daily_bin32.fits
.....................!
real 13.06
user 11.88
sys 1.15

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/138946/ft1_filtered_4FGL_J0515.8+1527_daily_bin32.fits evtable="EVENTS" scfile=/scratch/kocevski/138946/ft2_4FGL_J0515.8+1527_daily_bin32.fits sctable="SC_DATA" expcube=/scratch/kocevski/138946/ltcube_247622401_247881601_4FGL_J0515.8+1527_daily_bin32.fits outfile=/scratch/kocevski/138946/expmap_247622401_247881601_4FGL_J0515.8+1527_daily_bin32.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/138946/ltcube_247622401_247881601_4FGL_J0515.8+1527_daily_bin32.fits
.....................!
real 192.20
user 186.15
sys 5.71

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/138946/ft1_filtered_4FGL_J0515.8+1527_daily_bin32.fits scfile=/scratch/kocevski/138946/ft2_4FGL_J0515.8+1527_daily_bin32.fits outfile=/scratch/kocevski/138946/cmap_247622401_247881601_4FGL_J0515.8+1527_daily_bin32.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.26
user 0.38
sys 0.86

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/138946/ft1_filtered_4FGL_J0515.8+1527_daily_bin32.fits scfile=/scratch/kocevski/138946/ft2_4FGL_J0515.8+1527_daily_bin32.fits outfile=/scratch/kocevski/138946/cmap_HighResolution_247622401_247881601_4FGL_J0515.8+1527_daily_bin32.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.26
user 0.38
sys 0.87

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/138946/ft1_filtered_4FGL_J0515.8+1527_daily_bin32.fits evtable="EVENTS" scfile=/scratch/kocevski/138946/ft2_4FGL_J0515.8+1527_daily_bin32.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/138946/Model_4FGL_J0515.8+1527_daily_bin32.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/138946/ft1_filtered_4FGL_J0515.8+1527_daily_bin32.fits.....................!
real 727.12
user 723.61
sys 2.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/138946/ft1_filtered_4FGL_J0515.8+1527_daily_bin32.fits', '/scratch/kocevski/138946/ft2_4FGL_J0515.8+1527_daily_bin32.fits', expMap='/scratch/kocevski/138946/expmap_247622401_247881601_4FGL_J0515.8+1527_daily_bin32.fits', expCube='/scratch/kocevski/138946/ltcube_247622401_247881601_4FGL_J0515.8+1527_daily_bin32.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/138946/Model_4FGL_J0515.8+1527_daily_bin32.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/138946/ft1_filtered_4FGL_J0515.8+1527_daily_bin32.fits
Spacecraft file(s): /scratch/kocevski/138946/ft2_4FGL_J0515.8+1527_daily_bin32.fits
Exposure map: /scratch/kocevski/138946/expmap_247622401_247881601_4FGL_J0515.8+1527_daily_bin32.fits
Exposure cube: /scratch/kocevski/138946/ltcube_247622401_247881601_4FGL_J0515.8+1527_daily_bin32.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/138946/Model_4FGL_J0515.8+1527_daily_bin32.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) = 32444.8825718

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .27287E-02   1.0000         .10000E-03   10000.    
     4 'norm      '    3.5320       1.0000         .10000E-03   10000.    
     5 'Prefactor '    18.221       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10092E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .36412       1.0000         .10000E-03   10000.    
     9 'norm      '    .90702       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11779E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10176E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .36317E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    8.2195       1.0000         .10000E-03   10000.    
    17 'norm      '    1.7341       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .95115       1.0000         .10000E-03   10000.    
    19 'norm      '    9.9756       1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.0029       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .11697E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10165E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    4.1620       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0221       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0012       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5710E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   32444.78     FROM MIGRAD    STATUS=CONVERGED    105 CALLS     2235 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.7518       -.11573E-04** at limit **
   2  Prefactor     .10013E-03    10.458        .85567E-05** at limit **
   3  Prefactor     .10003E-03    3.1415        .52932E-05** at limit **
   4  norm          3.5325        1.9031        .28664E-07   -.27657E-04
   5  Prefactor     18.219        1.0378       -.23541E-06    .28507E-03
   6  Prefactor     .10002E-03    6.5433       -.66530E-05** at limit **
   7  Prefactor     .10000E-03    5.9703        .35354E-05** at limit **
   8  norm          .36439        .42618       -.63041E-06    .11585E-02
   9  norm          .90711        1.7666       -.38332E-07    .75462E-04
  10  Prefactor     .10000E-03    5.5903       -.22339E-05** at limit **
  11  norm          .10000E-03    1.0180        .33437E-06** at limit **
  12  Prefactor     .10000E-03    .62412        .59264E-06** at limit **
  13  Prefactor     .10017E-03    10.329        .69006E-05** at limit **
  14  norm          .10000E-03    4.8172        .41556E-06** at limit **
  15  Prefactor     .10012E-03    45.531       -.33806E-04** at limit **
  16  norm          8.2182        1.1772        .75044E-07   -.15866E-04
  17  norm          1.7335        .85629        .22644E-06   -.58364E-03
  18  Prefactor     .95118        .13318        .63622E-07    .70241E-02
  19  norm          9.9753        3.5274       -.16402E-05    .38582E-03
  20  Prefactor     6.0030        .87813       -.11551E-06    .50083E-03
  21  Prefactor     .10024E-03    19.826        .21353E-04** at limit **
  22  Prefactor     .10001E-03    8.5146       -.11666E-04** at limit **
  23  Prefactor     .10000E-03    10.626        .20818E-04** at limit **
  24  Prefactor     4.1616        3.3329        .44888E-06   -.92642E-04
  25  Normalizat    1.0220        .25592        .13758E-05   -.32318E-04
  26  Prefactor     1.0012        .40947E-01    .31170E-07   -.39909E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.00010013
  Prefactor  = 0.000100026
  norm       = 3.53253
  Prefactor  = 18.219
  Prefactor  = 0.000100018
  Prefactor  = 0.0001
  norm       = 0.36439
  norm       = 0.907107
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.00010017
  norm       = 0.0001
  Prefactor  = 0.000100121
  norm       = 8.21823
  norm       = 1.73347
  Prefactor  = 0.951176
  norm       = 9.97534
  Prefactor  = 6.00304
  Prefactor  = 0.000100244
  Prefactor  = 0.000100009
  Prefactor  = 0.000100003
  Prefactor  = 4.16156
  Normalizat = 1.02195
  Prefactor  = 1.00125
 **********
 **   18 **HESSE 
 **********

 FCN=   32444.78     FROM HESSE     STATUS=OK           534 CALLS     2769 TOTAL
                     EDM=   .17E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.6675        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10013E-03    39.500        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10003E-03    2.0781        .99645E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.5325        1.9206        .53772E-02   -1.5332    
   5  Prefactor     18.219        22.531        .23457E-02   -1.4854    
   6  Prefactor     .10002E-03    14.072        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.8058        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .36439        .47043        .27675E-01   -1.5587    
   9  norm          .90711        1.7958        .74604E-01   -1.5517    
  10  Prefactor     .10000E-03    .78220        .55006E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.0065        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    .62308        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10017E-03    39.709        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    .51807        .69453E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10012E-03    51.829        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          8.2182        5.0952        .34960E-02   -1.5135    
  17  norm          1.7335        .86534        .79680E-02   -1.5445    
  18  Prefactor     .95118        .11901        .31506E-02   -1.5513    
  19  norm          9.9753        3.2367        .31717E-02   -1.5076    
  20  Prefactor     6.0030        .82951        .40971E-02   -1.5218    
  21  Prefactor     .10024E-03    33.556        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10001E-03    14.705        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    10.732        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     4.1616        3.4918        .49391E-02   -1.5300    
  25  Normalizat    1.0220        .27358        .19084       -.92299    
  26  Prefactor     1.0012        .40808E-01    .32457E-01   -.92688    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.68591e-07
Minuit parameter uncertainties:
  1  9.0919e-05
  2  0.00454257
  3  0.000463024
  4  1.92068
  5  22.5417
  6  0.00101353
  7  2.6757e-05
  8  0.470437
  9  1.79586
  10  4.98235e-06
  11  9.72101e-08
  12  6.71907e-06
  13  0.00520493
  14  2.22021e-06
  15  0.00501608
  16  5.09546
  17  0.865351
  18  0.119006
  19  3.23674
  20  0.829508
  21  0.00572624
  22  0.000711237
  23  0.00033945
  24  3.49195
  25  0.273961
  26  0.0408094
Done.

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

Extracting fit parameters...

4FGL J0515.8+1527
   Spectrum: PowerLaw
237    Prefactor:  1.000e-04  6.719e-06  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:  1.001e+00  4.081e-02  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.022e+00  2.740e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 78.953 15.461
Photon Flux Upper Limit: 2.91e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.17e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/138946/likelihoodResults_247622401_247881601_4FGL_J0515.8+1527_daily_bin32.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) = 32444.7850386
delta logL = -0.00761404883087

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 32444.7774221
delta logL = 2.36815321841e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9144       1.0000          .0000       10.000    
     3 'Normalizat'    1.0220       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0012       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=   32444.78     FROM MIGRAD    STATUS=CONVERGED     71 CALLS      233 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.2329        .90712E-02** at limit **
   2  Index         1.3743        7.8173        .50000       -.12609E-05
   3  Normalizat    1.0220        .10384E-01    .19084        .89190E-04
   4  Prefactor     1.0012        .17448E-02    .32457E-01   -.33746E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.3743
  Normalizat = 1.02195
  Prefactor  = 1.00125
 **********
 **   18 **HESSE 
 **********

 FCN=   32444.78     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      266 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    17.733        .16521E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.3743        9.1133        .50000       -.81124    
   3  Normalizat    1.0220        .29562E-01    .85008E-03   -.92299    
   4  Prefactor     1.0012        .50084E-02    .14343E-03   -.92688    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.01868e-09
Minuit parameter uncertainties:
  1  3.8511e-05
  2  209.514
  3  0.0295623
  4  0.00500839
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/138946': 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) = 32444.7774011
delta logL = 2.34408762481e-05

Extracting fit parameters...

4FGL J0515.8+1527
   Spectrum: PowerLaw
237    Prefactor:  1.000e-04  3.851e-05  1.000e-04  1.000e+04 ( 1.000e-13)
238        Index:  1.374e+00  2.095e+02  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:  1.001e+00  5.008e-03  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.022e+00  2.956e-02  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/138946/cmap_HighResolution_247622401_247881601_4FGL_J0515.8+1527_daily_bin32.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.17e-03', job_status='DONE', photon_flux_upper_limit='2.91e-08', time_completed='2021-08-22 07:17:44.419163', job_id='138946', GAL2='1.00', fit_tolerance='1e-08', EG2='1.02', EG='1.02', time_epoch_completed='1629641864.42', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='2.34e-05', ts2='-0.00', photon_index_error='0.00', photon_index='1.94' WHERE bin_id='32' AND source_name='4FGL J0515.8+1527' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 22 07:17:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0248>
Subject: Job 138946: <4FGL_J0515.8+1527_daily_bin32> in cluster <slac> Done

Job <4FGL_J0515.8+1527_daily_bin32> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Aug 22 06:30:40 2021
Job was executed on host(s) <bullet0248>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 22 06:30:42 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:30:42 2021
Terminated at Sun Aug 22 07:17:44 2021
Results reported at Sun Aug 22 07:17:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0515.8+1527_daily_bin32 78.953 15.4614 247622401 247881601 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 :                                   2799.92 sec.
    Max Memory :                                 635 MB
    Average Memory :                             409.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   2933 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   2822 sec.
    Turnaround time :                            2824 sec.

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

