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


Performing analysis on: 4FGL_J1503.5+4759_daily_bin267
RA = 225.895, Dec = 47.9959
tmin = 308534401, tmax = 308793601
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='949226', job_status='RUN', time_executed='2021-09-10 18:31:32.345827', time_epoch_executed='1631323892.35' WHERE source_name='4FGL J1503.5+4759' and cadence='daily' and bin_id='267'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/949226

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/949226/ft1_4FGL_J1503.5+4759_daily_bin267.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/949226/ft2_4FGL_J1503.5+4759_daily_bin267.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/949226/ft1_4FGL_J1503.5+4759_daily_bin267.fits outfile=/scratch/kocevski/949226/ft1_filteredMKT_4FGL_J1503.5+4759_daily_bin267.fits ra=225.895 dec=47.9959 rad=12.0 tmin=308534401.0 tmax=308793601.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 5.43
user 5.16
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/949226/ft2_4FGL_J1503.5+4759_daily_bin267.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/949226/ft1_filteredMKT_4FGL_J1503.5+4759_daily_bin267.fits evtable="EVENTS" outfile="/scratch/kocevski/949226/ft1_filtered_4FGL_J1503.5+4759_daily_bin267.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.48
user 0.31
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/949226/ft1_filtered_4FGL_J1503.5+4759_daily_bin267.fits evtable="EVENTS" scfile=/scratch/kocevski/949226/ft2_4FGL_J1503.5+4759_daily_bin267.fits sctable="SC_DATA" expcube=/scratch/kocevski/949226/ltcube_308534401_308793601_4FGL_J1503.5+4759_daily_bin267.fits outfile=/scratch/kocevski/949226/expmap_308534401_308793601_4FGL_J1503.5+4759_daily_bin267.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/949226/ltcube_308534401_308793601_4FGL_J1503.5+4759_daily_bin267.fits
.....................!
real 190.87
user 185.36
sys 4.90

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/949226/ft1_filtered_4FGL_J1503.5+4759_daily_bin267.fits scfile=/scratch/kocevski/949226/ft2_4FGL_J1503.5+4759_daily_bin267.fits outfile=/scratch/kocevski/949226/cmap_308534401_308793601_4FGL_J1503.5+4759_daily_bin267.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.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/949226/ft1_filtered_4FGL_J1503.5+4759_daily_bin267.fits scfile=/scratch/kocevski/949226/ft2_4FGL_J1503.5+4759_daily_bin267.fits outfile=/scratch/kocevski/949226/cmap_HighResolution_308534401_308793601_4FGL_J1503.5+4759_daily_bin267.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    45.579       1.0000         .10000E-03   10000.    
     2 'Prefactor '    41.644       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .65931       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.1350       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10245E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    13.653       1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.392       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    48.334       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10312E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    72.168       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.8196       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .99782       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.0834       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    19.992       1.0000         .10000E-03   10000.    
    22 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.2705       1.0000         .10000E-03   10000.    
    24 'Prefactor '    133.56       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10356E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    14.215       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    9.7750       1.0000         .10000E-03   10000.    
    30 'Prefactor '    104.31       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .65939       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.2276       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=   4543.241     FROM MIGRAD    STATUS=CONVERGED    840 CALLS     4342 TOTAL
                     EDM=   .36E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     45.546        50.851        .31304E-05    .25781E-04
   2  Prefactor     41.609        38.986        .30791E-05    .83670E-04
   3  Prefactor     .10000E-03    2.6839       -.27735E-06** at limit **
   4  Prefactor     .76760        18.033       -.38495E-05    .31408E-03
   5  Prefactor     1.1380        2.0751       -.23529E-06   -.37984E-03
   6  Prefactor     .10000E-03    12.859       -.59960E-08** at limit **
   7  Prefactor     13.653        22.847       -.36879E-06    .12610E-04
   8  Prefactor     10.390        15.250       -.13122E-06    .88006E-05
   9  Prefactor     .10000E-03    25.249        .55734E-07** at limit **
  10  Prefactor     48.323        35.379        .12014E-05    .90902E-04
  11  Prefactor     .10000E-03    18.939       -.76215E-06** at limit **
  12  norm          .10000E-03    3.6728        .11407E-06** at limit **
  13  Prefactor     72.189        53.389       -.21056E-05    .60070E-06
  14  Prefactor     1.8209        34.391        .10720E-04    .59823E-04
  15  Prefactor     .10000E-03    17.456        .12838E-05** at limit **
  16  norm          .99790        1.0986       -.20147E-07   -.23458E-04
  17  Prefactor     .10000E-03    2.2594        .65072E-07** at limit **
  18  Prefactor     .10000E-03    4.4819       -.26594E-08** at limit **
  19  Prefactor     5.0845        5.1012       -.12385E-06   -.26971E-04
  20  norm          .10000E-03    .65654        .20222E-06** at limit **
  21  Prefactor     20.003        10.744        .64182E-07    .41059E-05
  22  norm          .10000E-03    3.0701        .57161E-07** at limit **
  23  Prefactor     4.2800        8.2166       -.26450E-07   -.45648E-04
  24  Prefactor     133.59        89.434       -.27878E-05   -.14134E-04
  25  Prefactor     .10000E-03    18.247       -.42822E-07** at limit **
  26  Prefactor     .10000E-03    36.318        .10122E-05** at limit **
  27  norm          14.216        16.187        .14924E-06   -.15673E-05
  28  Prefactor     .10000E-03    25.004       -.10784E-07** at limit **
  29  Prefactor     9.7806        15.054        .16538E-06   -.60574E-06
  30  Prefactor     104.29        92.934        .12164E-05    .53881E-06
  31  Normalizat    .65847        .20663        .74431E-06    .16458E-03
  32  Prefactor     1.2283        .21694       -.15156E-05    .14455E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 45.5463
  Prefactor  = 41.6085
  Prefactor  = 0.0001
  Prefactor  = 0.767603
  Prefactor  = 1.13799
  Prefactor  = 0.0001
  Prefactor  = 13.6527
  Prefactor  = 10.3904
  Prefactor  = 0.0001
  Prefactor  = 48.3227
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 72.1893
  Prefactor  = 1.82093
  Prefactor  = 0.0001
  norm       = 0.997902
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.08446
  norm       = 0.0001
  Prefactor  = 20.0029
  norm       = 0.0001
  Prefactor  = 4.28001
  Prefactor  = 133.595
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 14.2163
  Prefactor  = 0.0001
  Prefactor  = 9.78061
  Prefactor  = 104.293
  Normalizat = 0.658467
  Prefactor  = 1.22831
 **********
 **   18 **HESSE 
 **********

 FCN=   4543.241     FROM HESSE     STATUS=OK           657 CALLS     4999 TOTAL
                     EDM=   .56E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     45.546        50.690        .59388E-04   -1.4357    
   2  Prefactor     41.609        39.043        .62119E-04   -1.4417    
   3  Prefactor     .10000E-03    2.7091        .10785E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .76760        130.77        .47978E-02   -1.5533    
   5  Prefactor     1.1380        1.7648        .12267E-02   -1.5495    
   6  Prefactor     .10000E-03    12.885        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     13.653        22.701        .10840E-03   -1.4969    
   8  Prefactor     10.390        15.201        .12429E-03   -1.5063    
   9  Prefactor     .10000E-03    25.267        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     48.323        35.586        .57678E-04   -1.4317    
  11  Prefactor     .10000E-03    18.950        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    3.6836        .12615E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     72.189        53.377        .23629E-03   -1.4007    
  14  Prefactor     1.8209        34.688        .15479E-02   -1.5438    
  15  Prefactor     .10000E-03    17.604        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .99790        1.0888        .71710E-04   -1.5508    
  17  Prefactor     .10000E-03    2.2619        .98947E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.4865        .13931E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     5.0845        5.0997        .14734E-03   -1.5257    
  20  norm          .10000E-03    .67396        .10663E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     20.003        10.828        .89577E-04   -1.4813    
  22  norm          .10000E-03    3.0874        .22771E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     4.2800        8.0584        .19497E-03   -1.5294    
  24  Prefactor     133.59        89.470        .17422E-03   -1.3391    
  25  Prefactor     .10000E-03    18.340        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    37.115        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          14.216        16.186        .10623E-03   -1.4954    
  28  Prefactor     .10000E-03    25.160        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     9.7806        15.058        .12817E-03   -1.5082    
  30  Prefactor     104.29        93.004        .39372E-04   -1.3662    
  31  Normalizat    .65847        .25464        .26853E-03   -1.0556    
  32  Prefactor     1.2283        .26430        .23223E-03   -.85464    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.57242e-09
Minuit parameter uncertainties:
  1  50.7384
  2  39.0671
  3  1.44785e-05
  4  20.0815
  5  1.76489
  6  5.82772e-06
  7  22.7153
  8  15.2064
  9  2.96891e-05
  10  35.602
  11  7.28202e-06
  12  8.52673e-06
  13  53.4125
  14  15.9055
  15  7.87231e-06
  16  1.08878
  17  3.59402e-06
  18  6.00406e-07
  19  5.10014
  20  6.25192e-06
  21  10.8294
  22  4.88273e-06
  23  8.06046
  24  89.5611
  25  2.17518e-05
  26  9.79335e-05
  27  16.1907
  28  1.58089e-05
  29  15.0635
  30  93.1343
  31  0.255093
  32  0.264588
Done.

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

Extracting fit parameters...

4FGL J1503.5+4759
   Spectrum: PowerLaw
292    Prefactor:  5.084e+00  5.100e+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.228e+00  2.646e-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.585e-01  2.551e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.58
Ra Dec: 225.895 47.996
Photon Index (Fixed Index): 2.22 +/- 0.00
Photon Flux (Fixed Index): 2.39e-08 +/- 2.39e-08
Energy Flux (Fixed Index): 1.03e-05 +/- 1.04e-05

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

Saving results to:
/scratch/kocevski/949226/likelihoodResults_308534401_308793601_4FGL_J1503.5+4759_daily_bin267.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) = 4543.16175689
delta logL = 0.0791759646881

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4543.1581964
delta logL = 0.0827364607449

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.6708       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9004       1.0000          .0000       10.000    
     3 'Normalizat'    .66648       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2240       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=   4543.158     FROM MIGRAD    STATUS=CONVERGED     63 CALLS      276 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.6912        227.97        .38841E-02   -.15759E-04
   2  Index         1.9044        5.6664        .22109        .27155E-04
   3  Normalizat    .66628        .88949E-01    .60365E-01   -.17628E-04
   4  Prefactor     1.2239        .77902E-01    .52608E-01   -.39666E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.69121
  Index      = 1.90435
  Normalizat = 0.666279
  Prefactor  = 1.22387
 **********
 **   18 **HESSE 
 **********

 FCN=   4543.158     FROM HESSE     STATUS=OK            31 CALLS      307 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.6912        7.5147        .15536E-03   -1.5191    
   2  Index         1.9044        .76164        .79799E-02   -.66763    
   3  Normalizat    .66628        .22020        .26702E-03   -1.0524    
   4  Prefactor     1.2239        .25380        .23259E-03   -.85600    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.16199e-10
Minuit parameter uncertainties:
  1  7.51575
  2  0.766499
  3  0.220495
  4  0.254057
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/949226': 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) = 4543.15816929
delta logL = 0.0827635669011

Extracting fit parameters...

4FGL J1503.5+4759
   Spectrum: PowerLaw
292    Prefactor:  6.691e+00  7.516e+00  1.000e-04  1.000e+04 ( 1.000e-13)
293        Index:  1.904e+00  7.665e-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.224e+00  2.541e-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.663e-01  2.205e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.74
Ra Dec: 225.895 47.996
Photon Index (Free Index): 1.90 +/- 0.77
Photon Flux (Free Index): 1.71e-08 +/- 2.37e-08
Energy Flux (Free Index): 1.52e-05 +/- 2.38e-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/949226/cmap_HighResolution_308534401_308793601_4FGL_J1503.5+4759_daily_bin267.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.85e-03', comment='SUCCESS', photon_flux='2.39e-08', energy_flux2='1.52e-05', photon_flux_error='2.39e-08', dlogl='8.28e-02', energy_flux='1.03e-05', photon_flux2='1.71e-08', job_status='DONE', time_completed='2021-09-10 18:45:21.683057', photon_index_error2='0.77', photon_index2='1.90', ts='2.58', fit_tolerance='1e-08', GAL='1.23', photon_index_error='0.00', photon_flux_upper_limit='8.98e-08', energy_flux_error2='2.38e-05', EG='0.66', time_epoch_completed='1631324721.68', return_code='0', job_id='949226', GAL2='1.22', EG2='0.67', return_code2='0', energy_flux_error='1.04e-05', photon_flux_error2='2.37e-08', ts2='2.74', photon_index='2.22' WHERE bin_id='267' AND source_name='4FGL J1503.5+4759' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 18:45:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0242>
Subject: Job 949226: <4FGL_J1503.5+4759_daily_bin267> in cluster <slac> Done

Job <4FGL_J1503.5+4759_daily_bin267> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Sep 10 18:31:19 2021
Job was executed on host(s) <bullet0242>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 18:31:21 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:31:21 2021
Terminated at Fri Sep 10 18:45:22 2021
Results reported at Fri Sep 10 18:45:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1503.5+4759_daily_bin267 225.895 47.9959 308534401 308793601 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 :                                   824.26 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             329.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   840 sec.
    Turnaround time :                            843 sec.

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

