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


Performing analysis on: 4FGL_J2251.5-4928_daily_bin1321
RA = 342.879, Dec = -49.4691
tmin = 581731201, tmax = 581990401
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='552755', job_status='RUN', time_executed='2021-09-29 00:41:19.893701', time_epoch_executed='1632901279.89' WHERE source_name='4FGL J2251.5-4928' and cadence='daily' and bin_id='1321'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/552755

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/552755/ft1_4FGL_J2251.5-4928_daily_bin1321.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/552755/ft2_4FGL_J2251.5-4928_daily_bin1321.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/552755/ft1_4FGL_J2251.5-4928_daily_bin1321.fits outfile=/scratch/kocevski/552755/ft1_filteredMKT_4FGL_J2251.5-4928_daily_bin1321.fits ra=342.879 dec=-49.4691 rad=12.0 tmin=581731201.0 tmax=581990401.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 2.59
user 2.40
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/552755/ft1_filtered_4FGL_J2251.5-4928_daily_bin1321.fits" evtable="EVENTS" scfile=/scratch/kocevski/552755/ft2_4FGL_J2251.5-4928_daily_bin1321.fits sctable="SC_DATA" outfile=/scratch/kocevski/552755/ltcube_581731201_581990401_4FGL_J2251.5-4928_daily_bin1321.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/552755/ft2_4FGL_J2251.5-4928_daily_bin1321.fits
.....................!
real 12.28
user 11.94
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/552755/ft1_filtered_4FGL_J2251.5-4928_daily_bin1321.fits evtable="EVENTS" scfile=/scratch/kocevski/552755/ft2_4FGL_J2251.5-4928_daily_bin1321.fits sctable="SC_DATA" expcube=/scratch/kocevski/552755/ltcube_581731201_581990401_4FGL_J2251.5-4928_daily_bin1321.fits outfile=/scratch/kocevski/552755/expmap_581731201_581990401_4FGL_J2251.5-4928_daily_bin1321.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/552755/ltcube_581731201_581990401_4FGL_J2251.5-4928_daily_bin1321.fits
.....................!
real 189.58
user 184.85
sys 4.42

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/552755/ft1_filtered_4FGL_J2251.5-4928_daily_bin1321.fits scfile=/scratch/kocevski/552755/ft2_4FGL_J2251.5-4928_daily_bin1321.fits outfile=/scratch/kocevski/552755/cmap_581731201_581990401_4FGL_J2251.5-4928_daily_bin1321.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.14

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/552755/ft1_filtered_4FGL_J2251.5-4928_daily_bin1321.fits evtable="EVENTS" scfile=/scratch/kocevski/552755/ft2_4FGL_J2251.5-4928_daily_bin1321.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/552755/Model_4FGL_J2251.5-4928_daily_bin1321.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/552755/ft1_filtered_4FGL_J2251.5-4928_daily_bin1321.fits.....................!
real 45.45
user 44.13
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    14.986       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.3298       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.5439       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    15.048       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.5095       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10367E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .27608E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    30.175       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.4964       1.0000         .10000E-03   10000.    
    16 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10353E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.1892       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11740E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.5179       1.0000         .10000E-03   10000.    
    22 'Prefactor '    15.846       1.0000         .10000E-03   10000.    
    23 'norm      '    .10178E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10502E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .22961       1.0000         .10000E-03   10000.    
    27 'Prefactor '    7.1470       1.0000         .10000E-03   10000.    
    28 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    11.077       1.0000         .10000E-03   10000.    
    30 'Prefactor '    6.2258       1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.0328       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.3227       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=   6045.920     FROM MIGRAD    STATUS=CONVERGED    873 CALLS     4445 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.788       -.66113E-07** at limit **
   2  Prefactor     14.985        11.165       -.21994E-08    .10340E-03
   3  Prefactor     1.3299        3.9340       -.88690E-06    .19157E-03
   4  Prefactor     .10000E-03    61.273       -.31192E-05** at limit **
   5  norm          .10000E-03    3.3201        .39479E-07** at limit **
   6  Prefactor     3.5438        2.8384       -.68384E-08    .99777E-05
   7  Prefactor     .10000E-03    29.720       -.36060E-06** at limit **
   8  Prefactor     15.049        8.5458       -.14652E-06    .61732E-04
   9  Prefactor     4.5098        36.073       -.44475E-06    .82058E-05
  10  Prefactor     .10000E-03    48.036        .24318E-05** at limit **
  11  Prefactor     .10000E-03    23.577       -.57211E-05** at limit **
  12  Prefactor     30.145        87.105        .15196E-05    .41759E-04
  13  Prefactor     .10000E-03    1.9205       -.56158E-08** at limit **
  14  Prefactor     .10000E-03    24.804       -.19405E-06** at limit **
  15  Prefactor     7.5010        13.038        .73757E-07    .54343E-04
  16  norm          .10000E-03    5.4698       -.12001E-06** at limit **
  17  norm          .10000E-03    2.4300        .45739E-10** at limit **
  18  norm          .10000E-03    5.5210        .23323E-06** at limit **
  19  Prefactor     2.1894        4.5213       -.37072E-06    .72539E-04
  20  Prefactor     .10001E-03    143.02        .31772E-05** at limit **
  21  norm          1.5200        4.7930       -.90703E-06    .69169E-04
  22  Prefactor     15.847        16.237        .28621E-06    .54400E-04
  23  norm          .10000E-03    .63577       -.19069E-07** at limit **
  24  norm          .10000E-03    6.9511        .17047E-06** at limit **
  25  Prefactor     .10000E-03    4.5582       -.27671E-07** at limit **
  26  Prefactor     .22463        2.6258        .46221E-07   -.10098E-03
  27  Prefactor     7.1553        35.754        .17153E-05    .36596E-04
  28  norm          .10000E-03    30.337       -.11958E-06** at limit **
  29  Prefactor     11.078        6.9741        .13822E-06    .11438E-03
  30  Prefactor     6.2257        7.4908       -.87931E-07    .80588E-04
  31  Normalizat    1.0328        .21989        .99813E-07    .17142E-03
  32  Prefactor     1.3228        .20523        .44621E-06    .18888E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 14.9852
  Prefactor  = 1.32991
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.54377
  Prefactor  = 0.0001
  Prefactor  = 15.0494
  Prefactor  = 4.50978
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 30.1453
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.50099
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 2.18941
  Prefactor  = 0.000100007
  norm       = 1.52
  Prefactor  = 15.8468
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.224629
  Prefactor  = 7.15525
  norm       = 0.0001
  Prefactor  = 11.0781
  Prefactor  = 6.22572
  Normalizat = 1.03279
  Prefactor  = 1.32275
 **********
 **   18 **HESSE 
 **********

 FCN=   6045.920     FROM HESSE     STATUS=OK           661 CALLS     5106 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.794        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     14.985        11.150        .10346E-03   -1.4934    
   3  Prefactor     1.3299        3.9214        .25337E-03   -1.5477    
   4  Prefactor     .10000E-03    61.727        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    3.3236        .13837E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.5438        2.8385        .11376E-03   -1.5331    
   7  Prefactor     .10000E-03    29.757        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     15.049        8.5703        .10325E-03   -1.4932    
   9  Prefactor     4.5098        36.158        .18959E-03   -1.5283    
  10  Prefactor     .10000E-03    48.382        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    23.651        .40309E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     30.145        87.189        .72938E-04   -1.4609    
  13  Prefactor     .10000E-03    1.9219        .10523E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    24.835        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     7.5010        12.907        .14648E-03   -1.5160    
  16  norm          .10000E-03    5.4948        .17762E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    2.4318        .11836E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    5.7176        .35618E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.1894        4.4746        .21424E-03   -1.5412    
  20  Prefactor     .10001E-03    147.50        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.5200        4.7356        .28496E-03   -1.5461    
  22  Prefactor     15.847        16.125        .10061E-03   -1.4912    
  23  norm          .10000E-03    2.6640        .11507E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    7.1698        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    4.5632        .16213E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .22463        19.609        .20174E-02   -1.5613    
  27  Prefactor     7.1553        39.890        .15005E-03   -1.5173    
  28  norm          .10000E-03    30.415        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     11.078        6.9641        .12037E-03   -1.5042    
  30  Prefactor     6.2257        7.5076        .16088E-03   -1.5209    
  31  Normalizat    1.0328        .27354        .27928E-03   -.91940    
  32  Prefactor     1.3228        .25695        .25025E-03   -.82633    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.81452e-08
Minuit parameter uncertainties:
  1  3.51376e-06
  2  11.1519
  3  3.92213
  4  0.000215458
  5  2.57414e-06
  6  2.83862
  7  2.23239e-05
  8  8.57097
  9  25.5602
  10  5.00162e-05
  11  0.000135771
  12  87.5604
  13  3.1481e-07
  14  2.22544e-05
  15  12.9118
  16  2.42425e-06
  17  1.61467e-07
  18  6.32837e-05
  19  4.47528
  20  0.00209073
  21  4.73674
  22  16.1297
  23  1.18155e-05
  24  9.9996e-05
  25  2.84871e-06
  26  4.19803
  27  33.8232
  28  4.99124e-05
  29  6.9646
  30  7.5087
  31  0.273917
  32  0.257193
Done.

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

Extracting fit parameters...

4FGL J2251.5-4928
   Spectrum: PowerLaw
403    Prefactor:  1.000e-04  2.225e-05  1.000e-04  1.000e+04 ( 1.000e-14)
404        Index:  1.851e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
405        Scale:  2.716e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
589    Prefactor:  1.323e+00  2.572e-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.033e+00  2.739e-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.05e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.74e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/552755/likelihoodResults_581731201_581990401_4FGL_J2251.5-4928_daily_bin1321.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) = 6045.92034284
delta logL = -0.00019173812052

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6045.92015115
delta logL = -5.15601641382e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10334E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.8658       1.0000          .0000       10.000    
     3 'Normalizat'    1.0328       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3228       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=   6045.920     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      207 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1860.3        .90712E-02** at limit **
   2  Index         1.8812        6.9631        .50000       -.49733E-05
   3  Normalizat    1.0328        .48959E-01    .63143E-01    .23796E-04
   4  Prefactor     1.3227        .49077E-01    .56593E-01   -.42159E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.88121
  Normalizat = 1.03279
  Prefactor  = 1.32275
 **********
 **   18 **HESSE 
 **********

 FCN=   6045.920     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      240 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1982.6        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8812        7.6837        .50000       -.67354    
   3  Normalizat    1.0328        .51104E-01    .27928E-03   -.91940    
   4  Prefactor     1.3227        .51265E-01    .25025E-03   -.82633    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.45195e-09
Minuit parameter uncertainties:
  1  0.00141865
  2  36.0235
  3  0.0511062
  4  0.0512671
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/552755': 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) = 6045.92015106
delta logL = 3.67826942238e-08

Extracting fit parameters...

4FGL J2251.5-4928
   Spectrum: PowerLaw
403    Prefactor:  1.000e-04  1.419e-03  1.000e-04  1.000e+04 ( 1.000e-14)
404        Index:  1.881e+00  3.602e+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.323e+00  5.127e-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.033e+00  5.111e-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/552755/cmap_HighResolution_581731201_581990401_4FGL_J2251.5-4928_daily_bin1321.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.74e-03', job_status='DONE', photon_flux_upper_limit='5.05e-08', time_completed='2021-09-29 00:56:57.433136', job_id='552755', GAL2='1.32', fit_tolerance='1e-08', EG2='1.03', EG='1.03', time_epoch_completed='1632902217.43', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.32', dlogl='3.68e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.85' WHERE bin_id='1321' AND source_name='4FGL J2251.5-4928' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 00:56:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0171>
Subject: Job 552755: <4FGL_J2251.5-4928_daily_bin1321> in cluster <slac> Done

Job <4FGL_J2251.5-4928_daily_bin1321> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 00:40:23 2021
Job was executed on host(s) <bullet0171>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 00:40:25 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:25 2021
Terminated at Wed Sep 29 00:56:58 2021
Results reported at Wed Sep 29 00:56:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2251.5-4928_daily_bin1321 342.879 -49.4691 581731201 581990401 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 :                                   888.35 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             312.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   992 sec.
    Turnaround time :                            995 sec.

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

