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


Performing analysis on: 4FGL_J1503.5+4759_daily_bin50
RA = 225.895, Dec = 47.9959
tmin = 252288001, tmax = 252547201
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='948029', job_status='RUN', time_executed='2021-09-10 18:26:23.042111', time_epoch_executed='1631323583.04' WHERE source_name='4FGL J1503.5+4759' and cadence='daily' and bin_id='50'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/948029

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/948029/ft1_4FGL_J1503.5+4759_daily_bin50.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/948029/ft2_4FGL_J1503.5+4759_daily_bin50.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/948029/ft1_4FGL_J1503.5+4759_daily_bin50.fits outfile=/scratch/kocevski/948029/ft1_filteredMKT_4FGL_J1503.5+4759_daily_bin50.fits ra=225.895 dec=47.9959 rad=12.0 tmin=252288001.0 tmax=252547201.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.63
user 2.44
sys 0.18

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/948029/ft1_filtered_4FGL_J1503.5+4759_daily_bin50.fits evtable="EVENTS" scfile=/scratch/kocevski/948029/ft2_4FGL_J1503.5+4759_daily_bin50.fits sctable="SC_DATA" expcube=/scratch/kocevski/948029/ltcube_252288001_252547201_4FGL_J1503.5+4759_daily_bin50.fits outfile=/scratch/kocevski/948029/expmap_252288001_252547201_4FGL_J1503.5+4759_daily_bin50.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/948029/ltcube_252288001_252547201_4FGL_J1503.5+4759_daily_bin50.fits
.....................!
real 190.27
user 185.73
sys 3.98

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/948029/ft1_filtered_4FGL_J1503.5+4759_daily_bin50.fits scfile=/scratch/kocevski/948029/ft2_4FGL_J1503.5+4759_daily_bin50.fits outfile=/scratch/kocevski/948029/cmap_252288001_252547201_4FGL_J1503.5+4759_daily_bin50.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.54
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/948029/ft1_filtered_4FGL_J1503.5+4759_daily_bin50.fits scfile=/scratch/kocevski/948029/ft2_4FGL_J1503.5+4759_daily_bin50.fits outfile=/scratch/kocevski/948029/cmap_HighResolution_252288001_252547201_4FGL_J1503.5+4759_daily_bin50.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.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .51242E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    50.289       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10145E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    30.085       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.8400       1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.6673       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10252E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11478E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    47.514       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    19.763       1.0000         .10000E-03   10000.    
    12 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.9884       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.5058       1.0000         .10000E-03   10000.    
    22 'norm      '    .15134       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .43662E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    207.77       1.0000         .10000E-03   10000.    
    25 'Prefactor '    14.502       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .91787E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    33.667       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    8.2927       1.0000         .10000E-03   10000.    
    30 'Prefactor '    64.624       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .96289       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .97983       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=   5688.645     FROM MIGRAD    STATUS=CONVERGED    828 CALLS     4414 TOTAL
                     EDM=   .57E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    512.58        .73163E-05** at limit **
   2  Prefactor     50.350        50.646       -.17386E-05    .23498E-04
   3  Prefactor     .10000E-03    2.0247        .76090E-06** at limit **
   4  Prefactor     30.077        24.774        .42274E-06   -.33171E-04
   5  Prefactor     5.8432        3.4612       -.57041E-06   -.21952E-03
   6  Prefactor     7.6688        22.202        .58826E-06   -.63239E-05
   7  Prefactor     .10000E-03    20.731       -.91088E-06** at limit **
   8  Prefactor     .10000E-03    33.534        .70508E-07** at limit **
   9  Prefactor     47.519        40.827       -.53325E-08    .10903E-05
  10  Prefactor     .10000E-03    13.781       -.72273E-07** at limit **
  11  Prefactor     19.748        29.886       -.33674E-06   -.15587E-04
  12  norm          .10000E-03    2.2823       -.97296E-08** at limit **
  13  Prefactor     .10000E-03    13.386       -.58112E-07** at limit **
  14  Prefactor     .10000E-03    7.5168        .23000E-06** at limit **
  15  Prefactor     .10000E-03    4.2973        .25128E-07** at limit **
  16  norm          .10000E-03    .64624        .25454E-08** at limit **
  17  Prefactor     6.9929        8.0495       -.23264E-06   -.19593E-03
  18  Prefactor     .10000E-03    3.2795       -.58366E-07** at limit **
  19  Prefactor     .10000E-03    2.0779       -.18775E-07** at limit **
  20  norm          .10000E-03    .81791        .46621E-06** at limit **
  21  Prefactor     3.5051        5.0661        .25400E-06    .75168E-05
  22  norm          .13029        2.6323        .81171E-06   -.53992E-03
  23  Prefactor     .10000E-03    12.432       -.20060E-05** at limit **
  24  Prefactor     207.80        113.02       -.60569E-06   -.37394E-04
  25  Prefactor     14.494        24.819        .33912E-05    .18716E-03
  26  Prefactor     .10010E-03    10.292       -.17867E-06** at limit **
  27  norm          33.668        25.425        .58921E-07   -.75748E-06
  28  Prefactor     .10000E-03    16.155        .64278E-07** at limit **
  29  Prefactor     8.2922        7.8290        .34907E-09    .77421E-07
  30  Prefactor     64.607        72.729        .35967E-07   -.12771E-04
  31  Normalizat    .96290        .19649       -.20520E-05    .98271E-04
  32  Prefactor     .97994        .20091        .18986E-05   -.49259E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100004
  Prefactor  = 50.3496
  Prefactor  = 0.0001
  Prefactor  = 30.0768
  Prefactor  = 5.84324
  Prefactor  = 7.66882
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 47.5185
  Prefactor  = 0.0001
  Prefactor  = 19.7484
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 6.99287
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.50514
  norm       = 0.130292
  Prefactor  = 0.000100002
  Prefactor  = 207.8
  Prefactor  = 14.4936
  Prefactor  = 0.0001001
  norm       = 33.6683
  Prefactor  = 0.0001
  Prefactor  = 8.29223
  Prefactor  = 64.6066
  Normalizat = 0.962902
  Prefactor  = 0.979941
 **********
 **   18 **HESSE 
 **********

 FCN=   5688.645     FROM HESSE     STATUS=OK           661 CALLS     5075 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    535.34        .42291E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     50.350        50.859        .56551E-04   -1.4288    
   3  Prefactor     .10000E-03    2.0215        .10457E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     30.077        24.869        .73047E-04   -1.4611    
   5  Prefactor     5.8432        3.4697        .10157E-03   -1.5224    
   6  Prefactor     7.6688        22.268        .14482E-03   -1.5154    
   7  Prefactor     .10000E-03    20.713        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    33.781        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     47.519        40.821        .58171E-04   -1.4328    
  10  Prefactor     .10000E-03    13.813        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     19.748        29.866        .90097E-04   -1.4819    
  12  norm          .10000E-03    2.2854        .11127E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    13.387        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    7.5548        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.3044        .15269E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .66390        .11835E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     6.9929        7.9117        .15176E-03   -1.5179    
  18  Prefactor     .10000E-03    3.2907        .13336E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    2.0895        .10616E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    1.2316        .12444E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     3.5051        5.0490        .19654E-03   -1.5334    
  22  norm          .13029        18.263        .19998E-02   -1.5636    
  23  Prefactor     .10000E-03    78.116        .40332E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     207.80        112.00        .14022E-03   -1.2815    
  25  Prefactor     14.494        23.960        .10518E-03   -1.4946    
  26  Prefactor     .10010E-03    59.769        .39752E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          33.668        25.422        .69062E-04   -1.4547    
  28  Prefactor     .10000E-03    16.214        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     8.2922        7.8333        .13922E-03   -1.5132    
  30  Prefactor     64.607        72.754        .49921E-04   -1.4099    
  31  Normalizat    .96290        .22389        .23670E-03   -.94284    
  32  Prefactor     .97994        .23286        .26163E-03   -.93401    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.83114e-09
Minuit parameter uncertainties:
  1  0.00284325
  2  50.9028
  3  6.19641e-06
  4  24.878
  5  3.46983
  6  22.2919
  7  4.73167e-06
  8  0.000249272
  9  40.8448
  10  6.13233e-06
  11  29.889
  12  3.21187e-07
  13  1.44498e-05
  14  9.81643e-06
  15  2.46189e-06
  16  7.83084e-07
  17  7.9129
  18  8.95139e-07
  19  5.38537e-07
  20  2.74365e-05
  21  5.04962
  22  3.0849
  23  0.000798353
  24  112.115
  25  23.9761
  26  0.00490038
  27  25.4297
  28  2.31038e-05
  29  7.83424
  30  72.854
  31  0.224111
  32  0.233099
Done.

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

Extracting fit parameters...

4FGL J1503.5+4759
   Spectrum: PowerLaw
292    Prefactor:  1.000e-04  5.385e-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.799e-01  2.331e-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.629e-01  2.241e-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: 4.47e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.41e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/948029/likelihoodResults_252288001_252547201_4FGL_J1503.5+4759_daily_bin50.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) = 5688.64753326
delta logL = -0.00226889308578

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5688.64526468
delta logL = -3.15545548801e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10321E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1984       1.0000          .0000       10.000    
     3 'Normalizat'    .96287       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98001       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=   5688.645     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      235 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10452E-03    1.1035        .10839E-01** at limit **
   2  Index         2.0563        5.2957        .50000        .66873E-04
   3  Normalizat    .96290        .28627E-02    .23670E-03    .48030E-05
   4  Prefactor     .97994        .32059E-02    .26162E-03   -.27854E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000104517
  Index      = 2.05627
  Normalizat = 0.9629
  Prefactor  = 0.979943
 **********
 **   18 **HESSE 
 **********

 FCN=   5688.645     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      264 TOTAL
                     EDM=   .12E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10452E-03    52.227        .11387E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0563        8.9337        .50000       -.62951    
   3  Normalizat    .96290        .20111E-01    .94680E-05   -.94284    
   4  Prefactor     .97994        .22519E-01    .10465E-04   -.93401    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.15033e-07
Minuit parameter uncertainties:
  1  0.0307466
  2  396.706
  3  0.0201116
  4  0.0225196
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/948029': 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) = 5688.64526219
delta logL = 2.17449178308e-06

Extracting fit parameters...

4FGL J1503.5+4759
   Spectrum: PowerLaw
292    Prefactor:  1.045e-04  3.075e-02  1.000e-04  1.000e+04 ( 1.000e-13)
293        Index:  2.056e+00  3.967e+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.799e-01  2.252e-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.629e-01  2.011e-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/948029/cmap_HighResolution_252288001_252547201_4FGL_J1503.5+4759_daily_bin50.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.41e-03', job_status='DONE', photon_flux_upper_limit='4.47e-08', time_completed='2021-09-10 18:41:45.109239', job_id='948029', GAL2='0.98', fit_tolerance='1e-08', EG2='0.96', EG='0.96', time_epoch_completed='1631324505.11', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='2.17e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.22' WHERE bin_id='50' AND source_name='4FGL J1503.5+4759' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 18:41:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0103>
Subject: Job 948029: <4FGL_J1503.5+4759_daily_bin50> in cluster <slac> Done

Job <4FGL_J1503.5+4759_daily_bin50> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Sep 10 18:26:12 2021
Job was executed on host(s) <bullet0103>, 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:41:45 2021
Results reported at Fri Sep 10 18:41:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1503.5+4759_daily_bin50 225.895 47.9959 252288001 252547201 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 :                                   920.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             328.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   931 sec.
    Turnaround time :                            933 sec.

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

