/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 6 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 = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1520.5+4209_daily_bin478
RA = 230.135, Dec = 42.16
tmin = 363225601, tmax = 363484801
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='490344', job_status='RUN', time_executed='2021-09-12 01:15:51.862209', time_epoch_executed='1631434551.86' WHERE source_name='4FGL J1520.5+4209' and cadence='daily' and bin_id='478'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/490344

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/490344/ft1_4FGL_J1520.5+4209_daily_bin478.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/490344/ft2_4FGL_J1520.5+4209_daily_bin478.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/490344/ft1_4FGL_J1520.5+4209_daily_bin478.fits outfile=/scratch/kocevski/490344/ft1_filteredMKT_4FGL_J1520.5+4209_daily_bin478.fits ra=230.135 dec=42.16 rad=12.0 tmin=363225601.0 tmax=363484801.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 6.97
user 6.67
sys 0.28

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/490344/ft1_filtered_4FGL_J1520.5+4209_daily_bin478.fits" evtable="EVENTS" scfile=/scratch/kocevski/490344/ft2_4FGL_J1520.5+4209_daily_bin478.fits sctable="SC_DATA" outfile=/scratch/kocevski/490344/ltcube_363225601_363484801_4FGL_J1520.5+4209_daily_bin478.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/490344/ft2_4FGL_J1520.5+4209_daily_bin478.fits
.....................!
real 11.54
user 11.19
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/490344/ft1_filtered_4FGL_J1520.5+4209_daily_bin478.fits evtable="EVENTS" scfile=/scratch/kocevski/490344/ft2_4FGL_J1520.5+4209_daily_bin478.fits sctable="SC_DATA" expcube=/scratch/kocevski/490344/ltcube_363225601_363484801_4FGL_J1520.5+4209_daily_bin478.fits outfile=/scratch/kocevski/490344/expmap_363225601_363484801_4FGL_J1520.5+4209_daily_bin478.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/490344/ltcube_363225601_363484801_4FGL_J1520.5+4209_daily_bin478.fits
.....................!
real 190.00
user 184.86
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/490344/ft1_filtered_4FGL_J1520.5+4209_daily_bin478.fits scfile=/scratch/kocevski/490344/ft2_4FGL_J1520.5+4209_daily_bin478.fits outfile=/scratch/kocevski/490344/cmap_363225601_363484801_4FGL_J1520.5+4209_daily_bin478.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.38
sys 0.13

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

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

This is gtbin version HEAD
real 0.53
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.0363       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.8406       1.0000         .10000E-03   10000.    
     3 'norm      '    28.535       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    40.374       1.0000         .10000E-03   10000.    
     6 'norm      '    21.878       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    23.246       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11847E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    4.8750       1.0000         .10000E-03   10000.    
    13 'Prefactor '    25.182       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.7098       1.0000         .10000E-03   10000.    
    16 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.7726       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    26.786       1.0000         .10000E-03   10000.    
    21 'norm      '    5.1183       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10145E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    13.925       1.0000         .10000E-03   10000.    
    25 'Prefactor '    28.664       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .42065E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10101E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    31.444       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .45528       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.1415       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=   3327.394     FROM MIGRAD    STATUS=CONVERGED    749 CALLS     3965 TOTAL
                     EDM=   .90E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.0405        30.149       -.42301E-06   -.17797E-06
   2  Prefactor     3.7859        62.303        .11581E-05    .89307E-04
   3  norm          28.551        32.313       -.25085E-06   -.77367E-04
   4  Prefactor     .10000E-03    77.138       -.16768E-05** at limit **
   5  Prefactor     40.388        32.569       -.22791E-06   -.54825E-04
   6  norm          21.885        12.396        .14512E-06    .28461E-03
   7  Prefactor     .10000E-03    22.396       -.41665E-06** at limit **
   8  Prefactor     .10000E-03    8.5192        .94548E-08** at limit **
   9  norm          23.247        15.770        .16377E-06    .24527E-03
  10  Prefactor     .10002E-03    149.84       -.34454E-04** at limit **
  11  Prefactor     .10000E-03    7.3639       -.13790E-06** at limit **
  12  norm          4.8749        2.2953       -.43779E-08    .76512E-04
  13  Prefactor     25.187        16.086        .28505E-06    .52393E-03
  14  Prefactor     .10000E-03    3.3324       -.15934E-06** at limit **
  15  norm          2.7100        2.3265       -.28369E-07    .59475E-03
  16  norm          .10000E-03    1.7261       -.67384E-07** at limit **
  17  Prefactor     5.7731        7.9339       -.65507E-07    .25901E-04
  18  Prefactor     .10000E-03    33.035        .29794E-06** at limit **
  19  Prefactor     .10000E-03    10.466        .18189E-06** at limit **
  20  Prefactor     26.789        17.548        .16125E-07    .17151E-04
  21  norm          5.1185        1.8412        .11403E-07    .42323E-03
  22  Prefactor     .10000E-03    4.4566       -.11271E-06** at limit **
  23  Prefactor     .10000E-03    25.353        .25035E-07** at limit **
  24  norm          13.929        16.916        .66369E-07    .15933E-04
  25  Prefactor     28.665        28.202       -.16992E-07    .10788E-04
  26  Prefactor     .10000E-03    400.86        .77847E-05** at limit **
  27  Prefactor     .10000E-03    9.5144        .21632E-05** at limit **
  28  Prefactor     31.406        33.406       -.25981E-05   -.35202E-03
  29  Normalizat    .45518        .24136        .19995E-05    .95552E-04
  30  Prefactor     1.1415        .24665       -.77376E-06   -.19939E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.04052
  Prefactor  = 3.78592
  norm       = 28.5513
  Prefactor  = 0.000100002
  Prefactor  = 40.3877
  norm       = 21.8855
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 23.2474
  Prefactor  = 0.000100016
  Prefactor  = 0.0001
  norm       = 4.87494
  Prefactor  = 25.1872
  Prefactor  = 0.0001
  norm       = 2.71001
  norm       = 0.0001
  Prefactor  = 5.77306
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.7889
  norm       = 5.11854
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 13.9289
  Prefactor  = 28.6645
  Prefactor  = 0.000100005
  Prefactor  = 0.000100001
  Prefactor  = 31.4061
  Normalizat = 0.455185
  Prefactor  = 1.14153
 **********
 **   18 **HESSE 
 **********

 FCN=   3327.394     FROM HESSE     STATUS=OK           576 CALLS     4541 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.0405        30.189        .13333E-03   -1.5107    
   2  Prefactor     3.7859        62.459        .20593E-03   -1.5319    
   3  norm          28.551        32.281        .37500E-03   -1.4639    
   4  Prefactor     .10000E-03    77.187        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     40.388        32.544        .63084E-04   -1.4436    
   6  norm          21.885        12.336        .85634E-04   -1.4772    
   7  Prefactor     .10000E-03    22.404        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    8.5302        .16445E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          23.247        15.681        .83080E-04   -1.4743    
  10  Prefactor     .10002E-03    148.57        .49230E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    7.3733        .15288E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          4.8749        2.2964        .58246E-04   -1.5266    
  13  Prefactor     25.187        15.803        .79827E-04   -1.4704    
  14  Prefactor     .10000E-03    3.3452        .10284E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.7100        2.3162        .72575E-04   -1.5379    
  16  norm          .10000E-03    1.7307        .73966E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.7731        7.9124        .16717E-03   -1.5227    
  18  Prefactor     .10000E-03    33.047        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    10.473        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     26.789        17.526        .77404E-04   -1.4672    
  21  norm          5.1185        1.8411        .45201E-04   -1.5255    
  22  Prefactor     .10000E-03    4.4722        .11891E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    25.371        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          13.929        16.883        .10734E-03   -1.4961    
  25  Prefactor     28.665        28.205        .74831E-04   -1.4637    
  26  Prefactor     .10000E-03    402.96        .21240E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    9.6923        .17340E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     31.406        34.593        .71455E-04   -1.4587    
  29  Normalizat    .45518        .26935        .31287E-03   -1.1454    
  30  Prefactor     1.1415        .27684        .21970E-03   -.88150    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.94769e-09
Minuit parameter uncertainties:
  1  30.2397
  2  30.7924
  3  32.3009
  4  0.000683725
  5  32.5583
  6  12.3378
  7  0.000121749
  8  1.89558e-05
  9  15.6837
  10  0.00312269
  11  1.11713e-06
  12  2.29644
  13  15.8061
  14  3.02814e-06
  15  2.31624
  16  2.52267e-06
  17  7.91387
  18  0.000108416
  19  3.15317e-05
  20  17.5296
  21  1.84113
  22  9.52346e-06
  23  4.39107e-05
  24  16.8887
  25  28.2179
  26  0.00280968
  27  0.00016591
  28  34.6147
  29  0.270123
  30  0.277186
Done.

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

Extracting fit parameters...

4FGL J1520.5+4209
   Spectrum: PowerLaw
308    Prefactor:  1.000e-04  3.153e-05  1.000e-04  1.000e+04 ( 1.000e-13)
309        Index:  2.505e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
310        Scale:  9.357e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
625    Prefactor:  1.142e+00  2.772e-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:  4.552e-01  2.701e-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.16e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.35e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/490344/likelihoodResults_363225601_363484801_4FGL_J1520.5+4209_daily_bin478.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) = 3327.39485038
delta logL = -0.000452172632322

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3327.39439822
delta logL = -1.05760591396e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4896       1.0000          .0000       10.000    
     3 'Normalizat'    .45524       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1415       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=   3327.394     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      254 TOTAL
                     EDM=   .29E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    40.924        .18142E-01** at limit **
   2  Index         1.9514        8.2552        .50000        .50443E-07
   3  Normalizat    .45518        .92125E-02    .31285E-03   -.34889E-03
   4  Prefactor     1.1415        .10003E-01    .21971E-03   -.50436E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.95141
  Normalizat = 0.455177
  Prefactor  = 1.14153
 **********
 **   18 **HESSE 
 **********

 FCN=   3327.394     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      283 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    530.21        .20041E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9514        7.6139        .50000       -.65570    
   3  Normalizat    .45518        .34937E-01    .12514E-04   -1.1454    
   4  Prefactor     1.1415        .37935E-01    .43941E-04   -.88150    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.79503e-10
Minuit parameter uncertainties:
  1  6.91348e-05
  2  1605.29
  3  0.034939
  4  0.0379356
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/490344': 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) = 3327.39439738
delta logL = 8.26862560643e-07

Extracting fit parameters...

4FGL J1520.5+4209
   Spectrum: PowerLaw
308    Prefactor:  1.000e-04  6.913e-05  1.000e-04  1.000e+04 ( 1.000e-13)
309        Index:  1.951e+00  1.605e+03  0.000e+00  1.000e+01 (-1.000e+00)
310        Scale:  9.357e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
625    Prefactor:  1.142e+00  3.794e-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:  4.552e-01  3.494e-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/490344/cmap_HighResolution_363225601_363484801_4FGL_J1520.5+4209_daily_bin478.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.35e-03', job_status='DONE', photon_flux_upper_limit='8.16e-08', time_completed='2021-09-12 01:26:39.845786', job_id='490344', GAL2='1.14', fit_tolerance='1e-08', EG2='0.46', EG='0.46', time_epoch_completed='1631435199.85', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.14', dlogl='8.27e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.50' WHERE bin_id='478' AND source_name='4FGL J1520.5+4209' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 01:26:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0181>
Subject: Job 490344: <4FGL_J1520.5+4209_daily_bin478> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1520.5+4209_daily_bin478 230.135 42.16 363225601 363484801 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 :                                   641.16 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             290.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   665 sec.
    Turnaround time :                            666 sec.

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

