/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 117 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 = 7487
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1503.5+4759_daily_bin37
RA = 225.895, Dec = 47.9959
tmin = 248918401, tmax = 249177601
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='948010', job_status='RUN', time_executed='2021-09-10 18:28:20.109323', time_epoch_executed='1631323700.11' WHERE source_name='4FGL J1503.5+4759' and cadence='daily' and bin_id='37'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/948010

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/948010/ft1_4FGL_J1503.5+4759_daily_bin37.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/948010/ft2_4FGL_J1503.5+4759_daily_bin37.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/948010/ft1_4FGL_J1503.5+4759_daily_bin37.fits outfile=/scratch/kocevski/948010/ft1_filteredMKT_4FGL_J1503.5+4759_daily_bin37.fits ra=225.895 dec=47.9959 rad=12.0 tmin=248918401.0 tmax=249177601.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 1.95
user 1.76
sys 0.17

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/948010/ft1_filtered_4FGL_J1503.5+4759_daily_bin37.fits" evtable="EVENTS" scfile=/scratch/kocevski/948010/ft2_4FGL_J1503.5+4759_daily_bin37.fits sctable="SC_DATA" outfile=/scratch/kocevski/948010/ltcube_248918401_249177601_4FGL_J1503.5+4759_daily_bin37.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/948010/ft2_4FGL_J1503.5+4759_daily_bin37.fits
.....................!
real 12.70
user 12.34
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/948010/ft1_filtered_4FGL_J1503.5+4759_daily_bin37.fits evtable="EVENTS" scfile=/scratch/kocevski/948010/ft2_4FGL_J1503.5+4759_daily_bin37.fits sctable="SC_DATA" expcube=/scratch/kocevski/948010/ltcube_248918401_249177601_4FGL_J1503.5+4759_daily_bin37.fits outfile=/scratch/kocevski/948010/expmap_248918401_249177601_4FGL_J1503.5+4759_daily_bin37.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/948010/ltcube_248918401_249177601_4FGL_J1503.5+4759_daily_bin37.fits
.....................!
real 189.87
user 185.17
sys 4.35

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/948010/ft1_filtered_4FGL_J1503.5+4759_daily_bin37.fits scfile=/scratch/kocevski/948010/ft2_4FGL_J1503.5+4759_daily_bin37.fits outfile=/scratch/kocevski/948010/cmap_248918401_249177601_4FGL_J1503.5+4759_daily_bin37.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/948010/ft1_filtered_4FGL_J1503.5+4759_daily_bin37.fits scfile=/scratch/kocevski/948010/ft2_4FGL_J1503.5+4759_daily_bin37.fits outfile=/scratch/kocevski/948010/cmap_HighResolution_248918401_249177601_4FGL_J1503.5+4759_daily_bin37.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.53
user 0.36
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    55.375       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.2249       1.0000         .10000E-03   10000.    
     4 'Prefactor '    15.018       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    12.250       1.0000         .10000E-03   10000.    
     9 'Prefactor '    47.394       1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.4961       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10145E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    8.0376       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .17677E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .80058       1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.3909       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .51980E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .34357E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .14388       1.0000         .10000E-03   10000.    
    21 'Prefactor '    14.206       1.0000         .10000E-03   10000.    
    22 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    24.893       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    19.624       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.2542       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .50820       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=   4103.933     FROM MIGRAD    STATUS=CONVERGED    894 CALLS     4411 TOTAL
                     EDM=   .53E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    41.957       -.37670E-06** at limit **
   2  Prefactor     55.369        50.932        .57832E-07   -.81479E-04
   3  Prefactor     6.2251        5.8509        .82971E-08    .41911E-05
   4  Prefactor     14.970        31.654        .21194E-05    .59201E-04
   5  Prefactor     .10000E-03    2.2906        .20211E-06** at limit **
   6  Prefactor     .10000E-03    10.491        .23879E-06** at limit **
   7  Prefactor     .10000E-03    24.433       -.35681E-07** at limit **
   8  Prefactor     12.230        30.581        .71848E-06   -.20928E-05
   9  Prefactor     47.616        79.035        .10017E-05   -.45944E-06
  10  Prefactor     7.4639        42.202        .30012E-05    .48754E-04
  11  Prefactor     .10000E-03    131.82       -.10299E-05** at limit **
  12  norm          8.0333        10.143        .42890E-06    .16366E-04
  13  Prefactor     .10000E-03    32.591        .39109E-06** at limit **
  14  Prefactor     .10000E-03    84.372        .66377E-05** at limit **
  15  Prefactor     .10000E-03    11.054       -.31363E-07** at limit **
  16  norm          .80222        1.4378        .52366E-06    .10649E-02
  17  Prefactor     8.3952        7.7660        .44545E-07   -.47433E-04
  18  Prefactor     .10000E-03    13.314       -.10965E-05** at limit **
  19  Prefactor     .10003E-03    5.6995        .15443E-05** at limit **
  20  norm          .13827        1.3496        .27757E-06   -.27903E-03
  21  Prefactor     14.189        11.961        .62173E-06    .21709E-03
  22  norm          .10000E-03    1.1502       -.57670E-07** at limit **
  23  Prefactor     .10000E-03    4.1292       -.16601E-06** at limit **
  24  Prefactor     .10000E-03    130.19       -.10057E-05** at limit **
  25  Prefactor     .10000E-03    10.980       -.15556E-06** at limit **
  26  Prefactor     .10000E-03    4.7866       -.15635E-06** at limit **
  27  norm          24.880        25.073        .28051E-06    .22891E-05
  28  Prefactor     .10000E-03    18.608       -.34621E-06** at limit **
  29  Prefactor     19.618        14.507        .22348E-06    .37084E-05
  30  Prefactor     .10000E-03    22.287       -.11395E-06** at limit **
  31  Normalizat    1.2549        .24763       -.53430E-05    .11994E-05
  32  Prefactor     .50764        .23679        .78979E-05   -.44844E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 55.3689
  Prefactor  = 6.22513
  Prefactor  = 14.9699
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.2302
  Prefactor  = 47.616
  Prefactor  = 7.46387
  Prefactor  = 0.000100001
  norm       = 8.0333
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  norm       = 0.802222
  Prefactor  = 8.39517
  Prefactor  = 0.000100001
  Prefactor  = 0.000100025
  norm       = 0.138272
  Prefactor  = 14.1888
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 24.8797
  Prefactor  = 0.0001
  Prefactor  = 19.618
  Prefactor  = 0.0001
  Normalizat = 1.25495
  Prefactor  = 0.507642
 **********
 **   18 **HESSE 
 **********

 FCN=   4103.933     FROM HESSE     STATUS=OK           657 CALLS     5068 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    42.044        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     55.369        51.149        .53905E-04   -1.4218    
   3  Prefactor     6.2251        5.8400        .14234E-03   -1.5209    
   4  Prefactor     14.970        31.666        .10335E-03   -1.4934    
   5  Prefactor     .10000E-03    2.3215        .18816E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    10.504        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    24.491        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     12.230        30.352        .11445E-03   -1.5008    
   9  Prefactor     47.616        78.323        .58245E-04   -1.4327    
  10  Prefactor     7.4639        42.294        .14648E-03   -1.5161    
  11  Prefactor     .10000E-03    133.14        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          8.0333        10.128        .14142E-03   -1.5141    
  13  Prefactor     .10000E-03    32.636        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    86.541        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    11.103        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .80222        1.2880        .10333E-02   -1.5529    
  17  Prefactor     8.3952        8.0957        .13839E-03   -1.5128    
  18  Prefactor     .10000E-03    45.634        .41408E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10003E-03    16.040        .26480E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .13827        6.4278        .13026E-02   -1.5634    
  21  Prefactor     14.189        11.188        .10627E-03   -1.4954    
  22  norm          .10000E-03    1.1523        .67091E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    4.1488        .12710E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    130.60        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    11.010        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    4.7992        .13685E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          24.880        25.062        .80287E-04   -1.4710    
  28  Prefactor     .10000E-03    18.667        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     19.618        14.507        .90415E-04   -1.4822    
  30  Prefactor     .10000E-03    22.291        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.2549        .25511        .19817E-03   -.84921    
  32  Prefactor     .50764        .23971        .31307E-03   -1.1163    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.13517e-09
Minuit parameter uncertainties:
  1  7.76386e-05
  2  51.1897
  3  5.84055
  4  31.7014
  5  5.10149e-06
  6  1.80781e-05
  7  1.13934e-05
  8  30.3898
  9  78.4926
  10  35.5727
  11  0.0005525
  12  10.1301
  13  4.56251e-05
  14  0.00112667
  15  5.05113e-05
  16  1.28803
  17  8.09674
  18  0.000494363
  19  0.00126922
  20  1.88504
  21  11.1898
  22  1.76878e-06
  23  5.32676e-06
  24  0.000633839
  25  1.21665e-05
  26  4.32134e-06
  27  25.0729
  28  2.97276e-05
  29  14.51
  30  1.17529e-05
  31  0.255367
  32  0.240193
Done.

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

Extracting fit parameters...

4FGL J1503.5+4759
   Spectrum: PowerLaw
292    Prefactor:  1.000e-04  1.269e-03  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:  5.076e-01  2.402e-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.255e+00  2.554e-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: 8.36e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.38e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/948010/likelihoodResults_248918401_249177601_4FGL_J1503.5+4759_daily_bin37.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) = 4103.93367917
delta logL = -0.000296460121717

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4103.9333828
delta logL = -9.24319465412e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2048       1.0000          .0000       10.000    
     3 'Normalizat'    1.2550       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .50757       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=   4103.933     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      231 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .25382        .55350E-01** at limit **
   2  Index         2.1920        5.2637        .50000        .55816E-05
   3  Normalizat    1.2549        .93558E-03    .33663E-01    .79068E-04
   4  Prefactor     .50764        .98326E-03    .70714E-01    .74575E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.19205
  Normalizat = 1.25495
  Prefactor  = 0.507644
 **********
 **   18 **HESSE 
 **********

 FCN=   4103.933     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      264 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    24.392        .31472E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1920        5.2091        .50000       -.59631    
   3  Normalizat    1.2549        .57294E-02    .19817E-03   -.84921    
   4  Prefactor     .50764        .60077E-02    .31306E-03   -1.1163    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.0284e-09
Minuit parameter uncertainties:
  1  0.000237728
  2  52.4226
  3  0.0057294
  4  0.00600766
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/948010': 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) = 4103.93338266
delta logL = 4.74237822345e-08

Extracting fit parameters...

4FGL J1503.5+4759
   Spectrum: PowerLaw
292    Prefactor:  1.000e-04  2.377e-04  1.000e-04  1.000e+04 ( 1.000e-13)
293        Index:  2.192e+00  5.242e+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:  5.076e-01  6.008e-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:  1.255e+00  5.729e-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/948010/cmap_HighResolution_248918401_249177601_4FGL_J1503.5+4759_daily_bin37.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.38e-03', job_status='DONE', photon_flux_upper_limit='8.36e-08', time_completed='2021-09-10 18:40:40.259326', job_id='948010', GAL2='0.51', fit_tolerance='1e-08', EG2='1.25', EG='1.25', time_epoch_completed='1631324440.26', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.51', dlogl='4.74e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.22' WHERE bin_id='37' AND source_name='4FGL J1503.5+4759' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 18:40:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0240>
Subject: Job 948010: <4FGL_J1503.5+4759_daily_bin37> in cluster <slac> Done

Job <4FGL_J1503.5+4759_daily_bin37> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Sep 10 18:26:11 2021
Job was executed on host(s) <bullet0240>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 18:26:14 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:26:14 2021
Terminated at Fri Sep 10 18:40:41 2021
Results reported at Fri Sep 10 18:40:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1503.5+4759_daily_bin37 225.895 47.9959 248918401 249177601 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 :                                   739.00 sec.
    Max Memory :                                 1253 MB
    Average Memory :                             288.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   866 sec.
    Turnaround time :                            870 sec.

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

