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


Performing analysis on: 4FGL_J1503.5+4759_daily_bin54
RA = 225.895, Dec = 47.9959
tmin = 253324801, tmax = 253584001
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='948035', job_status='RUN', time_executed='2021-09-10 18:28:17.492755', time_epoch_executed='1631323697.49' WHERE source_name='4FGL J1503.5+4759' and cadence='daily' and bin_id='54'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/948035

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/948035/ft1_4FGL_J1503.5+4759_daily_bin54.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/948035/ft2_4FGL_J1503.5+4759_daily_bin54.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/948035/ft1_4FGL_J1503.5+4759_daily_bin54.fits outfile=/scratch/kocevski/948035/ft1_filteredMKT_4FGL_J1503.5+4759_daily_bin54.fits ra=225.895 dec=47.9959 rad=12.0 tmin=253324801.0 tmax=253584001.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.42
user 1.24
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/948035/ft2_4FGL_J1503.5+4759_daily_bin54.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/948035/ft1_filteredMKT_4FGL_J1503.5+4759_daily_bin54.fits evtable="EVENTS" outfile="/scratch/kocevski/948035/ft1_filtered_4FGL_J1503.5+4759_daily_bin54.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/948035/ft1_filtered_4FGL_J1503.5+4759_daily_bin54.fits" evtable="EVENTS" scfile=/scratch/kocevski/948035/ft2_4FGL_J1503.5+4759_daily_bin54.fits sctable="SC_DATA" outfile=/scratch/kocevski/948035/ltcube_253324801_253584001_4FGL_J1503.5+4759_daily_bin54.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/948035/ft2_4FGL_J1503.5+4759_daily_bin54.fits
.....................!
real 12.36
user 11.99
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/948035/ft1_filtered_4FGL_J1503.5+4759_daily_bin54.fits evtable="EVENTS" scfile=/scratch/kocevski/948035/ft2_4FGL_J1503.5+4759_daily_bin54.fits sctable="SC_DATA" expcube=/scratch/kocevski/948035/ltcube_253324801_253584001_4FGL_J1503.5+4759_daily_bin54.fits outfile=/scratch/kocevski/948035/expmap_253324801_253584001_4FGL_J1503.5+4759_daily_bin54.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/948035/ltcube_253324801_253584001_4FGL_J1503.5+4759_daily_bin54.fits
.....................!
real 191.53
user 185.92
sys 5.15

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/948035/ft1_filtered_4FGL_J1503.5+4759_daily_bin54.fits scfile=/scratch/kocevski/948035/ft2_4FGL_J1503.5+4759_daily_bin54.fits outfile=/scratch/kocevski/948035/cmap_253324801_253584001_4FGL_J1503.5+4759_daily_bin54.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/948035/ft1_filtered_4FGL_J1503.5+4759_daily_bin54.fits scfile=/scratch/kocevski/948035/ft2_4FGL_J1503.5+4759_daily_bin54.fits outfile=/scratch/kocevski/948035/cmap_HighResolution_253324801_253584001_4FGL_J1503.5+4759_daily_bin54.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.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    23.970       1.0000         .10000E-03   10000.    
     2 'Prefactor '    26.934       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.4064       1.0000         .10000E-03   10000.    
     6 'Prefactor '    17.289       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10535E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11337E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10547E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    24.587       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .50468       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    2.0055       1.0000         .10000E-03   10000.    
    21 'Prefactor '    22.743       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .90277       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .86747       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=   3861.767     FROM MIGRAD    STATUS=CONVERGED    831 CALLS     4338 TOTAL
                     EDM=   .65E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     23.977        57.540        .10696E-04    .22622E-04
   2  Prefactor     26.924        56.138       -.12477E-04    .54762E-04
   3  Prefactor     .10000E-03    2.0810        .53921E-07** at limit **
   4  Prefactor     .10000E-03    42.015       -.87371E-05** at limit **
   5  Prefactor     1.4029        3.6742       -.94823E-06   -.66838E-03
   6  Prefactor     17.288        27.021       -.16140E-05   -.91571E-06
   7  Prefactor     .10037E-03    20.671        .36102E-05** at limit **
   8  Prefactor     .10000E-03    102.27       -.85947E-05** at limit **
   9  Prefactor     .10000E-03    111.40       -.41972E-04** at limit **
  10  Prefactor     24.592        34.820        .23755E-05    .18673E-04
  11  Prefactor     .10000E-03    13.930       -.10125E-05** at limit **
  12  norm          .10000E-03    3.4237        .23217E-07** at limit **
  13  Prefactor     .10000E-03    23.669        .64757E-05** at limit **
  14  Prefactor     .10000E-03    13.523        .38664E-05** at limit **
  15  Prefactor     .10000E-03    37.504       -.14914E-04** at limit **
  16  norm          .50430        1.5002       -.19696E-06   -.51313E-03
  17  Prefactor     .10000E-03    4.7077       -.35286E-07** at limit **
  18  Prefactor     .10000E-03    4.4906        .22105E-07** at limit **
  19  Prefactor     .10000E-03    7.8897        .16077E-06** at limit **
  20  norm          2.0059        1.7084       -.90547E-07   -.25040E-03
  21  Prefactor     22.742        12.814       -.15676E-06   -.28070E-06
  22  norm          .10000E-03    2.0768       -.25564E-07** at limit **
  23  Prefactor     .10000E-03    3.8295       -.20419E-07** at limit **
  24  Prefactor     .10000E-03    22.898        .61393E-05** at limit **
  25  Prefactor     .10000E-03    21.387        .35302E-05** at limit **
  26  Prefactor     .10000E-03    21.516        .41802E-05** at limit **
  27  norm          .10000E-03    9.8276       -.67262E-06** at limit **
  28  Prefactor     .10000E-03    19.270       -.54809E-05** at limit **
  29  Prefactor     .10000E-03    18.314       -.90383E-05** at limit **
  30  Prefactor     .10000E-03    71.843        .51815E-04** at limit **
  31  Normalizat    .90273        .19533        .13902E-05    .73997E-04
  32  Prefactor     .86754        .19984       -.40937E-06    .13588E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 23.9771
  Prefactor  = 26.9244
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.40287
  Prefactor  = 17.2884
  Prefactor  = 0.000100372
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 24.5921
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.504299
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.00586
  Prefactor  = 22.7419
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.902731
  Prefactor  = 0.867539
 **********
 **   18 **HESSE 
 **********

 FCN=   3861.767     FROM HESSE     STATUS=OK           647 CALLS     4985 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     23.977        57.208        .81817E-04   -1.4728    
   2  Prefactor     26.924        56.205        .77192E-04   -1.4670    
   3  Prefactor     .10000E-03    2.0834        .87523E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    42.474        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.4029        3.5473        .16927E-03   -1.5471    
   6  Prefactor     17.288        27.101        .96323E-04   -1.4876    
   7  Prefactor     .10037E-03    99.311        .53513E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    102.67        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    111.45        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     24.592        34.912        .80785E-04   -1.4716    
  11  Prefactor     .10000E-03    13.932        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    3.4356        .11229E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    23.679        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    13.594        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    38.253        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .50430        1.4337        .12526E-02   -1.5566    
  17  Prefactor     .10000E-03    4.7217        .13156E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.4929        .12857E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    8.0409        .17034E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          2.0059        1.7036        .71805E-04   -1.5425    
  21  Prefactor     22.742        12.871        .83991E-04   -1.4754    
  22  norm          .10000E-03    2.0880        .87426E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    3.8372        .11874E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    22.900        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    21.556        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    21.840        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    9.8370        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    19.320        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    18.586        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    71.940        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .90273        .23197        .21835E-03   -.96364    
  32  Prefactor     .86754        .23682        .24185E-03   -.97285    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.22128e-09
Minuit parameter uncertainties:
  1  57.3392
  2  56.316
  3  1.14428e-05
  4  0.000214158
  5  3.54778
  6  27.1199
  7  0.0121744
  8  0.000557393
  9  0.000526747
  10  34.9411
  11  4.94385e-06
  12  1.58318e-06
  13  1.2826e-05
  14  4.37121e-05
  15  0.000295776
  16  1.43379
  17  2.62104e-06
  18  6.40989e-07
  19  5.73983e-06
  20  1.70369
  21  12.8728
  22  3.73793e-06
  23  6.35193e-06
  24  2.44508e-06
  25  5.6231e-05
  26  9.64696e-05
  27  4.63896e-06
  28  1.07671e-05
  29  3.99814e-05
  30  9.26687e-05
  31  0.232223
  32  0.237095
Done.

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

Extracting fit parameters...

4FGL J1503.5+4759
   Spectrum: PowerLaw
292    Prefactor:  1.000e-04  5.740e-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:  8.675e-01  2.371e-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.027e-01  2.322e-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.26e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.30e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/948035/likelihoodResults_253324801_253584001_4FGL_J1503.5+4759_daily_bin54.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) = 3861.76777383
delta logL = -0.000592799119204

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3861.7671813
delta logL = -2.71841599897e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10440E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2392       1.0000          .0000       10.000    
     3 'Normalizat'    .90268       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86762       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=   3861.767     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      199 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    47.502        .90712E-02** at limit **
   2  Index         2.2574        6.0511        .50000       -.19209E-04
   3  Normalizat    .90273        .11206E-01    .44936E-01    .12516E-03
   4  Prefactor     .86754        .12257E-01    .44591E-01    .10988E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.25736
  Normalizat = 0.902732
  Prefactor  = 0.867538
 **********
 **   18 **HESSE 
 **********

 FCN=   3861.767     FROM HESSE     STATUS=OK            33 CALLS      232 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.2670        .17237E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2574        6.1285        .50000       -.58060    
   3  Normalizat    .90273        .21170        .21835E-03   -.96364    
   4  Prefactor     .86754        .23153        .24185E-03   -.97285    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.22627e-10
Minuit parameter uncertainties:
  1  0.000172815
  2  4.18877
  3  0.211892
  4  0.231793
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/948035': 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): 0
logL (Free Index) = 3861.76718086
delta logL = 1.67392045114e-07

Extracting fit parameters...

4FGL J1503.5+4759
   Spectrum: PowerLaw
292    Prefactor:  1.000e-04  1.728e-04  1.000e-04  1.000e+04 ( 1.000e-13)
293        Index:  2.257e+00  4.189e+00  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:  8.675e-01  2.318e-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.027e-01  2.119e-01  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/948035/cmap_HighResolution_253324801_253584001_4FGL_J1503.5+4759_daily_bin54.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.30e-03', job_status='DONE', photon_flux_upper_limit='8.26e-08', time_completed='2021-09-10 18:40:07.364885', job_id='948035', GAL2='0.87', fit_tolerance='1e-08', EG2='0.90', EG='0.90', time_epoch_completed='1631324407.36', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='1.67e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.22' WHERE bin_id='54' AND source_name='4FGL J1503.5+4759' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 18:40:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0116>
Subject: Job 948035: <4FGL_J1503.5+4759_daily_bin54> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1503.5+4759_daily_bin54 225.895 47.9959 253324801 253584001 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 :                                   709.13 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             304.18 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   832 sec.
    Turnaround time :                            835 sec.

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

