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


Performing analysis on: 4FGL_J2251.5-4928_daily_bin1471
RA = 342.879, Dec = -49.4691
tmin = 620611201, tmax = 620870401
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='554122', job_status='RUN', time_executed='2021-09-29 00:47:58.210889', time_epoch_executed='1632901678.21' WHERE source_name='4FGL J2251.5-4928' and cadence='daily' and bin_id='1471'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/554122

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/554122/ft1_4FGL_J2251.5-4928_daily_bin1471.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/554122/ft2_4FGL_J2251.5-4928_daily_bin1471.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/554122/ft1_4FGL_J2251.5-4928_daily_bin1471.fits outfile=/scratch/kocevski/554122/ft1_filteredMKT_4FGL_J2251.5-4928_daily_bin1471.fits ra=342.879 dec=-49.4691 rad=12.0 tmin=620611201.0 tmax=620870401.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.74
user 3.50
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/554122/ft1_filtered_4FGL_J2251.5-4928_daily_bin1471.fits" evtable="EVENTS" scfile=/scratch/kocevski/554122/ft2_4FGL_J2251.5-4928_daily_bin1471.fits sctable="SC_DATA" outfile=/scratch/kocevski/554122/ltcube_620611201_620870401_4FGL_J2251.5-4928_daily_bin1471.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/554122/ft2_4FGL_J2251.5-4928_daily_bin1471.fits
.....................!
real 13.02
user 12.65
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/554122/ft1_filtered_4FGL_J2251.5-4928_daily_bin1471.fits evtable="EVENTS" scfile=/scratch/kocevski/554122/ft2_4FGL_J2251.5-4928_daily_bin1471.fits sctable="SC_DATA" expcube=/scratch/kocevski/554122/ltcube_620611201_620870401_4FGL_J2251.5-4928_daily_bin1471.fits outfile=/scratch/kocevski/554122/expmap_620611201_620870401_4FGL_J2251.5-4928_daily_bin1471.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/554122/ltcube_620611201_620870401_4FGL_J2251.5-4928_daily_bin1471.fits
.....................!
real 191.20
user 185.81
sys 4.83

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/554122/ft1_filtered_4FGL_J2251.5-4928_daily_bin1471.fits scfile=/scratch/kocevski/554122/ft2_4FGL_J2251.5-4928_daily_bin1471.fits outfile=/scratch/kocevski/554122/cmap_620611201_620870401_4FGL_J2251.5-4928_daily_bin1471.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/554122/ft1_filtered_4FGL_J2251.5-4928_daily_bin1471.fits scfile=/scratch/kocevski/554122/ft2_4FGL_J2251.5-4928_daily_bin1471.fits outfile=/scratch/kocevski/554122/cmap_HighResolution_620611201_620870401_4FGL_J2251.5-4928_daily_bin1471.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.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    24.292       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.8065       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.1973       1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.0563       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    14.389       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 '    21.351       1.0000         .10000E-03   10000.    
    20 'Prefactor '    117.20       1.0000         .10000E-03   10000.    
    21 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    14.575       1.0000         .10000E-03   10000.    
    23 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10327E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    3.9449       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10922E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    2.6781       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.3140       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .43435       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=   2241.907     FROM MIGRAD    STATUS=CONVERGED    832 CALLS     5169 TOTAL
                     EDM=   .98E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     24.285        49.585        .14887E-05    .32642E-06
   2  Prefactor     .10000E-03    4.4105       -.23082E-06** at limit **
   3  Prefactor     2.8067        3.7873        .12026E-07   -.45109E-05
   4  Prefactor     .10000E-03    44.046        .53495E-06** at limit **
   5  norm          .10000E-03    5.7107       -.75585E-07** at limit **
   6  Prefactor     .10000E-03    1.8275        .11715E-06** at limit **
   7  Prefactor     9.2244        72.231       -.66790E-05    .44734E-05
   8  Prefactor     7.0569        8.3521        .51109E-07   -.11338E-04
   9  Prefactor     .10000E-03    15.857       -.35596E-06** at limit **
  10  Prefactor     .10000E-03    14.590        .66578E-06** at limit **
  11  Prefactor     .10000E-03    7.9010        .26048E-07** at limit **
  12  Prefactor     .10000E-03    54.143       -.39666E-05** at limit **
  13  Prefactor     .10000E-03    3.8091        .64351E-07** at limit **
  14  Prefactor     .10000E-03    39.988        .23958E-05** at limit **
  15  Prefactor     .10000E-03    10.775       -.31070E-06** at limit **
  16  norm          14.390        28.762        .12297E-06   -.74756E-06
  17  norm          .10000E-03    4.8117        .85547E-07** at limit **
  18  norm          .10000E-03    4.1678        .16385E-06** at limit **
  19  Prefactor     21.351        13.744        .14732E-07   -.97293E-05
  20  Prefactor     117.22        63.669       -.13472E-05   -.37793E-04
  21  norm          .10000E-03    14.634        .20225E-05** at limit **
  22  Prefactor     14.575        21.638        .27450E-06   -.89772E-05
  23  norm          .10000E-03    1.0935       -.46020E-07** at limit **
  24  norm          .10000E-03    22.570        .93351E-06** at limit **
  25  Prefactor     .10000E-03    50.568       -.26152E-05** at limit **
  26  Prefactor     3.9429        6.5973       -.10669E-05   -.94556E-04
  27  Prefactor     .10000E-03    96.410        .23276E-05** at limit **
  28  norm          .10000E-03    41.129        .23943E-05** at limit **
  29  Prefactor     2.6781        11.873        .66552E-05   -.63447E-04
  30  Prefactor     .10000E-03    2.6489        .57883E-08** at limit **
  31  Normalizat    1.3137        .28822       -.16262E-05   -.10546E-04
  32  Prefactor     .43455        .25381        .20734E-05    .15520E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 24.2845
  Prefactor  = 0.0001
  Prefactor  = 2.80667
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.2244
  Prefactor  = 7.05689
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 14.3895
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 21.3512
  Prefactor  = 117.22
  norm       = 0.000100001
  Prefactor  = 14.575
  norm       = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 3.94291
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.67806
  Prefactor  = 0.0001
  Normalizat = 1.31372
  Prefactor  = 0.434549
 **********
 **   18 **HESSE 
 **********

 FCN=   2241.907     FROM HESSE     STATUS=OK           649 CALLS     5818 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     24.285        49.581        .81274E-04   -1.4722    
   2  Prefactor     .10000E-03    4.4210        .97116E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.8067        3.7767        .10336E-03   -1.5373    
   4  Prefactor     .10000E-03    44.042        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    5.7253        .11052E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    1.8317        .62520E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     9.2244        72.059        .13215E-03   -1.5100    
   8  Prefactor     7.0569        8.3492        .14247E-03   -1.5177    
   9  Prefactor     .10000E-03    15.855        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    14.593        .17663E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    7.9367        .12999E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    54.059        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.8119        .90260E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    39.967        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    10.786        .15182E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          14.390        28.750        .10559E-03   -1.4949    
  17  norm          .10000E-03    4.8121        .10144E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    4.1711        .94420E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     21.351        13.744        .86683E-04   -1.4783    
  20  Prefactor     117.22        63.461        .18583E-03   -1.3538    
  21  norm          .10000E-03    15.149        .35381E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     14.575        21.635        .52456E-03   -1.4944    
  23  norm          .10000E-03    1.1188        .96479E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    23.359        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    51.067        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     3.9429        6.6240        .14149E-03   -1.5311    
  27  Prefactor     .10000E-03    97.148        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    41.191        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     2.6781        11.990        .12450E-02   -1.5381    
  30  Prefactor     .10000E-03    2.6496        .75266E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.3137        .32624        .19894E-03   -.83158    
  32  Prefactor     .43455        .28540        .30090E-03   -1.1508    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.71928e-10
Minuit parameter uncertainties:
  1  49.6654
  2  8.96904e-06
  3  3.77698
  4  2.50692e-05
  5  1.97651e-06
  6  7.18579e-06
  7  51.6495
  8  8.35057
  9  3.96222e-05
  10  1.21229e-05
  11  5.84385e-06
  12  5.7823e-05
  13  6.16211e-06
  14  4.57087e-05
  15  1.48985e-06
  16  28.7772
  17  8.9227e-07
  18  8.26827e-06
  19  13.7456
  20  63.4975
  21  0.00027381
  22  21.6463
  23  1.81861e-06
  24  0.000331163
  25  3.56388e-05
  26  6.62518
  27  0.000268024
  28  5.91407e-05
  29  11.3368
  30  1.83641e-08
  31  0.326752
  32  0.286336
Done.

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

Extracting fit parameters...

4FGL J2251.5-4928
   Spectrum: PowerLaw
403    Prefactor:  1.000e-04  4.571e-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:  4.345e-01  2.863e-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.314e+00  3.268e-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: 8.12e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.01e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/554122/likelihoodResults_620611201_620870401_4FGL_J2251.5-4928_daily_bin1471.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) = 2241.90663048
delta logL = -0.000118871929317

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2241.90651201
delta logL = -3.96979430661e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10783E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1084       1.0000          .0000       10.000    
     3 'Normalizat'    1.3137       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .43455       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=   2241.907     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      236 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.366        .90712E-02** at limit **
   2  Index         2.0832        8.1253        .50000        .59383E-05
   3  Normalizat    1.3137        .42384E-02    .32564E-01    .11224E-04
   4  Prefactor     .43455        .38838E-02    .67968E-01    .10451E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.08324
  Normalizat = 1.31372
  Prefactor  = 0.434547
 **********
 **   18 **HESSE 
 **********

 FCN=   2241.907     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      267 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    154.83        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0832        6.0408        .50000       -.62285    
   3  Normalizat    1.3137        .13991E-01    .19895E-03   -.83158    
   4  Prefactor     .43455        .12790E-01    .30090E-03   -1.1508    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.11841e-07
Minuit parameter uncertainties:
  1  0.000481253
  2  233.604
  3  0.0139906
  4  0.0127899
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/554122': 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) = 2241.90651185
delta logL = -2.39536802837e-07

Extracting fit parameters...

4FGL J2251.5-4928
   Spectrum: PowerLaw
403    Prefactor:  1.000e-04  4.813e-04  1.000e-04  1.000e+04 ( 1.000e-14)
404        Index:  2.083e+00  2.336e+02  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:  4.345e-01  1.279e-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:  1.314e+00  1.399e-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/554122/cmap_HighResolution_620611201_620870401_4FGL_J2251.5-4928_daily_bin1471.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.01e-03', job_status='DONE', photon_flux_upper_limit='8.12e-08', time_completed='2021-09-29 00:57:24.208130', job_id='554122', GAL2='0.43', fit_tolerance='1e-08', EG2='1.31', EG='1.31', time_epoch_completed='1632902244.21', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.43', dlogl='-2.40e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.85' WHERE bin_id='1471' AND source_name='4FGL J2251.5-4928' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 00:57:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0078>
Subject: Job 554122: <4FGL_J2251.5-4928_daily_bin1471> in cluster <slac> Done

Job <4FGL_J2251.5-4928_daily_bin1471> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 00:45:11 2021
Job was executed on host(s) <bullet0078>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 00:45:12 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:45:12 2021
Terminated at Wed Sep 29 00:57:25 2021
Results reported at Wed Sep 29 00:57:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2251.5-4928_daily_bin1471 342.879 -49.4691 620611201 620870401 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 :                                   562.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             252.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   736 sec.
    Turnaround time :                            734 sec.

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

