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


Performing analysis on: 4FGL_J2251.5-4928_daily_bin957
RA = 342.879, Dec = -49.4691
tmin = 487382401, tmax = 487641601
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='549824', job_status='RUN', time_executed='2021-09-29 00:30:47.789748', time_epoch_executed='1632900647.79' WHERE source_name='4FGL J2251.5-4928' and cadence='daily' and bin_id='957'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/549824

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/549824/ft1_4FGL_J2251.5-4928_daily_bin957.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/549824/ft2_4FGL_J2251.5-4928_daily_bin957.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/549824/ft1_4FGL_J2251.5-4928_daily_bin957.fits outfile=/scratch/kocevski/549824/ft1_filteredMKT_4FGL_J2251.5-4928_daily_bin957.fits ra=342.879 dec=-49.4691 rad=12.0 tmin=487382401.0 tmax=487641601.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.86
user 3.63
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/549824/ft1_filtered_4FGL_J2251.5-4928_daily_bin957.fits" evtable="EVENTS" scfile=/scratch/kocevski/549824/ft2_4FGL_J2251.5-4928_daily_bin957.fits sctable="SC_DATA" outfile=/scratch/kocevski/549824/ltcube_487382401_487641601_4FGL_J2251.5-4928_daily_bin957.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/549824/ft2_4FGL_J2251.5-4928_daily_bin957.fits
.....................!
real 13.64
user 13.27
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/549824/ft1_filtered_4FGL_J2251.5-4928_daily_bin957.fits evtable="EVENTS" scfile=/scratch/kocevski/549824/ft2_4FGL_J2251.5-4928_daily_bin957.fits sctable="SC_DATA" expcube=/scratch/kocevski/549824/ltcube_487382401_487641601_4FGL_J2251.5-4928_daily_bin957.fits outfile=/scratch/kocevski/549824/expmap_487382401_487641601_4FGL_J2251.5-4928_daily_bin957.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/549824/ltcube_487382401_487641601_4FGL_J2251.5-4928_daily_bin957.fits
.....................!
real 190.68
user 185.03
sys 5.27

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/549824/ft1_filtered_4FGL_J2251.5-4928_daily_bin957.fits scfile=/scratch/kocevski/549824/ft2_4FGL_J2251.5-4928_daily_bin957.fits outfile=/scratch/kocevski/549824/cmap_487382401_487641601_4FGL_J2251.5-4928_daily_bin957.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.51
user 0.36
sys 0.13

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/549824/ft1_filtered_4FGL_J2251.5-4928_daily_bin957.fits evtable="EVENTS" scfile=/scratch/kocevski/549824/ft2_4FGL_J2251.5-4928_daily_bin957.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/549824/Model_4FGL_J2251.5-4928_daily_bin957.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/549824/ft1_filtered_4FGL_J2251.5-4928_daily_bin957.fits.....................!
real 47.37
user 46.07
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    53.445       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.6518       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10101E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.3721       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    66.376       1.0000         .10000E-03   10000.    
     9 'Prefactor '    23.909       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.8178       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10127E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11169E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10247E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .72340E-02   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10073E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    31.605       1.0000         .10000E-03   10000.    
    21 'norm      '    1.3092       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    1.8893       1.0000         .10000E-03   10000.    
    24 'norm      '    5.1414       1.0000         .10000E-03   10000.    
    25 'Prefactor '    54.293       1.0000         .10000E-03   10000.    
    26 'Prefactor '    1.1054       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10050E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    6.5207       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .86711       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .79315       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=   6453.326     FROM MIGRAD    STATUS=CONVERGED    839 CALLS     4341 TOTAL
                     EDM=   .86E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     53.436        32.814        .24435E-06   -.19029E-03
   2  Prefactor     .10000E-03    2.1921       -.50956E-07** at limit **
   3  Prefactor     6.6519        3.6744        .40927E-07   -.95446E-04
   4  Prefactor     .10000E-03    17.873        .24453E-06** at limit **
   5  norm          .10000E-03    3.1883        .91817E-06** at limit **
   6  Prefactor     1.3719        2.1156        .90657E-07    .28550E-04
   7  Prefactor     .10000E-03    16.032        .37256E-07** at limit **
   8  Prefactor     66.377        10.310       -.22818E-07   -.34115E-04
   9  Prefactor     23.902        21.023        .19778E-06   -.87252E-04
  10  Prefactor     .10000E-03    9.1098        .13703E-06** at limit **
  11  Prefactor     8.8208        10.027        .13204E-05    .13240E-03
  12  Prefactor     .10000E-03    32.330       -.38510E-06** at limit **
  13  Prefactor     .10000E-03    2.4554        .19657E-06** at limit **
  14  Prefactor     .10000E-03    27.637        .33781E-07** at limit **
  15  Prefactor     .10000E-03    10.218        .19406E-07** at limit **
  16  norm          .10021E-03    7.0436       -.16105E-05** at limit **
  17  norm          .10000E-03    2.6988        .81260E-08** at limit **
  18  norm          .10000E-03    1.9112        .63043E-07** at limit **
  19  Prefactor     .10000E-03    2.1920        .85788E-09** at limit **
  20  Prefactor     31.606        59.070        .21171E-05    .12149E-03
  21  norm          1.3055        11.405       -.86140E-06   -.12941E-03
  22  Prefactor     .10000E-03    5.6784        .43440E-07** at limit **
  23  norm          1.8894        1.0015       -.10523E-07   -.18484E-05
  24  norm          5.1490        5.1428        .18187E-06    .19722E-03
  25  Prefactor     54.296        19.842       -.19022E-06    .98952E-05
  26  Prefactor     1.1056        3.2061        .36960E-06    .79973E-04
  27  Prefactor     .10000E-03    12.879       -.30724E-06** at limit **
  28  norm          .10000E-03    7.0975       -.82419E-07** at limit **
  29  Prefactor     6.5212        5.1943        .12260E-05    .39271E-03
  30  Prefactor     .10000E-03    2.9178        .13392E-07** at limit **
  31  Normalizat    .86697        .18213       -.67105E-06    .11284E-03
  32  Prefactor     .79329        .16436        .92493E-08    .40545E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 53.4359
  Prefactor  = 0.0001
  Prefactor  = 6.65186
  Prefactor  = 0.000100001
  norm       = 0.000100001
  Prefactor  = 1.37189
  Prefactor  = 0.0001
  Prefactor  = 66.3769
  Prefactor  = 23.9016
  Prefactor  = 0.0001
  Prefactor  = 8.82081
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100212
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 31.6061
  norm       = 1.30545
  Prefactor  = 0.0001
  norm       = 1.8894
  norm       = 5.14905
  Prefactor  = 54.2958
  Prefactor  = 1.10563
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 6.52123
  Prefactor  = 0.0001
  Normalizat = 0.866971
  Prefactor  = 0.793288
 **********
 **   18 **HESSE 
 **********

 FCN=   6453.326     FROM HESSE     STATUS=OK           657 CALLS     4998 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     53.436        32.727        .54864E-04   -1.4245    
   2  Prefactor     .10000E-03    2.2041        .11613E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.6519        3.6703        .10969E-03   -1.5192    
   4  Prefactor     .10000E-03    17.803        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    6.7669        .26233E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.3719        2.0811        .14025E-03   -1.5474    
   7  Prefactor     .10000E-03    16.053        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     66.377        10.333        .49262E-04   -1.4077    
   9  Prefactor     23.902        21.022        .81921E-04   -1.4730    
  10  Prefactor     .10000E-03    9.0868        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     8.8208        10.099        .67491E-03   -1.5114    
  12  Prefactor     .10000E-03    32.204        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    4.9461        .24427E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    27.677        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    10.277        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10021E-03    51.723        .35917E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    2.7093        .12886E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    1.9152        .10842E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    2.2108        .11611E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     31.606        59.085        .71273E-04   -1.4583    
  21  norm          1.3055        11.457        .31290E-03   -1.5479    
  22  Prefactor     .10000E-03    5.7228        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          1.8894        .99462        .55550E-04   -1.5433    
  24  norm          5.1490        5.1228        .15911E-03   -1.5254    
  25  Prefactor     54.296        19.896        .54436E-04   -1.4233    
  26  Prefactor     1.1056        3.1432        .22041E-03   -1.5498    
  27  Prefactor     .10000E-03    12.841        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    7.1029        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     6.5212        5.2609        .77471E-03   -1.5197    
  30  Prefactor     .10000E-03    2.9519        .13394E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .86697        .21503        .25193E-03   -.97631    
  32  Prefactor     .79329        .19420        .25314E-03   -.99976    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.71707e-09
Minuit parameter uncertainties:
  1  32.7382
  2  9.05944e-07
  3  3.6704
  4  0.000274469
  5  0.000120456
  6  2.08121
  7  4.9362e-05
  8  10.3336
  9  21.0289
  10  0.000133737
  11  10.1006
  12  0.000494436
  13  2.72154e-06
  14  1.22562e-05
  15  1.86896e-05
  16  0.00663266
  17  1.12019e-06
  18  2.72269e-06
  19  5.94605e-07
  20  59.1942
  21  7.73636
  22  3.29488e-05
  23  0.994625
  24  5.12321
  25  19.8982
  26  3.14365
  27  0.000216943
  28  1.97659e-06
  29  5.26131
  30  6.25297e-07
  31  0.215247
  32  0.194366
Done.

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

Extracting fit parameters...

4FGL J2251.5-4928
   Spectrum: PowerLaw
403    Prefactor:  1.000e-04  1.226e-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:  7.933e-01  1.944e-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.670e-01  2.152e-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.91e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.63e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/549824/likelihoodResults_487382401_487641601_4FGL_J2251.5-4928_daily_bin957.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) = 6453.32632032
delta logL = -0.000172108096194

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6453.32614836
delta logL = -1.41109921969e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10109E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.7785       1.0000          .0000       10.000    
     3 'Normalizat'    .86697       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79329       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=   6453.326     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      233 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    870.81        .90712E-02** at limit **
   2  Index         1.7994        5.9373        .50000       -.61793E-05
   3  Normalizat    .86697        .24398E-01    .44478E-01    .14893E-04
   4  Prefactor     .79329        .23682E-01    .43630E-01    .93449E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.79938
  Normalizat = 0.86697
  Prefactor  = 0.793288
 **********
 **   18 **HESSE 
 **********

 FCN=   6453.326     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      266 TOTAL
                     EDM=   .64E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2196.5        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7994        8.3957        .50000       -.69466    
   3  Normalizat    .86697        .43075E-01    .25193E-03   -.97631    
   4  Prefactor     .79329        .41813E-01    .25314E-03   -.99976    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.43512e-09
Minuit parameter uncertainties:
  1  0.0011299
  2  36.6129
  3  0.0430763
  4  0.0418144
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/549824': 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) = 6453.3261483
delta logL = -8.41146174935e-08

Extracting fit parameters...

4FGL J2251.5-4928
   Spectrum: PowerLaw
403    Prefactor:  1.000e-04  1.130e-03  1.000e-04  1.000e+04 ( 1.000e-14)
404        Index:  1.799e+00  3.661e+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.933e-01  4.181e-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:  8.670e-01  4.308e-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/549824/cmap_HighResolution_487382401_487641601_4FGL_J2251.5-4928_daily_bin957.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.63e-03', job_status='DONE', photon_flux_upper_limit='4.91e-08', time_completed='2021-09-29 00:46:31.733715', job_id='549824', GAL2='0.79', fit_tolerance='1e-08', EG2='0.87', EG='0.87', time_epoch_completed='1632901591.73', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.79', dlogl='-8.41e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.85' WHERE bin_id='957' AND source_name='4FGL J2251.5-4928' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 00:46:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0091>
Subject: Job 549824: <4FGL_J2251.5-4928_daily_bin957> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2251.5-4928_daily_bin957 342.879 -49.4691 487382401 487641601 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 :                                   938.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             355.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   961 sec.
    Turnaround time :                            963 sec.

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

