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


Performing analysis on: 4FGL_J1520.5+4209_daily_bin905
RA = 230.135, Dec = 42.16
tmin = 473904001, tmax = 474163201
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='493256', job_status='RUN', time_executed='2021-09-12 01:29:27.718627', time_epoch_executed='1631435367.72' WHERE source_name='4FGL J1520.5+4209' and cadence='daily' and bin_id='905'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/493256

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/493256/ft1_4FGL_J1520.5+4209_daily_bin905.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/493256/ft2_4FGL_J1520.5+4209_daily_bin905.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/493256/ft1_4FGL_J1520.5+4209_daily_bin905.fits outfile=/scratch/kocevski/493256/ft1_filteredMKT_4FGL_J1520.5+4209_daily_bin905.fits ra=230.135 dec=42.16 rad=12.0 tmin=473904001.0 tmax=474163201.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.05
user 4.80
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/493256/ft1_filtered_4FGL_J1520.5+4209_daily_bin905.fits evtable="EVENTS" scfile=/scratch/kocevski/493256/ft2_4FGL_J1520.5+4209_daily_bin905.fits sctable="SC_DATA" expcube=/scratch/kocevski/493256/ltcube_473904001_474163201_4FGL_J1520.5+4209_daily_bin905.fits outfile=/scratch/kocevski/493256/expmap_473904001_474163201_4FGL_J1520.5+4209_daily_bin905.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/493256/ltcube_473904001_474163201_4FGL_J1520.5+4209_daily_bin905.fits
.....................!
real 189.96
user 184.77
sys 4.87

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/493256/ft1_filtered_4FGL_J1520.5+4209_daily_bin905.fits scfile=/scratch/kocevski/493256/ft2_4FGL_J1520.5+4209_daily_bin905.fits outfile=/scratch/kocevski/493256/cmap_473904001_474163201_4FGL_J1520.5+4209_daily_bin905.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.56
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/493256/ft1_filtered_4FGL_J1520.5+4209_daily_bin905.fits scfile=/scratch/kocevski/493256/ft2_4FGL_J1520.5+4209_daily_bin905.fits outfile=/scratch/kocevski/493256/cmap_HighResolution_473904001_474163201_4FGL_J1520.5+4209_daily_bin905.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.40
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    18.461       1.0000         .10000E-03   10000.    
     3 'norm      '    16.870       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    29.300       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    13.600       1.0000         .10000E-03   10000.    
     9 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.4760       1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.227       1.0000         .10000E-03   10000.    
    12 'norm      '    2.2151       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.3417       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    5.2193       1.0000         .10000E-03   10000.    
    16 'norm      '    .10083E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10117E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    20.538       1.0000         .10000E-03   10000.    
    20 'Prefactor '    11.941       1.0000         .10000E-03   10000.    
    21 'norm      '    6.9399       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.7134       1.0000         .10000E-03   10000.    
    24 'norm      '    .10195E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    51.318       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .62258       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0092       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=   4390.664     FROM MIGRAD    STATUS=CONVERGED    747 CALLS     3929 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    83.265       -.28397E-05** at limit **
   2  Prefactor     18.437        31.325        .23011E-05    .84022E-04
   3  norm          16.876        29.120       -.17413E-05   -.13341E-04
   4  Prefactor     .10000E-03    55.625        .27877E-05** at limit **
   5  Prefactor     .10000E-03    10.551       -.21091E-06** at limit **
   6  norm          29.301        10.712       -.49859E-07    .15213E-03
   7  Prefactor     .10000E-03    69.962       -.52334E-05** at limit **
   8  Prefactor     13.601        17.244        .19803E-07   -.43030E-05
   9  norm          .10000E-03    4.0340        .17112E-07** at limit **
  10  Prefactor     6.4750        14.388       -.78214E-06   -.69598E-05
  11  Prefactor     10.226        15.666        .74271E-08   -.54553E-05
  12  norm          2.2151        2.0299        .11062E-07   -.28238E-04
  13  Prefactor     2.3414        7.6180        .72043E-05   -.13396E-03
  14  Prefactor     .10000E-03    2.5703        .61716E-08** at limit **
  15  norm          5.2187        2.4084       -.56079E-06   -.45826E-03
  16  norm          .10000E-03    3.1283       -.20867E-07** at limit **
  17  Prefactor     .10000E-03    5.2330        .72529E-06** at limit **
  18  Prefactor     .10000E-03    104.33        .69314E-05** at limit **
  19  Prefactor     20.531        26.216        .27885E-06   -.80266E-04
  20  Prefactor     11.939        14.975       -.57804E-06   -.21518E-03
  21  norm          6.9398        1.8875       -.16310E-07   -.32385E-03
  22  Prefactor     .10000E-03    6.9128        .12932E-06** at limit **
  23  Prefactor     4.7249        22.649        .20181E-07   -.22279E-04
  24  norm          .10000E-03    13.433       -.67489E-07** at limit **
  25  Prefactor     .10000E-03    5.5351       -.65721E-06** at limit **
  26  Prefactor     51.320        71.379       -.19983E-06   -.35494E-05
  27  Prefactor     .10000E-03    1.5242        .14992E-07** at limit **
  28  Prefactor     .10000E-03    4.7831       -.20092E-06** at limit **
  29  Normalizat    .62232        .19398        .10169E-05    .28097E-04
  30  Prefactor     1.0094        .19630       -.11063E-05   -.33908E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 18.4371
  norm       = 16.8759
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 29.3012
  Prefactor  = 0.000100001
  Prefactor  = 13.6008
  norm       = 0.0001
  Prefactor  = 6.47498
  Prefactor  = 10.2262
  norm       = 2.21508
  Prefactor  = 2.34145
  Prefactor  = 0.0001
  norm       = 5.21875
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 20.5311
  Prefactor  = 11.9391
  norm       = 6.93984
  Prefactor  = 0.0001
  Prefactor  = 4.72492
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 51.3197
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.622322
  Prefactor  = 1.00945
 **********
 **   18 **HESSE 
 **********

 FCN=   4390.664     FROM HESSE     STATUS=OK           584 CALLS     4513 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    84.479        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     18.437        31.480        .93217E-04   -1.4849    
   3  norm          16.876        29.133        .97512E-04   -1.4886    
   4  Prefactor     .10000E-03    55.640        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    10.561        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          29.301        10.712        .74016E-04   -1.4625    
   7  Prefactor     .10000E-03    70.365        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     13.601        17.224        .10861E-03   -1.4970    
   9  norm          .10000E-03    4.0364        .12997E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.4750        14.372        .15771E-03   -1.5199    
  11  Prefactor     10.226        15.630        .12529E-03   -1.5068    
  12  norm          2.2151        2.0194        .84676E-04   -1.5410    
  13  Prefactor     2.3414        7.6494        .13396E-02   -1.5402    
  14  Prefactor     .10000E-03    2.5812        .10371E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          5.2187        2.4112        .62485E-04   -1.5251    
  16  norm          .10000E-03    3.1912        .11418E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    5.2487        .14775E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    104.42        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     20.531        26.152        .88381E-04   -1.4801    
  20  Prefactor     11.939        14.942        .11593E-03   -1.5017    
  21  norm          6.9398        1.8864        .45298E-04   -1.5181    
  22  Prefactor     .10000E-03    6.9487        .16994E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     4.7249        22.445        .18535E-03   -1.5273    
  24  norm          .10000E-03    13.433        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    5.5356        .15226E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     51.320        71.403        .55984E-04   -1.4274    
  27  Prefactor     .10000E-03    1.5258        .79891E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    4.7838        .14153E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .62232        .22902        .26734E-03   -1.0704    
  30  Prefactor     1.0094        .23196        .22720E-03   -.92415    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.31316e-10
Minuit parameter uncertainties:
  1  0.000123093
  2  31.5087
  3  29.1572
  4  0.000223679
  5  3.18258e-05
  6  10.7131
  7  0.000463998
  8  17.2298
  9  6.93687e-08
  10  14.3793
  11  15.6365
  12  2.01946
  13  7.65263
  14  5.2731e-07
  15  2.41123
  16  4.71274e-07
  17  1.72241e-05
  18  0.000694633
  19  26.1663
  20  14.9464
  21  1.88637
  22  4.80437e-06
  23  20.6087
  24  1.41732e-05
  25  1.61604e-05
  26  71.5221
  27  1.05432e-06
  28  3.40882e-06
  29  0.229375
  30  0.232195
Done.

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

Extracting fit parameters...

4FGL J1520.5+4209
   Spectrum: PowerLaw
308    Prefactor:  2.053e+01  2.617e+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:  1.009e+00  2.322e-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.223e-01  2.294e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.03
Ra Dec: 230.135 42.160
Photon Index (Fixed Index): 2.50 +/- 0.00
Photon Flux (Fixed Index): 3.70e-08 +/- 4.71e-08
Energy Flux (Fixed Index): 1.07e-05 +/- 1.36e-05

TS (Fixed Index): 1.03
Ra Dec: 230.135 42.160
Photon Flux Upper Limit: 1.31e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.02e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/493256/likelihoodResults_473904001_474163201_4FGL_J1520.5+4209_daily_bin905.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4390.6047075
delta logL = 0.0597075078549

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4390.6032024
delta logL = 0.0612126040105

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    29.470       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1740       1.0000          .0000       10.000    
     3 'Normalizat'    .63313       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99922       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=   4390.603     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      288 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     29.475        37.903        .73803E-04   -.65403E-03
   2  Index         2.1739        .85350        .91892E-02   -.28436E-03
   3  Normalizat    .63339        .21733        .26511E-03    .28895E-03
   4  Prefactor     .99892        .23131        .22820E-03    .50041E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 29.4751
  Index      = 2.17394
  Normalizat = 0.633394
  Prefactor  = 0.998919
 **********
 **   18 **HESSE 
 **********

 FCN=   4390.603     FROM HESSE     STATUS=OK            23 CALLS      311 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     29.475        36.556        .14761E-04   -1.4622    
   2  Index         2.1739        .82298        .36757E-03   -.60069    
   3  Normalizat    .63339        .21728        .10604E-04   -1.0658    
   4  Prefactor     .99892        .23127        .45639E-04   -.92766    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.49865e-09
Minuit parameter uncertainties:
  1  36.5835
  2  0.828539
  3  0.217578
  4  0.231504
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/493256': 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) = 4390.60320152
delta logL = 0.0612134892426

Extracting fit parameters...

4FGL J1520.5+4209
   Spectrum: PowerLaw
308    Prefactor:  2.948e+01  3.658e+01  1.000e-04  1.000e+04 ( 1.000e-13)
309        Index:  2.174e+00  8.285e-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:  9.989e-01  2.315e-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.334e-01  2.176e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.15
Ra Dec: 230.135 42.160
Photon Index (Free Index): 2.17 +/- 0.83
Photon Flux (Free Index): 3.24e-08 +/- 3.97e-08
Energy Flux (Free Index): 1.53e-05 +/- 2.31e-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/493256/cmap_HighResolution_473904001_474163201_4FGL_J1520.5+4209_daily_bin905.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.02e-02', comment='SUCCESS', photon_flux='3.70e-08', energy_flux2='1.53e-05', photon_flux_error='4.71e-08', dlogl='6.12e-02', energy_flux='1.07e-05', photon_flux2='3.24e-08', job_status='DONE', time_completed='2021-09-12 01:41:43.447190', photon_index_error2='0.83', photon_index2='2.17', ts='1.03', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', photon_flux_upper_limit='1.31e-07', energy_flux_error2='2.31e-05', EG='0.62', time_epoch_completed='1631436103.45', return_code='0', job_id='493256', GAL2='1.00', EG2='0.63', return_code2='0', energy_flux_error='1.36e-05', photon_flux_error2='3.97e-08', ts2='1.15', photon_index='2.50' WHERE bin_id='905' AND source_name='4FGL J1520.5+4209' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 01:41:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0282>
Subject: Job 493256: <4FGL_J1520.5+4209_daily_bin905> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1520.5+4209_daily_bin905 230.135 42.16 473904001 474163201 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 :                                   733.41 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             288.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   977 sec.
    Turnaround time :                            980 sec.

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

