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


Performing analysis on: 4FGL_J2251.5-4928_daily_bin1020
RA = 342.879, Dec = -49.4691
tmin = 503712001, tmax = 503971201
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='551099', job_status='RUN', time_executed='2021-09-29 00:36:29.962771', time_epoch_executed='1632900989.96' WHERE source_name='4FGL J2251.5-4928' and cadence='daily' and bin_id='1020'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/551099

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/551099/ft1_4FGL_J2251.5-4928_daily_bin1020.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/551099/ft2_4FGL_J2251.5-4928_daily_bin1020.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/551099/ft1_4FGL_J2251.5-4928_daily_bin1020.fits outfile=/scratch/kocevski/551099/ft1_filteredMKT_4FGL_J2251.5-4928_daily_bin1020.fits ra=342.879 dec=-49.4691 rad=12.0 tmin=503712001.0 tmax=503971201.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 5.57
user 5.31
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/551099/ft1_filtered_4FGL_J2251.5-4928_daily_bin1020.fits" evtable="EVENTS" scfile=/scratch/kocevski/551099/ft2_4FGL_J2251.5-4928_daily_bin1020.fits sctable="SC_DATA" outfile=/scratch/kocevski/551099/ltcube_503712001_503971201_4FGL_J2251.5-4928_daily_bin1020.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/551099/ft2_4FGL_J2251.5-4928_daily_bin1020.fits
.....................!
real 11.73
user 11.34
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/551099/ft1_filtered_4FGL_J2251.5-4928_daily_bin1020.fits evtable="EVENTS" scfile=/scratch/kocevski/551099/ft2_4FGL_J2251.5-4928_daily_bin1020.fits sctable="SC_DATA" expcube=/scratch/kocevski/551099/ltcube_503712001_503971201_4FGL_J2251.5-4928_daily_bin1020.fits outfile=/scratch/kocevski/551099/expmap_503712001_503971201_4FGL_J2251.5-4928_daily_bin1020.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/551099/ltcube_503712001_503971201_4FGL_J2251.5-4928_daily_bin1020.fits
.....................!
real 191.68
user 185.92
sys 5.43

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/551099/ft1_filtered_4FGL_J2251.5-4928_daily_bin1020.fits scfile=/scratch/kocevski/551099/ft2_4FGL_J2251.5-4928_daily_bin1020.fits outfile=/scratch/kocevski/551099/cmap_503712001_503971201_4FGL_J2251.5-4928_daily_bin1020.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.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    105.00       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10376E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    102.93       1.0000         .10000E-03   10000.    
     5 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.1506       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.8778       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    19.637       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .24099E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    70.366       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .57028       1.0000         .10000E-03   10000.    
    21 'norm      '    2.9607       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .74167       1.0000         .10000E-03   10000.    
    24 'norm      '    3.7070       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    7.9612       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    15.844       1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.1674       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .58399       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=   2781.826     FROM MIGRAD    STATUS=CONVERGED    858 CALLS     4407 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     105.00        65.444       -.11908E-06    .67880E-05
   2  Prefactor     .10000E-03    19.130       -.34273E-06** at limit **
   3  Prefactor     .10000E-03    3.5378       -.19414E-07** at limit **
   4  Prefactor     102.93        143.80       -.27839E-06    .35777E-05
   5  norm          .10000E-03    9.5376        .23291E-07** at limit **
   6  Prefactor     1.1504        9.1558        .66530E-06    .46674E-04
   7  Prefactor     .10000E-03    31.232       -.46911E-06** at limit **
   8  Prefactor     6.8792        8.6927        .12318E-06    .19513E-04
   9  Prefactor     .10000E-03    6.7562        .47096E-07** at limit **
  10  Prefactor     19.613        41.745       -.36730E-05    .22402E-04
  11  Prefactor     .10000E-03    59.487       -.16236E-05** at limit **
  12  Prefactor     70.282        145.24        .24955E-05    .91933E-05
  13  Prefactor     .10000E-03    5.2463        .12258E-06** at limit **
  14  Prefactor     .10000E-03    19.421       -.20444E-06** at limit **
  15  Prefactor     .10000E-03    14.692        .96616E-07** at limit **
  16  norm          .10000E-03    6.7092        .61347E-07** at limit **
  17  norm          .10000E-03    6.5172       -.77224E-07** at limit **
  18  norm          .10000E-03    3.6655        .29775E-06** at limit **
  19  Prefactor     .10000E-03    5.7648        .28920E-07** at limit **
  20  Prefactor     .98356        98.071        .67082E-05   -.13775E-03
  21  norm          2.9063        8.4523       -.19565E-05   -.58714E-03
  22  Prefactor     .10000E-03    23.131        .68407E-06** at limit **
  23  norm          .74141        1.9145        .13839E-06   -.41432E-04
  24  norm          3.7132        7.6655        .10853E-07   -.31001E-03
  25  Prefactor     .10000E-03    53.486        .33810E-05** at limit **
  26  Prefactor     7.9609        7.3431        .41848E-07   -.27782E-04
  27  Prefactor     .10000E-03    32.838       -.10181E-06** at limit **
  28  norm          .10000E-03    20.436        .35217E-06** at limit **
  29  Prefactor     .10000E-03    2.8838        .13846E-07** at limit **
  30  Prefactor     15.843        11.845       -.29508E-07   -.69376E-04
  31  Normalizat    1.1671        .25965       -.88265E-07   -.20965E-03
  32  Prefactor     .58422        .22712       -.46241E-06   -.94761E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 104.999
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 102.929
  norm       = 0.0001
  Prefactor  = 1.15035
  Prefactor  = 0.0001
  Prefactor  = 6.87925
  Prefactor  = 0.0001
  Prefactor  = 19.6132
  Prefactor  = 0.000100001
  Prefactor  = 70.2824
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.983561
  norm       = 2.90632
  Prefactor  = 0.0001
  norm       = 0.741406
  norm       = 3.71319
  Prefactor  = 0.0001
  Prefactor  = 7.96095
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.8431
  Normalizat = 1.16709
  Prefactor  = 0.584219
 **********
 **   18 **HESSE 
 **********

 FCN=   2781.826     FROM HESSE     STATUS=OK           649 CALLS     5056 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     105.00        65.356        .39244E-04   -1.3655    
   2  Prefactor     .10000E-03    19.237        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.5500        .96866E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     102.93        143.86        .39632E-04   -1.3675    
   5  norm          .10000E-03    9.5900        .15909E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.1504        9.2862        .14125E-02   -1.5493    
   7  Prefactor     .10000E-03    31.296        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     6.8792        8.6746        .76491E-03   -1.5183    
   9  Prefactor     .10000E-03    6.7593        .13390E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     19.613        40.343        .90385E-04   -1.4822    
  11  Prefactor     .10000E-03    60.546        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     70.282        147.22        .23927E-03   -1.4029    
  13  Prefactor     .10000E-03    5.3003        .11795E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    19.421        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    14.712        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    6.7143        .13344E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    6.5241        .13143E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    3.7144        .98909E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.7833        .12356E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .98356        1113.9        .66408E-02   -1.5510    
  21  norm          2.9063        14.582        .17876E-03   -1.5367    
  22  Prefactor     .10000E-03    23.208        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .74141        1.8738        .11011E-03   -1.5536    
  24  norm          3.7132        7.5916        .17852E-03   -1.5323    
  25  Prefactor     .10000E-03    53.344        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     7.9609        7.3244        .13039E-03   -1.5144    
  27  Prefactor     .10000E-03    32.871        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    20.437        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    2.8842        .87471E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     15.843        11.851        .10062E-03   -1.4912    
  31  Normalizat    1.1671        .29878        .21610E-03   -.87626    
  32  Prefactor     .58422        .26326        .27208E-03   -1.0825    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.43257e-09
Minuit parameter uncertainties:
  1  65.4013
  2  3.04739e-05
  3  3.91577e-06
  4  144.347
  5  8.02071e-06
  6  6.53791
  7  5.24109e-06
  8  8.67615
  9  9.51315e-08
  10  40.3986
  11  0.000395734
  12  147.989
  13  2.59281e-07
  14  2.74389e-06
  15  9.96725e-07
  16  5.29486e-07
  17  1.8882e-06
  18  1.82561e-05
  19  3.53535e-06
  20  67.496
  21  13.0248
  22  1.84425e-05
  23  1.87397
  24  7.59359
  25  7.11517e-05
  26  7.32521
  27  6.15025e-06
  28  2.18492e-06
  29  2.91882e-07
  30  11.8529
  31  0.299213
  32  0.263818
Done.

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

Extracting fit parameters...

4FGL J2251.5-4928
   Spectrum: PowerLaw
403    Prefactor:  1.000e-04  2.744e-06  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:  5.842e-01  2.638e-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.167e+00  2.992e-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: 5.86e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.34e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/551099/likelihoodResults_503712001_503971201_4FGL_J2251.5-4928_daily_bin1020.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) = 2781.82604538
delta logL = -0.000214854737351

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2781.82583071
delta logL = -1.90748323803e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9247       1.0000          .0000       10.000    
     3 'Normalizat'    1.1671       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .58419       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=   2781.826     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      239 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6540.2        .90712E-02** at limit **
   2  Index         1.9005        5.8809        .50000        .10049E-04
   3  Normalizat    1.1671        .11959        .35753E-01    .27098E-04
   4  Prefactor     .58422        .11037        .61497E-01    .35175E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.90045
  Normalizat = 1.1671
  Prefactor  = 0.584217
 **********
 **   18 **HESSE 
 **********

 FCN=   2781.826     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      270 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6948.5        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9005        8.0886        .50000       -.66863    
   3  Normalizat    1.1671        .24680        .21610E-03   -.87626    
   4  Prefactor     .58422        .22735        .27207E-03   -1.0825    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.48582e-08
Minuit parameter uncertainties:
  1  4.44522e-06
  2  61.6062
  3  0.247049
  4  0.227706
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/551099': 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) = 2781.82583064
delta logL = -1.19523974718e-07

Extracting fit parameters...

4FGL J2251.5-4928
   Spectrum: PowerLaw
403    Prefactor:  1.000e-04  4.445e-06  1.000e-04  1.000e+04 ( 1.000e-14)
404        Index:  1.900e+00  6.161e+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:  5.842e-01  2.277e-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.167e+00  2.470e-01  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/551099/cmap_HighResolution_503712001_503971201_4FGL_J2251.5-4928_daily_bin1020.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.34e-03', job_status='DONE', photon_flux_upper_limit='5.86e-08', time_completed='2021-09-29 00:46:18.288781', job_id='551099', GAL2='0.58', fit_tolerance='1e-08', EG2='1.17', EG='1.17', time_epoch_completed='1632901578.29', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.58', dlogl='-1.20e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.85' WHERE bin_id='1020' AND source_name='4FGL J2251.5-4928' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 00:46:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0102>
Subject: Job 551099: <4FGL_J2251.5-4928_daily_bin1020> in cluster <slac> Done

Job <4FGL_J2251.5-4928_daily_bin1020> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 00:35:15 2021
Job was executed on host(s) <bullet0102>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 00:35:17 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:17 2021
Terminated at Wed Sep 29 00:46:19 2021
Results reported at Wed Sep 29 00:46:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2251.5-4928_daily_bin1020 342.879 -49.4691 503712001 503971201 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 :                                   584.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             326.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   661 sec.
    Turnaround time :                            664 sec.

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

