/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 120 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 = 7472
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1520.5+4209_daily_bin208
RA = 230.135, Dec = 42.16
tmin = 293241601, tmax = 293500801
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='488855', job_status='RUN', time_executed='2021-09-12 01:12:53.147497', time_epoch_executed='1631434373.15' WHERE source_name='4FGL J1520.5+4209' and cadence='daily' and bin_id='208'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/488855

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/488855/ft1_4FGL_J1520.5+4209_daily_bin208.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/488855/ft2_4FGL_J1520.5+4209_daily_bin208.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/488855/ft1_4FGL_J1520.5+4209_daily_bin208.fits outfile=/scratch/kocevski/488855/ft1_filteredMKT_4FGL_J1520.5+4209_daily_bin208.fits ra=230.135 dec=42.16 rad=12.0 tmin=293241601.0 tmax=293500801.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.58
user 3.42
sys 0.15

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/488855/ft1_filtered_4FGL_J1520.5+4209_daily_bin208.fits" evtable="EVENTS" scfile=/scratch/kocevski/488855/ft2_4FGL_J1520.5+4209_daily_bin208.fits sctable="SC_DATA" outfile=/scratch/kocevski/488855/ltcube_293241601_293500801_4FGL_J1520.5+4209_daily_bin208.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/488855/ft2_4FGL_J1520.5+4209_daily_bin208.fits
.....................!
real 11.70
user 11.33
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/488855/ft1_filtered_4FGL_J1520.5+4209_daily_bin208.fits evtable="EVENTS" scfile=/scratch/kocevski/488855/ft2_4FGL_J1520.5+4209_daily_bin208.fits sctable="SC_DATA" expcube=/scratch/kocevski/488855/ltcube_293241601_293500801_4FGL_J1520.5+4209_daily_bin208.fits outfile=/scratch/kocevski/488855/expmap_293241601_293500801_4FGL_J1520.5+4209_daily_bin208.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/488855/ltcube_293241601_293500801_4FGL_J1520.5+4209_daily_bin208.fits
.....................!
real 189.51
user 184.63
sys 4.58

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/488855/ft1_filtered_4FGL_J1520.5+4209_daily_bin208.fits scfile=/scratch/kocevski/488855/ft2_4FGL_J1520.5+4209_daily_bin208.fits outfile=/scratch/kocevski/488855/cmap_293241601_293500801_4FGL_J1520.5+4209_daily_bin208.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.72
user 0.39
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/488855/ft1_filtered_4FGL_J1520.5+4209_daily_bin208.fits scfile=/scratch/kocevski/488855/ft2_4FGL_J1520.5+4209_daily_bin208.fits outfile=/scratch/kocevski/488855/cmap_HighResolution_293241601_293500801_4FGL_J1520.5+4209_daily_bin208.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.53
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.621       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10124E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10121E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    32.604       1.0000         .10000E-03   10000.    
     6 'norm      '    1.0320       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10558E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    12.855       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    26.010       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10142E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .62437       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.2754       1.0000         .10000E-03   10000.    
    16 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    32.453       1.0000         .10000E-03   10000.    
    20 'Prefactor '    19.389       1.0000         .10000E-03   10000.    
    21 'norm      '    2.3320       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .76229       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    7.7572       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10107E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    15.477       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0597       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .90045       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=   5882.069     FROM MIGRAD    STATUS=CONVERGED    750 CALLS     3884 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.620        28.423        .68593E-07   -.10570E-04
   2  Prefactor     .10000E-03    25.606       -.17284E-05** at limit **
   3  norm          .10000E-03    14.597        .45725E-06** at limit **
   4  Prefactor     .10000E-03    36.892        .26237E-05** at limit **
   5  Prefactor     32.599        26.804       -.39491E-06   -.50752E-04
   6  norm          1.0315        9.7310        .36769E-05   -.14087E-03
   7  Prefactor     .10000E-03    76.531       -.20507E-05** at limit **
   8  Prefactor     12.852        15.106        .11511E-05   -.10617E-03
   9  norm          .10000E-03    2.6334       -.16978E-07** at limit **
  10  Prefactor     26.008        19.580       -.41090E-06   -.63035E-04
  11  Prefactor     .10000E-03    19.693        .13815E-05** at limit **
  12  norm          .62497        1.0611        .21070E-06    .35217E-03
  13  Prefactor     .10000E-03    4.8802        .29261E-07** at limit **
  14  Prefactor     .10000E-03    2.2220        .73238E-08** at limit **
  15  norm          2.2753        1.5270        .14521E-07   -.44159E-04
  16  norm          .10000E-03    2.2770        .34653E-07** at limit **
  17  Prefactor     .10000E-03    10.118        .21581E-06** at limit **
  18  Prefactor     .10000E-03    27.160       -.15310E-05** at limit **
  19  Prefactor     32.448        27.911       -.44602E-06   -.85546E-04
  20  Prefactor     19.398        15.963        .35860E-06   -.47900E-05
  21  norm          2.3318        1.2150        .23724E-07   -.60284E-04
  22  Prefactor     .10000E-03    4.7433        .42969E-07** at limit **
  23  Prefactor     .10000E-03    7.4531       -.22480E-07** at limit **
  24  norm          .76540        9.4380        .35983E-06   -.62826E-04
  25  Prefactor     .10000E-03    13.377       -.85322E-06** at limit **
  26  Prefactor     7.7509        163.37       -.10202E-05   -.13465E-04
  27  Prefactor     .10000E-03    2.4461       -.16224E-07** at limit **
  28  Prefactor     15.476        18.838        .16252E-06   -.24605E-05
  29  Normalizat    1.0597        .18995       -.30532E-06   -.10999E-03
  30  Prefactor     .90043        .18514       -.49074E-06   -.77908E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.6199
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 32.5993
  norm       = 1.03146
  Prefactor  = 0.000100001
  Prefactor  = 12.8517
  norm       = 0.0001
  Prefactor  = 26.008
  Prefactor  = 0.0001
  norm       = 0.624969
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.27528
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 32.4482
  Prefactor  = 19.3977
  norm       = 2.33182
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.765399
  Prefactor  = 0.0001
  Prefactor  = 7.7509
  Prefactor  = 0.0001
  Prefactor  = 15.4761
  Normalizat = 1.05973
  Prefactor  = 0.900429
 **********
 **   18 **HESSE 
 **********

 FCN=   5882.069     FROM HESSE     STATUS=OK           590 CALLS     4474 TOTAL
                     EDM=   .33E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.620        28.551        .11275E-03   -1.4997    
   2  Prefactor     .10000E-03    26.223        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    14.668        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    38.052        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     32.599        26.856        .70175E-04   -1.4565    
   6  norm          1.0315        10.243        .45830E-03   -1.5505    
   7  Prefactor     .10000E-03    77.801        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     12.852        15.008        .55861E-03   -1.4991    
   9  norm          .10000E-03    2.6343        .12155E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     26.008        19.595        .78548E-04   -1.4688    
  11  Prefactor     .10000E-03    20.123        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .62497        .88312        .10114E-02   -1.5550    
  13  Prefactor     .10000E-03    4.9069        .16527E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.2316        .11163E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.2753        1.5222        .73728E-04   -1.5406    
  16  norm          .10000E-03    2.3134        .11288E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    10.215        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    27.566        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     32.448        28.001        .70338E-04   -1.4568    
  20  Prefactor     19.398        15.966        .90960E-04   -1.4827    
  21  norm          2.3318        1.2115        .58823E-04   -1.5403    
  22  Prefactor     .10000E-03    4.7613        .16299E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    7.4570        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .76540        34.751        .45204E-02   -1.5533    
  25  Prefactor     .10000E-03    13.530        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     7.7509        164.63        .14397E-03   -1.5151    
  27  Prefactor     .10000E-03    2.4507        .11702E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     15.476        18.825        .10181E-03   -1.4921    
  29  Normalizat    1.0597        .22488        .23393E-03   -.91055    
  30  Prefactor     .90043        .21849        .25914E-03   -.96126    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.3205e-08
Minuit parameter uncertainties:
  1  28.5815
  2  0.000323573
  3  7.35105e-05
  4  0.000633301
  5  26.8662
  6  6.502
  7  0.000624063
  8  15.0129
  9  8.14792e-07
  10  19.5999
  11  0.000191037
  12  0.883142
  13  2.79928e-06
  14  1.6868e-06
  15  1.52219
  16  4.44529e-07
  17  2.2217e-05
  18  0.000317939
  19  28.012
  20  15.97
  21  1.21147
  22  3.20767e-06
  23  5.74693e-07
  24  10.3205
  25  0.000122086
  26  71.669
  27  1.36176e-06
  28  18.832
  29  0.22508
  30  0.218703
Done.

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

Extracting fit parameters...

4FGL J1520.5+4209
   Spectrum: PowerLaw
308    Prefactor:  3.245e+01  2.801e+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:  9.004e-01  2.187e-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.060e+00  2.251e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.72
Ra Dec: 230.135 42.160
Photon Index (Fixed Index): 2.50 +/- 0.00
Photon Flux (Fixed Index): 5.84e-08 +/- 5.04e-08
Energy Flux (Fixed Index): 1.69e-05 +/- 1.46e-05

TS (Fixed Index): 2.72
Ra Dec: 230.135 42.160
Photon Flux Upper Limit: 1.46e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.13e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/488855/likelihoodResults_293241601_293500801_4FGL_J1520.5+4209_daily_bin208.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) = 5882.01585902
delta logL = 0.053321423934

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5882.01429038
delta logL = 0.054890064569

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    25.553       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7113       1.0000          .0000       10.000    
     3 'Normalizat'    1.0515       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90714       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=   5882.014     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      286 TOTAL
                     EDM=   .21E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     25.552        31.439        .79247E-04    .15924E-04
   2  Index         2.7114        .71605        .55125E-02    .20886E-04
   3  Normalizat    1.0515        .21110        .23471E-03   -.99976E-04
   4  Prefactor     .90714        .21651        .25829E-03   -.10339E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 25.5515
  Index      = 2.71144
  Normalizat = 1.05154
  Prefactor  = 0.907142
 **********
 **   18 **HESSE 
 **********

 FCN=   5882.014     FROM HESSE     STATUS=OK            25 CALLS      311 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     25.552        28.636        .31699E-05   -1.4697    
   2  Index         2.7114        .65222        .22050E-03   -.47542    
   3  Normalizat    1.0515        .21119        .93883E-05   -.91323    
   4  Prefactor     .90714        .21652        .10332E-04   -.95892    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.42901e-11
Minuit parameter uncertainties:
  1  28.6516
  2  0.654579
  3  0.211357
  4  0.216729
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/488855': 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) = 5882.01429018
delta logL = 0.0548902641885

Extracting fit parameters...

4FGL J1520.5+4209
   Spectrum: PowerLaw
308    Prefactor:  2.555e+01  2.865e+01  1.000e-04  1.000e+04 ( 1.000e-13)
309        Index:  2.711e+00  6.546e-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:  9.071e-01  2.167e-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.052e+00  2.114e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.87
Ra Dec: 230.135 42.160
Photon Index (Free Index): 2.71 +/- 0.65
Photon Flux (Free Index): 6.42e-08 +/- 4.75e-08
Energy Flux (Free Index): 1.53e-05 +/- 1.17e-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/488855/cmap_HighResolution_293241601_293500801_4FGL_J1520.5+4209_daily_bin208.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.13e-02', comment='SUCCESS', photon_flux='5.84e-08', energy_flux2='1.53e-05', photon_flux_error='5.04e-08', dlogl='5.49e-02', energy_flux='1.69e-05', photon_flux2='6.42e-08', job_status='DONE', time_completed='2021-09-12 01:27:13.669811', photon_index_error2='0.65', photon_index2='2.71', ts='2.72', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', photon_flux_upper_limit='1.46e-07', energy_flux_error2='1.17e-05', EG='1.06', time_epoch_completed='1631435233.67', return_code='0', job_id='488855', GAL2='0.91', EG2='1.05', return_code2='0', energy_flux_error='1.46e-05', photon_flux_error2='4.75e-08', ts2='2.87', photon_index='2.50' WHERE bin_id='208' AND source_name='4FGL J1520.5+4209' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 01:27:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0109>
Subject: Job 488855: <4FGL_J1520.5+4209_daily_bin208> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1520.5+4209_daily_bin208 230.135 42.16 293241601 293500801 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.40 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             296.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   989 sec.
    Turnaround time :                            992 sec.

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

