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


Performing analysis on: 4FGL_J1516.9+1934_daily_bin2
RA = 229.244, Dec = 19.5805
tmin = 239846401, tmax = 240105601
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='448018', job_status='RUN', time_executed='2021-09-11 23:02:22.408497', time_epoch_executed='1631426542.41' WHERE source_name='4FGL J1516.9+1934' and cadence='daily' and bin_id='2'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/448018

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/448018/ft1_4FGL_J1516.9+1934_daily_bin2.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/448018/ft2_4FGL_J1516.9+1934_daily_bin2.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/448018/ft1_4FGL_J1516.9+1934_daily_bin2.fits outfile=/scratch/kocevski/448018/ft1_filteredMKT_4FGL_J1516.9+1934_daily_bin2.fits ra=229.244 dec=19.5805 rad=12.0 tmin=239846401.0 tmax=240105601.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.44
user 1.25
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/448018/ft2_4FGL_J1516.9+1934_daily_bin2.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/448018/ft1_filteredMKT_4FGL_J1516.9+1934_daily_bin2.fits evtable="EVENTS" outfile="/scratch/kocevski/448018/ft1_filtered_4FGL_J1516.9+1934_daily_bin2.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.31
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/448018/ft1_filtered_4FGL_J1516.9+1934_daily_bin2.fits" evtable="EVENTS" scfile=/scratch/kocevski/448018/ft2_4FGL_J1516.9+1934_daily_bin2.fits sctable="SC_DATA" outfile=/scratch/kocevski/448018/ltcube_239846401_240105601_4FGL_J1516.9+1934_daily_bin2.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/448018/ft2_4FGL_J1516.9+1934_daily_bin2.fits
.....................!
real 12.73
user 12.37
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/448018/ft1_filtered_4FGL_J1516.9+1934_daily_bin2.fits evtable="EVENTS" scfile=/scratch/kocevski/448018/ft2_4FGL_J1516.9+1934_daily_bin2.fits sctable="SC_DATA" expcube=/scratch/kocevski/448018/ltcube_239846401_240105601_4FGL_J1516.9+1934_daily_bin2.fits outfile=/scratch/kocevski/448018/expmap_239846401_240105601_4FGL_J1516.9+1934_daily_bin2.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/448018/ltcube_239846401_240105601_4FGL_J1516.9+1934_daily_bin2.fits
.....................!
real 191.46
user 185.38
sys 5.65

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/448018/ft1_filtered_4FGL_J1516.9+1934_daily_bin2.fits scfile=/scratch/kocevski/448018/ft2_4FGL_J1516.9+1934_daily_bin2.fits outfile=/scratch/kocevski/448018/cmap_239846401_240105601_4FGL_J1516.9+1934_daily_bin2.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/448018/ft1_filtered_4FGL_J1516.9+1934_daily_bin2.fits scfile=/scratch/kocevski/448018/ft2_4FGL_J1516.9+1934_daily_bin2.fits outfile=/scratch/kocevski/448018/cmap_HighResolution_239846401_240105601_4FGL_J1516.9+1934_daily_bin2.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.55
user 0.38
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/448018/ft1_filtered_4FGL_J1516.9+1934_daily_bin2.fits', '/scratch/kocevski/448018/ft2_4FGL_J1516.9+1934_daily_bin2.fits', expMap='/scratch/kocevski/448018/expmap_239846401_240105601_4FGL_J1516.9+1934_daily_bin2.fits', expCube='/scratch/kocevski/448018/ltcube_239846401_240105601_4FGL_J1516.9+1934_daily_bin2.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/448018/Model_4FGL_J1516.9+1934_daily_bin2.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/448018/ft1_filtered_4FGL_J1516.9+1934_daily_bin2.fits
Spacecraft file(s): /scratch/kocevski/448018/ft2_4FGL_J1516.9+1934_daily_bin2.fits
Exposure map: /scratch/kocevski/448018/expmap_239846401_240105601_4FGL_J1516.9+1934_daily_bin2.fits
Exposure cube: /scratch/kocevski/448018/ltcube_239846401_240105601_4FGL_J1516.9+1934_daily_bin2.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/448018/Model_4FGL_J1516.9+1934_daily_bin2.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) = 10069.4337485

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.8786       1.0000         .10000E-03   10000.    
     2 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    14.410       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .67397E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    12.014       1.0000         .10000E-03   10000.    
    10 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    80.208       1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.0413       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10008E-03   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 '    9.4344       1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.3325       1.0000         .10000E-03   10000.    
    19 'norm      '    .10580E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    60.465       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .77378       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .92845       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=   10069.43     FROM MIGRAD    STATUS=CONVERGED    550 CALLS     2715 TOTAL
                     EDM=   .98E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.8752        8.0075        .25253E-05   -.95510E-03
   2  norm          .10000E-03    1.3771       -.10632E-06** at limit **
   3  norm          .10000E-03    1.1510        .94023E-08** at limit **
   4  Prefactor     14.398        20.670        .26053E-05    .21596E-03
   5  Prefactor     .10000E-03    11.563       -.23265E-05** at limit **
   6  Prefactor     .10000E-03    14.105       -.80263E-06** at limit **
   7  Prefactor     .10000E-03    18.839       -.33171E-05** at limit **
   8  Prefactor     .10000E-03    2.9150        .75725E-08** at limit **
   9  norm          12.014        .62708       -.12637E-08    .60879E-03
  10  norm          .10000E-03    7.4921        .65959E-07** at limit **
  11  norm          .10000E-03    20.142        .27715E-05** at limit **
  12  Prefactor     80.195        45.175       -.48380E-05   -.28567E-03
  13  Prefactor     9.0409        7.6145        .32468E-06   -.52033E-03
  14  Prefactor     .10000E-03    12.203        .77900E-06** at limit **
  15  Prefactor     .10000E-03    3.3738        .64434E-07** at limit **
  16  Prefactor     .10000E-03    12.452        .16711E-05** at limit **
  17  Prefactor     9.4340        3.7156        .28565E-07   -.24129E-04
  18  Prefactor     8.3347        27.508        .12181E-06   -.11540E-04
  19  norm          .10000E-03    1.2016        .29564E-07** at limit **
  20  Prefactor     .10000E-03    12.160        .43673E-06** at limit **
  21  norm          60.469        13.062       -.51470E-06   -.31064E-03
  22  Prefactor     .10000E-03    5.3115        .16639E-07** at limit **
  23  Normalizat    .77396        .21660        .31972E-06    .33168E-04
  24  Prefactor     .92832        .12911       -.63359E-07    .99003E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.87517
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 14.3982
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 12.014
  norm       = 0.0001
  norm       = 0.000100001
  Prefactor  = 80.1948
  Prefactor  = 9.04087
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.43404
  Prefactor  = 8.33469
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 60.4685
  Prefactor  = 0.0001
  Normalizat = 0.77396
  Prefactor  = 0.928323
 **********
 **   18 **HESSE 
 **********

 FCN=   10069.43     FROM HESSE     STATUS=OK           395 CALLS     3110 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.8752        11.825        .10244E-02   -1.5314    
   2  norm          .10000E-03    1.4004        .11498E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    1.1535        .10513E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     14.398        20.901        .10551E-03   -1.4949    
   5  Prefactor     .10000E-03    11.710        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    123.38        .71610E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    18.936        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.9222        .16730E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          12.014        .62712        .17472E-04   -1.5015    
  10  norm          .10000E-03    7.6412        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    20.208        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     80.195        46.319        .44845E-04   -1.3915    
  13  Prefactor     9.0409        7.7620        .66647E-03   -1.5107    
  14  Prefactor     .10000E-03    12.237        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.3758        .18000E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    12.475        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     9.4340        3.7327        .11462E-03   -1.5094    
  18  Prefactor     8.3347        27.519        .13888E-03   -1.5130    
  19  norm          .10000E-03    3.3385        .21231E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    12.169        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          60.469        13.053        .51599E-04   -1.4151    
  22  Prefactor     .10000E-03    5.3491        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .77396        .25817        .42405E-03   -1.0104    
  24  Prefactor     .92832        .15199        .24385E-03   -.95158    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.36559e-09
Minuit parameter uncertainties:
  1  11.8324
  2  6.14179e-06
  3  4.59541e-07
  4  20.9118
  5  0.000131614
  6  0.000767489
  7  0.000230296
  8  1.09558e-06
  9  0.627125
  10  2.097e-06
  11  0.000201178
  12  46.3395
  13  7.7629
  14  5.38331e-05
  15  1.137e-06
  16  9.29792e-05
  17  3.73277
  18  27.5612
  19  3.18103e-05
  20  2.65218e-05
  21  13.0537
  22  1.85502e-06
  23  0.258579
  24  0.152055
Done.

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

Extracting fit parameters...

4FGL J1516.9+1934
   Spectrum: PowerLaw
225    Prefactor:  8.019e+01  4.634e+01  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.283e-01  1.521e-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:  7.740e-01  2.586e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.80
Ra Dec: 229.244 19.581
Photon Index (Fixed Index): 2.58 +/- 0.00
Photon Flux (Fixed Index): 8.10e-08 +/- 4.67e-08
Energy Flux (Fixed Index): 2.16e-05 +/- 1.25e-05

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) = 10069.1814418
delta logL = 0.246931358923

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10069.1686802
delta logL = 0.259693021575

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10069.17     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      314 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     48.552        86.800        .57517E-04    .42070E-03
   2  Index         3.1678        1.3641        .65353E-02    .24729E-03
   3  Normalizat    .72527        .25476        .43659E-03    .11650E-03
   4  Prefactor     .94865        .15551        .24150E-03   -.92136E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 48.5516
  Index      = 3.16784
  Normalizat = 0.725274
  Prefactor  = 0.948645
 **********
 **   18 **HESSE 
 **********

 FCN=   10069.17     FROM HESSE     STATUS=OK            25 CALLS      339 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     48.552        57.733        .11503E-04   -1.4313    
   2  Index         3.1678        .91233        .26141E-03   -.37517    
   3  Normalizat    .72527        .24786        .17463E-04   -1.0290    
   4  Prefactor     .94865        .15240        .48300E-04   -.94461    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.28783e-09
Minuit parameter uncertainties:
  1  57.7994
  2  0.918277
  3  0.248246
  4  0.15247
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/448018': 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) = 10069.1686707
delta logL = 0.259702454103

Extracting fit parameters...

4FGL J1516.9+1934
   Spectrum: PowerLaw
225    Prefactor:  4.855e+01  5.780e+01  1.000e-04  1.000e+04 ( 1.000e-13)
226        Index:  3.168e+00  9.183e-01  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.486e-01  1.525e-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:  7.253e-01  2.482e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.32
Ra Dec: 229.244 19.581
Photon Index (Free Index): 3.17 +/- 0.92
Photon Flux (Free Index): 1.14e-07 +/- 6.69e-08
Energy Flux (Free Index): 2.10e-05 +/- 1.07e-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/448018/cmap_HighResolution_239846401_240105601_4FGL_J1516.9+1934_daily_bin2.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.10e-08', energy_flux2='2.10e-05', photon_flux_error='4.67e-08', dlogl='2.60e-01', energy_flux='2.16e-05', photon_flux2='1.14e-07', job_status='DONE', time_completed='2021-09-11 23:15:17.622110', photon_index_error2='0.92', photon_index2='3.17', ts='5.80', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', energy_flux_error2='1.07e-05', EG='0.77', time_epoch_completed='1631427317.62', return_code='0', job_id='448018', GAL2='0.95', EG2='0.73', return_code2='0', energy_flux_error='1.25e-05', photon_flux_error2='6.69e-08', ts2='6.32', photon_index='2.58' WHERE bin_id='2' AND source_name='4FGL J1516.9+1934' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 23:15:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0012>
Subject: Job 448018: <4FGL_J1516.9+1934_daily_bin2> in cluster <slac> Done

Job <4FGL_J1516.9+1934_daily_bin2> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sat Sep 11 23:01:41 2021
Job was executed on host(s) <bullet0012>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 23:01:43 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:01:43 2021
Terminated at Sat Sep 11 23:15:18 2021
Results reported at Sat Sep 11 23:15:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1516.9+1934_daily_bin2 229.244 19.5805 239846401 240105601 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 :                                   773.35 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             375.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   814 sec.
    Turnaround time :                            817 sec.

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

