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


Performing analysis on: 4FGL_J1516.9+1934_daily_bin581
RA = 229.244, Dec = 19.5805
tmin = 389923201, tmax = 390182401
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='453616', job_status='RUN', time_executed='2021-09-11 23:24:44.977072', time_epoch_executed='1631427884.98' WHERE source_name='4FGL J1516.9+1934' and cadence='daily' and bin_id='581'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/453616

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/453616/ft1_4FGL_J1516.9+1934_daily_bin581.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/453616/ft2_4FGL_J1516.9+1934_daily_bin581.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/453616/ft1_4FGL_J1516.9+1934_daily_bin581.fits outfile=/scratch/kocevski/453616/ft1_filteredMKT_4FGL_J1516.9+1934_daily_bin581.fits ra=229.244 dec=19.5805 rad=12.0 tmin=389923201.0 tmax=390182401.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.49
user 3.26
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/453616/ft2_4FGL_J1516.9+1934_daily_bin581.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/453616/ft2_4FGL_J1516.9+1934_daily_bin581.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/453616/ft1_filteredMKT_4FGL_J1516.9+1934_daily_bin581.fits evtable="EVENTS" outfile="/scratch/kocevski/453616/ft1_filtered_4FGL_J1516.9+1934_daily_bin581.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.50
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/453616/ft1_filtered_4FGL_J1516.9+1934_daily_bin581.fits" evtable="EVENTS" scfile=/scratch/kocevski/453616/ft2_4FGL_J1516.9+1934_daily_bin581.fits sctable="SC_DATA" outfile=/scratch/kocevski/453616/ltcube_389923201_390182401_4FGL_J1516.9+1934_daily_bin581.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/453616/ft2_4FGL_J1516.9+1934_daily_bin581.fits
.....................!
real 12.38
user 12.02
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/453616/ft1_filtered_4FGL_J1516.9+1934_daily_bin581.fits evtable="EVENTS" scfile=/scratch/kocevski/453616/ft2_4FGL_J1516.9+1934_daily_bin581.fits sctable="SC_DATA" expcube=/scratch/kocevski/453616/ltcube_389923201_390182401_4FGL_J1516.9+1934_daily_bin581.fits outfile=/scratch/kocevski/453616/expmap_389923201_390182401_4FGL_J1516.9+1934_daily_bin581.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/453616/ltcube_389923201_390182401_4FGL_J1516.9+1934_daily_bin581.fits
.....................!
real 190.46
user 184.84
sys 5.03

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

Setting source of interest to:
4FGL J1516.9+1934 @ 229.244 19.5805

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/453616/ft1_filtered_4FGL_J1516.9+1934_daily_bin581.fits scfile=/scratch/kocevski/453616/ft2_4FGL_J1516.9+1934_daily_bin581.fits outfile=/scratch/kocevski/453616/cmap_389923201_390182401_4FGL_J1516.9+1934_daily_bin581.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.244 yref=19.5805 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/453616/ft1_filtered_4FGL_J1516.9+1934_daily_bin581.fits scfile=/scratch/kocevski/453616/ft2_4FGL_J1516.9+1934_daily_bin581.fits outfile=/scratch/kocevski/453616/cmap_HighResolution_389923201_390182401_4FGL_J1516.9+1934_daily_bin581.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.244 yref=19.5805 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.36
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/453616/ft1_filtered_4FGL_J1516.9+1934_daily_bin581.fits evtable="EVENTS" scfile=/scratch/kocevski/453616/ft2_4FGL_J1516.9+1934_daily_bin581.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/453616/Model_4FGL_J1516.9+1934_daily_bin581.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/453616/ft1_filtered_4FGL_J1516.9+1934_daily_bin581.fits.....................!
real 59.57
user 58.27
sys 1.11

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/453616/ft1_filtered_4FGL_J1516.9+1934_daily_bin581.fits', '/scratch/kocevski/453616/ft2_4FGL_J1516.9+1934_daily_bin581.fits', expMap='/scratch/kocevski/453616/expmap_389923201_390182401_4FGL_J1516.9+1934_daily_bin581.fits', expCube='/scratch/kocevski/453616/ltcube_389923201_390182401_4FGL_J1516.9+1934_daily_bin581.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/453616/Model_4FGL_J1516.9+1934_daily_bin581.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1516.9+1934'

4FGL J1516.9+1934
   Spectrum: PowerLaw
225    Prefactor:  7.750e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
226        Index:  2.580e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
227        Scale:  7.139e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/453616/ft1_filtered_4FGL_J1516.9+1934_daily_bin581.fits
Spacecraft file(s): /scratch/kocevski/453616/ft2_4FGL_J1516.9+1934_daily_bin581.fits
Exposure map: /scratch/kocevski/453616/expmap_389923201_390182401_4FGL_J1516.9+1934_daily_bin581.fits
Exposure cube: /scratch/kocevski/453616/ltcube_389923201_390182401_4FGL_J1516.9+1934_daily_bin581.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/453616/Model_4FGL_J1516.9+1934_daily_bin581.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) = 7608.10026937

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    6.5805       1.0000         .10000E-03   10000.    
     3 'norm      '    1.6542       1.0000         .10000E-03   10000.    
     4 'Prefactor '    27.004       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .97526E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    18.293       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .19739E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .79524E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    4.8398       1.0000         .10000E-03   10000.    
    11 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    28.520       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10788E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    2.2119       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10189E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .75626       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.3145       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .94917       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5030E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7608.091     FROM MIGRAD    STATUS=CONVERGED    609 CALLS     2852 TOTAL
                     EDM=   .85E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.836        .19229E-05** at limit **
   2  norm          6.5802        3.2575        .15841E-06   -.11560E-03
   3  norm          1.6513        4.5051       -.90996E-06   -.10444E-02
   4  Prefactor     27.021        30.192       -.57625E-05    .22791E-04
   5  Prefactor     .10045E-03    18.073       -.11144E-05** at limit **
   6  Prefactor     18.280        28.839        .89487E-05    .71125E-04
   7  Prefactor     .10000E-03    152.44       -.67744E-05** at limit **
   8  Prefactor     .10000E-03    4.9298        .35415E-06** at limit **
   9  norm          .10000E-03    .60423E-01   -.92187E-09** at limit **
  10  norm          4.8407        4.7758        .13960E-06    .23653E-03
  11  norm          .10000E-03    17.021       -.33939E-05** at limit **
  12  Prefactor     .10000E-03    13.206        .12383E-05** at limit **
  13  Prefactor     .10000E-03    2.6557        .29399E-07** at limit **
  14  Prefactor     28.486        42.526        .17983E-04   -.62643E-05
  15  Prefactor     .10000E-03    5.1822        .21904E-07** at limit **
  16  Prefactor     .10000E-03    10.124        .22885E-08** at limit **
  17  Prefactor     .10000E-03    1.7168        .29668E-06** at limit **
  18  Prefactor     .10000E-03    17.392        .16822E-05** at limit **
  19  norm          2.2111        2.2513       -.10482E-06   -.32353E-03
  20  Prefactor     .10000E-03    10.959       -.27690E-07** at limit **
  21  norm          .10000E-03    13.129       -.14800E-05** at limit **
  22  Prefactor     .76159        7.5256       -.12158E-05   -.96006E-04
  23  Normalizat    1.3149        .21835       -.26279E-05    .17454E-03
  24  Prefactor     .94916        .12773       -.30381E-07    .18105E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 6.58017
  norm       = 1.65135
  Prefactor  = 27.0212
  Prefactor  = 0.000100446
  Prefactor  = 18.2803
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 4.84071
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 28.4861
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.21107
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.761593
  Normalizat = 1.31492
  Prefactor  = 0.94916
 **********
 **   18 **HESSE 
 **********

 FCN=   7608.091     FROM HESSE     STATUS=OK           411 CALLS     3263 TOTAL
                     EDM=   .43E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    16.342        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          6.5802        3.2543        .10686E-03   -1.5195    
   3  norm          1.6513        4.5716        .29926E-03   -1.5451    
   4  Prefactor     27.021        30.173        .77091E-04   -1.4668    
   5  Prefactor     .10045E-03    24.369        .92080E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     18.280        28.854        .93644E-04   -1.4853    
   7  Prefactor     .10000E-03    155.45        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    21.417        .37495E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    .76633E-01    .41503E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          4.8407        4.7811        .18286E-03   -1.5268    
  11  norm          .10000E-03    17.012        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    13.204        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.6626        .13881E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     28.486        41.736        .75020E-04   -1.4640    
  15  Prefactor     .10000E-03    5.1942        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    10.125        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    3.2436        .21972E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    17.416        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          2.2111        2.2441        .12773E-03   -1.5411    
  20  Prefactor     .10000E-03    10.966        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    13.417        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .76159        28.129        .45757E-02   -1.5533    
  23  Normalizat    1.3149        .26039        .30063E-03   -.83122    
  24  Prefactor     .94916        .15438        .21121E-03   -.94444    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.32224e-08
Minuit parameter uncertainties:
  1  7.11521e-05
  2  3.25439
  3  4.57254
  4  30.1898
  5  0.00659517
  6  28.8762
  7  0.00104151
  8  5.04684e-05
  9  2.20015e-08
  10  4.78145
  11  1.73903e-06
  12  2.39923e-05
  13  4.04932e-06
  14  41.7784
  15  5.42442e-06
  16  2.65517e-06
  17  5.32689e-05
  18  4.56015e-05
  19  2.24414
  20  2.10477e-06
  21  1.40221e-05
  22  9.26107
  23  0.260655
  24  0.154453
Done.

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

Extracting fit parameters...

4FGL J1516.9+1934
   Spectrum: PowerLaw
225    Prefactor:  1.000e-04  2.399e-05  1.000e-04  1.000e+04 ( 1.000e-13)
226        Index:  2.580e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
227        Scale:  7.139e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
500    Prefactor:  9.492e-01  1.545e-01  0.000e+00  1.000e+01 ( 1.000e+00)
501        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
502        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
499   Normalization:  1.315e+00  2.607e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 229.244 19.581
Photon Flux Upper Limit: 6.66e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.20e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/453616/likelihoodResults_389923201_390182401_4FGL_J1516.9+1934_daily_bin581.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) = 7608.09183198
delta logL = -0.000360678088327

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7608.0914713
delta logL = 1.71894498635e-10

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7608.091     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      202 TOTAL
                     EDM=   .21E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    16.321        .90712E-02** at limit **
   2  Index         2.5676        6.2806        .50000        .41400E-05
   3  Normalizat    1.3149        .20627        .67952E-01    .11436E-04
   4  Prefactor     .94916        .12625        .45629E-01    .95618E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.56765
  Normalizat = 1.31491
  Prefactor  = 0.949161
 **********
 **   18 **HESSE 
 **********

 FCN=   7608.091     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      233 TOTAL
                     EDM=   .58E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1446.2        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5676        6.6905        .20000       -.50805    
   3  Normalizat    1.3149        .67053E-01    .30063E-03   -.83122    
   4  Prefactor     .94916        .41044E-01    .21121E-03   -.94444    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.77623e-05
Minuit parameter uncertainties:
  1  3.25444e-05
  2  7999.7
  3  0.0670577
  4  0.0410454
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/453616': 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) = 7608.09147129
delta logL = 1.20044205687e-08

Extracting fit parameters...

4FGL J1516.9+1934
   Spectrum: PowerLaw
225    Prefactor:  1.000e-04  3.254e-05  1.000e-04  1.000e+04 ( 1.000e-13)
226        Index:  2.568e+00  8.000e+03  0.000e+00  1.000e+01 (-1.000e+00)
227        Scale:  7.139e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
500    Prefactor:  9.492e-01  4.105e-02  0.000e+00  1.000e+01 ( 1.000e+00)
501        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
502        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
499   Normalization:  1.315e+00  6.706e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 229.244 19.581

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/453616/cmap_HighResolution_389923201_390182401_4FGL_J1516.9+1934_daily_bin581.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.20e-03', job_status='DONE', photon_flux_upper_limit='6.66e-08', time_completed='2021-09-11 23:36:17.097888', job_id='453616', GAL2='0.95', fit_tolerance='1e-08', EG2='1.31', EG='1.31', time_epoch_completed='1631428577.1', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='1.20e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='581' AND source_name='4FGL J1516.9+1934' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 23:36:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0070>
Subject: Job 453616: <4FGL_J1516.9+1934_daily_bin581> in cluster <slac> Done

Job <4FGL_J1516.9+1934_daily_bin581> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep 11 23:20:55 2021
Job was executed on host(s) <bullet0070>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 23:20:57 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 11 23:20:57 2021
Terminated at Sat Sep 11 23:36:17 2021
Results reported at Sat Sep 11 23:36:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1516.9+1934_daily_bin581 229.244 19.5805 389923201 390182401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1516.9+1934 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   687.21 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             290.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   920 sec.
    Turnaround time :                            922 sec.

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

