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


Performing analysis on: 4FGL_J1520.5+4209_daily_bin936
RA = 230.135, Dec = 42.16
tmin = 481939201, tmax = 482198401
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='493302', job_status='RUN', time_executed='2021-09-12 01:25:51.031227', time_epoch_executed='1631435151.03' WHERE source_name='4FGL J1520.5+4209' and cadence='daily' and bin_id='936'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/493302

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/493302/ft1_4FGL_J1520.5+4209_daily_bin936.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/493302/ft2_4FGL_J1520.5+4209_daily_bin936.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/493302/ft1_4FGL_J1520.5+4209_daily_bin936.fits outfile=/scratch/kocevski/493302/ft1_filteredMKT_4FGL_J1520.5+4209_daily_bin936.fits ra=230.135 dec=42.16 rad=12.0 tmin=481939201.0 tmax=482198401.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.56
user 3.34
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/493302/ft1_filtered_4FGL_J1520.5+4209_daily_bin936.fits" evtable="EVENTS" scfile=/scratch/kocevski/493302/ft2_4FGL_J1520.5+4209_daily_bin936.fits sctable="SC_DATA" outfile=/scratch/kocevski/493302/ltcube_481939201_482198401_4FGL_J1520.5+4209_daily_bin936.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/493302/ft2_4FGL_J1520.5+4209_daily_bin936.fits
.....................!
real 11.80
user 11.46
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/493302/ft1_filtered_4FGL_J1520.5+4209_daily_bin936.fits evtable="EVENTS" scfile=/scratch/kocevski/493302/ft2_4FGL_J1520.5+4209_daily_bin936.fits sctable="SC_DATA" expcube=/scratch/kocevski/493302/ltcube_481939201_482198401_4FGL_J1520.5+4209_daily_bin936.fits outfile=/scratch/kocevski/493302/expmap_481939201_482198401_4FGL_J1520.5+4209_daily_bin936.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/493302/ltcube_481939201_482198401_4FGL_J1520.5+4209_daily_bin936.fits
.....................!
real 190.26
user 184.80
sys 5.15

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/493302/ft1_filtered_4FGL_J1520.5+4209_daily_bin936.fits scfile=/scratch/kocevski/493302/ft2_4FGL_J1520.5+4209_daily_bin936.fits outfile=/scratch/kocevski/493302/cmap_481939201_482198401_4FGL_J1520.5+4209_daily_bin936.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=230.135 yref=42.16 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.15

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

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    28.898       1.0000         .10000E-03   10000.    
     3 'norm      '    .11387E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10130E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    21.394       1.0000         .10000E-03   10000.    
     6 'norm      '    9.7349       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    19.339       1.0000         .10000E-03   10000.    
     9 'norm      '    .10102E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    28.383       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10100E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    5.1485       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .18633       1.0000         .10000E-03   10000.    
    15 'norm      '    2.8408       1.0000         .10000E-03   10000.    
    16 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.9385       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    19.001       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10205E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    15.338       1.0000         .10000E-03   10000.    
    23 'Prefactor '    10.412       1.0000         .10000E-03   10000.    
    24 'norm      '    .12026E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    15.230       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .93833       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .71905       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=   5682.698     FROM MIGRAD    STATUS=CONVERGED    733 CALLS     3903 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.806        .14873E-04** at limit **
   2  Prefactor     28.907        23.931        .39820E-05    .19560E-03
   3  norm          .10000E-03    25.561       -.21205E-04** at limit **
   4  Prefactor     .10000E-03    65.046       -.41739E-04** at limit **
   5  Prefactor     21.399        25.533        .17969E-05   -.10508E-04
   6  norm          9.7338        7.7373       -.17967E-05   -.23019E-02
   7  Prefactor     .10000E-03    19.631       -.91761E-05** at limit **
   8  Prefactor     19.340        13.928       -.89841E-07   -.90897E-04
   9  norm          .10000E-03    10.228        .51446E-05** at limit **
  10  Prefactor     28.381        17.980        .57290E-06    .81145E-04
  11  Prefactor     .10000E-03    49.681        .26850E-04** at limit **
  12  norm          5.1488        1.9508       -.10363E-06   -.13352E-02
  13  Prefactor     .10000E-03    11.561       -.47584E-05** at limit **
  14  Prefactor     .18134        2.8485       -.67725E-06    .17832E-04
  15  norm          2.8409        1.6938        .36716E-07    .22473E-03
  16  norm          .10000E-03    1.4862        .15387E-06** at limit **
  17  Prefactor     3.9397        5.6918       -.31966E-05   -.16546E-03
  18  Prefactor     .10000E-03    33.934        .14891E-04** at limit **
  19  Prefactor     19.003        18.368        .62717E-06    .10396E-03
  20  Prefactor     .10000E-03    11.721       -.44501E-05** at limit **
  21  norm          .10000E-03    .40480        .65235E-08** at limit **
  22  Prefactor     15.342        9.1504       -.57824E-07   -.49768E-04
  23  Prefactor     10.412        19.164        .73540E-06   -.46344E-04
  24  norm          .10000E-03    18.106        .11107E-05** at limit **
  25  Prefactor     .10000E-03    9.1275       -.75579E-06** at limit **
  26  Prefactor     .10000E-03    32.897        .10223E-04** at limit **
  27  Prefactor     .10000E-03    1.5943       -.52542E-08** at limit **
  28  Prefactor     15.231        15.607        .19464E-06   -.21110E-04
  29  Normalizat    .93804        .16879       -.44059E-06   -.49343E-04
  30  Prefactor     .71934        .16661        .55593E-06   -.98754E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 28.9067
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.3988
  norm       = 9.73382
  Prefactor  = 0.0001
  Prefactor  = 19.3402
  norm       = 0.0001
  Prefactor  = 28.3814
  Prefactor  = 0.000100002
  norm       = 5.14879
  Prefactor  = 0.0001
  Prefactor  = 0.181335
  norm       = 2.84095
  norm       = 0.0001
  Prefactor  = 3.93967
  Prefactor  = 0.0001
  Prefactor  = 19.0032
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 15.3415
  Prefactor  = 10.4125
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.2306
  Normalizat = 0.938043
  Prefactor  = 0.719343
 **********
 **   18 **HESSE 
 **********

 FCN=   5682.698     FROM HESSE     STATUS=OK           586 CALLS     4489 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.779        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     28.907        24.093        .74528E-04   -1.4632    
   3  norm          .10000E-03    25.670        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    64.583        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     21.399        25.638        .86596E-04   -1.4782    
   6  norm          9.7338        7.9125        .64217E-03   -1.5084    
   7  Prefactor     .10000E-03    19.625        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     19.340        13.917        .91078E-04   -1.4828    
   9  norm          .10000E-03    10.375        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     28.381        17.989        .75199E-04   -1.4642    
  11  Prefactor     .10000E-03    51.010        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          5.1488        1.9475        .61965E-04   -1.5254    
  13  Prefactor     .10000E-03    11.779        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .18134        25.683        .24165E-02   -1.5623    
  15  norm          2.8409        1.6852        .71466E-04   -1.5371    
  16  norm          .10000E-03    1.5009        .89637E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     3.9397        5.6770        .20327E-03   -1.5311    
  18  Prefactor     .10000E-03    33.892        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     19.003        18.373        .91882E-04   -1.4836    
  20  Prefactor     .10000E-03    11.805        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    .41618        .92846E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     15.342        9.0826        .10227E-03   -1.4924    
  23  Prefactor     10.412        19.057        .12417E-03   -1.5062    
  24  norm          .10000E-03    18.150        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    9.1374        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    32.899        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    1.5981        .92888E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     15.231        15.600        .10263E-03   -1.4927    
  29  Normalizat    .93804        .20074        .21920E-03   -.95136    
  30  Prefactor     .71934        .19738        .25594E-03   -1.0277    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.02677e-09
Minuit parameter uncertainties:
  1  3.70167e-05
  2  24.1012
  3  6.67583e-05
  4  2.76831e-05
  5  25.6513
  6  7.91333
  7  3.72449e-06
  8  13.9191
  9  5.22725e-06
  10  17.9923
  11  0.000622296
  12  1.94757
  13  4.40549e-05
  14  4.31679
  15  1.68525
  16  1.68314e-05
  17  5.67781
  18  7.51011e-06
  19  18.3786
  20  0.000105305
  21  1.15027e-07
  22  9.08338
  23  19.0686
  24  5.50971e-05
  25  3.80552e-06
  26  5.33472e-06
  27  5.4869e-07
  28  15.6039
  29  0.200899
  30  0.197572
Done.

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

Extracting fit parameters...

4FGL J1520.5+4209
   Spectrum: PowerLaw
308    Prefactor:  1.900e+01  1.838e+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:  7.193e-01  1.976e-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.380e-01  2.009e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.78
Ra Dec: 230.135 42.160
Photon Index (Fixed Index): 2.50 +/- 0.00
Photon Flux (Fixed Index): 3.42e-08 +/- 3.31e-08
Energy Flux (Fixed Index): 9.88e-06 +/- 9.56e-06

TS (Fixed Index): 1.78
Ra Dec: 230.135 42.160
Photon Flux Upper Limit: 1.07e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.34e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/493302/likelihoodResults_481939201_482198401_4FGL_J1520.5+4209_daily_bin936.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) = 5682.67832326
delta logL = 0.0197206119201

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5682.66441343
delta logL = 0.0336304381872

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.410       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7544       1.0000          .0000       10.000    
     3 'Normalizat'    .92664       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72736       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=   5682.664     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      220 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.385        403.92        .25507E-02    .29885E-04
   2  Index         2.7550        6.3219        .13337        .10745E-03
   3  Normalizat    .92670        .78088E-01    .45241E-01    .56965E-05
   4  Prefactor     .72727        .61300E-01    .42764E-01    .12865E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.385
  Index      = 2.75498
  Normalizat = 0.926696
  Prefactor  = 0.727271
 **********
 **   18 **HESSE 
 **********

 FCN=   5682.664     FROM HESSE     STATUS=OK            33 CALLS      253 TOTAL
                     EDM=   .21E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.385        24.646        .10203E-03   -1.4923    
   2  Index         2.7550        1.1469        .82093E-02   -.46565    
   3  Normalizat    .92670        .19650        .22041E-03   -.95528    
   4  Prefactor     .72727        .19905        .25468E-03   -1.0247    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.09684e-11
Minuit parameter uncertainties:
  1  24.6628
  2  1.15984
  3  0.196657
  4  0.199244
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/493302': 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) = 5682.6644124
delta logL = 0.0336314681563

Extracting fit parameters...

4FGL J1520.5+4209
   Spectrum: PowerLaw
308    Prefactor:  1.538e+01  2.466e+01  1.000e-04  1.000e+04 ( 1.000e-13)
309        Index:  2.755e+00  1.160e+00  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:  7.273e-01  1.992e-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.267e-01  1.967e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.84
Ra Dec: 230.135 42.160
Photon Index (Free Index): 2.75 +/- 1.16
Photon Flux (Free Index): 4.16e-08 +/- 4.57e-08
Energy Flux (Free Index): 9.60e-06 +/- 9.01e-06

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/493302/cmap_HighResolution_481939201_482198401_4FGL_J1520.5+4209_daily_bin936.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.34e-03', comment='SUCCESS', photon_flux='3.42e-08', energy_flux2='9.60e-06', photon_flux_error='3.31e-08', dlogl='3.36e-02', energy_flux='9.88e-06', photon_flux2='4.16e-08', job_status='DONE', time_completed='2021-09-12 01:39:51.974479', photon_index_error2='1.16', photon_index2='2.75', ts='1.78', fit_tolerance='1e-08', GAL='0.72', photon_index_error='0.00', photon_flux_upper_limit='1.07e-07', energy_flux_error2='9.01e-06', EG='0.94', time_epoch_completed='1631435991.97', return_code='0', job_id='493302', GAL2='0.73', EG2='0.93', return_code2='0', energy_flux_error='9.56e-06', photon_flux_error2='4.57e-08', ts2='1.84', photon_index='2.50' WHERE bin_id='936' AND source_name='4FGL J1520.5+4209' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 01:39:52 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1520.5+4209_daily_bin936 230.135 42.16 481939201 482198401 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 :                                   831.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             330.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   864 sec.
    Turnaround time :                            865 sec.

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

