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


Performing analysis on: 4FGL_J1510.8+7959_daily_bin740
RA = 227.705, Dec = 79.991
tmin = 431136001, tmax = 431395201
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='204488', job_status='RUN', time_executed='2021-09-11 08:41:12.014882', time_epoch_executed='1631374872.01' WHERE source_name='4FGL J1510.8+7959' and cadence='daily' and bin_id='740'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/204488

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/204488/ft1_4FGL_J1510.8+7959_daily_bin740.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/204488/ft2_4FGL_J1510.8+7959_daily_bin740.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/204488/ft1_4FGL_J1510.8+7959_daily_bin740.fits outfile=/scratch/kocevski/204488/ft1_filteredMKT_4FGL_J1510.8+7959_daily_bin740.fits ra=227.705 dec=79.991 rad=12.0 tmin=431136001.0 tmax=431395201.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.59
user 5.30
sys 0.25

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/204488/ft2_4FGL_J1510.8+7959_daily_bin740.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/204488/ft2_4FGL_J1510.8+7959_daily_bin740.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/204488/ft1_filteredMKT_4FGL_J1510.8+7959_daily_bin740.fits evtable="EVENTS" outfile="/scratch/kocevski/204488/ft1_filtered_4FGL_J1510.8+7959_daily_bin740.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/204488/ft1_filtered_4FGL_J1510.8+7959_daily_bin740.fits" evtable="EVENTS" scfile=/scratch/kocevski/204488/ft2_4FGL_J1510.8+7959_daily_bin740.fits sctable="SC_DATA" outfile=/scratch/kocevski/204488/ltcube_431136001_431395201_4FGL_J1510.8+7959_daily_bin740.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/204488/ft2_4FGL_J1510.8+7959_daily_bin740.fits
.....................!
real 12.41
user 12.05
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/204488/ft1_filtered_4FGL_J1510.8+7959_daily_bin740.fits evtable="EVENTS" scfile=/scratch/kocevski/204488/ft2_4FGL_J1510.8+7959_daily_bin740.fits sctable="SC_DATA" expcube=/scratch/kocevski/204488/ltcube_431136001_431395201_4FGL_J1510.8+7959_daily_bin740.fits outfile=/scratch/kocevski/204488/expmap_431136001_431395201_4FGL_J1510.8+7959_daily_bin740.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/204488/ltcube_431136001_431395201_4FGL_J1510.8+7959_daily_bin740.fits
.....................!
real 190.74
user 185.79
sys 4.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
Added 197 point sources and 0 extended sources

Setting source of interest to:
4FGL J1510.8+7959 @ 227.705 79.991

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/204488/ft1_filtered_4FGL_J1510.8+7959_daily_bin740.fits scfile=/scratch/kocevski/204488/ft2_4FGL_J1510.8+7959_daily_bin740.fits outfile=/scratch/kocevski/204488/cmap_431136001_431395201_4FGL_J1510.8+7959_daily_bin740.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=227.705 yref=79.991 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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/204488/ft1_filtered_4FGL_J1510.8+7959_daily_bin740.fits scfile=/scratch/kocevski/204488/ft2_4FGL_J1510.8+7959_daily_bin740.fits outfile=/scratch/kocevski/204488/cmap_HighResolution_431136001_431395201_4FGL_J1510.8+7959_daily_bin740.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=227.705 yref=79.991 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.54
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/204488/ft1_filtered_4FGL_J1510.8+7959_daily_bin740.fits evtable="EVENTS" scfile=/scratch/kocevski/204488/ft2_4FGL_J1510.8+7959_daily_bin740.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/204488/Model_4FGL_J1510.8+7959_daily_bin740.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/204488/ft1_filtered_4FGL_J1510.8+7959_daily_bin740.fits.....................!
real 71.93
user 70.58
sys 1.15

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/204488/ft1_filtered_4FGL_J1510.8+7959_daily_bin740.fits', '/scratch/kocevski/204488/ft2_4FGL_J1510.8+7959_daily_bin740.fits', expMap='/scratch/kocevski/204488/expmap_431136001_431395201_4FGL_J1510.8+7959_daily_bin740.fits', expCube='/scratch/kocevski/204488/ltcube_431136001_431395201_4FGL_J1510.8+7959_daily_bin740.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/204488/Model_4FGL_J1510.8+7959_daily_bin740.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1510.8+7959'

4FGL J1510.8+7959
   Spectrum: PowerLaw
342    Prefactor:  6.990e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
343        Index:  2.218e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
344        Scale:  1.698e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/204488/ft1_filtered_4FGL_J1510.8+7959_daily_bin740.fits
Spacecraft file(s): /scratch/kocevski/204488/ft2_4FGL_J1510.8+7959_daily_bin740.fits
Exposure map: /scratch/kocevski/204488/expmap_431136001_431395201_4FGL_J1510.8+7959_daily_bin740.fits
Exposure cube: /scratch/kocevski/204488/ltcube_431136001_431395201_4FGL_J1510.8+7959_daily_bin740.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/204488/Model_4FGL_J1510.8+7959_daily_bin740.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) = 5710.37330036

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.409       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .54514E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .68594       1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.4774       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .23450E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    84.358       1.0000         .10000E-03   10000.    
     7 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.5033       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .74416       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .14985E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.7277       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .26951E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11222E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .12652E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .12464E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    40.292       1.0000         .10000E-03   10000.    
    18 'norm      '    10.980       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .38592E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10984E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.1268       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    2.5869       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .97582       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .94387       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6290E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5710.372     FROM MIGRAD    STATUS=CONVERGED    628 CALLS     2916 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.400        9.3041        .96445E-05    .88728E-04
   2  Prefactor     .10000E-03    28.513        .17723E-05** at limit **
   3  norm          .70417        7.9718       -.38158E-05   -.16726E-03
   4  Prefactor     9.4926        14.166        .22843E-05    .74299E-03
   5  Prefactor     .10000E-03    11.990        .23398E-06** at limit **
   6  Prefactor     83.889        84.581       -.19344E-04    .32399E-04
   7  norm          .10000E-03    2.7821        .71346E-07** at limit **
   8  Prefactor     7.5267        27.330        .92817E-05    .11320E-05
   9  Prefactor     .32302        14.874       -.11321E-05   -.32103E-05
  10  Prefactor     .10000E-03    21.288        .89283E-05** at limit **
  11  Prefactor     .10000E-03    51.224        .16284E-05** at limit **
  12  Prefactor     6.6998        10.246       -.13230E-05   -.99859E-04
  13  Prefactor     .10000E-03    6.5346        .82827E-07** at limit **
  14  Prefactor     .10000E-03    25.117        .12730E-04** at limit **
  15  Prefactor     .10000E-03    14.869        .41761E-07** at limit **
  16  Prefactor     .10000E-03    23.796       -.18367E-04** at limit **
  17  Prefactor     40.801        81.067       -.13871E-04    .24919E-04
  18  norm          10.972        19.333       -.15146E-04   -.25975E-04
  19  Prefactor     .10000E-03    57.572       -.19874E-04** at limit **
  20  Prefactor     .10000E-03    1.8386       -.28874E-06** at limit **
  21  Prefactor     3.0744        104.73        .33019E-04    .23088E-05
  22  Prefactor     .10000E-03    18.912       -.41482E-05** at limit **
  23  norm          2.5859        1.2163       -.42041E-06   -.71624E-03
  24  Normalizat    .97639        .19428        .16969E-05    .26779E-03
  25  Prefactor     .94400        .11881       -.42633E-06    .47254E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.3996
  Prefactor  = 0.0001
  norm       = 0.704175
  Prefactor  = 9.49264
  Prefactor  = 0.0001
  Prefactor  = 83.8887
  norm       = 0.0001
  Prefactor  = 7.5267
  Prefactor  = 0.323021
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.69984
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 40.801
  norm       = 10.9723
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.0744
  Prefactor  = 0.0001
  norm       = 2.58591
  Normalizat = 0.97639
  Prefactor  = 0.943996
 **********
 **   18 **HESSE 
 **********

 FCN=   5710.372     FROM HESSE     STATUS=OK           423 CALLS     3339 TOTAL
                     EDM=   .61E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.400        9.2904        .12419E-03   -1.5063    
   2  Prefactor     .10000E-03    29.257        .42228E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .70417        14.394        .28031E-02   -1.5540    
   4  Prefactor     9.4926        13.804        .13018E-03   -1.5092    
   5  Prefactor     .10000E-03    12.178        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     83.889        84.691        .43737E-04   -1.3874    
   7  norm          .10000E-03    2.8433        .12294E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     7.5267        27.303        .14641E-03   -1.5159    
   9  Prefactor     .32302        332.93        .53299E-02   -1.5594    
  10  Prefactor     .10000E-03    21.285        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    51.575        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.6998        10.345        .15470E-03   -1.5190    
  13  Prefactor     .10000E-03    6.5415        .18865E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    25.102        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    14.892        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    23.756        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     40.801        81.145        .63148E-04   -1.4430    
  18  norm          10.972        19.341        .12090E-03   -1.5045    
  19  Prefactor     .10000E-03    57.538        .21280E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    1.8436        .99575E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     3.0744        102.42        .22928E-03   -1.5357    
  22  Prefactor     .10000E-03    18.918        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          2.5859        1.2062        .51811E-04   -1.5386    
  24  Normalizat    .97639        .21731        .27787E-03   -.93826    
  25  Prefactor     .94400        .13271        .18884E-03   -.94620    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.0711e-08
Minuit parameter uncertainties:
  1  9.29171
  2  0.000222201
  3  6.36859
  4  13.8089
  5  3.06997e-05
  6  84.8127
  7  1.11803e-05
  8  27.3486
  9  20.8547
  10  3.92543e-06
  11  4.21663e-05
  12  10.3481
  13  6.62825e-06
  14  2.54851e-06
  15  2.84614e-06
  16  4.19003e-05
  17  81.3663
  18  19.3523
  19  9.94018e-06
  20  3.84199e-05
  21  35.5553
  22  1.18876e-05
  23  1.20621
  24  0.217506
  25  0.132753
Done.

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

Extracting fit parameters...

4FGL J1510.8+7959
   Spectrum: PowerLaw
342    Prefactor:  4.080e+01  8.137e+01  1.000e-04  1.000e+04 ( 1.000e-14)
343        Index:  2.218e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
344        Scale:  1.698e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
626    Prefactor:  9.440e-01  1.328e-01  0.000e+00  1.000e+01 ( 1.000e+00)
627        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
628        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
625   Normalization:  9.764e-01  2.175e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.30
Ra Dec: 227.705 79.991
Photon Flux Upper Limit: 1.03e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.84e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/204488/likelihoodResults_431136001_431395201_4FGL_J1510.8+7959_daily_bin740.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) = 5710.35767993
delta logL = 0.014519757583

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5709.86987942
delta logL = 0.502320267264

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5709.870     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      293 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .87878E-01    1.3399        .45710E-02    .33470E-02
   2  Index         5.2947        2.3081        .86102E-01    .21008E-03
   3  Normalizat    .91238        .44479E-01    .64794E-01    .23406E-04
   4  Prefactor     .97122        .29870E-01    .45908E-01    .80683E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0878782
  Index      = 5.29466
  Normalizat = 0.912382
  Prefactor  = 0.971223
 **********
 **   18 **HESSE 
 **********

 FCN=   5709.870     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      328 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .87878E-01    3.7643        .20808E-03   -1.5649    
   2  Index         5.2947        7.1712        .43199E-02    .58966E-01
   3  Normalizat    .91238        .15640        .28659E-03   -.96026    
   4  Prefactor     .97122        .10240        .18650E-03   -.93695    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.87172e-10
Minuit parameter uncertainties:
  1  1.14973
  2  5.00292
  3  0.156475
  4  0.102421
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/204488': 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) = 5709.86986088
delta logL = 0.502338802659

Extracting fit parameters...

4FGL J1510.8+7959
   Spectrum: PowerLaw
342    Prefactor:  8.788e-02  1.150e+00  1.000e-04  1.000e+04 ( 1.000e-14)
343        Index:  5.295e+00  5.003e+00  0.000e+00  1.000e+01 (-1.000e+00)
344        Scale:  1.698e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
626    Prefactor:  9.712e-01  1.024e-01  0.000e+00  1.000e+01 ( 1.000e+00)
627        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
628        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
625   Normalization:  9.124e-01  1.565e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.42
Ra Dec: 227.705 79.991
Photon Index (Free Index): 5.29 +/- 5.00
Photon Flux (Free Index): 6.70e-08 +/- 6.03e-08
Energy Flux (Free Index): 8.70e-06 +/- 8.59e-06

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/204488/cmap_HighResolution_431136001_431395201_4FGL_J1510.8+7959_daily_bin740.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.84e-03', comment='SUCCESS', energy_flux2='8.70e-06', dlogl='5.02e-01', photon_flux2='6.70e-08', job_status='DONE', time_completed='2021-09-11 08:53:55.149024', photon_index_error2='5.00', photon_index2='5.29', ts='0.30', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', photon_flux_upper_limit='1.03e-07', energy_flux_error2='8.59e-06', EG='0.98', time_epoch_completed='1631375635.15', return_code='0', job_id='204488', GAL2='0.97', EG2='0.91', return_code2='102', photon_flux_error2='6.03e-08', ts2='1.42', photon_index='2.22' WHERE bin_id='740' AND source_name='4FGL J1510.8+7959' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 08:53:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0236>
Subject: Job 204488: <4FGL_J1510.8+7959_daily_bin740> in cluster <slac> Done

Job <4FGL_J1510.8+7959_daily_bin740> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Sep 11 08:40:58 2021
Job was executed on host(s) <bullet0236>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 08:41:00 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 11 08:41:00 2021
Terminated at Sat Sep 11 08:53:55 2021
Results reported at Sat Sep 11 08:53:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1510.8+7959_daily_bin740 227.705 79.991 431136001 431395201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1510.8+7959 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   760.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             336.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   775 sec.
    Turnaround time :                            777 sec.

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

