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


Performing analysis on: 4FGL_J1520.5+4209_daily_bin218
RA = 230.135, Dec = 42.16
tmin = 295833601, tmax = 296092801
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='488873', job_status='RUN', time_executed='2021-09-12 01:14:12.898045', time_epoch_executed='1631434452.9' WHERE source_name='4FGL J1520.5+4209' and cadence='daily' and bin_id='218'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/488873

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/488873/ft1_4FGL_J1520.5+4209_daily_bin218.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/488873/ft2_4FGL_J1520.5+4209_daily_bin218.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/488873/ft1_4FGL_J1520.5+4209_daily_bin218.fits outfile=/scratch/kocevski/488873/ft1_filteredMKT_4FGL_J1520.5+4209_daily_bin218.fits ra=230.135 dec=42.16 rad=12.0 tmin=295833601.0 tmax=296092801.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 2.36
user 2.16
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/488873/ft1_filtered_4FGL_J1520.5+4209_daily_bin218.fits" evtable="EVENTS" scfile=/scratch/kocevski/488873/ft2_4FGL_J1520.5+4209_daily_bin218.fits sctable="SC_DATA" outfile=/scratch/kocevski/488873/ltcube_295833601_296092801_4FGL_J1520.5+4209_daily_bin218.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/488873/ft2_4FGL_J1520.5+4209_daily_bin218.fits
.....................!
real 12.55
user 12.20
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/488873/ft1_filtered_4FGL_J1520.5+4209_daily_bin218.fits evtable="EVENTS" scfile=/scratch/kocevski/488873/ft2_4FGL_J1520.5+4209_daily_bin218.fits sctable="SC_DATA" expcube=/scratch/kocevski/488873/ltcube_295833601_296092801_4FGL_J1520.5+4209_daily_bin218.fits outfile=/scratch/kocevski/488873/expmap_295833601_296092801_4FGL_J1520.5+4209_daily_bin218.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/488873/ltcube_295833601_296092801_4FGL_J1520.5+4209_daily_bin218.fits
.....................!
real 191.38
user 186.24
sys 4.76

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/488873/ft1_filtered_4FGL_J1520.5+4209_daily_bin218.fits scfile=/scratch/kocevski/488873/ft2_4FGL_J1520.5+4209_daily_bin218.fits outfile=/scratch/kocevski/488873/cmap_295833601_296092801_4FGL_J1520.5+4209_daily_bin218.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=230.135 yref=42.16 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    73.198       1.0000         .10000E-03   10000.    
     2 'Prefactor '    63.245       1.0000         .10000E-03   10000.    
     3 'norm      '    .10077E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .12362E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.3200       1.0000         .10000E-03   10000.    
     6 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    40.597       1.0000         .10000E-03   10000.    
     8 'Prefactor '    22.154       1.0000         .10000E-03   10000.    
     9 'norm      '    5.6434       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10180E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .26633E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.3160       1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10045E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11158E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10177E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    61.430       1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.3286       1.0000         .10000E-03   10000.    
    21 'norm      '    6.7169       1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.0088       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .16670E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .32616E-02   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0448       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .85268       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=   6463.328     FROM MIGRAD    STATUS=CONVERGED    803 CALLS     3429 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     73.206        36.176        .13993E-06   -.17131E-03
   2  Prefactor     63.248        27.399        .42726E-06    .15586E-03
   3  norm          .10000E-03    21.232       -.49943E-06** at limit **
   4  Prefactor     .10006E-03    740.42        .29407E-05** at limit **
   5  Prefactor     7.3243        17.578        .54415E-06    .53144E-04
   6  norm          .10000E-03    3.9706        .60237E-06** at limit **
   7  Prefactor     40.545        43.217       -.14043E-05    .59099E-04
   8  Prefactor     22.147        14.699       -.13550E-05   -.10570E-02
   9  norm          5.6412        5.7900       -.18840E-06   -.26212E-03
  10  Prefactor     .10000E-03    27.454        .29609E-06** at limit **
  11  Prefactor     .10000E-03    5.3278       -.45337E-07** at limit **
  12  norm          .10000E-03    .48664       -.18659E-07** at limit **
  13  Prefactor     .10000E-03    5.8853        .36373E-05** at limit **
  14  Prefactor     2.3177        4.7206        .11412E-05    .92475E-03
  15  norm          .10000E-03    .37189       -.17709E-07** at limit **
  16  norm          .10000E-03    1.8914       -.21938E-06** at limit **
  17  Prefactor     .10000E-03    24.647       -.17118E-04** at limit **
  18  Prefactor     .10000E-03    34.822       -.29843E-06** at limit **
  19  Prefactor     61.447        26.201       -.15221E-07   -.60030E-04
  20  Prefactor     2.3386        14.189       -.79686E-06    .10430E-03
  21  norm          6.7168        1.6866       -.22628E-07   -.55143E-04
  22  Prefactor     4.0101        6.8811        .66897E-06    .33193E-03
  23  Prefactor     .10000E-03    6.0123       -.45648E-07** at limit **
  24  norm          .10000E-03    5.2523       -.67955E-07** at limit **
  25  Prefactor     .10000E-03    7.8443       -.74440E-07** at limit **
  26  Prefactor     .10000E-03    96.815       -.51346E-06** at limit **
  27  Prefactor     .10000E-03    3.4625       -.61590E-07** at limit **
  28  Prefactor     .10018E-03    17.216       -.84948E-05** at limit **
  29  Normalizat    1.0448        .17486       -.63941E-06   -.35566E-03
  30  Prefactor     .85257        .17531        .63820E-07   -.24690E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 73.2058
  Prefactor  = 63.2479
  norm       = 0.0001
  Prefactor  = 0.000100064
  Prefactor  = 7.3243
  norm       = 0.000100001
  Prefactor  = 40.5455
  Prefactor  = 22.1469
  norm       = 5.6412
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 2.31769
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 61.4473
  Prefactor  = 2.33864
  norm       = 6.71683
  Prefactor  = 4.01007
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100178
  Normalizat = 1.04484
  Prefactor  = 0.852569
 **********
 **   18 **HESSE 
 **********

 FCN=   6463.328     FROM HESSE     STATUS=OK           578 CALLS     4007 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     73.206        36.247        .46926E-04   -1.3995    
   2  Prefactor     63.248        27.453        .50459E-04   -1.4116    
   3  norm          .10000E-03    21.278        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10006E-03    755.96        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7.3243        17.573        .14825E-03   -1.5167    
   6  norm          .10000E-03    4.0357        .15676E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     40.545        43.017        .62911E-04   -1.4434    
   8  Prefactor     22.147        14.948        .85100E-04   -1.4766    
   9  norm          5.6412        5.7934        .16910E-03   -1.5233    
  10  Prefactor     .10000E-03    28.020        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    5.3370        .18119E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .49533        .54743E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    32.336        .34518E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.3177        4.7762        .24300E-03   -1.5403    
  15  norm          .10000E-03    .37451        .47817E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.9099        .10768E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    26.870        .38236E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    34.882        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     61.447        25.756        .51194E-04   -1.4139    
  20  Prefactor     2.3386        14.090        .26876E-03   -1.5402    
  21  norm          6.7168        1.6876        .48133E-04   -1.5190    
  22  Prefactor     4.0101        6.9015        .20142E-03   -1.5307    
  23  Prefactor     .10000E-03    6.0174        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    5.2658        .17994E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    7.8533        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    97.384        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    3.4876        .14584E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10018E-03    93.768        .51393E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.0448        .20390        .23282E-03   -.91543    
  30  Prefactor     .85257        .20547        .26578E-03   -.97819    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.76039e-09
Minuit parameter uncertainties:
  1  36.2578
  2  27.4589
  3  6.19587e-05
  4  0.0141141
  5  17.5853
  6  0.000102656
  7  43.0501
  8  14.9503
  9  5.79397
  10  9.57257e-05
  11  5.33214e-06
  12  5.59055e-07
  13  0.000596438
  14  4.77694
  15  9.20387e-07
  16  7.20173e-06
  17  0.000271881
  18  5.78017e-07
  19  25.761
  20  11.4846
  21  1.68762
  22  6.9029
  23  7.68608e-06
  24  1.01982e-05
  25  9.90274e-06
  26  0.000142831
  27  4.80736e-06
  28  0.00819395
  29  0.204052
  30  0.205654
Done.

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

Extracting fit parameters...

4FGL J1520.5+4209
   Spectrum: PowerLaw
308    Prefactor:  6.145e+01  2.576e+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.526e-01  2.057e-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.045e+00  2.041e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 15.00
Ra Dec: 230.135 42.160
Photon Index (Fixed Index): 2.50 +/- 0.00
Photon Flux (Fixed Index): 1.11e-07 +/- 4.63e-08
Energy Flux (Fixed Index): 3.20e-05 +/- 1.34e-05

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) = 6463.30432757
delta logL = 0.0237225146248

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6463.29842863
delta logL = 0.0296214529399

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    66.910       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4188       1.0000          .0000       10.000    
     3 'Normalizat'    1.0519       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84763       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=   6463.298     FROM MIGRAD    STATUS=CONVERGED     76 CALLS      278 TOTAL
                     EDM=   .93E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     66.913        34.871        .49066E-04   -.68921E-03
   2  Index         2.4187        .36060        .43361E-02   -.43958E-03
   3  Normalizat    1.0519        .19810        .23215E-03    .22458E-03
   4  Prefactor     .84763        .20433        .26647E-03    .20880E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 66.9134
  Index      = 2.41872
  Normalizat = 1.05186
  Prefactor  = 0.847628
 **********
 **   18 **HESSE 
 **********

 FCN=   6463.298     FROM HESSE     STATUS=OK            23 CALLS      301 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     66.913        33.833        .98133E-05   -1.4070    
   2  Index         2.4187        .34964        .17344E-03   -.54247    
   3  Normalizat    1.0519        .19820        .46431E-04   -.91313    
   4  Prefactor     .84763        .20446        .10659E-04   -.97996    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.95166e-10
Minuit parameter uncertainties:
  1  33.8428
  2  0.350033
  3  0.198337
  4  0.204643
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/488873': 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) = 6463.29842862
delta logL = 0.0296214621349

Extracting fit parameters...

4FGL J1520.5+4209
   Spectrum: PowerLaw
308    Prefactor:  6.691e+01  3.384e+01  1.000e-04  1.000e+04 ( 1.000e-13)
309        Index:  2.419e+00  3.500e-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:  8.476e-01  2.046e-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.052e+00  1.983e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 14.94
Ra Dec: 230.135 42.160
Photon Index (Free Index): 2.42 +/- 0.35
Photon Flux (Free Index): 1.05e-07 +/- 4.67e-08
Energy Flux (Free Index): 3.37e-05 +/- 1.53e-05

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/488873/cmap_HighResolution_295833601_296092801_4FGL_J1520.5+4209_daily_bin218.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.11e-07', energy_flux2='3.37e-05', photon_flux_error='4.63e-08', dlogl='2.96e-02', energy_flux='3.20e-05', photon_flux2='1.05e-07', job_status='DONE', time_completed='2021-09-12 01:26:58.271644', photon_index_error2='0.35', photon_index2='2.42', ts='15.00', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', energy_flux_error2='1.53e-05', EG='1.04', time_epoch_completed='1631435218.27', return_code='0', job_id='488873', GAL2='0.85', EG2='1.05', return_code2='0', energy_flux_error='1.34e-05', photon_flux_error2='4.67e-08', ts2='14.94', photon_index='2.50' WHERE bin_id='218' AND source_name='4FGL J1520.5+4209' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 01:26:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0085>
Subject: Job 488873: <4FGL_J1520.5+4209_daily_bin218> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1520.5+4209_daily_bin218 230.135 42.16 295833601 296092801 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 :                                   764.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             274.66 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   972 sec.
    Turnaround time :                            975 sec.

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

