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


Performing analysis on: 4FGL_J2251.5-4928_daily_bin350
RA = 342.879, Dec = -49.4691
tmin = 330048001, tmax = 330307201
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='535716', job_status='RUN', time_executed='2021-09-28 23:50:51.256957', time_epoch_executed='1632898251.26' WHERE source_name='4FGL J2251.5-4928' and cadence='daily' and bin_id='350'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/535716

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/535716/ft1_4FGL_J2251.5-4928_daily_bin350.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/535716/ft2_4FGL_J2251.5-4928_daily_bin350.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/535716/ft1_4FGL_J2251.5-4928_daily_bin350.fits outfile=/scratch/kocevski/535716/ft1_filteredMKT_4FGL_J2251.5-4928_daily_bin350.fits ra=342.879 dec=-49.4691 rad=12.0 tmin=330048001.0 tmax=330307201.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.47
user 3.25
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/535716/ft2_4FGL_J2251.5-4928_daily_bin350.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/535716/ft2_4FGL_J2251.5-4928_daily_bin350.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/535716/ft1_filteredMKT_4FGL_J2251.5-4928_daily_bin350.fits evtable="EVENTS" outfile="/scratch/kocevski/535716/ft1_filtered_4FGL_J2251.5-4928_daily_bin350.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.51
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/535716/ft1_filtered_4FGL_J2251.5-4928_daily_bin350.fits" evtable="EVENTS" scfile=/scratch/kocevski/535716/ft2_4FGL_J2251.5-4928_daily_bin350.fits sctable="SC_DATA" outfile=/scratch/kocevski/535716/ltcube_330048001_330307201_4FGL_J2251.5-4928_daily_bin350.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/535716/ft2_4FGL_J2251.5-4928_daily_bin350.fits
.....................!
real 12.12
user 11.77
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/535716/ft1_filtered_4FGL_J2251.5-4928_daily_bin350.fits evtable="EVENTS" scfile=/scratch/kocevski/535716/ft2_4FGL_J2251.5-4928_daily_bin350.fits sctable="SC_DATA" expcube=/scratch/kocevski/535716/ltcube_330048001_330307201_4FGL_J2251.5-4928_daily_bin350.fits outfile=/scratch/kocevski/535716/expmap_330048001_330307201_4FGL_J2251.5-4928_daily_bin350.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/535716/ltcube_330048001_330307201_4FGL_J2251.5-4928_daily_bin350.fits
.....................!
real 190.52
user 185.18
sys 4.99

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

Setting source of interest to:
4FGL J2251.5-4928 @ 342.879 -49.4691

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/535716/ft1_filtered_4FGL_J2251.5-4928_daily_bin350.fits scfile=/scratch/kocevski/535716/ft2_4FGL_J2251.5-4928_daily_bin350.fits outfile=/scratch/kocevski/535716/cmap_330048001_330307201_4FGL_J2251.5-4928_daily_bin350.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=342.879 yref=-49.4691 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.53
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/535716/ft1_filtered_4FGL_J2251.5-4928_daily_bin350.fits scfile=/scratch/kocevski/535716/ft2_4FGL_J2251.5-4928_daily_bin350.fits outfile=/scratch/kocevski/535716/cmap_HighResolution_330048001_330307201_4FGL_J2251.5-4928_daily_bin350.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=342.879 yref=-49.4691 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.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/535716/ft1_filtered_4FGL_J2251.5-4928_daily_bin350.fits evtable="EVENTS" scfile=/scratch/kocevski/535716/ft2_4FGL_J2251.5-4928_daily_bin350.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/535716/Model_4FGL_J2251.5-4928_daily_bin350.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/535716/ft1_filtered_4FGL_J2251.5-4928_daily_bin350.fits.....................!
real 43.92
user 42.68
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/535716/ft1_filtered_4FGL_J2251.5-4928_daily_bin350.fits', '/scratch/kocevski/535716/ft2_4FGL_J2251.5-4928_daily_bin350.fits', expMap='/scratch/kocevski/535716/expmap_330048001_330307201_4FGL_J2251.5-4928_daily_bin350.fits', expCube='/scratch/kocevski/535716/ltcube_330048001_330307201_4FGL_J2251.5-4928_daily_bin350.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/535716/Model_4FGL_J2251.5-4928_daily_bin350.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2251.5-4928'

4FGL J2251.5-4928
   Spectrum: PowerLaw
403    Prefactor:  7.449e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
404        Index:  1.851e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
405        Scale:  2.716e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/535716/ft1_filtered_4FGL_J2251.5-4928_daily_bin350.fits
Spacecraft file(s): /scratch/kocevski/535716/ft2_4FGL_J2251.5-4928_daily_bin350.fits
Exposure map: /scratch/kocevski/535716/expmap_330048001_330307201_4FGL_J2251.5-4928_daily_bin350.fits
Exposure cube: /scratch/kocevski/535716/ltcube_330048001_330307201_4FGL_J2251.5-4928_daily_bin350.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/535716/Model_4FGL_J2251.5-4928_daily_bin350.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) = 5686.41096336

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    71.944       1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.0125       1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.940       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    19.895       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .72761       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    50.666       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    19.982       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    5.4336       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.0975       1.0000         .10000E-03   10000.    
    20 'Prefactor '    71.436       1.0000         .10000E-03   10000.    
    21 'norm      '    2.8384       1.0000         .10000E-03   10000.    
    22 'Prefactor '    47.824       1.0000         .10000E-03   10000.    
    23 'norm      '    15.561       1.0000         .10000E-03   10000.    
    24 'norm      '    3.6005       1.0000         .10000E-03   10000.    
    25 'Prefactor '    9.6814       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    46.341       1.0000         .10000E-03   10000.    
    28 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    7.6535       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.1641       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .74199       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5920E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5686.404     FROM MIGRAD    STATUS=CONVERGED    817 CALLS     4406 TOTAL
                     EDM=   .82E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     71.946        57.485        .15945E-05    .74741E-05
   2  Prefactor     8.0121        11.269       -.54422E-06    .37590E-05
   3  Prefactor     12.940        5.4062       -.39377E-07   -.91740E-05
   4  Prefactor     .10000E-03    42.700       -.62402E-05** at limit **
   5  norm          .10000E-03    3.0851        .31680E-07** at limit **
   6  Prefactor     .10000E-03    1.7925       -.10520E-06** at limit **
   7  Prefactor     19.894        27.099       -.54443E-06    .52320E-06
   8  Prefactor     .73559        5.0709       -.20825E-06   -.86908E-05
   9  Prefactor     .10000E-03    8.7931        .17083E-04** at limit **
  10  Prefactor     .10000E-03    19.537        .69955E-05** at limit **
  11  Prefactor     .10000E-03    5.4401        .10894E-05** at limit **
  12  Prefactor     50.666        63.104       -.40611E-06   -.79943E-05
  13  Prefactor     .10000E-03    6.7385       -.46409E-05** at limit **
  14  Prefactor     19.980        33.295       -.22438E-05   -.12780E-05
  15  Prefactor     .10000E-03    6.9374       -.50408E-06** at limit **
  16  norm          .10000E-03    10.017       -.22685E-05** at limit **
  17  norm          .10000E-03    2.4498        .51754E-07** at limit **
  18  norm          5.4337        6.0841        .21357E-06    .19779E-04
  19  Prefactor     1.0994        .82724        .48881E-07   -.79207E-03
  20  Prefactor     71.435        62.290       -.13940E-05    .25320E-04
  21  norm          2.8383        5.6629        .70585E-06    .33659E-04
  22  Prefactor     47.822        21.370       -.13541E-05    .91997E-04
  23  norm          15.561        2.6209        .10976E-06    .28765E-03
  24  norm          3.6005        4.3473        .43669E-06    .32094E-04
  25  Prefactor     9.6810        12.463       -.28130E-07   -.13540E-04
  26  Prefactor     .10000E-03    2.0965        .10021E-06** at limit **
  27  Prefactor     46.337        32.563       -.24619E-05    .10104E-03
  28  norm          .10000E-03    10.140       -.42188E-05** at limit **
  29  Prefactor     7.6535        6.2371        .23301E-07    .86443E-04
  30  Prefactor     .10000E-03    10.184       -.92803E-05** at limit **
  31  Normalizat    1.1642        .21016        .60101E-06    .13435E-03
  32  Prefactor     .74191        .18633        .45144E-07    .13113E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 71.9458
  Prefactor  = 8.01213
  Prefactor  = 12.9398
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.8943
  Prefactor  = 0.735592
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 50.6661
  Prefactor  = 0.0001
  Prefactor  = 19.9802
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 5.43368
  Prefactor  = 1.09942
  Prefactor  = 71.4348
  norm       = 2.83833
  Prefactor  = 47.8218
  norm       = 15.5612
  norm       = 3.60053
  Prefactor  = 9.68097
  Prefactor  = 0.0001
  Prefactor  = 46.3374
  norm       = 0.0001
  Prefactor  = 7.65348
  Prefactor  = 0.000100001
  Normalizat = 1.16419
  Prefactor  = 0.741906
 **********
 **   18 **HESSE 
 **********

 FCN=   5686.404     FROM HESSE     STATUS=OK           653 CALLS     5059 TOTAL
                     EDM=   .34E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     71.946        57.391        .47331E-04   -1.4010    
   2  Prefactor     8.0121        11.225        .14165E-03   -1.5142    
   3  Prefactor     12.940        5.4070        .10761E-03   -1.4988    
   4  Prefactor     .10000E-03    42.712        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    3.0908        .12935E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    1.8039        .98545E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     19.894        27.103        .89797E-04   -1.4816    
   8  Prefactor     .73559        10.168        .31571E-02   -1.5536    
   9  Prefactor     .10000E-03    8.8453        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    19.612        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    5.4658        .17174E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     50.666        63.097        .56341E-04   -1.4283    
  13  Prefactor     .10000E-03    6.8015        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     19.980        33.250        .89602E-04   -1.4814    
  15  Prefactor     .10000E-03    6.9552        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    10.049        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    2.4508        .11527E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          5.4337        6.1034        .17239E-03   -1.5242    
  19  Prefactor     1.0994        13.325        .21797E-02   -1.5498    
  20  Prefactor     71.435        62.054        .47497E-04   -1.4016    
  21  norm          2.8383        5.6050        .20699E-03   -1.5371    
  22  Prefactor     47.822        25.812        .57983E-04   -1.4324    
  23  norm          15.561        2.6279        .23477E-03   -1.4919    
  24  norm          3.6005        4.3341        .16511E-03   -1.5328    
  25  Prefactor     9.6810        12.465        .64395E-03   -1.5086    
  26  Prefactor     .10000E-03    2.1170        .10636E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     46.337        32.507        .58900E-04   -1.4345    
  28  norm          .10000E-03    10.147        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     7.6535        6.2404        .14495E-03   -1.5155    
  30  Prefactor     .10000E-03    10.435        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.1642        .25649        .25801E-03   -.87717    
  32  Prefactor     .74191        .22627        .29352E-03   -1.0191    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.41739e-08
Minuit parameter uncertainties:
  1  57.4347
  2  11.2276
  3  5.40718
  4  2.83236e-06
  5  4.30234e-07
  6  9.40192e-07
  7  27.1201
  8  5.47048
  9  1.70365e-06
  10  1.09558e-05
  11  2.9597e-06
  12  63.1808
  13  6.357e-06
  14  33.2812
  15  1.44537e-06
  16  6.19566e-06
  17  5.0083e-07
  18  6.10405
  19  7.65681
  20  62.1107
  21  5.60603
  22  25.818
  23  2.62788
  24  4.33448
  25  12.4688
  26  1.50436e-05
  27  32.5194
  28  9.64412e-07
  29  6.24094
  30  0.000160116
  31  0.256769
  32  0.226554
Done.

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

Extracting fit parameters...

4FGL J2251.5-4928
   Spectrum: PowerLaw
403    Prefactor:  1.998e+01  3.328e+01  1.000e-04  1.000e+04 ( 1.000e-14)
404        Index:  1.851e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
405        Scale:  2.716e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
589    Prefactor:  7.419e-01  2.266e-01  0.000e+00  1.000e+01 ( 1.000e+00)
590        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
591        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
588   Normalization:  1.164e+00  2.568e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.49
Ra Dec: 342.879 -49.469
Photon Flux Upper Limit: 6.01e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.45e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/535716/likelihoodResults_330048001_330307201_4FGL_J2251.5-4928_daily_bin350.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) = 5686.36562299
delta logL = 0.0385153370162

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5686.35227028
delta logL = 0.0518680438636

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.658       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1209       1.0000          .0000       10.000    
     3 'Normalizat'    1.1605       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74333       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5920E+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=   5686.352     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      263 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.655        34.690        .10462E-03    .13975E-03
   2  Index         2.1211        .96863        .84026E-02    .59647E-04
   3  Normalizat    1.1606        .23881        .25835E-03   -.23010E-03
   4  Prefactor     .74329        .22254        .29325E-03   -.23300E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.6551
  Index      = 2.12105
  Normalizat = 1.16056
  Prefactor  = 0.743287
 **********
 **   18 **HESSE 
 **********

 FCN=   5686.352     FROM HESSE     STATUS=OK            25 CALLS      288 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.655        30.887        .41846E-05   -1.4942    
   2  Index         2.1211        .86418        .33610E-03   -.61357    
   3  Normalizat    1.1606        .23895        .51669E-04   -.87831    
   4  Prefactor     .74329        .22267        .11730E-04   -1.0185    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.7584e-10
Minuit parameter uncertainties:
  1  30.9205
  2  0.870749
  3  0.23917
  4  0.222936
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/535716': 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) = 5686.35227024
delta logL = 0.0518680836494

Extracting fit parameters...

4FGL J2251.5-4928
   Spectrum: PowerLaw
403    Prefactor:  1.466e+01  3.092e+01  1.000e-04  1.000e+04 ( 1.000e-14)
404        Index:  2.121e+00  8.707e-01  0.000e+00  1.000e+01 (-1.000e+00)
405        Scale:  2.716e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
589    Prefactor:  7.433e-01  2.229e-01  0.000e+00  1.000e+01 ( 1.000e+00)
590        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
591        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
588   Normalization:  1.161e+00  2.392e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.49
Ra Dec: 342.879 -49.469

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/535716/cmap_HighResolution_330048001_330307201_4FGL_J2251.5-4928_daily_bin350.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.45e-03', job_status='DONE', photon_flux_upper_limit='6.01e-08', time_completed='2021-09-29 00:05:08.951969', job_id='535716', GAL2='0.74', fit_tolerance='1e-08', EG2='1.16', EG='1.16', time_epoch_completed='1632899108.95', return_code2='0', ts='0.49', comment='SUCCESS', return_code='0', GAL='0.74', dlogl='5.19e-02', ts2='0.59', photon_index_error='0.00', photon_index='1.85' WHERE bin_id='350' AND source_name='4FGL J2251.5-4928' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 00:05:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0252>
Subject: Job 535716: <4FGL_J2251.5-4928_daily_bin350> in cluster <slac> Done

Job <4FGL_J2251.5-4928_daily_bin350> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 23:50:31 2021
Job was executed on host(s) <bullet0252>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 23:50:33 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 23:50:33 2021
Terminated at Wed Sep 29 00:05:09 2021
Results reported at Wed Sep 29 00:05:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2251.5-4928_daily_bin350 342.879 -49.4691 330048001 330307201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2251.5-4928 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   853.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             330.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   876 sec.
    Turnaround time :                            878 sec.

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

