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


Performing analysis on: 4FGL_J1520.5+4209_daily_bin890
RA = 230.135, Dec = 42.16
tmin = 470016001, tmax = 470275201
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='493230', job_status='RUN', time_executed='2021-09-12 01:25:40.302163', time_epoch_executed='1631435140.3' WHERE source_name='4FGL J1520.5+4209' and cadence='daily' and bin_id='890'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/493230

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/493230/ft1_4FGL_J1520.5+4209_daily_bin890.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/493230/ft2_4FGL_J1520.5+4209_daily_bin890.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/493230/ft1_4FGL_J1520.5+4209_daily_bin890.fits outfile=/scratch/kocevski/493230/ft1_filteredMKT_4FGL_J1520.5+4209_daily_bin890.fits ra=230.135 dec=42.16 rad=12.0 tmin=470016001.0 tmax=470275201.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 3.53
user 3.31
sys 0.18

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

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

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/493230/ft1_filtered_4FGL_J1520.5+4209_daily_bin890.fits evtable="EVENTS" scfile=/scratch/kocevski/493230/ft2_4FGL_J1520.5+4209_daily_bin890.fits sctable="SC_DATA" expcube=/scratch/kocevski/493230/ltcube_470016001_470275201_4FGL_J1520.5+4209_daily_bin890.fits outfile=/scratch/kocevski/493230/expmap_470016001_470275201_4FGL_J1520.5+4209_daily_bin890.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/493230/ltcube_470016001_470275201_4FGL_J1520.5+4209_daily_bin890.fits
.....................!
real 190.80
user 184.78
sys 5.69

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/493230/ft1_filtered_4FGL_J1520.5+4209_daily_bin890.fits scfile=/scratch/kocevski/493230/ft2_4FGL_J1520.5+4209_daily_bin890.fits outfile=/scratch/kocevski/493230/cmap_470016001_470275201_4FGL_J1520.5+4209_daily_bin890.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.55
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/493230/ft1_filtered_4FGL_J1520.5+4209_daily_bin890.fits scfile=/scratch/kocevski/493230/ft2_4FGL_J1520.5+4209_daily_bin890.fits outfile=/scratch/kocevski/493230/cmap_HighResolution_470016001_470275201_4FGL_J1520.5+4209_daily_bin890.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.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10356E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.1840       1.0000         .10000E-03   10000.    
     3 'norm      '    .10282E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10108E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    13.870       1.0000         .10000E-03   10000.    
     6 'norm      '    13.747       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10091E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10067E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.1778       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .56242       1.0000         .10000E-03   10000.    
    13 'Prefactor '    12.965       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.3492       1.0000         .10000E-03   10000.    
    15 'norm      '    11.172       1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.8856       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    6.6721       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .49000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    10.653       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .11794E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10525E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .54400E-01   1.0000         .10000E-03   10000.    
    28 'Prefactor '    12.831       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .65145       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0653       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=   6248.034     FROM MIGRAD    STATUS=CONVERGED    776 CALLS     3904 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.997        .18870E-05** at limit **
   2  Prefactor     6.1844        8.9813       -.92326E-06   -.64200E-03
   3  norm          .10000E-03    9.2681       -.12101E-06** at limit **
   4  Prefactor     .10000E-03    25.412        .68897E-05** at limit **
   5  Prefactor     13.821        23.843        .28165E-05   -.14418E-03
   6  norm          13.748        7.2265        .14012E-06    .69782E-04
   7  Prefactor     .10000E-03    30.694       -.70533E-05** at limit **
   8  Prefactor     .10000E-03    4.5719        .62180E-07** at limit **
   9  norm          .10000E-03    3.9511        .12608E-06** at limit **
  10  Prefactor     2.1650        28.211       -.70412E-05    .49611E-05
  11  Prefactor     .10000E-03    4.7913        .77669E-07** at limit **
  12  norm          .56216        1.3482       -.35813E-06   -.12277E-02
  13  Prefactor     12.970        9.0098        .40618E-06    .18444E-04
  14  Prefactor     5.3472        4.7191       -.70734E-06    .19266E-03
  15  norm          11.171        2.5552        .35143E-07    .18300E-03
  16  norm          .10000E-03    .68822        .75578E-07** at limit **
  17  Prefactor     1.8874        3.5413       -.21665E-06   -.32072E-03
  18  Prefactor     .10000E-03    28.090        .22168E-05** at limit **
  19  Prefactor     .10000E-03    6.7726       -.44856E-07** at limit **
  20  Prefactor     .10000E-03    4.1707        .57744E-07** at limit **
  21  norm          6.6708        1.7150        .14089E-07   -.31291E-03
  22  Prefactor     .10000E-03    7.2829        .21142E-06** at limit **
  23  Prefactor     .10000E-03    28.442       -.39295E-07** at limit **
  24  norm          10.650        11.779       -.29976E-06    .18021E-04
  25  Prefactor     .10000E-03    13.590       -.61541E-06** at limit **
  26  Prefactor     .10000E-03    20.867       -.55484E-05** at limit **
  27  Prefactor     .10001E-03    6.8209       -.15911E-05** at limit **
  28  Prefactor     12.967        26.065        .39016E-05    .19246E-03
  29  Normalizat    .65151        .16252       -.27248E-07    .22856E-03
  30  Prefactor     1.0654        .16962       -.21991E-07    .26192E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 6.18441
  norm       = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 13.8207
  norm       = 13.7482
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.16503
  Prefactor  = 0.0001
  norm       = 0.562159
  Prefactor  = 12.9704
  Prefactor  = 5.34722
  norm       = 11.1709
  norm       = 0.0001
  Prefactor  = 1.8874
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.67078
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  norm       = 10.6496
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.000100006
  Prefactor  = 12.9671
  Normalizat = 0.651507
  Prefactor  = 1.06541
 **********
 **   18 **HESSE 
 **********

 FCN=   6248.034     FROM HESSE     STATUS=OK           594 CALLS     4498 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.972        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     6.1844        9.2627        .80717E-03   -1.5211    
   3  norm          .10000E-03    9.2778        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    24.697        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     13.821        23.650        .10755E-03   -1.4964    
   6  norm          13.748        7.2199        .10803E-03   -1.4966    
   7  Prefactor     .10000E-03    29.986        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.5773        .16506E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    3.9559        .15343E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.1650        28.907        .27899E-03   -1.5414    
  11  Prefactor     .10000E-03    4.7997        .16895E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .56216        1.3586        .13920E-03   -1.5558    
  13  Prefactor     12.970        8.9887        .11124E-03   -1.4988    
  14  Prefactor     5.3472        4.7148        .15501E-03   -1.5245    
  15  norm          11.171        2.5579        .55093E-04   -1.5039    
  16  norm          .10000E-03    .68888        .64009E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.8874        3.5220        .19838E-03   -1.5433    
  18  Prefactor     .10000E-03    28.023        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    6.7832        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.1880        .15759E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          6.6708        1.5913        .46714E-04   -1.5191    
  22  Prefactor     .10000E-03    35.817        .38271E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    28.609        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          10.650        11.732        .12276E-03   -1.5055    
  25  Prefactor     .10000E-03    13.611        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    20.408        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10001E-03    7.9714        .51340E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     12.967        27.076        .11183E-03   -1.4988    
  29  Normalizat    .65151        .19038        .26592E-03   -1.0584    
  30  Prefactor     1.0654        .19953        .22860E-03   -.90580    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.28895e-09
Minuit parameter uncertainties:
  1  0.000162537
  2  9.26484
  3  1.00149e-05
  4  0.000687039
  5  23.666
  6  7.22038
  7  0.000769569
  8  6.19035e-07
  9  9.82628e-06
  10  15.8312
  11  6.22421e-06
  12  1.35863
  13  8.98962
  14  4.71516
  15  2.55788
  16  5.99867e-07
  17  3.52238
  18  0.000233999
  19  4.42467e-06
  20  1.33906e-07
  21  1.59133
  22  0.000709776
  23  6.43671e-05
  24  11.7347
  25  4.67195e-05
  26  0.000502807
  27  0.000443015
  28  27.1018
  29  0.190575
  30  0.199665
Done.

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

Extracting fit parameters...

4FGL J1520.5+4209
   Spectrum: PowerLaw
308    Prefactor:  1.000e-04  4.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:  1.065e+00  1.997e-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:  6.515e-01  1.906e-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: 5.36e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.17e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/493230/likelihoodResults_470016001_470275201_4FGL_J1520.5+4209_daily_bin890.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) = 6248.03517869
delta logL = -0.00070200375103

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6248.03447668
delta logL = 1.36005837703e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4882       1.0000          .0000       10.000    
     3 'Normalizat'    .65149       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0654       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=   6248.034     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      244 TOTAL
                     EDM=   .65E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10253E-03    6.2233        .18142E-01** at limit **
   2  Index         2.3835        5.4732        .50000        .16086E-04
   3  Normalizat    .65151        .34870E-02    .26592E-03    .24796E-05
   4  Prefactor     1.0654        .37818E-02    .22860E-03   -.54704E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102526
  Index      = 2.38346
  Normalizat = 0.651507
  Prefactor  = 1.06541
 **********
 **   18 **HESSE 
 **********

 FCN=   6248.034     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      273 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10253E-03    106.45        .20802E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3835        7.4764        .50000       -.55073    
   3  Normalizat    .65151        .14611E-01    .10637E-04   -1.0584    
   4  Prefactor     1.0654        .15846E-01    .91441E-05   -.90580    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.19586e-08
Minuit parameter uncertainties:
  1  0.0328525
  2  584.542
  3  0.014611
  4  0.0158463
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/493230': 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) = 6248.03447634
delta logL = 3.51442395186e-07

Extracting fit parameters...

4FGL J1520.5+4209
   Spectrum: PowerLaw
308    Prefactor:  1.025e-04  3.285e-02  1.000e-04  1.000e+04 ( 1.000e-13)
309        Index:  2.383e+00  5.845e+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:  1.065e+00  1.585e-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:  6.515e-01  1.461e-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/493230/cmap_HighResolution_470016001_470275201_4FGL_J1520.5+4209_daily_bin890.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.17e-03', job_status='DONE', photon_flux_upper_limit='5.36e-08', time_completed='2021-09-12 01:40:32.162264', job_id='493230', GAL2='1.07', fit_tolerance='1e-08', EG2='0.65', EG='0.65', time_epoch_completed='1631436032.16', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='3.51e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.50' WHERE bin_id='890' AND source_name='4FGL J1520.5+4209' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 01:40:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0217>
Subject: Job 493230: <4FGL_J1520.5+4209_daily_bin890> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1520.5+4209_daily_bin890 230.135 42.16 470016001 470275201 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 :                                   886.16 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             329.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   908 sec.
    Turnaround time :                            910 sec.

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

