/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 70 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 = 7392
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1520.5+4209_daily_bin372
RA = 230.135, Dec = 42.16
tmin = 335750401, tmax = 336009601
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='490192', job_status='RUN', time_executed='2021-09-12 01:16:52.302870', time_epoch_executed='1631434612.3' WHERE source_name='4FGL J1520.5+4209' and cadence='daily' and bin_id='372'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/490192

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

Retrieving the FT1 file...

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

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

Retrieving 51 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/490192/ft1_4FGL_J1520.5+4209_daily_bin372.fits


Retrieving the FT1 file...

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

Retrieving 51 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/490192/ft2_4FGL_J1520.5+4209_daily_bin372.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/490192/ft1_4FGL_J1520.5+4209_daily_bin372.fits outfile=/scratch/kocevski/490192/ft1_filteredMKT_4FGL_J1520.5+4209_daily_bin372.fits ra=230.135 dec=42.16 rad=12.0 tmin=335750401.0 tmax=336009601.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 6.80
user 6.51
sys 0.27

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/490192/ft1_filtered_4FGL_J1520.5+4209_daily_bin372.fits evtable="EVENTS" scfile=/scratch/kocevski/490192/ft2_4FGL_J1520.5+4209_daily_bin372.fits sctable="SC_DATA" expcube=/scratch/kocevski/490192/ltcube_335750401_336009601_4FGL_J1520.5+4209_daily_bin372.fits outfile=/scratch/kocevski/490192/expmap_335750401_336009601_4FGL_J1520.5+4209_daily_bin372.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/490192/ltcube_335750401_336009601_4FGL_J1520.5+4209_daily_bin372.fits
.....................!
real 191.90
user 186.66
sys 4.86

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/490192/ft1_filtered_4FGL_J1520.5+4209_daily_bin372.fits scfile=/scratch/kocevski/490192/ft2_4FGL_J1520.5+4209_daily_bin372.fits outfile=/scratch/kocevski/490192/cmap_335750401_336009601_4FGL_J1520.5+4209_daily_bin372.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.56
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/490192/ft1_filtered_4FGL_J1520.5+4209_daily_bin372.fits scfile=/scratch/kocevski/490192/ft2_4FGL_J1520.5+4209_daily_bin372.fits outfile=/scratch/kocevski/490192/cmap_HighResolution_335750401_336009601_4FGL_J1520.5+4209_daily_bin372.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.58
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    41.702       1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.0762       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .46683E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    30.247       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    37.128       1.0000         .10000E-03   10000.    
    12 'norm      '    2.0072       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .82891       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10130E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    13.876       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .30372E-01   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    2.0602       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10905E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0813       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .67256       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=   5631.947     FROM MIGRAD    STATUS=CONVERGED    805 CALLS     4055 TOTAL
                     EDM=   .74E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     41.705        30.865        .98706E-07   -.16747E-04
   2  Prefactor     7.0768        16.456        .18753E-06    .88317E-05
   3  norm          .10000E-03    6.3133       -.25387E-06** at limit **
   4  Prefactor     .10000E-03    29.927        .15020E-05** at limit **
   5  Prefactor     .10000E-03    15.931        .76377E-07** at limit **
   6  norm          .10038E-03    3.5123       -.36258E-06** at limit **
   7  Prefactor     30.247        40.182       -.15628E-07    .70726E-05
   8  Prefactor     .10000E-03    6.3738        .91551E-07** at limit **
   9  norm          .10000E-03    3.4857       -.15875E-09** at limit **
  10  Prefactor     .10000E-03    5.4959       -.43538E-09** at limit **
  11  Prefactor     37.129        16.985        .29330E-07   -.39408E-04
  12  norm          2.0072        1.5589        .20202E-07   -.52935E-04
  13  Prefactor     .82909        4.1926        .60407E-06    .46146E-05
  14  Prefactor     .10000E-03    2.3720       -.64509E-08** at limit **
  15  norm          .10000E-03    .55232       -.92233E-09** at limit **
  16  norm          .10000E-03    1.8485       -.66462E-08** at limit **
  17  Prefactor     .10000E-03    6.1753        .13694E-06** at limit **
  18  Prefactor     .10000E-03    32.037       -.17022E-05** at limit **
  19  Prefactor     .10000E-03    58.279       -.11041E-06** at limit **
  20  Prefactor     .10000E-03    17.764       -.99181E-07** at limit **
  21  norm          13.876        2.4725        .16844E-08    .31302E-03
  22  Prefactor     .10028E-03    9.5563       -.88170E-06** at limit **
  23  Prefactor     .10000E-03    68.051        .70650E-06** at limit **
  24  norm          .10000E-03    10.977       -.19392E-06** at limit **
  25  Prefactor     2.0577        23.599        .10082E-04    .27304E-04
  26  Prefactor     .10000E-03    102.82       -.19272E-05** at limit **
  27  Prefactor     .10000E-03    3.9997        .48560E-07** at limit **
  28  Prefactor     .10000E-03    92.802       -.13855E-06** at limit **
  29  Normalizat    1.0813        .17180       -.27882E-06   -.43602E-05
  30  Prefactor     .67257        .17333       -.36618E-06   -.20616E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 41.705
  Prefactor  = 7.07676
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100383
  Prefactor  = 30.2466
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 37.1291
  norm       = 2.00719
  Prefactor  = 0.829091
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 13.876
  Prefactor  = 0.000100284
  Prefactor  = 0.000100003
  norm       = 0.0001
  Prefactor  = 2.05775
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.08128
  Prefactor  = 0.672571
 **********
 **   18 **HESSE 
 **********

 FCN=   5631.947     FROM HESSE     STATUS=OK           596 CALLS     4651 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     41.705        31.023        .62076E-04   -1.4415    
   2  Prefactor     7.0768        16.482        .15080E-03   -1.5176    
   3  norm          .10000E-03    6.3161        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    30.005        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    15.981        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10038E-03    7.8972        .44354E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     30.247        40.279        .72851E-04   -1.4607    
   8  Prefactor     .10000E-03    6.3901        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    3.4965        .13683E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    5.5119        .17180E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     37.129        16.954        .65775E-04   -1.4489    
  12  norm          2.0072        1.5458        .78316E-04   -1.5425    
  13  Prefactor     .82909        3.9577        .29226E-03   -1.5526    
  14  Prefactor     .10000E-03    2.3925        .11282E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    .92666        .10595E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.8864        .99579E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    6.2597        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    32.148        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    60.154        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    18.383        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          13.876        2.5081        .42668E-04   -1.4963    
  22  Prefactor     .10028E-03    18.017        .60187E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    69.828        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    11.041        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     2.0577        23.614        .14395E-02   -1.5421    
  26  Prefactor     .10000E-03    103.25        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    4.0379        .14654E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    95.925        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.0813        .20587        .21268E-03   -.90355    
  30  Prefactor     .67257        .20724        .27432E-03   -1.0461    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.12893e-10
Minuit parameter uncertainties:
  1  31.0351
  2  16.4923
  3  1.12744e-05
  4  0.000143949
  5  3.73379e-06
  6  0.0034779
  7  40.3149
  8  8.02223e-06
  9  3.44949e-07
  10  8.70452e-07
  11  16.9557
  12  1.54585
  13  3.62304
  14  4.53449e-07
  15  2.81709e-07
  16  4.74128e-07
  17  6.47473e-06
  18  0.000163051
  19  5.59894e-05
  20  2.20939e-05
  21  2.50814
  22  0.00452148
  23  0.000868737
  24  3.57624e-05
  25  13.9481
  26  0.000480738
  27  6.23834e-06
  28  0.000434798
  29  0.206023
  30  0.207481
Done.

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

Extracting fit parameters...

4FGL J1520.5+4209
   Spectrum: PowerLaw
308    Prefactor:  1.000e-04  5.599e-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:  6.726e-01  2.075e-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.081e+00  2.060e-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.76e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.04e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/490192/likelihoodResults_335750401_336009601_4FGL_J1520.5+4209_daily_bin372.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) = 5631.94710507
delta logL = -7.92251375969e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5631.94702623
delta logL = -3.79976881959e-07

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 'Index     '    2.4473       1.0000          .0000       10.000    
     3 'Normalizat'    1.0813       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .67258       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=   5631.947     FROM MIGRAD    STATUS=CONVERGED     65 CALLS      255 TOTAL
                     EDM=   .73E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10052E-03    14.096        .90712E-01** at limit **
   2  Index         2.5712        3.5990        .50000       -.30630E-04
   3  Normalizat    1.0813        .38805E-02    .38818E-01    .28832E-03
   4  Prefactor     .67257        .40544E-02    .62011E-01   -.61012E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100524
  Index      = 2.57116
  Normalizat = 1.08128
  Prefactor  = 0.672567
 **********
 **   18 **HESSE 
 **********

 FCN=   5631.947     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      290 TOTAL
                     EDM=   .33E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10052E-03    6987.0        .57065E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5712        5.0152        .50000       -.50724    
   3  Normalizat    1.0813        .26381E-01    .21268E-03   -.90355    
   4  Prefactor     .67257        .27470E-01    .27432E-03   -1.0461    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.3232e-07
Minuit parameter uncertainties:
  1  0.0987554
  2  27.4299
  3  0.0263814
  4  0.0274708
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/490192': 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) = 5631.94702541
delta logL = 4.38193637819e-07

Extracting fit parameters...

4FGL J1520.5+4209
   Spectrum: PowerLaw
308    Prefactor:  1.005e-04  9.876e-02  1.000e-04  1.000e+04 ( 1.000e-13)
309        Index:  2.571e+00  2.743e+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.726e-01  2.747e-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.081e+00  2.638e-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/490192/cmap_HighResolution_335750401_336009601_4FGL_J1520.5+4209_daily_bin372.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.04e-03', job_status='DONE', photon_flux_upper_limit='7.76e-08', time_completed='2021-09-12 01:31:48.526842', job_id='490192', GAL2='0.67', fit_tolerance='1e-08', EG2='1.08', EG='1.08', time_epoch_completed='1631435508.53', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.67', dlogl='4.38e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.50' WHERE bin_id='372' AND source_name='4FGL J1520.5+4209' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 01:31:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0166>
Subject: Job 490192: <4FGL_J1520.5+4209_daily_bin372> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1520.5+4209_daily_bin372 230.135 42.16 335750401 336009601 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 :                                   883.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             312.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   983 sec.
    Turnaround time :                            985 sec.

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

