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


Performing analysis on: 4FGL_J1503.5+4759_daily_bin1561
RA = 225.895, Dec = 47.9959
tmin = 643939201, tmax = 644198401
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='956625', job_status='RUN', time_executed='2021-09-10 18:58:18.532948', time_epoch_executed='1631325498.53' WHERE source_name='4FGL J1503.5+4759' and cadence='daily' and bin_id='1561'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/956625

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/956625/ft1_4FGL_J1503.5+4759_daily_bin1561.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/956625/ft2_4FGL_J1503.5+4759_daily_bin1561.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/956625/ft1_4FGL_J1503.5+4759_daily_bin1561.fits outfile=/scratch/kocevski/956625/ft1_filteredMKT_4FGL_J1503.5+4759_daily_bin1561.fits ra=225.895 dec=47.9959 rad=12.0 tmin=643939201.0 tmax=644198401.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 4.61
user 4.38
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/956625/ft2_4FGL_J1503.5+4759_daily_bin1561.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/956625/ft2_4FGL_J1503.5+4759_daily_bin1561.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/956625/ft1_filteredMKT_4FGL_J1503.5+4759_daily_bin1561.fits evtable="EVENTS" outfile="/scratch/kocevski/956625/ft1_filtered_4FGL_J1503.5+4759_daily_bin1561.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.35
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/956625/ft1_filtered_4FGL_J1503.5+4759_daily_bin1561.fits" evtable="EVENTS" scfile=/scratch/kocevski/956625/ft2_4FGL_J1503.5+4759_daily_bin1561.fits sctable="SC_DATA" outfile=/scratch/kocevski/956625/ltcube_643939201_644198401_4FGL_J1503.5+4759_daily_bin1561.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/956625/ft2_4FGL_J1503.5+4759_daily_bin1561.fits
.....................!
real 11.99
user 11.61
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/956625/ft1_filtered_4FGL_J1503.5+4759_daily_bin1561.fits evtable="EVENTS" scfile=/scratch/kocevski/956625/ft2_4FGL_J1503.5+4759_daily_bin1561.fits sctable="SC_DATA" expcube=/scratch/kocevski/956625/ltcube_643939201_644198401_4FGL_J1503.5+4759_daily_bin1561.fits outfile=/scratch/kocevski/956625/expmap_643939201_644198401_4FGL_J1503.5+4759_daily_bin1561.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/956625/ltcube_643939201_644198401_4FGL_J1503.5+4759_daily_bin1561.fits
.....................!
real 192.55
user 187.32
sys 4.42

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

Setting source of interest to:
4FGL J1503.5+4759 @ 225.895 47.9959

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/956625/ft1_filtered_4FGL_J1503.5+4759_daily_bin1561.fits scfile=/scratch/kocevski/956625/ft2_4FGL_J1503.5+4759_daily_bin1561.fits outfile=/scratch/kocevski/956625/cmap_643939201_644198401_4FGL_J1503.5+4759_daily_bin1561.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=225.895 yref=47.9959 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.58
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/956625/ft1_filtered_4FGL_J1503.5+4759_daily_bin1561.fits scfile=/scratch/kocevski/956625/ft2_4FGL_J1503.5+4759_daily_bin1561.fits outfile=/scratch/kocevski/956625/cmap_HighResolution_643939201_644198401_4FGL_J1503.5+4759_daily_bin1561.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=225.895 yref=47.9959 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.57
user 0.41
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/956625/ft1_filtered_4FGL_J1503.5+4759_daily_bin1561.fits evtable="EVENTS" scfile=/scratch/kocevski/956625/ft2_4FGL_J1503.5+4759_daily_bin1561.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/956625/Model_4FGL_J1503.5+4759_daily_bin1561.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/956625/ft1_filtered_4FGL_J1503.5+4759_daily_bin1561.fits.....................!
real 47.32
user 45.96
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/956625/ft1_filtered_4FGL_J1503.5+4759_daily_bin1561.fits', '/scratch/kocevski/956625/ft2_4FGL_J1503.5+4759_daily_bin1561.fits', expMap='/scratch/kocevski/956625/expmap_643939201_644198401_4FGL_J1503.5+4759_daily_bin1561.fits', expCube='/scratch/kocevski/956625/ltcube_643939201_644198401_4FGL_J1503.5+4759_daily_bin1561.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/956625/Model_4FGL_J1503.5+4759_daily_bin1561.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1503.5+4759'

4FGL J1503.5+4759
   Spectrum: PowerLaw
292    Prefactor:  2.127e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
293        Index:  2.221e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
294        Scale:  1.746e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/956625/ft1_filtered_4FGL_J1503.5+4759_daily_bin1561.fits
Spacecraft file(s): /scratch/kocevski/956625/ft2_4FGL_J1503.5+4759_daily_bin1561.fits
Exposure map: /scratch/kocevski/956625/expmap_643939201_644198401_4FGL_J1503.5+4759_daily_bin1561.fits
Exposure cube: /scratch/kocevski/956625/ltcube_643939201_644198401_4FGL_J1503.5+4759_daily_bin1561.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/956625/Model_4FGL_J1503.5+4759_daily_bin1561.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) = 6003.49867563

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.018       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .66456       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    27.026       1.0000         .10000E-03   10000.    
     8 'Prefactor '    27.032       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.540       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    7.8480       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10764E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.3574       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10247E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.9839       1.0000         .10000E-03   10000.    
    20 'norm      '    1.0868       1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.9125       1.0000         .10000E-03   10000.    
    22 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10419E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10389E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    20.203       1.0000         .10000E-03   10000.    
    26 'Prefactor '    14.657       1.0000         .10000E-03   10000.    
    27 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .12313E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .65996       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.2135       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6510E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6003.433     FROM MIGRAD    STATUS=CONVERGED    805 CALLS     4319 TOTAL
                     EDM=   .66E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    16.543        .35998E-06** at limit **
   2  Prefactor     10.038        27.417       -.25597E-05    .26437E-04
   3  Prefactor     .66574        3.1093        .44496E-05   -.26767E-03
   4  Prefactor     .10000E-03    19.328       -.17416E-06** at limit **
   5  Prefactor     .10000E-03    1.0886        .46993E-07** at limit **
   6  Prefactor     .10000E-03    4.4268        .57079E-07** at limit **
   7  Prefactor     27.036        25.555       -.32919E-06    .78797E-04
   8  Prefactor     27.026        23.151        .45634E-06    .79747E-04
   9  Prefactor     .10000E-03    19.332       -.21740E-06** at limit **
  10  Prefactor     13.545        20.025       -.13352E-06    .22281E-05
  11  Prefactor     .10000E-03    9.8671       -.26166E-06** at limit **
  12  norm          7.8508        6.3459        .34634E-07   -.20934E-04
  13  Prefactor     .10000E-03    14.827        .54973E-06** at limit **
  14  Prefactor     .10000E-03    4.3875        .87815E-07** at limit **
  15  Prefactor     .10000E-03    6.5522        .14871E-06** at limit **
  16  norm          1.3574        .99189        .23852E-08   -.16968E-03
  17  Prefactor     .10000E-03    4.0808       -.18828E-07** at limit **
  18  Prefactor     .10000E-03    2.3520        .64865E-08** at limit **
  19  Prefactor     8.9891        5.6415        .33910E-07   -.19277E-03
  20  norm          1.0873        1.4218        .48029E-07   -.56043E-04
  21  Prefactor     5.9098        7.0258        .15962E-06    .21220E-04
  22  norm          .10000E-03    1.5380        .17458E-06** at limit **
  23  Prefactor     .10000E-03    11.607        .94980E-05** at limit **
  24  Prefactor     .10000E-03    28.696       -.21474E-06** at limit **
  25  Prefactor     20.226        23.917       -.45941E-06   -.79827E-04
  26  Prefactor     14.701        14.888       -.19472E-05   -.17876E-03
  27  norm          .10000E-03    10.775        .45654E-07** at limit **
  28  Prefactor     .10000E-03    4.8569       -.10293E-06** at limit **
  29  Prefactor     .10000E-03    4.1172       -.13660E-08** at limit **
  30  Prefactor     .10000E-03    32.591        .91148E-06** at limit **
  31  Normalizat    .65991        .16601       -.12020E-05   -.20274E-03
  32  Prefactor     1.2136        .18143        .44449E-06    .32161E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 10.0376
  Prefactor  = 0.66574
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 27.0362
  Prefactor  = 27.0262
  Prefactor  = 0.0001
  Prefactor  = 13.5453
  Prefactor  = 0.0001
  norm       = 7.85076
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.35738
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.98908
  norm       = 1.08729
  Prefactor  = 5.90984
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 20.2265
  Prefactor  = 14.7006
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.659906
  Prefactor  = 1.21355
 **********
 **   18 **HESSE 
 **********

 FCN=   6003.433     FROM HESSE     STATUS=OK           651 CALLS     4970 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    16.573        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     10.038        27.505        .12660E-03   -1.5074    
   3  Prefactor     .66574        4.3531        .15442E-02   -1.5545    
   4  Prefactor     .10000E-03    19.566        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    1.0974        .78636E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.4296        .15922E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     27.036        25.535        .77061E-04   -1.4668    
   8  Prefactor     27.026        23.125        .77052E-04   -1.4668    
   9  Prefactor     .10000E-03    19.337        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     13.545        20.030        .10885E-03   -1.4972    
  11  Prefactor     .10000E-03    9.8579        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          7.8508        6.3430        .14313E-03   -1.5148    
  13  Prefactor     .10000E-03    14.844        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.3955        .15851E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    6.5931        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.3574        .98951        .64117E-04   -1.5475    
  17  Prefactor     .10000E-03    4.0990        .15271E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.3540        .11601E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     8.9891        5.6406        .66861E-03   -1.5108    
  20  norm          1.0873        1.3895        .10101E-03   -1.5499    
  21  Prefactor     5.9098        7.0302        .16515E-03   -1.5222    
  22  norm          .10000E-03    1.5557        .93685E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    25.661        .30989E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    28.711        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     20.226        23.857        .89110E-04   -1.4808    
  26  Prefactor     14.701        14.995        .10462E-03   -1.4941    
  27  norm          .10000E-03    10.826        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    4.8590        .16679E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    4.1243        .15354E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    32.591        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .65991        .19886        .25524E-03   -1.0550    
  32  Prefactor     1.2136        .21979        .22429E-03   -.85915    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.78899e-09
Minuit parameter uncertainties:
  1  0.000120958
  2  27.5395
  3  3.40481
  4  0.000170806
  5  2.29063e-05
  6  1.65261e-06
  7  25.5456
  8  23.1325
  9  0.00010723
  10  20.0402
  11  7.64553e-05
  12  6.34359
  13  3.2517e-05
  14  5.75698e-06
  15  3.40788e-05
  16  0.989523
  17  1.25523e-05
  18  4.33954e-07
  19  5.64091
  20  1.38959
  21  7.0312
  22  4.62907e-06
  23  0.000289356
  24  2.98566e-06
  25  23.8684
  26  14.9986
  27  2.93588e-05
  28  2.1448e-06
  29  2.40706e-05
  30  0.000186223
  31  0.199079
  32  0.219952
Done.

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

Extracting fit parameters...

4FGL J1503.5+4759
   Spectrum: PowerLaw
292    Prefactor:  8.989e+00  5.641e+00  1.000e-04  1.000e+04 ( 1.000e-13)
293        Index:  2.221e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
294        Scale:  1.746e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
648    Prefactor:  1.214e+00  2.200e-01  0.000e+00  1.000e+01 ( 1.000e+00)
649        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
650        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
647   Normalization:  6.599e-01  1.991e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.14
Ra Dec: 225.895 47.996
Photon Index (Fixed Index): 2.22 +/- 0.00
Photon Flux (Fixed Index): 4.22e-08 +/- 2.65e-08
Energy Flux (Fixed Index): 1.83e-05 +/- 1.15e-05

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) = 6003.43301887
delta logL = 0.000162527335306

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6003.43280107
delta logL = 0.000380335188311

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6003.433     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      227 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.1661        120.60        .33101E-02    .10322E-03
   2  Index         2.2063        2.8926        .14015        .10673E-03
   3  Normalizat    .66052        .67125E-01    .41760E-01    .22715E-04
   4  Prefactor     1.2131        .64865E-01    .50741E-01    .39936E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.16608
  Index      = 2.20633
  Normalizat = 0.66052
  Prefactor  = 1.21307
 **********
 **   18 **HESSE 
 **********

 FCN=   6003.433     FROM HESSE     STATUS=OK            33 CALLS      260 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.1661        9.2292        .13240E-03   -1.5102    
   2  Index         2.2063        .55779        .49559E-02   -.59286    
   3  Normalizat    .66052        .18729        .25513E-03   -1.0547    
   4  Prefactor     1.2131        .21717        .22432E-03   -.85930    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.33035e-09
Minuit parameter uncertainties:
  1  9.23062
  2  0.559483
  3  0.187467
  4  0.217331
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/956625': 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) = 6003.43279769
delta logL = 0.000383710435017

Extracting fit parameters...

4FGL J1503.5+4759
   Spectrum: PowerLaw
292    Prefactor:  9.166e+00  9.231e+00  1.000e-04  1.000e+04 ( 1.000e-13)
293        Index:  2.206e+00  5.595e-01  0.000e+00  1.000e+01 (-1.000e+00)
294        Scale:  1.746e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
648    Prefactor:  1.213e+00  2.173e-01  0.000e+00  1.000e+01 ( 1.000e+00)
649        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
650        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
647   Normalization:  6.605e-01  1.875e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.13
Ra Dec: 225.895 47.996
Photon Index (Free Index): 2.21 +/- 0.56
Photon Flux (Free Index): 4.18e-08 +/- 3.00e-08
Energy Flux (Free Index): 1.85e-05 +/- 1.71e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/956625/cmap_HighResolution_643939201_644198401_4FGL_J1503.5+4759_daily_bin1561.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.22e-08', energy_flux2='1.85e-05', photon_flux_error='2.65e-08', dlogl='3.84e-04', energy_flux='1.83e-05', photon_flux2='4.18e-08', job_status='DONE', time_completed='2021-09-10 19:12:19.617101', photon_index_error2='0.56', photon_index2='2.21', ts='5.14', fit_tolerance='1e-08', GAL='1.21', photon_index_error='0.00', energy_flux_error2='1.71e-05', EG='0.66', time_epoch_completed='1631326339.62', return_code='0', job_id='956625', GAL2='1.21', EG2='0.66', return_code2='0', energy_flux_error='1.15e-05', photon_flux_error2='3.00e-08', ts2='5.13', photon_index='2.22' WHERE bin_id='1561' AND source_name='4FGL J1503.5+4759' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 19:12:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0249>
Subject: Job 956625: <4FGL_J1503.5+4759_daily_bin1561> in cluster <slac> Done

Job <4FGL_J1503.5+4759_daily_bin1561> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep 10 18:55:59 2021
Job was executed on host(s) <bullet0249>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 18:56:00 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 10 18:56:00 2021
Terminated at Fri Sep 10 19:12:20 2021
Results reported at Fri Sep 10 19:12:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1503.5+4759_daily_bin1561 225.895 47.9959 643939201 644198401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1503.5+4759 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   835.32 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             293.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   979 sec.
    Turnaround time :                            981 sec.

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

