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


Performing analysis on: 4FGL_J1520.5+4209_daily_bin249
RA = 230.135, Dec = 42.16
tmin = 303868801, tmax = 304128001
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='488920', job_status='RUN', time_executed='2021-09-12 01:12:50.032058', time_epoch_executed='1631434370.03' WHERE source_name='4FGL J1520.5+4209' and cadence='daily' and bin_id='249'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/488920

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/488920/ft1_4FGL_J1520.5+4209_daily_bin249.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/488920/ft2_4FGL_J1520.5+4209_daily_bin249.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/488920/ft1_4FGL_J1520.5+4209_daily_bin249.fits outfile=/scratch/kocevski/488920/ft1_filteredMKT_4FGL_J1520.5+4209_daily_bin249.fits ra=230.135 dec=42.16 rad=12.0 tmin=303868801.0 tmax=304128001.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.39
user 3.15
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/488920/ft2_4FGL_J1520.5+4209_daily_bin249.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/488920/ft1_filteredMKT_4FGL_J1520.5+4209_daily_bin249.fits evtable="EVENTS" outfile="/scratch/kocevski/488920/ft1_filtered_4FGL_J1520.5+4209_daily_bin249.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/488920/ft1_filtered_4FGL_J1520.5+4209_daily_bin249.fits" evtable="EVENTS" scfile=/scratch/kocevski/488920/ft2_4FGL_J1520.5+4209_daily_bin249.fits sctable="SC_DATA" outfile=/scratch/kocevski/488920/ltcube_303868801_304128001_4FGL_J1520.5+4209_daily_bin249.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/488920/ft2_4FGL_J1520.5+4209_daily_bin249.fits
.....................!
real 11.71
user 11.36
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/488920/ft1_filtered_4FGL_J1520.5+4209_daily_bin249.fits evtable="EVENTS" scfile=/scratch/kocevski/488920/ft2_4FGL_J1520.5+4209_daily_bin249.fits sctable="SC_DATA" expcube=/scratch/kocevski/488920/ltcube_303868801_304128001_4FGL_J1520.5+4209_daily_bin249.fits outfile=/scratch/kocevski/488920/expmap_303868801_304128001_4FGL_J1520.5+4209_daily_bin249.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/488920/ltcube_303868801_304128001_4FGL_J1520.5+4209_daily_bin249.fits
.....................!
real 190.48
user 184.95
sys 5.16

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/488920/ft1_filtered_4FGL_J1520.5+4209_daily_bin249.fits scfile=/scratch/kocevski/488920/ft2_4FGL_J1520.5+4209_daily_bin249.fits outfile=/scratch/kocevski/488920/cmap_303868801_304128001_4FGL_J1520.5+4209_daily_bin249.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.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/488920/ft1_filtered_4FGL_J1520.5+4209_daily_bin249.fits scfile=/scratch/kocevski/488920/ft2_4FGL_J1520.5+4209_daily_bin249.fits outfile=/scratch/kocevski/488920/cmap_HighResolution_303868801_304128001_4FGL_J1520.5+4209_daily_bin249.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.94
user 0.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    44.821       1.0000         .10000E-03   10000.    
     2 'Prefactor '    30.471       1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .40134E-01   1.0000         .10000E-03   10000.    
     6 'norm      '    7.9576       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .12834E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    17.248       1.0000         .10000E-03   10000.    
    11 'Prefactor '    21.462       1.0000         .10000E-03   10000.    
    12 'norm      '    2.5571       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .12004E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.4977       1.0000         .10000E-03   10000.    
    16 'norm      '    .54041E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    65.488       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    4.4994       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10130E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    18.539       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    26.955       1.0000         .10000E-03   10000.    
    27 'Prefactor '    8.8353       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0594       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .61085       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=   5121.744     FROM MIGRAD    STATUS=CONVERGED    808 CALLS     4500 TOTAL
                     EDM=   .44E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     44.807        29.088        .20614E-04    .20908E-03
   2  Prefactor     30.452        21.525       -.21580E-05    .35992E-03
   3  norm          .10000E-03    10.234       -.39793E-05** at limit **
   4  Prefactor     .10000E-03    28.451        .41132E-06** at limit **
   5  Prefactor     .11486E-03    31.814       -.77053E-05** at limit **
   6  norm          7.9564        6.0403        .76203E-06    .16787E-03
   7  Prefactor     .10000E-03    56.320        .17097E-05** at limit **
   8  Prefactor     .10000E-03    21.425        .10138E-05** at limit **
   9  norm          .10000E-03    2.6916       -.15391E-08** at limit **
  10  Prefactor     17.245        15.638       -.14179E-05    .21761E-04
  11  Prefactor     21.426        20.097       -.84259E-05   -.75356E-04
  12  norm          2.5575        1.7565        .47329E-06   -.69300E-04
  13  Prefactor     .10000E-03    3.3061       -.41995E-09** at limit **
  14  Prefactor     .10000E-03    10.076        .37709E-05** at limit **
  15  norm          1.4983        1.3369        .14241E-06    .41078E-05
  16  norm          .10019E-03    1.6978       -.44819E-06** at limit **
  17  Prefactor     .10000E-03    3.3710        .17948E-07** at limit **
  18  Prefactor     65.496        62.683       -.65917E-05    .67993E-05
  19  Prefactor     .10000E-03    6.2341        .34761E-07** at limit **
  20  Prefactor     .10000E-03    2.7647       -.24234E-08** at limit **
  21  norm          4.5005        1.4231       -.17357E-08    .54253E-04
  22  Prefactor     .10000E-03    2.3994       -.25341E-07** at limit **
  23  Prefactor     .10000E-03    9.5712        .11634E-05** at limit **
  24  norm          18.544        13.388       -.39458E-05   -.97232E-05
  25  Prefactor     .10000E-03    14.513       -.19986E-06** at limit **
  26  Prefactor     26.968        41.367       -.27949E-04   -.14867E-06
  27  Prefactor     8.8380        6.2012        .72493E-06   -.11579E-04
  28  Prefactor     .10000E-03    8.3335       -.52057E-07** at limit **
  29  Normalizat    1.0597        .17603        .45194E-06    .57258E-03
  30  Prefactor     .61043        .17169        .15401E-05    .30028E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 44.8067
  Prefactor  = 30.4524
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000114863
  norm       = 7.95636
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 17.245
  Prefactor  = 21.4259
  norm       = 2.55754
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 1.49827
  norm       = 0.00010019
  Prefactor  = 0.0001
  Prefactor  = 65.4957
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.5005
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 18.5437
  Prefactor  = 0.0001
  Prefactor  = 26.9683
  Prefactor  = 8.83804
  Prefactor  = 0.0001
  Normalizat = 1.05966
  Prefactor  = 0.610429
 **********
 **   18 **HESSE 
 **********

 FCN=   5121.744     FROM HESSE     STATUS=OK           590 CALLS     5090 TOTAL
                     EDM=   .56E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     44.807        29.233        .59885E-04   -1.4368    
   2  Prefactor     30.452        21.538        .72584E-04   -1.4604    
   3  norm          .10000E-03    10.242        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    28.454        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .11486E-03    38.207        .99908E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          7.9564        6.0399        .14214E-03   -1.5144    
   7  Prefactor     .10000E-03    56.600        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    21.660        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    2.6920        .11466E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     17.245        15.655        .96439E-04   -1.4877    
  11  Prefactor     21.426        20.161        .86459E-04   -1.4782    
  12  norm          2.5575        1.7513        .73398E-04   -1.5388    
  13  Prefactor     .10000E-03    3.3264        .12700E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    10.495        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.4983        1.3225        .73733E-04   -1.5463    
  16  norm          .10019E-03    35.455        .17974E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    3.3949        .12824E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     65.496        62.620        .49593E-04   -1.4088    
  19  Prefactor     .10000E-03    6.2426        .17451E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.7672        .11620E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          4.5005        1.4227        .46183E-04   -1.5284    
  22  Prefactor     .10000E-03    2.4017        .10823E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    9.5823        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          18.544        13.395        .93022E-04   -1.4846    
  25  Prefactor     .10000E-03    14.565        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     26.968        41.325        .77162E-04   -1.4669    
  27  Prefactor     8.8380        6.1988        .13485E-03   -1.5113    
  28  Prefactor     .10000E-03    8.3417        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.0597        .20825        .20994E-03   -.91058    
  30  Prefactor     .61043        .20077        .27638E-03   -1.0715    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.62716e-09
Minuit parameter uncertainties:
  1  29.2424
  2  21.5431
  3  1.92952e-05
  4  6.52776e-06
  5  0.0476913
  6  6.04037
  7  3.43827e-05
  8  0.000220259
  9  7.3462e-07
  10  15.6592
  11  20.1675
  12  1.75132
  13  1.27996e-06
  14  0.00015692
  15  1.32248
  16  0.00519467
  17  2.96808e-06
  18  62.6828
  19  1.59746e-06
  20  1.66925e-06
  21  1.42273
  22  3.97603e-07
  23  6.29088e-05
  24  13.3976
  25  3.73676e-06
  26  41.3691
  27  6.1992
  28  1.87921e-06
  29  0.20841
  30  0.201005
Done.

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

Extracting fit parameters...

4FGL J1520.5+4209
   Spectrum: PowerLaw
308    Prefactor:  1.000e-04  1.597e-06  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:  6.104e-01  2.010e-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.060e+00  2.084e-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.24e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.08e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/488920/likelihoodResults_303868801_304128001_4FGL_J1520.5+4209_daily_bin249.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) = 5121.74500944
delta logL = -0.000762185969506

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5121.74424739
delta logL = -1.34577931021e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10436E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4795       1.0000          .0000       10.000    
     3 'Normalizat'    1.0597       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .61042       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=   5121.744     FROM MIGRAD    STATUS=CONVERGED    109 CALLS      261 TOTAL
                     EDM=   .83E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    21.652        .17919E-01** at limit **
   2  Index         1.8522        5.4782        .50000       -.34333E-08
   3  Normalizat    1.0597        .63179E-02    .20994E-03    .25088E-03
   4  Prefactor     .61043        .64911E-02    .27638E-03    .19271E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.85217
  Normalizat = 1.05966
  Prefactor  = 0.610431
 **********
 **   18 **HESSE 
 **********

 FCN=   5121.744     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      290 TOTAL
                     EDM=   .76E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    196.32        .21214E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8522        5.4921        .50000       -.68100    
   3  Normalizat    1.0597        .19441E-01    .41988E-04   -.91058    
   4  Prefactor     .61043        .19974E-01    .11055E-04   -1.0715    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.58421e-12
Minuit parameter uncertainties:
  1  1.82331e-05
  2  733.388
  3  0.0194412
  4  0.0199739
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/488920': 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) = 5121.74424466
delta logL = 2.59630633082e-06

Extracting fit parameters...

4FGL J1520.5+4209
   Spectrum: PowerLaw
308    Prefactor:  1.000e-04  1.823e-05  1.000e-04  1.000e+04 ( 1.000e-13)
309        Index:  1.852e+00  7.334e+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:  6.104e-01  1.997e-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:  1.060e+00  1.944e-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/488920/cmap_HighResolution_303868801_304128001_4FGL_J1520.5+4209_daily_bin249.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.08e-03', job_status='DONE', photon_flux_upper_limit='5.24e-08', time_completed='2021-09-12 01:26:48.928566', job_id='488920', GAL2='0.61', fit_tolerance='1e-08', EG2='1.06', EG='1.06', time_epoch_completed='1631435208.93', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.61', dlogl='2.60e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.50' WHERE bin_id='249' AND source_name='4FGL J1520.5+4209' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 01:26:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0150>
Subject: Job 488920: <4FGL_J1520.5+4209_daily_bin249> in cluster <slac> Done

Job <4FGL_J1520.5+4209_daily_bin249> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sun Sep 12 01:10:47 2021
Job was executed on host(s) <bullet0150>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 01:10:49 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:49 2021
Terminated at Sun Sep 12 01:26:49 2021
Results reported at Sun Sep 12 01:26:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1520.5+4209_daily_bin249 230.135 42.16 303868801 304128001 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 :                                   834.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             307.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   960 sec.
    Turnaround time :                            962 sec.

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

