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


Performing analysis on: 4FGL_J1503.5+4759_daily_bin650
RA = 225.895, Dec = 47.9959
tmin = 407808001, tmax = 408067201
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='950823', job_status='RUN', time_executed='2021-09-10 18:36:38.806435', time_epoch_executed='1631324198.81' WHERE source_name='4FGL J1503.5+4759' and cadence='daily' and bin_id='650'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/950823

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/950823/ft1_4FGL_J1503.5+4759_daily_bin650.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/950823/ft2_4FGL_J1503.5+4759_daily_bin650.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/950823/ft1_4FGL_J1503.5+4759_daily_bin650.fits outfile=/scratch/kocevski/950823/ft1_filteredMKT_4FGL_J1503.5+4759_daily_bin650.fits ra=225.895 dec=47.9959 rad=12.0 tmin=407808001.0 tmax=408067201.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.11
user 3.91
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/950823/ft2_4FGL_J1503.5+4759_daily_bin650.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/950823/ft1_filteredMKT_4FGL_J1503.5+4759_daily_bin650.fits evtable="EVENTS" outfile="/scratch/kocevski/950823/ft1_filtered_4FGL_J1503.5+4759_daily_bin650.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.54
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/950823/ft1_filtered_4FGL_J1503.5+4759_daily_bin650.fits" evtable="EVENTS" scfile=/scratch/kocevski/950823/ft2_4FGL_J1503.5+4759_daily_bin650.fits sctable="SC_DATA" outfile=/scratch/kocevski/950823/ltcube_407808001_408067201_4FGL_J1503.5+4759_daily_bin650.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/950823/ft2_4FGL_J1503.5+4759_daily_bin650.fits
.....................!
real 11.76
user 11.40
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/950823/ft1_filtered_4FGL_J1503.5+4759_daily_bin650.fits evtable="EVENTS" scfile=/scratch/kocevski/950823/ft2_4FGL_J1503.5+4759_daily_bin650.fits sctable="SC_DATA" expcube=/scratch/kocevski/950823/ltcube_407808001_408067201_4FGL_J1503.5+4759_daily_bin650.fits outfile=/scratch/kocevski/950823/expmap_407808001_408067201_4FGL_J1503.5+4759_daily_bin650.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/950823/ltcube_407808001_408067201_4FGL_J1503.5+4759_daily_bin650.fits
.....................!
real 190.71
user 185.70
sys 4.66

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/950823/ft1_filtered_4FGL_J1503.5+4759_daily_bin650.fits scfile=/scratch/kocevski/950823/ft2_4FGL_J1503.5+4759_daily_bin650.fits outfile=/scratch/kocevski/950823/cmap_407808001_408067201_4FGL_J1503.5+4759_daily_bin650.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/950823/ft1_filtered_4FGL_J1503.5+4759_daily_bin650.fits scfile=/scratch/kocevski/950823/ft2_4FGL_J1503.5+4759_daily_bin650.fits outfile=/scratch/kocevski/950823/cmap_HighResolution_407808001_408067201_4FGL_J1503.5+4759_daily_bin650.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.54
user 0.39
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/950823/ft1_filtered_4FGL_J1503.5+4759_daily_bin650.fits', '/scratch/kocevski/950823/ft2_4FGL_J1503.5+4759_daily_bin650.fits', expMap='/scratch/kocevski/950823/expmap_407808001_408067201_4FGL_J1503.5+4759_daily_bin650.fits', expCube='/scratch/kocevski/950823/ltcube_407808001_408067201_4FGL_J1503.5+4759_daily_bin650.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/950823/Model_4FGL_J1503.5+4759_daily_bin650.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/950823/ft1_filtered_4FGL_J1503.5+4759_daily_bin650.fits
Spacecraft file(s): /scratch/kocevski/950823/ft2_4FGL_J1503.5+4759_daily_bin650.fits
Exposure map: /scratch/kocevski/950823/expmap_407808001_408067201_4FGL_J1503.5+4759_daily_bin650.fits
Exposure cube: /scratch/kocevski/950823/ltcube_407808001_408067201_4FGL_J1503.5+4759_daily_bin650.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/950823/Model_4FGL_J1503.5+4759_daily_bin650.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) = 5459.38395026

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .58254E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    59.651       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .12520E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.6986       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.9967       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    49.191       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10436E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    11.189       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .12293E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    34.462       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.3312       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .71048       1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.0040       1.0000         .10000E-03   10000.    
    22 'norm      '    2.2170       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    32.903       1.0000         .10000E-03   10000.    
    25 'Prefactor '    9.6820       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    30.559       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.0437       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.1215       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6510E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5459.378     FROM MIGRAD    STATUS=CONVERGED    124 CALLS     4683 TOTAL
                     EDM=   .90E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .15312E-02    48.012       -.55394E-04** at limit **
   2  Prefactor     59.640        2.1298       -.94335E-06    .23034E-02
   3  Prefactor     .10000E-03    5.1728       -.15719E-05** at limit **
   4  Prefactor     .10011E-03    95.852       -.17891E-04** at limit **
   5  Prefactor     7.6986        4.4669        .26104E-05    .96996E-03
   6  Prefactor     1.9944        1.0598        .56126E-06   -.20249E-04
   7  Prefactor     .10033E-03    9.6246       -.20370E-04** at limit **
   8  Prefactor     49.191        1.0269        .51950E-07    .13606E-03
   9  Prefactor     .10064E-03    14.511        .23829E-04** at limit **
  10  Prefactor     .10089E-03    58.382        .94237E-05** at limit **
  11  Prefactor     .10062E-03    25.061       -.29571E-04** at limit **
  12  norm          11.182        1.0502        .17418E-06    .19824E-03
  13  Prefactor     .11776E-03    90.726        .63477E-05** at limit **
  14  Prefactor     34.461        1.0118        .10549E-06   -.63683E-04
  15  Prefactor     .10005E-03    9.2379       -.12593E-04** at limit **
  16  norm          3.3314        2.2741        .26156E-07   -.52833E-04
  17  Prefactor     .10000E-03    3.7489        .12263E-06** at limit **
  18  Prefactor     .10011E-03    15.955        .13167E-04** at limit **
  19  Prefactor     .10000E-03    3.1307        .87781E-07** at limit **
  20  norm          .71063        1.5264        .10040E-05    .52512E-04
  21  Prefactor     8.0027        1.0147        .12190E-06    .79777E-04
  22  norm          2.2173        2.9853        .16197E-06    .52041E-05
  23  Prefactor     .10000E-03    4.8115       -.33199E-05** at limit **
  24  Prefactor     32.903        1.0003       -.26144E-08    .68632E-05
  25  Prefactor     9.6844        1.0811       -.57198E-06    .13098E-03
  26  Prefactor     .10000E-03    8.0321       -.11564E-05** at limit **
  27  norm          .10000E-03    4.8714        .41992E-05** at limit **
  28  Prefactor     30.561        1.0258       -.17295E-06    .17064E-03
  29  Prefactor     .10000E-03    6.5601        .58320E-06** at limit **
  30  Prefactor     .10002E-03    13.900        .15961E-04** at limit **
  31  Normalizat    1.0437        .23417       -.60475E-05    .60639E-04
  32  Prefactor     1.1215        .25302        .27816E-05    .27334E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00153117
  Prefactor  = 59.6396
  Prefactor  = 0.0001
  Prefactor  = 0.000100111
  Prefactor  = 7.69861
  Prefactor  = 1.99435
  Prefactor  = 0.000100335
  Prefactor  = 49.1912
  Prefactor  = 0.000100641
  Prefactor  = 0.000100887
  Prefactor  = 0.000100618
  norm       = 11.1822
  Prefactor  = 0.000117758
  Prefactor  = 34.4607
  Prefactor  = 0.000100046
  norm       = 3.3314
  Prefactor  = 0.0001
  Prefactor  = 0.000100106
  Prefactor  = 0.0001
  norm       = 0.710628
  Prefactor  = 8.00267
  norm       = 2.21728
  Prefactor  = 0.0001
  Prefactor  = 32.9031
  Prefactor  = 9.68441
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 30.5609
  Prefactor  = 0.0001
  Prefactor  = 0.000100018
  Normalizat = 1.04366
  Prefactor  = 1.1215
 **********
 **   18 **HESSE 
 **********

 FCN=   5459.378     FROM HESSE     STATUS=OK           727 CALLS     5410 TOTAL
                     EDM=   .39E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .15312E-02    44.810        .16335       -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     59.640        55.622        .12987E-02   -1.4162    
   3  Prefactor     .10000E-03    5.1406        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10011E-03    196.92        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7.6986        5.2867        .36131E-02   -1.5153    
   6  Prefactor     1.9944        64.332        .73284E-02   -1.5426    
   7  Prefactor     .10033E-03    18.016        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     49.191        51.853        .14294E-02   -1.4304    
   9  Prefactor     .10064E-03    21.924        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10089E-03    58.504        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10062E-03    30.684        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          11.182        10.293        .29943E-02   -1.5039    
  13  Prefactor     .11776E-03    173.94        .90712E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     34.461        20.712        .17066E-02   -1.4533    
  15  Prefactor     .10005E-03    19.057        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.3314        2.2949        .55442E-02   -1.5343    
  17  Prefactor     .10000E-03    3.7400        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10011E-03    16.318        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    3.1165        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .71063        1.5782        .12102E-01   -1.5539    
  21  Prefactor     8.0027        9.4206        .35430E-02   -1.5142    
  22  norm          2.2173        3.0121        .69051E-02   -1.5410    
  23  Prefactor     .10000E-03    4.7854        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     32.903        37.699        .17464E-02   -1.4560    
  25  Prefactor     9.6844        22.154        .32197E-02   -1.5085    
  26  Prefactor     .10000E-03    8.0058        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    4.8703        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     30.561        25.879        .18120E-02   -1.4602    
  29  Prefactor     .10000E-03    6.5430        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10002E-03    26.776        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.0437        .20732        .40997E-01   -.91582    
  32  Prefactor     1.1215        .21444        .61139E-01   -.88782    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.85028e-07
Minuit parameter uncertainties:
  1  0.506862
  2  55.6708
  3  1.74336e-05
  4  0.00936865
  5  5.28703
  6  22.68
  7  0.00491127
  8  51.9006
  9  0.00750046
  10  0.014421
  11  0.00871348
  12  10.295
  13  0.111479
  14  20.7163
  15  0.00187873
  16  2.295
  17  4.6299e-07
  18  0.00263539
  19  1.79599e-06
  20  1.57833
  21  9.42238
  22  3.01232
  23  8.20387e-05
  24  37.726
  25  22.1724
  26  2.21327e-05
  27  9.2787e-05
  28  25.8881
  29  6.44577e-06
  30  0.00140713
  31  0.207486
  32  0.214607
Done.

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

Extracting fit parameters...

4FGL J1503.5+4759
   Spectrum: PowerLaw
292    Prefactor:  1.000e-04  1.796e-06  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.122e+00  2.146e-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:  1.044e+00  2.075e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 225.895 47.996
Photon Flux Upper Limit: 6.36e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.85e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/950823/likelihoodResults_407808001_408067201_4FGL_J1503.5+4759_daily_bin650.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) = 5459.37985791
delta logL = -0.00151424385604

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5459.37834393
delta logL = -2.64945811068e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10190E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2036       1.0000          .0000       10.000    
     3 'Normalizat'    1.0438       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1214       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5459.378     FROM MIGRAD    STATUS=FAILED        87 CALLS      231 TOTAL
                     EDM=   .33E-03    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    259.85        .12889E-02** at limit **
   2  Index         2.1867        8.7539        .20000        .43543E-04
   3  Normalizat    1.0437        .48606E-01    .25721E-03   -.17901E-04
   4  Prefactor     1.1215        .52963E-01    .27040E-03   -.17827E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5459.378     FROM SIMPLEX   STATUS=UNCHANGED    175 CALLS      406 TOTAL
                     EDM=   .95E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    259.85        .25620E-03** at limit **
   2  Index         2.1867        8.7539        .10730E-04    .43543E-04
   3  Normalizat    1.0437        .48606E-01    .21386E-06   -.17901E-04
   4  Prefactor     1.1215        .52963E-01    .11243E-06   -.17827E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5459.378     FROM MIGRAD    STATUS=CONVERGED     43 CALLS      449 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    626.91        .25779E-02** at limit **
   2  Index         1.7529        9.0661        .80000E-01   -.12506E-07
   3  Normalizat    1.0437        .87474E-01    .10288E-04    .55692E-04
   4  Prefactor     1.1215        .95318E-01    .10816E-04    .55919E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.75291
  Normalizat = 1.04366
  Prefactor  = 1.1215
 **********
 **   18 **HESSE 
 **********

 FCN=   5459.378     FROM HESSE     STATUS=OK            23 CALLS      472 TOTAL
                     EDM=   .51E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.7577        .51557E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7529        5.0459        .32000E-02   -.70682    
   3  Normalizat    1.0437        .23183        .20577E-05   -.91582    
   4  Prefactor     1.1215        .25259        .21632E-05   -.88782    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.11586e-12
Minuit parameter uncertainties:
  1  3.7095e-06
  2  197.778
  3  0.232058
  4  0.252864
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/950823': 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) = 5459.378341
delta logL = 2.66051938524e-06

Extracting fit parameters...

4FGL J1503.5+4759
   Spectrum: PowerLaw
292    Prefactor:  1.000e-04  3.710e-06  1.000e-04  1.000e+04 ( 1.000e-13)
293        Index:  1.753e+00  1.978e+02  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.122e+00  2.529e-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:  1.044e+00  2.321e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 225.895 47.996

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/950823/cmap_HighResolution_407808001_408067201_4FGL_J1503.5+4759_daily_bin650.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.85e-03', job_status='DONE', photon_flux_upper_limit='6.36e-08', time_completed='2021-09-10 18:52:30.361982', job_id='950823', GAL2='1.12', fit_tolerance='1e-08', EG2='1.04', EG='1.04', time_epoch_completed='1631325150.36', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.12', dlogl='2.66e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.22' WHERE bin_id='650' AND source_name='4FGL J1503.5+4759' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 18:52:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0209>
Subject: Job 950823: <4FGL_J1503.5+4759_daily_bin650> in cluster <slac> Done

Job <4FGL_J1503.5+4759_daily_bin650> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Sep 10 18:36:24 2021
Job was executed on host(s) <bullet0209>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 18:36:25 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:36:25 2021
Terminated at Fri Sep 10 18:52:31 2021
Results reported at Fri Sep 10 18:52:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1503.5+4759_daily_bin650 225.895 47.9959 407808001 408067201 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 :                                   945.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             302.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   965 sec.
    Turnaround time :                            967 sec.

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

