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


Performing analysis on: 4FGL_J0515.8+1527_monthly_bin170
RA = 78.953, Dec = 15.4614
tmin = 677635201, tmax = 680227201
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='87319', job_status='RUN', time_executed='2022-07-23 00:53:29.970617', time_epoch_executed='1658562809.97' WHERE source_name='4FGL J0515.8+1527' and cadence='monthly' and bin_id='170'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/87319

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

Retrieving the FT1 file...

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

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

Retrieving 455 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/87319/ft1_4FGL_J0515.8+1527_monthly_bin170.fits


Retrieving the FT1 file...

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

Retrieving 455 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/87319/ft2_4FGL_J0515.8+1527_monthly_bin170.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/87319/ft1_4FGL_J0515.8+1527_monthly_bin170.fits outfile=/scratch/kocevski/87319/ft1_filteredMKT_4FGL_J0515.8+1527_monthly_bin170.fits ra=78.953 dec=15.4614 rad=12.0 tmin=677635201.0 tmax=680227201.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 32.17
user 31.29
sys 0.80

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/87319/ft2_4FGL_J0515.8+1527_monthly_bin170.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/87319/ft2_4FGL_J0515.8+1527_monthly_bin170.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/87319/ft1_filteredMKT_4FGL_J0515.8+1527_monthly_bin170.fits evtable="EVENTS" outfile="/scratch/kocevski/87319/ft1_filtered_4FGL_J0515.8+1527_monthly_bin170.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.90
user 0.65
sys 0.20

Number of photons that the gtmktime cut: 21987

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/87319/ft1_filtered_4FGL_J0515.8+1527_monthly_bin170.fits" evtable="EVENTS" scfile=/scratch/kocevski/87319/ft2_4FGL_J0515.8+1527_monthly_bin170.fits sctable="SC_DATA" outfile=/scratch/kocevski/87319/ltcube_677635201_680227201_4FGL_J0515.8+1527_monthly_bin170.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/87319/ft2_4FGL_J0515.8+1527_monthly_bin170.fits
.....................!
real 112.13
user 111.46
sys 0.44

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/87319/ft1_filtered_4FGL_J0515.8+1527_monthly_bin170.fits evtable="EVENTS" scfile=/scratch/kocevski/87319/ft2_4FGL_J0515.8+1527_monthly_bin170.fits sctable="SC_DATA" expcube=/scratch/kocevski/87319/ltcube_677635201_680227201_4FGL_J0515.8+1527_monthly_bin170.fits outfile=/scratch/kocevski/87319/expmap_677635201_680227201_4FGL_J0515.8+1527_monthly_bin170.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/87319/ltcube_677635201_680227201_4FGL_J0515.8+1527_monthly_bin170.fits
.....................!
real 193.92
user 188.13
sys 5.39

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
Extended source S 147 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/S147.fits is the correct path to the extended template.
Extended source IC 443 in ROI with RadialGaussian spatial model.
Added 165 point sources and 2 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0515.8+1527 @ 78.953 15.4614

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/87319/ft1_filtered_4FGL_J0515.8+1527_monthly_bin170.fits scfile=/scratch/kocevski/87319/ft2_4FGL_J0515.8+1527_monthly_bin170.fits outfile=/scratch/kocevski/87319/cmap_677635201_680227201_4FGL_J0515.8+1527_monthly_bin170.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=78.953 yref=15.4614 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.81
user 0.63
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/87319/ft1_filtered_4FGL_J0515.8+1527_monthly_bin170.fits scfile=/scratch/kocevski/87319/ft2_4FGL_J0515.8+1527_monthly_bin170.fits outfile=/scratch/kocevski/87319/cmap_HighResolution_677635201_680227201_4FGL_J0515.8+1527_monthly_bin170.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=78.953 yref=15.4614 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.82
user 0.63
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/87319/ft1_filtered_4FGL_J0515.8+1527_monthly_bin170.fits evtable="EVENTS" scfile=/scratch/kocevski/87319/ft2_4FGL_J0515.8+1527_monthly_bin170.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/87319/Model_4FGL_J0515.8+1527_monthly_bin170.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
adding source IC 443
adding source S 147
Working on...
/scratch/kocevski/87319/ft1_filtered_4FGL_J0515.8+1527_monthly_bin170.fits.....................!
real 4778.84
user 4761.63
sys 4.69

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/87319/ft1_filtered_4FGL_J0515.8+1527_monthly_bin170.fits', '/scratch/kocevski/87319/ft2_4FGL_J0515.8+1527_monthly_bin170.fits', expMap='/scratch/kocevski/87319/expmap_677635201_680227201_4FGL_J0515.8+1527_monthly_bin170.fits', expCube='/scratch/kocevski/87319/ltcube_677635201_680227201_4FGL_J0515.8+1527_monthly_bin170.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/87319/Model_4FGL_J0515.8+1527_monthly_bin170.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0515.8+1527'

4FGL J0515.8+1527
   Spectrum: PowerLaw
237    Prefactor:  1.467e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
238        Index:  1.942e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
239        Scale:  3.068e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/87319/ft1_filtered_4FGL_J0515.8+1527_monthly_bin170.fits
Spacecraft file(s): /scratch/kocevski/87319/ft2_4FGL_J0515.8+1527_monthly_bin170.fits
Exposure map: /scratch/kocevski/87319/expmap_677635201_680227201_4FGL_J0515.8+1527_monthly_bin170.fits
Exposure cube: /scratch/kocevski/87319/ltcube_677635201_680227201_4FGL_J0515.8+1527_monthly_bin170.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/87319/Model_4FGL_J0515.8+1527_monthly_bin170.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) = 218486.615235

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.4722       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.1813       1.0000         .10000E-03   10000.    
     4 'norm      '    4.7131       1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.1176       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.6852       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.0691       1.0000         .10000E-03   10000.    
     9 'norm      '    6.0748       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .13132E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.7877       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.0992       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    4.3562       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .93182       1.0000         .10000E-03   10000.    
    17 'norm      '    .18477       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.1917       1.0000         .10000E-03   10000.    
    19 'norm      '    7.1346       1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.3932       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.0142       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .19474       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.2345       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0022       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5710E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   218486.6     FROM MIGRAD    STATUS=CONVERGED    614 CALLS     2759 TOTAL
                     EDM=   .57E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.4720        2.7468         .0000        .30659E-02
   2  Prefactor     .10000E-03    3.1150         .0000    ** at limit **
   3  Prefactor     1.1821        2.3192         .0000        .22417    
   4  norm          4.7131        .75916         .0000        .88829E-02
   5  Prefactor     6.1163        8.8127         .0000        .43140E-03
   6  Prefactor     2.6828        9.9315         .0000        .13828E-02
   7  Prefactor     .10000E-03    .54148         .0000    ** at limit **
   8  norm          1.0691        .22415         .0000        .12766E-01
   9  norm          6.0746        1.2507         .0000        .22960E-02
  10  Prefactor     .10000E-03    .14650         .0000    ** at limit **
  11  norm          1.7879        1.0589         .0000        .30285E-02
  12  Prefactor     2.0994        1.0100         .0000        .10875    
  13  Prefactor     .10000E-03    5.6749         .0000    ** at limit **
  14  norm          4.3562        .80383         .0000        .30855E-02
  15  Prefactor     .10000E-03    2.0643         .0000    ** at limit **
  16  norm          .93239        1.8080         .0000        .47144    
  17  norm          .18488        .17766         .0000        .44532E-01
  18  Prefactor     1.1917        .50080E-01     .0000        .11785E-01
  19  norm          7.1345        1.2629         .0000        .85440E-02
  20  Prefactor     5.3932        .36501         .0000        .11753E-01
  21  Prefactor     1.0147        4.6772         .0000        .79690E-01
  22  Prefactor     .10000E-03    3.1936         .0000    ** at limit **
  23  Prefactor     .10000E-03    1.8546         .0000    ** at limit **
  24  Prefactor     .19523        .38003         .0000        .68268E-02
  25  Normalizat    1.2345        .11229         .0000        .84785E-03
  26  Prefactor     1.0022        .15994E-01     .0000       -.76224E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.47199
  Prefactor  = 0.0001
  Prefactor  = 1.18214
  norm       = 4.71314
  Prefactor  = 6.11634
  Prefactor  = 2.68283
  Prefactor  = 0.0001
  norm       = 1.06909
  norm       = 6.07465
  Prefactor  = 0.0001
  norm       = 1.78789
  Prefactor  = 2.09936
  Prefactor  = 0.0001
  norm       = 4.35625
  Prefactor  = 0.0001
  norm       = 0.932388
  norm       = 0.184881
  Prefactor  = 1.19172
  norm       = 7.13451
  Prefactor  = 5.39324
  Prefactor  = 1.0147
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.19523
  Normalizat = 1.23449
  Prefactor  = 1.00222
 **********
 **   18 **HESSE 
 **********

 FCN=   218486.6     FROM HESSE     STATUS=OK           482 CALLS     3241 TOTAL
                     EDM=   .77E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.4720        2.7399        .21702E-03   -1.5335    
   2  Prefactor     .10000E-03    3.1540        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.1821        2.3242        .21026E-02   -1.5491    
   4  norm          4.7131        .75672        .15309E-03   -1.5274    
   5  Prefactor     6.1163        8.6103        .16232E-03   -1.5213    
   6  Prefactor     2.6828        9.5637        .24865E-03   -1.5380    
   7  Prefactor     .10000E-03    .54869        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.0691        .21862        .85563E-04   -1.5501    
   9  norm          6.0746        1.2470        .16290E-03   -1.5215    
  10  Prefactor     .10000E-03    .16753        .56215E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.7879        1.0584        .15644E-03   -1.5441    
  12  Prefactor     2.0994        1.0099        .14242E-02   -1.5418    
  13  Prefactor     .10000E-03    5.6903        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          4.3562        .80355        .17426E-03   -1.5291    
  15  Prefactor     .10000E-03    2.0775        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .93239        1.8166        .25845E-02   -1.5515    
  17  norm          .18488        .21028        .17994E-02   -1.5622    
  18  Prefactor     1.1917        .55763E-01    .13929E-04   -1.5490    
  19  norm          7.1345        1.3660        .15018E-03   -1.5174    
  20  Prefactor     5.3932        .38626        .54855E-04   -1.5243    
  21  Prefactor     1.0147        4.5477        .26011E-02   -1.5507    
  22  Prefactor     .10000E-03    3.2220        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    1.8719        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .19523        2.9620        .36612E-02   -1.5620    
  25  Normalizat    1.2345        .11385        .83158E-03   -.85544    
  26  Prefactor     1.0022        .16865E-01    .14929E-03   -.92656    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.70145e-07
Minuit parameter uncertainties:
  1  2.74001
  2  4.14077e-05
  3  2.3244
  4  0.756718
  5  8.612
  6  9.56916
  7  4.92861e-07
  8  0.218617
  9  1.247
  10  4.44399e-07
  11  1.05839
  12  1.00986
  13  2.88662e-06
  14  0.803553
  15  7.06673e-06
  16  1.81674
  17  0.210284
  18  0.0557626
  19  1.36597
  20  0.38626
  21  4.29662
  22  5.79655e-05
  23  5.78095e-06
  24  1.52059
  25  0.113871
  26  0.0168651
Done.

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

Extracting fit parameters...

4FGL J0515.8+1527
   Spectrum: PowerLaw
237    Prefactor:  2.099e+00  1.010e+00  1.000e-04  1.000e+04 ( 1.000e-13)
238        Index:  1.942e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
239        Scale:  3.068e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
560    Prefactor:  1.002e+00  1.687e-02  0.000e+00  1.000e+01 ( 1.000e+00)
561        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
562        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
559   Normalization:  1.234e+00  1.139e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 16.91
Ra Dec: 78.953 15.461
Photon Index (Fixed Index): 1.94 +/- 0.00
Photon Flux (Fixed Index): 1.72e-08 +/- 8.26e-09
Energy Flux (Fixed Index): 1.38e-05 +/- 6.62e-06

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): 0
logL (Free Index) = 218485.996959
delta logL = 0.564311458758

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 218485.964861
delta logL = 0.596409278136

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.0210       1.0000         .10000E-03   10000.    
     2 'Index     '    1.5449       1.0000          .0000       10.000    
     3 'Normalizat'    1.2405       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0024       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5710E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   218486.0     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      283 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.0209        1.1877        .14555E-02    .14022E-03
   2  Index         1.5449        .37295        .73126E-02   -.10433E-03
   3  Normalizat    1.2405        .96572E-01    .82989E-03    .18894E-03
   4  Prefactor     1.0024        .16029E-01    .14928E-03    .13525E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.02094
  Index      = 1.54486
  Normalizat = 1.24047
  Prefactor  = 1.00242
 **********
 **   18 **HESSE 
 **********

 FCN=   218486.0     FROM HESSE     STATUS=OK            25 CALLS      308 TOTAL
                     EDM=   .21E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.0209        1.1993        .58219E-04   -1.5424    
   2  Index         1.5449        .37656        .14625E-02   -.76291    
   3  Normalizat    1.2405        .96587E-01    .33195E-04   -.85361    
   4  Prefactor     1.0024        .16032E-01    .59712E-05   -.92649    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.05228e-11
Minuit parameter uncertainties:
  1  1.1993
  2  0.377244
  3  0.0966013
  4  0.016032
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/87319': 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) = 218485.964861
delta logL = 0.596409293008

Extracting fit parameters...

4FGL J0515.8+1527
   Spectrum: PowerLaw
237    Prefactor:  2.021e+00  1.199e+00  1.000e-04  1.000e+04 ( 1.000e-13)
238        Index:  1.545e+00  3.772e-01  0.000e+00  1.000e+01 (-1.000e+00)
239        Scale:  3.068e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
560    Prefactor:  1.002e+00  1.603e-02  0.000e+00  1.000e+01 ( 1.000e+00)
561        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
562        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
559   Normalization:  1.240e+00  9.660e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 18.09
Ra Dec: 78.953 15.461
Photon Index (Free Index): 1.54 +/- 0.38
Photon Flux (Free Index): 7.18e-09 +/- 7.63e-09
Energy Flux (Free Index): 1.95e-05 +/- 1.24e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -3.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  3.330e+00 [aplpy.core]
Saving /scratch/kocevski/87319/cmap_HighResolution_677635201_680227201_4FGL_J0515.8+1527_monthly_bin170.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.72e-08', energy_flux2='1.95e-05', photon_flux_error='8.26e-09', dlogl='5.96e-01', energy_flux='1.38e-05', photon_flux2='7.18e-09', job_status='DONE', time_completed='2022-07-23 05:06:53.319192', photon_index_error2='0.38', photon_index2='1.54', ts='16.91', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', energy_flux_error2='1.24e-05', EG='1.23', time_epoch_completed='1658578013.32', return_code='0', job_id='87319', GAL2='1.00', EG2='1.24', return_code2='0', energy_flux_error='6.62e-06', photon_flux_error2='7.63e-09', ts2='18.09', photon_index='1.94' WHERE bin_id='170' AND source_name='4FGL J0515.8+1527' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Sat Jul 23 05:06:53 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0152>
Subject: Job 87319: <4FGL_J0515.8+1527_monthly_bin170> in cluster <slac> Done

Job <4FGL_J0515.8+1527_monthly_bin170> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Jul 23 00:50:33 2022
Job was executed on host(s) <bullet0152>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Jul 23 00:50:33 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Jul 23 00:50:33 2022
Terminated at Sat Jul 23 05:06:54 2022
Results reported at Sat Jul 23 05:06:54 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0515.8+1527_monthly_bin170 78.953 15.4614 677635201 680227201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0515.8+1527 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   15154.00 sec.
    Max Memory :                                 653 MB
    Average Memory :                             594.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   15381 sec.
    Turnaround time :                            15381 sec.

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

