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


Performing analysis on: 4FGL_J2251.5-4928_daily_bin990
RA = 342.879, Dec = -49.4691
tmin = 495936001, tmax = 496195201
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='549872', job_status='RUN', time_executed='2021-09-29 00:33:59.664283', time_epoch_executed='1632900839.66' WHERE source_name='4FGL J2251.5-4928' and cadence='daily' and bin_id='990'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/549872

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/549872/ft1_4FGL_J2251.5-4928_daily_bin990.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/549872/ft2_4FGL_J2251.5-4928_daily_bin990.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/549872/ft1_4FGL_J2251.5-4928_daily_bin990.fits outfile=/scratch/kocevski/549872/ft1_filteredMKT_4FGL_J2251.5-4928_daily_bin990.fits ra=342.879 dec=-49.4691 rad=12.0 tmin=495936001.0 tmax=496195201.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.48
user 3.26
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/549872/ft1_filtered_4FGL_J2251.5-4928_daily_bin990.fits" evtable="EVENTS" scfile=/scratch/kocevski/549872/ft2_4FGL_J2251.5-4928_daily_bin990.fits sctable="SC_DATA" outfile=/scratch/kocevski/549872/ltcube_495936001_496195201_4FGL_J2251.5-4928_daily_bin990.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/549872/ft2_4FGL_J2251.5-4928_daily_bin990.fits
.....................!
real 11.98
user 11.65
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/549872/ft1_filtered_4FGL_J2251.5-4928_daily_bin990.fits evtable="EVENTS" scfile=/scratch/kocevski/549872/ft2_4FGL_J2251.5-4928_daily_bin990.fits sctable="SC_DATA" expcube=/scratch/kocevski/549872/ltcube_495936001_496195201_4FGL_J2251.5-4928_daily_bin990.fits outfile=/scratch/kocevski/549872/expmap_495936001_496195201_4FGL_J2251.5-4928_daily_bin990.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/549872/ltcube_495936001_496195201_4FGL_J2251.5-4928_daily_bin990.fits
.....................!
real 189.89
user 184.98
sys 4.57

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/549872/ft1_filtered_4FGL_J2251.5-4928_daily_bin990.fits scfile=/scratch/kocevski/549872/ft2_4FGL_J2251.5-4928_daily_bin990.fits outfile=/scratch/kocevski/549872/cmap_495936001_496195201_4FGL_J2251.5-4928_daily_bin990.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/549872/ft1_filtered_4FGL_J2251.5-4928_daily_bin990.fits scfile=/scratch/kocevski/549872/ft2_4FGL_J2251.5-4928_daily_bin990.fits outfile=/scratch/kocevski/549872/cmap_HighResolution_495936001_496195201_4FGL_J2251.5-4928_daily_bin990.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.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/549872/ft1_filtered_4FGL_J2251.5-4928_daily_bin990.fits evtable="EVENTS" scfile=/scratch/kocevski/549872/ft2_4FGL_J2251.5-4928_daily_bin990.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/549872/Model_4FGL_J2251.5-4928_daily_bin990.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/549872/ft1_filtered_4FGL_J2251.5-4928_daily_bin990.fits.....................!
real 35.06
user 33.81
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    75.262       1.0000         .10000E-03   10000.    
     2 'Prefactor '    18.730       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .65534E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .35395       1.0000         .10000E-03   10000.    
     7 'Prefactor '    68.521       1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.6298       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    29.678       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.1966       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.8636       1.0000         .10000E-03   10000.    
    16 'norm      '    1.2696       1.0000         .10000E-03   10000.    
    17 'norm      '    1.3469       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    24.385       1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .83860E-02   1.0000         .10000E-03   10000.    
    23 'norm      '    .10093E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    10.353       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .25190E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    25.801       1.0000         .10000E-03   10000.    
    28 'norm      '    5.8550       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10653E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10914E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .70009       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.0138       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=   4149.038     FROM MIGRAD    STATUS=CONVERGED    860 CALLS     4469 TOTAL
                     EDM=   .88E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     75.266        54.806       -.45168E-06   -.90564E-04
   2  Prefactor     18.708        14.471        .11135E-05   -.59633E-03
   3  Prefactor     .10000E-03    3.5323       -.79052E-07** at limit **
   4  Prefactor     .10006E-03    958.26        .21343E-04** at limit **
   5  norm          .10000E-03    4.8705        .31840E-08** at limit **
   6  Prefactor     .35270        3.8550       -.17445E-06   -.90793E-04
   7  Prefactor     68.515        50.158        .24564E-06    .16938E-04
   8  Prefactor     6.6286        7.3175        .21442E-06   -.28567E-04
   9  Prefactor     .10000E-03    10.747        .20424E-06** at limit **
  10  Prefactor     29.670        34.592        .30391E-07   -.64609E-05
  11  Prefactor     4.1933        12.137       -.35761E-08   -.19341E-04
  12  Prefactor     .10000E-03    69.186       -.74818E-06** at limit **
  13  Prefactor     .10000E-03    2.7861       -.24389E-07** at limit **
  14  Prefactor     .10000E-03    15.968       -.17601E-06** at limit **
  15  Prefactor     2.8723        18.116        .10528E-05    .94501E-04
  16  norm          1.2748        21.101        .60449E-05    .10128E-03
  17  norm          1.3479        4.3909        .15813E-06    .15715E-04
  18  norm          .10000E-03    1.8713       -.10122E-07** at limit **
  19  Prefactor     .10000E-03    3.4930       -.13564E-06** at limit **
  20  Prefactor     24.383        25.007       -.17605E-08    .30501E-04
  21  norm          .10000E-03    1.5192       -.28361E-07** at limit **
  22  Prefactor     .10003E-03    16.836       -.31655E-05** at limit **
  23  norm          .10000E-03    .78420       -.23490E-06** at limit **
  24  norm          .10000E-03    1.4334       -.18667E-07** at limit **
  25  Prefactor     10.349        15.815        .40873E-07    .68793E-04
  26  Prefactor     .10021E-03    3.0447       -.20739E-05** at limit **
  27  Prefactor     25.799        29.436        .30190E-05    .57637E-03
  28  norm          5.8604        18.523        .76702E-06    .69101E-04
  29  Prefactor     .10000E-03    8.1629       -.31822E-06** at limit **
  30  Prefactor     .10000E-03    8.8827       -.92263E-06** at limit **
  31  Normalizat    .70045        .21407        .10613E-05    .30129E-03
  32  Prefactor     1.0135        .19274       -.30366E-06    .19830E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 75.2662
  Prefactor  = 18.7084
  Prefactor  = 0.0001
  Prefactor  = 0.000100056
  norm       = 0.0001
  Prefactor  = 0.352698
  Prefactor  = 68.5154
  Prefactor  = 6.62864
  Prefactor  = 0.0001
  Prefactor  = 29.67
  Prefactor  = 4.19334
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.87233
  norm       = 1.27477
  norm       = 1.34788
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.3834
  norm       = 0.0001
  Prefactor  = 0.000100028
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 10.3488
  Prefactor  = 0.000100206
  Prefactor  = 25.7989
  norm       = 5.86036
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.700452
  Prefactor  = 1.01346
 **********
 **   18 **HESSE 
 **********

 FCN=   4149.038     FROM HESSE     STATUS=OK           651 CALLS     5120 TOTAL
                     EDM=   .31E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     75.266        54.782        .46283E-04   -1.3971    
   2  Prefactor     18.708        13.864        .92546E-04   -1.4843    
   3  Prefactor     .10000E-03    3.6113        .11807E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10006E-03    937.88        .21016E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    4.8877        .13882E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .35270        8.1992        .23521E-02   -1.5589    
   7  Prefactor     68.515        50.012        .24245E-03   -1.4051    
   8  Prefactor     6.6286        7.2991        .77924E-03   -1.5193    
   9  Prefactor     .10000E-03    10.763        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     29.670        34.422        .73544E-04   -1.4618    
  11  Prefactor     4.1933        12.020        .19672E-03   -1.5298    
  12  Prefactor     .10000E-03    69.311        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.7919        .10499E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    15.976        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.8723        17.731        .24022E-03   -1.5369    
  16  norm          1.2748        21.786        .19749E-02   -1.5482    
  17  norm          1.3479        4.3259        .23694E-03   -1.5476    
  18  norm          .10000E-03    1.8723        .86055E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    3.4998        .11743E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     24.383        25.039        .81119E-04   -1.4720    
  21  norm          .10000E-03    1.5224        .77523E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10003E-03    102.77        .46179E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    1.3762        .10628E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    1.4350        .75312E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     10.349        15.869        .12453E-03   -1.5064    
  26  Prefactor     .10021E-03    30.279        .17221E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     25.799        29.267        .78865E-04   -1.4692    
  28  norm          5.8604        18.389        .16597E-03   -1.5224    
  29  Prefactor     .10000E-03    8.4637        .35730E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    9.3330        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .70045        .25129        .25734E-03   -1.0388    
  32  Prefactor     1.0135        .22820        .21428E-03   -.92282    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.11012e-08
Minuit parameter uncertainties:
  1  54.8188
  2  13.8659
  3  4.45453e-05
  4  0.0147901
  5  1.35844e-05
  6  3.40113
  7  50.0428
  8  7.30005
  9  5.66936e-06
  10  34.4451
  11  12.0269
  12  0.000157224
  13  2.22525e-06
  14  1.74116e-05
  15  14.2788
  16  10.5441
  17  4.32685
  18  2.05208e-07
  19  6.64526e-06
  20  25.0495
  21  5.51207e-07
  22  0.00339556
  23  4.0485e-05
  24  2.84494e-07
  25  15.875
  26  0.00499437
  27  29.283
  28  18.4069
  29  1.28768e-05
  30  1.59858e-05
  31  0.251699
  32  0.22842
Done.

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

Extracting fit parameters...

4FGL J2251.5-4928
   Spectrum: PowerLaw
403    Prefactor:  1.000e-04  1.741e-05  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.013e+00  2.284e-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.005e-01  2.517e-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.34e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.21e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/549872/likelihoodResults_495936001_496195201_4FGL_J2251.5-4928_daily_bin990.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) = 4149.03861998
delta logL = -0.000297825858979

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4149.03832232
delta logL = -1.58645889314e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9470       1.0000          .0000       10.000    
     3 'Normalizat'    .70044       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0135       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=   4149.038     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      227 TOTAL
                     EDM=   .96E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1371.6        .90712E-02** at limit **
   2  Index         1.9337        8.5733        .50000        .67562E-05
   3  Normalizat    .70045        .50917E-01    .42296E-01    .37214E-04
   4  Prefactor     1.0135        .50502E-01    .42863E-01    .61990E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.93366
  Normalizat = 0.700449
  Prefactor  = 1.01346
 **********
 **   18 **HESSE 
 **********

 FCN=   4149.038     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      260 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2115.9        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9337        5.7091        .50000       -.66019    
   3  Normalizat    .70045        .72996E-01    .25734E-03   -1.0388    
   4  Prefactor     1.0135        .72432E-01    .21428E-03   -.92282    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.76703e-09
Minuit parameter uncertainties:
  1  0.0012512
  2  48.3487
  3  0.0730059
  4  0.0724388
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/549872': 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) = 4149.03832229
delta logL = -1.31690285343e-07

Extracting fit parameters...

4FGL J2251.5-4928
   Spectrum: PowerLaw
403    Prefactor:  1.000e-04  1.251e-03  1.000e-04  1.000e+04 ( 1.000e-14)
404        Index:  1.934e+00  4.835e+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.013e+00  7.244e-02  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.004e-01  7.301e-02  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/549872/cmap_HighResolution_495936001_496195201_4FGL_J2251.5-4928_daily_bin990.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.21e-03', job_status='DONE', photon_flux_upper_limit='4.34e-08', time_completed='2021-09-29 00:45:59.484418', job_id='549872', GAL2='1.01', fit_tolerance='1e-08', EG2='0.70', EG='0.70', time_epoch_completed='1632901559.48', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='-1.32e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.85' WHERE bin_id='990' AND source_name='4FGL J2251.5-4928' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 00:45:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0101>
Subject: Job 549872: <4FGL_J2251.5-4928_daily_bin990> in cluster <slac> Done

Job <4FGL_J2251.5-4928_daily_bin990> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep 29 00:30:33 2021
Job was executed on host(s) <bullet0101>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 00:30:34 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:30:34 2021
Terminated at Wed Sep 29 00:46:00 2021
Results reported at Wed Sep 29 00:46:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2251.5-4928_daily_bin990 342.879 -49.4691 495936001 496195201 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 :                                   718.13 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             280.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   925 sec.
    Turnaround time :                            927 sec.

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

