aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 7 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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 = 7491
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1503.5+4759_daily_bin1716
RA = 225.895, Dec = 47.9959
tmin = 684115201, tmax = 684374401
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='155312', job_status='RUN', time_executed='2022-09-16 18:46:11.012471', time_epoch_executed='1663379171.01' WHERE source_name='4FGL J1503.5+4759' and cadence='daily' and bin_id='1716'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/155312

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/155312/ft1_4FGL_J1503.5+4759_daily_bin1716.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/155312/ft2_4FGL_J1503.5+4759_daily_bin1716.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/155312/ft1_4FGL_J1503.5+4759_daily_bin1716.fits outfile=/scratch/kocevski/155312/ft1_filteredMKT_4FGL_J1503.5+4759_daily_bin1716.fits ra=225.895 dec=47.9959 rad=12.0 tmin=684115201.0 tmax=684374401.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.14
user 3.89
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/155312/ft2_4FGL_J1503.5+4759_daily_bin1716.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/155312/ft1_filteredMKT_4FGL_J1503.5+4759_daily_bin1716.fits evtable="EVENTS" outfile="/scratch/kocevski/155312/ft1_filtered_4FGL_J1503.5+4759_daily_bin1716.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.50
user 0.35
sys 0.14

Number of photons that the gtmktime cut: 503

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/155312/ft1_filtered_4FGL_J1503.5+4759_daily_bin1716.fits" evtable="EVENTS" scfile=/scratch/kocevski/155312/ft2_4FGL_J1503.5+4759_daily_bin1716.fits sctable="SC_DATA" outfile=/scratch/kocevski/155312/ltcube_684115201_684374401_4FGL_J1503.5+4759_daily_bin1716.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/155312/ft2_4FGL_J1503.5+4759_daily_bin1716.fits
.....................!
real 13.89
user 13.45
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/155312/ft1_filtered_4FGL_J1503.5+4759_daily_bin1716.fits evtable="EVENTS" scfile=/scratch/kocevski/155312/ft2_4FGL_J1503.5+4759_daily_bin1716.fits sctable="SC_DATA" expcube=/scratch/kocevski/155312/ltcube_684115201_684374401_4FGL_J1503.5+4759_daily_bin1716.fits outfile=/scratch/kocevski/155312/expmap_684115201_684374401_4FGL_J1503.5+4759_daily_bin1716.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/155312/ltcube_684115201_684374401_4FGL_J1503.5+4759_daily_bin1716.fits
.....................!
real 193.01
user 185.88
sys 5.69

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/155312/ft1_filtered_4FGL_J1503.5+4759_daily_bin1716.fits scfile=/scratch/kocevski/155312/ft2_4FGL_J1503.5+4759_daily_bin1716.fits outfile=/scratch/kocevski/155312/cmap_684115201_684374401_4FGL_J1503.5+4759_daily_bin1716.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.56
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/155312/ft1_filtered_4FGL_J1503.5+4759_daily_bin1716.fits scfile=/scratch/kocevski/155312/ft2_4FGL_J1503.5+4759_daily_bin1716.fits outfile=/scratch/kocevski/155312/cmap_HighResolution_684115201_684374401_4FGL_J1503.5+4759_daily_bin1716.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=225.895 yref=47.9959 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.37
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/155312/ft1_filtered_4FGL_J1503.5+4759_daily_bin1716.fits', '/scratch/kocevski/155312/ft2_4FGL_J1503.5+4759_daily_bin1716.fits', expMap='/scratch/kocevski/155312/expmap_684115201_684374401_4FGL_J1503.5+4759_daily_bin1716.fits', expCube='/scratch/kocevski/155312/ltcube_684115201_684374401_4FGL_J1503.5+4759_daily_bin1716.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/155312/Model_4FGL_J1503.5+4759_daily_bin1716.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  0.000e+00  1.000e+06 ( 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/155312/ft1_filtered_4FGL_J1503.5+4759_daily_bin1716.fits
Spacecraft file(s): /scratch/kocevski/155312/ft2_4FGL_J1503.5+4759_daily_bin1716.fits
Exposure map: /scratch/kocevski/155312/expmap_684115201_684374401_4FGL_J1503.5+4759_daily_bin1716.fits
Exposure cube: /scratch/kocevski/155312/ltcube_684115201_684374401_4FGL_J1503.5+4759_daily_bin1716.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/155312/Model_4FGL_J1503.5+4759_daily_bin1716.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) = 5445.12055298

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.029       1.0000          .0000       .10000E+07
     2 'Prefactor '    .24069E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    6.7577       1.0000          .0000       .10000E+07
     4 'Prefactor '    1.2177       1.0000          .0000       .10000E+07
     5 'Prefactor '    3.0212       1.0000          .0000       .10000E+07
     6 'Prefactor '    16.143       1.0000          .0000       .10000E+07
     7 'Prefactor '    .32007E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    .20112E-01   1.0000          .0000       .10000E+07
     9 'Prefactor '    43.247       1.0000          .0000       .10000E+07
    10 'norm      '    .75279E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    40.197       1.0000          .0000       .10000E+07
    12 'norm      '    .75495E-08   1.0000          .0000       .10000E+07
    13 'Prefactor '    .11046E-02   1.0000          .0000       .10000E+07
    14 'Prefactor '    5.5942       1.0000          .0000       .10000E+07
    15 'Prefactor '    .11850E-04   1.0000          .0000       .10000E+07
    16 'norm      '    .86133       1.0000          .0000       .10000E+07
    17 'Prefactor '    11.526       1.0000          .0000       .10000E+07
    18 'norm      '    .99920E-09   1.0000          .0000       .10000E+07
    19 'Prefactor '    .10332E-03   1.0000          .0000       .10000E+07
    20 'Prefactor '    32.420       1.0000          .0000       .10000E+07
    21 'Prefactor '    .56756E-05   1.0000          .0000       .10000E+07
    22 'Prefactor '    .39508E-03   1.0000          .0000       .10000E+07
    23 'norm      '    23.646       1.0000          .0000       .10000E+07
    24 'Prefactor '    .27429E-02   1.0000          .0000       .10000E+07
    25 'Prefactor '    8.8182       1.0000          .0000       .10000E+07
    26 'Prefactor '    .10088E-04   1.0000          .0000       .10000E+07
    27 'Normalizat'    .84568       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .92625       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6510E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5445.110     FROM MIGRAD    STATUS=CONVERGED    177 CALLS     2527 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.466        5.1850       -.36759E-06   -.14193E-01
   2  Prefactor      .0000        22.370       -.10723E-05** at limit **
   3  Prefactor     6.7366        4.5485       -.94327E-07   -.15473E-02
   4  Prefactor     1.6258        61.008        .12193E-04    .15709E-02
   5  Prefactor     3.0193        2.0417        .35220E-06    .70213E-03
   6  Prefactor     16.128        1.6565       -.23772E-07   -.37248E-02
   7  Prefactor     .40523E-08    18.117        .23440E-06** at limit **
   8  Prefactor      .0000        29.868        .15989E-06** at limit **
   9  Prefactor     43.348        1.9774       -.99523E-07   -.10035E-01
  10  norm           .0000        3.2863        .45906E-06** at limit **
  11  Prefactor     40.235        1.6093        .80516E-07    .28621E-02
  12  norm           .0000        .83035        .21494E-06** at limit **
  13  Prefactor      .0000        4.5728        .10369E-05** at limit **
  14  Prefactor     5.6105        8.6449       -.14626E-06    .37275E-04
  15  Prefactor     .55511E-10    1.9186       -.35950E-06** at limit **
  16  norm          .86085        1.2674       -.82003E-07   -.26195E-03
  17  Prefactor     11.547        9.0062        .38717E-06   -.10388E-03
  18  norm           .0000        1.0866       -.76777E-07** at limit **
  19  Prefactor      .0000        2.3961       -.53814E-06** at limit **
  20  Prefactor     33.126        32.556        .27291E-05   -.40721E-01
  21  Prefactor     .45230E-05    40.008       -.28204E-05** at limit **
  22  Prefactor     .55511E-10    6.4135        .18404E-07** at limit **
  23  norm          23.604        1.8728       -.26540E-06    .43764E-02
  24  Prefactor      .0000        8.4670        .83708E-06** at limit **
  25  Prefactor     8.8333        2.0528        .48363E-06    .14073E-01
  26  Prefactor     .14104E-05    43.336        .32118E-05** at limit **
  27  Normalizat    .84446        .19587       -.15190E-04    .36258E-04
  28  Prefactor     .92671        .21254       -.32902E-06    .53672E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.4665
  Prefactor  = 0
  Prefactor  = 6.73665
  Prefactor  = 1.62575
  Prefactor  = 3.01925
  Prefactor  = 16.128
  Prefactor  = 4.05231e-09
  Prefactor  = 0
  Prefactor  = 43.3479
  norm       = 0
  Prefactor  = 40.2352
  norm       = 0
  Prefactor  = 0
  Prefactor  = 5.61047
  Prefactor  = 5.55112e-11
  norm       = 0.860855
  Prefactor  = 11.5471
  norm       = 0
  Prefactor  = 0
  Prefactor  = 33.126
  Prefactor  = 4.52305e-06
  Prefactor  = 5.55112e-11
  norm       = 23.6044
  Prefactor  = 0
  Prefactor  = 8.83329
  Prefactor  = 1.41043e-06
  Normalizat = 0.84446
  Prefactor  = 0.926714
 **********
 **   18 **HESSE 
 **********

 FCN=   5445.110     FROM HESSE     STATUS=OK           573 CALLS     3100 TOTAL
                     EDM=   .22E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.466        33.249        .22352E-03   -1.5617    
   2  Prefactor      .0000        22.420        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.7366        4.5991        .38575E-03   -1.5656    
   4  Prefactor     1.6258        62.549        .10226E-02   -1.5682    
   5  Prefactor     3.0193        2.0544        .58361E-03   -1.5673    
   6  Prefactor     16.128        20.659        .24901E-03   -1.5628    
   7  Prefactor     .40523E-08    18.182        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        29.802        .17029E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     43.348        32.287        .15208E-03   -1.5576    
  10  norm           .0000        3.2844        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     40.235        20.283        .15774E-03   -1.5581    
  12  norm           .0000        .82048        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor      .0000        4.5666        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.6105        8.6957        .42451E-03   -1.5661    
  15  Prefactor     .55511E-10    1.9165        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .86085        1.2824        .48471E-03   -1.5689    
  17  Prefactor     11.547        9.0554        .29483E-03   -1.5640    
  18  norm           .0000        1.0870        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor      .0000        2.4006        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     33.126        45.011        .17565E-03   -1.5593    
  21  Prefactor     .45230E-05    63.107        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .55511E-10    6.4029        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          23.604        19.819        .20569E-03   -1.5611    
  24  Prefactor      .0000        8.4687        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     8.8333        11.342        .33730E-03   -1.5649    
  26  Prefactor     .14104E-05    52.325        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .84446        .16958        .44204E-01   -.98440    
  28  Prefactor     .92671        .17972        .45339E-01   -.95214    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.2177e-07
Minuit parameter uncertainties:
  1  33.2493
  2  4.55397e-05
  3  4.59907
  4  20.1684
  5  2.05445
  6  20.659
  7  0.000543698
  8  2.94056e-06
  9  32.2869
  10  1.31348e-05
  11  20.2833
  12  3.13319e-06
  13  1.88535e-06
  14  8.69571
  15  1.86283e-05
  16  1.28244
  17  9.05538
  18  4.29647e-07
  19  8.18459e-06
  20  45.0111
  21  0.0337902
  22  3.86409e-05
  23  19.8187
  24  3.04642e-05
  25  11.3422
  26  0.0171817
  27  0.169685
  28  0.179832
Done.

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

Extracting fit parameters...

4FGL J1503.5+4759
   Spectrum: PowerLaw
292    Prefactor:  5.551e-11  1.863e-05  0.000e+00  1.000e+06 ( 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.267e-01  1.798e-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:  8.445e-01  1.697e-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.11e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.14e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/155312/likelihoodResults_684115201_684374401_4FGL_J1503.5+4759_daily_bin1716.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) = 5445.12050214
delta logL = -0.010433561426

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5445.11007457
delta logL = -5.99715986027e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .66960E-05   1.0000          .0000       .10000E+07
     2 'Index     '    2.8549       1.0000          .0000       10.000    
     3 'Normalizat'    .84444       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92696       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   5445.110     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      248 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        .62942        .42118E-03** at limit **
   2  Index         .51942        .49425       -.11729E-03     .0000    
   3  Normalizat    .84446        1.1820       -.12198E-04   -.28939E-03
   4  Prefactor     .92672        1.2703       -.10366E-05   -.34242E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 0.519419
  Normalizat = 0.844457
  Prefactor  = 0.926717
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   5445.110     FROM HESSE     STATUS=FAILED         9 CALLS      257 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        .62942        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .62846E-02    .62568       -.11729E-03   -1.1109    
   3  Normalizat    .84446        1.1820       -.12198E-04   -.98440    
   4  Prefactor     .92672        1.2703       -.10366E-05   -.95214    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.68891e-10
Minuit parameter uncertainties:
  1  8.10085e-06
  2  0.498435
  3  1.22136
  4  1.31496
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/155312': 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): 101
logL (Free Index) = 5445.11006857
delta logL = -1.31876731757e-10

Extracting fit parameters...

4FGL J1503.5+4759
   Spectrum: PowerLaw
292    Prefactor:  0.000e+00  8.101e-06  0.000e+00  1.000e+06 ( 1.000e-13)
293        Index:  5.194e-01  4.984e-01  0.000e+00  1.000e+01 (-1.000e+00)
294        Scale:  1.746e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
648    Prefactor:  9.267e-01  1.315e+00  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:  8.445e-01  1.221e+00  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/155312/cmap_HighResolution_684115201_684374401_4FGL_J1503.5+4759_daily_bin1716.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.14e-03', job_status='DONE', photon_flux_upper_limit='4.11e-08', time_completed='2022-09-16 18:57:30.259357', job_id='155312', GAL2='0.93', fit_tolerance='1e-08', EG2='0.84', EG='0.84', time_epoch_completed='1663379850.26', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='-1.32e-10', ts2='0.00', photon_index_error='0.00', photon_index='2.22' WHERE bin_id='1716' AND source_name='4FGL J1503.5+4759' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 18:57:30 PDT 2022


------------------------------------------------------------
Sender: LSF System <scs@bullet0284>
Subject: Job 155312: <4FGL_J1503.5+4759_daily_bin1716> in cluster <slac> Done

Job <4FGL_J1503.5+4759_daily_bin1716> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Sep 16 18:45:21 2022
Job was executed on host(s) <bullet0284>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 18:45:55 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 16 18:45:55 2022
Terminated at Fri Sep 16 18:57:31 2022
Results reported at Fri Sep 16 18:57:31 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1503.5+4759_daily_bin1716 225.895 47.9959 684115201 684374401 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 :                                   679.36 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             339.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   695 sec.
    Turnaround time :                            730 sec.

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

