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


Performing analysis on: 4FGL_J1520.5+4209_daily_bin765
RA = 230.135, Dec = 42.16
tmin = 437616001, tmax = 437875201
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='491950', job_status='RUN', time_executed='2021-09-12 01:24:36.712110', time_epoch_executed='1631435076.71' WHERE source_name='4FGL J1520.5+4209' and cadence='daily' and bin_id='765'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/491950

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/491950/ft1_4FGL_J1520.5+4209_daily_bin765.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/491950/ft2_4FGL_J1520.5+4209_daily_bin765.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/491950/ft1_4FGL_J1520.5+4209_daily_bin765.fits outfile=/scratch/kocevski/491950/ft1_filteredMKT_4FGL_J1520.5+4209_daily_bin765.fits ra=230.135 dec=42.16 rad=12.0 tmin=437616001.0 tmax=437875201.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 5.60
user 5.35
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/491950/ft1_filtered_4FGL_J1520.5+4209_daily_bin765.fits" evtable="EVENTS" scfile=/scratch/kocevski/491950/ft2_4FGL_J1520.5+4209_daily_bin765.fits sctable="SC_DATA" outfile=/scratch/kocevski/491950/ltcube_437616001_437875201_4FGL_J1520.5+4209_daily_bin765.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/491950/ft2_4FGL_J1520.5+4209_daily_bin765.fits
.....................!
real 13.29
user 12.87
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/491950/ft1_filtered_4FGL_J1520.5+4209_daily_bin765.fits evtable="EVENTS" scfile=/scratch/kocevski/491950/ft2_4FGL_J1520.5+4209_daily_bin765.fits sctable="SC_DATA" expcube=/scratch/kocevski/491950/ltcube_437616001_437875201_4FGL_J1520.5+4209_daily_bin765.fits outfile=/scratch/kocevski/491950/expmap_437616001_437875201_4FGL_J1520.5+4209_daily_bin765.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/491950/ltcube_437616001_437875201_4FGL_J1520.5+4209_daily_bin765.fits
.....................!
real 191.83
user 185.69
sys 5.74

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/491950/ft1_filtered_4FGL_J1520.5+4209_daily_bin765.fits scfile=/scratch/kocevski/491950/ft2_4FGL_J1520.5+4209_daily_bin765.fits outfile=/scratch/kocevski/491950/cmap_437616001_437875201_4FGL_J1520.5+4209_daily_bin765.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/491950/ft1_filtered_4FGL_J1520.5+4209_daily_bin765.fits scfile=/scratch/kocevski/491950/ft2_4FGL_J1520.5+4209_daily_bin765.fits outfile=/scratch/kocevski/491950/cmap_HighResolution_437616001_437875201_4FGL_J1520.5+4209_daily_bin765.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.37
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    35.729       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    29.589       1.0000         .10000E-03   10000.    
     5 'Prefactor '    21.272       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .12863E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    30.485       1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    4.6150       1.0000         .10000E-03   10000.    
    16 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    8.8456       1.0000         .10000E-03   10000.    
    22 'Prefactor '    7.9143       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10186E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    6.7853       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10128E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .13679E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0656       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.1003       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=   4193.730     FROM MIGRAD    STATUS=CONVERGED    740 CALLS     3833 TOTAL
                     EDM=   .47E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     35.744        55.438        .17622E-04   -.38657E-05
   2  Prefactor     .10000E-03    18.654        .10789E-04** at limit **
   3  norm          .10000E-03    9.4634        .36193E-05** at limit **
   4  Prefactor     29.536        111.59       -.87428E-04    .89246E-05
   5  Prefactor     21.269        39.511       -.44543E-05   -.11868E-04
   6  norm          .10000E-03    5.1726        .25712E-05** at limit **
   7  Prefactor     .10000E-03    24.952       -.58507E-05** at limit **
   8  Prefactor     .10001E-03    24.195       -.24741E-05** at limit **
   9  norm          .10000E-03    4.6508       -.10756E-06** at limit **
  10  Prefactor     .10000E-03    5.4368       -.20634E-05** at limit **
  11  Prefactor     30.495        30.783        .46663E-05    .60517E-04
  12  norm          .10000E-03    1.7470        .51819E-07** at limit **
  13  Prefactor     .10000E-03    5.5537       -.12041E-05** at limit **
  14  Prefactor     .10000E-03    25.990       -.64642E-05** at limit **
  15  norm          4.6150        2.6015        .31940E-07   -.30854E-04
  16  norm          .10000E-03    3.4918        .11814E-07** at limit **
  17  Prefactor     .10000E-03    7.3296       -.18704E-05** at limit **
  18  Prefactor     .10000E-03    27.731       -.42735E-05** at limit **
  19  Prefactor     .10000E-03    8.1556       -.38987E-06** at limit **
  20  Prefactor     .10000E-03    5.4221       -.20323E-05** at limit **
  21  norm          8.8459        2.5765       -.70185E-07   -.86023E-05
  22  Prefactor     7.9124        16.560        .97341E-06   -.55642E-04
  23  Prefactor     .10000E-03    28.855       -.80406E-06** at limit **
  24  norm          6.7870        18.606       -.96967E-06   -.20756E-04
  25  Prefactor     .10000E-03    12.304       -.49746E-05** at limit **
  26  Prefactor     .10000E-03    132.79       -.41811E-05** at limit **
  27  Prefactor     .10000E-03    5.8277        .36419E-05** at limit **
  28  Prefactor     .10000E-03    31.830        .15264E-04** at limit **
  29  Normalizat    1.0656        .26360       -.32692E-05    .13008E-03
  30  Prefactor     1.1004        .25260        .32044E-05   -.13431E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 35.7445
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 29.5365
  Prefactor  = 21.2689
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100011
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 30.495
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.61501
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.8459
  Prefactor  = 7.91245
  Prefactor  = 0.0001
  norm       = 6.78699
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.06558
  Prefactor  = 1.10036
 **********
 **   18 **HESSE 
 **********

 FCN=   4193.730     FROM HESSE     STATUS=OK           570 CALLS     4403 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     35.744        56.118        .67046E-04   -1.4512    
   2  Prefactor     .10000E-03    18.686        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    9.4646        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     29.536        111.57        .73655E-04   -1.4620    
   5  Prefactor     21.269        39.537        .86844E-04   -1.4785    
   6  norm          .10000E-03    5.2205        .14381E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    24.957        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10001E-03    24.127        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    4.6554        .13640E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    5.4394        .14747E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     30.495        30.789        .72567E-04   -1.4603    
  12  norm          .10000E-03    1.7862        .83531E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    5.5682        .14893E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    26.317        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.6150        2.6065        .74214E-04   -1.5278    
  16  norm          .10000E-03    3.5088        .11816E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    7.3485        .17123E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    27.733        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    8.1578        .18064E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    5.4249        .14728E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          8.8459        2.5843        .44880E-04   -1.5113    
  22  Prefactor     7.9124        16.580        .14253E-03   -1.5145    
  23  Prefactor     .10000E-03    28.878        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          6.7870        18.582        .15403E-03   -1.5187    
  25  Prefactor     .10000E-03    12.313        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    132.93        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    5.8472        .15265E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    31.950        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.0656        .33836        .27924E-03   -.90865    
  30  Prefactor     1.1004        .32329        .27139E-03   -.89455    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.26138e-09
Minuit parameter uncertainties:
  1  56.2009
  2  2.45338e-05
  3  8.02581e-07
  4  112.368
  5  39.5856
  6  3.52853e-06
  7  1.09415e-05
  8  0.0010433
  9  7.13412e-07
  10  1.25918e-06
  11  30.8047
  12  8.26564e-06
  13  1.94127e-06
  14  0.000110328
  15  2.60659
  16  1.04269e-06
  17  6.86973e-07
  18  3.46236e-06
  19  9.98117e-07
  20  5.84142e-07
  21  2.58429
  22  16.5895
  23  4.33605e-05
  24  18.5976
  25  2.08407e-06
  26  3.59441e-05
  27  9.58798e-06
  28  5.26797e-05
  29  0.339051
  30  0.323872
Done.

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

Extracting fit parameters...

4FGL J1520.5+4209
   Spectrum: PowerLaw
308    Prefactor:  1.000e-04  9.981e-07  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.100e+00  3.239e-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.066e+00  3.391e-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: 7.99e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.21e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/491950/likelihoodResults_437616001_437875201_4FGL_J1520.5+4209_daily_bin765.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) = 4193.73053708
delta logL = -0.000576387521505

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4193.72996112
delta logL = -4.23853634857e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10363E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4791       1.0000          .0000       10.000    
     3 'Normalizat'    1.0658       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1001       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=   4193.730     FROM MIGRAD    STATUS=CONVERGED    105 CALLS      263 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    38.237        .18142E-01** at limit **
   2  Index         1.7602        5.8034        .50000       -.43666E-06
   3  Normalizat    1.0656        .10498E-01    .27924E-03   -.38678E-03
   4  Prefactor     1.1004        .10399E-01    .27139E-03   -.39689E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.76019
  Normalizat = 1.06557
  Prefactor  = 1.10036
 **********
 **   18 **HESSE 
 **********

 FCN=   4193.730     FROM HESSE     STATUS=NOT POSDEF    27 CALLS      290 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    296.96        .22623E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7602        9.1110        .50000       -.70491    
   3  Normalizat    1.0656        .30025E-01    .55847E-04   -.90865    
   4  Prefactor     1.1004        .29743E-01    .54278E-04   -.89455    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.10585e-08
Minuit parameter uncertainties:
  1  0.000114558
  2  877.015
  3  0.0300255
  4  0.029743
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/491950': 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) = 4193.72995847
delta logL = 2.22224207391e-06

Extracting fit parameters...

4FGL J1520.5+4209
   Spectrum: PowerLaw
308    Prefactor:  1.000e-04  1.146e-04  1.000e-04  1.000e+04 ( 1.000e-13)
309        Index:  1.760e+00  8.770e+02  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.100e+00  2.974e-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.066e+00  3.003e-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/491950/cmap_HighResolution_437616001_437875201_4FGL_J1520.5+4209_daily_bin765.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.21e-03', job_status='DONE', photon_flux_upper_limit='7.99e-08', time_completed='2021-09-12 01:36:20.880346', job_id='491950', GAL2='1.10', fit_tolerance='1e-08', EG2='1.07', EG='1.07', time_epoch_completed='1631435780.88', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.10', dlogl='2.22e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.50' WHERE bin_id='765' AND source_name='4FGL J1520.5+4209' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 01:36:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0236>
Subject: Job 491950: <4FGL_J1520.5+4209_daily_bin765> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1520.5+4209_daily_bin765 230.135 42.16 437616001 437875201 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 :                                   698.55 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             253.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   937 sec.
    Turnaround time :                            939 sec.

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

