/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 25 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 = 7485
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2251.5-4928_daily_bin117
RA = 342.879, Dec = -49.4691
tmin = 269654401, tmax = 269913601
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='534397', job_status='RUN', time_executed='2021-09-28 23:46:31.377625', time_epoch_executed='1632897991.38' WHERE source_name='4FGL J2251.5-4928' and cadence='daily' and bin_id='117'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/534397

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/534397/ft1_4FGL_J2251.5-4928_daily_bin117.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/534397/ft2_4FGL_J2251.5-4928_daily_bin117.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/534397/ft1_4FGL_J2251.5-4928_daily_bin117.fits outfile=/scratch/kocevski/534397/ft1_filteredMKT_4FGL_J2251.5-4928_daily_bin117.fits ra=342.879 dec=-49.4691 rad=12.0 tmin=269654401.0 tmax=269913601.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.27
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/534397/ft1_filtered_4FGL_J2251.5-4928_daily_bin117.fits" evtable="EVENTS" scfile=/scratch/kocevski/534397/ft2_4FGL_J2251.5-4928_daily_bin117.fits sctable="SC_DATA" outfile=/scratch/kocevski/534397/ltcube_269654401_269913601_4FGL_J2251.5-4928_daily_bin117.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/534397/ft2_4FGL_J2251.5-4928_daily_bin117.fits
.....................!
real 12.33
user 11.98
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/534397/ft1_filtered_4FGL_J2251.5-4928_daily_bin117.fits evtable="EVENTS" scfile=/scratch/kocevski/534397/ft2_4FGL_J2251.5-4928_daily_bin117.fits sctable="SC_DATA" expcube=/scratch/kocevski/534397/ltcube_269654401_269913601_4FGL_J2251.5-4928_daily_bin117.fits outfile=/scratch/kocevski/534397/expmap_269654401_269913601_4FGL_J2251.5-4928_daily_bin117.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/534397/ltcube_269654401_269913601_4FGL_J2251.5-4928_daily_bin117.fits
.....................!
real 189.93
user 185.25
sys 4.35

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/534397/ft1_filtered_4FGL_J2251.5-4928_daily_bin117.fits scfile=/scratch/kocevski/534397/ft2_4FGL_J2251.5-4928_daily_bin117.fits outfile=/scratch/kocevski/534397/cmap_269654401_269913601_4FGL_J2251.5-4928_daily_bin117.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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/534397/ft1_filtered_4FGL_J2251.5-4928_daily_bin117.fits scfile=/scratch/kocevski/534397/ft2_4FGL_J2251.5-4928_daily_bin117.fits outfile=/scratch/kocevski/534397/cmap_HighResolution_269654401_269913601_4FGL_J2251.5-4928_daily_bin117.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.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10098E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.3531       1.0000         .10000E-03   10000.    
     4 'Prefactor '    100.86       1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.4035       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.3019       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.4491       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    19.489       1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    3.4406       1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.4815       1.0000         .10000E-03   10000.    
    20 'Prefactor '    26.065       1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    1.2046       1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    5.6009       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    1.5720       1.0000         .10000E-03   10000.    
    28 'norm      '    3.4338       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    11.089       1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.3923       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .71786       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=   5291.255     FROM MIGRAD    STATUS=CONVERGED    818 CALLS     4279 TOTAL
                     EDM=   .39E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    68.677       -.37645E-05** at limit **
   2  Prefactor     .10000E-03    7.2982       -.81897E-06** at limit **
   3  Prefactor     3.3531        4.0761        .30619E-06    .44202E-04
   4  Prefactor     100.82        108.92       -.46734E-05   -.11470E-03
   5  norm          .10000E-03    2.4897       -.67509E-07** at limit **
   6  Prefactor     2.4035        3.8038        .49316E-06    .10331E-03
   7  Prefactor     .10000E-03    14.240        .21934E-06** at limit **
   8  Prefactor     .10000E-03    2.4400        .74994E-08** at limit **
   9  Prefactor     .10000E-03    34.579        .23436E-05** at limit **
  10  Prefactor     2.3016        16.858        .82884E-06   -.13096E-04
  11  Prefactor     .10000E-03    4.7590       -.44432E-07** at limit **
  12  Prefactor     .10001E-03    29.343       -.43537E-05** at limit **
  13  Prefactor     2.4493        4.8126        .28558E-06   -.50133E-04
  14  Prefactor     .10001E-03    36.148        .46739E-05** at limit **
  15  Prefactor     19.489        20.435       -.36687E-07   -.13122E-04
  16  norm          .10000E-03    7.3850        .52560E-07** at limit **
  17  norm          .10000E-03    2.2277       -.25652E-08** at limit **
  18  norm          3.4405        3.7878       -.31402E-06   -.22248E-03
  19  Prefactor     9.4820        6.7661       -.32347E-07   -.26638E-04
  20  Prefactor     26.063        23.599       -.12437E-06   -.27155E-04
  21  norm          .10000E-03    1.6725       -.37890E-07** at limit **
  22  Prefactor     .10000E-03    6.1788        .22153E-07** at limit **
  23  norm          1.2042        1.0895       -.18582E-08   -.73743E-04
  24  norm          .10000E-03    1.0606        .70554E-08** at limit **
  25  Prefactor     5.5977        17.897       -.67864E-07   -.94527E-05
  26  Prefactor     .10000E-03    1.2952       -.64076E-07** at limit **
  27  Prefactor     1.5686        79.795        .93961E-06   -.14823E-04
  28  norm          3.4295        17.444        .93781E-05   -.19005E-03
  29  Prefactor     .10000E-03    5.0323       -.35815E-06** at limit **
  30  Prefactor     11.088        7.2283       -.28768E-07   -.12320E-04
  31  Normalizat    1.3925        .20738        .39317E-06   -.42966E-04
  32  Prefactor     .71769        .18771       -.71413E-06    .14719E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 3.35309
  Prefactor  = 100.818
  norm       = 0.0001
  Prefactor  = 2.4035
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 2.30157
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 2.44932
  Prefactor  = 0.000100005
  Prefactor  = 19.4893
  norm       = 0.0001
  norm       = 0.0001
  norm       = 3.4405
  Prefactor  = 9.48197
  Prefactor  = 26.0627
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.20421
  norm       = 0.0001
  Prefactor  = 5.5977
  Prefactor  = 0.0001
  Prefactor  = 1.56863
  norm       = 3.42953
  Prefactor  = 0.0001
  Prefactor  = 11.0883
  Normalizat = 1.39251
  Prefactor  = 0.717693
 **********
 **   18 **HESSE 
 **********

 FCN=   5291.255     FROM HESSE     STATUS=OK           651 CALLS     4930 TOTAL
                     EDM=   .89E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    69.360        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    7.3294        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.3531        4.0641        .15337E-03   -1.5342    
   4  Prefactor     100.82        110.88        .20016E-03   -1.3696    
   5  norm          .10000E-03    2.4908        .11209E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.4035        3.7985        .17004E-03   -1.5398    
   7  Prefactor     .10000E-03    14.243        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.4524        .11094E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    35.200        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.3016        16.814        .27048E-03   -1.5405    
  11  Prefactor     .10000E-03    4.7917        .15495E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10001E-03    30.482        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.4493        4.7905        .21707E-03   -1.5395    
  14  Prefactor     .10001E-03    37.499        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     19.489        20.443        .90725E-04   -1.4825    
  16  norm          .10000E-03    7.3964        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    2.2279        .10603E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          3.4405        3.7962        .14457E-03   -1.5337    
  19  Prefactor     9.4820        6.7615        .13015E-03   -1.5092    
  20  Prefactor     26.063        23.584        .78465E-04   -1.4686    
  21  norm          .10000E-03    1.6831        .91749E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    6.1867        .17654E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          1.2042        1.0597        .67902E-04   -1.5488    
  24  norm          .10000E-03    1.0609        .73160E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     5.5977        17.910        .16975E-03   -1.5235    
  26  Prefactor     .10000E-03    1.2998        .80744E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     1.5686        80.468        .33901E-03   -1.5457    
  28  norm          3.4295        18.707        .10914E-02   -1.5338    
  29  Prefactor     .10000E-03    5.1278        .15952E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     11.088        7.2167        .12031E-03   -1.5042    
  31  Normalizat    1.3925        .25473        .22407E-03   -.80845    
  32  Prefactor     .71769        .22864        .28190E-03   -1.0284    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.90289e-10
Minuit parameter uncertainties:
  1  0.000681049
  2  5.29118e-05
  3  4.06443
  4  111.106
  5  4.59455e-07
  6  3.79886
  7  1.92245e-05
  8  2.74704e-06
  9  0.000365856
  10  12.4464
  11  2.46553e-06
  12  0.000809712
  13  4.79122
  14  0.000898345
  15  20.4505
  16  3.27733e-06
  17  1.16256e-08
  18  3.79644
  19  6.762
  20  23.5922
  21  2.33621e-06
  22  2.49496e-06
  23  1.05969
  24  4.75748e-07
  25  17.9275
  26  2.5375e-06
  27  22.5013
  28  16.0271
  29  4.09458e-05
  30  7.21729
  31  0.254961
  32  0.228943
Done.

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

Extracting fit parameters...

4FGL J2251.5-4928
   Spectrum: PowerLaw
403    Prefactor:  1.000e-04  8.983e-04  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.177e-01  2.289e-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.393e+00  2.550e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/534397/likelihoodResults_269654401_269913601_4FGL_J2251.5-4928_daily_bin117.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) = 5291.25552912
delta logL = -0.000126980744426

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5291.25540224
delta logL = -9.26620487007e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10126E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9693       1.0000          .0000       10.000    
     3 'Normalizat'    1.3925       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71769       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=   5291.255     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      244 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.762        .90712E-02** at limit **
   2  Index         1.9493        8.8878        .50000        .38995E-05
   3  Normalizat    1.3925        .34286E-02    .50682E-01    .95488E-05
   4  Prefactor     .71769        .32275E-02    .63725E-01    .20829E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.94928
  Normalizat = 1.39252
  Prefactor  = 0.717692
 **********
 **   18 **HESSE 
 **********

 FCN=   5291.255     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      277 TOTAL
                     EDM=   .90E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    99.591        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9493        5.1318        .50000       -.65624    
   3  Normalizat    1.3925        .81095E-02    .22407E-03   -.80845    
   4  Prefactor     .71769        .76248E-02    .28190E-03   -1.0284    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.01229e-09
Minuit parameter uncertainties:
  1  0.000241342
  2  99.8331
  3  0.00810955
  4  0.00762484
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/534397': 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) = 5291.2554022
delta logL = -5.39475877304e-08

Extracting fit parameters...

4FGL J2251.5-4928
   Spectrum: PowerLaw
403    Prefactor:  1.000e-04  2.413e-04  1.000e-04  1.000e+04 ( 1.000e-14)
404        Index:  1.949e+00  9.983e+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.177e-01  7.625e-03  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.393e+00  8.110e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/534397/cmap_HighResolution_269654401_269913601_4FGL_J2251.5-4928_daily_bin117.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.38e-03', job_status='DONE', photon_flux_upper_limit='4.56e-08', time_completed='2021-09-28 23:59:54.319366', job_id='534397', GAL2='0.72', fit_tolerance='1e-08', EG2='1.39', EG='1.39', time_epoch_completed='1632898794.32', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.72', dlogl='-5.39e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.85' WHERE bin_id='117' AND source_name='4FGL J2251.5-4928' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 23:59:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0245>
Subject: Job 534397: <4FGL_J2251.5-4928_daily_bin117> in cluster <slac> Done

Job <4FGL_J2251.5-4928_daily_bin117> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 23:45:48 2021
Job was executed on host(s) <bullet0245>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 23:45:50 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:45:50 2021
Terminated at Tue Sep 28 23:59:55 2021
Results reported at Tue Sep 28 23:59:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2251.5-4928_daily_bin117 342.879 -49.4691 269654401 269913601 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 :                                   799.49 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             295.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   844 sec.
    Turnaround time :                            847 sec.

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

