/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 92 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 = 7644
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1520.5+4209_daily_bin951
RA = 230.135, Dec = 42.16
tmin = 485827201, tmax = 486086401
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='493324', job_status='RUN', time_executed='2021-09-12 01:27:27.190713', time_epoch_executed='1631435247.19' WHERE source_name='4FGL J1520.5+4209' and cadence='daily' and bin_id='951'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/493324

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/493324/ft1_4FGL_J1520.5+4209_daily_bin951.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/493324/ft2_4FGL_J1520.5+4209_daily_bin951.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/493324/ft1_4FGL_J1520.5+4209_daily_bin951.fits outfile=/scratch/kocevski/493324/ft1_filteredMKT_4FGL_J1520.5+4209_daily_bin951.fits ra=230.135 dec=42.16 rad=12.0 tmin=485827201.0 tmax=486086401.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.69
user 3.50
sys 0.17

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/493324/ft1_filtered_4FGL_J1520.5+4209_daily_bin951.fits evtable="EVENTS" scfile=/scratch/kocevski/493324/ft2_4FGL_J1520.5+4209_daily_bin951.fits sctable="SC_DATA" expcube=/scratch/kocevski/493324/ltcube_485827201_486086401_4FGL_J1520.5+4209_daily_bin951.fits outfile=/scratch/kocevski/493324/expmap_485827201_486086401_4FGL_J1520.5+4209_daily_bin951.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/493324/ltcube_485827201_486086401_4FGL_J1520.5+4209_daily_bin951.fits
.....................!
real 190.09
user 185.44
sys 4.22

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/493324/ft1_filtered_4FGL_J1520.5+4209_daily_bin951.fits scfile=/scratch/kocevski/493324/ft2_4FGL_J1520.5+4209_daily_bin951.fits outfile=/scratch/kocevski/493324/cmap_485827201_486086401_4FGL_J1520.5+4209_daily_bin951.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.59
user 0.37
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    27.604       1.0000         .10000E-03   10000.    
     6 'norm      '    10.792       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    14.677       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.2562       1.0000         .10000E-03   10000.    
    12 'norm      '    13.530       1.0000         .10000E-03   10000.    
    13 'Prefactor '    14.296       1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.8171       1.0000         .10000E-03   10000.    
    15 'norm      '    .87755       1.0000         .10000E-03   10000.    
    16 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .13523E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.7594       1.0000         .10000E-03   10000.    
    21 'norm      '    1.2878       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    27.225       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.1347       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .76877       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=   5967.823     FROM MIGRAD    STATUS=CONVERGED    741 CALLS     3872 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.2708       -.21617E-07** at limit **
   2  Prefactor     .10000E-03    9.5653       -.55937E-06** at limit **
   3  norm          .10000E-03    12.691        .12118E-06** at limit **
   4  Prefactor     .10000E-03    49.482        .10704E-05** at limit **
   5  Prefactor     27.606        31.375        .27241E-07    .15408E-04
   6  norm          10.794        9.5020        .13552E-05   -.30356E-03
   7  Prefactor     .10000E-03    21.683       -.16464E-05** at limit **
   8  Prefactor     14.675        16.689       -.14689E-07   -.23220E-04
   9  norm          .10000E-03    2.8034       -.42944E-07** at limit **
  10  Prefactor     .10000E-03    32.893        .15563E-05** at limit **
  11  Prefactor     2.2634        64.359        .16952E-05    .74739E-05
  12  norm          13.530        3.3900       -.23238E-07   -.67853E-04
  13  Prefactor     14.300        14.435       -.11290E-05   -.19522E-03
  14  Prefactor     8.8167        6.4549        .47498E-06   -.19171E-03
  15  norm          .87761        2.4371        .94940E-06    .15445E-04
  16  norm          .10000E-03    1.7734       -.91865E-07** at limit **
  17  Prefactor     .10002E-03    7.5992       -.55173E-06** at limit **
  18  Prefactor     .10000E-03    18.685       -.33122E-06** at limit **
  19  Prefactor     .10000E-03    17.319        .39349E-06** at limit **
  20  Prefactor     7.7774        15.352        .18128E-07    .10341E-03
  21  norm          1.2887        1.1448        .30113E-06   -.62829E-03
  22  Prefactor     .10000E-03    16.319        .46371E-06** at limit **
  23  Prefactor     .10000E-03    8.4198        .96154E-06** at limit **
  24  norm          .10000E-03    5.2203        .18503E-07** at limit **
  25  Prefactor     27.208        32.906       -.20498E-05   -.14212E-03
  26  Prefactor     .10000E-03    54.753       -.20142E-05** at limit **
  27  Prefactor     .10000E-03    2.7013        .23530E-07** at limit **
  28  Prefactor     .10000E-03    7.8196       -.19382E-06** at limit **
  29  Normalizat    1.1343        .18564       -.66054E-06    .92886E-05
  30  Prefactor     .76913        .17641        .17325E-06   -.38961E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 27.6056
  norm       = 10.7942
  Prefactor  = 0.000100001
  Prefactor  = 14.6748
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.26336
  norm       = 13.5299
  Prefactor  = 14.2999
  Prefactor  = 8.81672
  norm       = 0.877612
  norm       = 0.0001
  Prefactor  = 0.00010002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.77744
  norm       = 1.28871
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 27.2077
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.13435
  Prefactor  = 0.76913
 **********
 **   18 **HESSE 
 **********

 FCN=   5967.823     FROM HESSE     STATUS=OK           582 CALLS     4454 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.2760        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    9.6096        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    12.717        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    49.607        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     27.606        31.539        .76251E-04   -1.4657    
   6  norm          10.794        9.6487        .60980E-03   -1.5051    
   7  Prefactor     .10000E-03    21.979        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     14.675        16.628        .10455E-03   -1.4942    
   9  norm          .10000E-03    2.8044        .12633E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    33.501        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.2634        61.022        .27351E-03   -1.5407    
  12  norm          13.530        3.3347        .61545E-04   -1.4972    
  13  Prefactor     14.300        13.585        .10593E-03   -1.4951    
  14  Prefactor     8.8167        6.4393        .67494E-03   -1.5114    
  15  norm          .87761        2.2657        .14395E-03   -1.5521    
  16  norm          .10000E-03    1.8101        .10028E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10002E-03    29.935        .36638E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    18.700        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    17.375        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     7.7774        14.021        .14395E-03   -1.5150    
  21  norm          1.2887        1.1423        .19524E-03   -1.5481    
  22  Prefactor     .10000E-03    16.773        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    8.5312        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    5.2318        .17238E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     27.208        33.945        .76779E-04   -1.4664    
  26  Prefactor     .10000E-03    55.309        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    2.7218        .12399E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    7.8330        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.1343        .22672        .23346E-03   -.88657    
  30  Prefactor     .76913        .21290        .27916E-03   -1.0088    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.01966e-09
Minuit parameter uncertainties:
  1  4.64561e-06
  2  5.14665e-05
  3  4.61573e-06
  4  0.000199023
  5  31.5577
  6  9.65008
  7  0.00021445
  8  16.6337
  9  2.80258e-06
  10  0.000151646
  11  23.5306
  12  3.3347
  13  13.5877
  14  6.4398
  15  2.26596
  16  8.29753e-07
  17  0.00153101
  18  4.24066e-05
  19  6.84691e-05
  20  14.0269
  21  1.1423
  22  3.15071e-05
  23  7.32052e-05
  24  2.19916e-06
  25  33.9689
  26  0.000400492
  27  4.87219e-07
  28  1.45026e-05
  29  0.226911
  30  0.213124
Done.

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

Extracting fit parameters...

4FGL J1520.5+4209
   Spectrum: PowerLaw
308    Prefactor:  1.000e-04  6.847e-05  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:  7.691e-01  2.131e-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.134e+00  2.269e-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: 8.62e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.71e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/493324/likelihoodResults_485827201_486086401_4FGL_J1520.5+4209_daily_bin951.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) = 5967.82360189
delta logL = -0.000274315423667

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5967.7847783
delta logL = 0.0385492734968

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .41617       1.0000         .10000E-03   10000.    
     2 'Index     '    4.1851       1.0000          .0000       10.000    
     3 'Normalizat'    1.1171       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77898       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=   5967.785     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      308 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .41927        14.792        .28697E-01    .10355E-02
   2  Index         4.1844        3.1386        .20425        .54565E-04
   3  Normalizat    1.1169        .18273E-01    .37345E-01   -.19671E-04
   4  Prefactor     .77910        .18441E-01    .62743E-01   -.17779E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.419271
  Index      = 4.18437
  Normalizat = 1.11686
  Prefactor  = 0.779101
 **********
 **   18 **HESSE 
 **********

 FCN=   5967.785     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      343 TOTAL
                     EDM=   .15E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .41927        247.49        .14134E-02   -1.5578    
   2  Index         4.1844        7.8621        .12668E-01   -.16386    
   3  Normalizat    1.1169        .12815        .23495E-03   -.89212    
   4  Prefactor     .77910        .11624        .27752E-03   -1.0050    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.53957e-07
Minuit parameter uncertainties:
  1  20.456
  2  21.4932
  3  0.12819
  4  0.116275
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/493324': 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) = 5967.78477681
delta logL = 0.0385507630781

Extracting fit parameters...

4FGL J1520.5+4209
   Spectrum: PowerLaw
308    Prefactor:  4.193e-01  2.046e+01  1.000e-04  1.000e+04 ( 1.000e-13)
309        Index:  4.184e+00  2.149e+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:  7.791e-01  1.163e-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.117e+00  1.282e-01  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/493324/cmap_HighResolution_485827201_486086401_4FGL_J1520.5+4209_daily_bin951.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.71e-03', job_status='DONE', photon_flux_upper_limit='8.62e-08', time_completed='2021-09-12 01:41:50.584477', job_id='493324', GAL2='0.78', fit_tolerance='1e-08', EG2='1.12', EG='1.13', time_epoch_completed='1631436110.58', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.77', dlogl='3.86e-02', ts2='0.08', photon_index_error='0.00', photon_index='2.50' WHERE bin_id='951' AND source_name='4FGL J1520.5+4209' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 01:41:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0254>
Subject: Job 493324: <4FGL_J1520.5+4209_daily_bin951> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1520.5+4209_daily_bin951 230.135 42.16 485827201 486086401 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 :                                   856.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             299.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   980 sec.
    Turnaround time :                            982 sec.

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

