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


Performing analysis on: 4FGL_J1520.5+4209_daily_bin704
RA = 230.135, Dec = 42.16
tmin = 421804801, tmax = 422064001
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='491852', job_status='RUN', time_executed='2021-09-12 01:21:55.660985', time_epoch_executed='1631434915.66' WHERE source_name='4FGL J1520.5+4209' and cadence='daily' and bin_id='704'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/491852

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/491852/ft1_4FGL_J1520.5+4209_daily_bin704.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/491852/ft2_4FGL_J1520.5+4209_daily_bin704.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/491852/ft1_4FGL_J1520.5+4209_daily_bin704.fits outfile=/scratch/kocevski/491852/ft1_filteredMKT_4FGL_J1520.5+4209_daily_bin704.fits ra=230.135 dec=42.16 rad=12.0 tmin=421804801.0 tmax=422064001.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.32
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/491852/ft1_filtered_4FGL_J1520.5+4209_daily_bin704.fits" evtable="EVENTS" scfile=/scratch/kocevski/491852/ft2_4FGL_J1520.5+4209_daily_bin704.fits sctable="SC_DATA" outfile=/scratch/kocevski/491852/ltcube_421804801_422064001_4FGL_J1520.5+4209_daily_bin704.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/491852/ft2_4FGL_J1520.5+4209_daily_bin704.fits
.....................!
real 12.24
user 11.74
sys 0.46

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/491852/ft1_filtered_4FGL_J1520.5+4209_daily_bin704.fits evtable="EVENTS" scfile=/scratch/kocevski/491852/ft2_4FGL_J1520.5+4209_daily_bin704.fits sctable="SC_DATA" expcube=/scratch/kocevski/491852/ltcube_421804801_422064001_4FGL_J1520.5+4209_daily_bin704.fits outfile=/scratch/kocevski/491852/expmap_421804801_422064001_4FGL_J1520.5+4209_daily_bin704.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/491852/ltcube_421804801_422064001_4FGL_J1520.5+4209_daily_bin704.fits
.....................!
real 190.84
user 185.65
sys 4.82

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/491852/ft1_filtered_4FGL_J1520.5+4209_daily_bin704.fits scfile=/scratch/kocevski/491852/ft2_4FGL_J1520.5+4209_daily_bin704.fits outfile=/scratch/kocevski/491852/cmap_421804801_422064001_4FGL_J1520.5+4209_daily_bin704.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.36
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    11.612       1.0000         .10000E-03   10000.    
     3 'norm      '    5.5430       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.8804       1.0000         .10000E-03   10000.    
     6 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    23.508       1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.646       1.0000         .10000E-03   10000.    
     9 'norm      '    16.486       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    4.7133       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    8.6829       1.0000         .10000E-03   10000.    
    16 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10260E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11268E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    33.196       1.0000         .10000E-03   10000.    
    21 'norm      '    6.9444       1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.4572       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    17.126       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10113E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    11.181       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0497       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .88344       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=   6309.234     FROM MIGRAD    STATUS=CONVERGED    736 CALLS     3852 TOTAL
                     EDM=   .89E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.2544        .16267E-05** at limit **
   2  Prefactor     11.615        22.879        .26176E-05   -.87492E-05
   3  norm          5.5354        19.064       -.24821E-05   -.38854E-04
   4  Prefactor     .10000E-03    37.294        .26116E-04** at limit **
   5  Prefactor     8.8794        18.926       -.10610E-05   -.20470E-04
   6  norm          .10000E-03    4.2445        .30605E-07** at limit **
   7  Prefactor     23.512        41.256        .51603E-05    .49099E-05
   8  Prefactor     11.646        12.490       -.17461E-06   -.70872E-04
   9  norm          16.486        11.994       -.39286E-07    .49607E-04
  10  Prefactor     .10000E-03    9.6003       -.24728E-05** at limit **
  11  Prefactor     .10000E-03    5.1027        .11409E-05** at limit **
  12  norm          4.7133        1.8575       -.19888E-08   -.80245E-04
  13  Prefactor     .10000E-03    5.7388       -.23997E-05** at limit **
  14  Prefactor     .10000E-03    1.9617       -.86143E-08** at limit **
  15  norm          8.6826        2.5110        .10785E-07    .58198E-03
  16  norm          .10000E-03    1.2171        .21107E-07** at limit **
  17  Prefactor     .10000E-03    4.5375       -.42223E-06** at limit **
  18  Prefactor     .10000E-03    68.619       -.12175E-04** at limit **
  19  Prefactor     .10000E-03    30.305       -.19823E-04** at limit **
  20  Prefactor     33.199        15.882       -.88731E-07    .36277E-03
  21  norm          6.9439        2.4101        .19541E-06    .50092E-03
  22  Prefactor     1.4602        34.217       -.42472E-05   -.30246E-03
  23  Prefactor     .10000E-03    10.223       -.57636E-06** at limit **
  24  norm          17.127        14.398       -.13251E-06    .34625E-04
  25  Prefactor     .10000E-03    13.312        .28942E-05** at limit **
  26  Prefactor     .10000E-03    33.083        .11124E-05** at limit **
  27  Prefactor     .10000E-03    6.0350        .17330E-05** at limit **
  28  Prefactor     11.173        21.900       -.25352E-05   -.78808E-04
  29  Normalizat    1.0496        .19481       -.33428E-07    .16913E-03
  30  Prefactor     .88353        .19100        .27887E-06    .13544E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 11.6154
  norm       = 5.53544
  Prefactor  = 0.0001
  Prefactor  = 8.87943
  norm       = 0.0001
  Prefactor  = 23.5116
  Prefactor  = 11.6461
  norm       = 16.4862
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.71331
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.68264
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 33.1987
  norm       = 6.94391
  Prefactor  = 1.46017
  Prefactor  = 0.0001
  norm       = 17.1273
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.1729
  Normalizat = 1.04958
  Prefactor  = 0.883534
 **********
 **   18 **HESSE 
 **********

 FCN=   6309.234     FROM HESSE     STATUS=OK           582 CALLS     4434 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.2554        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     11.615        22.844        .11756E-03   -1.5026    
   3  norm          5.5354        19.034        .17065E-03   -1.5237    
   4  Prefactor     .10000E-03    36.831        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     8.8794        18.922        .13450E-03   -1.5112    
   6  norm          .10000E-03    4.2841        .15971E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     23.512        41.213        .82616E-04   -1.4738    
   8  Prefactor     11.646        12.490        .11739E-03   -1.5025    
   9  norm          16.486        11.998        .98643E-04   -1.4896    
  10  Prefactor     .10000E-03    9.6400        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    5.1073        .17520E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          4.7133        1.8584        .65656E-04   -1.5274    
  13  Prefactor     .10000E-03    5.7668        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    1.9682        .10863E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          8.6826        2.5139        .64328E-04   -1.5119    
  16  norm          .10000E-03    1.2202        .85535E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.5497        .16501E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    68.633        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    30.242        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     33.199        15.945        .69549E-04   -1.4555    
  21  norm          6.9439        2.2997        .54089E-04   -1.5181    
  22  Prefactor     1.4602        32.336        .35660E-03   -1.5466    
  23  Prefactor     .10000E-03    10.233        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          17.127        14.398        .96782E-04   -1.4880    
  25  Prefactor     .10000E-03    13.338        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    33.096        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    6.0933        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     11.173        21.859        .11981E-03   -1.5039    
  29  Normalizat    1.0496        .22892        .25083E-03   -.91387    
  30  Prefactor     .88353        .22326        .27564E-03   -.96719    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.59223e-09
Minuit parameter uncertainties:
  1  1.48312e-06
  2  22.8609
  3  19.0544
  4  4.18268e-06
  5  18.9345
  6  1.29809e-05
  7  41.2628
  8  12.4926
  9  12
  10  9.37235e-07
  11  6.06641e-07
  12  1.85839
  13  3.68411e-07
  14  1.61351e-07
  15  2.51388
  16  7.38782e-07
  17  6.76251e-06
  18  1.95921e-05
  19  0.000196907
  20  15.9472
  21  2.29969
  22  13.7508
  23  3.49806e-06
  24  14.4006
  25  4.08358e-07
  26  5.74617e-06
  27  4.44238e-05
  28  21.8742
  29  0.229135
  30  0.223492
Done.

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

Extracting fit parameters...

4FGL J1520.5+4209
   Spectrum: PowerLaw
308    Prefactor:  1.000e-04  1.969e-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.835e-01  2.235e-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.050e+00  2.291e-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: 8.09e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.30e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/491852/likelihoodResults_421804801_422064001_4FGL_J1520.5+4209_daily_bin704.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) = 6309.23392349
delta logL = -0.000157536174811

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6308.85666332
delta logL = 0.377102635351

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    8.8625       1.0000          .0000       10.000    
     3 'Normalizat'    .99330       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92337       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=   6309.234     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      351 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    494.06        .90712E-02** at limit **
   2  Index         2.2589        6.9169        .36309       -.16432E-06
   3  Normalizat    1.0496        .17617E-01    .46083E-01   -.57644E-04
   4  Prefactor     .88353        .18009E-01    .45302E-01    .47116E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.25891
  Normalizat = 1.04958
  Prefactor  = 0.883534
 **********
 **   18 **HESSE 
 **********

 FCN=   6309.234     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      384 TOTAL
                     EDM=   .91E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1364.2        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2589        5.1110        .50000       -207.93    
   3  Normalizat    1.0496        .30463E-01    .25087E-03   -8.5109    
   4  Prefactor     .88353        .31136E-01    .27564E-03   -.96719    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.13543e-09
Minuit parameter uncertainties:
  1  0.00046016
  2  2530.83
  3  0.0304633
  4  0.031137
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/491852': 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) = 6309.23376582
delta logL = 1.36908965942e-07

Extracting fit parameters...

4FGL J1520.5+4209
   Spectrum: PowerLaw
308    Prefactor:  1.000e-04  4.602e-04  1.000e-04  1.000e+04 ( 1.000e-13)
309        Index:  2.259e+00  2.531e+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:  8.835e-01  3.114e-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.050e+00  3.046e-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/491852/cmap_HighResolution_421804801_422064001_4FGL_J1520.5+4209_daily_bin704.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.30e-03', job_status='DONE', photon_flux_upper_limit='8.09e-08', time_completed='2021-09-12 01:36:44.758387', job_id='491852', GAL2='0.88', fit_tolerance='1e-08', EG2='1.05', EG='1.05', time_epoch_completed='1631435804.76', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='1.37e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.50' WHERE bin_id='704' AND source_name='4FGL J1520.5+4209' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 01:36:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0237>
Subject: Job 491852: <4FGL_J1520.5+4209_daily_bin704> in cluster <slac> Done

Job <4FGL_J1520.5+4209_daily_bin704> 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) <bullet0237>, 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:36:45 2021
Results reported at Sun Sep 12 01:36:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1520.5+4209_daily_bin704 230.135 42.16 421804801 422064001 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 :                                   886.10 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             308.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   970 sec.
    Turnaround time :                            971 sec.

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

