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


Performing analysis on: 4FGL_J1503.5+4759_daily_bin568
RA = 225.895, Dec = 47.9959
tmin = 386553601, tmax = 386812801
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='950703', job_status='RUN', time_executed='2021-09-10 18:36:34.648531', time_epoch_executed='1631324194.65' WHERE source_name='4FGL J1503.5+4759' and cadence='daily' and bin_id='568'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/950703

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/950703/ft1_4FGL_J1503.5+4759_daily_bin568.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/950703/ft2_4FGL_J1503.5+4759_daily_bin568.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/950703/ft1_4FGL_J1503.5+4759_daily_bin568.fits outfile=/scratch/kocevski/950703/ft1_filteredMKT_4FGL_J1503.5+4759_daily_bin568.fits ra=225.895 dec=47.9959 rad=12.0 tmin=386553601.0 tmax=386812801.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 4.75
user 4.51
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/950703/ft1_filtered_4FGL_J1503.5+4759_daily_bin568.fits evtable="EVENTS" scfile=/scratch/kocevski/950703/ft2_4FGL_J1503.5+4759_daily_bin568.fits sctable="SC_DATA" expcube=/scratch/kocevski/950703/ltcube_386553601_386812801_4FGL_J1503.5+4759_daily_bin568.fits outfile=/scratch/kocevski/950703/expmap_386553601_386812801_4FGL_J1503.5+4759_daily_bin568.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/950703/ltcube_386553601_386812801_4FGL_J1503.5+4759_daily_bin568.fits
.....................!
real 190.73
user 185.76
sys 4.59

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/950703/ft1_filtered_4FGL_J1503.5+4759_daily_bin568.fits scfile=/scratch/kocevski/950703/ft2_4FGL_J1503.5+4759_daily_bin568.fits outfile=/scratch/kocevski/950703/cmap_386553601_386812801_4FGL_J1503.5+4759_daily_bin568.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.55
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/950703/ft1_filtered_4FGL_J1503.5+4759_daily_bin568.fits scfile=/scratch/kocevski/950703/ft2_4FGL_J1503.5+4759_daily_bin568.fits outfile=/scratch/kocevski/950703/cmap_HighResolution_386553601_386812801_4FGL_J1503.5+4759_daily_bin568.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.39
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    26.435       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.0355       1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.7165       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10118E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.745       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    23.364       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    28.564       1.0000         .10000E-03   10000.    
    12 'norm      '    1.8238       1.0000         .10000E-03   10000.    
    13 'Prefactor '    12.090       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.3973       1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.1527       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    15.010       1.0000         .10000E-03   10000.    
    22 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    12.331       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    7.7657       1.0000         .10000E-03   10000.    
    27 'norm      '    .14013E-01   1.0000         .10000E-03   10000.    
    28 'Prefactor '    5.3383       1.0000         .10000E-03   10000.    
    29 'Prefactor '    24.989       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .93966       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .94139       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=   5567.906     FROM MIGRAD    STATUS=CONVERGED    862 CALLS     4402 TOTAL
                     EDM=   .34E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    20.586       -.25287E-05** at limit **
   2  Prefactor     26.438        39.037       -.43109E-06   -.66717E-05
   3  Prefactor     2.0352        4.5854        .11444E-06   -.11297E-03
   4  Prefactor     6.7180        16.147        .34988E-05   -.15183E-03
   5  Prefactor     .10000E-03    2.1484       -.10456E-06** at limit **
   6  Prefactor     11.746        17.285        .17168E-07   -.11849E-04
   7  Prefactor     .10000E-03    23.669        .12860E-05** at limit **
   8  Prefactor     23.362        30.568        .42746E-06    .34167E-05
   9  Prefactor     .10000E-03    39.991       -.54170E-06** at limit **
  10  Prefactor     .10000E-03    11.864        .91332E-07** at limit **
  11  Prefactor     28.564        25.513        .56881E-07   -.99061E-05
  12  norm          1.8246        4.9472        .55454E-06   -.77582E-04
  13  Prefactor     12.077        34.635        .25045E-06    .69129E-05
  14  Prefactor     .10000E-03    5.5043       -.10484E-07** at limit **
  15  Prefactor     .10000E-03    7.9842        .49744E-07** at limit **
  16  norm          1.3972        1.2883        .35310E-07   -.79762E-05
  17  Prefactor     7.1526        6.7924        .11139E-05    .46466E-03
  18  Prefactor     .10000E-03    4.0268       -.45102E-07** at limit **
  19  Prefactor     .10000E-03    1.6178       -.81383E-08** at limit **
  20  norm          .10000E-03    .78777        .26675E-06** at limit **
  21  Prefactor     15.011        8.4875       -.22542E-06   -.25218E-03
  22  norm          .10000E-03    1.5549        .12711E-07** at limit **
  23  Prefactor     12.331        8.2185        .10181E-06    .20530E-04
  24  Prefactor     .10000E-03    20.250        .14557E-05** at limit **
  25  Prefactor     .10000E-03    7.3348       -.51975E-08** at limit **
  26  Prefactor     7.7655        9.4684        .14397E-06    .13889E-05
  27  norm          .10013E-03    14.089       -.29551E-06** at limit **
  28  Prefactor     5.3375        20.763        .35454E-06   -.76307E-05
  29  Prefactor     24.989        16.249        .74230E-07   -.28295E-04
  30  Prefactor     .10000E-03    95.098        .10202E-05** at limit **
  31  Normalizat    .93955        .18262       -.89369E-06   -.23577E-04
  32  Prefactor     .94155        .19342        .41653E-07   -.64928E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 26.4379
  Prefactor  = 2.03517
  Prefactor  = 6.71796
  Prefactor  = 0.0001
  Prefactor  = 11.7458
  Prefactor  = 0.0001
  Prefactor  = 23.3618
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 28.5636
  norm       = 1.82463
  Prefactor  = 12.077
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.39723
  Prefactor  = 7.15261
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 15.0105
  norm       = 0.0001
  Prefactor  = 12.3307
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.76549
  norm       = 0.000100129
  Prefactor  = 5.33753
  Prefactor  = 24.9891
  Prefactor  = 0.0001
  Normalizat = 0.939546
  Prefactor  = 0.941546
 **********
 **   18 **HESSE 
 **********

 FCN=   5567.906     FROM HESSE     STATUS=OK           673 CALLS     5075 TOTAL
                     EDM=   .85E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    21.157        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     26.438        38.953        .77916E-04   -1.4679    
   3  Prefactor     2.0352        4.5257        .22096E-03   -1.5423    
   4  Prefactor     6.7180        17.383        .77414E-03   -1.5190    
   5  Prefactor     .10000E-03    3.0012        .18575E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     11.746        17.306        .11689E-03   -1.5022    
   7  Prefactor     .10000E-03    23.967        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     23.362        27.302        .82870E-04   -1.4741    
   9  Prefactor     .10000E-03    40.076        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    11.890        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     28.564        25.510        .74962E-04   -1.4639    
  12  norm          1.8246        4.9374        .26439E-03   -1.5438    
  13  Prefactor     12.077        34.566        .11521E-03   -1.5013    
  14  Prefactor     .10000E-03    5.5121        .17096E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    8.0267        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.3972        1.2866        .78510E-04   -1.5472    
  17  Prefactor     7.1526        7.0236        .14999E-03   -1.5173    
  18  Prefactor     .10000E-03    4.0337        .14613E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    1.6217        .92678E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    1.1714        .12538E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     15.011        8.5914        .10338E-03   -1.4933    
  22  norm          .10000E-03    1.5696        .90689E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     12.331        8.1999        .11407E-03   -1.5006    
  24  Prefactor     .10000E-03    20.433        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    7.3469        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     7.7655        9.4551        .14390E-03   -1.5151    
  27  norm          .10013E-03    14.122        .90563E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     5.3375        20.773        .17394E-03   -1.5246    
  29  Prefactor     24.989        16.260        .80133E-04   -1.4708    
  30  Prefactor     .10000E-03    95.633        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .93955        .22176        .22673E-03   -.95084    
  32  Prefactor     .94155        .23406        .25530E-03   -.94704    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.49693e-10
Minuit parameter uncertainties:
  1  0.000346349
  2  38.9909
  3  4.52641
  4  17.3964
  5  1.47476e-05
  6  17.3134
  7  0.000204414
  8  27.3162
  9  9.30252e-05
  10  8.04962e-06
  11  25.5193
  12  4.93853
  13  34.6237
  14  6.22123e-07
  15  7.76586e-06
  16  1.28658
  17  7.0244
  18  6.32283e-06
  19  1.9683e-07
  20  4.64223e-05
  21  8.59215
  22  2.15082e-07
  23  8.20066
  24  0.000194412
  25  2.54175e-06
  26  9.45693
  27  0.00269864
  28  20.8016
  29  16.2633
  30  0.000330922
  31  0.221973
  32  0.234314
Done.

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

Extracting fit parameters...

4FGL J1503.5+4759
   Spectrum: PowerLaw
292    Prefactor:  1.000e-04  1.968e-07  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.415e-01  2.343e-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.395e-01  2.220e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/950703/likelihoodResults_386553601_386812801_4FGL_J1503.5+4759_daily_bin568.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) = 5567.90910973
delta logL = -0.00290122438855

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5567.90620949
delta logL = -9.8416057881e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10711E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1905       1.0000          .0000       10.000    
     3 'Normalizat'    .93952       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94159       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5567.906     FROM MIGRAD    STATUS=FAILED        87 CALLS      230 TOTAL
                     EDM=   .72E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10141E-03    19.149        .96232E-03** at limit **
   2  Index         2.1343        8.5257        .50000        .13261E-03
   3  Normalizat    .93954        .13293E-01    .22673E-03   -.16311E-03
   4  Prefactor     .94155        .15064E-01    .25530E-03   -.84608E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5567.906     FROM SIMPLEX   STATUS=PROGRESS     125 CALLS      355 TOTAL
                     EDM=   .48E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10005E-03    19.149        .15986E-03** at limit **
   2  Index         2.1195        8.5257        .50064E-02    .13261E-03
   3  Normalizat    .93950        .13293E-01    .22907E-04   -.16311E-03
   4  Prefactor     .94151        .15064E-01    .17039E-04   -.84608E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5567.906     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      415 TOTAL
                     EDM=   .60E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    31.878        .19246E-02** at limit **
   2  Index         1.5816        8.7751        .50000        .23851E-06
   3  Normalizat    .93956        .14574E-01    .90692E-05    .52925E-03
   4  Prefactor     .94153        .16515E-01    .10212E-04   -.51990E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.58161
  Normalizat = 0.93956
  Prefactor  = 0.94153
 **********
 **   18 **HESSE 
 **********

 FCN=   5567.906     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      444 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    144.62        .38493E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.5816        6.1909        .50000       -.75279    
   3  Normalizat    .93956        .32869E-01    .18138E-05   -.95084    
   4  Prefactor     .94153        .37244E-01    .20424E-05   -.94705    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.75593e-09
Minuit parameter uncertainties:
  1  0.000106162
  2  466.491
  3  0.0328699
  4  0.0372449
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/950703': 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) = 5567.90619762
delta logL = 1.08855074359e-05

Extracting fit parameters...

4FGL J1503.5+4759
   Spectrum: PowerLaw
292    Prefactor:  1.000e-04  1.062e-04  1.000e-04  1.000e+04 ( 1.000e-13)
293        Index:  1.582e+00  4.665e+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.415e-01  3.724e-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:  9.396e-01  3.287e-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/950703/cmap_HighResolution_386553601_386812801_4FGL_J1503.5+4759_daily_bin568.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.03e-03', job_status='DONE', photon_flux_upper_limit='3.97e-08', time_completed='2021-09-10 18:52:09.075612', job_id='950703', GAL2='0.94', fit_tolerance='1e-08', EG2='0.94', EG='0.94', time_epoch_completed='1631325129.08', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='1.09e-05', ts2='-0.00', photon_index_error='0.00', photon_index='2.22' WHERE bin_id='568' AND source_name='4FGL J1503.5+4759' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 18:52:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0279>
Subject: Job 950703: <4FGL_J1503.5+4759_daily_bin568> in cluster <slac> Done

Job <4FGL_J1503.5+4759_daily_bin568> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Sep 10 18:36:16 2021
Job was executed on host(s) <bullet0279>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 18:36:17 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:36:17 2021
Terminated at Fri Sep 10 18:52:09 2021
Results reported at Fri Sep 10 18:52:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1503.5+4759_daily_bin568 225.895 47.9959 386553601 386812801 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 :                                   929.30 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             331.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   952 sec.
    Turnaround time :                            953 sec.

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

