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


Performing analysis on: 4FGL_J1520.5+4209_daily_bin671
RA = 230.135, Dec = 42.16
tmin = 413251201, tmax = 413510401
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='491804', job_status='RUN', time_executed='2021-09-12 01:23:04.732642', time_epoch_executed='1631434984.73' WHERE source_name='4FGL J1520.5+4209' and cadence='daily' and bin_id='671'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/491804

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/491804/ft1_4FGL_J1520.5+4209_daily_bin671.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/491804/ft2_4FGL_J1520.5+4209_daily_bin671.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/491804/ft1_4FGL_J1520.5+4209_daily_bin671.fits outfile=/scratch/kocevski/491804/ft1_filteredMKT_4FGL_J1520.5+4209_daily_bin671.fits ra=230.135 dec=42.16 rad=12.0 tmin=413251201.0 tmax=413510401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 5.71
user 5.47
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/491804/ft1_filtered_4FGL_J1520.5+4209_daily_bin671.fits evtable="EVENTS" scfile=/scratch/kocevski/491804/ft2_4FGL_J1520.5+4209_daily_bin671.fits sctable="SC_DATA" expcube=/scratch/kocevski/491804/ltcube_413251201_413510401_4FGL_J1520.5+4209_daily_bin671.fits outfile=/scratch/kocevski/491804/expmap_413251201_413510401_4FGL_J1520.5+4209_daily_bin671.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/491804/ltcube_413251201_413510401_4FGL_J1520.5+4209_daily_bin671.fits
.....................!
real 189.54
user 185.37
sys 3.82

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/491804/ft1_filtered_4FGL_J1520.5+4209_daily_bin671.fits scfile=/scratch/kocevski/491804/ft2_4FGL_J1520.5+4209_daily_bin671.fits outfile=/scratch/kocevski/491804/cmap_413251201_413510401_4FGL_J1520.5+4209_daily_bin671.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.54
user 0.37
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    50.333       1.0000         .10000E-03   10000.    
     2 'Prefactor '    64.152       1.0000         .10000E-03   10000.    
     3 'norm      '    4.3679       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .23774E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10161E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10388E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10238E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    3.9000       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.9989       1.0000         .10000E-03   10000.    
    16 'norm      '    .37500       1.0000         .10000E-03   10000.    
    17 'Prefactor '    12.293       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10292E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.6653       1.0000         .10000E-03   10000.    
    21 'norm      '    7.6064       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10844E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .18906E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    38.169       1.0000         .10000E-03   10000.    
    25 'Prefactor '    18.965       1.0000         .10000E-03   10000.    
    26 'Prefactor '    9.4257       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .11454E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    13.334       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .91454       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .89634       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=   5664.349     FROM MIGRAD    STATUS=CONVERGED    759 CALLS     3889 TOTAL
                     EDM=   .48E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     50.340        44.032        .25627E-05    .64199E-05
   2  Prefactor     64.147        38.067       -.20960E-05    .24300E-04
   3  norm          4.3648        72.139       -.14288E-05   -.16308E-04
   4  Prefactor     .10000E-03    125.09        .44140E-04** at limit **
   5  Prefactor     .10000E-03    10.520       -.10762E-06** at limit **
   6  norm          .10000E-03    2.0580       -.57283E-07** at limit **
   7  Prefactor     .10000E-03    15.428        .22562E-05** at limit **
   8  Prefactor     .10000E-03    10.281        .16619E-05** at limit **
   9  norm          .10000E-03    3.4456       -.47766E-07** at limit **
  10  Prefactor     .10000E-03    7.3706       -.17422E-05** at limit **
  11  Prefactor     .10000E-03    6.2504       -.48315E-06** at limit **
  12  norm          3.8994        2.2324       -.35557E-06   -.10642E-03
  13  Prefactor     .10000E-03    2.1142       -.46239E-07** at limit **
  14  Prefactor     .10000E-03    2.1504       -.48655E-07** at limit **
  15  norm          1.9990        1.3502       -.28172E-06    .44771E-04
  16  norm          .37534        2.9579       -.17092E-05    .64545E-03
  17  Prefactor     12.294        10.591       -.46331E-06    .51519E-03
  18  Prefactor     .10000E-03    16.471        .16709E-05** at limit **
  19  Prefactor     .10000E-03    8.0087       -.57886E-06** at limit **
  20  Prefactor     6.6678        17.281       -.23311E-05    .19092E-03
  21  norm          7.6082        1.7372       -.24819E-06    .13294E-02
  22  Prefactor     .10000E-03    13.665       -.47508E-05** at limit **
  23  Prefactor     .10000E-03    60.156       -.97699E-05** at limit **
  24  norm          38.163        19.933       -.15436E-05    .30446E-03
  25  Prefactor     18.962        21.211       -.73998E-06    .62230E-04
  26  Prefactor     9.2750        114.50       -.35311E-03    .49865E-04
  27  Prefactor     .10000E-03    6.9135        .27279E-05** at limit **
  28  Prefactor     13.342        24.647        .10788E-04    .41512E-04
  29  Normalizat    .91445        .19679        .57995E-05    .28735E-03
  30  Prefactor     .89644        .18748        .38071E-05    .36794E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 50.3396
  Prefactor  = 64.1473
  norm       = 4.36476
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.89943
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.99899
  norm       = 0.375341
  Prefactor  = 12.2936
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.66776
  norm       = 7.60817
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 38.1635
  Prefactor  = 18.9621
  Prefactor  = 9.27501
  Prefactor  = 0.000100002
  Prefactor  = 13.3422
  Normalizat = 0.914446
  Prefactor  = 0.896445
 **********
 **   18 **HESSE 
 **********

 FCN=   5664.349     FROM HESSE     STATUS=OK           576 CALLS     4465 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     50.340        44.284        .56526E-04   -1.4288    
   2  Prefactor     64.147        37.690        .50103E-04   -1.4104    
   3  norm          4.3648        70.658        .19272E-03   -1.5290    
   4  Prefactor     .10000E-03    125.21        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    10.529        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    2.0618        .10543E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    15.431        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    10.306        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    3.4496        .13644E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.3971        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    6.2572        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.8994        2.2307        .82273E-04   -1.5313    
  13  Prefactor     .10000E-03    2.1198        .10684E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.1549        .10777E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.9990        1.3450        .69343E-04   -1.5425    
  16  norm          .37534        10.947        .21965E-02   -1.5585    
  17  Prefactor     12.294        11.001        .11425E-03   -1.5007    
  18  Prefactor     .10000E-03    16.473        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    8.0198        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     6.6678        17.034        .15543E-03   -1.5191    
  21  norm          7.6082        1.7342        .44981E-04   -1.5156    
  22  Prefactor     .10000E-03    13.802        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    60.277        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          38.163        19.822        .64874E-04   -1.4472    
  25  Prefactor     18.962        21.215        .91970E-04   -1.4837    
  26  Prefactor     9.2750        115.45        .13053E-03   -1.5099    
  27  Prefactor     .10000E-03    6.9759        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     13.342        24.569        .10969E-03   -1.4977    
  29  Normalizat    .91445        .23407        .25515E-03   -.95954    
  30  Prefactor     .89644        .22246        .25723E-03   -.96265    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.37282e-09
Minuit parameter uncertainties:
  1  44.3131
  2  37.7036
  3  35.1718
  4  0.000440379
  5  3.02139e-05
  6  7.44066e-06
  7  1.78108e-05
  8  5.41787e-05
  9  9.26574e-06
  10  4.36867e-05
  11  1.85033e-05
  12  2.23076
  13  5.76664e-06
  14  6.62089e-06
  15  1.34505
  16  4.05428
  17  11.0028
  18  1.28858e-05
  19  2.42474e-06
  20  17.0461
  21  1.73422
  22  5.10613e-05
  23  4.46104e-05
  24  19.8258
  25  21.2239
  26  65.6033
  27  0.000210545
  28  24.5873
  29  0.234335
  30  0.222686
Done.

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

Extracting fit parameters...

4FGL J1520.5+4209
   Spectrum: PowerLaw
308    Prefactor:  1.000e-04  2.425e-06  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.964e-01  2.227e-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:  9.144e-01  2.343e-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: 6.11e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.75e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/491804/likelihoodResults_413251201_413510401_4FGL_J1520.5+4209_daily_bin671.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) = 5664.3499962
delta logL = -0.000593816379478

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5664.34940329
delta logL = -9.02372448763e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12011E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4706       1.0000          .0000       10.000    
     3 'Normalizat'    .91449       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89641       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=   5664.349     FROM MIGRAD    STATUS=CONVERGED    113 CALLS      261 TOTAL
                     EDM=   .65E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.2765        .98317E-01** at limit **
   2  Index         1.5437        7.1895        .50000       -.26324E-05
   3  Normalizat    .91445        .34294E-02    .25515E-03    .56202E-03
   4  Prefactor     .89644        .34457E-02    .25723E-03    .60577E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.54369
  Normalizat = 0.914448
  Prefactor  = 0.896444
 **********
 **   18 **HESSE 
 **********

 FCN=   5664.349     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      290 TOTAL
                     EDM=   .13E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    369.04        .51414E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.5437        5.1161        .50000       -.76323    
   3  Normalizat    .91445        .15755E-01    .51029E-04   -.95954    
   4  Prefactor     .89644        .15830E-01    .51446E-04   -.96265    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.34139e-07
Minuit parameter uncertainties:
  1  0.000134708
  2  499.668
  3  0.0157554
  4  0.0158305
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/491804': 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) = 5664.34939778
delta logL = 4.60468891106e-06

Extracting fit parameters...

4FGL J1520.5+4209
   Spectrum: PowerLaw
308    Prefactor:  1.000e-04  1.347e-04  1.000e-04  1.000e+04 ( 1.000e-13)
309        Index:  1.544e+00  4.997e+02  0.000e+00  1.000e+01 (-1.000e+00)
310        Scale:  9.357e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
625    Prefactor:  8.964e-01  1.583e-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:  9.144e-01  1.576e-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/491804/cmap_HighResolution_413251201_413510401_4FGL_J1520.5+4209_daily_bin671.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.75e-03', job_status='DONE', photon_flux_upper_limit='6.11e-08', time_completed='2021-09-12 01:36:53.377507', job_id='491804', GAL2='0.90', fit_tolerance='1e-08', EG2='0.91', EG='0.91', time_epoch_completed='1631435813.38', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='4.60e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.50' WHERE bin_id='671' AND source_name='4FGL J1520.5+4209' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 01:36:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0161>
Subject: Job 491804: <4FGL_J1520.5+4209_daily_bin671> in cluster <slac> Done

Job <4FGL_J1520.5+4209_daily_bin671> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sun Sep 12 01:20:31 2021
Job was executed on host(s) <bullet0161>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 01:20:32 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep 12 01:20:32 2021
Terminated at Sun Sep 12 01:36:54 2021
Results reported at Sun Sep 12 01:36:54 2021

Your job looked like:

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

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

