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


Performing analysis on: 4FGL_J1520.5+4209_daily_bin743
RA = 230.135, Dec = 42.16
tmin = 431913601, tmax = 432172801
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='491911', job_status='RUN', time_executed='2021-09-12 01:23:33.659310', time_epoch_executed='1631435013.66' WHERE source_name='4FGL J1520.5+4209' and cadence='daily' and bin_id='743'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/491911

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/491911/ft1_4FGL_J1520.5+4209_daily_bin743.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/491911/ft2_4FGL_J1520.5+4209_daily_bin743.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/491911/ft1_4FGL_J1520.5+4209_daily_bin743.fits outfile=/scratch/kocevski/491911/ft1_filteredMKT_4FGL_J1520.5+4209_daily_bin743.fits ra=230.135 dec=42.16 rad=12.0 tmin=431913601.0 tmax=432172801.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.25
user 4.98
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/491911/ft1_filtered_4FGL_J1520.5+4209_daily_bin743.fits" evtable="EVENTS" scfile=/scratch/kocevski/491911/ft2_4FGL_J1520.5+4209_daily_bin743.fits sctable="SC_DATA" outfile=/scratch/kocevski/491911/ltcube_431913601_432172801_4FGL_J1520.5+4209_daily_bin743.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/491911/ft2_4FGL_J1520.5+4209_daily_bin743.fits
.....................!
real 11.79
user 11.44
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/491911/ft1_filtered_4FGL_J1520.5+4209_daily_bin743.fits evtable="EVENTS" scfile=/scratch/kocevski/491911/ft2_4FGL_J1520.5+4209_daily_bin743.fits sctable="SC_DATA" expcube=/scratch/kocevski/491911/ltcube_431913601_432172801_4FGL_J1520.5+4209_daily_bin743.fits outfile=/scratch/kocevski/491911/expmap_431913601_432172801_4FGL_J1520.5+4209_daily_bin743.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/491911/ltcube_431913601_432172801_4FGL_J1520.5+4209_daily_bin743.fits
.....................!
real 190.50
user 184.79
sys 5.40

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/491911/ft1_filtered_4FGL_J1520.5+4209_daily_bin743.fits scfile=/scratch/kocevski/491911/ft2_4FGL_J1520.5+4209_daily_bin743.fits outfile=/scratch/kocevski/491911/cmap_431913601_432172801_4FGL_J1520.5+4209_daily_bin743.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/491911/ft1_filtered_4FGL_J1520.5+4209_daily_bin743.fits scfile=/scratch/kocevski/491911/ft2_4FGL_J1520.5+4209_daily_bin743.fits outfile=/scratch/kocevski/491911/cmap_HighResolution_431913601_432172801_4FGL_J1520.5+4209_daily_bin743.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=230.135 yref=42.16 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.652       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10041E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10098E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .70613E-01   1.0000         .10000E-03   10000.    
     6 'norm      '    .82805       1.0000         .10000E-03   10000.    
     7 'Prefactor '    32.499       1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.813       1.0000         .10000E-03   10000.    
     9 'norm      '    .10055E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10706E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    6.4151       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.5877       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.3873       1.0000         .10000E-03   10000.    
    15 'norm      '    2.6573       1.0000         .10000E-03   10000.    
    16 'norm      '    3.3996       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10334E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    52.318       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .24418E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    5.5267       1.0000         .10000E-03   10000.    
    22 'Prefactor '    14.215       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    13.211       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10128E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0189       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .83968       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=   5159.319     FROM MIGRAD    STATUS=CONVERGED    804 CALLS     3952 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.659        26.646        .35792E-06    .20975E-03
   2  Prefactor     .10000E-03    17.388       -.11288E-06** at limit **
   3  norm          .10000E-03    10.722       -.18882E-06** at limit **
   4  Prefactor     .10000E-03    53.059        .11252E-05** at limit **
   5  Prefactor     .17883E-03    71.476       -.23898E-04** at limit **
   6  norm          .82078        4.9377        .72558E-06    .19851E-03
   7  Prefactor     32.496        37.516        .28939E-05    .16160E-03
   8  Prefactor     10.813        16.690       -.30881E-06   -.70612E-05
   9  norm          .10000E-03    3.4836       -.48008E-07** at limit **
  10  Prefactor     .10000E-03    38.838       -.44437E-06** at limit **
  11  Prefactor     .10000E-03    9.0664       -.73452E-07** at limit **
  12  norm          6.4156        2.3635       -.20088E-07    .12635E-03
  13  Prefactor     2.5909        7.0047       -.30016E-05    .23184E-03
  14  Prefactor     2.3880        4.2794       -.13957E-06    .62527E-04
  15  norm          2.6559        1.9826        .17545E-06    .61536E-03
  16  norm          3.3948        3.4195       -.25616E-06    .13597E-03
  17  Prefactor     .10000E-03    4.0682       -.18566E-06** at limit **
  18  Prefactor     52.387        71.518       -.15690E-05    .68433E-04
  19  Prefactor     .10000E-03    8.1645       -.11281E-06** at limit **
  20  Prefactor     .10002E-03    48.180       -.27408E-04** at limit **
  21  norm          5.5270        2.1643       -.16891E-07    .20507E-03
  22  Prefactor     14.217        14.413       -.13243E-06    .15107E-04
  23  Prefactor     .10000E-03    9.8401       -.22685E-07** at limit **
  24  norm          13.216        15.262       -.26189E-06   -.66021E-05
  25  Prefactor     .10000E-03    18.013       -.38469E-06** at limit **
  26  Prefactor     .10000E-03    20.996       -.38238E-08** at limit **
  27  Prefactor     .10000E-03    1.9573       -.22170E-07** at limit **
  28  Prefactor     .10000E-03    5.4518       -.16854E-07** at limit **
  29  Normalizat    1.0185        .19708        .23590E-06    .10424E-02
  30  Prefactor     .83979        .19136        .13030E-05    .88960E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.6594
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000178828
  norm       = 0.820778
  Prefactor  = 32.4961
  Prefactor  = 10.8126
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 6.41557
  Prefactor  = 2.59089
  Prefactor  = 2.38797
  norm       = 2.6559
  norm       = 3.39483
  Prefactor  = 0.0001
  Prefactor  = 52.3866
  Prefactor  = 0.0001
  Prefactor  = 0.00010002
  norm       = 5.527
  Prefactor  = 14.2171
  Prefactor  = 0.0001
  norm       = 13.2163
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.01852
  Prefactor  = 0.839794
 **********
 **   18 **HESSE 
 **********

 FCN=   5159.319     FROM HESSE     STATUS=OK           592 CALLS     4544 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.659        26.708        .12276E-03   -1.5055    
   2  Prefactor     .10000E-03    17.487        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    10.727        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    53.044        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .17883E-03    41.999        .11205       -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .82078        15.659        .29839E-02   -1.5527    
   7  Prefactor     32.496        37.800        .35144E-03   -1.4567    
   8  Prefactor     10.813        16.693        .12184E-03   -1.5050    
   9  norm          .10000E-03    3.4849        .13093E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    39.498        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    9.0799        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          6.4156        2.3634        .64583E-04   -1.5201    
  13  Prefactor     2.5909        7.0042        .12684E-02   -1.5386    
  14  Prefactor     2.3880        4.2570        .19283E-03   -1.5399    
  15  norm          2.6559        1.9803        .79721E-04   -1.5382    
  16  norm          3.3948        3.3734        .12718E-03   -1.5339    
  17  Prefactor     .10000E-03    4.0839        .14133E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     52.387        71.496        .55449E-04   -1.4259    
  19  Prefactor     .10000E-03    8.1753        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10002E-03    48.323        .37190E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          5.5270        2.1903        .52455E-04   -1.5238    
  22  Prefactor     14.217        14.581        .10624E-03   -1.4954    
  23  Prefactor     .10000E-03    9.8430        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          13.216        15.260        .11020E-03   -1.4981    
  25  Prefactor     .10000E-03    18.091        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    20.997        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    1.9646        .98140E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    5.4528        .16380E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.0185        .22952        .23733E-03   -.92412    
  30  Prefactor     .83979        .22430        .26295E-03   -.98278    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.58766e-09
Minuit parameter uncertainties:
  1  26.7377
  2  0.000159798
  3  2.16348e-05
  4  0.000343922
  5  0.115157
  6  7.17175
  7  37.8276
  8  16.7006
  9  3.98532e-06
  10  0.000379561
  11  3.58915e-06
  12  2.36342
  13  7.00638
  14  4.25751
  15  1.98032
  16  3.37359
  17  1.2372e-05
  18  71.6134
  19  7.05408e-06
  20  0.00197411
  21  2.19036
  22  14.5851
  23  3.20317e-05
  24  15.2645
  25  4.05429e-05
  26  9.97182e-06
  27  2.89586e-06
  28  3.79041e-06
  29  0.229743
  30  0.224544
Done.

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

Extracting fit parameters...

4FGL J1520.5+4209
   Spectrum: PowerLaw
308    Prefactor:  1.000e-04  7.054e-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.398e-01  2.245e-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.019e+00  2.297e-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.30e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.90e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/491911/likelihoodResults_431913601_432172801_4FGL_J1520.5+4209_daily_bin743.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) = 5159.31914887
delta logL = -0.000582658083658

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5159.31856632
delta logL = -1.07953383122e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10146E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4974       1.0000          .0000       10.000    
     3 'Normalizat'    1.0185       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83985       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=   5159.319     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      235 TOTAL
                     EDM=   .69E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10096E-03    225.70        .18142E-02** at limit **
   2  Index         2.4126        8.6982        .50000        .61842E-05
   3  Normalizat    1.0185        .24383E-01    .23733E-03    .43591E-05
   4  Prefactor     .83979        .24893E-01    .26295E-03    .17727E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100957
  Index      = 2.41256
  Normalizat = 1.01852
  Prefactor  = 0.839793
 **********
 **   18 **HESSE 
 **********

 FCN=   5159.319     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      264 TOTAL
                     EDM=   .33E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10096E-03    879.61        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4126        5.7361        .50000       -.54391    
   3  Normalizat    1.0185        .55076E-01    .94932E-05   -.92412    
   4  Prefactor     .83979        .56206E-01    .10518E-04   -.98278    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.2836e-08
Minuit parameter uncertainties:
  1  0.0589106
  2  2453.35
  3  0.0550793
  4  0.05621
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/491911': 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) = 5159.31856611
delta logL = 9.38243829296e-08

Extracting fit parameters...

4FGL J1520.5+4209
   Spectrum: PowerLaw
308    Prefactor:  1.010e-04  5.891e-02  1.000e-04  1.000e+04 ( 1.000e-13)
309        Index:  2.413e+00  2.453e+03  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.398e-01  5.621e-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.019e+00  5.508e-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/491911/cmap_HighResolution_431913601_432172801_4FGL_J1520.5+4209_daily_bin743.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.90e-03', job_status='DONE', photon_flux_upper_limit='6.30e-08', time_completed='2021-09-12 01:36:48.254211', job_id='491911', GAL2='0.84', fit_tolerance='1e-08', EG2='1.02', EG='1.02', time_epoch_completed='1631435808.25', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='9.38e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.50' WHERE bin_id='743' AND source_name='4FGL J1520.5+4209' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 01:36:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0239>
Subject: Job 491911: <4FGL_J1520.5+4209_daily_bin743> in cluster <slac> Done

Job <4FGL_J1520.5+4209_daily_bin743> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sun Sep 12 01:20:38 2021
Job was executed on host(s) <bullet0239>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 01:20:40 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:40 2021
Terminated at Sun Sep 12 01:36:49 2021
Results reported at Sun Sep 12 01:36:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1520.5+4209_daily_bin743 230.135 42.16 431913601 432172801 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 :                                   794.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             252.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   968 sec.
    Turnaround time :                            971 sec.

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

