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


Performing analysis on: 4FGL_J2251.5-4928_daily_bin1274
RA = 342.879, Dec = -49.4691
tmin = 569548801, tmax = 569808001
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='552679', job_status='RUN', time_executed='2021-09-29 00:41:17.733791', time_epoch_executed='1632901277.73' WHERE source_name='4FGL J2251.5-4928' and cadence='daily' and bin_id='1274'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/552679

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/552679/ft1_4FGL_J2251.5-4928_daily_bin1274.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/552679/ft2_4FGL_J2251.5-4928_daily_bin1274.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/552679/ft1_4FGL_J2251.5-4928_daily_bin1274.fits outfile=/scratch/kocevski/552679/ft1_filteredMKT_4FGL_J2251.5-4928_daily_bin1274.fits ra=342.879 dec=-49.4691 rad=12.0 tmin=569548801.0 tmax=569808001.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 2.88
user 2.68
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/552679/ft1_filtered_4FGL_J2251.5-4928_daily_bin1274.fits" evtable="EVENTS" scfile=/scratch/kocevski/552679/ft2_4FGL_J2251.5-4928_daily_bin1274.fits sctable="SC_DATA" outfile=/scratch/kocevski/552679/ltcube_569548801_569808001_4FGL_J2251.5-4928_daily_bin1274.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/552679/ft2_4FGL_J2251.5-4928_daily_bin1274.fits
.....................!
real 9.51
user 9.18
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/552679/ft1_filtered_4FGL_J2251.5-4928_daily_bin1274.fits evtable="EVENTS" scfile=/scratch/kocevski/552679/ft2_4FGL_J2251.5-4928_daily_bin1274.fits sctable="SC_DATA" expcube=/scratch/kocevski/552679/ltcube_569548801_569808001_4FGL_J2251.5-4928_daily_bin1274.fits outfile=/scratch/kocevski/552679/expmap_569548801_569808001_4FGL_J2251.5-4928_daily_bin1274.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/552679/ltcube_569548801_569808001_4FGL_J2251.5-4928_daily_bin1274.fits
.....................!
real 149.71
user 145.69
sys 3.77

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/552679/ft1_filtered_4FGL_J2251.5-4928_daily_bin1274.fits scfile=/scratch/kocevski/552679/ft2_4FGL_J2251.5-4928_daily_bin1274.fits outfile=/scratch/kocevski/552679/cmap_569548801_569808001_4FGL_J2251.5-4928_daily_bin1274.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.44
user 0.28
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/552679/ft1_filtered_4FGL_J2251.5-4928_daily_bin1274.fits scfile=/scratch/kocevski/552679/ft2_4FGL_J2251.5-4928_daily_bin1274.fits outfile=/scratch/kocevski/552679/cmap_HighResolution_569548801_569808001_4FGL_J2251.5-4928_daily_bin1274.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.45
user 0.30
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/552679/ft1_filtered_4FGL_J2251.5-4928_daily_bin1274.fits evtable="EVENTS" scfile=/scratch/kocevski/552679/ft2_4FGL_J2251.5-4928_daily_bin1274.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/552679/Model_4FGL_J2251.5-4928_daily_bin1274.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/552679/ft1_filtered_4FGL_J2251.5-4928_daily_bin1274.fits.....................!
real 33.06
user 31.93
sys 1.07

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.4885       1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.8539       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.2347       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.1715       1.0000         .10000E-03   10000.    
     9 'Prefactor '    21.991       1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.136       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.7197       1.0000         .10000E-03   10000.    
    14 'Prefactor '    13.521       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.2076       1.0000         .10000E-03   10000.    
    16 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    10.080       1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.6755       1.0000         .10000E-03   10000.    
    20 'Prefactor '    44.069       1.0000         .10000E-03   10000.    
    21 'norm      '    6.4453       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .77339       1.0000         .10000E-03   10000.    
    24 'norm      '    .43260E-02   1.0000         .10000E-03   10000.    
    25 'Prefactor '    2.1029       1.0000         .10000E-03   10000.    
    26 'Prefactor '    4.2086       1.0000         .10000E-03   10000.    
    27 'Prefactor '    14.916       1.0000         .10000E-03   10000.    
    28 'norm      '    .62521E-01   1.0000         .10000E-03   10000.    
    29 'Prefactor '    5.8738       1.0000         .10000E-03   10000.    
    30 'Prefactor '    1.4928       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .81202       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.0602       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=   5622.953     FROM MIGRAD    STATUS=CONVERGED    890 CALLS     4431 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.495       -.12045E-06** at limit **
   2  Prefactor     6.4885        8.0388        .57478E-07   -.71730E-04
   3  Prefactor     5.8537        4.6023        .82885E-07   -.13517E-03
   4  Prefactor     .10000E-03    92.821       -.54104E-06** at limit **
   5  norm          .10000E-03    3.0322        .11383E-08** at limit **
   6  Prefactor     1.2352        2.9631        .31490E-06   -.21544E-03
   7  Prefactor     .10000E-03    15.181        .18717E-06** at limit **
   8  Prefactor     7.1722        5.7198       -.19546E-06   -.28381E-03
   9  Prefactor     21.993        18.377       -.57654E-06   -.11437E-03
  10  Prefactor     11.145        27.838       -.13457E-05   -.16100E-03
  11  Prefactor     .10000E-03    10.812        .27660E-05** at limit **
  12  Prefactor     .10000E-03    33.595       -.67768E-07** at limit **
  13  Prefactor     3.7209        7.1361        .13566E-05    .20980E-03
  14  Prefactor     13.521        31.313       -.20976E-06   -.31136E-04
  15  Prefactor     2.2102        27.561       -.45645E-05   -.19518E-03
  16  norm          .10000E-03    10.975       -.60311E-06** at limit **
  17  norm          .10000E-03    1.8023       -.28129E-07** at limit **
  18  norm          10.083        6.8560        .43394E-08    .70240E-04
  19  Prefactor     5.6766        5.3035       -.12610E-06   -.57768E-05
  20  Prefactor     43.983        44.391        .11685E-05    .14033E-03
  21  norm          6.4415        5.8324       -.19177E-06    .68853E-05
  22  Prefactor     .10000E-03    11.431       -.22903E-05** at limit **
  23  norm          .77335        .78851       -.62643E-08    .38847E-03
  24  norm          .17197E-01    2.3978       -.25390E-06    .19903E-03
  25  Prefactor     2.0969        25.999        .42405E-05    .83833E-04
  26  Prefactor     4.2088        3.2884        .13192E-05   -.22041E-02
  27  Prefactor     14.918        20.001       -.14463E-05   -.34168E-04
  28  norm          .10079E-03    13.278       -.42476E-06** at limit **
  29  Prefactor     5.8803        5.5026       -.48138E-06   -.12533E-03
  30  Prefactor     1.4931        2.9942        .11007E-06   -.12676E-03
  31  Normalizat    .81177        .19714        .15685E-06    .21711E-05
  32  Prefactor     1.0604        .17875       -.40608E-06    .50435E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 6.48849
  Prefactor  = 5.85366
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.23517
  Prefactor  = 0.0001
  Prefactor  = 7.17222
  Prefactor  = 21.9932
  Prefactor  = 11.1449
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 3.72087
  Prefactor  = 13.5213
  Prefactor  = 2.21019
  norm       = 0.0001
  norm       = 0.0001
  norm       = 10.0832
  Prefactor  = 5.67657
  Prefactor  = 43.9829
  norm       = 6.44147
  Prefactor  = 0.000100001
  norm       = 0.773354
  norm       = 0.0171972
  Prefactor  = 2.09693
  Prefactor  = 4.20884
  Prefactor  = 14.9179
  norm       = 0.000100794
  Prefactor  = 5.88032
  Prefactor  = 1.49309
  Normalizat = 0.811769
  Prefactor  = 1.06042
 **********
 **   18 **HESSE 
 **********

 FCN=   5622.953     FROM HESSE     STATUS=OK           683 CALLS     5114 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    17.513        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     6.4885        8.0285        .15755E-03   -1.5198    
   3  Prefactor     5.8537        4.5968        .13387E-03   -1.5224    
   4  Prefactor     .10000E-03    92.903        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    3.0357        .12752E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.2352        2.9262        .19107E-03   -1.5486    
   7  Prefactor     .10000E-03    15.191        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     7.1722        5.7130        .14977E-03   -1.5172    
   9  Prefactor     21.993        18.430        .85415E-04   -1.4770    
  10  Prefactor     11.145        28.195        .12005E-03   -1.5040    
  11  Prefactor     .10000E-03    11.425        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    33.602        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.7209        7.1392        .20937E-03   -1.5322    
  14  Prefactor     13.521        31.297        .10893E-03   -1.4972    
  15  Prefactor     2.2102        28.957        .27686E-03   -1.5411    
  16  norm          .10000E-03    11.075        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    1.8024        .98308E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          10.083        6.8738        .12621E-03   -1.5073    
  19  Prefactor     5.6766        5.2815        .15842E-03   -1.5231    
  20  Prefactor     43.983        44.577        .60392E-04   -1.4381    
  21  norm          6.4415        5.8597        .14350E-03   -1.5200    
  22  Prefactor     .10000E-03    11.624        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .77335        .77694        .63193E-04   -1.5532    
  24  norm          .17197E-01    4.2260        .40163E-01   -1.5682    
  25  Prefactor     2.0969        26.059        .28456E-03   -1.5418    
  26  Prefactor     4.2088        3.8365        .61812E-03   -1.5298    
  27  Prefactor     14.918        20.114        .10370E-03   -1.4935    
  28  norm          .10079E-03    19.431        .99317E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     5.8803        5.5388        .15256E-03   -1.5223    
  30  Prefactor     1.4931        2.9536        .17809E-03   -1.5464    
  31  Normalizat    .81177        .22995        .25987E-03   -.99634    
  32  Prefactor     1.0604        .20829        .22923E-03   -.90742    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.26419e-09
Minuit parameter uncertainties:
  1  1.73063e-05
  2  8.02987
  3  4.59706
  4  0.000142962
  5  1.22546e-06
  6  2.92649
  7  2.13324e-05
  8  5.71345
  9  18.4348
  10  28.2287
  11  0.000365556
  12  1.01515e-06
  13  7.14082
  14  31.3354
  15  16.0092
  16  6.39149e-05
  17  1.08925e-06
  18  6.87431
  19  5.28193
  20  44.6112
  21  5.86019
  22  0.000225947
  23  0.77695
  24  0.537635
  25  14.7919
  26  3.83668
  27  20.1227
  28  0.00785909
  29  5.53925
  30  2.95388
  31  0.230228
  32  0.208445
Done.

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

Extracting fit parameters...

4FGL J2251.5-4928
   Spectrum: PowerLaw
403    Prefactor:  1.352e+01  3.134e+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.060e+00  2.084e-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:  8.118e-01  2.302e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/552679/likelihoodResults_569548801_569808001_4FGL_J2251.5-4928_daily_bin1274.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) = 5622.32752406
delta logL = 0.625063740138

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5622.12630619
delta logL = 0.826281617287

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    6.6900       1.0000          .0000       10.000    
     3 'Normalizat'    .71329       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1303       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=   5622.126     FROM MIGRAD    STATUS=CONVERGED    295 CALLS      776 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .22946E-02    .34854E-03** at limit **
   2  Index         6.6918        1.6796        .85941E-01    .14361E-03
   3  Normalizat    .71339        .40804E-01    .62356E-01    .25151E-03
   4  Prefactor     1.1302        .40017E-01    .36535E-01    .40799E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 6.69178
  Normalizat = 0.713392
  Prefactor  = 1.13016
 **********
 **   18 **HESSE 
 **********

 FCN=   5622.126     FROM HESSE     STATUS=NOT POSDEF    39 CALLS      815 TOTAL
                     EDM=   .23E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .27964E-01    .13481E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         6.6918        3.1172        .31636E-02    .34517    
   3  Normalizat    .71339        .10783        .27584E-03   -1.0337    
   4  Prefactor     1.1302        .10645        .22299E-03   -.88508    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.29102e-07
Minuit parameter uncertainties:
  1  2.04089e-06
  2  3.40726
  3  0.107865
  4  0.106469
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/552679': 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) = 5622.12628851
delta logL = 0.826299296275

Extracting fit parameters...

4FGL J2251.5-4928
   Spectrum: PowerLaw
403    Prefactor:  1.000e-04  2.041e-06  1.000e-04  1.000e+04 ( 1.000e-14)
404        Index:  6.692e+00  3.407e+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.130e+00  1.065e-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.134e-01  1.079e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.09
Ra Dec: 342.879 -49.469
Photon Index (Free Index): 6.69 +/- 3.41
Photon Flux (Free Index): 7.02e-08 +/- 7.37e-07
Energy Flux (Free Index): 8.48e-06 +/- 8.83e-05

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/552679/cmap_HighResolution_569548801_569808001_4FGL_J2251.5-4928_daily_bin1274.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.17e-03', comment='SUCCESS', energy_flux2='8.48e-06', dlogl='8.26e-01', photon_flux2='7.02e-08', job_status='DONE', time_completed='2021-09-29 00:53:47.864625', photon_index_error2='3.41', photon_index2='6.69', ts='0.24', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', photon_flux_upper_limit='5.64e-08', energy_flux_error2='8.83e-05', EG='0.81', time_epoch_completed='1632902027.86', return_code='0', job_id='552679', GAL2='1.13', EG2='0.71', return_code2='102', photon_flux_error2='7.37e-07', ts2='2.09', photon_index='1.85' WHERE bin_id='1274' AND source_name='4FGL J2251.5-4928' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 00:53:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0071>
Subject: Job 552679: <4FGL_J2251.5-4928_daily_bin1274> in cluster <slac> Done

Job <4FGL_J2251.5-4928_daily_bin1274> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 00:40:17 2021
Job was executed on host(s) <bullet0071>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 00:40:19 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:40:19 2021
Terminated at Wed Sep 29 00:53:48 2021
Results reported at Wed Sep 29 00:53:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2251.5-4928_daily_bin1274 342.879 -49.4691 569548801 569808001 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 :                                   702.16 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             259.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   809 sec.
    Turnaround time :                            811 sec.

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

