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


Performing analysis on: 4FGL_J1516.8+3651_daily_bin346
RA = 229.222, Dec = 36.8505
tmin = 329011201, tmax = 329270401
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='439577', job_status='RUN', time_executed='2021-09-11 22:31:22.134996', time_epoch_executed='1631424682.14' WHERE source_name='4FGL J1516.8+3651' and cadence='daily' and bin_id='346'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/439577

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/439577/ft1_4FGL_J1516.8+3651_daily_bin346.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/439577/ft2_4FGL_J1516.8+3651_daily_bin346.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/439577/ft1_4FGL_J1516.8+3651_daily_bin346.fits outfile=/scratch/kocevski/439577/ft1_filteredMKT_4FGL_J1516.8+3651_daily_bin346.fits ra=229.222 dec=36.8505 rad=12.0 tmin=329011201.0 tmax=329270401.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.51
user 3.29
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/439577/ft2_4FGL_J1516.8+3651_daily_bin346.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/439577/ft1_filteredMKT_4FGL_J1516.8+3651_daily_bin346.fits evtable="EVENTS" outfile="/scratch/kocevski/439577/ft1_filtered_4FGL_J1516.8+3651_daily_bin346.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/439577/ft1_filtered_4FGL_J1516.8+3651_daily_bin346.fits" evtable="EVENTS" scfile=/scratch/kocevski/439577/ft2_4FGL_J1516.8+3651_daily_bin346.fits sctable="SC_DATA" outfile=/scratch/kocevski/439577/ltcube_329011201_329270401_4FGL_J1516.8+3651_daily_bin346.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/439577/ft2_4FGL_J1516.8+3651_daily_bin346.fits
.....................!
real 11.81
user 11.46
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/439577/ft1_filtered_4FGL_J1516.8+3651_daily_bin346.fits evtable="EVENTS" scfile=/scratch/kocevski/439577/ft2_4FGL_J1516.8+3651_daily_bin346.fits sctable="SC_DATA" expcube=/scratch/kocevski/439577/ltcube_329011201_329270401_4FGL_J1516.8+3651_daily_bin346.fits outfile=/scratch/kocevski/439577/expmap_329011201_329270401_4FGL_J1516.8+3651_daily_bin346.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/439577/ltcube_329011201_329270401_4FGL_J1516.8+3651_daily_bin346.fits
.....................!
real 190.92
user 184.87
sys 5.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/439577/ft1_filtered_4FGL_J1516.8+3651_daily_bin346.fits scfile=/scratch/kocevski/439577/ft2_4FGL_J1516.8+3651_daily_bin346.fits outfile=/scratch/kocevski/439577/cmap_329011201_329270401_4FGL_J1516.8+3651_daily_bin346.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/439577/ft1_filtered_4FGL_J1516.8+3651_daily_bin346.fits scfile=/scratch/kocevski/439577/ft2_4FGL_J1516.8+3651_daily_bin346.fits outfile=/scratch/kocevski/439577/cmap_HighResolution_329011201_329270401_4FGL_J1516.8+3651_daily_bin346.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.39
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/439577/ft1_filtered_4FGL_J1516.8+3651_daily_bin346.fits', '/scratch/kocevski/439577/ft2_4FGL_J1516.8+3651_daily_bin346.fits', expMap='/scratch/kocevski/439577/expmap_329011201_329270401_4FGL_J1516.8+3651_daily_bin346.fits', expCube='/scratch/kocevski/439577/ltcube_329011201_329270401_4FGL_J1516.8+3651_daily_bin346.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/439577/Model_4FGL_J1516.8+3651_daily_bin346.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/439577/ft1_filtered_4FGL_J1516.8+3651_daily_bin346.fits
Spacecraft file(s): /scratch/kocevski/439577/ft2_4FGL_J1516.8+3651_daily_bin346.fits
Exposure map: /scratch/kocevski/439577/expmap_329011201_329270401_4FGL_J1516.8+3651_daily_bin346.fits
Exposure cube: /scratch/kocevski/439577/ltcube_329011201_329270401_4FGL_J1516.8+3651_daily_bin346.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/439577/Model_4FGL_J1516.8+3651_daily_bin346.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) = 6987.80871485

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.8405       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.2791       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    10.442       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.8292       1.0000         .10000E-03   10000.    
     6 'norm      '    3.8441       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    29.701       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    25.646       1.0000         .10000E-03   10000.    
    13 'norm      '    .57130       1.0000         .10000E-03   10000.    
    14 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    54.437       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    14.195       1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.512       1.0000         .10000E-03   10000.    
    20 'norm      '    20.048       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    6.5998       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10331E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    14.928       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    9.5875       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.1196       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .89362       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=   6987.806     FROM MIGRAD    STATUS=CONVERGED    693 CALLS     3642 TOTAL
                     EDM=   .50E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.8400        5.2195        .13277E-05   -.87022E-03
   2  Prefactor     1.2858        27.388        .86333E-06   -.31799E-04
   3  Prefactor     .10000E-03    15.089       -.21199E-05** at limit **
   4  norm          10.440        12.885       -.52843E-06   -.22608E-04
   5  Prefactor     3.8266        33.799       -.76951E-06   -.46485E-04
   6  norm          3.8440        4.5596        .27791E-07   -.56799E-05
   7  Prefactor     .10000E-03    32.221       -.14186E-05** at limit **
   8  Prefactor     29.701        41.872        .46379E-06    .49383E-05
   9  norm          .10000E-03    2.7569       -.48609E-07** at limit **
  10  Prefactor     .10000E-03    13.080        .14396E-05** at limit **
  11  Prefactor     .10000E-03    3.3327       -.64205E-07** at limit **
  12  Prefactor     25.645        10.767        .29866E-07   -.98214E-05
  13  norm          .57095        1.3786        .38233E-06   -.41019E-03
  14  norm          .10000E-03    1.3493        .67962E-07** at limit **
  15  Prefactor     .10000E-03    5.3843       -.18033E-06** at limit **
  16  Prefactor     54.439        58.181        .18756E-06    .21682E-04
  17  Prefactor     .10000E-03    4.5358        .11541E-06** at limit **
  18  Prefactor     14.194        16.677       -.58304E-06   -.52874E-04
  19  Prefactor     10.512        12.542        .13919E-05   -.26759E-03
  20  norm          20.049        2.6812       -.10470E-07   -.18128E-03
  21  Prefactor     .10000E-03    18.248        .26246E-06** at limit **
  22  Prefactor     6.6052        34.973        .34723E-05    .91098E-04
  23  Prefactor     .10001E-03    19.998        .36389E-05** at limit **
  24  norm          14.929        15.456        .51350E-06   -.42278E-04
  25  Prefactor     .10000E-03    .86290        .61432E-07** at limit **
  26  Prefactor     .10000E-03    16.221       -.16542E-05** at limit **
  27  Prefactor     9.5874        6.1304        .11390E-06    .10601E-04
  28  Normalizat    1.1196        .20372       -.90392E-06    .96573E-05
  29  Prefactor     .89361        .18015        .17937E-06   -.15435E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.84001
  Prefactor  = 1.28576
  Prefactor  = 0.000100002
  norm       = 10.4403
  Prefactor  = 3.82661
  norm       = 3.84396
  Prefactor  = 0.000100001
  Prefactor  = 29.7014
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 25.6453
  norm       = 0.570951
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 54.4391
  Prefactor  = 0.0001
  Prefactor  = 14.194
  Prefactor  = 10.512
  norm       = 20.0485
  Prefactor  = 0.0001
  Prefactor  = 6.60518
  Prefactor  = 0.000100005
  norm       = 14.9289
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 9.58742
  Normalizat = 1.11963
  Prefactor  = 0.893606
 **********
 **   18 **HESSE 
 **********

 FCN=   6987.806     FROM HESSE     STATUS=OK           553 CALLS     4195 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.8400        5.4485        .83089E-03   -1.5225    
   2  Prefactor     1.2858        26.942        .39259E-03   -1.5481    
   3  Prefactor     .10000E-03    15.486        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          10.440        12.779        .12399E-03   -1.5062    
   5  Prefactor     3.8266        34.273        .20625E-03   -1.5317    
   6  norm          3.8440        4.5575        .18810E-03   -1.5316    
   7  Prefactor     .10000E-03    32.495        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     29.701        42.024        .73516E-04   -1.4617    
   9  norm          .10000E-03    2.7587        .13556E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    13.404        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    3.3580        .14895E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     25.645        10.796        .79103E-04   -1.4695    
  13  norm          .57095        1.3586        .14425E-03   -1.5557    
  14  norm          .10000E-03    1.3570        .94759E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.4136        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     54.439        57.964        .54365E-04   -1.4231    
  17  Prefactor     .10000E-03    4.5664        .17387E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     14.194        16.670        .10631E-03   -1.4954    
  19  Prefactor     10.512        12.719        .61790E-03   -1.5059    
  20  norm          20.049        2.6820        .46724E-04   -1.4812    
  21  Prefactor     .10000E-03    18.360        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     6.6052        35.889        .15621E-03   -1.5194    
  23  Prefactor     .10001E-03    21.260        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          14.929        15.381        .10367E-03   -1.4935    
  25  Prefactor     .10000E-03    .86879        .75811E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    16.559        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     9.5874        6.1347        .12942E-03   -1.5089    
  28  Normalizat    1.1196        .24468        .27341E-03   -.89124    
  29  Prefactor     .89361        .21500        .28312E-03   -.96365    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.24678e-09
Minuit parameter uncertainties:
  1  5.44892
  2  11.777
  3  0.000319385
  4  12.782
  5  22.9214
  6  4.55792
  7  0.000324504
  8  42.0661
  9  3.86013e-06
  10  0.000213159
  11  4.05044e-06
  12  10.7972
  13  1.35867
  14  3.22734e-06
  15  1.71743e-05
  16  58.0242
  17  8.38506e-06
  18  16.6752
  19  12.7218
  20  2.68203
  21  4.11722e-05
  22  30.8216
  23  0.000663216
  24  15.3852
  25  8.65797e-07
  26  0.000285985
  27  6.13509
  28  0.24493
  29  0.215209
Done.

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

Extracting fit parameters...

4FGL J1516.8+3651
   Spectrum: PowerLaw
279    Prefactor:  5.444e+01  5.802e+01  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:  8.936e-01  2.152e-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.120e+00  2.449e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.28
Ra Dec: 229.222 36.850
Photon Index (Fixed Index): 2.19 +/- 0.00
Photon Flux (Fixed Index): 2.20e-08 +/- 2.35e-08
Energy Flux (Fixed Index): 1.01e-05 +/- 1.07e-05

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

Saving results to:
/scratch/kocevski/439577/likelihoodResults_329011201_329270401_4FGL_J1516.8+3651_daily_bin346.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) = 6987.47098429
delta logL = 0.335108548666

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6987.45402472
delta logL = 0.352068121029

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    67.290       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6011       1.0000          .0000       10.000    
     3 'Normalizat'    1.1296       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88997       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6987.454     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      276 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     67.293        74.031        .48929E-04   -.40620E-03
   2  Index         1.6012        .69572        .11105E-01   -.25242E-03
   3  Normalizat    1.1299        .22585        .27237E-03    .12443E-03
   4  Prefactor     .88971        .21253        .28390E-03    .12270E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 67.2929
  Index      = 1.60116
  Normalizat = 1.12992
  Prefactor  = 0.889707
 **********
 **   18 **HESSE 
 **********

 FCN=   6987.454     FROM HESSE     STATUS=OK            23 CALLS      299 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     67.293        74.729        .97858E-05   -1.4065    
   2  Index         1.6012        .70243        .44419E-03   -.74745    
   3  Normalizat    1.1299        .22608        .10895E-04   -.88797    
   4  Prefactor     .88971        .21276        .11356E-04   -.96502    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.80763e-09
Minuit parameter uncertainties:
  1  74.8332
  2  0.706794
  3  0.226278
  4  0.212955
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/439577': 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) = 6987.45402392
delta logL = 0.352068923715

Extracting fit parameters...

4FGL J1516.8+3651
   Spectrum: PowerLaw
279    Prefactor:  6.729e+01  7.483e+01  1.000e-04  1.000e+04 ( 1.000e-14)
280        Index:  1.601e+00  7.068e-01  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:  8.897e-01  2.130e-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.130e+00  2.263e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.98
Ra Dec: 229.222 36.850
Photon Index (Free Index): 1.60 +/- 0.71
Photon Flux (Free Index): 1.01e-08 +/- 1.62e-08
Energy Flux (Free Index): 2.27e-05 +/- 3.54e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/439577/cmap_HighResolution_329011201_329270401_4FGL_J1516.8+3651_daily_bin346.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.62e-03', comment='SUCCESS', photon_flux='2.20e-08', energy_flux2='2.27e-05', photon_flux_error='2.35e-08', dlogl='3.52e-01', energy_flux='1.01e-05', photon_flux2='1.01e-08', job_status='DONE', time_completed='2021-09-11 22:45:55.699954', photon_index_error2='0.71', photon_index2='1.60', ts='2.28', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', photon_flux_upper_limit='8.69e-08', energy_flux_error2='3.54e-05', EG='1.12', time_epoch_completed='1631425555.7', return_code='0', job_id='439577', GAL2='0.89', EG2='1.13', return_code2='0', energy_flux_error='1.07e-05', photon_flux_error2='1.62e-08', ts2='2.98', photon_index='2.19' WHERE bin_id='346' AND source_name='4FGL J1516.8+3651' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 22:45:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0044>
Subject: Job 439577: <4FGL_J1516.8+3651_daily_bin346> in cluster <slac> Done

Job <4FGL_J1516.8+3651_daily_bin346> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Sep 11 22:31:07 2021
Job was executed on host(s) <bullet0044>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 22:31:09 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:31:09 2021
Terminated at Sat Sep 11 22:45:56 2021
Results reported at Sat Sep 11 22:45:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1516.8+3651_daily_bin346 229.222 36.8505 329011201 329270401 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 :                                   869.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             344.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   886 sec.
    Turnaround time :                            889 sec.

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

