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


Performing analysis on: 4FGL_J2251.5-4928_daily_bin1046
RA = 342.879, Dec = -49.4691
tmin = 510451201, tmax = 510710401
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='551144', job_status='RUN', time_executed='2021-09-29 00:36:07.772556', time_epoch_executed='1632900967.77' WHERE source_name='4FGL J2251.5-4928' and cadence='daily' and bin_id='1046'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/551144

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/551144/ft1_4FGL_J2251.5-4928_daily_bin1046.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/551144/ft2_4FGL_J2251.5-4928_daily_bin1046.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/551144/ft1_4FGL_J2251.5-4928_daily_bin1046.fits outfile=/scratch/kocevski/551144/ft1_filteredMKT_4FGL_J2251.5-4928_daily_bin1046.fits ra=342.879 dec=-49.4691 rad=12.0 tmin=510451201.0 tmax=510710401.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.95
user 3.71
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/551144/ft1_filtered_4FGL_J2251.5-4928_daily_bin1046.fits" evtable="EVENTS" scfile=/scratch/kocevski/551144/ft2_4FGL_J2251.5-4928_daily_bin1046.fits sctable="SC_DATA" outfile=/scratch/kocevski/551144/ltcube_510451201_510710401_4FGL_J2251.5-4928_daily_bin1046.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/551144/ft2_4FGL_J2251.5-4928_daily_bin1046.fits
.....................!
real 11.99
user 11.62
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/551144/ft1_filtered_4FGL_J2251.5-4928_daily_bin1046.fits evtable="EVENTS" scfile=/scratch/kocevski/551144/ft2_4FGL_J2251.5-4928_daily_bin1046.fits sctable="SC_DATA" expcube=/scratch/kocevski/551144/ltcube_510451201_510710401_4FGL_J2251.5-4928_daily_bin1046.fits outfile=/scratch/kocevski/551144/expmap_510451201_510710401_4FGL_J2251.5-4928_daily_bin1046.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/551144/ltcube_510451201_510710401_4FGL_J2251.5-4928_daily_bin1046.fits
.....................!
real 190.77
user 185.50
sys 4.96

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/551144/ft1_filtered_4FGL_J2251.5-4928_daily_bin1046.fits scfile=/scratch/kocevski/551144/ft2_4FGL_J2251.5-4928_daily_bin1046.fits outfile=/scratch/kocevski/551144/cmap_510451201_510710401_4FGL_J2251.5-4928_daily_bin1046.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/551144/ft1_filtered_4FGL_J2251.5-4928_daily_bin1046.fits scfile=/scratch/kocevski/551144/ft2_4FGL_J2251.5-4928_daily_bin1046.fits outfile=/scratch/kocevski/551144/cmap_HighResolution_510451201_510710401_4FGL_J2251.5-4928_daily_bin1046.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.53
user 0.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/551144/ft1_filtered_4FGL_J2251.5-4928_daily_bin1046.fits evtable="EVENTS" scfile=/scratch/kocevski/551144/ft2_4FGL_J2251.5-4928_daily_bin1046.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/551144/Model_4FGL_J2251.5-4928_daily_bin1046.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/551144/ft1_filtered_4FGL_J2251.5-4928_daily_bin1046.fits.....................!
real 43.14
user 41.87
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.8166       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .21556E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10700E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.2820       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    23.432       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .15618       1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.081       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10389E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10157E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    20.903       1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.5041       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    3.6755       1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.4361       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .12082E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    5.1373       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10372E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    10.299       1.0000         .10000E-03   10000.    
    26 'Prefactor '    7.8933       1.0000         .10000E-03   10000.    
    27 'Prefactor '    2.3272       1.0000         .10000E-03   10000.    
    28 'norm      '    10.242       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .11372E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .71987       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.0837       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=   5772.289     FROM MIGRAD    STATUS=CONVERGED    899 CALLS     4426 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    73.234       -.25679E-05** at limit **
   2  Prefactor     5.8167        8.9813       -.18342E-08   -.13302E-04
   3  Prefactor     .10000E-03    1.9650        .85074E-07** at limit **
   4  Prefactor     .10000E-03    77.521        .25243E-06** at limit **
   5  norm          .10000E-03    8.4201       -.23544E-07** at limit **
   6  Prefactor     4.2817        4.1804        .11549E-06    .74202E-04
   7  Prefactor     .10000E-03    31.547       -.76453E-06** at limit **
   8  Prefactor     23.430        9.0821        .95132E-07    .49997E-04
   9  Prefactor     .60713E-01    17.870       -.12333E-05    .19192E-03
  10  Prefactor     11.086        25.708       -.60804E-06   -.42715E-04
  11  Prefactor     .10000E-03    4.2150       -.28432E-06** at limit **
  12  Prefactor     .10000E-03    26.042        .19437E-06** at limit **
  13  Prefactor     20.908        10.362        .24025E-08    .10383E-03
  14  Prefactor     9.5017        37.168       -.64640E-07   -.62601E-05
  15  Prefactor     .10000E-03    5.0305        .22833E-07** at limit **
  16  norm          .10000E-03    3.3941        .79698E-08** at limit **
  17  norm          .10000E-03    6.0230       -.40127E-08** at limit **
  18  norm          3.6765        3.7275       -.26798E-06   -.18209E-05
  19  Prefactor     9.4299        6.7064        .25696E-07   -.19247E-04
  20  Prefactor     .10000E-03    41.203        .61934E-06** at limit **
  21  norm          5.1343        4.0207        .11610E-05    .89192E-04
  22  Prefactor     .10000E-03    9.7317        .12890E-08** at limit **
  23  norm          .10000E-03    .38277        .94920E-08** at limit **
  24  norm          .10000E-03    2.3837       -.94852E-07** at limit **
  25  Prefactor     10.308        14.301        .30175E-06    .34823E-04
  26  Prefactor     7.8970        4.3560        .10851E-06    .21057E-03
  27  Prefactor     2.3242        31.547        .10741E-05    .44463E-05
  28  norm          10.300        22.132       -.18086E-05   -.86502E-04
  29  Prefactor     .10000E-03    7.9409       -.26363E-05** at limit **
  30  Prefactor     .10000E-03    1.1799        .57345E-08** at limit **
  31  Normalizat    .71999        .19389       -.54155E-06    .10049E-03
  32  Prefactor     1.0837        .17630       -.32537E-07    .77679E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 5.81667
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.28169
  Prefactor  = 0.0001
  Prefactor  = 23.43
  Prefactor  = 0.0607131
  Prefactor  = 11.0859
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.9082
  Prefactor  = 9.50173
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 3.67654
  Prefactor  = 9.4299
  Prefactor  = 0.0001
  norm       = 5.13435
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 10.3078
  Prefactor  = 7.89704
  Prefactor  = 2.32423
  norm       = 10.2998
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.719992
  Prefactor  = 1.0837
 **********
 **   18 **HESSE 
 **********

 FCN=   5772.289     FROM HESSE     STATUS=OK           669 CALLS     5095 TOTAL
                     EDM=   .78E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    74.325        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     5.8167        8.8985        .16652E-03   -1.5226    
   3  Prefactor     .10000E-03    13.157        .20114E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    77.560        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    8.7780        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.2817        4.1749        .14347E-03   -1.5294    
   7  Prefactor     .10000E-03    31.632        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     23.430        9.0798        .82749E-04   -1.4739    
   9  Prefactor     .60713E-01    22.458        .92445E-01   -1.5659    
  10  Prefactor     11.086        25.775        .12035E-03   -1.5042    
  11  Prefactor     .10000E-03    4.2224        .15203E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    26.052        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     20.908        10.364        .87605E-04   -1.4793    
  14  Prefactor     9.5017        37.135        .12999E-03   -1.5091    
  15  Prefactor     .10000E-03    5.0462        .16640E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    3.3949        .13670E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    6.1479        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          3.6765        3.7355        .14165E-03   -1.5324    
  19  Prefactor     9.4299        6.5732        .13046E-03   -1.5094    
  20  Prefactor     .10000E-03    41.408        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          5.1343        4.0775        .64825E-03   -1.5255    
  22  Prefactor     .10000E-03    9.7753        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    .49194        .89370E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    2.4193        .11455E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     10.308        14.331        .12486E-03   -1.5066    
  26  Prefactor     7.8970        4.3143        .10163E-03   -1.5146    
  27  Prefactor     2.3242        30.855        .26884E-03   -1.5403    
  28  norm          10.300        22.376        .12520E-03   -1.5066    
  29  Prefactor     .10000E-03    7.8605        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    1.1818        .80586E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .71999        .22451        .26836E-03   -1.0311    
  32  Prefactor     1.0837        .20516        .22242E-03   -.89989    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.75677e-10
Minuit parameter uncertainties:
  1  0.000583388
  2  8.90051
  3  6.03823e-05
  4  0.000111603
  5  3.4645e-06
  6  4.17517
  7  0.000127268
  8  9.08034
  9  2.33436
  10  25.8011
  11  2.97204e-06
  12  4.42593e-05
  13  10.3652
  14  37.2259
  15  1.4786e-06
  16  2.60073e-08
  17  8.06654e-07
  18  3.73572
  19  6.57367
  20  8.23027e-06
  21  4.07772
  22  7.50562e-07
  23  1.09844e-07
  24  1.17425e-05
  25  14.3359
  26  4.31446
  27  16.9473
  28  22.3941
  29  4.23534e-05
  30  1.30792e-07
  31  0.224794
  32  0.205308
Done.

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

Extracting fit parameters...

4FGL J2251.5-4928
   Spectrum: PowerLaw
403    Prefactor:  9.502e+00  3.723e+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.084e+00  2.053e-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:  7.200e-01  2.248e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/551144/likelihoodResults_510451201_510710401_4FGL_J2251.5-4928_daily_bin1046.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) = 5771.34268346
delta logL = 0.946023959098

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5771.32019222
delta logL = 0.968515194972

Fit tolerance = 1e-08

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

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

 FCN=   5771.320     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      261 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .19454        2.1473        .57378E-02    .16256E-02
   2  Index         4.2105        1.6831        .87289E-01    .18795E-03
   3  Normalizat    .63788        .37949E-01    .64066E-01    .23262E-04
   4  Prefactor     1.1364        .37942E-01    .36345E-01   -.25704E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.194543
  Index      = 4.21052
  Normalizat = 0.637882
  Prefactor  = 1.13638
 **********
 **   18 **HESSE 
 **********

 FCN=   5771.320     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      296 TOTAL
                     EDM=   .63E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .19454        5.9371        .26068E-03   -1.5620    
   2  Index         4.2105        3.3778        .30933E-02   -.15856    
   3  Normalizat    .63788        .15340        .28346E-03   -1.0640    
   4  Prefactor     1.1364        .15159        .21761E-03   -.88312    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.31937e-08
Minuit parameter uncertainties:
  1  2.14913
  2  3.7199
  3  0.153501
  4  0.151652
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/551144': 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) = 5771.32019143
delta logL = 0.9685159882

Extracting fit parameters...

4FGL J2251.5-4928
   Spectrum: PowerLaw
403    Prefactor:  1.945e-01  2.149e+00  1.000e-04  1.000e+04 ( 1.000e-14)
404        Index:  4.211e+00  3.720e+00  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.136e+00  1.517e-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:  6.379e-01  1.535e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.15
Ra Dec: 342.879 -49.469
Photon Index (Free Index): 4.21 +/- 3.72
Photon Flux (Free Index): 6.64e-08 +/- 5.10e-08
Energy Flux (Free Index): 9.62e-06 +/- 8.38e-06

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/551144/cmap_HighResolution_510451201_510710401_4FGL_J2251.5-4928_daily_bin1046.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.37e-03', comment='SUCCESS', energy_flux2='9.62e-06', dlogl='9.69e-01', photon_flux2='6.64e-08', job_status='DONE', time_completed='2021-09-29 00:50:53.530495', photon_index_error2='3.72', photon_index2='4.21', ts='0.07', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', photon_flux_upper_limit='5.90e-08', energy_flux_error2='8.38e-06', EG='0.72', time_epoch_completed='1632901853.53', return_code='0', job_id='551144', GAL2='1.14', EG2='0.64', return_code2='102', photon_flux_error2='5.10e-08', ts2='2.15', photon_index='1.85' WHERE bin_id='1046' AND source_name='4FGL J2251.5-4928' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 00:50:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0111>
Subject: Job 551144: <4FGL_J2251.5-4928_daily_bin1046> in cluster <slac> Done

Job <4FGL_J2251.5-4928_daily_bin1046> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 00:35:18 2021
Job was executed on host(s) <bullet0111>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 00:35:20 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 00:35:20 2021
Terminated at Wed Sep 29 00:50:54 2021
Results reported at Wed Sep 29 00:50:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2251.5-4928_daily_bin1046 342.879 -49.4691 510451201 510710401 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 :                                   872.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             302.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   933 sec.
    Turnaround time :                            936 sec.

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

