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


Performing analysis on: 4FGL_J1520.5+4209_daily_bin260
RA = 230.135, Dec = 42.16
tmin = 306720001, tmax = 306979201
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='488936', job_status='RUN', time_executed='2021-09-12 01:11:28.667060', time_epoch_executed='1631434288.67' WHERE source_name='4FGL J1520.5+4209' and cadence='daily' and bin_id='260'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/488936

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/488936/ft1_4FGL_J1520.5+4209_daily_bin260.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/488936/ft2_4FGL_J1520.5+4209_daily_bin260.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/488936/ft1_4FGL_J1520.5+4209_daily_bin260.fits outfile=/scratch/kocevski/488936/ft1_filteredMKT_4FGL_J1520.5+4209_daily_bin260.fits ra=230.135 dec=42.16 rad=12.0 tmin=306720001.0 tmax=306979201.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 4.92
user 4.66
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/488936/ft2_4FGL_J1520.5+4209_daily_bin260.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/488936/ft1_filteredMKT_4FGL_J1520.5+4209_daily_bin260.fits evtable="EVENTS" outfile="/scratch/kocevski/488936/ft1_filtered_4FGL_J1520.5+4209_daily_bin260.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.51
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/488936/ft1_filtered_4FGL_J1520.5+4209_daily_bin260.fits" evtable="EVENTS" scfile=/scratch/kocevski/488936/ft2_4FGL_J1520.5+4209_daily_bin260.fits sctable="SC_DATA" outfile=/scratch/kocevski/488936/ltcube_306720001_306979201_4FGL_J1520.5+4209_daily_bin260.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/488936/ft2_4FGL_J1520.5+4209_daily_bin260.fits
.....................!
real 11.49
user 11.12
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/488936/ft1_filtered_4FGL_J1520.5+4209_daily_bin260.fits evtable="EVENTS" scfile=/scratch/kocevski/488936/ft2_4FGL_J1520.5+4209_daily_bin260.fits sctable="SC_DATA" expcube=/scratch/kocevski/488936/ltcube_306720001_306979201_4FGL_J1520.5+4209_daily_bin260.fits outfile=/scratch/kocevski/488936/expmap_306720001_306979201_4FGL_J1520.5+4209_daily_bin260.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/488936/ltcube_306720001_306979201_4FGL_J1520.5+4209_daily_bin260.fits
.....................!
real 190.01
user 184.99
sys 4.71

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/488936/ft1_filtered_4FGL_J1520.5+4209_daily_bin260.fits scfile=/scratch/kocevski/488936/ft2_4FGL_J1520.5+4209_daily_bin260.fits outfile=/scratch/kocevski/488936/cmap_306720001_306979201_4FGL_J1520.5+4209_daily_bin260.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.52
user 0.35
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .96362E-01   1.0000         .10000E-03   10000.    
     3 'norm      '    8.4425       1.0000         .10000E-03   10000.    
     4 'Prefactor '    58.258       1.0000         .10000E-03   10000.    
     5 'Prefactor '    24.470       1.0000         .10000E-03   10000.    
     6 'norm      '    .10092E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10985E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    7.6870       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .39914       1.0000         .10000E-03   10000.    
    12 'norm      '    6.7950       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.8501       1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.9372       1.0000         .10000E-03   10000.    
    15 'norm      '    1.7147       1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    14.891       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    7.5087       1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.7988       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .11808E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    8.9648       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .12100E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.1373       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .80319       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=   6013.479     FROM MIGRAD    STATUS=CONVERGED    787 CALLS     3915 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.499       -.12360E-06** at limit **
   2  Prefactor     .10190E-03    26.336        .12305E-05** at limit **
   3  norm          8.4136        24.101       -.57962E-05   -.50717E-04
   4  Prefactor     58.159        84.142       -.86802E-06   -.14438E-03
   5  Prefactor     24.452        29.949       -.14722E-05   -.23153E-04
   6  norm          .10000E-03    7.2321        .17442E-06** at limit **
   7  Prefactor     .10000E-03    16.855        .72709E-07** at limit **
   8  Prefactor     .10000E-03    5.5657       -.10776E-05** at limit **
   9  norm          7.6857        9.1199        .16224E-05   -.42248E-05
  10  Prefactor     .10000E-03    3.9264        .34631E-08** at limit **
  11  Prefactor     .37691        14.361        .12439E-05   -.51766E-03
  12  norm          6.7947        2.4169        .13124E-06   -.41960E-03
  13  Prefactor     3.8498        4.1676       -.10462E-06   -.15485E-04
  14  Prefactor     9.9355        8.6743        .24371E-05   -.15259E-03
  15  norm          1.7146        1.5556        .91632E-07   -.26814E-04
  16  norm          .10000E-03    1.4109        .23718E-08** at limit **
  17  Prefactor     .10000E-03    3.2309        .51452E-07** at limit **
  18  Prefactor     .10000E-03    29.945        .65372E-07** at limit **
  19  Prefactor     14.893        14.356        .63547E-07    .82380E-05
  20  Prefactor     .10000E-03    6.8739        .12854E-06** at limit **
  21  norm          7.5088        2.2914       -.24896E-07   -.55664E-04
  22  Prefactor     4.7998        14.602        .73567E-06    .83143E-05
  23  Prefactor     .10000E-03    8.5136        .86235E-07** at limit **
  24  norm          .10000E-03    9.4875        .88164E-07** at limit **
  25  Prefactor     .10000E-03    8.7630        .56278E-07** at limit **
  26  Prefactor     .10001E-03    185.20        .30691E-05** at limit **
  27  Prefactor     8.9703        6.1865       -.48482E-07   -.18579E-04
  28  Prefactor     .10000E-03    79.912        .11142E-06** at limit **
  29  Normalizat    1.1372        .18366       -.69497E-06   -.17745E-03
  30  Prefactor     .80321        .18074       -.47498E-06   -.14307E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000101896
  norm       = 8.4136
  Prefactor  = 58.1587
  Prefactor  = 24.4517
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.68568
  Prefactor  = 0.0001
  Prefactor  = 0.376912
  norm       = 6.79473
  Prefactor  = 3.84984
  Prefactor  = 9.93551
  norm       = 1.71462
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.8928
  Prefactor  = 0.0001
  norm       = 7.50881
  Prefactor  = 4.79981
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.00010001
  Prefactor  = 8.9703
  Prefactor  = 0.0001
  Normalizat = 1.13721
  Prefactor  = 0.803209
 **********
 **   18 **HESSE 
 **********

 FCN=   6013.479     FROM HESSE     STATUS=OK           590 CALLS     4505 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.510        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10190E-03    246.08        .71764E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          8.4136        23.355        .13797E-03   -1.5128    
   4  Prefactor     58.159        83.857        .26281E-03   -1.4181    
   5  Prefactor     24.452        29.889        .80977E-04   -1.4719    
   6  norm          .10000E-03    7.5526        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    16.858        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    5.5496        .17831E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          7.6857        9.0451        .72318E-03   -1.5153    
  10  Prefactor     .10000E-03    3.9295        .15006E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .37691        193.23        .51711E-02   -1.5585    
  12  norm          6.7947        2.4620        .67136E-04   -1.5187    
  13  Prefactor     3.8498        4.1693        .15902E-03   -1.5316    
  14  Prefactor     9.9355        8.8415        .63557E-03   -1.5077    
  15  norm          1.7146        1.5402        .87511E-04   -1.5446    
  16  norm          .10000E-03    1.4176        .89926E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    3.2441        .13608E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    29.952        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     14.893        14.361        .10379E-03   -1.4936    
  20  Prefactor     .10000E-03    6.9005        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          7.5088        2.2898        .52053E-04   -1.5160    
  22  Prefactor     4.7998        14.577        .18365E-03   -1.5270    
  23  Prefactor     .10000E-03    8.5206        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    9.5187        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    8.7741        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10001E-03    186.35        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     8.9703        6.1541        .13386E-03   -1.5109    
  28  Prefactor     .10000E-03    81.134        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.1372        .22145        .23746E-03   -.88566    
  30  Prefactor     .80321        .21779        .28037E-03   -.99610    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.52036e-08
Minuit parameter uncertainties:
  1  7.45837e-06
  2  0.0433825
  3  23.3806
  4  84.0283
  5  29.9072
  6  8.94207e-06
  7  1.65131e-06
  8  5.60613e-06
  9  9.04671
  10  9.58539e-07
  11  17.1215
  12  2.46204
  13  4.16965
  14  8.84262
  15  1.54027
  16  2.81164e-06
  17  2.43394e-06
  18  1.42002e-05
  19  14.3646
  20  3.76541e-06
  21  2.28987
  22  14.5875
  23  1.06493e-05
  24  5.58542e-07
  25  2.03782e-06
  26  0.00273512
  27  6.15452
  28  7.71312e-05
  29  0.221636
  30  0.218019
Done.

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

Extracting fit parameters...

4FGL J1520.5+4209
   Spectrum: PowerLaw
308    Prefactor:  1.489e+01  1.436e+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:  8.032e-01  2.180e-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.137e+00  2.216e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.63
Ra Dec: 230.135 42.160
Photon Index (Fixed Index): 2.50 +/- 0.00
Photon Flux (Fixed Index): 2.68e-08 +/- 2.58e-08
Energy Flux (Fixed Index): 7.74e-06 +/- 7.47e-06

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

Saving results to:
/scratch/kocevski/488936/likelihoodResults_306720001_306979201_4FGL_J1520.5+4209_daily_bin260.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) = 6013.43867344
delta logL = 0.0400872619894

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6013.43607091
delta logL = 0.0426897896104

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.172       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2495       1.0000          .0000       10.000    
     3 'Normalizat'    1.1443       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79893       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=   6013.436     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      297 TOTAL
                     EDM=   .75E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.173        18.027        .96652E-04   -.38071E-03
   2  Index         2.2495        .86157        .10475E-01   -.12718E-03
   3  Normalizat    1.1442        .21500        .23681E-03    .16410E-03
   4  Prefactor     .79907        .21680        .28102E-03    .12088E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.173
  Index      = 2.24953
  Normalizat = 1.14419
  Prefactor  = 0.799075
 **********
 **   18 **HESSE 
 **********

 FCN=   6013.436     FROM HESSE     STATUS=OK            23 CALLS      320 TOTAL
                     EDM=   .81E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.173        17.775        .19330E-04   -1.4879    
   2  Index         2.2495        .84940        .41900E-03   -.58248    
   3  Normalizat    1.1442        .21512        .47363E-04   -.88345    
   4  Prefactor     .79907        .21698        .11241E-04   -.99762    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.14011e-10
Minuit parameter uncertainties:
  1  17.7802
  2  0.855369
  3  0.215288
  4  0.217209
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/488936': 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) = 6013.43607065
delta logL = 0.042690046299

Extracting fit parameters...

4FGL J1520.5+4209
   Spectrum: PowerLaw
308    Prefactor:  1.717e+01  1.778e+01  1.000e-04  1.000e+04 ( 1.000e-13)
309        Index:  2.250e+00  8.554e-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:  7.991e-01  2.172e-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.144e+00  2.153e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.71
Ra Dec: 230.135 42.160
Photon Index (Free Index): 2.25 +/- 0.86
Photon Flux (Free Index): 2.10e-08 +/- 2.85e-08
Energy Flux (Free Index): 8.65e-06 +/- 9.73e-06

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/488936/cmap_HighResolution_306720001_306979201_4FGL_J1520.5+4209_daily_bin260.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.43e-03', comment='SUCCESS', photon_flux='2.68e-08', energy_flux2='8.65e-06', photon_flux_error='2.58e-08', dlogl='4.27e-02', energy_flux='7.74e-06', photon_flux2='2.10e-08', job_status='DONE', time_completed='2021-09-12 01:26:00.415019', photon_index_error2='0.86', photon_index2='2.25', ts='2.63', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', photon_flux_upper_limit='9.55e-08', energy_flux_error2='9.73e-06', EG='1.14', time_epoch_completed='1631435160.42', return_code='0', job_id='488936', GAL2='0.80', EG2='1.14', return_code2='0', energy_flux_error='7.47e-06', photon_flux_error2='2.85e-08', ts2='2.71', photon_index='2.50' WHERE bin_id='260' AND source_name='4FGL J1520.5+4209' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 01:26:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0163>
Subject: Job 488936: <4FGL_J1520.5+4209_daily_bin260> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1520.5+4209_daily_bin260 230.135 42.16 306720001 306979201 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 :                                   865.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             323.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   910 sec.
    Turnaround time :                            913 sec.

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

