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


Performing analysis on: 4FGL_J1503.5+4759_daily_bin1433
RA = 225.895, Dec = 47.9959
tmin = 610761601, tmax = 611020801
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='955377', job_status='RUN', time_executed='2021-09-10 18:51:54.337445', time_epoch_executed='1631325114.34' WHERE source_name='4FGL J1503.5+4759' and cadence='daily' and bin_id='1433'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/955377

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/955377/ft1_4FGL_J1503.5+4759_daily_bin1433.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/955377/ft2_4FGL_J1503.5+4759_daily_bin1433.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/955377/ft1_4FGL_J1503.5+4759_daily_bin1433.fits outfile=/scratch/kocevski/955377/ft1_filteredMKT_4FGL_J1503.5+4759_daily_bin1433.fits ra=225.895 dec=47.9959 rad=12.0 tmin=610761601.0 tmax=611020801.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.54
user 3.35
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/955377/ft1_filtered_4FGL_J1503.5+4759_daily_bin1433.fits" evtable="EVENTS" scfile=/scratch/kocevski/955377/ft2_4FGL_J1503.5+4759_daily_bin1433.fits sctable="SC_DATA" outfile=/scratch/kocevski/955377/ltcube_610761601_611020801_4FGL_J1503.5+4759_daily_bin1433.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/955377/ft2_4FGL_J1503.5+4759_daily_bin1433.fits
.....................!
real 11.59
user 11.21
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/955377/ft1_filtered_4FGL_J1503.5+4759_daily_bin1433.fits evtable="EVENTS" scfile=/scratch/kocevski/955377/ft2_4FGL_J1503.5+4759_daily_bin1433.fits sctable="SC_DATA" expcube=/scratch/kocevski/955377/ltcube_610761601_611020801_4FGL_J1503.5+4759_daily_bin1433.fits outfile=/scratch/kocevski/955377/expmap_610761601_611020801_4FGL_J1503.5+4759_daily_bin1433.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/955377/ltcube_610761601_611020801_4FGL_J1503.5+4759_daily_bin1433.fits
.....................!
real 190.81
user 185.06
sys 5.39

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/955377/ft1_filtered_4FGL_J1503.5+4759_daily_bin1433.fits scfile=/scratch/kocevski/955377/ft2_4FGL_J1503.5+4759_daily_bin1433.fits outfile=/scratch/kocevski/955377/cmap_610761601_611020801_4FGL_J1503.5+4759_daily_bin1433.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=225.895 yref=47.9959 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/955377/ft1_filtered_4FGL_J1503.5+4759_daily_bin1433.fits scfile=/scratch/kocevski/955377/ft2_4FGL_J1503.5+4759_daily_bin1433.fits outfile=/scratch/kocevski/955377/cmap_HighResolution_610761601_611020801_4FGL_J1503.5+4759_daily_bin1433.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.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10103E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.3179       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    38.564       1.0000         .10000E-03   10000.    
     7 'Prefactor '    34.580       1.0000         .10000E-03   10000.    
     8 'Prefactor '    18.722       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11519E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.4333       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.9333       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.6553       1.0000         .10000E-03   10000.    
    20 'norm      '    .34010       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .28453       1.0000         .10000E-03   10000.    
    22 'norm      '    .17199       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    29.477       1.0000         .10000E-03   10000.    
    25 'Prefactor '    1.9696       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10192E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    40.508       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .90481       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.0382       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=   5990.797     FROM MIGRAD    STATUS=CONVERGED    855 CALLS     4404 TOTAL
                     EDM=   .81E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    27.551       -.22596E-05** at limit **
   2  Prefactor     .10000E-03    133.51        .33898E-05** at limit **
   3  Prefactor     .10000E-03    4.3760       -.19065E-06** at limit **
   4  Prefactor     6.3151        15.334        .54011E-06    .12483E-04
   5  Prefactor     .10000E-03    1.1724        .71633E-08** at limit **
   6  Prefactor     38.568        24.100        .46969E-06    .94704E-04
   7  Prefactor     34.578        26.107        .86840E-07   -.26547E-04
   8  Prefactor     18.718        25.236        .21945E-06   -.21745E-04
   9  Prefactor     .10000E-03    41.000        .25560E-05** at limit **
  10  Prefactor     .10000E-03    60.375       -.52657E-05** at limit **
  11  Prefactor     .10000E-03    17.993        .79332E-06** at limit **
  12  norm          .10000E-03    3.2853       -.18356E-07** at limit **
  13  Prefactor     .10000E-03    41.308        .25094E-05** at limit **
  14  Prefactor     .10000E-03    13.348       -.48709E-06** at limit **
  15  Prefactor     .10000E-03    3.7788       -.90215E-08** at limit **
  16  norm          1.4333        1.1273        .24121E-07   -.77949E-05
  17  Prefactor     2.9357        5.3821        .68195E-06    .11362E-03
  18  Prefactor     .10000E-03    2.8393       -.17535E-07** at limit **
  19  Prefactor     1.6556        3.6149        .19729E-06   -.19099E-05
  20  norm          .33887        1.2045       -.20310E-07   -.18778E-03
  21  Prefactor     .28298        2.9901        .12523E-06   -.46431E-04
  22  norm          .17201        1.9881        .91247E-06   -.30784E-03
  23  Prefactor     .10000E-03    4.5646        .27354E-06** at limit **
  24  Prefactor     29.481        49.230       -.55201E-06   -.84540E-06
  25  Prefactor     1.9690        39.375        .12799E-04    .70253E-05
  26  Prefactor     .10000E-03    7.3165        .75143E-06** at limit **
  27  norm          .10000E-03    4.1806        .10288E-07** at limit **
  28  Prefactor     .10000E-03    12.335        .18419E-06** at limit **
  29  Prefactor     .10000E-03    7.3407       -.47133E-06** at limit **
  30  Prefactor     40.507        49.664        .41483E-06    .24065E-05
  31  Normalizat    .90487        .16589       -.12548E-05    .22401E-04
  32  Prefactor     1.0381        .17937        .31231E-06   -.12649E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.31508
  Prefactor  = 0.0001
  Prefactor  = 38.5677
  Prefactor  = 34.5781
  Prefactor  = 18.7185
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.43333
  Prefactor  = 2.93566
  Prefactor  = 0.0001
  Prefactor  = 1.65558
  norm       = 0.33887
  Prefactor  = 0.282983
  norm       = 0.17201
  Prefactor  = 0.0001
  Prefactor  = 29.4807
  Prefactor  = 1.96902
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 40.5067
  Normalizat = 0.904867
  Prefactor  = 1.03814
 **********
 **   18 **HESSE 
 **********

 FCN=   5990.797     FROM HESSE     STATUS=OK           655 CALLS     5059 TOTAL
                     EDM=   .55E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    27.620        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    135.85        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.5229        .31579E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.3151        15.366        .15969E-03   -1.5205    
   5  Prefactor     .10000E-03    1.1865        .81451E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     38.568        24.164        .64542E-04   -1.4465    
   7  Prefactor     34.578        26.080        .68147E-04   -1.4531    
   8  Prefactor     18.718        25.177        .92565E-04   -1.4842    
   9  Prefactor     .10000E-03    41.095        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    60.900        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    18.043        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    3.3090        .13700E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    41.510        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    13.597        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.7846        .14693E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.4333        1.1298        .70671E-04   -1.5469    
  17  Prefactor     2.9357        5.2726        .22403E-03   -1.5365    
  18  Prefactor     .10000E-03    2.8500        .12729E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.6556        3.5776        .21014E-03   -1.5451    
  20  norm          .33887        1.1611        .14339E-03   -1.5592    
  21  Prefactor     .28298        21.492        .25619E-02   -1.5602    
  22  norm          .17201        4.2836        .19932E-02   -1.5625    
  23  Prefactor     .10000E-03    4.6019        .16146E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     29.481        48.937        .73794E-04   -1.4622    
  25  Prefactor     1.9690        41.265        .14773E-02   -1.5427    
  26  Prefactor     .10000E-03    7.4060        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    4.1811        .15456E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    12.422        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    7.3833        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     40.507        49.669        .62980E-04   -1.4434    
  31  Normalizat    .90487        .19620        .22449E-03   -.96289    
  32  Prefactor     1.0381        .21365        .24104E-03   -.91469    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.46018e-08
Minuit parameter uncertainties:
  1  9.00278e-05
  2  6.44615e-05
  3  6.83697e-06
  4  15.3757
  5  8.82444e-07
  6  24.17
  7  26.089
  8  25.1914
  9  0.000110562
  10  8.4054e-05
  11  2.33685e-05
  12  2.27067e-06
  13  9.87416e-05
  14  1.11633e-05
  15  6.86977e-07
  16  1.12986
  17  5.2734
  18  6.61678e-07
  19  3.57808
  20  1.16122
  21  4.93325
  22  1.71642
  23  9.07225e-06
  24  49.0038
  25  18.0417
  26  7.26576e-06
  27  1.07509e-08
  28  6.92694e-07
  29  7.51813e-06
  30  49.7196
  31  0.196357
  32  0.213824
Done.

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

Extracting fit parameters...

4FGL J1503.5+4759
   Spectrum: PowerLaw
292    Prefactor:  1.656e+00  3.578e+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.038e+00  2.138e-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.049e-01  1.964e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/955377/likelihoodResults_610761601_611020801_4FGL_J1503.5+4759_daily_bin1433.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) = 5990.79716237
delta logL = 0.000196127562049

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5990.79700833
delta logL = 0.000350166694261

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.5742       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2568       1.0000          .0000       10.000    
     3 'Normalizat'    .90454       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0384       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=   5990.797     FROM MIGRAD    STATUS=CONVERGED     44 CALLS      186 TOTAL
                     EDM=   .68E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.5743        360.95        .84676E-02    .44080E-03
   2  Index         2.2570        8.2139        .24494E-01    .42541E-04
   3  Normalizat    .90455        .89236E-01    .44960E-01    .11879E-04
   4  Prefactor     1.0384        .10709        .40641E-01    .82134E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.57429
  Index      = 2.25703
  Normalizat = 0.904552
  Prefactor  = 1.0384
 **********
 **   18 **HESSE 
 **********

 FCN=   5990.797     FROM HESSE     STATUS=OK            31 CALLS      217 TOTAL
                     EDM=   .44E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.5743        4.7258        .20475E-03   -1.5457    
   2  Index         2.2570        1.3909        .97978E-03   -.58068    
   3  Normalizat    .90455        .18339        .22453E-03   -.96300    
   4  Prefactor     1.0384        .21055        .24101E-03   -.91460    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.44404e-11
Minuit parameter uncertainties:
  1  4.72693
  2  1.41788
  3  0.183512
  4  0.210715
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/955377': 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) = 5990.79700831
delta logL = 0.000350192782207

Extracting fit parameters...

4FGL J1503.5+4759
   Spectrum: PowerLaw
292    Prefactor:  1.574e+00  4.727e+00  1.000e-04  1.000e+04 ( 1.000e-13)
293        Index:  2.257e+00  1.418e+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:  1.038e+00  2.107e-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.046e-01  1.835e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.29
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/955377/cmap_HighResolution_610761601_611020801_4FGL_J1503.5+4759_daily_bin1433.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.46e-03', job_status='DONE', photon_flux_upper_limit='5.85e-08', time_completed='2021-09-10 19:08:12.948635', job_id='955377', GAL2='1.04', fit_tolerance='1e-08', EG2='0.90', EG='0.90', time_epoch_completed='1631326092.95', return_code2='0', ts='0.29', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='3.50e-04', ts2='0.29', photon_index_error='0.00', photon_index='2.22' WHERE bin_id='1433' AND source_name='4FGL J1503.5+4759' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 19:08:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0055>
Subject: Job 955377: <4FGL_J1503.5+4759_daily_bin1433> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1503.5+4759_daily_bin1433 225.895 47.9959 610761601 611020801 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 :                                   966.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             350.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   986 sec.
    Turnaround time :                            988 sec.

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

