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


Performing analysis on: 4FGL_J1520.5+4209_daily_bin365
RA = 230.135, Dec = 42.16
tmin = 333936001, tmax = 334195201
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='490182', job_status='RUN', time_executed='2021-09-12 01:16:26.322066', time_epoch_executed='1631434586.32' WHERE source_name='4FGL J1520.5+4209' and cadence='daily' and bin_id='365'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/490182

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/490182/ft1_4FGL_J1520.5+4209_daily_bin365.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/490182/ft2_4FGL_J1520.5+4209_daily_bin365.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/490182/ft1_4FGL_J1520.5+4209_daily_bin365.fits outfile=/scratch/kocevski/490182/ft1_filteredMKT_4FGL_J1520.5+4209_daily_bin365.fits ra=230.135 dec=42.16 rad=12.0 tmin=333936001.0 tmax=334195201.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.51
user 3.29
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/490182/ft2_4FGL_J1520.5+4209_daily_bin365.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/490182/ft1_filteredMKT_4FGL_J1520.5+4209_daily_bin365.fits evtable="EVENTS" outfile="/scratch/kocevski/490182/ft1_filtered_4FGL_J1520.5+4209_daily_bin365.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/490182/ft1_filtered_4FGL_J1520.5+4209_daily_bin365.fits" evtable="EVENTS" scfile=/scratch/kocevski/490182/ft2_4FGL_J1520.5+4209_daily_bin365.fits sctable="SC_DATA" outfile=/scratch/kocevski/490182/ltcube_333936001_334195201_4FGL_J1520.5+4209_daily_bin365.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/490182/ft2_4FGL_J1520.5+4209_daily_bin365.fits
.....................!
real 11.70
user 11.33
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/490182/ft1_filtered_4FGL_J1520.5+4209_daily_bin365.fits evtable="EVENTS" scfile=/scratch/kocevski/490182/ft2_4FGL_J1520.5+4209_daily_bin365.fits sctable="SC_DATA" expcube=/scratch/kocevski/490182/ltcube_333936001_334195201_4FGL_J1520.5+4209_daily_bin365.fits outfile=/scratch/kocevski/490182/expmap_333936001_334195201_4FGL_J1520.5+4209_daily_bin365.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/490182/ltcube_333936001_334195201_4FGL_J1520.5+4209_daily_bin365.fits
.....................!
real 190.36
user 185.09
sys 4.95

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/490182/ft1_filtered_4FGL_J1520.5+4209_daily_bin365.fits scfile=/scratch/kocevski/490182/ft2_4FGL_J1520.5+4209_daily_bin365.fits outfile=/scratch/kocevski/490182/cmap_333936001_334195201_4FGL_J1520.5+4209_daily_bin365.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.36
sys 0.15

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

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

This is gtbin version HEAD
real 0.53
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13858E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .44316       1.0000         .10000E-03   10000.    
     3 'norm      '    9.1814       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .23361E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    25.120       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.884       1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.053       1.0000         .10000E-03   10000.    
    12 'norm      '    4.0373       1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.7632       1.0000         .10000E-03   10000.    
    14 'Prefactor '    16.479       1.0000         .10000E-03   10000.    
    15 'norm      '    2.1125       1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.0683       1.0000         .10000E-03   10000.    
    21 'norm      '    5.9969       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    21.862       1.0000         .10000E-03   10000.    
    24 'norm      '    .10314E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    28.950       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .68764       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .89277       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0989       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=   5959.993     FROM MIGRAD    STATUS=CONVERGED    789 CALLS     3936 TOTAL
                     EDM=   .88E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    64.016       -.17641E-06** at limit **
   2  Prefactor     .22395        40.165       -.62244E-05    .38426E-03
   3  norm          9.3022        26.303        .17779E-05    .29466E-03
   4  Prefactor     .10003E-03    516.71       -.21853E-04** at limit **
   5  Prefactor     .10000E-03    12.493        .63055E-06** at limit **
   6  norm          .10000E-03    2.6662       -.41083E-07** at limit **
   7  Prefactor     25.181        38.381        .33325E-05    .16677E-03
   8  Prefactor     .10000E-03    18.379        .83867E-06** at limit **
   9  norm          .10000E-03    3.0427       -.12003E-09** at limit **
  10  Prefactor     11.883        12.754        .20410E-06    .54443E-04
  11  Prefactor     11.065        20.152        .18689E-05    .10555E-03
  12  norm          4.0369        1.7005       -.11607E-07    .10140E-03
  13  Prefactor     7.7630        7.2607       -.20835E-07    .35786E-04
  14  Prefactor     16.474        10.527       -.36950E-06   -.59308E-04
  15  norm          2.1122        1.9276        .61774E-07    .12035E-03
  16  norm          .10000E-03    1.8028        .19688E-06** at limit **
  17  Prefactor     .10000E-03    14.562        .21199E-05** at limit **
  18  Prefactor     .10000E-03    26.754       -.44938E-06** at limit **
  19  Prefactor     .10000E-03    12.277       -.38949E-06** at limit **
  20  Prefactor     3.0593        13.727        .48860E-05    .11714E-03
  21  norm          5.9962        1.9926        .41204E-07   -.56131E-04
  22  Prefactor     .10000E-03    30.140        .21503E-06** at limit **
  23  Prefactor     21.870        17.197       -.13870E-06   -.29105E-04
  24  norm          .10000E-03    9.1373        .99955E-07** at limit **
  25  Prefactor     .10000E-03    16.648       -.10540E-05** at limit **
  26  Prefactor     28.926        72.288        .45198E-05    .42365E-04
  27  Prefactor     .68963        4.8731        .72774E-06    .76400E-04
  28  Prefactor     .10000E-03    10.419        .66475E-07** at limit **
  29  Normalizat    .89304        .19732       -.10500E-05    .23921E-03
  30  Prefactor     1.0988        .19161       -.11958E-06    .13427E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.223955
  norm       = 9.3022
  Prefactor  = 0.000100031
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 25.1813
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 11.8831
  Prefactor  = 11.065
  norm       = 4.03686
  Prefactor  = 7.76298
  Prefactor  = 16.4736
  norm       = 2.11224
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.05933
  norm       = 5.99619
  Prefactor  = 0.0001
  Prefactor  = 21.8697
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 28.926
  Prefactor  = 0.689626
  Prefactor  = 0.0001
  Normalizat = 0.893042
  Prefactor  = 1.0988
 **********
 **   18 **HESSE 
 **********

 FCN=   5959.993     FROM HESSE     STATUS=OK           588 CALLS     4524 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    64.559        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .22395        41.757        .10089       -1.5613    
   3  norm          9.3022        27.471        .13227E-03   -1.5098    
   4  Prefactor     .10003E-03    522.11        .20084E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    12.498        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    2.6748        .12308E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     25.181        38.520        .79925E-04   -1.4704    
   8  Prefactor     .10000E-03    18.516        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    3.0444        .13152E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     11.883        12.751        .58102E-03   -1.5018    
  11  Prefactor     11.065        20.166        .12050E-03   -1.5043    
  12  norm          4.0369        1.7004        .62502E-04   -1.5306    
  13  Prefactor     7.7630        7.2492        .14392E-03   -1.5151    
  14  Prefactor     16.474        10.523        .98662E-04   -1.4896    
  15  norm          2.1122        1.9116        .93090E-04   -1.5417    
  16  norm          .10000E-03    1.8169        .10121E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    15.244        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    26.761        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    12.321        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     3.0593        14.210        .11579E-02   -1.5358    
  21  norm          5.9962        1.9787        .59095E-04   -1.5218    
  22  Prefactor     .10000E-03    30.938        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     21.870        17.185        .85665E-04   -1.4772    
  24  norm          .10000E-03    9.1615        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    16.679        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     28.926        72.239        .74462E-04   -1.4632    
  27  Prefactor     .68963        4.7648        .32898E-03   -1.5542    
  28  Prefactor     .10000E-03    10.422        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .89304        .24012        .26450E-03   -.96705    
  30  Prefactor     1.0988        .23308        .24947E-03   -.89505    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.29843e-09
Minuit parameter uncertainties:
  1  5.07931e-05
  2  6.11909
  3  27.5085
  4  0.00808875
  5  4.27017e-05
  6  9.77524e-08
  7  38.558
  8  4.89282e-05
  9  8.50289e-08
  10  12.7542
  11  20.1781
  12  1.7004
  13  7.25002
  14  10.5238
  15  1.91166
  16  3.40017e-06
  17  9.40792e-05
  18  4.11402e-05
  19  2.91394e-05
  20  13.192
  21  1.97876
  22  2.76499e-05
  23  17.1888
  24  1.51512e-05
  25  7.27082e-05
  26  72.4583
  27  3.62558
  28  1.99786e-06
  29  0.240407
  30  0.233295
Done.

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

Extracting fit parameters...

4FGL J1520.5+4209
   Spectrum: PowerLaw
308    Prefactor:  1.000e-04  2.914e-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.099e+00  2.333e-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:  8.930e-01  2.404e-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: 7.61e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.92e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/490182/likelihoodResults_333936001_334195201_4FGL_J1520.5+4209_daily_bin365.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) = 5959.99376435
delta logL = -0.000386768372664

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5959.99337769
delta logL = -1.04607352114e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10133E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5049       1.0000          .0000       10.000    
     3 'Normalizat'    .89298       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0989       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.

 FCN=   5959.993     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      207 TOTAL
                     EDM=   .47E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    33.323        .90712E-02** at limit **
   2  Index         2.5050        5.6195        .50000       -.64892E-07
   3  Normalizat    .89304        .73449E-02    .44812E-01    .16041E-04
   4  Prefactor     1.0988        .76398E-02    .56419E-01    .76431E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.50497
  Normalizat = 0.89304
  Prefactor  = 1.0988
 **********
 **   18 **HESSE 
 **********

 FCN=   5959.993     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      240 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    311.91        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5050        6.3723        .50000       -.52245    
   3  Normalizat    .89304        .23088E-01    .26450E-03   -.96705    
   4  Prefactor     1.0988        .24011E-01    .24947E-03   -.89505    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.41794e-10
Minuit parameter uncertainties:
  1  4.66976e-05
  2  1277.1
  3  0.0230882
  4  0.0240112
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/490182': 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) = 5959.99337758
delta logL = 6.18456397206e-11

Extracting fit parameters...

4FGL J1520.5+4209
   Spectrum: PowerLaw
308    Prefactor:  1.000e-04  4.670e-05  1.000e-04  1.000e+04 ( 1.000e-13)
309        Index:  2.505e+00  1.277e+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:  1.099e+00  2.401e-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:  8.930e-01  2.309e-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/490182/cmap_HighResolution_333936001_334195201_4FGL_J1520.5+4209_daily_bin365.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.92e-03', job_status='DONE', photon_flux_upper_limit='7.61e-08', time_completed='2021-09-12 01:30:34.550637', job_id='490182', GAL2='1.10', fit_tolerance='1e-08', EG2='0.89', EG='0.89', time_epoch_completed='1631435434.55', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.10', dlogl='6.18e-11', ts2='-0.00', photon_index_error='0.00', photon_index='2.50' WHERE bin_id='365' AND source_name='4FGL J1520.5+4209' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 01:30:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0129>
Subject: Job 490182: <4FGL_J1520.5+4209_daily_bin365> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1520.5+4209_daily_bin365 230.135 42.16 333936001 334195201 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 :                                   845.35 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             333.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   910 sec.
    Turnaround time :                            912 sec.

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

