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


Performing analysis on: 4FGL_J1516.8+3651_daily_bin1132
RA = 229.222, Dec = 36.8505
tmin = 532742401, tmax = 533001601
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='445059', job_status='RUN', time_executed='2021-09-11 22:51:18.408867', time_epoch_executed='1631425878.41' WHERE source_name='4FGL J1516.8+3651' and cadence='daily' and bin_id='1132'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/445059

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/445059/ft1_4FGL_J1516.8+3651_daily_bin1132.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/445059/ft2_4FGL_J1516.8+3651_daily_bin1132.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/445059/ft1_4FGL_J1516.8+3651_daily_bin1132.fits outfile=/scratch/kocevski/445059/ft1_filteredMKT_4FGL_J1516.8+3651_daily_bin1132.fits ra=229.222 dec=36.8505 rad=12.0 tmin=532742401.0 tmax=533001601.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.65
user 3.44
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/445059/ft2_4FGL_J1516.8+3651_daily_bin1132.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/445059/ft2_4FGL_J1516.8+3651_daily_bin1132.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/445059/ft1_filteredMKT_4FGL_J1516.8+3651_daily_bin1132.fits evtable="EVENTS" outfile="/scratch/kocevski/445059/ft1_filtered_4FGL_J1516.8+3651_daily_bin1132.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.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/445059/ft1_filtered_4FGL_J1516.8+3651_daily_bin1132.fits" evtable="EVENTS" scfile=/scratch/kocevski/445059/ft2_4FGL_J1516.8+3651_daily_bin1132.fits sctable="SC_DATA" outfile=/scratch/kocevski/445059/ltcube_532742401_533001601_4FGL_J1516.8+3651_daily_bin1132.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/445059/ft2_4FGL_J1516.8+3651_daily_bin1132.fits
.....................!
real 12.12
user 11.77
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/445059/ft1_filtered_4FGL_J1516.8+3651_daily_bin1132.fits evtable="EVENTS" scfile=/scratch/kocevski/445059/ft2_4FGL_J1516.8+3651_daily_bin1132.fits sctable="SC_DATA" expcube=/scratch/kocevski/445059/ltcube_532742401_533001601_4FGL_J1516.8+3651_daily_bin1132.fits outfile=/scratch/kocevski/445059/expmap_532742401_533001601_4FGL_J1516.8+3651_daily_bin1132.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/445059/ltcube_532742401_533001601_4FGL_J1516.8+3651_daily_bin1132.fits
.....................!
real 192.78
user 187.79
sys 4.66

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 185 point sources and 0 extended sources

Setting source of interest to:
4FGL J1516.8+3651 @ 229.222 36.8505

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/445059/ft1_filtered_4FGL_J1516.8+3651_daily_bin1132.fits scfile=/scratch/kocevski/445059/ft2_4FGL_J1516.8+3651_daily_bin1132.fits outfile=/scratch/kocevski/445059/cmap_532742401_533001601_4FGL_J1516.8+3651_daily_bin1132.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=229.222 yref=36.8505 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.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/445059/ft1_filtered_4FGL_J1516.8+3651_daily_bin1132.fits scfile=/scratch/kocevski/445059/ft2_4FGL_J1516.8+3651_daily_bin1132.fits outfile=/scratch/kocevski/445059/cmap_HighResolution_532742401_533001601_4FGL_J1516.8+3651_daily_bin1132.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=229.222 yref=36.8505 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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/445059/ft1_filtered_4FGL_J1516.8+3651_daily_bin1132.fits evtable="EVENTS" scfile=/scratch/kocevski/445059/ft2_4FGL_J1516.8+3651_daily_bin1132.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/445059/Model_4FGL_J1516.8+3651_daily_bin1132.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/445059/ft1_filtered_4FGL_J1516.8+3651_daily_bin1132.fits.....................!
real 45.63
user 44.33
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/445059/ft1_filtered_4FGL_J1516.8+3651_daily_bin1132.fits', '/scratch/kocevski/445059/ft2_4FGL_J1516.8+3651_daily_bin1132.fits', expMap='/scratch/kocevski/445059/expmap_532742401_533001601_4FGL_J1516.8+3651_daily_bin1132.fits', expCube='/scratch/kocevski/445059/ltcube_532742401_533001601_4FGL_J1516.8+3651_daily_bin1132.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/445059/Model_4FGL_J1516.8+3651_daily_bin1132.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1516.8+3651'

4FGL J1516.8+3651
   Spectrum: PowerLaw
279    Prefactor:  6.183e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
280        Index:  2.190e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
281        Scale:  1.677e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/445059/ft1_filtered_4FGL_J1516.8+3651_daily_bin1132.fits
Spacecraft file(s): /scratch/kocevski/445059/ft2_4FGL_J1516.8+3651_daily_bin1132.fits
Exposure map: /scratch/kocevski/445059/expmap_532742401_533001601_4FGL_J1516.8+3651_daily_bin1132.fits
Exposure cube: /scratch/kocevski/445059/ltcube_532742401_533001601_4FGL_J1516.8+3651_daily_bin1132.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/445059/Model_4FGL_J1516.8+3651_daily_bin1132.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) = 5830.21839822

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.8113       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .33475E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.6149       1.0000         .10000E-03   10000.    
     4 'norm      '    12.318       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10196E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    61.717       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    14.752       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.9670       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.1529       1.0000         .10000E-03   10000.    
    14 'norm      '    .76358       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .17245E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    19.001       1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.4466       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.3079       1.0000         .10000E-03   10000.    
    20 'norm      '    4.7777       1.0000         .10000E-03   10000.    
    21 'Prefactor '    10.556       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    22.945       1.0000         .10000E-03   10000.    
    24 'norm      '    .10323E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .41709E-02   1.0000         .10000E-03   10000.    
    26 'Prefactor '    53.370       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0163       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .59433       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5940E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5830.165     FROM MIGRAD    STATUS=CONVERGED    729 CALLS     3692 TOTAL
                     EDM=   .61E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.8124        4.7295        .10230E-05   -.10306E-02
   2  Prefactor     .10000E-03    32.841       -.41854E-05** at limit **
   3  Prefactor     8.6360        17.847       -.35245E-05   -.58319E-04
   4  norm          12.332        15.275        .44385E-06    .10051E-03
   5  Prefactor     .10000E-03    12.914        .17834E-05** at limit **
   6  norm          .10000E-03    5.6930       -.28239E-07** at limit **
   7  Prefactor     61.723        41.420        .69422E-06    .31767E-04
   8  Prefactor     .10000E-03    12.344       -.10231E-05** at limit **
   9  norm          .10000E-03    2.9146        .36991E-07** at limit **
  10  Prefactor     14.755        11.586        .52676E-07    .65474E-05
  11  Prefactor     5.9672        5.1508       -.39781E-06   -.16723E-03
  12  Prefactor     .10000E-03    1.5941       -.12251E-08** at limit **
  13  norm          2.1515        1.4772        .43247E-07   -.20126E-04
  14  norm          .76113        2.3532       -.96168E-06   -.61797E-03
  15  Prefactor     .10000E-03    7.9520       -.14450E-05** at limit **
  16  Prefactor     .10000E-03    183.54       -.44637E-05** at limit **
  17  Prefactor     19.002        10.045        .65197E-07   -.32690E-05
  18  Prefactor     4.4340        18.385       -.29773E-05    .66875E-04
  19  Prefactor     1.3023        31.272        .78984E-05   -.49089E-04
  20  norm          4.7777        1.5349        .52351E-08    .58426E-04
  21  Prefactor     10.558        9.1099        .83252E-08    .77652E-06
  22  Prefactor     .10000E-03    10.772       -.20785E-05** at limit **
  23  Prefactor     22.931        19.666        .28310E-05    .24098E-03
  24  norm          .10000E-03    10.290        .19751E-05** at limit **
  25  Prefactor     .10002E-03    .97390       -.15312E-07** at limit **
  26  Prefactor     53.370        26.684       -.13241E-06    .86563E-05
  27  Prefactor     .10000E-03    1.9938        .27398E-07** at limit **
  28  Normalizat    1.0159        .16394       -.14559E-06    .82283E-04
  29  Prefactor     .59465        .15131       -.59025E-06    .80141E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.81241
  Prefactor  = 0.000100003
  Prefactor  = 8.63599
  norm       = 12.3321
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 61.723
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 14.7547
  Prefactor  = 5.96724
  Prefactor  = 0.0001
  norm       = 2.1515
  norm       = 0.761133
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 19.0021
  Prefactor  = 4.43397
  Prefactor  = 1.3023
  norm       = 4.77768
  Prefactor  = 10.5576
  Prefactor  = 0.0001
  Prefactor  = 22.9307
  norm       = 0.0001
  Prefactor  = 0.00010002
  Prefactor  = 53.3697
  Prefactor  = 0.0001
  Normalizat = 1.01593
  Prefactor  = 0.594654
 **********
 **   18 **HESSE 
 **********

 FCN=   5830.165     FROM HESSE     STATUS=OK           559 CALLS     4251 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.8124        4.7993        .79939E-03   -1.5269    
   2  Prefactor     .10000E-03    31.958        .42686E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     8.6360        17.729        .13657E-03   -1.5120    
   4  norm          12.332        15.312        .11413E-03   -1.5005    
   5  Prefactor     .10000E-03    13.037        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    5.8624        .35544E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     61.723        41.410        .51076E-04   -1.4135    
   8  Prefactor     .10000E-03    12.378        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    2.9203        .12731E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     14.755        11.602        .10428E-03   -1.4940    
  11  Prefactor     5.9672        5.1543        .15357E-03   -1.5219    
  12  Prefactor     .10000E-03    1.5959        .94142E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.1515        1.4712        .72068E-04   -1.5415    
  14  norm          .76113        2.1857        .18767E-02   -1.5533    
  15  Prefactor     .10000E-03    8.1496        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    185.84        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     19.002        10.041        .91884E-04   -1.4836    
  18  Prefactor     4.4340        17.545        .19096E-03   -1.5287    
  19  Prefactor     1.3023        31.425        .38577E-03   -1.5480    
  20  norm          4.7777        1.5441        .46688E-04   -1.5271    
  21  Prefactor     10.558        9.1450        .12332E-03   -1.5058    
  22  Prefactor     .10000E-03    10.856        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     22.931        19.783        .83622E-04   -1.4750    
  24  norm          .10000E-03    10.188        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10002E-03    35.141        .14491E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     53.370        26.675        .54902E-04   -1.4246    
  27  Prefactor     .10000E-03    2.0298        .10527E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.0159        .19412        .21497E-03   -.92499    
  29  Prefactor     .59465        .17717        .26415E-03   -1.0781    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.60728e-09
Minuit parameter uncertainties:
  1  4.79969
  2  0.000647346
  3  17.7399
  4  15.3173
  5  0.000136769
  6  1.78893e-05
  7  41.4297
  8  6.21274e-05
  9  2.08596e-06
  10  11.6042
  11  5.15469
  12  4.94049e-07
  13  1.47118
  14  2.18594
  15  6.53309e-05
  16  0.00136947
  17  10.0417
  18  17.5649
  19  12.8015
  20  1.54409
  21  9.14619
  22  0.000120794
  23  19.7885
  24  2.47206e-05
  25  0.00168495
  26  26.6805
  27  4.01226e-08
  28  0.194255
  29  0.177332
Done.

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

Extracting fit parameters...

4FGL J1516.8+3651
   Spectrum: PowerLaw
279    Prefactor:  1.000e-04  1.369e-03  1.000e-04  1.000e+04 ( 1.000e-14)
280        Index:  2.190e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
281        Scale:  1.677e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
591    Prefactor:  5.947e-01  1.773e-01  0.000e+00  1.000e+01 ( 1.000e+00)
592        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
593        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
590   Normalization:  1.016e+00  1.943e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 229.222 36.850
Photon Flux Upper Limit: 6.28e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.78e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/445059/likelihoodResults_532742401_533001601_4FGL_J1516.8+3651_daily_bin1132.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) = 5830.16520113
delta logL = -2.55002396443e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5830.13813258
delta logL = 0.0270430479304

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.7458       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9529       1.0000          .0000       10.000    
     3 'Normalizat'    1.0129       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .59271       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5940E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5830.138     FROM MIGRAD    STATUS=CONVERGED    106 CALLS      329 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.8065        84.659        .10431E-02   -.71498E-05
   2  Index         2.9535        2.9983        .10984E-01    .18621E-03
   3  Normalizat    1.0081        .18238        .21567E-03   -.41644E-05
   4  Prefactor     .59753        .17362        .26352E-03   -.22865E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.80653
  Index      = 2.95355
  Normalizat = 1.00815
  Prefactor  = 0.597528
 **********
 **   18 **HESSE 
 **********

 FCN=   5830.138     FROM HESSE     STATUS=OK            27 CALLS      356 TOTAL
                     EDM=   .17E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.8065        37.123        .41724E-04   -1.5318    
   2  Index         2.9535        2.0869        .21968E-02   -.42168    
   3  Normalizat    1.0081        .18260        .86267E-05   -.92758    
   4  Prefactor     .59753        .17377        .10541E-04   -1.0769    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.66525e-12
Minuit parameter uncertainties:
  1  23.7936
  2  2.16756
  3  0.182717
  4  0.173921
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/445059': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5830.13773996
delta logL = 0.0274356685886

Extracting fit parameters...

4FGL J1516.8+3651
   Spectrum: PowerLaw
279    Prefactor:  3.807e+00  2.379e+01  1.000e-04  1.000e+04 ( 1.000e-14)
280        Index:  2.954e+00  2.168e+00  0.000e+00  1.000e+01 (-1.000e+00)
281        Scale:  1.677e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
591    Prefactor:  5.975e-01  1.739e-01  0.000e+00  1.000e+01 ( 1.000e+00)
592        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
593        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
590   Normalization:  1.008e+00  1.827e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 229.222 36.850

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/445059/cmap_HighResolution_532742401_533001601_4FGL_J1516.8+3651_daily_bin1132.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.78e-03', job_status='DONE', photon_flux_upper_limit='6.28e-08', time_completed='2021-09-11 23:04:35.911933', job_id='445059', GAL2='0.60', fit_tolerance='1e-08', EG2='1.01', EG='1.02', time_epoch_completed='1631426675.91', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.59', dlogl='2.74e-02', ts2='0.06', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='1132' AND source_name='4FGL J1516.8+3651' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 23:04:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0035>
Subject: Job 445059: <4FGL_J1516.8+3651_daily_bin1132> in cluster <slac> Done

Job <4FGL_J1516.8+3651_daily_bin1132> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep 11 22:51:02 2021
Job was executed on host(s) <bullet0035>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 22:51:04 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 11 22:51:04 2021
Terminated at Sat Sep 11 23:04:36 2021
Results reported at Sat Sep 11 23:04:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1516.8+3651_daily_bin1132 229.222 36.8505 532742401 533001601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1516.8+3651 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   789.11 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             331.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   812 sec.
    Turnaround time :                            814 sec.

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

