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


Performing analysis on: 4FGL_J1503.5+4759_daily_bin1082
RA = 225.895, Dec = 47.9959
tmin = 519782401, tmax = 520041601
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='953650', job_status='RUN', time_executed='2021-09-10 18:48:42.005132', time_epoch_executed='1631324922.01' WHERE source_name='4FGL J1503.5+4759' and cadence='daily' and bin_id='1082'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/953650

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/953650/ft1_4FGL_J1503.5+4759_daily_bin1082.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/953650/ft2_4FGL_J1503.5+4759_daily_bin1082.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/953650/ft1_4FGL_J1503.5+4759_daily_bin1082.fits outfile=/scratch/kocevski/953650/ft1_filteredMKT_4FGL_J1503.5+4759_daily_bin1082.fits ra=225.895 dec=47.9959 rad=12.0 tmin=519782401.0 tmax=520041601.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 2.71
user 2.48
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/953650/ft1_filtered_4FGL_J1503.5+4759_daily_bin1082.fits" evtable="EVENTS" scfile=/scratch/kocevski/953650/ft2_4FGL_J1503.5+4759_daily_bin1082.fits sctable="SC_DATA" outfile=/scratch/kocevski/953650/ltcube_519782401_520041601_4FGL_J1503.5+4759_daily_bin1082.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/953650/ft2_4FGL_J1503.5+4759_daily_bin1082.fits
.....................!
real 9.14
user 8.83
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/953650/ft1_filtered_4FGL_J1503.5+4759_daily_bin1082.fits evtable="EVENTS" scfile=/scratch/kocevski/953650/ft2_4FGL_J1503.5+4759_daily_bin1082.fits sctable="SC_DATA" expcube=/scratch/kocevski/953650/ltcube_519782401_520041601_4FGL_J1503.5+4759_daily_bin1082.fits outfile=/scratch/kocevski/953650/expmap_519782401_520041601_4FGL_J1503.5+4759_daily_bin1082.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/953650/ltcube_519782401_520041601_4FGL_J1503.5+4759_daily_bin1082.fits
.....................!
real 145.29
user 140.68
sys 4.34

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/953650/ft1_filtered_4FGL_J1503.5+4759_daily_bin1082.fits scfile=/scratch/kocevski/953650/ft2_4FGL_J1503.5+4759_daily_bin1082.fits outfile=/scratch/kocevski/953650/cmap_519782401_520041601_4FGL_J1503.5+4759_daily_bin1082.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.45
user 0.30
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/953650/ft1_filtered_4FGL_J1503.5+4759_daily_bin1082.fits scfile=/scratch/kocevski/953650/ft2_4FGL_J1503.5+4759_daily_bin1082.fits outfile=/scratch/kocevski/953650/cmap_HighResolution_519782401_520041601_4FGL_J1503.5+4759_daily_bin1082.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.45
user 0.29
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    41.430       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10108E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    13.329       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.2389       1.0000         .10000E-03   10000.    
     6 'Prefactor '    14.815       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    29.392       1.0000         .10000E-03   10000.    
     9 'Prefactor '    19.345       1.0000         .10000E-03   10000.    
    10 'Prefactor '    62.732       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.922       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.1815       1.0000         .10000E-03   10000.    
    17 'Prefactor '    10.166       1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.0720       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11080E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.2291       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    2.5483       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .57989E-02   1.0000         .10000E-03   10000.    
    27 'norm      '    20.265       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    8.3714       1.0000         .10000E-03   10000.    
    30 'Prefactor '    30.575       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .55634       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.1028       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=   5053.773     FROM MIGRAD    STATUS=CONVERGED    839 CALLS     4374 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     41.448        59.095        .55736E-09    .12035E-04
   2  Prefactor     .10000E-03    73.691        .23282E-05** at limit **
   3  Prefactor     .10000E-03    2.7541        .24198E-06** at limit **
   4  Prefactor     13.334        20.784        .17014E-06   -.12744E-04
   5  Prefactor     4.2389        3.7189        .84287E-07   -.17599E-04
   6  Prefactor     14.819        18.489        .47656E-07    .90647E-06
   7  Prefactor     .10000E-03    30.788       -.77879E-06** at limit **
   8  Prefactor     29.389        24.614       -.22787E-06    .18246E-04
   9  Prefactor     19.407        58.808        .33648E-06    .32931E-04
  10  Prefactor     62.726        32.551        .46680E-07   -.24902E-05
  11  Prefactor     .10000E-03    82.168       -.12538E-05** at limit **
  12  norm          .10000E-03    4.5704       -.98866E-07** at limit **
  13  Prefactor     .10000E-03    28.518       -.45329E-07** at limit **
  14  Prefactor     10.922        10.671        .58167E-07   -.11625E-04
  15  Prefactor     .10000E-03    3.7691        .42269E-07** at limit **
  16  norm          2.1815        1.3369        .19411E-07    .32083E-06
  17  Prefactor     10.166        7.7114        .92771E-06   -.23230E-03
  18  Prefactor     7.0733        9.5664        .14691E-06    .58603E-05
  19  Prefactor     .10000E-03    4.3268       -.15311E-06** at limit **
  20  norm          .10000E-03    .48635       -.10881E-06** at limit **
  21  Prefactor     .10000E-03    7.7350       -.43502E-06** at limit **
  22  norm          1.2270        2.5324        .41675E-06    .19722E-03
  23  Prefactor     .10000E-03    4.8992       -.15646E-06** at limit **
  24  Prefactor     .10000E-03    64.912        .10185E-07** at limit **
  25  Prefactor     2.5162        21.762        .33062E-05    .13373E-03
  26  Prefactor     .10003E-03    7.9494       -.15241E-05** at limit **
  27  norm          20.270        20.390        .66689E-07    .16189E-04
  28  Prefactor     .10000E-03    5.0642       -.21842E-07** at limit **
  29  Prefactor     8.3718        9.8832        .82760E-07   -.88967E-05
  30  Prefactor     30.573        32.468        .23528E-07   -.44214E-06
  31  Normalizat    .55609        .17691       -.21604E-07    .17416E-03
  32  Prefactor     1.1030        .18590       -.15133E-06    .16898E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 41.4484
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.3339
  Prefactor  = 4.23893
  Prefactor  = 14.8191
  Prefactor  = 0.0001
  Prefactor  = 29.3895
  Prefactor  = 19.4073
  Prefactor  = 62.7265
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.9221
  Prefactor  = 0.0001
  norm       = 2.18151
  Prefactor  = 10.1665
  Prefactor  = 7.07331
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.227
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.51622
  Prefactor  = 0.000100029
  norm       = 20.2701
  Prefactor  = 0.0001
  Prefactor  = 8.3718
  Prefactor  = 30.5729
  Normalizat = 0.556094
  Prefactor  = 1.10298
 **********
 **   18 **HESSE 
 **********

 FCN=   5053.773     FROM HESSE     STATUS=OK           661 CALLS     5035 TOTAL
                     EDM=   .75E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     41.448        58.950        .62278E-04   -1.4419    
   2  Prefactor     .10000E-03    73.657        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.7692        .11495E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     13.334        20.917        .10971E-03   -1.4977    
   5  Prefactor     4.2389        3.6965        .10591E-03   -1.5296    
   6  Prefactor     14.819        18.485        .10406E-03   -1.4938    
   7  Prefactor     .10000E-03    31.062        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     29.389        24.574        .73901E-04   -1.4623    
   9  Prefactor     19.407        58.691        .91064E-04   -1.4827    
  10  Prefactor     62.726        32.625        .50664E-04   -1.4122    
  11  Prefactor     .10000E-03    83.286        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    4.6225        .14841E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    28.553        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     10.922        10.663        .12123E-03   -1.5047    
  15  Prefactor     .10000E-03    3.7722        .13478E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.1815        1.3365        .62292E-04   -1.5413    
  17  Prefactor     10.166        7.4648        .62836E-03   -1.5070    
  18  Prefactor     7.0733        9.5161        .15085E-03   -1.5176    
  19  Prefactor     .10000E-03    11.334        .28456E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    .50045        .96994E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    7.8930        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.2270        2.4697        .15580E-03   -1.5486    
  23  Prefactor     .10000E-03    4.9292        .15349E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    65.101        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     2.5162        20.592        .25579E-03   -1.5391    
  26  Prefactor     .10003E-03    54.502        .33067E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          20.270        20.383        .88973E-04   -1.4807    
  28  Prefactor     .10000E-03    5.0654        .15625E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     8.3718        9.8754        .13856E-03   -1.5129    
  30  Prefactor     30.573        32.468        .72460E-04   -1.4602    
  31  Normalizat    .55609        .20542        .26056E-03   -1.0988    
  32  Prefactor     1.1030        .21857        .21797E-03   -.89371    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.45214e-10
Minuit parameter uncertainties:
  1  59.0328
  2  0.000319341
  3  8.00976e-06
  4  20.9283
  5  3.69667
  6  18.4923
  7  2.08159e-05
  8  24.5822
  9  58.8663
  10  32.6346
  11  0.000123788
  12  3.31407e-07
  13  4.5196e-05
  14  10.6652
  15  1.26868e-06
  16  1.33654
  17  7.46545
  18  9.51815
  19  0.000111759
  20  2.49207e-06
  21  1.96409e-05
  22  2.46991
  23  6.3426e-06
  24  8.37965e-05
  25  14.4029
  26  0.00252028
  27  20.3904
  28  1.02704e-07
  29  9.87728
  30  32.4866
  31  0.205705
  32  0.218751
Done.

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

Extracting fit parameters...

4FGL J1503.5+4759
   Spectrum: PowerLaw
292    Prefactor:  1.000e-04  1.118e-04  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.103e+00  2.188e-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:  5.561e-01  2.057e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/953650/likelihoodResults_519782401_520041601_4FGL_J1503.5+4759_daily_bin1082.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) = 5053.77295976
delta logL = -0.000418717974753

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5053.77254103
delta logL = 7.15590431355e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2289       1.0000          .0000       10.000    
     3 'Normalizat'    .55609       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1030       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=   5053.773     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      233 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .10249        .45594E-01** at limit **
   2  Index         2.2365        6.2227        .50000       -.56441E-05
   3  Normalizat    .55609        .59819E-03    .58899E-01   -.81592E-04
   4  Prefactor     1.1030        .69028E-03    .37475E-01   -.11040E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.23654
  Normalizat = 0.556093
  Prefactor  = 1.10298
 **********
 **   18 **HESSE 
 **********

 FCN=   5053.773     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      266 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    17.653        .28304E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2365        6.1120        .50000       -.58559    
   3  Normalizat    .55609        .47419E-02    .26056E-03   -1.0988    
   4  Prefactor     1.1030        .54802E-02    .21797E-03   -.89371    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.21694e-08
Minuit parameter uncertainties:
  1  2.8381e-05
  2  82.3549
  3  0.00474193
  4  0.00548024
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/953650': 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) = 5053.77254102
delta logL = 2.25718395086e-08

Extracting fit parameters...

4FGL J1503.5+4759
   Spectrum: PowerLaw
292    Prefactor:  1.000e-04  2.838e-05  1.000e-04  1.000e+04 ( 1.000e-13)
293        Index:  2.237e+00  8.235e+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.103e+00  5.480e-03  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:  5.561e-01  4.742e-03  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/953650/cmap_HighResolution_519782401_520041601_4FGL_J1503.5+4759_daily_bin1082.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.56e-03', job_status='DONE', photon_flux_upper_limit='5.97e-08', time_completed='2021-09-10 19:00:18.021272', job_id='953650', GAL2='1.10', fit_tolerance='1e-08', EG2='0.56', EG='0.56', time_epoch_completed='1631325618.02', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.10', dlogl='2.26e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.22' WHERE bin_id='1082' AND source_name='4FGL J1503.5+4759' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 19:00:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0033>
Subject: Job 953650: <4FGL_J1503.5+4759_daily_bin1082> in cluster <slac> Done

Job <4FGL_J1503.5+4759_daily_bin1082> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Sep 10 18:46:27 2021
Job was executed on host(s) <bullet0033>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 18:46:29 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:46:29 2021
Terminated at Fri Sep 10 19:00:18 2021
Results reported at Fri Sep 10 19:00:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1503.5+4759_daily_bin1082 225.895 47.9959 519782401 520041601 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 :                                   679.09 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             303.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   829 sec.
    Turnaround time :                            831 sec.

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

