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


Performing analysis on: 4FGL_J1520.5+4209_daily_bin287
RA = 230.135, Dec = 42.16
tmin = 313718401, tmax = 313977601
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='490069', job_status='RUN', time_executed='2021-09-12 01:15:26.359924', time_epoch_executed='1631434526.36' WHERE source_name='4FGL J1520.5+4209' and cadence='daily' and bin_id='287'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/490069

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/490069/ft1_4FGL_J1520.5+4209_daily_bin287.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/490069/ft2_4FGL_J1520.5+4209_daily_bin287.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/490069/ft1_4FGL_J1520.5+4209_daily_bin287.fits outfile=/scratch/kocevski/490069/ft1_filteredMKT_4FGL_J1520.5+4209_daily_bin287.fits ra=230.135 dec=42.16 rad=12.0 tmin=313718401.0 tmax=313977601.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.35
user 3.11
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/490069/ft1_filtered_4FGL_J1520.5+4209_daily_bin287.fits" evtable="EVENTS" scfile=/scratch/kocevski/490069/ft2_4FGL_J1520.5+4209_daily_bin287.fits sctable="SC_DATA" outfile=/scratch/kocevski/490069/ltcube_313718401_313977601_4FGL_J1520.5+4209_daily_bin287.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/490069/ft2_4FGL_J1520.5+4209_daily_bin287.fits
.....................!
real 12.41
user 11.90
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/490069/ft1_filtered_4FGL_J1520.5+4209_daily_bin287.fits evtable="EVENTS" scfile=/scratch/kocevski/490069/ft2_4FGL_J1520.5+4209_daily_bin287.fits sctable="SC_DATA" expcube=/scratch/kocevski/490069/ltcube_313718401_313977601_4FGL_J1520.5+4209_daily_bin287.fits outfile=/scratch/kocevski/490069/expmap_313718401_313977601_4FGL_J1520.5+4209_daily_bin287.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/490069/ltcube_313718401_313977601_4FGL_J1520.5+4209_daily_bin287.fits
.....................!
real 191.50
user 186.09
sys 5.03

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/490069/ft1_filtered_4FGL_J1520.5+4209_daily_bin287.fits scfile=/scratch/kocevski/490069/ft2_4FGL_J1520.5+4209_daily_bin287.fits outfile=/scratch/kocevski/490069/cmap_313718401_313977601_4FGL_J1520.5+4209_daily_bin287.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.60
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/490069/ft1_filtered_4FGL_J1520.5+4209_daily_bin287.fits scfile=/scratch/kocevski/490069/ft2_4FGL_J1520.5+4209_daily_bin287.fits outfile=/scratch/kocevski/490069/cmap_HighResolution_313718401_313977601_4FGL_J1520.5+4209_daily_bin287.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.54
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    86.026       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    27.467       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    9.2481       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.0671       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .90098       1.0000         .10000E-03   10000.    
    15 'norm      '    .10036E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.4194       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.3334       1.0000         .10000E-03   10000.    
    18 'Prefactor '    32.522       1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.7487       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .62856E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    7.6165       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    28.023       1.0000         .10000E-03   10000.    
    24 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    3.8014       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.1903       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .67166       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=   6216.800     FROM MIGRAD    STATUS=CONVERGED    728 CALLS     3867 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.4465       -.34574E-06** at limit **
   2  Prefactor     .10000E-03    11.271        .79385E-07** at limit **
   3  norm          .10000E-03    5.8190       -.11867E-06** at limit **
   4  Prefactor     86.023        79.704       -.15861E-06   -.36881E-04
   5  Prefactor     .10000E-03    16.431       -.19636E-06** at limit **
   6  norm          .10000E-03    2.0947        .39149E-07** at limit **
   7  Prefactor     27.468        39.205        .28219E-06    .51913E-04
   8  Prefactor     .10000E-03    7.3776        .73767E-07** at limit **
   9  norm          9.2481        7.1508        .29953E-07    .19195E-04
  10  Prefactor     .10000E-03    12.849        .71679E-06** at limit **
  11  Prefactor     .10000E-03    14.189        .74016E-07** at limit **
  12  norm          2.0670        1.3240       -.99002E-08   -.16840E-04
  13  Prefactor     .10000E-03    3.7548       -.40077E-06** at limit **
  14  Prefactor     .90092        3.9617        .27933E-05    .56938E-03
  15  norm          .10000E-03    .63091        .15041E-06** at limit **
  16  norm          2.4196        4.1159       -.67338E-08    .81288E-03
  17  Prefactor     3.3443        8.7463        .12772E-05    .12087E-02
  18  Prefactor     32.533        49.574        .19173E-05    .26288E-03
  19  Prefactor     6.7549        12.880        .57270E-06    .57151E-03
  20  Prefactor     .10013E-03    18.630       -.66083E-05** at limit **
  21  norm          7.6164        1.6923       -.20088E-07   -.18937E-03
  22  Prefactor     .10000E-03    9.0825       -.30164E-06** at limit **
  23  Prefactor     28.023        19.545        .19309E-06    .14857E-03
  24  norm          .10000E-03    11.306        .32749E-06** at limit **
  25  Prefactor     .10000E-03    5.1475        .10291E-07** at limit **
  26  Prefactor     .10000E-03    16.322       -.14035E-06** at limit **
  27  Prefactor     3.8013        3.7031        .70205E-07    .75820E-04
  28  Prefactor     .10000E-03    6.7910        .32048E-06** at limit **
  29  Normalizat    1.1905        .16638       -.20401E-06    .62741E-03
  30  Prefactor     .67156        .16951       -.45052E-06    .34085E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 86.0232
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 27.4682
  Prefactor  = 0.0001
  norm       = 9.24809
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 2.06704
  Prefactor  = 0.0001
  Prefactor  = 0.900925
  norm       = 0.0001
  norm       = 2.41955
  Prefactor  = 3.34425
  Prefactor  = 32.5334
  Prefactor  = 6.7549
  Prefactor  = 0.000100126
  norm       = 7.61641
  Prefactor  = 0.0001
  Prefactor  = 28.0234
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.80129
  Prefactor  = 0.0001
  Normalizat = 1.19048
  Prefactor  = 0.671561
 **********
 **   18 **HESSE 
 **********

 FCN=   6216.800     FROM HESSE     STATUS=OK           578 CALLS     4445 TOTAL
                     EDM=   .74E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.4664        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    11.309        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    5.8211        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     86.023        79.663        .43314E-04   -1.3850    
   5  Prefactor     .10000E-03    16.493        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    2.1043        .11142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     27.468        39.242        .76441E-04   -1.4659    
   8  Prefactor     .10000E-03    7.3955        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          9.2481        7.1479        .13179E-03   -1.5100    
  10  Prefactor     .10000E-03    13.041        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    14.381        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.0670        1.3218        .70383E-04   -1.5420    
  13  Prefactor     .10000E-03    8.4754        .29372E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .90092        3.9989        .30690E-03   -1.5518    
  15  norm          .10000E-03    .65214        .12181E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.4196        4.0200        .17018E-03   -1.5397    
  17  Prefactor     3.3443        8.3243        .22169E-03   -1.5342    
  18  Prefactor     32.533        49.917        .70264E-04   -1.4567    
  19  Prefactor     6.7549        12.820        .15445E-03   -1.5188    
  20  Prefactor     .10013E-03    29.406        .40850E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          7.6164        1.6893        .46289E-04   -1.5156    
  22  Prefactor     .10000E-03    9.1768        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     28.023        19.491        .75680E-04   -1.4649    
  24  norm          .10000E-03    11.346        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    5.1500        .17472E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    16.326        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     3.8013        3.7023        .14582E-03   -1.5318    
  28  Prefactor     .10000E-03    6.8061        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.1905        .19236        .21040E-03   -.86897    
  30  Prefactor     .67156        .19684        .28304E-03   -1.0465    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.41512e-09
Minuit parameter uncertainties:
  1  0.000103707
  2  1.63817e-05
  3  2.99793e-05
  4  79.7624
  5  9.01995e-05
  6  2.31849e-06
  7  39.2793
  8  4.34866e-05
  9  7.1486
  10  0.000216442
  11  0.000111976
  12  1.32186
  13  4.50749e-05
  14  3.79638
  15  4.93127e-06
  16  4.02046
  17  8.32719
  18  49.9815
  19  12.825
  20  0.00385838
  21  1.68934
  22  8.72111e-05
  23  19.4958
  24  4.65375e-05
  25  2.33944e-06
  26  5.76584e-05
  27  3.7025
  28  8.0888e-05
  29  0.192474
  30  0.197044
Done.

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

Extracting fit parameters...

4FGL J1520.5+4209
   Spectrum: PowerLaw
308    Prefactor:  6.755e+00  1.282e+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:  6.716e-01  1.970e-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.190e+00  1.925e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.42
Ra Dec: 230.135 42.160
Photon Flux Upper Limit: 7.64e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.94e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/490069/likelihoodResults_313718401_313977601_4FGL_J1520.5+4209_daily_bin287.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) = 6215.57200205
delta logL = 1.22831015743

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6215.57133331
delta logL = 1.22897889557

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.7550       1.0000         .10000E-03   10000.    
     2 'Index     '    .92737       1.0000          .0000       10.000    
     3 'Normalizat'    1.1879       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .67678       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6280E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6215.571     FROM MIGRAD    STATUS=CONVERGED     62 CALLS      204 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.1389        7.1216        .38595E-02   -.32041E-03
   2  Index         .94417        .33470        .19897       -.80828E-04
   3  Normalizat    1.1881        .16125        .35195E-01   -.34153E-06
   4  Prefactor     .67647        .16852        .63769E-01    .33431E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.1389
  Index      = 0.944168
  Normalizat = 1.18808
  Prefactor  = 0.676471
 **********
 **   18 **HESSE 
 **********

 FCN=   6215.571     FROM HESSE     STATUS=OK            33 CALLS      237 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.1389        13.378        .77191E-03   -1.5174    
   2  Index         .94417        .64202        .85754E-02   -.94614    
   3  Normalizat    1.1881        .18791        .21038E-03   -.86972    
   4  Prefactor     .67647        .19622        .28212E-03   -1.0446    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.3629e-09
Minuit parameter uncertainties:
  1  13.3832
  2  0.647289
  3  0.188017
  4  0.196419
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/490069': 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) = 6215.5709975
delta logL = 1.22931471054

Extracting fit parameters...

4FGL J1520.5+4209
   Spectrum: PowerLaw
308    Prefactor:  7.139e+00  1.338e+01  1.000e-04  1.000e+04 ( 1.000e-13)
309        Index:  9.442e-01  6.473e-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:  6.765e-01  1.964e-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.188e+00  1.880e-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): 0.94 +/- 0.65
Photon Flux (Free Index): 4.97e-09 +/- 5.86e-09
Energy Flux (Free Index): 8.21e-05 +/- 1.04e-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/490069/cmap_HighResolution_313718401_313977601_4FGL_J1520.5+4209_daily_bin287.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.94e-03', comment='SUCCESS', energy_flux2='8.21e-05', dlogl='1.23e+00', photon_flux2='4.97e-09', job_status='DONE', time_completed='2021-09-12 01:30:21.642790', photon_index_error2='0.65', photon_index2='0.94', ts='0.42', fit_tolerance='1e-08', GAL='0.67', photon_index_error='0.00', photon_flux_upper_limit='7.64e-08', energy_flux_error2='1.04e-04', EG='1.19', time_epoch_completed='1631435421.64', return_code='0', job_id='490069', GAL2='0.68', EG2='1.19', return_code2='0', photon_flux_error2='5.86e-09', ts2='2.87', photon_index='2.50' WHERE bin_id='287' AND source_name='4FGL J1520.5+4209' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 01:30:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0221>
Subject: Job 490069: <4FGL_J1520.5+4209_daily_bin287> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1520.5+4209_daily_bin287 230.135 42.16 313718401 313977601 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 :                                   888.11 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             364.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   905 sec.
    Turnaround time :                            907 sec.

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

