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


Performing analysis on: 4FGL_J2251.5-4928_daily_bin1641
RA = 342.879, Dec = -49.4691
tmin = 664675201, tmax = 664934401
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='374014', job_status='RUN', time_executed='2022-01-27 00:42:54.206128', time_epoch_executed='1643272974.21' WHERE source_name='4FGL J2251.5-4928' and cadence='daily' and bin_id='1641'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/374014

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/374014/ft1_4FGL_J2251.5-4928_daily_bin1641.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/374014/ft2_4FGL_J2251.5-4928_daily_bin1641.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/374014/ft1_4FGL_J2251.5-4928_daily_bin1641.fits outfile=/scratch/kocevski/374014/ft1_filteredMKT_4FGL_J2251.5-4928_daily_bin1641.fits ra=342.879 dec=-49.4691 rad=12.0 tmin=664675201.0 tmax=664934401.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.71
user 3.49
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/374014/ft2_4FGL_J2251.5-4928_daily_bin1641.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/374014/ft1_filteredMKT_4FGL_J2251.5-4928_daily_bin1641.fits evtable="EVENTS" outfile="/scratch/kocevski/374014/ft1_filtered_4FGL_J2251.5-4928_daily_bin1641.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.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/374014/ft1_filtered_4FGL_J2251.5-4928_daily_bin1641.fits" evtable="EVENTS" scfile=/scratch/kocevski/374014/ft2_4FGL_J2251.5-4928_daily_bin1641.fits sctable="SC_DATA" outfile=/scratch/kocevski/374014/ltcube_664675201_664934401_4FGL_J2251.5-4928_daily_bin1641.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/374014/ft2_4FGL_J2251.5-4928_daily_bin1641.fits
.....................!
real 11.90
user 11.52
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/374014/ft1_filtered_4FGL_J2251.5-4928_daily_bin1641.fits evtable="EVENTS" scfile=/scratch/kocevski/374014/ft2_4FGL_J2251.5-4928_daily_bin1641.fits sctable="SC_DATA" expcube=/scratch/kocevski/374014/ltcube_664675201_664934401_4FGL_J2251.5-4928_daily_bin1641.fits outfile=/scratch/kocevski/374014/expmap_664675201_664934401_4FGL_J2251.5-4928_daily_bin1641.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/374014/ltcube_664675201_664934401_4FGL_J2251.5-4928_daily_bin1641.fits
.....................!
real 191.11
user 184.72
sys 5.97

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/374014/ft1_filtered_4FGL_J2251.5-4928_daily_bin1641.fits scfile=/scratch/kocevski/374014/ft2_4FGL_J2251.5-4928_daily_bin1641.fits outfile=/scratch/kocevski/374014/cmap_664675201_664934401_4FGL_J2251.5-4928_daily_bin1641.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/374014/ft1_filtered_4FGL_J2251.5-4928_daily_bin1641.fits scfile=/scratch/kocevski/374014/ft2_4FGL_J2251.5-4928_daily_bin1641.fits outfile=/scratch/kocevski/374014/cmap_HighResolution_664675201_664934401_4FGL_J2251.5-4928_daily_bin1641.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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/374014/ft1_filtered_4FGL_J2251.5-4928_daily_bin1641.fits evtable="EVENTS" scfile=/scratch/kocevski/374014/ft2_4FGL_J2251.5-4928_daily_bin1641.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/374014/Model_4FGL_J2251.5-4928_daily_bin1641.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/374014/ft1_filtered_4FGL_J2251.5-4928_daily_bin1641.fits.....................!
real 39.58
user 38.35
sys 1.12

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/374014/ft1_filtered_4FGL_J2251.5-4928_daily_bin1641.fits', '/scratch/kocevski/374014/ft2_4FGL_J2251.5-4928_daily_bin1641.fits', expMap='/scratch/kocevski/374014/expmap_664675201_664934401_4FGL_J2251.5-4928_daily_bin1641.fits', expCube='/scratch/kocevski/374014/ltcube_664675201_664934401_4FGL_J2251.5-4928_daily_bin1641.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/374014/Model_4FGL_J2251.5-4928_daily_bin1641.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/374014/ft1_filtered_4FGL_J2251.5-4928_daily_bin1641.fits
Spacecraft file(s): /scratch/kocevski/374014/ft2_4FGL_J2251.5-4928_daily_bin1641.fits
Exposure map: /scratch/kocevski/374014/expmap_664675201_664934401_4FGL_J2251.5-4928_daily_bin1641.fits
Exposure cube: /scratch/kocevski/374014/ltcube_664675201_664934401_4FGL_J2251.5-4928_daily_bin1641.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/374014/Model_4FGL_J2251.5-4928_daily_bin1641.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) = 4824.3531219

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.544       1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.8695       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    10.075       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.3974       1.0000         .10000E-03   10000.    
     9 'Prefactor '    23.702       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.1638       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    18.363       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    18.856       1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.2845       1.0000         .10000E-03   10000.    
    21 'norm      '    4.2282       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    1.4157       1.0000         .10000E-03   10000.    
    24 'norm      '    3.3903       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    4.6581       1.0000         .10000E-03   10000.    
    29 'Prefactor '    2.6607       1.0000         .10000E-03   10000.    
    30 'Prefactor '    2.2512       1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.1199       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.0816       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=   4824.348     FROM MIGRAD    STATUS=CONVERGED    808 CALLS     4260 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.532        50.620        .34612E-05   -.14631E-04
   2  Prefactor     4.8701        6.7252        .58043E-06   -.11154E-03
   3  Prefactor     .10000E-03    1.2488        .13750E-06** at limit **
   4  Prefactor     .10000E-03    33.367       -.25660E-05** at limit **
   5  norm          10.075        7.1035       -.11385E-06    .96352E-04
   6  Prefactor     .10000E-03    1.9370       -.12719E-06** at limit **
   7  Prefactor     .10000E-03    16.740        .60032E-07** at limit **
   8  Prefactor     1.3997        9.9253        .58519E-05    .38803E-03
   9  Prefactor     23.703        34.421        .73567E-06   -.57509E-05
  10  Prefactor     6.1887        48.457       -.97615E-05   -.82141E-04
  11  Prefactor     .10000E-03    8.3379        .12705E-05** at limit **
  12  Prefactor     .10000E-03    38.955        .29204E-05** at limit **
  13  Prefactor     .10000E-03    2.4364       -.36523E-07** at limit **
  14  Prefactor     18.358        34.405        .78251E-06   -.17584E-04
  15  Prefactor     .10000E-03    10.079        .19407E-06** at limit **
  16  norm          .10000E-03    5.2436       -.12522E-06** at limit **
  17  norm          .10000E-03    3.6424       -.10637E-07** at limit **
  18  norm          .10000E-03    2.2737        .15645E-08** at limit **
  19  Prefactor     18.858        9.6171        .11233E-06    .67853E-04
  20  Prefactor     4.2768        135.93        .77966E-05    .58349E-05
  21  norm          4.2282        4.9285       -.40485E-06   -.18604E-03
  22  Prefactor     .10000E-03    8.2191       -.55617E-06** at limit **
  23  norm          1.4158        1.4361        .11034E-06    .86972E-04
  24  norm          3.3902        4.7398       -.22497E-06   -.12866E-03
  25  Prefactor     .10000E-03    10.699        .57169E-06** at limit **
  26  Prefactor     .10000E-03    1.2118        .21641E-08** at limit **
  27  Prefactor     .10000E-03    7.0867        .71191E-06** at limit **
  28  norm          4.6537        54.640        .12445E-05    .13498E-05
  29  Prefactor     2.6616        6.7927       -.10858E-06   -.96604E-04
  30  Prefactor     2.2522        6.2986        .68801E-05   -.57400E-03
  31  Normalizat    1.1195        .23343       -.53157E-05   -.13850E-03
  32  Prefactor     1.0820        .20623        .33048E-05   -.81133E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.5319
  Prefactor  = 4.87012
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.0745
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.3997
  Prefactor  = 23.7026
  Prefactor  = 6.18871
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.3579
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 18.8582
  Prefactor  = 4.27683
  norm       = 4.22822
  Prefactor  = 0.0001
  norm       = 1.41582
  norm       = 3.39017
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.65365
  Prefactor  = 2.66159
  Prefactor  = 2.25222
  Normalizat = 1.11955
  Prefactor  = 1.08197
 **********
 **   18 **HESSE 
 **********

 FCN=   4824.348     FROM HESSE     STATUS=OK           657 CALLS     4917 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.532        50.516        .10159E-03   -1.4920    
   2  Prefactor     4.8701        6.7100        .91143E-03   -1.5267    
   3  Prefactor     .10000E-03    1.2519        .75810E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    33.219        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          10.075        7.1061        .63121E-03   -1.5073    
   6  Prefactor     .10000E-03    1.9720        .94389E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    16.742        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.3997        10.111        .36722E-03   -1.5471    
   9  Prefactor     23.703        34.476        .82277E-04   -1.4734    
  10  Prefactor     6.1887        49.550        .16170E-03   -1.5210    
  11  Prefactor     .10000E-03    8.3896        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    38.874        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.4387        .10588E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     18.358        34.382        .93465E-04   -1.4851    
  15  Prefactor     .10000E-03    10.103        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    5.2466        .15534E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    3.6462        .12943E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    2.2745        .10224E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     18.858        9.5984        .92235E-04   -1.4839    
  20  Prefactor     4.2768        132.29        .19464E-03   -1.5294    
  21  norm          4.2282        4.8531        .14021E-03   -1.5297    
  22  Prefactor     .10000E-03    8.2263        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          1.4158        1.4115        .78331E-04   -1.5470    
  24  norm          3.3902        4.7050        .16757E-03   -1.5340    
  25  Prefactor     .10000E-03    10.722        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    1.2156        .74643E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    7.0807        .18047E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          4.6537        52.712        .18647E-03   -1.5276    
  29  Prefactor     2.6616        6.6481        .20384E-03   -1.5382    
  30  Prefactor     2.2522        6.3733        .13693E-02   -1.5408    
  31  Normalizat    1.1195        .28044        .25215E-03   -.89127    
  32  Prefactor     1.0820        .25003        .24726E-03   -.90045    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.88426e-09
Minuit parameter uncertainties:
  1  50.6559
  2  6.71107
  3  8.89324e-06
  4  0.000120529
  5  7.10671
  6  9.82989e-06
  7  7.66019e-06
  8  7.52549
  9  34.5048
  10  35.0625
  11  0.000307007
  12  2.08573e-06
  13  2.30042e-06
  14  34.4189
  15  2.23264e-05
  16  1.66687e-06
  17  2.69049e-06
  18  1.55424e-07
  19  9.5992
  20  47.687
  21  4.85352
  22  6.17704e-06
  23  1.41151
  24  4.70549
  25  7.11122e-06
  26  4.20408e-07
  27  1.2215e-05
  28  31.3588
  29  6.64999
  30  6.37525
  31  0.280816
  32  0.250301
Done.

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

Extracting fit parameters...

4FGL J2251.5-4928
   Spectrum: PowerLaw
403    Prefactor:  1.836e+01  3.442e+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:  1.082e+00  2.503e-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.120e+00  2.808e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/374014/likelihoodResults_664675201_664934401_4FGL_J2251.5-4928_daily_bin1641.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) = 4824.27872477
delta logL = 0.0689883451214

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4824.27605353
delta logL = 0.0716595852491

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    25.321       1.0000         .10000E-03   10000.    
     2 'Index     '    1.5342       1.0000          .0000       10.000    
     3 'Normalizat'    1.1237       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0789       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=   4824.276     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      303 TOTAL
                     EDM=   .63E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     25.322        43.147        .79608E-04   -.18348E-03
   2  Index         1.5342        .78361        .11929E-01   -.10099E-03
   3  Normalizat    1.1238        .24942        .25172E-03    .49319E-04
   4  Prefactor     1.0788        .24234        .24753E-03    .65034E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 25.3219
  Index      = 1.53419
  Normalizat = 1.12381
  Prefactor  = 1.07882
 **********
 **   18 **HESSE 
 **********

 FCN=   4824.276     FROM HESSE     STATUS=OK            23 CALLS      326 TOTAL
                     EDM=   .68E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     25.322        42.811        .15922E-04   -1.4701    
   2  Index         1.5342        .77787        .47717E-03   -.76587    
   3  Normalizat    1.1238        .24968        .10069E-04   -.88991    
   4  Prefactor     1.0788        .24262        .99013E-05   -.90146    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.84192e-10
Minuit parameter uncertainties:
  1  42.8634
  2  0.784043
  3  0.249947
  4  0.242863
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/374014': 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) = 4824.27605343
delta logL = 0.0716596901348

Extracting fit parameters...

4FGL J2251.5-4928
   Spectrum: PowerLaw
403    Prefactor:  2.532e+01  4.286e+01  1.000e-04  1.000e+04 ( 1.000e-14)
404        Index:  1.534e+00  7.840e-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:  1.079e+00  2.429e-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.124e+00  2.499e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.41
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/374014/cmap_HighResolution_664675201_664934401_4FGL_J2251.5-4928_daily_bin1641.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.81e-03', job_status='DONE', photon_flux_upper_limit='6.49e-08', time_completed='2022-01-27 00:55:55.624354', job_id='374014', GAL2='1.08', fit_tolerance='1e-08', EG2='1.12', EG='1.12', time_epoch_completed='1643273755.62', return_code2='0', ts='0.41', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='7.17e-02', ts2='0.55', photon_index_error='0.00', photon_index='1.85' WHERE bin_id='1641' AND source_name='4FGL J2251.5-4928' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Jan 27 00:55:55 PST 2022


------------------------------------------------------------
Sender: LSF System <scs@bullet0139>
Subject: Job 374014: <4FGL_J2251.5-4928_daily_bin1641> in cluster <slac> Done

Job <4FGL_J2251.5-4928_daily_bin1641> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Jan 27 00:40:39 2022
Job was executed on host(s) <bullet0139>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Jan 27 00:40:41 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Jan 27 00:40:41 2022
Terminated at Thu Jan 27 00:55:56 2022
Results reported at Thu Jan 27 00:55:56 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2251.5-4928_daily_bin1641 342.879 -49.4691 664675201 664934401 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 :                                   775.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             307.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   914 sec.
    Turnaround time :                            917 sec.

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

