/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 136 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 = 7483
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1520.5+4209_daily_bin550
RA = 230.135, Dec = 42.16
tmin = 381888001, tmax = 382147201
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='491617', job_status='RUN', time_executed='2021-09-12 01:22:46.126060', time_epoch_executed='1631434966.13' WHERE source_name='4FGL J1520.5+4209' and cadence='daily' and bin_id='550'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/491617

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/491617/ft1_4FGL_J1520.5+4209_daily_bin550.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/491617/ft2_4FGL_J1520.5+4209_daily_bin550.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/491617/ft1_4FGL_J1520.5+4209_daily_bin550.fits outfile=/scratch/kocevski/491617/ft1_filteredMKT_4FGL_J1520.5+4209_daily_bin550.fits ra=230.135 dec=42.16 rad=12.0 tmin=381888001.0 tmax=382147201.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.79
user 4.53
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/491617/ft2_4FGL_J1520.5+4209_daily_bin550.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/491617/ft1_filteredMKT_4FGL_J1520.5+4209_daily_bin550.fits evtable="EVENTS" outfile="/scratch/kocevski/491617/ft1_filtered_4FGL_J1520.5+4209_daily_bin550.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.49
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/491617/ft1_filtered_4FGL_J1520.5+4209_daily_bin550.fits" evtable="EVENTS" scfile=/scratch/kocevski/491617/ft2_4FGL_J1520.5+4209_daily_bin550.fits sctable="SC_DATA" outfile=/scratch/kocevski/491617/ltcube_381888001_382147201_4FGL_J1520.5+4209_daily_bin550.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/491617/ft2_4FGL_J1520.5+4209_daily_bin550.fits
.....................!
real 11.97
user 11.61
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/491617/ft1_filtered_4FGL_J1520.5+4209_daily_bin550.fits evtable="EVENTS" scfile=/scratch/kocevski/491617/ft2_4FGL_J1520.5+4209_daily_bin550.fits sctable="SC_DATA" expcube=/scratch/kocevski/491617/ltcube_381888001_382147201_4FGL_J1520.5+4209_daily_bin550.fits outfile=/scratch/kocevski/491617/expmap_381888001_382147201_4FGL_J1520.5+4209_daily_bin550.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/491617/ltcube_381888001_382147201_4FGL_J1520.5+4209_daily_bin550.fits
.....................!
real 190.50
user 184.97
sys 5.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/491617/ft1_filtered_4FGL_J1520.5+4209_daily_bin550.fits scfile=/scratch/kocevski/491617/ft2_4FGL_J1520.5+4209_daily_bin550.fits outfile=/scratch/kocevski/491617/cmap_381888001_382147201_4FGL_J1520.5+4209_daily_bin550.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.56
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/491617/ft1_filtered_4FGL_J1520.5+4209_daily_bin550.fits scfile=/scratch/kocevski/491617/ft2_4FGL_J1520.5+4209_daily_bin550.fits outfile=/scratch/kocevski/491617/cmap_HighResolution_381888001_382147201_4FGL_J1520.5+4209_daily_bin550.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.54
user 0.38
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/491617/ft1_filtered_4FGL_J1520.5+4209_daily_bin550.fits', '/scratch/kocevski/491617/ft2_4FGL_J1520.5+4209_daily_bin550.fits', expMap='/scratch/kocevski/491617/expmap_381888001_382147201_4FGL_J1520.5+4209_daily_bin550.fits', expCube='/scratch/kocevski/491617/ltcube_381888001_382147201_4FGL_J1520.5+4209_daily_bin550.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/491617/Model_4FGL_J1520.5+4209_daily_bin550.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  1.000e-04  1.000e+04 ( 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/491617/ft1_filtered_4FGL_J1520.5+4209_daily_bin550.fits
Spacecraft file(s): /scratch/kocevski/491617/ft2_4FGL_J1520.5+4209_daily_bin550.fits
Exposure map: /scratch/kocevski/491617/expmap_381888001_382147201_4FGL_J1520.5+4209_daily_bin550.fits
Exposure cube: /scratch/kocevski/491617/ltcube_381888001_382147201_4FGL_J1520.5+4209_daily_bin550.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/491617/Model_4FGL_J1520.5+4209_daily_bin550.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) = 5621.06965547

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    2.8038       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10189E-02   1.0000         .10000E-03   10000.    
     6 'norm      '    .10126E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    23.027       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    8.7559       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    16.953       1.0000         .10000E-03   10000.    
    12 'norm      '    .42860       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.3811       1.0000         .10000E-03   10000.    
    16 'norm      '    .10038E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.5559       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .23558E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    5.1877       1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.6514       1.0000         .10000E-03   10000.    
    23 'Prefactor '    15.665       1.0000         .10000E-03   10000.    
    24 'norm      '    2.0151       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    20.084       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .11086E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    12.059       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .80701       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0695       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5621.030     FROM MIGRAD    STATUS=CONVERGED    763 CALLS     3909 TOTAL
                     EDM=   .81E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    23.644        .28962E-05** at limit **
   2  Prefactor     .10000E-03    5.0494       -.38474E-08** at limit **
   3  norm          2.8037        16.444        .13981E-06   -.37697E-03
   4  Prefactor     .10000E-03    47.045        .98589E-06** at limit **
   5  Prefactor     .10000E-03    32.312       -.87461E-06** at limit **
   6  norm          .10000E-03    2.5044       -.11890E-07** at limit **
   7  Prefactor     22.935        39.120       -.10345E-05    .25708E-05
   8  Prefactor     .10000E-03    16.020       -.19030E-05** at limit **
   9  norm          8.7550        7.8935        .29147E-06    .21518E-04
  10  Prefactor     .10000E-03    7.0413        .16082E-08** at limit **
  11  Prefactor     16.959        15.054        .19032E-07    .45169E-04
  12  norm          .42880        1.1324       -.54233E-07   -.29624E-03
  13  Prefactor     .10000E-03    3.4419        .13627E-07** at limit **
  14  Prefactor     .10000E-03    3.2054        .12431E-07** at limit **
  15  norm          1.3811        1.0933       -.31683E-07    .62677E-04
  16  norm          .10000E-03    3.4082        .29273E-06** at limit **
  17  Prefactor     1.5514        11.684       -.56460E-05   -.16708E-03
  18  Prefactor     .10000E-03    26.167       -.52954E-05** at limit **
  19  Prefactor     .10000E-03    23.379        .32968E-05** at limit **
  20  Prefactor     .10000E-03    24.497        .15371E-06** at limit **
  21  norm          5.1878        1.5586        .18832E-06    .34720E-04
  22  Prefactor     3.6512        6.1486       -.35461E-05   -.14984E-03
  23  Prefactor     15.670        15.289       -.11450E-05   -.12826E-04
  24  norm          2.0111        5.8101        .19161E-05   -.10269E-02
  25  Prefactor     .10000E-03    13.718        .10437E-05** at limit **
  26  Prefactor     20.064        57.400       -.17852E-04   -.29313E-04
  27  Prefactor     .10000E-03    2.8729        .22856E-07** at limit **
  28  Prefactor     12.057        16.282        .81329E-07    .34135E-05
  29  Normalizat    .80686        .17150        .11204E-05    .68593E-04
  30  Prefactor     1.0696        .18253        .49288E-06    .97463E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.80374
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 22.9352
  Prefactor  = 0.0001
  norm       = 8.75504
  Prefactor  = 0.0001
  Prefactor  = 16.9586
  norm       = 0.428801
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.38112
  norm       = 0.0001
  Prefactor  = 1.55144
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  norm       = 5.18783
  Prefactor  = 3.65121
  Prefactor  = 15.6699
  norm       = 2.01113
  Prefactor  = 0.0001
  Prefactor  = 20.0636
  Prefactor  = 0.0001
  Prefactor  = 12.0573
  Normalizat = 0.806862
  Prefactor  = 1.06958
 **********
 **   18 **HESSE 
 **********

 FCN=   5621.030     FROM HESSE     STATUS=OK           590 CALLS     4499 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    23.817        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    5.0547        .16454E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.8037        18.878        .12147E-02   -1.5373    
   4  Prefactor     .10000E-03    47.089        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    33.627        .41500E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    2.5149        .11583E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     22.935        39.117        .83473E-04   -1.4750    
   8  Prefactor     .10000E-03    16.172        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          8.7550        7.8957        .13546E-03   -1.5116    
  10  Prefactor     .10000E-03    7.0726        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     16.959        14.845        .97273E-04   -1.4884    
  12  norm          .42880        1.0513        .12216E-02   -1.5577    
  13  Prefactor     .10000E-03    3.4689        .13572E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.2264        .13099E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.3811        1.0937        .37034E-04   -1.5473    
  16  norm          .10000E-03    3.4466        .26821E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.5514        11.636        .34129E-03   -1.5459    
  18  Prefactor     .10000E-03    26.173        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    23.676        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    25.114        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          5.1878        1.5585        .47399E-04   -1.5252    
  22  Prefactor     3.6512        6.1399        .21140E-03   -1.5326    
  23  Prefactor     15.670        15.947        .10119E-03   -1.4916    
  24  norm          2.0111        13.871        .14579E-02   -1.5424    
  25  Prefactor     .10000E-03    13.771        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     20.064        57.306        .89374E-04   -1.4812    
  27  Prefactor     .10000E-03    2.8803        .12380E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     12.057        16.242        .11536E-03   -1.5013    
  29  Normalizat    .80686        .20167        .24153E-03   -.99815    
  30  Prefactor     1.0696        .21550        .23016E-03   -.90445    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.4249e-08
Minuit parameter uncertainties:
  1  2.44743e-06
  2  1.7338e-06
  3  14.5569
  4  4.42755e-06
  5  5.40625e-05
  6  3.1141e-06
  7  39.1608
  8  4.03098e-05
  9  7.89662
  10  1.11419e-05
  11  14.8483
  12  1.0513
  13  3.48858e-06
  14  4.00932e-07
  15  1.09373
  16  7.88679e-05
  17  8.49987
  18  8.20623e-05
  19  0.000210004
  20  0.000544472
  21  1.55848
  22  6.14091
  23  15.9509
  24  10.5666
  25  4.01615e-06
  26  57.4638
  27  3.61748e-06
  28  16.2475
  29  0.201854
  30  0.215679
Done.

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

Extracting fit parameters...

4FGL J1520.5+4209
   Spectrum: PowerLaw
308    Prefactor:  1.000e-04  2.100e-04  1.000e-04  1.000e+04 ( 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.070e+00  2.157e-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.069e-01  2.019e-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: 7.48e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.82e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/491617/likelihoodResults_381888001_382147201_4FGL_J1520.5+4209_daily_bin550.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) = 5621.03059786
delta logL = -0.000201256834771

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5621.03039597
delta logL = 6.33418494544e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.0272       1.0000          .0000       10.000    
     3 'Normalizat'    .80686       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0696       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=   5621.030     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      246 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .63305E-01    .90712E-01** at limit **
   2  Index         3.0408        8.4745        .50000       -.37394E-05
   3  Normalizat    .80686        .47081E-03    .43700E-01    .87169E-04
   4  Prefactor     1.0696        .51231E-03    .38878E-01    .60247E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Index      = 3.04077
  Normalizat = 0.806863
  Prefactor  = 1.06958
 **********
 **   18 **HESSE 
 **********

 FCN=   5621.030     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      281 TOTAL
                     EDM=   .37E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    58.692        .31224E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.0408        8.0856        .50000       -.40264    
   3  Normalizat    .80686        .52644E-02    .24152E-03   -.99815    
   4  Prefactor     1.0696        .57307E-02    .23016E-03   -.90445    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.74076e-08
Minuit parameter uncertainties:
  1  0.000732391
  2  224.769
  3  0.00526436
  4  0.00573067
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/491617': 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): 102
logL (Free Index) = 5621.03039595
delta logL = 6.48477907816e-07

Extracting fit parameters...

4FGL J1520.5+4209
   Spectrum: PowerLaw
308    Prefactor:  1.000e-04  7.324e-04  1.000e-04  1.000e+04 ( 1.000e-13)
309        Index:  3.041e+00  2.248e+02  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.070e+00  5.731e-03  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.069e-01  5.264e-03  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/491617/cmap_HighResolution_381888001_382147201_4FGL_J1520.5+4209_daily_bin550.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.82e-03', job_status='DONE', photon_flux_upper_limit='7.48e-08', time_completed='2021-09-12 01:36:54.562055', job_id='491617', GAL2='1.07', fit_tolerance='1e-08', EG2='0.81', EG='0.81', time_epoch_completed='1631435814.56', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='6.48e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.50' WHERE bin_id='550' AND source_name='4FGL J1520.5+4209' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 01:36:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0237>
Subject: Job 491617: <4FGL_J1520.5+4209_daily_bin550> in cluster <slac> Done

Job <4FGL_J1520.5+4209_daily_bin550> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sun Sep 12 01:20:18 2021
Job was executed on host(s) <bullet0237>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 01:20:20 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep 12 01:20:20 2021
Terminated at Sun Sep 12 01:36:55 2021
Results reported at Sun Sep 12 01:36:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1520.5+4209_daily_bin550 230.135 42.16 381888001 382147201 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 :                                   846.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             292.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   994 sec.
    Turnaround time :                            997 sec.

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

