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


Performing analysis on: 4FGL_J1510.1+5702_daily_bin66
RA = 227.542, Dec = 57.0398
tmin = 256435201, tmax = 256694401
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='148556', job_status='RUN', time_executed='2021-09-11 05:29:10.204340', time_epoch_executed='1631363350.2' WHERE source_name='4FGL J1510.1+5702' and cadence='daily' and bin_id='66'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/148556

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/148556/ft1_4FGL_J1510.1+5702_daily_bin66.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/148556/ft2_4FGL_J1510.1+5702_daily_bin66.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/148556/ft1_4FGL_J1510.1+5702_daily_bin66.fits outfile=/scratch/kocevski/148556/ft1_filteredMKT_4FGL_J1510.1+5702_daily_bin66.fits ra=227.542 dec=57.0398 rad=12.0 tmin=256435201.0 tmax=256694401.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 1.14
user 0.96
sys 0.16

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/148556/ft2_4FGL_J1510.1+5702_daily_bin66.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/148556/ft2_4FGL_J1510.1+5702_daily_bin66.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/148556/ft1_filteredMKT_4FGL_J1510.1+5702_daily_bin66.fits evtable="EVENTS" outfile="/scratch/kocevski/148556/ft1_filtered_4FGL_J1510.1+5702_daily_bin66.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.42
user 0.27
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/148556/ft1_filtered_4FGL_J1510.1+5702_daily_bin66.fits" evtable="EVENTS" scfile=/scratch/kocevski/148556/ft2_4FGL_J1510.1+5702_daily_bin66.fits sctable="SC_DATA" outfile=/scratch/kocevski/148556/ltcube_256435201_256694401_4FGL_J1510.1+5702_daily_bin66.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/148556/ft2_4FGL_J1510.1+5702_daily_bin66.fits
.....................!
real 9.91
user 9.61
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/148556/ft1_filtered_4FGL_J1510.1+5702_daily_bin66.fits evtable="EVENTS" scfile=/scratch/kocevski/148556/ft2_4FGL_J1510.1+5702_daily_bin66.fits sctable="SC_DATA" expcube=/scratch/kocevski/148556/ltcube_256435201_256694401_4FGL_J1510.1+5702_daily_bin66.fits outfile=/scratch/kocevski/148556/expmap_256435201_256694401_4FGL_J1510.1+5702_daily_bin66.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/148556/ltcube_256435201_256694401_4FGL_J1510.1+5702_daily_bin66.fits
.....................!
real 143.49
user 139.89
sys 3.36

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 219 point sources and 0 extended sources

Setting source of interest to:
4FGL J1510.1+5702 @ 227.542 57.0398

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/148556/ft1_filtered_4FGL_J1510.1+5702_daily_bin66.fits scfile=/scratch/kocevski/148556/ft2_4FGL_J1510.1+5702_daily_bin66.fits outfile=/scratch/kocevski/148556/cmap_256435201_256694401_4FGL_J1510.1+5702_daily_bin66.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.542 yref=57.0398 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.44
user 0.28
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/148556/ft1_filtered_4FGL_J1510.1+5702_daily_bin66.fits scfile=/scratch/kocevski/148556/ft2_4FGL_J1510.1+5702_daily_bin66.fits outfile=/scratch/kocevski/148556/cmap_HighResolution_256435201_256694401_4FGL_J1510.1+5702_daily_bin66.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.542 yref=57.0398 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.44
user 0.30
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/148556/ft1_filtered_4FGL_J1510.1+5702_daily_bin66.fits evtable="EVENTS" scfile=/scratch/kocevski/148556/ft2_4FGL_J1510.1+5702_daily_bin66.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/148556/Model_4FGL_J1510.1+5702_daily_bin66.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/148556/ft1_filtered_4FGL_J1510.1+5702_daily_bin66.fits.....................!
real 41.92
user 40.85
sys 0.95

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/148556/ft1_filtered_4FGL_J1510.1+5702_daily_bin66.fits', '/scratch/kocevski/148556/ft2_4FGL_J1510.1+5702_daily_bin66.fits', expMap='/scratch/kocevski/148556/expmap_256435201_256694401_4FGL_J1510.1+5702_daily_bin66.fits', expCube='/scratch/kocevski/148556/ltcube_256435201_256694401_4FGL_J1510.1+5702_daily_bin66.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/148556/Model_4FGL_J1510.1+5702_daily_bin66.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1510.1+5702'

4FGL J1510.1+5702
   Spectrum: PowerLaw
344    Prefactor:  1.597e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
345        Index:  2.882e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
346        Scale:  4.831e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/148556/ft1_filtered_4FGL_J1510.1+5702_daily_bin66.fits
Spacecraft file(s): /scratch/kocevski/148556/ft2_4FGL_J1510.1+5702_daily_bin66.fits
Exposure map: /scratch/kocevski/148556/expmap_256435201_256694401_4FGL_J1510.1+5702_daily_bin66.fits
Exposure cube: /scratch/kocevski/148556/ltcube_256435201_256694401_4FGL_J1510.1+5702_daily_bin66.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/148556/Model_4FGL_J1510.1+5702_daily_bin66.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) = 6703.552453

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    32.825       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.3246       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    20.753       1.0000         .10000E-03   10000.    
    12 'Prefactor '    53.363       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10135E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.5106       1.0000         .10000E-03   10000.    
    19 'Prefactor '    11.596       1.0000         .10000E-03   10000.    
    20 'Prefactor '    14.696       1.0000         .10000E-03   10000.    
    21 'Prefactor '    15.795       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    9.4452       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    13.682       1.0000         .10000E-03   10000.    
    26 'norm      '    10.722       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    65.456       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    7.4586       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .99993       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .80521       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6940E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6703.516     FROM MIGRAD    STATUS=CONVERGED    865 CALLS     5004 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    50.073       -.35777E-05** at limit **
   2  norm          .10000E-03    32.486        .20348E-05** at limit **
   3  norm          .10000E-03    1.8733       -.31856E-06** at limit **
   4  Prefactor     .10000E-03    29.022       -.17905E-05** at limit **
   5  Prefactor     .10002E-03    159.01       -.12453E-04** at limit **
   6  Prefactor     .10000E-03    15.286       -.79756E-07** at limit **
   7  Prefactor     32.825        28.480       -.18404E-06    .81797E-04
   8  Prefactor     .10000E-03    2.0372       -.11418E-06** at limit **
   9  Prefactor     3.3242        2.5518       -.20342E-06    .38025E-03
  10  Prefactor     .10000E-03    7.4468       -.19844E-06** at limit **
  11  Prefactor     20.754        21.602        .55739E-07    .18189E-03
  12  Prefactor     53.361        46.767        .19769E-06    .18663E-03
  13  Prefactor     .10000E-03    7.0125       -.52856E-07** at limit **
  14  Prefactor     .10000E-03    9.3219       -.57699E-06** at limit **
  15  Prefactor     .10000E-03    10.301       -.34047E-06** at limit **
  16  Prefactor     .10000E-03    94.093       -.48355E-04** at limit **
  17  norm          .10000E-03    .55195       -.64131E-06** at limit **
  18  Prefactor     5.5110        6.7253       -.91686E-07    .15253E-03
  19  Prefactor     11.595        6.7886        .21916E-06    .12347E-02
  20  Prefactor     14.695        7.4502       -.84666E-06    .28023E-03
  21  Prefactor     15.793        16.521        .70067E-06   -.84034E-04
  22  Prefactor     .10000E-03    11.857       -.35808E-06** at limit **
  23  norm          9.4453        3.8300        .11497E-05   -.10219E-02
  24  Prefactor     .10016E-03    667.62        .32253E-04** at limit **
  25  Prefactor     13.682        7.8794       -.62300E-07    .30689E-06
  26  norm          10.721        6.8867       -.13221E-06   -.16876E-04
  27  Prefactor     .10000E-03    8.2790       -.11320E-06** at limit **
  28  Prefactor     65.459        68.342       -.95930E-06    .16458E-04
  29  Prefactor     .10000E-03    2.2567       -.20786E-06** at limit **
  30  Prefactor     7.4584        8.0973       -.38214E-06    .75080E-05
  31  Normalizat    1.0000        .16037        .10876E-05    .64993E-03
  32  Prefactor     .80511        .16768        .20083E-05    .70595E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100015
  Prefactor  = 0.0001
  Prefactor  = 32.8245
  Prefactor  = 0.0001
  Prefactor  = 3.32421
  Prefactor  = 0.0001
  Prefactor  = 20.7538
  Prefactor  = 53.3608
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 5.51096
  Prefactor  = 11.5949
  Prefactor  = 14.6946
  Prefactor  = 15.793
  Prefactor  = 0.0001
  norm       = 9.44528
  Prefactor  = 0.000100161
  Prefactor  = 13.6821
  norm       = 10.7215
  Prefactor  = 0.0001
  Prefactor  = 65.4592
  Prefactor  = 0.0001
  Prefactor  = 7.45836
  Normalizat = 1.00004
  Prefactor  = 0.805107
 **********
 **   18 **HESSE 
 **********

 FCN=   6703.516     FROM HESSE     STATUS=OK           649 CALLS     5653 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    50.430        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    32.535        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    1.8965        .10944E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    29.130        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10002E-03    160.58        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    15.293        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     32.825        28.476        .69940E-04   -1.4561    
   8  Prefactor     .10000E-03    2.0499        .11412E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.3242        2.5495        .10352E-03   -1.5343    
  10  Prefactor     .10000E-03    7.4529        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     20.754        21.589        .87921E-04   -1.4797    
  12  Prefactor     53.361        46.649        .54906E-04   -1.4246    
  13  Prefactor     .10000E-03    7.0129        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    9.3742        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    10.336        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    91.707        .53055E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .78086        .11607E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.5110        6.7131        .17116E-03   -1.5238    
  19  Prefactor     11.595        6.5413        .11764E-03   -1.5027    
  20  Prefactor     14.695        7.4781        .52241E-03   -1.4941    
  21  Prefactor     15.793        16.528        .10078E-03   -1.4913    
  22  Prefactor     .10000E-03    11.864        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          9.4453        3.7861        .96666E-04   -1.5093    
  24  Prefactor     .10016E-03    660.82        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     13.682        7.8817        .10829E-03   -1.4968    
  26  norm          10.721        6.8873        .12236E-03   -1.5053    
  27  Prefactor     .10000E-03    8.2822        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     65.459        68.364        .49605E-04   -1.4088    
  29  Prefactor     .10000E-03    2.2663        .12011E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     7.4584        8.0984        .14685E-03   -1.5162    
  31  Normalizat    1.0000        .18773        .22431E-03   -.93029    
  32  Prefactor     .80511        .19641        .27074E-03   -.99540    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.10927e-09
Minuit parameter uncertainties:
  1  0.000585644
  2  0.000214232
  3  1.85957e-05
  4  0.000234044
  5  0.00314458
  6  1.60408e-05
  7  28.4876
  8  7.09978e-06
  9  2.54959
  10  2.1104e-05
  11  21.5969
  12  46.6811
  13  5.7156e-06
  14  4.5912e-05
  15  7.20362e-05
  16  0.000154536
  17  2.39801e-05
  18  6.71398
  19  6.54174
  20  7.47854
  21  16.5332
  22  7.68576e-05
  23  3.78623
  24  0.0208793
  25  7.88228
  26  6.8878
  27  2.46142e-05
  28  68.4457
  29  1.29332e-05
  30  8.0996
  31  0.187849
  32  0.196584
Done.

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

Extracting fit parameters...

4FGL J1510.1+5702
   Spectrum: PowerLaw
344    Prefactor:  1.469e+01  7.479e+00  1.000e-04  1.000e+04 ( 1.000e-12)
345        Index:  2.882e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
346        Scale:  4.831e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
691    Prefactor:  8.051e-01  1.966e-01  0.000e+00  1.000e+01 ( 1.000e+00)
692        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
693        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
690   Normalization:  1.000e+00  1.878e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 12.45
Ra Dec: 227.542 57.040
Photon Index (Fixed Index): 2.88 +/- 0.00
Photon Flux (Fixed Index): 7.32e-08 +/- 3.72e-08
Energy Flux (Fixed Index): 1.56e-05 +/- 7.92e-06

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) = 6698.99905306
delta logL = 4.51713440244

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6698.24504275
delta logL = 5.27114470884

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6698.245     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      234 TOTAL
                     EDM=   .91E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.0796        2.5374        .57764E-02   -.29674E-03
   2  Index         1.1088        .25724        .13076       -.79246E-04
   3  Normalizat    1.0766        .15079        .39042E-01    .39426E-05
   4  Prefactor     .76035        .16584        .62906E-01    .13401E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.0796
  Index      = 1.10882
  Normalizat = 1.0766
  Prefactor  = 0.760351
 **********
 **   18 **HESSE 
 **********

 FCN=   6698.245     FROM HESSE     STATUS=OK            33 CALLS      267 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.0796        4.5069        .97555E-04   -1.5357    
   2  Index         1.1088        .47619        .55342E-02   -.89185    
   3  Normalizat    1.0766        .17629        .21731E-03   -.90507    
   4  Prefactor     .76035        .19361        .27826E-03   -1.0121    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.57309e-09
Minuit parameter uncertainties:
  1  4.50738
  2  0.478039
  3  0.176389
  4  0.193787
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/148556': 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) = 6698.24504267
delta logL = 5.27114479284

Extracting fit parameters...

4FGL J1510.1+5702
   Spectrum: PowerLaw
344    Prefactor:  3.080e+00  4.507e+00  1.000e-04  1.000e+04 ( 1.000e-12)
345        Index:  1.109e+00  4.780e-01  0.000e+00  1.000e+01 (-1.000e+00)
346        Scale:  4.831e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
691    Prefactor:  7.604e-01  1.938e-01  0.000e+00  1.000e+01 ( 1.000e+00)
692        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
693        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
690   Normalization:  1.077e+00  1.764e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 22.85
Ra Dec: 227.542 57.040
Photon Index (Free Index): 1.11 +/- 0.48
Photon Flux (Free Index): 8.58e-09 +/- 7.85e-09
Energy Flux (Free Index): 9.33e-05 +/- 9.44e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/148556/cmap_HighResolution_256435201_256694401_4FGL_J1510.1+5702_daily_bin66.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.32e-08', energy_flux2='9.33e-05', photon_flux_error='3.72e-08', dlogl='5.27e+00', energy_flux='1.56e-05', photon_flux2='8.58e-09', job_status='DONE', time_completed='2021-09-11 05:41:49.733529', photon_index_error2='0.48', photon_index2='1.11', ts='12.45', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', energy_flux_error2='9.44e-05', EG='1.00', time_epoch_completed='1631364109.73', return_code='0', job_id='148556', GAL2='0.76', EG2='1.08', return_code2='0', energy_flux_error='7.92e-06', photon_flux_error2='7.85e-09', ts2='22.85', photon_index='2.88' WHERE bin_id='66' AND source_name='4FGL J1510.1+5702' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 05:41:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0095>
Subject: Job 148556: <4FGL_J1510.1+5702_daily_bin66> in cluster <slac> Done

Job <4FGL_J1510.1+5702_daily_bin66> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Sep 11 05:25:59 2021
Job was executed on host(s) <bullet0095>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 05:26:01 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 11 05:26:01 2021
Terminated at Sat Sep 11 05:41:50 2021
Results reported at Sat Sep 11 05:41:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1510.1+5702_daily_bin66 227.542 57.0398 256435201 256694401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1510.1+5702 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   758.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             280.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   948 sec.
    Turnaround time :                            951 sec.

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

