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


Performing analysis on: 4FGL_J1503.5+4759_daily_bin1414
RA = 225.895, Dec = 47.9959
tmin = 605836801, tmax = 606096001
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='955347', job_status='RUN', time_executed='2021-09-10 18:51:56.606238', time_epoch_executed='1631325116.61' WHERE source_name='4FGL J1503.5+4759' and cadence='daily' and bin_id='1414'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/955347

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/955347/ft1_4FGL_J1503.5+4759_daily_bin1414.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/955347/ft2_4FGL_J1503.5+4759_daily_bin1414.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/955347/ft1_4FGL_J1503.5+4759_daily_bin1414.fits outfile=/scratch/kocevski/955347/ft1_filteredMKT_4FGL_J1503.5+4759_daily_bin1414.fits ra=225.895 dec=47.9959 rad=12.0 tmin=605836801.0 tmax=606096001.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.62
user 3.41
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/955347/ft2_4FGL_J1503.5+4759_daily_bin1414.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/955347/ft1_filteredMKT_4FGL_J1503.5+4759_daily_bin1414.fits evtable="EVENTS" outfile="/scratch/kocevski/955347/ft1_filtered_4FGL_J1503.5+4759_daily_bin1414.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.33
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/955347/ft1_filtered_4FGL_J1503.5+4759_daily_bin1414.fits evtable="EVENTS" scfile=/scratch/kocevski/955347/ft2_4FGL_J1503.5+4759_daily_bin1414.fits sctable="SC_DATA" expcube=/scratch/kocevski/955347/ltcube_605836801_606096001_4FGL_J1503.5+4759_daily_bin1414.fits outfile=/scratch/kocevski/955347/expmap_605836801_606096001_4FGL_J1503.5+4759_daily_bin1414.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/955347/ltcube_605836801_606096001_4FGL_J1503.5+4759_daily_bin1414.fits
.....................!
real 191.80
user 185.61
sys 5.69

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/955347/ft1_filtered_4FGL_J1503.5+4759_daily_bin1414.fits scfile=/scratch/kocevski/955347/ft2_4FGL_J1503.5+4759_daily_bin1414.fits outfile=/scratch/kocevski/955347/cmap_605836801_606096001_4FGL_J1503.5+4759_daily_bin1414.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.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10400E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.349       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.5256       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    42.281       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    8.1760       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .19955E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .65917       1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.7739       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10048E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .18028       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    6.1999       1.0000         .10000E-03   10000.    
    27 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    2.4082       1.0000         .10000E-03   10000.    
    30 'Prefactor '    21.661       1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.1892       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .60293       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=   5823.810     FROM MIGRAD    STATUS=CONVERGED    855 CALLS     4354 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.755        .55923E-05** at limit **
   2  Prefactor     .10000E-03    10.409       -.47138E-05** at limit **
   3  Prefactor     .10000E-03    1.2536       -.28345E-07** at limit **
   4  Prefactor     .10000E-03    45.877        .38381E-06** at limit **
   5  Prefactor     .10000E-03    .61473       -.67969E-09** at limit **
   6  Prefactor     11.344        16.895        .17768E-06   -.38964E-04
   7  Prefactor     .10000E-03    14.620       -.18213E-05** at limit **
   8  Prefactor     9.5273        15.245       -.11943E-05    .46654E-05
   9  Prefactor     .10000E-03    15.550       -.31204E-05** at limit **
  10  Prefactor     42.280        28.648        .69692E-06   -.68966E-04
  11  Prefactor     .10000E-03    9.2205        .10619E-05** at limit **
  12  norm          8.1762        7.0064       -.12518E-05   -.16800E-02
  13  Prefactor     .10000E-03    20.952        .81069E-05** at limit **
  14  Prefactor     .10002E-03    5.9882        .55296E-06** at limit **
  15  Prefactor     .10000E-03    3.2437       -.11461E-06** at limit **
  16  norm          .65926        .70855       -.23787E-07    .12053E-03
  17  Prefactor     7.7725        5.7979        .10249E-05   -.10436E-03
  18  Prefactor     .10000E-03    3.8177       -.32477E-07** at limit **
  19  Prefactor     .10000E-03    1.8995       -.32962E-07** at limit **
  20  norm          .10000E-03    .81301       -.23835E-06** at limit **
  21  Prefactor     .10000E-03    5.4761       -.19366E-06** at limit **
  22  norm          .10000E-03    1.1782        .39284E-07** at limit **
  23  Prefactor     .31411E-01    10.865        .12329E-05    .34583E-04
  24  Prefactor     .10000E-03    24.177       -.37435E-05** at limit **
  25  Prefactor     .10000E-03    10.900        .39139E-06** at limit **
  26  Prefactor     6.3273        12.190       -.26038E-05   -.41632E-03
  27  norm          .10000E-03    23.785       -.37982E-05** at limit **
  28  Prefactor     .10000E-03    7.7522       -.16989E-06** at limit **
  29  Prefactor     2.4071        7.5429       -.10689E-05   -.30673E-03
  30  Prefactor     21.642        64.046       -.26738E-04    .12618E-03
  31  Normalizat    1.1891        .15746        .87236E-06   -.12757E-03
  32  Prefactor     .60315        .16956        .58089E-06   -.44075E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.3438
  Prefactor  = 0.0001
  Prefactor  = 9.52732
  Prefactor  = 0.0001
  Prefactor  = 42.2802
  Prefactor  = 0.0001
  norm       = 8.17617
  Prefactor  = 0.000100001
  Prefactor  = 0.000100021
  Prefactor  = 0.0001
  norm       = 0.659259
  Prefactor  = 7.77255
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0314107
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.32727
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.40713
  Prefactor  = 21.6424
  Normalizat = 1.18911
  Prefactor  = 0.603153
 **********
 **   18 **HESSE 
 **********

 FCN=   5823.810     FROM HESSE     STATUS=OK           657 CALLS     5011 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.667        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    10.358        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.2571        .83441E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    47.629        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    .61948        .58364E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     11.344        16.887        .11892E-03   -1.5034    
   7  Prefactor     .10000E-03    14.783        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     9.5273        15.259        .12984E-03   -1.5091    
   9  Prefactor     .10000E-03    15.531        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     42.280        28.708        .61651E-04   -1.4407    
  11  Prefactor     .10000E-03    9.2193        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          8.1762        7.2925        .70106E-03   -1.5136    
  13  Prefactor     .10000E-03    20.802        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10002E-03    26.491        .36236E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.2490        .13423E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .65926        .70760        .64776E-04   -1.5546    
  17  Prefactor     7.7725        5.7011        .14382E-03   -1.5150    
  18  Prefactor     .10000E-03    3.8402        .14559E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    1.9172        .10270E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    1.4478        .13116E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    5.5727        .17429E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    1.1850        .80729E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .31411E-01    13.396        .52405E-01   -1.5673    
  24  Prefactor     .10000E-03    24.148        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    10.934        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     6.3273        12.681        .16123E-03   -1.5205    
  27  norm          .10000E-03    24.138        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    7.7621        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     2.4071        7.5720        .26382E-03   -1.5398    
  30  Prefactor     21.642        62.866        .86062E-04   -1.4777    
  31  Normalizat    1.1891        .18530        .18939E-03   -.86940    
  32  Prefactor     .60315        .19864        .28334E-03   -1.0745    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.51095e-09
Minuit parameter uncertainties:
  1  0.000169028
  2  0.000126726
  3  1.13448e-06
  4  0.00026119
  5  6.07777e-08
  6  16.8945
  7  5.4762e-05
  8  15.2651
  9  0.000100705
  10  28.7177
  11  3.02023e-05
  12  7.29328
  13  0.000322014
  14  0.00150364
  15  8.15084e-07
  16  0.707605
  17  5.70145
  18  4.60898e-06
  19  1.85722e-06
  20  2.53478e-05
  21  1.04993e-05
  22  9.96518e-07
  23  1.29558
  24  0.000155112
  25  3.62818e-05
  26  12.6865
  27  0.00016526
  28  2.43149e-06
  29  7.57503
  30  63.0592
  31  0.185397
  32  0.198871
Done.

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

Extracting fit parameters...

4FGL J1503.5+4759
   Spectrum: PowerLaw
292    Prefactor:  1.000e-04  1.857e-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:  6.032e-01  1.989e-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.189e+00  1.854e-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: 3.81e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.91e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/955347/likelihoodResults_605836801_606096001_4FGL_J1503.5+4759_daily_bin1414.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) = 5823.81286112
delta logL = -0.00246467646866

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5823.81039732
delta logL = -8.82111635292e-07

Fit tolerance = 1e-08

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

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

 FCN=   5823.810     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      236 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10189E-03    1.0924        .10594E-01** at limit **
   2  Index         2.1266        6.0141        .50000        .98565E-04
   3  Normalizat    1.1891        .26402E-02    .18939E-03    .34456E-04
   4  Prefactor     .60315        .29124E-02    .28334E-03    .14846E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101885
  Index      = 2.12659
  Normalizat = 1.18911
  Prefactor  = 0.603152
 **********
 **   18 **HESSE 
 **********

 FCN=   5823.810     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      265 TOTAL
                     EDM=   .92E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10189E-03    25.717        .10802E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1266        8.7320        .50000       -.61222    
   3  Normalizat    1.1891        .12901E-01    .37879E-04   -.86940    
   4  Prefactor     .60315        .14231E-01    .11333E-04   -1.0745    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.15154e-08
Minuit parameter uncertainties:
  1  0.0139321
  2  146.995
  3  0.0129009
  4  0.0142308
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/955347': 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): 102
logL (Free Index) = 5823.81039436
delta logL = 2.08474830288e-06

Extracting fit parameters...

4FGL J1503.5+4759
   Spectrum: PowerLaw
292    Prefactor:  1.019e-04  1.393e-02  1.000e-04  1.000e+04 ( 1.000e-13)
293        Index:  2.127e+00  1.470e+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:  6.032e-01  1.423e-02  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.189e+00  1.290e-02  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/955347/cmap_HighResolution_605836801_606096001_4FGL_J1503.5+4759_daily_bin1414.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.91e-03', job_status='DONE', photon_flux_upper_limit='3.81e-08', time_completed='2021-09-10 19:08:01.549547', job_id='955347', GAL2='0.60', fit_tolerance='1e-08', EG2='1.19', EG='1.19', time_epoch_completed='1631326081.55', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.60', dlogl='2.08e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.22' WHERE bin_id='1414' AND source_name='4FGL J1503.5+4759' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 19:08:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0049>
Subject: Job 955347: <4FGL_J1503.5+4759_daily_bin1414> in cluster <slac> Done

Job <4FGL_J1503.5+4759_daily_bin1414> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Sep 10 18:51:42 2021
Job was executed on host(s) <bullet0049>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 18:51:44 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:51:44 2021
Terminated at Fri Sep 10 19:08:02 2021
Results reported at Fri Sep 10 19:08:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1503.5+4759_daily_bin1414 225.895 47.9959 605836801 606096001 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 :                                   950.07 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             345.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   977 sec.
    Turnaround time :                            980 sec.

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

