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


Performing analysis on: 4FGL_J1520.5+4209_daily_bin1751
RA = 230.135, Dec = 42.16
tmin = 693187201, tmax = 693446401
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='81555', job_status='RUN', time_executed='2022-12-23 00:56:55.506991', time_epoch_executed='1671785815.51' WHERE source_name='4FGL J1520.5+4209' and cadence='daily' and bin_id='1751'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/81555

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/81555/ft1_4FGL_J1520.5+4209_daily_bin1751.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/81555/ft2_4FGL_J1520.5+4209_daily_bin1751.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/81555/ft1_4FGL_J1520.5+4209_daily_bin1751.fits outfile=/scratch/kocevski/81555/ft1_filteredMKT_4FGL_J1520.5+4209_daily_bin1751.fits ra=230.135 dec=42.16 rad=12.0 tmin=693187201.0 tmax=693446401.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 3.61
user 3.42
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/81555/ft2_4FGL_J1520.5+4209_daily_bin1751.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/81555/ft1_filteredMKT_4FGL_J1520.5+4209_daily_bin1751.fits evtable="EVENTS" outfile="/scratch/kocevski/81555/ft1_filtered_4FGL_J1520.5+4209_daily_bin1751.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.33
sys 0.14

Number of photons that the gtmktime cut: 521

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/81555/ft1_filtered_4FGL_J1520.5+4209_daily_bin1751.fits" evtable="EVENTS" scfile=/scratch/kocevski/81555/ft2_4FGL_J1520.5+4209_daily_bin1751.fits sctable="SC_DATA" outfile=/scratch/kocevski/81555/ltcube_693187201_693446401_4FGL_J1520.5+4209_daily_bin1751.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/81555/ft2_4FGL_J1520.5+4209_daily_bin1751.fits
.....................!
real 12.19
user 11.77
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/81555/ft1_filtered_4FGL_J1520.5+4209_daily_bin1751.fits evtable="EVENTS" scfile=/scratch/kocevski/81555/ft2_4FGL_J1520.5+4209_daily_bin1751.fits sctable="SC_DATA" expcube=/scratch/kocevski/81555/ltcube_693187201_693446401_4FGL_J1520.5+4209_daily_bin1751.fits outfile=/scratch/kocevski/81555/expmap_693187201_693446401_4FGL_J1520.5+4209_daily_bin1751.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/81555/ltcube_693187201_693446401_4FGL_J1520.5+4209_daily_bin1751.fits
.....................!
real 190.99
user 186.58
sys 4.09

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/81555/ft1_filtered_4FGL_J1520.5+4209_daily_bin1751.fits scfile=/scratch/kocevski/81555/ft2_4FGL_J1520.5+4209_daily_bin1751.fits outfile=/scratch/kocevski/81555/cmap_693187201_693446401_4FGL_J1520.5+4209_daily_bin1751.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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/81555/ft1_filtered_4FGL_J1520.5+4209_daily_bin1751.fits scfile=/scratch/kocevski/81555/ft2_4FGL_J1520.5+4209_daily_bin1751.fits outfile=/scratch/kocevski/81555/cmap_HighResolution_693187201_693446401_4FGL_J1520.5+4209_daily_bin1751.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.38
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/81555/ft1_filtered_4FGL_J1520.5+4209_daily_bin1751.fits', '/scratch/kocevski/81555/ft2_4FGL_J1520.5+4209_daily_bin1751.fits', expMap='/scratch/kocevski/81555/expmap_693187201_693446401_4FGL_J1520.5+4209_daily_bin1751.fits', expCube='/scratch/kocevski/81555/ltcube_693187201_693446401_4FGL_J1520.5+4209_daily_bin1751.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/81555/Model_4FGL_J1520.5+4209_daily_bin1751.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/81555/ft1_filtered_4FGL_J1520.5+4209_daily_bin1751.fits
Spacecraft file(s): /scratch/kocevski/81555/ft2_4FGL_J1520.5+4209_daily_bin1751.fits
Exposure map: /scratch/kocevski/81555/expmap_693187201_693446401_4FGL_J1520.5+4209_daily_bin1751.fits
Exposure cube: /scratch/kocevski/81555/ltcube_693187201_693446401_4FGL_J1520.5+4209_daily_bin1751.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/81555/Model_4FGL_J1520.5+4209_daily_bin1751.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) = 5670.06670017

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    36.940       1.0000          .0000       .10000E+07
     2 'Prefactor '    .18541E-03   1.0000          .0000       .10000E+07
     3 'norm      '    .90732E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    .11290E-04   1.0000          .0000       .10000E+07
     5 'norm      '    .60924E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    6.2272       1.0000          .0000       .10000E+07
     7 'norm      '    .11961E-01   1.0000          .0000       .10000E+07
     8 'Prefactor '    .72785E-03   1.0000          .0000       .10000E+07
     9 'norm      '    1.8926       1.0000          .0000       .10000E+07
    10 'Prefactor '    7.6393       1.0000          .0000       .10000E+07
    11 'Prefactor '    1.5112       1.0000          .0000       .10000E+07
    12 'norm      '    .15593       1.0000          .0000       .10000E+07
    13 'norm      '    1.0645       1.0000          .0000       .10000E+07
    14 'Prefactor '    .22708E-04   1.0000          .0000       .10000E+07
    15 'Prefactor '    8.7072       1.0000          .0000       .10000E+07
    16 'Prefactor '    .37727E-03   1.0000          .0000       .10000E+07
    17 'Prefactor '    .17938E-02   1.0000          .0000       .10000E+07
    18 'norm      '    1.1271       1.0000          .0000       .10000E+07
    19 'Prefactor '    .77310E-03   1.0000          .0000       .10000E+07
    20 'norm      '    10.036       1.0000          .0000       .10000E+07
    21 'Prefactor '    .66752E-03   1.0000          .0000       .10000E+07
    22 'Prefactor '    .24438E-03   1.0000          .0000       .10000E+07
    23 'Prefactor '    .59236E-06   1.0000          .0000       .10000E+07
    24 'Prefactor '    .10853E-04   1.0000          .0000       .10000E+07
    25 'Normalizat'    .81028       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.2679       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=   5670.053     FROM MIGRAD    STATUS=CONVERGED    204 CALLS     2322 TOTAL
                     EDM=   .43E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     37.341        2.3536        .65796E-07   -.87477E-02
   2  Prefactor     .14433E-08    7.5125       -.40946E-06** at limit **
   3  norm           .0000        5.1764       -.83415E-06** at limit **
   4  Prefactor     .48961E-07    53.030       -.95915E-06** at limit **
   5  norm          .18241E-06    37.023       -.13102E-05** at limit **
   6  Prefactor     6.2183        2.0369        .16125E-06    .15211E-03
   7  norm          .11526E-05    15.170        .53092E-06** at limit **
   8  Prefactor     .27756E-09    4.4497       -.35356E-06** at limit **
   9  norm          1.8940        1.3160        .19960E-06   -.33106E-02
  10  Prefactor     7.7773        7.8861        .25223E-06    .79980E-03
  11  Prefactor     1.5125        3.3101        .70138E-06   -.35897E-04
  12  norm          .14348        2.1604        .35829E-06** at limit **
  13  norm          1.0663        3.1551        .22311E-06   -.14825E-03
  14  Prefactor     .15909E-06    9.5519        .11788E-05** at limit **
  15  Prefactor     11.286        101.02        .41765E-05   -.92437E-03
  16  Prefactor     .77621E-06    4.6168        .34811E-06** at limit **
  17  Prefactor     .17614E-06    11.046        .54164E-06** at limit **
  18  norm          1.1270        .96444        .23712E-07    .46838E-04
  19  Prefactor     .23165E-06    4.9539       -.47373E-06** at limit **
  20  norm          10.023        11.572        .45542E-06    .15754E-01
  21  Prefactor     .12046E-07    8.5203       -.78104E-06** at limit **
  22  Prefactor     .11128E-05    9.9090        .75117E-06** at limit **
  23  Prefactor     .55511E-10    1.9832       -.19918E-06** at limit **
  24  Prefactor     .11102E-09    6.6755        .10543E-06** at limit **
  25  Normalizat    .80952        .20792        .82035E-05   -.16369E-04
  26  Prefactor     1.2674        .22846       -.10761E-04   -.29720E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 37.3411
  Prefactor  = 1.44329e-09
  norm       = 0
  Prefactor  = 4.89608e-08
  norm       = 1.8241e-07
  Prefactor  = 6.21828
  norm       = 1.15258e-06
  Prefactor  = 2.77556e-10
  norm       = 1.89398
  Prefactor  = 7.7773
  Prefactor  = 1.5125
  norm       = 0.143479
  norm       = 1.0663
  Prefactor  = 1.59095e-07
  Prefactor  = 11.2859
  Prefactor  = 7.76212e-07
  Prefactor  = 1.76137e-07
  norm       = 1.12702
  Prefactor  = 2.31648e-07
  norm       = 10.0225
  Prefactor  = 1.20459e-08
  Prefactor  = 1.11283e-06
  Prefactor  = 5.55112e-11
  Prefactor  = 1.11022e-10
  Normalizat = 0.80952
  Prefactor  = 1.2674
 **********
 **   18 **HESSE 
 **********

 FCN=   5670.053     FROM HESSE     STATUS=OK           510 CALLS     2832 TOTAL
                     EDM=   .25E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     37.341        30.905        .16455E-03   -1.5586    
   2  Prefactor     .14433E-08    7.5239        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm           .0000        5.1810        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .48961E-07    53.171        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .18241E-06    37.081        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.2183        16.084        .40204E-03   -1.5658    
   7  norm          .11526E-05    21.072        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .27756E-09    10.413        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.8940        1.3232        .75600E-03   -1.5680    
  10  Prefactor     7.7773        7.5575        .36259E-03   -1.5652    
  11  Prefactor     1.5125        3.3566        .86970E-03   -1.5683    
  12  norm          .14348        .93785        .25770E-02   -1.5716    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.0663        3.1688        .11828E-02   -1.5729    
  14  Prefactor     .15909E-06    12.313        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     11.286        98.573        .33945E-03   -1.5641    
  16  Prefactor     .77621E-06    11.515        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .17614E-06    16.009        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.1270        .98021        .11020E-02   -1.5687    
  19  Prefactor     .23165E-06    10.115        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          10.023        11.678        .31606E-03   -1.5645    
  21  Prefactor     .12046E-07    8.5540        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .11128E-05    17.719        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .55511E-10    1.9791        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .11102E-09    6.6832        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .80952        .17483        .43744E-01   -.99717    
  26  Prefactor     1.2674        .18923        .51333E-01   -.84282    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.46159e-07
Minuit parameter uncertainties:
  1  30.905
  2  0.00020991
  3  3.7518e-08
  4  0.00322786
  5  0.00520154
  6  16.0841
  7  0.00985645
  8  0.000107257
  9  1.32324
  10  7.55751
  11  3.35656
  12  0.733654
  13  3.16879
  14  0.00279924
  15  66.7092
  16  0.00597921
  17  0.00335823
  18  0.98021
  19  0.00306141
  20  11.6785
  21  0.000642446
  22  0.00888103
  23  2.16515e-05
  24  5.98401e-05
  25  0.174956
  26  0.189327
Done.

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

Extracting fit parameters...

4FGL J1520.5+4209
   Spectrum: PowerLaw
308    Prefactor:  7.762e-07  5.979e-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:  1.267e+00  1.893e-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.095e-01  1.750e-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: 6.40e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.98e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/81555/likelihoodResults_693187201_693446401_4FGL_J1520.5+4209_daily_bin1751.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) = 5670.09562212
delta logL = -0.0423081810959

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5669.28233786
delta logL = 0.770976077911

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .23690E-03   1.0000          .0000       .10000E+07
     2 'Index     '    8.4347       1.0000          .0000       10.000    
     3 'Normalizat'    .73209       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3242       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=   5670.053     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      352 TOTAL
                     EDM=   .75E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        14.746        .11132E-05** at limit **
   2  Index         2.7665        .53937        .10661E-04     .0000    
   3  Normalizat    .80952        .20377        .20615E-07    .13993E-04
   4  Prefactor     1.2674        .22175        .50654E-05   -.58070E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.76652
  Normalizat = 0.80952
  Prefactor  = 1.2674
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   5670.053     FROM HESSE     STATUS=FAILED        11 CALLS      363 TOTAL
                     EDM=   .75E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        15.443        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .86691        1.9935        .10661E-04   -57.012    
   3  Normalizat    .80952        1.1230        .20615E-07   -.99717    
   4  Prefactor     1.2674        1.0528        .50654E-05   -.84282    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 7.4778e-13
Minuit parameter uncertainties:
  1  1.09074e-05
  2  1.30199
  3  1.15794
  4  1.07124
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/81555': 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) = 5670.05331391
delta logL = 3.36694938596e-08

Extracting fit parameters...

4FGL J1520.5+4209
   Spectrum: PowerLaw
308    Prefactor:  0.000e+00  1.091e-05  0.000e+00  1.000e+06 ( 1.000e-13)
309        Index:  2.767e+00  1.302e+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:  1.267e+00  1.071e+00  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.095e-01  1.158e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 230.135 42.160

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/81555/cmap_HighResolution_693187201_693446401_4FGL_J1520.5+4209_daily_bin1751.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.98e-03', job_status='DONE', photon_flux_upper_limit='6.40e-08', time_completed='2022-12-23 01:07:47.072703', job_id='81555', GAL2='1.27', fit_tolerance='1e-08', EG2='0.81', EG='0.81', time_epoch_completed='1671786467.07', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.27', dlogl='3.37e-08', ts2='0.00', photon_index_error='0.00', photon_index='2.50' WHERE bin_id='1751' AND source_name='4FGL J1520.5+4209' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Dec 23 01:07:47 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0065>
Subject: Job 81555: <4FGL_J1520.5+4209_daily_bin1751> in cluster <slac> Done

Job <4FGL_J1520.5+4209_daily_bin1751> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Dec 23 00:55:18 2022
Job was executed on host(s) <bullet0065>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Dec 23 00:55:19 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Dec 23 00:55:19 2022
Terminated at Fri Dec 23 01:07:47 2022
Results reported at Fri Dec 23 01:07:47 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1520.5+4209_daily_bin1751 230.135 42.16 693187201 693446401 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 :                                   654.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             339.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   748 sec.
    Turnaround time :                            749 sec.

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

