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


Performing analysis on: 4FGL_J1520.5+4209_daily_bin1754
RA = 230.135, Dec = 42.16
tmin = 693964801, tmax = 694224001
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='646310', job_status='RUN', time_executed='2023-01-01 01:22:44.036541', time_epoch_executed='1672564964.04' WHERE source_name='4FGL J1520.5+4209' and cadence='daily' and bin_id='1754'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/646310

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/646310/ft1_4FGL_J1520.5+4209_daily_bin1754.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/646310/ft2_4FGL_J1520.5+4209_daily_bin1754.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/646310/ft1_4FGL_J1520.5+4209_daily_bin1754.fits outfile=/scratch/kocevski/646310/ft1_filteredMKT_4FGL_J1520.5+4209_daily_bin1754.fits ra=230.135 dec=42.16 rad=12.0 tmin=693964801.0 tmax=694224001.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.00
user 3.75
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/646310/ft2_4FGL_J1520.5+4209_daily_bin1754.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/646310/ft2_4FGL_J1520.5+4209_daily_bin1754.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/646310/ft1_filteredMKT_4FGL_J1520.5+4209_daily_bin1754.fits evtable="EVENTS" outfile="/scratch/kocevski/646310/ft1_filtered_4FGL_J1520.5+4209_daily_bin1754.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.53
user 0.35
sys 0.16

Number of photons that the gtmktime cut: 742

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/646310/ft1_filtered_4FGL_J1520.5+4209_daily_bin1754.fits" evtable="EVENTS" scfile=/scratch/kocevski/646310/ft2_4FGL_J1520.5+4209_daily_bin1754.fits sctable="SC_DATA" outfile=/scratch/kocevski/646310/ltcube_693964801_694224001_4FGL_J1520.5+4209_daily_bin1754.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/646310/ft2_4FGL_J1520.5+4209_daily_bin1754.fits
.....................!
real 15.96
user 15.44
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/646310/ft1_filtered_4FGL_J1520.5+4209_daily_bin1754.fits evtable="EVENTS" scfile=/scratch/kocevski/646310/ft2_4FGL_J1520.5+4209_daily_bin1754.fits sctable="SC_DATA" expcube=/scratch/kocevski/646310/ltcube_693964801_694224001_4FGL_J1520.5+4209_daily_bin1754.fits outfile=/scratch/kocevski/646310/expmap_693964801_694224001_4FGL_J1520.5+4209_daily_bin1754.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/646310/ltcube_693964801_694224001_4FGL_J1520.5+4209_daily_bin1754.fits
.....................!
real 197.00
user 191.51
sys 5.02

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 195 point sources and 0 extended sources

Setting source of interest to:
4FGL J1520.5+4209 @ 230.135 42.16

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/646310/ft1_filtered_4FGL_J1520.5+4209_daily_bin1754.fits scfile=/scratch/kocevski/646310/ft2_4FGL_J1520.5+4209_daily_bin1754.fits outfile=/scratch/kocevski/646310/cmap_693964801_694224001_4FGL_J1520.5+4209_daily_bin1754.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=230.135 yref=42.16 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.57
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/646310/ft1_filtered_4FGL_J1520.5+4209_daily_bin1754.fits scfile=/scratch/kocevski/646310/ft2_4FGL_J1520.5+4209_daily_bin1754.fits outfile=/scratch/kocevski/646310/cmap_HighResolution_693964801_694224001_4FGL_J1520.5+4209_daily_bin1754.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=230.135 yref=42.16 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.58
user 0.41
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/646310/ft1_filtered_4FGL_J1520.5+4209_daily_bin1754.fits evtable="EVENTS" scfile=/scratch/kocevski/646310/ft2_4FGL_J1520.5+4209_daily_bin1754.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/646310/Model_4FGL_J1520.5+4209_daily_bin1754.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/646310/ft1_filtered_4FGL_J1520.5+4209_daily_bin1754.fits.....................!
real 59.51
user 58.11
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/646310/ft1_filtered_4FGL_J1520.5+4209_daily_bin1754.fits', '/scratch/kocevski/646310/ft2_4FGL_J1520.5+4209_daily_bin1754.fits', expMap='/scratch/kocevski/646310/expmap_693964801_694224001_4FGL_J1520.5+4209_daily_bin1754.fits', expCube='/scratch/kocevski/646310/ltcube_693964801_694224001_4FGL_J1520.5+4209_daily_bin1754.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/646310/Model_4FGL_J1520.5+4209_daily_bin1754.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1520.5+4209'

4FGL J1520.5+4209
   Spectrum: PowerLaw
308    Prefactor:  3.393e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
309        Index:  2.505e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
310        Scale:  9.357e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/646310/ft1_filtered_4FGL_J1520.5+4209_daily_bin1754.fits
Spacecraft file(s): /scratch/kocevski/646310/ft2_4FGL_J1520.5+4209_daily_bin1754.fits
Exposure map: /scratch/kocevski/646310/expmap_693964801_694224001_4FGL_J1520.5+4209_daily_bin1754.fits
Exposure cube: /scratch/kocevski/646310/ltcube_693964801_694224001_4FGL_J1520.5+4209_daily_bin1754.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/646310/Model_4FGL_J1520.5+4209_daily_bin1754.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) = 8005.43194661

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15253E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    .19095E-03   1.0000          .0000       .10000E+07
     3 'norm      '    .41802E-02   1.0000          .0000       .10000E+07
     4 'Prefactor '    .28291E-02   1.0000          .0000       .10000E+07
     5 'norm      '    13.591       1.0000          .0000       .10000E+07
     6 'Prefactor '    13.064       1.0000          .0000       .10000E+07
     7 'norm      '    .11795E-04   1.0000          .0000       .10000E+07
     8 'Prefactor '    13.668       1.0000          .0000       .10000E+07
     9 'norm      '    2.6342       1.0000          .0000       .10000E+07
    10 'Prefactor '    7.7391       1.0000          .0000       .10000E+07
    11 'Prefactor '    .56674E-05   1.0000          .0000       .10000E+07
    12 'norm      '    .32685E-05   1.0000          .0000       .10000E+07
    13 'norm      '    5.4490       1.0000          .0000       .10000E+07
    14 'Prefactor '    .47456       1.0000          .0000       .10000E+07
    15 'Prefactor '    .67984E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    .75280E-03   1.0000          .0000       .10000E+07
    17 'Prefactor '    .58862E-03   1.0000          .0000       .10000E+07
    18 'norm      '    .38582       1.0000          .0000       .10000E+07
    19 'Prefactor '    7.2452       1.0000          .0000       .10000E+07
    20 'norm      '    .25006E-03   1.0000          .0000       .10000E+07
    21 'Prefactor '    .10020E-02   1.0000          .0000       .10000E+07
    22 'Prefactor '    3.8838       1.0000          .0000       .10000E+07
    23 'Prefactor '    .68356       1.0000          .0000       .10000E+07
    24 'Prefactor '    29.300       1.0000          .0000       .10000E+07
    25 'Normalizat'    .95231       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .84714       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6280E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8005.384     FROM MIGRAD    STATUS=CONVERGED    194 CALLS     1839 TOTAL
                     EDM=   .40E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .36665E-06    64.615       -.44255E-06** at limit **
   2  Prefactor     .75068E-06    14.954       -.97135E-07** at limit **
   3  norm          .76689E-06    15.652       -.68627E-07** at limit **
   4  Prefactor     .13867E-05    15.505       -.12868E-06** at limit **
   5  norm          13.599        6.3014        .20077E-07    .11129E-02
   6  Prefactor     13.172        11.910       -.12617E-07   -.49045E-02
   7  norm          .19429E-08    9.0581        .45447E-07** at limit **
   8  Prefactor     13.657        11.577        .25777E-07   -.27190E-02
   9  norm          2.6305        1.2720        .12811E-07    .15688E-02
  10  Prefactor     7.7248        5.5467        .55753E-07    .98747E-03
  11  Prefactor      .0000        1.0094       -.69502E-07** at limit **
  12  norm           .0000        1.4091        .38741E-07** at limit **
  13  norm          5.4480        3.0958       -.91319E-08    .71608E-03
  14  Prefactor     .47342        13.699        .10479E-06    .24787E-03
  15  Prefactor     .43912E-05    31.300       -.25095E-06** at limit **
  16  Prefactor     .63893E-07    6.2358       -.17747E-06** at limit **
  17  Prefactor     .37158E-05    15.516       -.24348E-07** at limit **
  18  norm          .38535        .68599       -.40352E-07   -.30441E-02
  19  Prefactor     7.2518        4.9822        .95470E-08   -.21316E-03
  20  norm          .11963E-06    12.443       -.15317E-06** at limit **
  21  Prefactor     .47906E-07    7.4726       -.18104E-06** at limit **
  22  Prefactor     4.2974        8.7794        .63947E-07   -.17210E-01
  23  Prefactor     .67205        4.0699        .14278E-07    .16049E-03
  24  Prefactor     29.289        1.9960        .20667E-08    .91544E-03
  25  Normalizat    .95184        .16141       -.88919E-06   -.64089E-05
  26  Prefactor     .84758        .16839        .96794E-06    .21133E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.66651e-07
  Prefactor  = 7.50677e-07
  norm       = 7.66887e-07
  Prefactor  = 1.38667e-06
  norm       = 13.5987
  Prefactor  = 13.1725
  norm       = 1.94289e-09
  Prefactor  = 13.6569
  norm       = 2.63049
  Prefactor  = 7.72476
  Prefactor  = 0
  norm       = 0
  norm       = 5.448
  Prefactor  = 0.473416
  Prefactor  = 4.39115e-06
  Prefactor  = 6.38933e-08
  Prefactor  = 3.71581e-06
  norm       = 0.385346
  Prefactor  = 7.2518
  norm       = 1.19627e-07
  Prefactor  = 4.79061e-08
  Prefactor  = 4.29743
  Prefactor  = 0.672053
  Prefactor  = 29.2892
  Normalizat = 0.951835
  Prefactor  = 0.847581
 **********
 **   18 **HESSE 
 **********

 FCN=   8005.384     FROM HESSE     STATUS=OK           510 CALLS     2349 TOTAL
                     EDM=   .56E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .36665E-06    68.307        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .75068E-06    33.843        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .76689E-06    17.480        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .13867E-05    35.293        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          13.599        6.2946        .27143E-03   -1.5634    
   6  Prefactor     13.172        11.931        .27687E-03   -1.5635    
   7  norm          .19429E-08    9.0541        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     13.657        11.602        .27067E-03   -1.5634    
   9  norm          2.6305        1.2790        .62800E-03   -1.5676    
  10  Prefactor     7.7248        5.5716        .36022E-03   -1.5652    
  11  Prefactor      .0000        1.0097        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm           .0000        1.3855        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          5.4480        3.2086        .43022E-03   -1.5661    
  14  Prefactor     .47342        14.187        .81311E-03   -1.5694    
  15  Prefactor     .43912E-05    46.103        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .63893E-07    13.837        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .37158E-05    24.695        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .38535        .75149        .21786E-02   -1.5696    
  19  Prefactor     7.2518        5.0788        .37241E-03   -1.5654    
  20  norm          .11963E-06    12.721        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .47906E-07    13.856        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     4.2974        157.02        .51176E-03   -1.5667    
  23  Prefactor     .67205        5.0870        .62053E-03   -1.5692    
  24  Prefactor     29.289        20.125        .18477E-03   -1.5600    
  25  Normalizat    .95184        .13659        .45567E-01   -.94662    
  26  Prefactor     .84758        .14190        .44328E-01   -.97998    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.6359e-07
Minuit parameter uncertainties:
  1  0.0100088
  2  0.0100808
  3  0.00732266
  4  0.0139913
  5  6.29465
  6  11.9307
  7  0.000266239
  8  11.6019
  9  1.27902
  10  5.57165
  11  5.7112e-06
  12  4.59949e-06
  13  3.20859
  14  5.18326
  15  0.028457
  16  0.00188035
  17  0.0191587
  18  0.751493
  19  5.0788
  20  0.00246714
  21  0.00162931
  22  51.9544
  23  3.69796
  24  20.1248
  25  0.136641
  26  0.141961
Done.

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

Extracting fit parameters...

4FGL J1520.5+4209
   Spectrum: PowerLaw
308    Prefactor:  6.389e-08  1.880e-03  0.000e+00  1.000e+06 ( 1.000e-13)
309        Index:  2.505e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
310        Scale:  9.357e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
625    Prefactor:  8.476e-01  1.420e-01  0.000e+00  1.000e+01 ( 1.000e+00)
626        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
627        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
624   Normalization:  9.518e-01  1.366e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 230.135 42.160
Photon Flux Upper Limit: 5.62e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.37e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/646310/likelihoodResults_693964801_694224001_4FGL_J1520.5+4209_daily_bin1754.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): 0
logL (Free Index) = 8005.41943784
delta logL = -0.0358138156707

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8005.38362412
delta logL = -9.93923094939e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .16365E-06   1.0000          .0000       .10000E+07
     2 'Index     '    1.7427       1.0000          .0000       10.000    
     3 'Normalizat'    .95179       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84759       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6280E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8004.443     FROM MIGRAD    STATUS=CONVERGED    174 CALLS      329 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .67294E-04    .20635E-03    .13322E-04** at limit **
   2  Index         8.9777        1.2719        .24095       -.32079E-05
   3  Normalizat    .88577        .14421        .45560E-01   -.29479E-03
   4  Prefactor     .89417        .14530        .44333E-01   -.47527E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.72939e-05
  Index      = 8.97775
  Normalizat = 0.885773
  Prefactor  = 0.894173
 **********
 **   18 **HESSE 
 **********

 FCN=   8004.443     FROM HESSE     STATUS=OK            33 CALLS      362 TOTAL
                     EDM=   .37E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .67294E-04    .29174E-03    .74902E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         8.9777        1.8121        .99812E-02    .91991    
   3  Normalizat    .88577        .16478        .22742E-03   -.96962    
   4  Prefactor     .89417        .17121        .23889E-03   -.96345    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.72332e-06
Minuit parameter uncertainties:
  1  0.000280229
  2  1.94244
  3  0.16487
  4  0.171316
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/646310': 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) = 8004.44254521
delta logL = 0.941078811261

Extracting fit parameters...

4FGL J1520.5+4209
   Spectrum: PowerLaw
308    Prefactor:  6.729e-05  2.802e-04  0.000e+00  1.000e+06 ( 1.000e-13)
309        Index:  8.978e+00  1.942e+00  0.000e+00  1.000e+01 (-1.000e+00)
310        Scale:  9.357e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
625    Prefactor:  8.942e-01  1.713e-01  0.000e+00  1.000e+01 ( 1.000e+00)
626        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
627        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
624   Normalization:  8.858e-01  1.649e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.03
Ra Dec: 230.135 42.160
Photon Index (Free Index): 8.98 +/- 1.94
Photon Flux (Free Index): 4.53e-08 +/- 3.63e-07
Energy Flux (Free Index): 5.15e-06 +/- 4.13e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/646310/cmap_HighResolution_693964801_694224001_4FGL_J1520.5+4209_daily_bin1754.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.37e-03', comment='SUCCESS', energy_flux2='5.15e-06', dlogl='9.41e-01', photon_flux2='4.53e-08', job_status='DONE', time_completed='2023-01-01 01:35:29.929306', photon_index_error2='1.94', photon_index2='8.98', ts='-0.00', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', photon_flux_upper_limit='5.62e-08', energy_flux_error2='4.13e-05', EG='0.95', time_epoch_completed='1672565729.93', return_code='0', job_id='646310', GAL2='0.89', EG2='0.89', return_code2='0', photon_flux_error2='3.63e-07', ts2='2.03', photon_index='2.50' WHERE bin_id='1754' AND source_name='4FGL J1520.5+4209' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Jan  1 01:35:29 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0169>
Subject: Job 646310: <4FGL_J1520.5+4209_daily_bin1754> in cluster <slac> Done

Job <4FGL_J1520.5+4209_daily_bin1754> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Jan  1 01:20:20 2023
Job was executed on host(s) <bullet0169>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jan  1 01:21:38 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Jan  1 01:21:38 2023
Terminated at Sun Jan  1 01:35:30 2023
Results reported at Sun Jan  1 01:35:30 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1520.5+4209_daily_bin1754 230.135 42.16 693964801 694224001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1520.5+4209 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   767.01 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             311.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   832 sec.
    Turnaround time :                            910 sec.

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

