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


Performing analysis on: 4FGL_J2251.5-4928_daily_bin1279
RA = 342.879, Dec = -49.4691
tmin = 570844801, tmax = 571104001
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='552694', job_status='RUN', time_executed='2021-09-29 00:44:06.614180', time_epoch_executed='1632901446.61' WHERE source_name='4FGL J2251.5-4928' and cadence='daily' and bin_id='1279'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/552694

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/552694/ft1_4FGL_J2251.5-4928_daily_bin1279.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/552694/ft2_4FGL_J2251.5-4928_daily_bin1279.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/552694/ft1_4FGL_J2251.5-4928_daily_bin1279.fits outfile=/scratch/kocevski/552694/ft1_filteredMKT_4FGL_J2251.5-4928_daily_bin1279.fits ra=342.879 dec=-49.4691 rad=12.0 tmin=570844801.0 tmax=571104001.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.04
user 2.83
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/552694/ft1_filtered_4FGL_J2251.5-4928_daily_bin1279.fits" evtable="EVENTS" scfile=/scratch/kocevski/552694/ft2_4FGL_J2251.5-4928_daily_bin1279.fits sctable="SC_DATA" outfile=/scratch/kocevski/552694/ltcube_570844801_571104001_4FGL_J2251.5-4928_daily_bin1279.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/552694/ft2_4FGL_J2251.5-4928_daily_bin1279.fits
.....................!
real 15.34
user 14.98
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/552694/ft1_filtered_4FGL_J2251.5-4928_daily_bin1279.fits evtable="EVENTS" scfile=/scratch/kocevski/552694/ft2_4FGL_J2251.5-4928_daily_bin1279.fits sctable="SC_DATA" expcube=/scratch/kocevski/552694/ltcube_570844801_571104001_4FGL_J2251.5-4928_daily_bin1279.fits outfile=/scratch/kocevski/552694/expmap_570844801_571104001_4FGL_J2251.5-4928_daily_bin1279.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/552694/ltcube_570844801_571104001_4FGL_J2251.5-4928_daily_bin1279.fits
.....................!
real 190.56
user 185.28
sys 4.96

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/552694/ft1_filtered_4FGL_J2251.5-4928_daily_bin1279.fits scfile=/scratch/kocevski/552694/ft2_4FGL_J2251.5-4928_daily_bin1279.fits outfile=/scratch/kocevski/552694/cmap_570844801_571104001_4FGL_J2251.5-4928_daily_bin1279.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/552694/ft1_filtered_4FGL_J2251.5-4928_daily_bin1279.fits scfile=/scratch/kocevski/552694/ft2_4FGL_J2251.5-4928_daily_bin1279.fits outfile=/scratch/kocevski/552694/cmap_HighResolution_570844801_571104001_4FGL_J2251.5-4928_daily_bin1279.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=342.879 yref=-49.4691 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/552694/ft1_filtered_4FGL_J2251.5-4928_daily_bin1279.fits evtable="EVENTS" scfile=/scratch/kocevski/552694/ft2_4FGL_J2251.5-4928_daily_bin1279.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/552694/Model_4FGL_J2251.5-4928_daily_bin1279.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/552694/ft1_filtered_4FGL_J2251.5-4928_daily_bin1279.fits.......................!
real 21.15
user 19.86
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     2 'Prefactor '    8921.4       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     5 'norm      '    1124.8       1.0000         .10000E-03   10000.    
     6 'Prefactor '    28.249       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .24032E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .38387E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10942E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10441E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    127.12       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .75300E-02   1.0000         .10000E-03   10000.    
    16 'norm      '    18.468       1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.5713       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10334E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    4.3864       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    1.6813       1.0000         .10000E-03   10000.    
    24 'norm      '    6.4294       1.0000         .10000E-03   10000.    
    25 'Prefactor '    55.311       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .11093E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    29.477       1.0000         .10000E-03   10000.    
    28 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .21135E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.3494       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=   1464.786     FROM MIGRAD    STATUS=CONVERGED    876 CALLS     5224 TOTAL
                     EDM=   .81E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor    10000.0        7349.3        .63807E-05** at limit **
   2  Prefactor     8916.6        7756.6        .42708E-04    .10440E-04
   3  Prefactor     .10000E-03    19.332       -.25803E-07** at limit **
   4  Prefactor    10000.0        7469.4        .26538E-04** at limit **
   5  norm          1120.3        1288.4        .36035E-05    .68599E-05
   6  Prefactor     28.294        48.144        .13885E-05    .79781E-04
   7  Prefactor     .10000E-03    530.10        .59416E-06** at limit **
   8  Prefactor     .10000E-03    176.04       -.16205E-05** at limit **
   9  Prefactor     .10000E-03    94.017       -.96535E-06** at limit **
  10  Prefactor     .10000E-03    77.173        .38362E-07** at limit **
  11  Prefactor     .10002E-03    70.426        .15867E-06** at limit **
  12  Prefactor     .10000E-03    214.29        .75993E-06** at limit **
  13  Prefactor     .10000E-03    10.219       -.58898E-07** at limit **
  14  Prefactor     127.42        168.65        .47821E-05    .99074E-04
  15  Prefactor     .10006E-03    684.95       -.61223E-04** at limit **
  16  norm          18.475        18.426        .23126E-06    .41623E-04
  17  norm          .10000E-03    4.8833        .12979E-06** at limit **
  18  norm          .10000E-03    3.4347       -.69537E-08** at limit **
  19  Prefactor     2.5747        8.3301        .49434E-06    .12131E-03
  20  Prefactor     .10000E-03    40.750        .27638E-06** at limit **
  21  norm          4.3860        6.3069        .43979E-06    .64526E-04
  22  Prefactor     .10000E-03    45.606        .32411E-05** at limit **
  23  norm          1.6821        1.5455        .16382E-06    .79350E-03
  24  norm          6.4286        7.4037        .38763E-06    .76571E-04
  25  Prefactor     55.320        27.591        .97239E-06    .91048E-04
  26  Prefactor     .10000E-03    4.1915       -.21637E-05** at limit **
  27  Prefactor     29.461        30.775       -.27500E-05   -.15098E-03
  28  norm          .10000E-03    11.083       -.42146E-07** at limit **
  29  Prefactor     .10000E-03    1.9020        .12172E-06** at limit **
  30  Prefactor     .10002E-03    5.5880       -.15999E-06** at limit **
  31  Normalizat    .10000E-01    .18662        .20871E-04** at limit **
  32  Prefactor     1.3494        .22939        .75179E-06   -.11204E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10000
  Prefactor  = 8916.63
  Prefactor  = 0.0001
  Prefactor  = 10000
  norm       = 1120.34
  Prefactor  = 28.2939
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100016
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 127.416
  Prefactor  = 0.000100063
  norm       = 18.4748
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 2.57472
  Prefactor  = 0.0001
  norm       = 4.38604
  Prefactor  = 0.000100002
  norm       = 1.6821
  norm       = 6.42859
  Prefactor  = 55.3197
  Prefactor  = 0.000100002
  Prefactor  = 29.4607
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100016
  Normalizat = 0.01
  Prefactor  = 1.34936
 **********
 **   18 **HESSE 
 **********

 FCN=   1464.786     FROM HESSE     STATUS=OK           649 CALLS     5873 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor    10000.0        7348.2        .20262E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     8916.6        7773.6        .64474E-04    .90000    
   3  Prefactor     .10000E-03    19.333        .16441E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor    10000.0        7472.9        .18356E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1120.3        1290.4        .63300E-04   -.88819    
   6  Prefactor     28.294        48.149        .75378E-04   -1.4644    
   7  Prefactor     .10000E-03    530.94        .20057E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    177.82        .21282E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    94.135        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    77.220        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10002E-03    70.853        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    214.44        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    10.228        .11951E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     127.42        169.83        .17853E-03   -1.3446    
  15  Prefactor     .10006E-03    60.598        .60421E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          18.475        18.430        .93199E-04   -1.4848    
  17  norm          .10000E-03    4.8843        .82596E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    3.4355        .69274E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.5747        8.2280        .18436E-03   -1.5387    
  20  Prefactor     .10000E-03    40.788        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          4.3860        6.2931        .10378E-03   -1.5289    
  22  Prefactor     .10000E-03    46.332        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          1.6821        1.5462        .42072E-04   -1.5449    
  24  norm          6.4286        7.4032        .10018E-03   -1.5201    
  25  Prefactor     55.320        27.651        .53936E-04   -1.4219    
  26  Prefactor     .10000E-03    6.7354        .13825E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     29.461        30.880        .73795E-04   -1.4622    
  28  norm          .10000E-03    11.087        .12447E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    1.9065        .51544E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10002E-03    23.554        .16633E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .10000E-01    .21052        .89169E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     1.3494        .23880        .21180E-03   -.81851    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.06905e-09
Minuit parameter uncertainties:
  1  0.0196494
  2  3829.74
  3  1.51622e-05
  4  0.0926078
  5  1329.39
  6  48.2153
  7  9.8938e-05
  8  0.000379851
  9  0.000422348
  10  0.00028141
  11  0.0021133
  12  0.000941767
  13  1.30874e-05
  14  170.483
  15  0.0039038
  16  18.4357
  17  2.51544e-07
  18  9.17146e-06
  19  8.23157
  20  8.86024e-05
  21  6.29401
  22  0.000616794
  23  1.54627
  24  7.40426
  25  27.657
  26  0.0002017
  27  30.8972
  28  1.56544e-05
  29  1.18715e-06
  30  0.00122141
  31  4.56823e-06
  32  0.238993
Done.

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

Extracting fit parameters...

4FGL J2251.5-4928
   Spectrum: PowerLaw
403    Prefactor:  1.274e+02  1.705e+02  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.349e+00  2.390e-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.000e-02  4.568e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.87
Ra Dec: 342.879 -49.469
Photon Flux Upper Limit: 3.16e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.34e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/552694/likelihoodResults_570844801_571104001_4FGL_J2251.5-4928_daily_bin1279.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): 0
logL (Free Index) = 1464.77100901
delta logL = 0.0147359070647

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1464.76334017
delta logL = 0.0224047470292

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    104.02       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0044       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3478       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   1464.763     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      270 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     104.04        189.93        .39426E-04   -.23044E-03
   2  Index         2.0042        .77159        .43924E-02   -.26983E-03
   3  Normalizat    .10000E-01    .20885        .88958E-02** at limit **
   4  Prefactor     1.3477        .19570        .21183E-03    .23174E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 104.043
  Index      = 2.00422
  Normalizat = 0.01
  Prefactor  = 1.34773
 **********
 **   18 **HESSE 
 **********

 FCN=   1464.763     FROM HESSE     STATUS=OK            23 CALLS      293 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     104.04        181.64        .78853E-05   -1.3664    
   2  Index         2.0042        .73799        .17570E-03   -.64245    
   3  Normalizat    .10000E-01    .20890        .17792E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.3477        .19562        .42365E-04   -.81899    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.82592e-09
Minuit parameter uncertainties:
  1  182.626
  2  0.74224
  3  3.46712e-06
  4  0.195728
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/552694': 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): 0
logL (Free Index) = 1464.76333984
delta logL = 0.022405076234

Extracting fit parameters...

4FGL J2251.5-4928
   Spectrum: PowerLaw
403    Prefactor:  1.040e+02  1.826e+02  1.000e-04  1.000e+04 ( 1.000e-14)
404        Index:  2.004e+00  7.422e-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.348e+00  1.957e-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.000e-02  3.467e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.87
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/552694/cmap_HighResolution_570844801_571104001_4FGL_J2251.5-4928_daily_bin1279.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.34e-02', job_status='DONE', photon_flux_upper_limit='3.16e-07', time_completed='2021-09-29 00:54:34.856762', job_id='552694', GAL2='1.35', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1632902074.86', return_code2='0', ts='0.87', comment='SUCCESS', return_code='0', GAL='1.35', dlogl='2.24e-02', ts2='0.93', photon_index_error='0.00', photon_index='1.85' WHERE bin_id='1279' AND source_name='4FGL J2251.5-4928' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 00:54:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0244>
Subject: Job 552694: <4FGL_J2251.5-4928_daily_bin1279> in cluster <slac> Done

Job <4FGL_J2251.5-4928_daily_bin1279> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 00:40:18 2021
Job was executed on host(s) <bullet0244>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 00:40:19 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:40:19 2021
Terminated at Wed Sep 29 00:54:35 2021
Results reported at Wed Sep 29 00:54:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2251.5-4928_daily_bin1279 342.879 -49.4691 570844801 571104001 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 :                                   481.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             220.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   856 sec.
    Turnaround time :                            857 sec.

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

