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


Performing analysis on: 4FGL_J1520.5+4209_daily_bin635
RA = 230.135, Dec = 42.16
tmin = 403920001, tmax = 404179201
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='491753', job_status='RUN', time_executed='2021-09-12 01:22:04.327865', time_epoch_executed='1631434924.33' WHERE source_name='4FGL J1520.5+4209' and cadence='daily' and bin_id='635'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/491753

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

Retrieving the FT1 file...

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

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

Retrieving 39 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/491753/ft1_4FGL_J1520.5+4209_daily_bin635.fits


Retrieving the FT1 file...

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

Retrieving 39 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/491753/ft2_4FGL_J1520.5+4209_daily_bin635.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/491753/ft1_4FGL_J1520.5+4209_daily_bin635.fits outfile=/scratch/kocevski/491753/ft1_filteredMKT_4FGL_J1520.5+4209_daily_bin635.fits ra=230.135 dec=42.16 rad=12.0 tmin=403920001.0 tmax=404179201.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 10.13
user 9.78
sys 0.31

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/491753/ft1_filtered_4FGL_J1520.5+4209_daily_bin635.fits" evtable="EVENTS" scfile=/scratch/kocevski/491753/ft2_4FGL_J1520.5+4209_daily_bin635.fits sctable="SC_DATA" outfile=/scratch/kocevski/491753/ltcube_403920001_404179201_4FGL_J1520.5+4209_daily_bin635.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/491753/ft2_4FGL_J1520.5+4209_daily_bin635.fits
.....................!
real 9.15
user 8.80
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/491753/ft1_filtered_4FGL_J1520.5+4209_daily_bin635.fits evtable="EVENTS" scfile=/scratch/kocevski/491753/ft2_4FGL_J1520.5+4209_daily_bin635.fits sctable="SC_DATA" expcube=/scratch/kocevski/491753/ltcube_403920001_404179201_4FGL_J1520.5+4209_daily_bin635.fits outfile=/scratch/kocevski/491753/expmap_403920001_404179201_4FGL_J1520.5+4209_daily_bin635.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/491753/ltcube_403920001_404179201_4FGL_J1520.5+4209_daily_bin635.fits
.....................!
real 190.40
user 185.26
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/491753/ft1_filtered_4FGL_J1520.5+4209_daily_bin635.fits scfile=/scratch/kocevski/491753/ft2_4FGL_J1520.5+4209_daily_bin635.fits outfile=/scratch/kocevski/491753/cmap_403920001_404179201_4FGL_J1520.5+4209_daily_bin635.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.37
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/491753/ft1_filtered_4FGL_J1520.5+4209_daily_bin635.fits scfile=/scratch/kocevski/491753/ft2_4FGL_J1520.5+4209_daily_bin635.fits outfile=/scratch/kocevski/491753/cmap_HighResolution_403920001_404179201_4FGL_J1520.5+4209_daily_bin635.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/491753/ft1_filtered_4FGL_J1520.5+4209_daily_bin635.fits evtable="EVENTS" scfile=/scratch/kocevski/491753/ft2_4FGL_J1520.5+4209_daily_bin635.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/491753/Model_4FGL_J1520.5+4209_daily_bin635.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/491753/ft1_filtered_4FGL_J1520.5+4209_daily_bin635.fits.....................!
real 33.06
user 31.78
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    61.922       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    36.364       1.0000         .10000E-03   10000.    
     6 'norm      '    6.5212       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    5.8354       1.0000         .10000E-03   10000.    
    10 'Prefactor '    26.594       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .75523E-02   1.0000         .10000E-03   10000.    
    12 'norm      '    4.6029       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.666       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    6.2959       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11041E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    45.196       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.2056       1.0000         .10000E-03   10000.    
    21 'norm      '    8.3391       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    15.146       1.0000         .10000E-03   10000.    
    24 'norm      '    .10557E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10103E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10323E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    28.710       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0100       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .52607       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=   3307.629     FROM MIGRAD    STATUS=CONVERGED    749 CALLS     3890 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.6542        .13096E-07** at limit **
   2  Prefactor     .10000E-03    11.644       -.13996E-06** at limit **
   3  norm          61.920        38.319       -.77562E-08   -.17812E-04
   4  Prefactor     .10000E-03    32.116        .16449E-06** at limit **
   5  Prefactor     36.339        30.810       -.20486E-07   -.13278E-03
   6  norm          6.5258        10.186        .12084E-06    .11096E-03
   7  Prefactor     .10000E-03    21.343       -.23162E-06** at limit **
   8  Prefactor     .10000E-03    8.4467       -.37089E-07** at limit **
   9  norm          5.8304        10.245        .14910E-06    .52244E-04
  10  Prefactor     26.594        22.429       -.55763E-07    .17212E-04
  11  Prefactor     .10005E-03    96.853       -.28476E-04** at limit **
  12  norm          4.6056        2.3051       -.34727E-06   -.11301E-02
  13  Prefactor     .10000E-03    4.3903        .28331E-07** at limit **
  14  Prefactor     10.669        7.5252       -.44737E-06   -.15279E-03
  15  norm          .10000E-03    .60121       -.42253E-08** at limit **
  16  norm          6.2955        5.4082        .20623E-06    .15782E-02
  17  Prefactor     .10001E-03    17.959        .83144E-06** at limit **
  18  Prefactor     .10001E-03    66.742       -.48682E-06** at limit **
  19  Prefactor     45.160        33.921        .42828E-06    .47443E-03
  20  Prefactor     1.2350        100.37        .41724E-05    .14361E-03
  21  norm          8.3389        2.6054        .43635E-07    .90228E-04
  22  Prefactor     .10000E-03    17.212        .14958E-06** at limit **
  23  Prefactor     15.130        22.167       -.80463E-06   -.24197E-03
  24  norm          .10000E-03    15.350       -.16132E-06** at limit **
  25  Prefactor     .10000E-03    9.8330        .10898E-07** at limit **
  26  Prefactor     .10000E-03    34.967        .21896E-06** at limit **
  27  Prefactor     .10000E-03    11.180       -.54903E-07** at limit **
  28  Prefactor     28.707        27.308        .61854E-06    .22120E-03
  29  Normalizat    1.0098        .21995        .25382E-05    .38254E-03
  30  Prefactor     .52647        .21183       -.45652E-05   -.24622E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 61.9198
  Prefactor  = 0.0001
  Prefactor  = 36.3387
  norm       = 6.52585
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.83044
  Prefactor  = 26.5936
  Prefactor  = 0.000100051
  norm       = 4.60563
  Prefactor  = 0.0001
  Prefactor  = 10.6694
  norm       = 0.0001
  norm       = 6.29551
  Prefactor  = 0.000100006
  Prefactor  = 0.000100006
  Prefactor  = 45.1597
  Prefactor  = 1.23498
  norm       = 8.33888
  Prefactor  = 0.0001
  Prefactor  = 15.1301
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 28.7068
  Normalizat = 1.00976
  Prefactor  = 0.526475
 **********
 **   18 **HESSE 
 **********

 FCN=   3307.629     FROM HESSE     STATUS=OK           572 CALLS     4462 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.6568        .17455E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    11.652        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          61.920        38.312        .50992E-04   -1.4133    
   4  Prefactor     .10000E-03    32.114        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     36.339        30.899        .66459E-04   -1.4502    
   6  norm          6.5258        10.188        .15716E-03   -1.5197    
   7  Prefactor     .10000E-03    21.347        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    8.4541        .16322E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          5.8304        10.240        .16625E-03   -1.5225    
  10  Prefactor     26.594        22.465        .77683E-04   -1.4676    
  11  Prefactor     .10005E-03    98.815        .46389E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          4.6056        2.2536        .58288E-04   -1.5279    
  13  Prefactor     .10000E-03    4.4126        .11768E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     10.669        7.4578        .12268E-03   -1.5055    
  15  norm          .10000E-03    .60501        .43537E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          6.2955        5.4459        .10909E-03   -1.5206    
  17  Prefactor     .10001E-03    18.413        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10001E-03    66.756        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     45.160        34.047        .59638E-04   -1.4363    
  20  Prefactor     1.2350        104.49        .41274E-03   -1.5486    
  21  norm          8.3389        2.6016        .49727E-04   -1.5130    
  22  Prefactor     .10000E-03    17.296        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     15.130        22.190        .10292E-03   -1.4930    
  24  norm          .10000E-03    15.362        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    9.8401        .17615E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    34.980        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    11.286        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     28.707        27.147        .74771E-04   -1.4636    
  29  Normalizat    1.0098        .26488        .21348E-03   -.92704    
  30  Prefactor     .52647        .25351        .29008E-03   -1.1078    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.80664e-09
Minuit parameter uncertainties:
  1  2.65279e-05
  2  4.30746e-05
  3  38.3276
  4  0.000197648
  5  30.9126
  6  10.1912
  7  5.74579e-05
  8  2.52929e-05
  9  10.2428
  10  22.4724
  11  0.00448036
  12  2.25362
  13  2.32227e-06
  14  7.45847
  15  7.57533e-07
  16  5.44632
  17  0.000653545
  18  0.00125729
  19  34.0615
  20  22.7591
  21  2.60167
  22  6.51737e-05
  23  22.2023
  24  0.000223446
  25  1.63447e-05
  26  8.83483e-05
  27  1.69432e-05
  28  27.1582
  29  0.265227
  30  0.254062
Done.

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

Extracting fit parameters...

4FGL J1520.5+4209
   Spectrum: PowerLaw
308    Prefactor:  4.516e+01  3.406e+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:  5.265e-01  2.541e-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:  1.010e+00  2.652e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.26
Ra Dec: 230.135 42.160
Photon Index (Fixed Index): 2.50 +/- 0.00
Photon Flux (Fixed Index): 8.13e-08 +/- 6.13e-08
Energy Flux (Fixed Index): 2.35e-05 +/- 1.77e-05

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) = 3307.40112332
delta logL = 0.228048077684

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3307.38001074
delta logL = 0.2491606577

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    56.776       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0725       1.0000          .0000       10.000    
     3 'Normalizat'    1.0450       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .50419       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=   3307.380     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      277 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     56.775        40.686        .53239E-04    .45097E-03
   2  Index         2.0725        .62933        .70555E-02    .16723E-03
   3  Normalizat    1.0450        .25466        .21040E-03   -.36635E-04
   4  Prefactor     .50420        .25153        .29599E-03    .13827E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 56.7752
  Index      = 2.07246
  Normalizat = 1.04502
  Prefactor  = 0.504204
 **********
 **   18 **HESSE 
 **********

 FCN=   3307.380     FROM HESSE     STATUS=OK            23 CALLS      300 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     56.775        40.655        .10648E-04   -1.4200    
   2  Index         2.0725        .62825        .28222E-03   -.62551    
   3  Normalizat    1.0450        .25484        .84160E-05   -.91537    
   4  Prefactor     .50420        .25171        .11839E-04   -1.1178    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.2944e-09
Minuit parameter uncertainties:
  1  40.6746
  2  0.630788
  3  0.255142
  4  0.252273
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/491753': 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) = 3307.38001074
delta logL = 0.249160660281

Extracting fit parameters...

4FGL J1520.5+4209
   Spectrum: PowerLaw
308    Prefactor:  5.678e+01  4.067e+01  1.000e-04  1.000e+04 ( 1.000e-13)
309        Index:  2.072e+00  6.308e-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:  5.042e-01  2.523e-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:  1.045e+00  2.551e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.73
Ra Dec: 230.135 42.160
Photon Index (Free Index): 2.07 +/- 0.63
Photon Flux (Free Index): 5.45e-08 +/- 5.94e-08
Energy Flux (Free Index): 3.18e-05 +/- 2.95e-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/491753/cmap_HighResolution_403920001_404179201_4FGL_J1520.5+4209_daily_bin635.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.13e-08', energy_flux2='3.18e-05', photon_flux_error='6.13e-08', dlogl='2.49e-01', energy_flux='2.35e-05', photon_flux2='5.45e-08', job_status='DONE', time_completed='2021-09-12 01:31:56.756275', photon_index_error2='0.63', photon_index2='2.07', ts='5.26', fit_tolerance='1e-08', GAL='0.53', photon_index_error='0.00', energy_flux_error2='2.95e-05', EG='1.01', time_epoch_completed='1631435516.76', return_code='0', job_id='491753', GAL2='0.50', EG2='1.05', return_code2='0', energy_flux_error='1.77e-05', photon_flux_error2='5.94e-08', ts2='5.73', photon_index='2.50' WHERE bin_id='635' AND source_name='4FGL J1520.5+4209' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 01:31:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0117>
Subject: Job 491753: <4FGL_J1520.5+4209_daily_bin635> in cluster <slac> Done

Job <4FGL_J1520.5+4209_daily_bin635> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sun Sep 12 01:20:27 2021
Job was executed on host(s) <bullet0117>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 01:20: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:20:29 2021
Terminated at Sun Sep 12 01:31:57 2021
Results reported at Sun Sep 12 01:31:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1520.5+4209_daily_bin635 230.135 42.16 403920001 404179201 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 :                                   589.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             275.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   688 sec.
    Turnaround time :                            690 sec.

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

