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


Performing analysis on: 4FGL_J1520.5+4209_daily_bin145
RA = 230.135, Dec = 42.16
tmin = 276912001, tmax = 277171201
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='488762', job_status='RUN', time_executed='2021-09-12 01:10:46.695772', time_epoch_executed='1631434246.7' WHERE source_name='4FGL J1520.5+4209' and cadence='daily' and bin_id='145'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/488762

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/488762/ft1_4FGL_J1520.5+4209_daily_bin145.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/488762/ft2_4FGL_J1520.5+4209_daily_bin145.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/488762/ft1_4FGL_J1520.5+4209_daily_bin145.fits outfile=/scratch/kocevski/488762/ft1_filteredMKT_4FGL_J1520.5+4209_daily_bin145.fits ra=230.135 dec=42.16 rad=12.0 tmin=276912001.0 tmax=277171201.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.46
user 3.23
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/488762/ft2_4FGL_J1520.5+4209_daily_bin145.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/488762/ft1_filteredMKT_4FGL_J1520.5+4209_daily_bin145.fits evtable="EVENTS" outfile="/scratch/kocevski/488762/ft1_filtered_4FGL_J1520.5+4209_daily_bin145.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/488762/ft1_filtered_4FGL_J1520.5+4209_daily_bin145.fits" evtable="EVENTS" scfile=/scratch/kocevski/488762/ft2_4FGL_J1520.5+4209_daily_bin145.fits sctable="SC_DATA" outfile=/scratch/kocevski/488762/ltcube_276912001_277171201_4FGL_J1520.5+4209_daily_bin145.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/488762/ft2_4FGL_J1520.5+4209_daily_bin145.fits
.....................!
real 11.94
user 11.56
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/488762/ft1_filtered_4FGL_J1520.5+4209_daily_bin145.fits evtable="EVENTS" scfile=/scratch/kocevski/488762/ft2_4FGL_J1520.5+4209_daily_bin145.fits sctable="SC_DATA" expcube=/scratch/kocevski/488762/ltcube_276912001_277171201_4FGL_J1520.5+4209_daily_bin145.fits outfile=/scratch/kocevski/488762/expmap_276912001_277171201_4FGL_J1520.5+4209_daily_bin145.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/488762/ltcube_276912001_277171201_4FGL_J1520.5+4209_daily_bin145.fits
.....................!
real 190.83
user 185.50
sys 5.02

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/488762/ft1_filtered_4FGL_J1520.5+4209_daily_bin145.fits scfile=/scratch/kocevski/488762/ft2_4FGL_J1520.5+4209_daily_bin145.fits outfile=/scratch/kocevski/488762/cmap_276912001_277171201_4FGL_J1520.5+4209_daily_bin145.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.34
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/488762/ft1_filtered_4FGL_J1520.5+4209_daily_bin145.fits scfile=/scratch/kocevski/488762/ft2_4FGL_J1520.5+4209_daily_bin145.fits outfile=/scratch/kocevski/488762/cmap_HighResolution_276912001_277171201_4FGL_J1520.5+4209_daily_bin145.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.36
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.5321       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    10.066       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10122E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    1.2076       1.0000         .10000E-03   10000.    
     7 'Prefactor '    49.553       1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.6924       1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.8438       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.3011       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.9011       1.0000         .10000E-03   10000.    
    16 'norm      '    .51208E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    10.410       1.0000         .10000E-03   10000.    
    21 'norm      '    13.272       1.0000         .10000E-03   10000.    
    22 'Prefactor '    7.0096       1.0000         .10000E-03   10000.    
    23 'Prefactor '    20.320       1.0000         .10000E-03   10000.    
    24 'norm      '    .10069E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    5.0720       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .95905       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.1908       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=   7096.257     FROM MIGRAD    STATUS=CONVERGED    750 CALLS     3330 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.5302        37.293        .12367E-05   -.64135E-05
   2  Prefactor     .10000E-03    7.2299        .24830E-06** at limit **
   3  norm          10.070        13.058       -.41868E-06   -.46829E-04
   4  Prefactor     .10000E-03    75.436       -.36858E-05** at limit **
   5  Prefactor     .10000E-03    17.480        .19330E-05** at limit **
   6  norm          1.1921        13.171        .43335E-05    .22408E-04
   7  Prefactor     49.589        46.025        .23809E-05    .23020E-03
   8  Prefactor     7.6890        15.134        .16677E-06   -.85742E-05
   9  norm          .10000E-03    2.5086       -.88934E-07** at limit **
  10  Prefactor     6.8466        12.232        .33408E-05    .83635E-04
  11  Prefactor     .10000E-03    18.666        .22342E-06** at limit **
  12  norm          1.3006        1.7406        .32889E-06    .10263E-03
  13  Prefactor     .10000E-03    8.4530       -.14951E-06** at limit **
  14  Prefactor     .10000E-03    10.412       -.44624E-06** at limit **
  15  norm          1.9006        1.8166        .17954E-09   -.20375E-03
  16  norm          .10392E-03    2.1059        .13381E-05** at limit **
  17  Prefactor     .10000E-03    5.0313       -.11246E-06** at limit **
  18  Prefactor     .10000E-03    30.079       -.10635E-05** at limit **
  19  Prefactor     .10000E-03    6.1404        .35867E-06** at limit **
  20  Prefactor     10.407        12.626        .45080E-06   -.38110E-03
  21  norm          13.272        2.3256       -.39359E-08   -.96095E-04
  22  Prefactor     7.0088        11.714        .31579E-06    .32012E-05
  23  Prefactor     20.316        15.219        .70900E-07   -.15554E-05
  24  norm          .10000E-03    6.3701       -.59443E-06** at limit **
  25  Prefactor     .10000E-03    22.094       -.23867E-05** at limit **
  26  Prefactor     5.0717        112.33        .18073E-05   -.26900E-05
  27  Prefactor     .10000E-03    2.5988        .41391E-07** at limit **
  28  Prefactor     .10000E-03    34.080        .21580E-05** at limit **
  29  Normalizat    .95909        .18004       -.14942E-05   -.33327E-03
  30  Prefactor     1.1909        .18265       -.26853E-06   -.39248E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.53023
  Prefactor  = 0.0001
  norm       = 10.0701
  Prefactor  = 0.000100004
  Prefactor  = 0.000100001
  norm       = 1.19207
  Prefactor  = 49.5889
  Prefactor  = 7.68896
  norm       = 0.0001
  Prefactor  = 6.84658
  Prefactor  = 0.0001
  norm       = 1.30065
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.90065
  norm       = 0.000103922
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.4072
  norm       = 13.2718
  Prefactor  = 7.00881
  Prefactor  = 20.3159
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 5.07169
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Normalizat = 0.95909
  Prefactor  = 1.19086
 **********
 **   18 **HESSE 
 **********

 FCN=   7096.257     FROM HESSE     STATUS=OK           588 CALLS     3918 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.5302        37.591        .21509E-03   -1.5332    
   2  Prefactor     .10000E-03    7.2422        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          10.070        13.046        .12630E-03   -1.5073    
   4  Prefactor     .10000E-03    76.119        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    17.610        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.1921        13.239        .41211E-03   -1.5490    
   7  Prefactor     49.589        47.140        .56968E-04   -1.4298    
   8  Prefactor     7.6890        15.090        .14458E-03   -1.5153    
   9  norm          .10000E-03    2.5102        .13033E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.8466        12.260        .76683E-03   -1.5185    
  11  Prefactor     .10000E-03    18.824        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.3006        1.7169        .12214E-03   -1.5480    
  13  Prefactor     .10000E-03    8.5901        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    10.727        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.9006        1.7975        .10319E-03   -1.5432    
  16  norm          .10392E-03    3.0539        .39041E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    5.0505        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    30.138        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    6.1537        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     10.407        12.566        .12418E-03   -1.5063    
  21  norm          13.272        2.3296        .46019E-04   -1.4979    
  22  Prefactor     7.0088        11.728        .15152E-03   -1.5178    
  23  Prefactor     20.316        15.216        .88854E-04   -1.4806    
  24  norm          .10000E-03    6.3975        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    22.392        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     5.0717        112.39        .17854E-03   -1.5258    
  27  Prefactor     .10000E-03    2.6132        .13260E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    34.765        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .95909        .21635        .26104E-03   -.94414    
  30  Prefactor     1.1909        .22170        .25448E-03   -.86613    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.4359e-09
Minuit parameter uncertainties:
  1  23.0577
  2  1.48991e-05
  3  13.0492
  4  0.00111011
  5  0.000214884
  6  7.94714
  7  47.1751
  8  15.0978
  9  7.09219e-06
  10  12.2649
  11  4.15449e-05
  12  1.71699
  13  4.21865e-05
  14  3.28021e-05
  15  1.79757
  16  0.0069218
  17  1.98349e-05
  18  0.000197162
  19  3.0379e-05
  20  12.5692
  21  2.32963
  22  11.7321
  23  15.2192
  24  4.73812e-05
  25  0.000348693
  26  47.8515
  27  3.52172e-06
  28  0.00046384
  29  0.216543
  30  0.221871
Done.

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

Extracting fit parameters...

4FGL J1520.5+4209
   Spectrum: PowerLaw
308    Prefactor:  1.000e-04  3.038e-05  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.191e+00  2.219e-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.591e-01  2.165e-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.25e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.09e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/488762/likelihoodResults_276912001_277171201_4FGL_J1520.5+4209_daily_bin145.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) = 7096.25792301
delta logL = -0.000772645155848

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7096.25715048
delta logL = -1.1460724636e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10401E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4797       1.0000          .0000       10.000    
     3 'Normalizat'    .95908       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1909       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=   7096.257     FROM MIGRAD    STATUS=CONVERGED    108 CALLS      260 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    22.700        .18142E-01** at limit **
   2  Index         1.8895        6.5954        .50000       -.22952E-06
   3  Normalizat    .95909        .66542E-02    .26104E-03    .78870E-04
   4  Prefactor     1.1909        .71716E-02    .25448E-03    .45925E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.88954
  Normalizat = 0.959091
  Prefactor  = 1.19087
 **********
 **   18 **HESSE 
 **********

 FCN=   7096.257     FROM HESSE     STATUS=NOT POSDEF    27 CALLS      287 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    183.15        .24519E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8895        5.9349        .50000       -.67141    
   3  Normalizat    .95909        .19292E-01    .10442E-04   -.94414    
   4  Prefactor     1.1909        .20792E-01    .10179E-04   -.86613    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.77681e-09
Minuit parameter uncertainties:
  1  2.82464e-05
  2  691.887
  3  0.0192923
  4  0.0207924
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/488762': 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) = 7096.25714786
delta logL = 2.51141227636e-06

Extracting fit parameters...

4FGL J1520.5+4209
   Spectrum: PowerLaw
308    Prefactor:  1.000e-04  2.825e-05  1.000e-04  1.000e+04 ( 1.000e-13)
309        Index:  1.890e+00  6.919e+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.191e+00  2.079e-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.591e-01  1.929e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/488762/cmap_HighResolution_276912001_277171201_4FGL_J1520.5+4209_daily_bin145.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.09e-03', job_status='DONE', photon_flux_upper_limit='5.25e-08', time_completed='2021-09-12 01:26:16.318628', job_id='488762', GAL2='1.19', fit_tolerance='1e-08', EG2='0.96', EG='0.96', time_epoch_completed='1631435176.32', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.19', dlogl='2.51e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.50' WHERE bin_id='145' AND source_name='4FGL J1520.5+4209' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 01:26:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0014>
Subject: Job 488762: <4FGL_J1520.5+4209_daily_bin145> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1520.5+4209_daily_bin145 230.135 42.16 276912001 277171201 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 :                                   925.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             304.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   940 sec.
    Turnaround time :                            942 sec.

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

