/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 145 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 = 6319
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1516.8+3651_daily_bin91
RA = 229.222, Dec = 36.8505
tmin = 262915201, tmax = 263174401
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='438553', job_status='RUN', time_executed='2021-09-11 22:28:43.940402', time_epoch_executed='1631424523.94' WHERE source_name='4FGL J1516.8+3651' and cadence='daily' and bin_id='91'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/438553

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

Retrieving the FT1 file...

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

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

Retrieving 41 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/438553/ft1_4FGL_J1516.8+3651_daily_bin91.fits


Retrieving the FT1 file...

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

Retrieving 41 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/438553/ft2_4FGL_J1516.8+3651_daily_bin91.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/438553/ft1_4FGL_J1516.8+3651_daily_bin91.fits outfile=/scratch/kocevski/438553/ft1_filteredMKT_4FGL_J1516.8+3651_daily_bin91.fits ra=229.222 dec=36.8505 rad=12.0 tmin=262915201.0 tmax=263174401.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 1.27
user 1.10
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/438553/ft2_4FGL_J1516.8+3651_daily_bin91.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/438553/ft1_filteredMKT_4FGL_J1516.8+3651_daily_bin91.fits evtable="EVENTS" outfile="/scratch/kocevski/438553/ft1_filtered_4FGL_J1516.8+3651_daily_bin91.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/438553/ft1_filtered_4FGL_J1516.8+3651_daily_bin91.fits" evtable="EVENTS" scfile=/scratch/kocevski/438553/ft2_4FGL_J1516.8+3651_daily_bin91.fits sctable="SC_DATA" outfile=/scratch/kocevski/438553/ltcube_262915201_263174401_4FGL_J1516.8+3651_daily_bin91.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/438553/ft2_4FGL_J1516.8+3651_daily_bin91.fits
.....................!
real 10.92
user 10.56
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/438553/ft1_filtered_4FGL_J1516.8+3651_daily_bin91.fits evtable="EVENTS" scfile=/scratch/kocevski/438553/ft2_4FGL_J1516.8+3651_daily_bin91.fits sctable="SC_DATA" expcube=/scratch/kocevski/438553/ltcube_262915201_263174401_4FGL_J1516.8+3651_daily_bin91.fits outfile=/scratch/kocevski/438553/expmap_262915201_263174401_4FGL_J1516.8+3651_daily_bin91.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/438553/ltcube_262915201_263174401_4FGL_J1516.8+3651_daily_bin91.fits
.....................!
real 190.10
user 185.49
sys 4.23

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/438553/ft1_filtered_4FGL_J1516.8+3651_daily_bin91.fits scfile=/scratch/kocevski/438553/ft2_4FGL_J1516.8+3651_daily_bin91.fits outfile=/scratch/kocevski/438553/cmap_262915201_263174401_4FGL_J1516.8+3651_daily_bin91.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.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/438553/ft1_filtered_4FGL_J1516.8+3651_daily_bin91.fits scfile=/scratch/kocevski/438553/ft2_4FGL_J1516.8+3651_daily_bin91.fits outfile=/scratch/kocevski/438553/cmap_HighResolution_262915201_263174401_4FGL_J1516.8+3651_daily_bin91.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/438553/ft1_filtered_4FGL_J1516.8+3651_daily_bin91.fits evtable="EVENTS" scfile=/scratch/kocevski/438553/ft2_4FGL_J1516.8+3651_daily_bin91.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/438553/Model_4FGL_J1516.8+3651_daily_bin91.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/438553/ft1_filtered_4FGL_J1516.8+3651_daily_bin91.fits.....................!
real 40.43
user 39.12
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10379E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    19.737       1.0000         .10000E-03   10000.    
     4 'norm      '    17.119       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .75775E-01   1.0000         .10000E-03   10000.    
     6 'norm      '    21.682       1.0000         .10000E-03   10000.    
     7 'Prefactor '    13.974       1.0000         .10000E-03   10000.    
     8 'Prefactor '    67.232       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.3486       1.0000         .10000E-03   10000.    
    13 'norm      '    1.2496       1.0000         .10000E-03   10000.    
    14 'norm      '    1.8299       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    34.703       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    17.452       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.4424       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   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 '    3.0447       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0324       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .70648       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5940E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4598.297     FROM MIGRAD    STATUS=CONVERGED    138 CALLS     3124 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.3600       -.74742E-06** at limit **
   2  Prefactor     .10004E-03    18.191       -.45954E-06** at limit **
   3  Prefactor     19.690        5.4859       -.48911E-06   -.14127E-01
   4  norm          17.130        1.7297        .16727E-06    .30569E-02
   5  Prefactor     .10034E-03    731.64       -.44768E-04** at limit **
   6  norm          21.684        1.3053        .99488E-07    .37565E-03
   7  Prefactor     13.861        11.435       -.25288E-05    .32876E-02
   8  Prefactor     67.242        1.4062        .67679E-07    .39165E-02
   9  norm          .10001E-03    5.4067        .12683E-05** at limit **
  10  Prefactor     .10001E-03    5.1060       -.76510E-06** at limit **
  11  Prefactor     .10000E-03    4.2755        .16524E-06** at limit **
  12  Prefactor     8.3481        1.0203       -.35378E-07   -.37513E-04
  13  norm          1.2492        1.3355        .10502E-06    .11736E-03
  14  norm          1.8302        3.7564       -.21823E-06   -.42897E-04
  15  Prefactor     .10000E-03    5.8204        .85319E-06** at limit **
  16  Prefactor     .10029E-03    50.429        .64344E-06** at limit **
  17  Prefactor     .10000E-03    4.9682       -.90323E-06** at limit **
  18  Prefactor     34.699        1.0895       -.59907E-07    .31954E-03
  19  Prefactor     .10024E-03    32.269       -.35741E-05** at limit **
  20  norm          17.453        2.6137        .19849E-07    .12294E-03
  21  Prefactor     1.4421        1.1462       -.64913E-07   -.78002E-04
  22  Prefactor     .10012E-03    22.072       -.28522E-05** at limit **
  23  Prefactor     .10000E-03    8.1332       -.93822E-06** at limit **
  24  norm          .10000E-03    6.9368       -.76856E-06** at limit **
  25  Prefactor     .10000E-03    1.2029       -.65270E-07** at limit **
  26  Prefactor     .10000E-03    12.097       -.73927E-06** at limit **
  27  Prefactor     3.0449        3.5466        .59857E-06    .18648E-03
  28  Normalizat    1.0324        .23245        .51925E-06    .39584E-04
  29  Prefactor     .70638        .21647       -.85935E-07    .32320E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.000100037
  Prefactor  = 19.6898
  norm       = 17.1298
  Prefactor  = 0.00010034
  norm       = 21.6839
  Prefactor  = 13.8614
  Prefactor  = 67.2419
  norm       = 0.000100007
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  Prefactor  = 8.34812
  norm       = 1.24917
  norm       = 1.83018
  Prefactor  = 0.000100002
  Prefactor  = 0.000100293
  Prefactor  = 0.000100001
  Prefactor  = 34.6989
  Prefactor  = 0.000100244
  norm       = 17.4528
  Prefactor  = 1.44209
  Prefactor  = 0.000100117
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 3.04487
  Normalizat = 1.03245
  Prefactor  = 0.706378
 **********
 **   18 **HESSE 
 **********

 FCN=   4598.297     FROM HESSE     STATUS=OK           617 CALLS     3741 TOTAL
                     EDM=   .28E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.3557        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10004E-03    18.217        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     19.690        33.019        .22539E-02   -1.4820    
   4  norm          17.130        18.627        .24201E-02   -1.4880    
   5  Prefactor     .10034E-03    48.813        .12168       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          21.684        11.604        .21505E-02   -1.4776    
   7  Prefactor     13.861        150.63        .26787E-02   -1.4963    
   8  Prefactor     67.242        50.502        .12237E-02   -1.4066    
   9  norm          .10001E-03    5.3955        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10001E-03    5.1073        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    4.2535        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     8.3481        9.6643        .34686E-02   -1.5130    
  13  norm          1.2492        1.3606        .10004E-01   -1.5484    
  14  norm          1.8302        3.8414        .77133E-02   -1.5437    
  15  Prefactor     .10000E-03    5.8133        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10029E-03    50.626        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.9428        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     34.699        23.352        .17007E-02   -1.4529    
  19  Prefactor     .10024E-03    31.861        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          17.453        3.4121        .23968E-02   -1.4872    
  21  Prefactor     1.4421        48.098        .89778E-02   -1.5468    
  22  Prefactor     .10012E-03    22.166        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    8.1215        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    6.9012        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    1.1870        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    12.088        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     3.0449        3.5566        .58131E-02   -1.5359    
  28  Normalizat    1.0324        .21840        .41935E-01   -.91951    
  29  Prefactor     .70638        .18913        .61727E-01   -1.0328    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.79448e-06
Minuit parameter uncertainties:
  1  1.45311e-05
  2  0.00163502
  3  33.0498
  4  18.6335
  5  0.0081502
  6  11.6055
  7  91.6842
  8  50.5345
  9  0.000387423
  10  0.000341888
  11  3.71038e-06
  12  9.66612
  13  1.36067
  14  3.84193
  15  0.000208839
  16  0.00770551
  17  0.000114714
  18  23.3582
  19  0.00558031
  20  3.41212
  21  16.6707
  22  0.00322286
  23  0.000145679
  24  0.000112599
  25  7.96547e-07
  26  0.000159301
  27  3.55686
  28  0.218588
  29  0.189306
Done.

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

Extracting fit parameters...

4FGL J1516.8+3651
   Spectrum: PowerLaw
279    Prefactor:  1.003e-04  7.706e-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:  7.064e-01  1.893e-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.032e+00  2.186e-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.63e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.05e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/438553/likelihoodResults_262915201_263174401_4FGL_J1516.8+3651_daily_bin91.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) = 4598.29680616
delta logL = -9.39162582654e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4598.29680614
delta logL = -9.38989714996e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96332E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1905       1.0000          .0000       10.000    
     3 'Normalizat'    1.0324       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70638       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.

 FCN=   4598.297     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      202 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8902.6        .90715E-02** at limit **
   2  Index         2.1972        6.9922        .50000       -.11575E-05
   3  Normalizat    1.0324        .15498        .41928E-01    .94840E-05
   4  Prefactor     .70638        .14566        .61727E-01    .11495E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.19723
  Normalizat = 1.03245
  Prefactor  = 0.706377
 **********
 **   18 **HESSE 
 **********

 FCN=   4598.297     FROM HESSE     STATUS=OK            33 CALLS      235 TOTAL
                     EDM=   .24E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    97.575        .18143E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1972        5.8755        .50000       -.59505    
   3  Normalizat    1.0324        .22794        .24511E-03   -.91951    
   4  Prefactor     .70638        .21454        .27304E-03   -1.0328    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.39066e-12
Minuit parameter uncertainties:
  1  1.82297e-05
  2  5.8028
  3  0.228161
  4  0.21479
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/438553': 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) = 4598.29671224
delta logL = 4.72937244922e-09

Extracting fit parameters...

4FGL J1516.8+3651
   Spectrum: PowerLaw
279    Prefactor:  1.000e-04  1.823e-05  1.000e-04  1.000e+04 ( 1.000e-14)
280        Index:  2.197e+00  5.803e+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:  7.064e-01  2.148e-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.032e+00  2.282e-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/438553/cmap_HighResolution_262915201_263174401_4FGL_J1516.8+3651_daily_bin91.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.05e-03', job_status='DONE', photon_flux_upper_limit='6.63e-08', time_completed='2021-09-11 22:39:40.112189', job_id='438553', GAL2='0.71', fit_tolerance='1e-08', EG2='1.03', EG='1.03', time_epoch_completed='1631425180.11', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.71', dlogl='4.73e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='91' AND source_name='4FGL J1516.8+3651' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 22:39:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0138>
Subject: Job 438553: <4FGL_J1516.8+3651_daily_bin91> in cluster <slac> Done

Job <4FGL_J1516.8+3651_daily_bin91> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep 11 22:26:08 2021
Job was executed on host(s) <bullet0138>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 22:26: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:26:09 2021
Terminated at Sat Sep 11 22:39:40 2021
Results reported at Sat Sep 11 22:39:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1516.8+3651_daily_bin91 229.222 36.8505 262915201 263174401 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 :                                   656.28 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             301.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   811 sec.
    Turnaround time :                            812 sec.

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

