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


Performing analysis on: 4FGL_J2251.5-4928_daily_bin1455
RA = 342.879, Dec = -49.4691
tmin = 616464001, tmax = 616723201
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='552980', job_status='RUN', time_executed='2021-09-29 00:41:43.553784', time_epoch_executed='1632901303.55' WHERE source_name='4FGL J2251.5-4928' and cadence='daily' and bin_id='1455'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/552980

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/552980/ft1_4FGL_J2251.5-4928_daily_bin1455.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/552980/ft2_4FGL_J2251.5-4928_daily_bin1455.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/552980/ft1_4FGL_J2251.5-4928_daily_bin1455.fits outfile=/scratch/kocevski/552980/ft1_filteredMKT_4FGL_J2251.5-4928_daily_bin1455.fits ra=342.879 dec=-49.4691 rad=12.0 tmin=616464001.0 tmax=616723201.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.88
user 2.69
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/552980/ft1_filtered_4FGL_J2251.5-4928_daily_bin1455.fits" evtable="EVENTS" scfile=/scratch/kocevski/552980/ft2_4FGL_J2251.5-4928_daily_bin1455.fits sctable="SC_DATA" outfile=/scratch/kocevski/552980/ltcube_616464001_616723201_4FGL_J2251.5-4928_daily_bin1455.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/552980/ft2_4FGL_J2251.5-4928_daily_bin1455.fits
.....................!
real 12.32
user 11.97
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/552980/ft1_filtered_4FGL_J2251.5-4928_daily_bin1455.fits evtable="EVENTS" scfile=/scratch/kocevski/552980/ft2_4FGL_J2251.5-4928_daily_bin1455.fits sctable="SC_DATA" expcube=/scratch/kocevski/552980/ltcube_616464001_616723201_4FGL_J2251.5-4928_daily_bin1455.fits outfile=/scratch/kocevski/552980/expmap_616464001_616723201_4FGL_J2251.5-4928_daily_bin1455.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/552980/ltcube_616464001_616723201_4FGL_J2251.5-4928_daily_bin1455.fits
.....................!
real 191.67
user 186.22
sys 5.14

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/552980/ft1_filtered_4FGL_J2251.5-4928_daily_bin1455.fits scfile=/scratch/kocevski/552980/ft2_4FGL_J2251.5-4928_daily_bin1455.fits outfile=/scratch/kocevski/552980/cmap_616464001_616723201_4FGL_J2251.5-4928_daily_bin1455.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.52
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/552980/ft1_filtered_4FGL_J2251.5-4928_daily_bin1455.fits scfile=/scratch/kocevski/552980/ft2_4FGL_J2251.5-4928_daily_bin1455.fits outfile=/scratch/kocevski/552980/cmap_HighResolution_616464001_616723201_4FGL_J2251.5-4928_daily_bin1455.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/552980/ft1_filtered_4FGL_J2251.5-4928_daily_bin1455.fits evtable="EVENTS" scfile=/scratch/kocevski/552980/ft2_4FGL_J2251.5-4928_daily_bin1455.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/552980/Model_4FGL_J2251.5-4928_daily_bin1455.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/552980/ft1_filtered_4FGL_J2251.5-4928_daily_bin1455.fits.........................!
real 19.46
user 18.24
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .20300E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11813E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .37342E-02   1.0000         .10000E-03   10000.    
     5 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    14.007       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .19496E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10245E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    5.7079       1.0000         .10000E-03   10000.    
    22 'Prefactor '    52.562       1.0000         .10000E-03   10000.    
    23 'norm      '    1.6286       1.0000         .10000E-03   10000.    
    24 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .71202E-02   1.0000         .10000E-03   10000.    
    26 'Prefactor '    3.2906       1.0000         .10000E-03   10000.    
    27 'Prefactor '    16.020       1.0000         .10000E-03   10000.    
    28 'norm      '    82.510       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    9.9039       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    32 'Prefactor '    .80937       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=   1112.242     FROM MIGRAD    STATUS=CONVERGED    947 CALLS     5214 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6413.8       -.12350E-02** at limit **
   2  Prefactor     .10000E-03    1536.2       -.80840E-03** at limit **
   3  Prefactor     10000.        340.60       -.23938E-03** at limit **
   4  Prefactor     .10000E-03    7624.0       -.94280E-03** at limit **
   5  norm          .10000E-03    107.44        .46878E-04** at limit **
   6  Prefactor     14.047        23.379       -.16701E-05   -.45815E-04
   7  Prefactor     .10000E-03    787.19        .40370E-04** at limit **
   8  Prefactor     .10000E-03    13.805       -.32859E-08** at limit **
   9  Prefactor     .10000E-03    30.899       -.13902E-05** at limit **
  10  Prefactor     .10000E-03    65.148       -.23168E-06** at limit **
  11  Prefactor     .10000E-03    23.942        .16870E-06** at limit **
  12  Prefactor     .10000E-03    164.52       -.10827E-03** at limit **
  13  Prefactor     .10000E-03    14.662        .48838E-07** at limit **
  14  Prefactor     .10000E-03    44.606        .27787E-04** at limit **
  15  Prefactor     .10000E-03    8.1955       -.34196E-08** at limit **
  16  norm          .10000E-03    10.787       -.58467E-08** at limit **
  17  norm          .10000E-03    4.9812        .19411E-07** at limit **
  18  norm          .10000E-03    2.8774        .68338E-08** at limit **
  19  Prefactor     .10000E-03    6.6480       -.55184E-07** at limit **
  20  Prefactor     .10000E-03    46.920       -.30513E-04** at limit **
  21  norm          5.7098        5.4737       -.56506E-07   -.86963E-04
  22  Prefactor     52.577        30.123        .14037E-05    .50821E-04
  23  norm          1.6293        1.9348       -.19012E-06   -.59679E-04
  24  norm          .10000E-03    2.9734        .30785E-07** at limit **
  25  Prefactor     .10023E-03    29.785       -.32197E-05** at limit **
  26  Prefactor     3.2907        4.7557       -.19047E-06   -.87735E-05
  27  Prefactor     16.025        37.501        .24397E-06    .56304E-05
  28  norm          82.496        44.814        .17393E-05    .50582E-04
  29  Prefactor     .10000E-03    3.8554       -.57363E-07** at limit **
  30  Prefactor     9.9044        6.4817       -.48577E-06    .36693E-04
  31  Normalizat    .10000E-01    .13302        .63273E-06** at limit **
  32  Prefactor     .80878        .21678        .15917E-06    .13885E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10000
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 14.0469
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.70982
  Prefactor  = 52.5769
  norm       = 1.6293
  norm       = 0.0001
  Prefactor  = 0.000100229
  Prefactor  = 3.29068
  Prefactor  = 16.0251
  norm       = 82.4961
  Prefactor  = 0.0001
  Prefactor  = 9.9044
  Normalizat = 0.01
  Prefactor  = 0.808778
 **********
 **   18 **HESSE 
 **********

 FCN=   1112.242     FROM HESSE     STATUS=OK           641 CALLS     5855 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6413.8        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    1536.1        .18164E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     10000.        340.61        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    7624.0        .19578E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    107.44        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     14.047        23.322        .10702E-03   -1.4958    
   7  Prefactor     .10000E-03    788.25        .20252E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    13.806        .12106E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    30.901        .18117E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    65.148        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    23.942        .15946E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    164.52        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    14.730        .12473E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    44.606        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    8.1962        .93267E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    10.791        .10700E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    4.9828        .72702E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    2.8781        .55253E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    6.6503        .83893E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    47.001        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          5.7098        5.4611        .36508E-03   -1.5230    
  22  Prefactor     52.577        29.939        .55321E-04   -1.4256    
  23  norm          1.6293        1.9044        .45378E-04   -1.5453    
  24  norm          .10000E-03    2.9939        .56091E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10023E-03    124.46        .34608E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     3.2907        4.7142        .72352E-04   -1.5345    
  27  Prefactor     16.025        37.222        .10007E-03   -1.4907    
  28  norm          82.496        44.809        .22110E-03   -1.3889    
  29  Prefactor     .10000E-03    3.8735        .63851E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     9.9044        6.4764        .65521E-04   -1.5078    
  31  Normalizat    .10000E-01    .14885        .67646E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     .80878        .20072        .20828E-03   -.99406    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.89759e-09
Minuit parameter uncertainties:
  1  0.000240316
  2  0.000254082
  3  2.40745e-05
  4  0.000188457
  5  9.47627e-07
  6  23.3371
  7  0.00288682
  8  2.77966e-06
  9  7.53628e-06
  10  1.83193e-06
  11  3.53758e-07
  12  4.8671e-07
  13  7.97967e-06
  14  5.36022e-07
  15  2.99639e-07
  16  2.73314e-06
  17  3.06214e-09
  18  1.101e-06
  19  1.80678e-05
  20  6.13354e-05
  21  5.46155
  22  29.9477
  23  1.90443
  24  6.09204e-06
  25  0.0106931
  26  4.71474
  27  37.276
  28  44.8274
  29  1.23586e-05
  30  6.47683
  31  8.06087e-07
  32  0.200904
Done.

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

Extracting fit parameters...

4FGL J2251.5-4928
   Spectrum: PowerLaw
403    Prefactor:  1.000e-04  5.360e-07  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:  8.088e-01  2.009e-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  8.061e-07  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/552980/likelihoodResults_616464001_616723201_4FGL_J2251.5-4928_daily_bin1455.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) = 1112.24205507
delta logL = -0.000107468294573

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1112.24194839
delta logL = -7.92362698121e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12093E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0521       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80883       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=   1112.242     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      277 TOTAL
                     EDM=   .65E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10235E-03    183.92        .18142E-02** at limit **
   2  Index         1.9818        5.8750        .50000        .89694E-05
   3  Normalizat    .10000E-01    .15220E-02    .67646E-02** at limit **
   4  Prefactor     .80878        .17583E-01    .20828E-03   -.30969E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010235
  Index      = 1.98178
  Normalizat = 0.01
  Prefactor  = 0.808776
 **********
 **   18 **HESSE 
 **********

 FCN=   1112.242     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      306 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10235E-03    770.44        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9818        6.7939        .50000       -.64806    
   3  Normalizat    .10000E-01    .67331E-02    .13529E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .80878        .36974E-01    .41655E-04   -.99406    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.88982e-09
Minuit parameter uncertainties:
  1  0.0862272
  2  522.938
  3  1.8134e-07
  4  0.0369752
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/552980': 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) = 1112.24194787
delta logL = -2.76084620054e-07

Extracting fit parameters...

4FGL J2251.5-4928
   Spectrum: PowerLaw
403    Prefactor:  1.023e-04  8.623e-02  1.000e-04  1.000e+04 ( 1.000e-14)
404        Index:  1.982e+00  5.229e+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:  8.088e-01  3.698e-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.000e-02  1.813e-07  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/552980/cmap_HighResolution_616464001_616723201_4FGL_J2251.5-4928_daily_bin1455.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.05e-02', job_status='DONE', photon_flux_upper_limit='1.42e-07', time_completed='2021-09-29 00:50:05.321223', job_id='552980', GAL2='0.81', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1632901805.32', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='-2.76e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.85' WHERE bin_id='1455' AND source_name='4FGL J2251.5-4928' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 00:50:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0173>
Subject: Job 552980: <4FGL_J2251.5-4928_daily_bin1455> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2251.5-4928_daily_bin1455 342.879 -49.4691 616464001 616723201 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 :                                   436.21 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             242.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   565 sec.
    Turnaround time :                            567 sec.

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

