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


Performing analysis on: 4FGL_J1520.5+4209_daily_bin632
RA = 230.135, Dec = 42.16
tmin = 403142401, tmax = 403401601
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='491737', job_status='RUN', time_executed='2021-09-12 01:20:43.910731', time_epoch_executed='1631434843.91' WHERE source_name='4FGL J1520.5+4209' and cadence='daily' and bin_id='632'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/491737

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/491737/ft1_4FGL_J1520.5+4209_daily_bin632.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/491737/ft2_4FGL_J1520.5+4209_daily_bin632.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/491737/ft1_4FGL_J1520.5+4209_daily_bin632.fits outfile=/scratch/kocevski/491737/ft1_filteredMKT_4FGL_J1520.5+4209_daily_bin632.fits ra=230.135 dec=42.16 rad=12.0 tmin=403142401.0 tmax=403401601.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.52
user 3.32
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/491737/ft2_4FGL_J1520.5+4209_daily_bin632.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/491737/ft1_filteredMKT_4FGL_J1520.5+4209_daily_bin632.fits evtable="EVENTS" outfile="/scratch/kocevski/491737/ft1_filtered_4FGL_J1520.5+4209_daily_bin632.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/491737/ft1_filtered_4FGL_J1520.5+4209_daily_bin632.fits" evtable="EVENTS" scfile=/scratch/kocevski/491737/ft2_4FGL_J1520.5+4209_daily_bin632.fits sctable="SC_DATA" outfile=/scratch/kocevski/491737/ltcube_403142401_403401601_4FGL_J1520.5+4209_daily_bin632.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/491737/ft2_4FGL_J1520.5+4209_daily_bin632.fits
.....................!
real 11.72
user 11.37
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/491737/ft1_filtered_4FGL_J1520.5+4209_daily_bin632.fits evtable="EVENTS" scfile=/scratch/kocevski/491737/ft2_4FGL_J1520.5+4209_daily_bin632.fits sctable="SC_DATA" expcube=/scratch/kocevski/491737/ltcube_403142401_403401601_4FGL_J1520.5+4209_daily_bin632.fits outfile=/scratch/kocevski/491737/expmap_403142401_403401601_4FGL_J1520.5+4209_daily_bin632.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/491737/ltcube_403142401_403401601_4FGL_J1520.5+4209_daily_bin632.fits
.....................!
real 191.56
user 186.52
sys 4.69

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/491737/ft1_filtered_4FGL_J1520.5+4209_daily_bin632.fits scfile=/scratch/kocevski/491737/ft2_4FGL_J1520.5+4209_daily_bin632.fits outfile=/scratch/kocevski/491737/cmap_403142401_403401601_4FGL_J1520.5+4209_daily_bin632.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.53
user 0.37
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.602       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .66775E-01   1.0000         .10000E-03   10000.    
     3 'norm      '    1.1325       1.0000         .10000E-03   10000.    
     4 'Prefactor '    37.128       1.0000         .10000E-03   10000.    
     5 'Prefactor '    30.211       1.0000         .10000E-03   10000.    
     6 'norm      '    .91197       1.0000         .10000E-03   10000.    
     7 'Prefactor '    15.993       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10540E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    10.782       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.2750       1.0000         .10000E-03   10000.    
    12 'norm      '    3.9479       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.1736       1.0000         .10000E-03   10000.    
    15 'norm      '    .22685       1.0000         .10000E-03   10000.    
    16 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.3229       1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.3288       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.0340       1.0000         .10000E-03   10000.    
    21 'norm      '    5.1096       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10147E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .11158E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    30.121       1.0000         .10000E-03   10000.    
    25 'Prefactor '    9.4315       1.0000         .10000E-03   10000.    
    26 'Prefactor '    27.071       1.0000         .10000E-03   10000.    
    27 'Prefactor '    12.521       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0900       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .84486       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6280E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5866.387     FROM MIGRAD    STATUS=CONVERGED    156 CALLS     4430 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.615        6.8146        .91303E-05   -.31276E-02
   2  Prefactor     .86851        127.45       -.34718E-06   -.11853E-03
   3  norm          1.0577        42.440        .42045E-05    .99166E-04
   4  Prefactor     37.118        1.3840        .48739E-06   -.61167E-03
   5  Prefactor     29.980        39.478       -.15545E-04    .38624E-03
   6  norm          .90525        7.2735       -.52051E-06    .62272E-04
   7  Prefactor     15.965        13.588        .21268E-04   -.33034E-02
   8  Prefactor     .10000E-03    15.146        .12212E-05** at limit **
   9  norm          10.784        1.0621        .49704E-06    .36229E-03
  10  Prefactor     .10000E-03    5.8846        .14185E-06** at limit **
  11  Prefactor     3.2628        27.757       -.23008E-04   -.95265E-03
  12  norm          3.9488        1.9379        .19157E-06   -.69157E-03
  13  Prefactor     .10000E-03    3.6831       -.33779E-06** at limit **
  14  Prefactor     1.1905        4.3450        .15380E-04    .71582E-03
  15  norm          .23181        1.8902       -.42124E-06   -.13660E-03
  16  norm          .10000E-03    2.3470       -.23796E-06** at limit **
  17  Prefactor     5.3245        6.5303       -.11174E-04    .42874E-02
  18  Prefactor     4.3322        1.6732        .18541E-05    .20345E-04
  19  Prefactor     .10000E-03    11.486        .16251E-05** at limit **
  20  Prefactor     8.0398        9.7699        .14725E-04    .26105E-02
  21  norm          5.1110        1.7459       -.24592E-06   -.79920E-03
  22  Prefactor     .10000E-03    10.136        .29226E-06** at limit **
  23  Prefactor     .10000E-03    24.849        .32470E-05** at limit **
  24  norm          30.131        13.223        .14660E-04    .21331E-02
  25  Prefactor     9.4681        7.3323       -.11208E-04    .24102E-02
  26  Prefactor     27.086        2.4573        .74064E-06   -.17589E-03
  27  Prefactor     12.523        4.7209       -.69924E-05   -.10752E-01
  28  Prefactor     .10000E-03    10.321       -.11815E-05** at limit **
  29  Normalizat    1.0892        .23331        .27054E-05   -.45733E-03
  30  Prefactor     .84517        .22192       -.38969E-05   -.43515E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.615
  Prefactor  = 0.868511
  norm       = 1.05769
  Prefactor  = 37.118
  Prefactor  = 29.98
  norm       = 0.905245
  Prefactor  = 15.9646
  Prefactor  = 0.000100004
  norm       = 10.7837
  Prefactor  = 0.0001
  Prefactor  = 3.26284
  norm       = 3.94877
  Prefactor  = 0.0001
  Prefactor  = 1.19045
  norm       = 0.231807
  norm       = 0.0001
  Prefactor  = 5.32449
  Prefactor  = 4.33219
  Prefactor  = 0.0001
  Prefactor  = 8.03981
  norm       = 5.11098
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 30.1306
  Prefactor  = 9.4681
  Prefactor  = 27.0859
  Prefactor  = 12.5227
  Prefactor  = 0.000100002
  Normalizat = 1.08923
  Prefactor  = 0.845171
 **********
 **   18 **HESSE 
 **********

 FCN=   5866.387     FROM HESSE     STATUS=OK           660 CALLS     5090 TOTAL
                     EDM=   .48E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.615        34.776        .21063E-02   -1.4757    
   2  Prefactor     .86851        131.88        .93516E-02   -1.5522    
   3  norm          1.0577        43.059        .10964E-01   -1.5502    
   4  Prefactor     37.118        109.81        .16444E-02   -1.4489    
   5  Prefactor     29.980        40.640        .18224E-02   -1.4612    
   6  norm          .90525        7.4241        .12851E-01   -1.5518    
   7  Prefactor     15.965        26.975        .25038E-02   -1.4909    
   8  Prefactor     .10000E-03    15.074        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          10.784        8.2600        .30503E-02   -1.5051    
  10  Prefactor     .10000E-03    5.8763        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.2628        44.113        .55939E-02   -1.5347    
  12  norm          3.9488        1.9791        .50755E-02   -1.5311    
  13  Prefactor     .10000E-03    3.6603        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.1905        20.873        .10578E-01   -1.5490    
  15  norm          .23181        1.1141        .27374E-01   -1.5612    
  16  norm          .10000E-03    2.3332        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.3245        12.075        .43550E-02   -1.5246    
  18  Prefactor     4.3322        114.56        .48403E-02   -1.5292    
  19  Prefactor     .10000E-03    11.449        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     8.0398        17.498        .35364E-02   -1.5141    
  21  norm          5.1110        1.7588        .44466E-02   -1.5256    
  22  Prefactor     .10000E-03    10.069        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    24.767        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          30.131        17.866        .18251E-02   -1.4610    
  25  Prefactor     9.4681        33.313        .32623E-02   -1.5092    
  26  Prefactor     27.086        46.219        .19249E-02   -1.4667    
  27  Prefactor     12.523        7.0699        .28301E-02   -1.5000    
  28  Prefactor     .10000E-03    10.356        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.0892        .20751        .38420E-01   -.90099    
  30  Prefactor     .84517        .19117        .44298E-01   -.98084    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.79259e-07
Minuit parameter uncertainties:
  1  34.8075
  2  21.4515
  3  13.5069
  4  110.421
  5  40.6772
  6  5.18542
  7  26.9956
  8  0.000486724
  9  8.26084
  10  3.09864e-05
  11  24.0156
  12  1.9791
  13  4.54982e-05
  14  9.97332
  15  1.01621
  16  3.24105e-05
  17  12.0806
  18  44.6505
  19  6.01538e-05
  20  17.5096
  21  1.75882
  22  7.98084e-07
  23  0.000461801
  24  17.8687
  25  33.3789
  26  46.2797
  27  7.07032
  28  0.000273399
  29  0.207666
  30  0.19132
Done.

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

Extracting fit parameters...

4FGL J1520.5+4209
   Spectrum: PowerLaw
308    Prefactor:  1.000e-04  6.015e-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:  8.452e-01  1.913e-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.089e+00  2.077e-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: 6.59e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.13e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/491737/likelihoodResults_403142401_403401601_4FGL_J1520.5+4209_daily_bin632.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) = 5866.38702986
delta logL = -0.000414581783843

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5866.3866153
delta logL = -2.70820237347e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10096E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4926       1.0000          .0000       10.000    
     3 'Normalizat'    1.0892       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84520       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=   5866.387     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      238 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10073E-03    145.41        .18142E-02** at limit **
   2  Index         2.4447        6.7866        .50000        .72413E-05
   3  Normalizat    1.0892        .15732E-01    .23841E-03    .54839E-05
   4  Prefactor     .84517        .15966E-01    .26982E-03    .39185E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100727
  Index      = 2.44465
  Normalizat = 1.08923
  Prefactor  = 0.845172
 **********
 **   18 **HESSE 
 **********

 FCN=   5866.387     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      267 TOTAL
                     EDM=   .80E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10073E-03    616.06        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4447        5.2788        .50000       -.53643    
   3  Normalizat    1.0892        .34282E-01    .95363E-05   -.90098    
   4  Prefactor     .84517        .34791E-01    .10793E-04   -.98084    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.03516e-09
Minuit parameter uncertainties:
  1  0.0427728
  2  1089.56
  3  0.0342824
  4  0.0347919
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/491737': 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) = 5866.38661519
delta logL = 8.38463165564e-08

Extracting fit parameters...

4FGL J1520.5+4209
   Spectrum: PowerLaw
308    Prefactor:  1.007e-04  4.277e-02  1.000e-04  1.000e+04 ( 1.000e-13)
309        Index:  2.445e+00  1.090e+03  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:  8.452e-01  3.479e-02  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.089e+00  3.428e-02  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/491737/cmap_HighResolution_403142401_403401601_4FGL_J1520.5+4209_daily_bin632.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.13e-03', job_status='DONE', photon_flux_upper_limit='6.59e-08', time_completed='2021-09-12 01:35:45.838157', job_id='491737', GAL2='0.85', fit_tolerance='1e-08', EG2='1.09', EG='1.09', time_epoch_completed='1631435745.84', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='8.38e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.50' WHERE bin_id='632' AND source_name='4FGL J1520.5+4209' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 01:35:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0272>
Subject: Job 491737: <4FGL_J1520.5+4209_daily_bin632> in cluster <slac> Done

Job <4FGL_J1520.5+4209_daily_bin632> 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) <bullet0272>, 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:35:46 2021
Results reported at Sun Sep 12 01:35:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1520.5+4209_daily_bin632 230.135 42.16 403142401 403401601 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 :                                   895.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             345.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   917 sec.
    Turnaround time :                            919 sec.

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

