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


Performing analysis on: 4FGL_J1503.5+4759_daily_bin482
RA = 225.895, Dec = 47.9959
tmin = 364262401, tmax = 364521601
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='950580', job_status='RUN', time_executed='2021-09-10 18:36:26.479394', time_epoch_executed='1631324186.48' WHERE source_name='4FGL J1503.5+4759' and cadence='daily' and bin_id='482'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/950580

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/950580/ft1_4FGL_J1503.5+4759_daily_bin482.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/950580/ft2_4FGL_J1503.5+4759_daily_bin482.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/950580/ft1_4FGL_J1503.5+4759_daily_bin482.fits outfile=/scratch/kocevski/950580/ft1_filteredMKT_4FGL_J1503.5+4759_daily_bin482.fits ra=225.895 dec=47.9959 rad=12.0 tmin=364262401.0 tmax=364521601.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.22
user 3.01
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/950580/ft1_filtered_4FGL_J1503.5+4759_daily_bin482.fits evtable="EVENTS" scfile=/scratch/kocevski/950580/ft2_4FGL_J1503.5+4759_daily_bin482.fits sctable="SC_DATA" expcube=/scratch/kocevski/950580/ltcube_364262401_364521601_4FGL_J1503.5+4759_daily_bin482.fits outfile=/scratch/kocevski/950580/expmap_364262401_364521601_4FGL_J1503.5+4759_daily_bin482.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/950580/ltcube_364262401_364521601_4FGL_J1503.5+4759_daily_bin482.fits
.....................!
real 189.57
user 184.73
sys 4.44

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/950580/ft1_filtered_4FGL_J1503.5+4759_daily_bin482.fits scfile=/scratch/kocevski/950580/ft2_4FGL_J1503.5+4759_daily_bin482.fits outfile=/scratch/kocevski/950580/cmap_364262401_364521601_4FGL_J1503.5+4759_daily_bin482.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/950580/ft1_filtered_4FGL_J1503.5+4759_daily_bin482.fits scfile=/scratch/kocevski/950580/ft2_4FGL_J1503.5+4759_daily_bin482.fits outfile=/scratch/kocevski/950580/cmap_HighResolution_364262401_364521601_4FGL_J1503.5+4759_daily_bin482.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    28.070       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.7861       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .76968       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .17600E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .14041E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    27.832       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.1047       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    21.055       1.0000         .10000E-03   10000.    
    13 'Prefactor '    47.761       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .12416E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.2894       1.0000         .10000E-03   10000.    
    16 'norm      '    .10036E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.1318       1.0000         .10000E-03   10000.    
    20 'norm      '    4.5765       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10217E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    19.856       1.0000         .10000E-03   10000.    
    24 'Prefactor '    39.947       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10165E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10144E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10253E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    47.814       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .97468       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .68767       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=   5363.627     FROM MIGRAD    STATUS=CONVERGED    866 CALLS     4414 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    22.540       -.34117E-06** at limit **
   2  Prefactor     28.075        29.943       -.23689E-07   -.56173E-04
   3  Prefactor     .10000E-03    2.6648       -.62031E-07** at limit **
   4  Prefactor     5.7865        14.343       -.11713E-05    .59775E-04
   5  Prefactor     .77469        4.9555        .23651E-05    .47249E-03
   6  Prefactor     .10001E-03    73.270        .19544E-04** at limit **
   7  Prefactor     .10000E-03    40.777        .10400E-05** at limit **
   8  Prefactor     27.763        36.805       -.45078E-05   -.29099E-03
   9  Prefactor     .10000E-03    22.859        .12408E-06** at limit **
  10  Prefactor     6.1002        23.884        .35176E-06   -.13208E-04
  11  Prefactor     .10000E-03    14.176        .13059E-06** at limit **
  12  norm          21.055        8.8464        .34882E-07   -.34970E-04
  13  Prefactor     47.789        39.403        .60432E-06   -.58523E-04
  14  Prefactor     .10000E-03    31.291       -.11810E-04** at limit **
  15  Prefactor     5.2885        10.606        .56891E-07   -.52499E-04
  16  norm          .10000E-03    .80374        .10664E-06** at limit **
  17  Prefactor     .10000E-03    7.6468        .11953E-06** at limit **
  18  Prefactor     .10000E-03    6.4826        .23709E-06** at limit **
  19  Prefactor     3.1317        4.9753       -.14160E-05    .42422E-03
  20  norm          4.5771        1.6827        .15799E-08   -.10331E-03
  21  Prefactor     .10000E-03    5.6307        .23378E-06** at limit **
  22  norm          .10000E-03    1.7582       -.53573E-08** at limit **
  23  Prefactor     19.855        8.9245        .88294E-07   -.12003E-04
  24  Prefactor     39.909        42.937       -.88027E-06    .63951E-04
  25  Prefactor     .10000E-03    8.7767        .17672E-06** at limit **
  26  Prefactor     .10000E-03    9.4572       -.65375E-07** at limit **
  27  norm          .10000E-03    10.008        .14329E-06** at limit **
  28  Prefactor     .10000E-03    5.5453        .34444E-07** at limit **
  29  Prefactor     .10000E-03    7.5596       -.41118E-07** at limit **
  30  Prefactor     47.906        64.817        .39239E-05   -.14560E-03
  31  Normalizat    .97470        .16292       -.97540E-07   -.39797E-03
  32  Prefactor     .68752        .17265       -.28833E-06   -.21808E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 28.0751
  Prefactor  = 0.0001
  Prefactor  = 5.78649
  Prefactor  = 0.774689
  Prefactor  = 0.00010001
  Prefactor  = 0.0001
  Prefactor  = 27.7633
  Prefactor  = 0.0001
  Prefactor  = 6.10022
  Prefactor  = 0.0001
  norm       = 21.0547
  Prefactor  = 47.7886
  Prefactor  = 0.000100001
  Prefactor  = 5.28853
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.13174
  norm       = 4.57711
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 19.8549
  Prefactor  = 39.9094
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 47.9056
  Normalizat = 0.974698
  Prefactor  = 0.687518
 **********
 **   18 **HESSE 
 **********

 FCN=   5363.627     FROM HESSE     STATUS=OK           649 CALLS     5063 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    22.564        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     28.075        29.914        .75617E-04   -1.4648    
   3  Prefactor     .10000E-03    2.7005        .11664E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     5.7865        14.326        .83485E-03   -1.5227    
   5  Prefactor     .77469        4.3439        .22185E-03   -1.5532    
   6  Prefactor     .10001E-03    115.54        .58718E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    41.163        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     27.763        34.604        .75938E-04   -1.4654    
   9  Prefactor     .10000E-03    22.871        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.1002        23.751        .16249E-03   -1.5214    
  11  Prefactor     .10000E-03    14.185        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          21.055        8.8274        .87290E-04   -1.4790    
  13  Prefactor     47.789        39.306        .58021E-04   -1.4324    
  14  Prefactor     .10000E-03    55.688        .41329E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     5.2885        10.534        .17476E-03   -1.5248    
  16  norm          .10000E-03    .83526        .12810E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    7.7613        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    6.6119        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.1317        4.9068        .96539E-03   -1.5354    
  20  norm          4.5771        1.6784        .55529E-04   -1.5280    
  21  Prefactor     .10000E-03    5.7791        .33921E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    1.7950        .18915E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     19.855        8.8965        .89885E-04   -1.4816    
  24  Prefactor     39.909        42.863        .31710E-03   -1.4444    
  25  Prefactor     .10000E-03    8.8005        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    9.5216        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    10.057        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    5.5473        .16844E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    7.6339        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     47.906        64.218        .57989E-04   -1.4323    
  31  Normalizat    .97470        .19302        .20475E-03   -.93883    
  32  Prefactor     .68752        .20386        .26523E-03   -1.0402    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.87241e-09
Minuit parameter uncertainties:
  1  2.21197e-05
  2  29.9295
  3  2.96132e-06
  4  14.3348
  5  3.66904
  6  0.00213935
  7  0.000102832
  8  34.6286
  9  1.67364e-05
  10  23.7877
  11  5.53212e-06
  12  8.82797
  13  39.3274
  14  0.000561968
  15  10.5372
  16  5.45914e-06
  17  7.05409e-06
  18  1.74315e-05
  19  4.9074
  20  1.67841
  21  1.79344e-05
  22  1.41051e-06
  23  8.8971
  24  42.8965
  25  5.37949e-06
  26  1.54285e-05
  27  1.4311e-05
  28  1.62122e-06
  29  8.4772e-06
  30  64.3114
  31  0.19316
  32  0.204077
Done.

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

Extracting fit parameters...

4FGL J1503.5+4759
   Spectrum: PowerLaw
292    Prefactor:  3.132e+00  4.907e+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:  6.875e-01  2.041e-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.747e-01  1.932e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/950580/likelihoodResults_364262401_364521601_4FGL_J1503.5+4759_daily_bin482.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): 0
logL (Free Index) = 5363.5060122
delta logL = 0.12095749993

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5363.49758703
delta logL = 0.129382672481

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.4995       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8465       1.0000          .0000       10.000    
     3 'Normalizat'    .95847       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .69780       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=   5363.498     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      250 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.4981        46.372        .87432E-02    .60205E-03
   2  Index         2.8469        3.4578        .12478        .11807E-03
   3  Normalizat    .95848        .40910E-01    .45644E-01    .35236E-05
   4  Prefactor     .69778        .43113E-01    .42372E-01    .15433E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.49806
  Index      = 2.84685
  Normalizat = 0.958478
  Prefactor  = 0.697781
 **********
 **   18 **HESSE 
 **********

 FCN=   5363.498     FROM HESSE     STATUS=OK            33 CALLS      283 TOTAL
                     EDM=   .80E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.4981        10.954        .10672E-03   -1.5463    
   2  Index         2.8469        2.5244        .68257E-02   -.44519    
   3  Normalizat    .95848        .19287        .20624E-03   -.94435    
   4  Prefactor     .69778        .20863        .26339E-03   -1.0361    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.99106e-08
Minuit parameter uncertainties:
  1  8.10378
  2  2.67896
  3  0.193009
  4  0.208866
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/950580': 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) = 5363.49758695
delta logL = 0.129382753099

Extracting fit parameters...

4FGL J1503.5+4759
   Spectrum: PowerLaw
292    Prefactor:  1.498e+00  8.104e+00  1.000e-04  1.000e+04 ( 1.000e-13)
293        Index:  2.847e+00  2.679e+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:  6.978e-01  2.089e-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.585e-01  1.930e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.60
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/950580/cmap_HighResolution_364262401_364521601_4FGL_J1503.5+4759_daily_bin482.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.65e-03', job_status='DONE', photon_flux_upper_limit='7.41e-08', time_completed='2021-09-10 18:51:34.035926', job_id='950580', GAL2='0.70', fit_tolerance='1e-08', EG2='0.96', EG='0.97', time_epoch_completed='1631325094.04', return_code2='0', ts='0.60', comment='SUCCESS', return_code='0', GAL='0.69', dlogl='1.29e-01', ts2='0.86', photon_index_error='0.00', photon_index='2.22' WHERE bin_id='482' AND source_name='4FGL J1503.5+4759' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 18:51:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0252>
Subject: Job 950580: <4FGL_J1503.5+4759_daily_bin482> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1503.5+4759_daily_bin482 225.895 47.9959 364262401 364521601 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 :                                   904.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             328.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   925 sec.
    Turnaround time :                            927 sec.

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

