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


Performing analysis on: 4FGL_J1503.5+4759_daily_bin905
RA = 225.895, Dec = 47.9959
tmin = 473904001, tmax = 474163201
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='953392', job_status='RUN', time_executed='2021-09-10 18:48:41.541969', time_epoch_executed='1631324921.54' WHERE source_name='4FGL J1503.5+4759' and cadence='daily' and bin_id='905'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/953392

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/953392/ft1_4FGL_J1503.5+4759_daily_bin905.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/953392/ft2_4FGL_J1503.5+4759_daily_bin905.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/953392/ft1_4FGL_J1503.5+4759_daily_bin905.fits outfile=/scratch/kocevski/953392/ft1_filteredMKT_4FGL_J1503.5+4759_daily_bin905.fits ra=225.895 dec=47.9959 rad=12.0 tmin=473904001.0 tmax=474163201.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.13
user 4.84
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/953392/ft1_filtered_4FGL_J1503.5+4759_daily_bin905.fits" evtable="EVENTS" scfile=/scratch/kocevski/953392/ft2_4FGL_J1503.5+4759_daily_bin905.fits sctable="SC_DATA" outfile=/scratch/kocevski/953392/ltcube_473904001_474163201_4FGL_J1503.5+4759_daily_bin905.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/953392/ft2_4FGL_J1503.5+4759_daily_bin905.fits
.....................!
real 12.60
user 12.07
sys 0.48

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/953392/ft1_filtered_4FGL_J1503.5+4759_daily_bin905.fits evtable="EVENTS" scfile=/scratch/kocevski/953392/ft2_4FGL_J1503.5+4759_daily_bin905.fits sctable="SC_DATA" expcube=/scratch/kocevski/953392/ltcube_473904001_474163201_4FGL_J1503.5+4759_daily_bin905.fits outfile=/scratch/kocevski/953392/expmap_473904001_474163201_4FGL_J1503.5+4759_daily_bin905.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/953392/ltcube_473904001_474163201_4FGL_J1503.5+4759_daily_bin905.fits
.....................!
real 190.80
user 185.94
sys 4.46

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/953392/ft1_filtered_4FGL_J1503.5+4759_daily_bin905.fits scfile=/scratch/kocevski/953392/ft2_4FGL_J1503.5+4759_daily_bin905.fits outfile=/scratch/kocevski/953392/cmap_473904001_474163201_4FGL_J1503.5+4759_daily_bin905.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.35
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/953392/ft1_filtered_4FGL_J1503.5+4759_daily_bin905.fits scfile=/scratch/kocevski/953392/ft2_4FGL_J1503.5+4759_daily_bin905.fits outfile=/scratch/kocevski/953392/cmap_HighResolution_473904001_474163201_4FGL_J1503.5+4759_daily_bin905.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.55
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10576E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10114E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.303       1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.906       1.0000         .10000E-03   10000.    
     7 'Prefactor '    37.926       1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.8536       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    57.276       1.0000         .10000E-03   10000.    
    12 'norm      '    24.911       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    13.367       1.0000         .10000E-03   10000.    
    15 'Prefactor '    10.700       1.0000         .10000E-03   10000.    
    16 'norm      '    2.1752       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.4762       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    4.7101       1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.1385       1.0000         .10000E-03   10000.    
    22 'norm      '    .10045E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10139E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    21.227       1.0000         .10000E-03   10000.    
    26 'Prefactor '    12.231       1.0000         .10000E-03   10000.    
    27 'norm      '    .63842E-02   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    6.1518       1.0000         .10000E-03   10000.    
    30 'Prefactor '    35.460       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .67192       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .91398       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=   3939.590     FROM MIGRAD    STATUS=CONVERGED    841 CALLS     4374 TOTAL
                     EDM=   .45E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    91.045       -.15669E-05** at limit **
   2  Prefactor     .10000E-03    20.847        .88419E-06** at limit **
   3  Prefactor     .10000E-03    8.1248       -.23376E-06** at limit **
   4  Prefactor     .10000E-03    30.965        .19861E-05** at limit **
   5  Prefactor     11.301        5.6557        .10109E-05    .35823E-03
   6  Prefactor     11.904        25.162        .19968E-06   -.14058E-04
   7  Prefactor     37.920        40.982        .20273E-05    .11270E-03
   8  Prefactor     9.9117        47.536       -.13924E-04   -.12445E-03
   9  Prefactor     .10000E-03    26.092       -.27162E-05** at limit **
  10  Prefactor     .10000E-03    11.005       -.12066E-06** at limit **
  11  Prefactor     57.283        52.388       -.64927E-06    .12853E-04
  12  norm          24.911        11.318       -.10309E-06   -.25820E-04
  13  Prefactor     .10000E-03    100.43        .75110E-06** at limit **
  14  Prefactor     13.365        16.876        .35148E-06    .38995E-04
  15  Prefactor     10.700        15.765        .64603E-06    .56701E-06
  16  norm          2.1750        1.9930        .98070E-07    .23697E-03
  17  Prefactor     2.4743        7.2991        .59367E-05   -.20779E-03
  18  Prefactor     .10000E-03    3.5522        .11041E-06** at limit **
  19  Prefactor     .10000E-03    2.6328       -.42642E-07** at limit **
  20  norm          4.7108        2.2733       -.34597E-06    .57994E-04
  21  Prefactor     2.1381        6.0683        .50357E-05   -.18322E-03
  22  norm          .10000E-03    3.4453       -.11836E-06** at limit **
  23  Prefactor     .10000E-03    5.3098       -.20901E-07** at limit **
  24  Prefactor     .10000E-03    70.930       -.62898E-06** at limit **
  25  Prefactor     21.230        26.110        .12667E-06    .34988E-05
  26  Prefactor     12.229        14.897        .22650E-06    .17162E-04
  27  norm          .10005E-03    18.762        .34386E-05** at limit **
  28  Prefactor     .10000E-03    5.6624       -.37552E-07** at limit **
  29  Prefactor     6.1517        10.336        .10002E-05   -.37691E-04
  30  Prefactor     35.465        63.045       -.43810E-06   -.71708E-05
  31  Normalizat    .67174        .19599       -.24414E-05   -.88896E-05
  32  Prefactor     .91420        .20830        .14941E-05    .50985E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.3011
  Prefactor  = 11.9043
  Prefactor  = 37.9202
  Prefactor  = 9.91174
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 57.2826
  norm       = 24.9108
  Prefactor  = 0.0001
  Prefactor  = 13.3651
  Prefactor  = 10.7002
  norm       = 2.175
  Prefactor  = 2.47435
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.71077
  Prefactor  = 2.13813
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.2296
  Prefactor  = 12.2289
  norm       = 0.000100046
  Prefactor  = 0.0001
  Prefactor  = 6.15172
  Prefactor  = 35.4646
  Normalizat = 0.671737
  Prefactor  = 0.914204
 **********
 **   18 **HESSE 
 **********

 FCN=   3939.590     FROM HESSE     STATUS=OK           659 CALLS     5033 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    91.284        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    20.862        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    8.4019        .34923E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    31.220        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     11.301        5.6807        .86833E-04   -1.5035    
   6  Prefactor     11.904        25.185        .11610E-03   -1.5018    
   7  Prefactor     37.920        41.098        .65081E-04   -1.4476    
   8  Prefactor     9.9117        48.391        .12766E-03   -1.5078    
   9  Prefactor     .10000E-03    26.054        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    11.014        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     57.283        52.380        .53007E-04   -1.4193    
  12  norm          24.911        11.316        .80260E-04   -1.4709    
  13  Prefactor     .10000E-03    101.31        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     13.365        16.855        .10956E-03   -1.4977    
  15  Prefactor     10.700        15.724        .61243E-03   -1.5054    
  16  norm          2.1750        1.9822        .79250E-04   -1.5413    
  17  Prefactor     2.4743        7.3362        .12991E-02   -1.5393    
  18  Prefactor     .10000E-03    3.5547        .11553E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    2.6448        .99427E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          4.7108        2.2744        .60130E-04   -1.5274    
  21  Prefactor     2.1381        6.0732        .12543E-02   -1.5416    
  22  norm          .10000E-03    3.5278        .22695E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    5.3238        .14094E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    70.996        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     21.230        26.041        .86937E-04   -1.4786    
  26  Prefactor     12.229        14.821        .11454E-03   -1.5008    
  27  norm          .10005E-03    89.986        .51401E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    5.6633        .14588E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     6.1517        10.328        .80931E-03   -1.5212    
  30  Prefactor     35.465        63.050        .67299E-04   -1.4516    
  31  Normalizat    .67174        .22866        .24377E-03   -1.0502    
  32  Prefactor     .91420        .24445        .23666E-03   -.95647    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.20369e-09
Minuit parameter uncertainties:
  1  0.000338545
  2  7.27302e-05
  3  3.56471e-05
  4  3.10907e-05
  5  5.681
  6  25.2072
  7  41.1283
  8  43.8584
  9  0.000172591
  10  1.54888e-05
  11  52.4218
  12  11.3172
  13  5.67828e-05
  14  16.8612
  15  15.73
  16  1.98228
  17  7.33888
  18  8.55478e-06
  19  4.11846e-06
  20  2.2744
  21  6.07495
  22  1.2666e-05
  23  4.52679e-06
  24  0.000129099
  25  26.0553
  26  14.8259
  27  0.00407407
  28  3.54991e-06
  29  10.3313
  30  63.1684
  31  0.228984
  32  0.244739
Done.

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

Extracting fit parameters...

4FGL J1503.5+4759
   Spectrum: PowerLaw
292    Prefactor:  1.000e-04  4.118e-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:  9.142e-01  2.447e-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.717e-01  2.290e-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.55e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.24e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/953392/likelihoodResults_473904001_474163201_4FGL_J1503.5+4759_daily_bin905.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) = 3939.5914231
delta logL = -0.00178647188022

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3939.58963874
delta logL = -2.11819451579e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11564E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1890       1.0000          .0000       10.000    
     3 'Normalizat'    .67167       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91429       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=   3939.590     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      234 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10277E-03    1.7495        .10374E-01** at limit **
   2  Index         2.1082        8.1492        .50000        .82225E-04
   3  Normalizat    .67174        .33496E-02    .24377E-03   -.43722E-04
   4  Prefactor     .91420        .37729E-02    .23665E-03   -.27719E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102768
  Index      = 2.10821
  Normalizat = 0.671738
  Prefactor  = 0.914203
 **********
 **   18 **HESSE 
 **********

 FCN=   3939.590     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      263 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10277E-03    37.542        .10684E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1082        5.3690        .50000       -.61672    
   3  Normalizat    .67174        .15672E-01    .97508E-05   -1.0502    
   4  Prefactor     .91420        .17652E-01    .94662E-05   -.95647    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.11139e-07
Minuit parameter uncertainties:
  1  0.0204005
  2  180.198
  3  0.0156717
  4  0.0176517
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/953392': 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) = 3939.58963454
delta logL = 2.08334950003e-06

Extracting fit parameters...

4FGL J1503.5+4759
   Spectrum: PowerLaw
292    Prefactor:  1.028e-04  2.040e-02  1.000e-04  1.000e+04 ( 1.000e-13)
293        Index:  2.108e+00  1.802e+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:  9.142e-01  1.765e-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:  6.717e-01  1.567e-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/953392/cmap_HighResolution_473904001_474163201_4FGL_J1503.5+4759_daily_bin905.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.24e-03', job_status='DONE', photon_flux_upper_limit='5.55e-08', time_completed='2021-09-10 19:01:21.001832', job_id='953392', GAL2='0.91', fit_tolerance='1e-08', EG2='0.67', EG='0.67', time_epoch_completed='1631325681.0', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='2.08e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.22' WHERE bin_id='905' AND source_name='4FGL J1503.5+4759' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 19:01:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0040>
Subject: Job 953392: <4FGL_J1503.5+4759_daily_bin905> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1503.5+4759_daily_bin905 225.895 47.9959 473904001 474163201 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 :                                   752.00 sec.
    Max Memory :                                 1238 MB
    Average Memory :                             257.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   911 sec.
    Turnaround time :                            913 sec.

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

