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


Performing analysis on: 4FGL_J1520.5+4209_daily_bin651
RA = 230.135, Dec = 42.16
tmin = 408067201, tmax = 408326401
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='491775', job_status='RUN', time_executed='2021-09-12 01:22:59.556304', time_epoch_executed='1631434979.56' WHERE source_name='4FGL J1520.5+4209' and cadence='daily' and bin_id='651'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/491775

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/491775/ft1_4FGL_J1520.5+4209_daily_bin651.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/491775/ft2_4FGL_J1520.5+4209_daily_bin651.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/491775/ft1_4FGL_J1520.5+4209_daily_bin651.fits outfile=/scratch/kocevski/491775/ft1_filteredMKT_4FGL_J1520.5+4209_daily_bin651.fits ra=230.135 dec=42.16 rad=12.0 tmin=408067201.0 tmax=408326401.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.87
user 3.62
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/491775/ft1_filtered_4FGL_J1520.5+4209_daily_bin651.fits evtable="EVENTS" scfile=/scratch/kocevski/491775/ft2_4FGL_J1520.5+4209_daily_bin651.fits sctable="SC_DATA" expcube=/scratch/kocevski/491775/ltcube_408067201_408326401_4FGL_J1520.5+4209_daily_bin651.fits outfile=/scratch/kocevski/491775/expmap_408067201_408326401_4FGL_J1520.5+4209_daily_bin651.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/491775/ltcube_408067201_408326401_4FGL_J1520.5+4209_daily_bin651.fits
.....................!
real 189.88
user 185.26
sys 4.31

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/491775/ft1_filtered_4FGL_J1520.5+4209_daily_bin651.fits scfile=/scratch/kocevski/491775/ft2_4FGL_J1520.5+4209_daily_bin651.fits outfile=/scratch/kocevski/491775/cmap_408067201_408326401_4FGL_J1520.5+4209_daily_bin651.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/491775/ft1_filtered_4FGL_J1520.5+4209_daily_bin651.fits scfile=/scratch/kocevski/491775/ft2_4FGL_J1520.5+4209_daily_bin651.fits outfile=/scratch/kocevski/491775/cmap_HighResolution_408067201_408326401_4FGL_J1520.5+4209_daily_bin651.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.36
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12803E-01   1.0000         .10000E-03   10000.    
     2 'Prefactor '    15.978       1.0000         .10000E-03   10000.    
     3 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .84693E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    37.881       1.0000         .10000E-03   10000.    
     6 'norm      '    22.411       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    44.685       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10227E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    104.29       1.0000         .10000E-03   10000.    
    15 'norm      '    8.2572       1.0000         .10000E-03   10000.    
    16 'norm      '    .10034E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10121E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    66.473       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    3.3998       1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.6820       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10139E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10058E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    31.746       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .31179E-01   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .41954E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    202.03       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .59682       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.1803       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=   1349.723     FROM MIGRAD    STATUS=CONVERGED    742 CALLS     4486 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1751.3       -.67776E-05** at limit **
   2  Prefactor     16.025        52.021        .17349E-05    .56550E-05
   3  norm          .10000E-03    15.291        .11107E-06** at limit **
   4  Prefactor     .10000E-03    790.33       -.46669E-06** at limit **
   5  Prefactor     38.004        105.81       -.31591E-05    .22799E-04
   6  norm          22.412        18.053        .85088E-06    .16078E-04
   7  Prefactor     .10000E-03    111.08        .14935E-05** at limit **
   8  Prefactor     .10000E-03    188.66        .78959E-06** at limit **
   9  norm          .10000E-03    12.721       -.29801E-07** at limit **
  10  Prefactor     44.691        32.675        .96812E-06    .56348E-05
  11  Prefactor     .10000E-03    121.33       -.22061E-06** at limit **
  12  norm          .10000E-03    26.902       -.45087E-07** at limit **
  13  Prefactor     .10000E-03    8.8511        .13138E-06** at limit **
  14  Prefactor     104.28        95.379       -.13408E-06    .41826E-05
  15  norm          8.2585        5.8563        .62532E-06    .10718E-04
  16  norm          .10000E-03    15.944        .80668E-07** at limit **
  17  Prefactor     .10000E-03    54.060        .49279E-08** at limit **
  18  Prefactor     .10000E-03    116.56       -.17182E-06** at limit **
  19  Prefactor     66.480        80.795        .11836E-05    .59640E-05
  20  Prefactor     .10000E-03    61.058       -.13211E-06** at limit **
  21  norm          3.3997        2.8287       -.11267E-05   -.69657E-04
  22  Prefactor     4.6856        31.284        .17833E-04    .24538E-04
  23  Prefactor     .10000E-03    120.46       -.69348E-07** at limit **
  24  norm          .10000E-03    65.102        .17617E-06** at limit **
  25  Prefactor     31.743        86.853        .13316E-05    .50771E-05
  26  Prefactor     .10042E-03    7907.5       -.13396E-04** at limit **
  27  Prefactor     .10000E-03    754.24       -.21288E-04** at limit **
  28  Prefactor     201.45        684.54        .10265E-05   -.16597E-05
  29  Normalizat    .59576        .58286       -.24319E-04    .10570E-04
  30  Prefactor     1.1812        .48106        .70529E-05   -.13731E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  Prefactor  = 16.0247
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 38.0041
  norm       = 22.4119
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 44.6908
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 104.277
  norm       = 8.25846
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 66.4795
  Prefactor  = 0.0001
  norm       = 3.39972
  Prefactor  = 4.68564
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 31.7426
  Prefactor  = 0.000100421
  Prefactor  = 0.0001
  Prefactor  = 201.448
  Normalizat = 0.595762
  Prefactor  = 1.18117
 **********
 **   18 **HESSE 
 **********

 FCN=   1349.723     FROM HESSE     STATUS=OK           574 CALLS     5060 TOTAL
                     EDM=   .78E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1772.9        .18174E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     16.025        52.066        .10020E-03   -1.4907    
   3  norm          .10000E-03    15.291        .14035E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    790.32        .20868E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     38.004        105.85        .65120E-04   -1.4474    
   6  norm          22.412        18.041        .84610E-04   -1.4761    
   7  Prefactor     .10000E-03    111.13        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    188.66        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    12.734        .12797E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     44.691        32.660        .59976E-04   -1.4370    
  11  Prefactor     .10000E-03    121.33        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    26.903        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    8.8576        .10675E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     104.28        95.325        .19687E-03   -1.3662    
  15  norm          8.2585        5.8584        .66926E-04   -1.5133    
  16  norm          .10000E-03    15.959        .14330E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    54.102        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    116.58        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     66.480        80.783        .49226E-04   -1.4075    
  20  Prefactor     .10000E-03    61.104        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          3.3997        2.8343        .43809E-04   -1.5339    
  22  Prefactor     4.6856        32.117        .92991E-03   -1.5275    
  23  Prefactor     .10000E-03    120.86        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    65.383        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     31.743        87.051        .71115E-04   -1.4581    
  26  Prefactor     .10042E-03    7907.2        .18356E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    756.28        .21242E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     201.45        685.18        .14215E-03   -1.2860    
  29  Normalizat    .59576        .64599        .38731E-03   -1.0816    
  30  Prefactor     1.1812        .55486        .26399E-03   -.86913    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.76711e-10
Minuit parameter uncertainties:
  1  0.00482191
  2  52.2144
  3  7.23693e-06
  4  0.00108496
  5  106.376
  6  18.0455
  7  3.70461e-05
  8  0.00119657
  9  1.7301e-06
  10  32.6727
  11  4.13787e-05
  12  4.52297e-06
  13  1.74359e-05
  14  95.4651
  15  5.85885
  16  3.43487e-05
  17  5.53728e-05
  18  5.67783e-05
  19  80.9163
  20  0.000235176
  21  2.83443
  22  24.5533
  23  0.000398519
  24  0.000361828
  25  87.4025
  26  0.112542
  27  0.000811026
  28  715.739
  29  0.654433
  30  0.557634
Done.

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

Extracting fit parameters...

4FGL J1520.5+4209
   Spectrum: PowerLaw
308    Prefactor:  6.648e+01  8.092e+01  1.000e-04  1.000e+04 ( 1.000e-13)
309        Index:  2.505e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
310        Scale:  9.357e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
625    Prefactor:  1.181e+00  5.576e-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:  5.958e-01  6.544e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.44
Ra Dec: 230.135 42.160
Photon Index (Fixed Index): 2.50 +/- 0.00
Photon Flux (Fixed Index): 1.20e-07 +/- 1.46e-07
Energy Flux (Fixed Index): 3.46e-05 +/- 4.21e-05

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

Saving results to:
/scratch/kocevski/491775/likelihoodResults_408067201_408326401_4FGL_J1520.5+4209_daily_bin651.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) = 1349.2990825
delta logL = 0.423790741038

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1349.28052154
delta logL = 0.442351699645

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    82.474       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6796       1.0000          .0000       10.000    
     3 'Normalizat'    .64943       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1446       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=   1349.281     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      205 TOTAL
                     EDM=   .40E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     82.504        98.368        .33787E-05   -.72942E-04
   2  Index         1.6794        .77190        .25422E-04    .76268E-05
   3  Normalizat    .65029        .48291       -.54019E-06   -.45327E-04
   4  Prefactor     1.1441        .45395       -.58894E-06   -.47124E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 82.5043
  Index      = 1.67942
  Normalizat = 0.65029
  Prefactor  = 1.14406
 **********
 **   18 **HESSE 
 **********

 FCN=   1349.281     FROM HESSE     STATUS=OK            29 CALLS      234 TOTAL
                     EDM=   .77E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     82.504        98.107        .22115E-03   -1.3889    
   2  Index         1.6794        .76649        .64933E-02   -.72631    
   3  Normalizat    .65029        .57318        .37143E-03   -1.0589    
   4  Prefactor     1.1441        .54041        .26719E-03   -.88071    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.69334e-11
Minuit parameter uncertainties:
  1  98.3007
  2  0.771963
  3  0.578555
  4  0.543045
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/491775': 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) = 1349.28052004
delta logL = 0.442353194448

Extracting fit parameters...

4FGL J1520.5+4209
   Spectrum: PowerLaw
308    Prefactor:  8.250e+01  9.830e+01  1.000e-04  1.000e+04 ( 1.000e-13)
309        Index:  1.679e+00  7.720e-01  0.000e+00  1.000e+01 (-1.000e+00)
310        Scale:  9.357e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
625    Prefactor:  1.144e+00  5.430e-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:  6.503e-01  5.786e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.33
Ra Dec: 230.135 42.160
Photon Index (Free Index): 1.68 +/- 0.77
Photon Flux (Free Index): 5.15e-08 +/- 7.86e-08
Energy Flux (Free Index): 8.98e-05 +/- 1.65e-04

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/491775/cmap_HighResolution_408067201_408326401_4FGL_J1520.5+4209_daily_bin651.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.21e-02', comment='SUCCESS', photon_flux='1.20e-07', energy_flux2='8.98e-05', photon_flux_error='1.46e-07', dlogl='4.42e-01', energy_flux='3.46e-05', photon_flux2='5.15e-08', job_status='DONE', time_completed='2021-09-12 01:30:29.073818', photon_index_error2='0.77', photon_index2='1.68', ts='1.44', fit_tolerance='1e-08', GAL='1.18', photon_index_error='0.00', photon_flux_upper_limit='5.41e-07', energy_flux_error2='1.65e-04', EG='0.60', time_epoch_completed='1631435429.07', return_code='0', job_id='491775', GAL2='1.14', EG2='0.65', return_code2='0', energy_flux_error='4.21e-05', photon_flux_error2='7.86e-08', ts2='2.33', photon_index='2.50' WHERE bin_id='651' AND source_name='4FGL J1520.5+4209' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 01:30:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0263>
Subject: Job 491775: <4FGL_J1520.5+4209_daily_bin651> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1520.5+4209_daily_bin651 230.135 42.16 408067201 408326401 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 :                                   445.16 sec.
    Max Memory :                                 1101 MB
    Average Memory :                             257.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   599 sec.
    Turnaround time :                            600 sec.

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

