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


Performing analysis on: 4FGL_J1520.5+4209_daily_bin941
RA = 230.135, Dec = 42.16
tmin = 483235201, tmax = 483494401
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='493309', job_status='RUN', time_executed='2021-09-12 01:27:53.509081', time_epoch_executed='1631435273.51' WHERE source_name='4FGL J1520.5+4209' and cadence='daily' and bin_id='941'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/493309

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/493309/ft1_4FGL_J1520.5+4209_daily_bin941.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/493309/ft2_4FGL_J1520.5+4209_daily_bin941.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/493309/ft1_4FGL_J1520.5+4209_daily_bin941.fits outfile=/scratch/kocevski/493309/ft1_filteredMKT_4FGL_J1520.5+4209_daily_bin941.fits ra=230.135 dec=42.16 rad=12.0 tmin=483235201.0 tmax=483494401.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.44
user 3.21
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/493309/ft2_4FGL_J1520.5+4209_daily_bin941.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/493309/ft1_filteredMKT_4FGL_J1520.5+4209_daily_bin941.fits evtable="EVENTS" outfile="/scratch/kocevski/493309/ft1_filtered_4FGL_J1520.5+4209_daily_bin941.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/493309/ft1_filtered_4FGL_J1520.5+4209_daily_bin941.fits" evtable="EVENTS" scfile=/scratch/kocevski/493309/ft2_4FGL_J1520.5+4209_daily_bin941.fits sctable="SC_DATA" outfile=/scratch/kocevski/493309/ltcube_483235201_483494401_4FGL_J1520.5+4209_daily_bin941.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/493309/ft2_4FGL_J1520.5+4209_daily_bin941.fits
.....................!
real 12.02
user 11.67
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/493309/ft1_filtered_4FGL_J1520.5+4209_daily_bin941.fits evtable="EVENTS" scfile=/scratch/kocevski/493309/ft2_4FGL_J1520.5+4209_daily_bin941.fits sctable="SC_DATA" expcube=/scratch/kocevski/493309/ltcube_483235201_483494401_4FGL_J1520.5+4209_daily_bin941.fits outfile=/scratch/kocevski/493309/expmap_483235201_483494401_4FGL_J1520.5+4209_daily_bin941.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/493309/ltcube_483235201_483494401_4FGL_J1520.5+4209_daily_bin941.fits
.....................!
real 190.38
user 185.20
sys 4.81

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/493309/ft1_filtered_4FGL_J1520.5+4209_daily_bin941.fits scfile=/scratch/kocevski/493309/ft2_4FGL_J1520.5+4209_daily_bin941.fits outfile=/scratch/kocevski/493309/cmap_483235201_483494401_4FGL_J1520.5+4209_daily_bin941.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.60
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/493309/ft1_filtered_4FGL_J1520.5+4209_daily_bin941.fits scfile=/scratch/kocevski/493309/ft2_4FGL_J1520.5+4209_daily_bin941.fits outfile=/scratch/kocevski/493309/cmap_HighResolution_483235201_483494401_4FGL_J1520.5+4209_daily_bin941.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.55
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    44.381       1.0000         .10000E-03   10000.    
     2 'Prefactor '    12.885       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    17.356       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .12482E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    10.371       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10198E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10850E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    3.1558       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.9270       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .19750E-02   1.0000         .10000E-03   10000.    
    12 'norm      '    7.2380       1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.3708       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.1896       1.0000         .10000E-03   10000.    
    15 'norm      '    4.5491       1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    10.595       1.0000         .10000E-03   10000.    
    18 'Prefactor '    61.958       1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.020       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10169E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    19.324       1.0000         .10000E-03   10000.    
    24 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    126.86       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10606E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    14.992       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .42049       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.3498       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=   5218.713     FROM MIGRAD    STATUS=CONVERGED    807 CALLS     4048 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     44.373        33.091        .35542E-06    .82110E-04
   2  Prefactor     12.886        16.992        .10123E-06   -.72240E-05
   3  norm          .10000E-03    6.0518        .19397E-08** at limit **
   4  Prefactor     16.794        117.61        .87850E-06   -.50136E-05
   5  Prefactor     .10000E-03    36.805        .52113E-06** at limit **
   6  norm          10.370        7.2165        .17179E-08    .76546E-04
   7  Prefactor     .10000E-03    93.723        .42982E-06** at limit **
   8  Prefactor     .10000E-03    6.4904       -.15213E-06** at limit **
   9  norm          3.1553        6.0477        .22553E-06    .99051E-05
  10  Prefactor     5.9232        15.698        .55362E-07    .20043E-04
  11  Prefactor     .10020E-03    12.514        .11728E-06** at limit **
  12  norm          7.2397        2.4424        .59019E-07   -.47358E-04
  13  Prefactor     6.3709        8.2139        .65780E-07    .30329E-04
  14  Prefactor     1.1900        5.5483        .24427E-05    .44287E-04
  15  norm          4.5487        2.1233        .18941E-07    .80123E-04
  16  norm          .10000E-03    1.5390       -.78272E-08** at limit **
  17  Prefactor     10.594        8.5920       -.23490E-07   -.15733E-05
  18  Prefactor     61.948        59.402        .15834E-07    .65016E-05
  19  Prefactor     10.017        17.189       -.27102E-07    .43851E-05
  20  Prefactor     .10000E-03    16.523        .11101E-06** at limit **
  21  norm          .10000E-03    .52213       -.22289E-06** at limit **
  22  Prefactor     .10000E-03    2.8769       -.11249E-06** at limit **
  23  Prefactor     19.329        17.862        .41132E-07    .27770E-04
  24  norm          .10000E-03    23.217       -.11010E-05** at limit **
  25  Prefactor     .10000E-03    13.307       -.14562E-06** at limit **
  26  Prefactor     126.84        93.977       -.12962E-06   -.16504E-04
  27  Prefactor     .10000E-03    4.1243        .11069E-05** at limit **
  28  Prefactor     14.968        26.821       -.61429E-07    .67003E-05
  29  Normalizat    .42050        .20700       -.17897E-05    .29069E-04
  30  Prefactor     1.3499        .20491        .12610E-05   -.42819E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 44.3726
  Prefactor  = 12.8861
  norm       = 0.0001
  Prefactor  = 16.7942
  Prefactor  = 0.0001
  norm       = 10.3697
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.15529
  Prefactor  = 5.92324
  Prefactor  = 0.000100198
  norm       = 7.2397
  Prefactor  = 6.37095
  Prefactor  = 1.19001
  norm       = 4.54868
  norm       = 0.0001
  Prefactor  = 10.5939
  Prefactor  = 61.9477
  Prefactor  = 10.0171
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.3292
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 126.84
  Prefactor  = 0.0001
  Prefactor  = 14.9675
  Normalizat = 0.420497
  Prefactor  = 1.34992
 **********
 **   18 **HESSE 
 **********

 FCN=   5218.713     FROM HESSE     STATUS=OK           590 CALLS     4638 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     44.373        33.177        .60180E-04   -1.4375    
   2  Prefactor     12.886        16.998        .11159E-03   -1.4990    
   3  norm          .10000E-03    6.0522        .17357E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     16.794        116.74        .96137E-04   -1.4888    
   5  Prefactor     .10000E-03    37.323        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          10.370        7.2024        .12442E-03   -1.5064    
   7  Prefactor     .10000E-03    94.860        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6.4952        .17970E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.1553        6.0274        .22816E-03   -1.5353    
  10  Prefactor     5.9232        15.611        .16494E-03   -1.5221    
  11  Prefactor     .10020E-03    92.385        .47275E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          7.2397        2.4040        .61442E-04   -1.5170    
  13  Prefactor     6.3709        8.1971        .15902E-03   -1.5203    
  14  Prefactor     1.1900        5.5534        .32470E-03   -1.5490    
  15  norm          4.5487        2.1232        .63262E-04   -1.5281    
  16  norm          .10000E-03    1.5448        .87386E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     10.594        8.5364        .12309E-03   -1.5057    
  18  Prefactor     61.948        59.414        .50977E-04   -1.4132    
  19  Prefactor     10.017        17.138        .12659E-03   -1.5075    
  20  Prefactor     .10000E-03    16.881        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    .88016        .99289E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    2.8898        .11959E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     19.329        17.759        .91112E-04   -1.4828    
  24  norm          .10000E-03    23.575        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    13.352        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     126.84        93.903        .35741E-04   -1.3451    
  27  Prefactor     .10000E-03    4.1156        .14255E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     14.968        26.717        .10344E-03   -1.4934    
  29  Normalizat    .42050        .22577        .32942E-03   -1.1625    
  30  Prefactor     1.3499        .22977        .21066E-03   -.81835    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.17872e-09
Minuit parameter uncertainties:
  1  33.1907
  2  17.0039
  3  6.28328e-08
  4  88.8042
  5  9.16047e-06
  6  7.20296
  7  0.000103418
  8  7.71394e-06
  9  6.0286
  10  15.6216
  11  0.00855745
  12  2.40402
  13  8.19854
  14  5.14204
  15  2.12325
  16  1.89808e-06
  17  8.53741
  18  59.471
  19  17.1468
  20  8.52408e-06
  21  1.42857e-05
  22  1.64364e-06
  23  17.7641
  24  2.20002e-05
  25  4.78635e-06
  26  94.0133
  27  1.16605e-05
  28  26.7379
  29  0.226264
  30  0.229939
Done.

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

Extracting fit parameters...

4FGL J1520.5+4209
   Spectrum: PowerLaw
308    Prefactor:  1.002e+01  1.715e+01  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.350e+00  2.299e-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:  4.205e-01  2.263e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/493309/likelihoodResults_483235201_483494401_4FGL_J1520.5+4209_daily_bin941.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) = 5218.42879926
delta logL = 0.28463122551

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5218.37287441
delta logL = 0.340556077121

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.442       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8018       1.0000          .0000       10.000    
     3 'Normalizat'    .43395       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3357       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5218.373     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      296 TOTAL
                     EDM=   .62E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.437        24.409        .88587E-04   -.10908E-04
   2  Index         1.8014        .69557        .95595E-02   -.41787E-04
   3  Normalizat    .43408        .20338        .32433E-03    .89035E-05
   4  Prefactor     1.3356        .22473        .21146E-03   -.86022E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.4369
  Index      = 1.8014
  Normalizat = 0.434078
  Prefactor  = 1.3356
 **********
 **   18 **HESSE 
 **********

 FCN=   5218.373     FROM HESSE     STATUS=OK            25 CALLS      321 TOTAL
                     EDM=   .24E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.437        24.472        .35435E-05   -1.4804    
   2  Index         1.8014        .69742        .19119E-02   -.69413    
   3  Normalizat    .43408        .20350        .12973E-04   -1.1558    
   4  Prefactor     1.3356        .22487        .84583E-05   -.82254    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.38287e-12
Minuit parameter uncertainties:
  1  24.4839
  2  0.701308
  3  0.203847
  4  0.225035
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/493309': 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) = 5218.37287401
delta logL = 0.340556475671

Extracting fit parameters...

4FGL J1520.5+4209
   Spectrum: PowerLaw
308    Prefactor:  2.044e+01  2.448e+01  1.000e-04  1.000e+04 ( 1.000e-13)
309        Index:  1.801e+00  7.013e-01  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.336e+00  2.250e-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:  4.341e-01  2.038e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.16
Ra Dec: 230.135 42.160
Photon Index (Free Index): 1.80 +/- 0.70
Photon Flux (Free Index): 1.43e-08 +/- 2.07e-08
Energy Flux (Free Index): 1.70e-05 +/- 2.97e-05

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/493309/cmap_HighResolution_483235201_483494401_4FGL_J1520.5+4209_daily_bin941.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.21e-03', comment='SUCCESS', energy_flux2='1.70e-05', dlogl='3.41e-01', photon_flux2='1.43e-08', job_status='DONE', time_completed='2021-09-12 01:41:38.933651', photon_index_error2='0.70', photon_index2='1.80', ts='0.48', fit_tolerance='1e-08', GAL='1.35', photon_index_error='0.00', photon_flux_upper_limit='9.26e-08', energy_flux_error2='2.97e-05', EG='0.42', time_epoch_completed='1631436098.93', return_code='0', job_id='493309', GAL2='1.34', EG2='0.43', return_code2='0', photon_flux_error2='2.07e-08', ts2='1.16', photon_index='2.50' WHERE bin_id='941' AND source_name='4FGL J1520.5+4209' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 01:41:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0073>
Subject: Job 493309: <4FGL_J1520.5+4209_daily_bin941> in cluster <slac> Done

Job <4FGL_J1520.5+4209_daily_bin941> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep 12 01:25:28 2021
Job was executed on host(s) <bullet0073>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 01:25:29 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:25:29 2021
Terminated at Sun Sep 12 01:41:39 2021
Results reported at Sun Sep 12 01:41:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1520.5+4209_daily_bin941 230.135 42.16 483235201 483494401 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 :                                   821.13 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             257.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   970 sec.
    Turnaround time :                            971 sec.

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

