/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 2 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 = 7375
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1503.5+4759_daily_bin180
RA = 225.895, Dec = 47.9959
tmin = 285984001, tmax = 286243201
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='948222', job_status='RUN', time_executed='2021-09-10 18:26:38.737867', time_epoch_executed='1631323598.74' WHERE source_name='4FGL J1503.5+4759' and cadence='daily' and bin_id='180'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/948222

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/948222/ft1_4FGL_J1503.5+4759_daily_bin180.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/948222/ft2_4FGL_J1503.5+4759_daily_bin180.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/948222/ft1_4FGL_J1503.5+4759_daily_bin180.fits outfile=/scratch/kocevski/948222/ft1_filteredMKT_4FGL_J1503.5+4759_daily_bin180.fits ra=225.895 dec=47.9959 rad=12.0 tmin=285984001.0 tmax=286243201.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 3.40
user 3.15
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/948222/ft2_4FGL_J1503.5+4759_daily_bin180.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/948222/ft1_filteredMKT_4FGL_J1503.5+4759_daily_bin180.fits evtable="EVENTS" outfile="/scratch/kocevski/948222/ft1_filtered_4FGL_J1503.5+4759_daily_bin180.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.50
user 0.33
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/948222/ft1_filtered_4FGL_J1503.5+4759_daily_bin180.fits evtable="EVENTS" scfile=/scratch/kocevski/948222/ft2_4FGL_J1503.5+4759_daily_bin180.fits sctable="SC_DATA" expcube=/scratch/kocevski/948222/ltcube_285984001_286243201_4FGL_J1503.5+4759_daily_bin180.fits outfile=/scratch/kocevski/948222/expmap_285984001_286243201_4FGL_J1503.5+4759_daily_bin180.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/948222/ltcube_285984001_286243201_4FGL_J1503.5+4759_daily_bin180.fits
.....................!
real 190.44
user 185.41
sys 4.70

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/948222/ft1_filtered_4FGL_J1503.5+4759_daily_bin180.fits scfile=/scratch/kocevski/948222/ft2_4FGL_J1503.5+4759_daily_bin180.fits outfile=/scratch/kocevski/948222/cmap_285984001_286243201_4FGL_J1503.5+4759_daily_bin180.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/948222/ft1_filtered_4FGL_J1503.5+4759_daily_bin180.fits scfile=/scratch/kocevski/948222/ft2_4FGL_J1503.5+4759_daily_bin180.fits outfile=/scratch/kocevski/948222/cmap_HighResolution_285984001_286243201_4FGL_J1503.5+4759_daily_bin180.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.58
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.8624       1.0000         .10000E-03   10000.    
     2 'Prefactor '    115.26       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .64999       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .13808       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.0333       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.2641       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .76757E-01   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10216E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    15.142       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.5478       1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.3915       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    4.1034       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.4146       1.0000         .10000E-03   10000.    
    22 'norm      '    1.0093       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    7.4919       1.0000         .10000E-03   10000.    
    28 'Prefactor '    3.5836       1.0000         .10000E-03   10000.    
    29 'Prefactor '    6.3385       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .90821       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .88455       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=   5770.370     FROM MIGRAD    STATUS=CONVERGED    894 CALLS     4484 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.8496        43.345       -.39891E-06    .73451E-05
   2  Prefactor     115.35        57.265       -.15013E-05    .83494E-05
   3  Prefactor     .10000E-03    1.5559        .24303E-06** at limit **
   4  Prefactor     .37571        262.78        .60061E-05    .10583E-04
   5  Prefactor     .13743        1.5806       -.84477E-06    .54223E-03
   6  Prefactor     .10000E-03    4.5224       -.49407E-07** at limit **
   7  Prefactor     8.0294        15.851        .23793E-07   -.20913E-05
   8  Prefactor     .10000E-03    16.571       -.38336E-06** at limit **
   9  Prefactor     .10000E-03    28.465       -.54392E-07** at limit **
  10  Prefactor     8.2600        22.337       -.93636E-06   -.16747E-04
  11  Prefactor     .10000E-03    17.040       -.30033E-07** at limit **
  12  norm          .10266E-03    9.8999       -.10731E-05** at limit **
  13  Prefactor     .10000E-03    90.424       -.38408E-05** at limit **
  14  Prefactor     15.142        17.908       -.43496E-06   -.29200E-04
  15  Prefactor     .10000E-03    14.263       -.34322E-06** at limit **
  16  norm          1.5473        1.4591        .74301E-07    .38711E-04
  17  Prefactor     8.3953        9.7564        .15703E-06    .37026E-04
  18  Prefactor     .10000E-03    3.8230       -.17179E-07** at limit **
  19  Prefactor     .10000E-03    2.7403       -.12750E-06** at limit **
  20  norm          4.1025        2.2293        .38164E-07    .85125E-04
  21  Prefactor     1.4025        12.195        .14986E-05    .97999E-06
  22  norm          1.0087        2.2280       -.75189E-06   -.28789E-03
  23  Prefactor     .10000E-03    2.5555        .17800E-06** at limit **
  24  Prefactor     .10000E-03    26.819       -.77231E-08** at limit **
  25  Prefactor     .10000E-03    12.505       -.21800E-06** at limit **
  26  Prefactor     .10000E-03    8.0315        .90988E-07** at limit **
  27  norm          7.4913        9.0219        .26847E-07    .28286E-05
  28  Prefactor     3.5770        20.398        .65827E-06    .20661E-05
  29  Prefactor     6.3367        6.3712       -.18930E-07    .81612E-05
  30  Prefactor     .10000E-03    60.362       -.15433E-06** at limit **
  31  Normalizat    .90894        .19154        .18968E-05   -.63486E-06
  32  Prefactor     .88410        .19833       -.19345E-05   -.10971E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.84958
  Prefactor  = 115.351
  Prefactor  = 0.0001
  Prefactor  = 0.375707
  Prefactor  = 0.137428
  Prefactor  = 0.0001
  Prefactor  = 8.02939
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.26003
  Prefactor  = 0.0001
  norm       = 0.000102663
  Prefactor  = 0.000100001
  Prefactor  = 15.1419
  Prefactor  = 0.0001
  norm       = 1.54727
  Prefactor  = 8.39526
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.10245
  Prefactor  = 1.40253
  norm       = 1.00868
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.4913
  Prefactor  = 3.577
  Prefactor  = 6.33666
  Prefactor  = 0.0001
  Normalizat = 0.908938
  Prefactor  = 0.884104
 **********
 **   18 **HESSE 
 **********

 FCN=   5770.370     FROM HESSE     STATUS=OK           675 CALLS     5159 TOTAL
                     EDM=   .71E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.8496        42.911        .16586E-03   -1.5224    
   2  Prefactor     115.35        57.530        .18737E-03   -1.3556    
   3  Prefactor     .10000E-03    1.5612        .92633E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .37571        268.95        .53878E-02   -1.5585    
   5  Prefactor     .13743        2.3772        .15803E-02   -1.5634    
   6  Prefactor     .10000E-03    4.5242        .15777E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     8.0294        15.825        .14146E-03   -1.5141    
   8  Prefactor     .10000E-03    16.643        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    28.482        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     8.2600        22.308        .13946E-03   -1.5133    
  11  Prefactor     .10000E-03    17.107        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10266E-03    9.8652        .56204E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    91.428        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     15.142        17.862        .10293E-03   -1.4930    
  15  Prefactor     .10000E-03    14.364        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.5473        1.4413        .85086E-04   -1.5459    
  17  Prefactor     8.3953        9.7835        .13839E-03   -1.5128    
  18  Prefactor     .10000E-03    3.8252        .14483E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    2.7579        .12269E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          4.1025        2.2355        .70938E-04   -1.5303    
  21  Prefactor     1.4025        12.218        .36404E-03   -1.5471    
  22  norm          1.0087        2.2073        .17658E-02   -1.5507    
  23  Prefactor     .10000E-03    2.5726        .11869E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    26.843        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    12.572        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    8.1464        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          7.4913        9.0211        .14652E-03   -1.5160    
  28  Prefactor     3.5770        20.422        .21347E-03   -1.5330    
  29  Prefactor     6.3367        6.3747        .15943E-03   -1.5204    
  30  Prefactor     .10000E-03    60.595        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .90894        .20219        .21840E-03   -.96147    
  32  Prefactor     .88410        .20882        .24742E-03   -.96699    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.09373e-09
Minuit parameter uncertainties:
  1  31.7184
  2  57.5582
  3  3.16726e-06
  4  20.1931
  5  1.14279
  6  1.41704e-06
  7  15.8337
  8  1.49948e-05
  9  1.31242e-05
  10  22.3301
  11  2.85998e-05
  12  0.0102522
  13  0.000642639
  14  17.8687
  15  2.22143e-05
  16  1.44134
  17  9.78535
  18  2.2975e-05
  19  4.25766e-06
  20  2.23556
  21  8.2813
  22  2.2075
  23  9.20209e-06
  24  2.0804e-05
  25  1.5637e-05
  26  3.09704e-05
  27  9.02275
  28  17.1024
  29  6.37534
  30  0.000127164
  31  0.202355
  32  0.209011
Done.

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

Extracting fit parameters...

4FGL J1503.5+4759
   Spectrum: PowerLaw
292    Prefactor:  1.000e-04  4.258e-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:  8.841e-01  2.090e-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:  9.089e-01  2.024e-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: 5.06e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.86e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/948222/likelihoodResults_285984001_286243201_4FGL_J1503.5+4759_daily_bin180.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) = 5770.37162751
delta logL = -0.00172663110425

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5770.36990081
delta logL = 6.25095708529e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2115       1.0000          .0000       10.000    
     3 'Normalizat'    .90894       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88411       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=   5770.370     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      202 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    21.540        .90712E-02** at limit **
   2  Index         2.2024        7.0188        .50000        .27136E-04
   3  Normalizat    .90894        .10605E-01    .45016E-01    .93696E-05
   4  Prefactor     .88411        .11929E-01    .44802E-01    .17044E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.20237
  Normalizat = 0.908937
  Prefactor  = 0.884106
 **********
 **   18 **HESSE 
 **********

 FCN=   5770.370     FROM HESSE     STATUS=OK            33 CALLS      235 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.953        .12315E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2024        5.4567        .50000       -.59381    
   3  Normalizat    .90894        .17875        .21841E-03   -.96147    
   4  Prefactor     .88411        .20103        .24742E-03   -.96699    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.56706e-09
Minuit parameter uncertainties:
  1  6.68793e-06
  2  8.95703
  3  0.178867
  4  0.201201
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/948222': 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) = 5770.36990075
delta logL = 1.23065547086e-07

Extracting fit parameters...

4FGL J1503.5+4759
   Spectrum: PowerLaw
292    Prefactor:  1.000e-04  6.688e-06  1.000e-04  1.000e+04 ( 1.000e-13)
293        Index:  2.202e+00  8.957e+00  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:  8.841e-01  2.012e-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:  9.089e-01  1.789e-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/948222/cmap_HighResolution_285984001_286243201_4FGL_J1503.5+4759_daily_bin180.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.86e-03', job_status='DONE', photon_flux_upper_limit='5.06e-08', time_completed='2021-09-10 18:42:47.997398', job_id='948222', GAL2='0.88', fit_tolerance='1e-08', EG2='0.91', EG='0.91', time_epoch_completed='1631324568.0', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='1.23e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.22' WHERE bin_id='180' AND source_name='4FGL J1503.5+4759' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 18:42:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0243>
Subject: Job 948222: <4FGL_J1503.5+4759_daily_bin180> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1503.5+4759_daily_bin180 225.895 47.9959 285984001 286243201 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 :                                   964.24 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             329.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   981 sec.
    Turnaround time :                            983 sec.

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

