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


Performing analysis on: 4FGL_J1520.5+4209_daily_bin700
RA = 230.135, Dec = 42.16
tmin = 420768001, tmax = 421027201
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='491846', job_status='RUN', time_executed='2021-09-12 01:21:14.475607', time_epoch_executed='1631434874.48' WHERE source_name='4FGL J1520.5+4209' and cadence='daily' and bin_id='700'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/491846

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/491846/ft1_4FGL_J1520.5+4209_daily_bin700.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/491846/ft2_4FGL_J1520.5+4209_daily_bin700.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/491846/ft1_4FGL_J1520.5+4209_daily_bin700.fits outfile=/scratch/kocevski/491846/ft1_filteredMKT_4FGL_J1520.5+4209_daily_bin700.fits ra=230.135 dec=42.16 rad=12.0 tmin=420768001.0 tmax=421027201.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.45
user 3.25
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/491846/ft1_filtered_4FGL_J1520.5+4209_daily_bin700.fits" evtable="EVENTS" scfile=/scratch/kocevski/491846/ft2_4FGL_J1520.5+4209_daily_bin700.fits sctable="SC_DATA" outfile=/scratch/kocevski/491846/ltcube_420768001_421027201_4FGL_J1520.5+4209_daily_bin700.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/491846/ft2_4FGL_J1520.5+4209_daily_bin700.fits
.....................!
real 12.04
user 11.57
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/491846/ft1_filtered_4FGL_J1520.5+4209_daily_bin700.fits evtable="EVENTS" scfile=/scratch/kocevski/491846/ft2_4FGL_J1520.5+4209_daily_bin700.fits sctable="SC_DATA" expcube=/scratch/kocevski/491846/ltcube_420768001_421027201_4FGL_J1520.5+4209_daily_bin700.fits outfile=/scratch/kocevski/491846/expmap_420768001_421027201_4FGL_J1520.5+4209_daily_bin700.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/491846/ltcube_420768001_421027201_4FGL_J1520.5+4209_daily_bin700.fits
.....................!
real 191.08
user 185.43
sys 5.26

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/491846/ft1_filtered_4FGL_J1520.5+4209_daily_bin700.fits scfile=/scratch/kocevski/491846/ft2_4FGL_J1520.5+4209_daily_bin700.fits outfile=/scratch/kocevski/491846/cmap_420768001_421027201_4FGL_J1520.5+4209_daily_bin700.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/491846/ft1_filtered_4FGL_J1520.5+4209_daily_bin700.fits scfile=/scratch/kocevski/491846/ft2_4FGL_J1520.5+4209_daily_bin700.fits outfile=/scratch/kocevski/491846/cmap_HighResolution_420768001_421027201_4FGL_J1520.5+4209_daily_bin700.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.55
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10172E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    38.837       1.0000         .10000E-03   10000.    
     3 'norm      '    .29340E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .34684E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .72552E-02   1.0000         .10000E-03   10000.    
     6 'norm      '    .11276E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11894E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    13.525       1.0000         .10000E-03   10000.    
     9 'norm      '    2.7798       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .16833E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .18692E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .51695       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .15599E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .13739E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.8861       1.0000         .10000E-03   10000.    
    16 'norm      '    .10290E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    11.179       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .14868E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .13679E-01   1.0000         .10000E-03   10000.    
    20 'Prefactor '    12.463       1.0000         .10000E-03   10000.    
    21 'norm      '    5.7028       1.0000         .10000E-03   10000.    
    22 'Prefactor '    19.098       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .69731E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    9.1481       1.0000         .10000E-03   10000.    
    25 'Prefactor '    20.735       1.0000         .10000E-03   10000.    
    26 'Prefactor '    57.109       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .14821E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .41606E-02   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.2078       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .85432       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=   6417.758     FROM MIGRAD    STATUS=CONVERGED    803 CALLS     3371 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.2051       -.16197E-07** at limit **
   2  Prefactor     39.138        26.486        .10336E-04   -.41206E-04
   3  norm          .10000E-03    10.900       -.21048E-06** at limit **
   4  Prefactor     .10000E-03    31.982       -.62853E-06** at limit **
   5  Prefactor     .10000E-03    68.975        .20090E-04** at limit **
   6  norm          .10000E-03    3.7626       -.31223E-06** at limit **
   7  Prefactor     .10000E-03    60.266       -.16075E-04** at limit **
   8  Prefactor     13.605        15.820        .49671E-05   -.73792E-05
   9  norm          2.7792        4.3553       -.51356E-07   -.14766E-03
  10  Prefactor     .10000E-03    5.0237        .98515E-07** at limit **
  11  Prefactor     .10000E-03    13.923        .13131E-06** at limit **
  12  norm          .51170        1.4405       -.75144E-06   -.17894E-02
  13  Prefactor     .10000E-03    4.5373       -.16733E-06** at limit **
  14  Prefactor     .10000E-03    3.6158        .58344E-07** at limit **
  15  norm          1.8811        1.5126       -.24491E-07   -.31039E-03
  16  norm          .10000E-03    2.5903        .21075E-06** at limit **
  17  Prefactor     11.215        9.9775       -.92216E-06   -.12084E-03
  18  Prefactor     .10000E-03    60.674       -.16488E-04** at limit **
  19  Prefactor     .10000E-03    42.724       -.14982E-05** at limit **
  20  Prefactor     12.413        16.920        .31965E-05   -.75895E-04
  21  norm          5.7070        2.0943        .43804E-06   -.48578E-03
  22  Prefactor     19.032        14.965       -.32363E-05   -.68958E-04
  23  Prefactor     .10009E-03    54.896        .25022E-04** at limit **
  24  norm          9.1825        20.530        .22660E-04   -.34706E-03
  25  Prefactor     21.083        27.303       -.17419E-04   -.66993E-04
  26  Prefactor     52.206        70.660       -.19042E-05   -.45040E-04
  27  Prefactor     .10000E-03    5.3432       -.92467E-07** at limit **
  28  Prefactor     .10000E-03    67.215        .28187E-04** at limit **
  29  Normalizat    1.2086        .18591       -.24627E-05   -.35653E-03
  30  Prefactor     .85418        .18315       -.93860E-06   -.40899E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 39.1385
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.6051
  norm       = 2.7792
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.511701
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.88111
  norm       = 0.0001
  Prefactor  = 11.2148
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.4132
  norm       = 5.70704
  Prefactor  = 19.0322
  Prefactor  = 0.00010009
  norm       = 9.18254
  Prefactor  = 21.0831
  Prefactor  = 52.2065
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.20857
  Prefactor  = 0.854185
 **********
 **   18 **HESSE 
 **********

 FCN=   6417.758     FROM HESSE     STATUS=OK           578 CALLS     3949 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.2072        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     39.138        26.586        .64316E-04   -1.4456    
   3  norm          .10000E-03    10.905        .21399E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    31.986        .21327E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    70.799        .37283E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    3.7995        .15171E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    60.567        .20644E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     13.605        15.786        .10891E-03   -1.4970    
   9  norm          2.7792        4.3402        .20430E-03   -1.5375    
  10  Prefactor     .10000E-03    5.0311        .17535E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    14.027        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .51170        1.4322        .15291E-03   -1.5565    
  13  Prefactor     .10000E-03    4.5565        .16647E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.6956        .14871E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.8811        1.5143        .84461E-04   -1.5434    
  16  norm          .10000E-03    2.6310        .12552E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     11.215        9.9175        .11982E-03   -1.5038    
  18  Prefactor     .10000E-03    60.928        .20478E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    42.947        .18183E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     12.413        16.926        .11347E-03   -1.5003    
  21  norm          5.7070        2.1074        .58620E-04   -1.5230    
  22  Prefactor     19.032        15.067        .91651E-04   -1.4835    
  23  Prefactor     .10009E-03    53.367        .20982E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          9.1825        20.151        .13251E-03   -1.5102    
  25  Prefactor     21.083        27.422        .87961E-04   -1.4789    
  26  Prefactor     52.206        70.735        .53085E-04   -1.4262    
  27  Prefactor     .10000E-03    5.4105        .18073E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    68.750        .19445E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.2086        .22875        .23597E-03   -.86338    
  30  Prefactor     .85418        .22349        .28149E-03   -.97761    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.60071e-09
Minuit parameter uncertainties:
  1  2.9901e-06
  2  26.5945
  3  0.000124081
  4  4.42648e-05
  5  0.000830703
  6  2.39786e-05
  7  0.000246659
  8  15.791
  9  4.3407
  10  2.49815e-06
  11  6.50126e-06
  12  1.43226
  13  5.05838e-06
  14  1.26319e-05
  15  1.51437
  16  7.28086e-06
  17  9.91894
  18  5.09796e-05
  19  0.000215681
  20  16.9328
  21  2.10738
  22  15.0697
  23  0.00437953
  24  20.1655
  25  27.4386
  26  70.8486
  27  1.01384e-05
  28  0.00019025
  29  0.228935
  30  0.223733
Done.

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

Extracting fit parameters...

4FGL J1520.5+4209
   Spectrum: PowerLaw
308    Prefactor:  1.000e-04  2.157e-04  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:  8.542e-01  2.237e-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:  1.209e+00  2.289e-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: 9.40e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.31e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/491846/likelihoodResults_420768001_421027201_4FGL_J1520.5+4209_daily_bin700.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) = 6417.75782513
delta logL = -0.000110906073132

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6417.75771459
delta logL = -3.72628164769e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4393       1.0000          .0000       10.000    
     3 'Normalizat'    1.2086       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85419       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=   6417.758     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      286 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10003E-03    6647.5        .18142E-02** at limit **
   2  Index         2.5254        6.2119        .50000       -.26837E-04
   3  Normalizat    1.2086        .42979E-01    .23597E-03    .27944E-04
   4  Prefactor     .85419        .44097E-01    .28149E-03   -.25444E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010003
  Index      = 2.52542
  Normalizat = 1.20857
  Prefactor  = 0.854187
 **********
 **   18 **HESSE 
 **********

 FCN=   6417.758     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      315 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     .10003E-03    8813.6        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5254        6.8768        .50000       -.51774    
   3  Normalizat    1.2086        .15854        .94387E-05   -.86338    
   4  Prefactor     .85419        .16264        .11260E-04   -.97761    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.77738e-09
Minuit parameter uncertainties:
  1  0.0366462
  2  67.1208
  3  0.158602
  4  0.162736
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/491846': 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) = 6417.7577141
delta logL = 1.24138750834e-07

Extracting fit parameters...

4FGL J1520.5+4209
   Spectrum: PowerLaw
308    Prefactor:  1.000e-04  3.665e-02  1.000e-04  1.000e+04 ( 1.000e-13)
309        Index:  2.525e+00  6.712e+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:  8.542e-01  1.627e-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:  1.209e+00  1.586e-01  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/491846/cmap_HighResolution_420768001_421027201_4FGL_J1520.5+4209_daily_bin700.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.31e-03', job_status='DONE', photon_flux_upper_limit='9.40e-08', time_completed='2021-09-12 01:35:43.178622', job_id='491846', GAL2='0.85', fit_tolerance='1e-08', EG2='1.21', EG='1.21', time_epoch_completed='1631435743.18', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='1.24e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.50' WHERE bin_id='700' AND source_name='4FGL J1520.5+4209' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 01:35:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0064>
Subject: Job 491846: <4FGL_J1520.5+4209_daily_bin700> in cluster <slac> Done

Job <4FGL_J1520.5+4209_daily_bin700> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sun Sep 12 01:20:34 2021
Job was executed on host(s) <bullet0064>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 01:20:35 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:20:35 2021
Terminated at Sun Sep 12 01:35:46 2021
Results reported at Sun Sep 12 01:35:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1520.5+4209_daily_bin700 230.135 42.16 420768001 421027201 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 :                                   865.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             294.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   908 sec.
    Turnaround time :                            912 sec.

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

