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


Performing analysis on: 4FGL_J2251.5-4928_daily_bin478
RA = 342.879, Dec = -49.4691
tmin = 363225601, tmax = 363484801
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='535906', job_status='RUN', time_executed='2021-09-28 23:51:00.827896', time_epoch_executed='1632898260.83' WHERE source_name='4FGL J2251.5-4928' and cadence='daily' and bin_id='478'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/535906

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/535906/ft1_4FGL_J2251.5-4928_daily_bin478.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/535906/ft2_4FGL_J2251.5-4928_daily_bin478.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/535906/ft1_4FGL_J2251.5-4928_daily_bin478.fits outfile=/scratch/kocevski/535906/ft1_filteredMKT_4FGL_J2251.5-4928_daily_bin478.fits ra=342.879 dec=-49.4691 rad=12.0 tmin=363225601.0 tmax=363484801.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 7.29
user 6.96
sys 0.30

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/535906/ft1_filtered_4FGL_J2251.5-4928_daily_bin478.fits" evtable="EVENTS" scfile=/scratch/kocevski/535906/ft2_4FGL_J2251.5-4928_daily_bin478.fits sctable="SC_DATA" outfile=/scratch/kocevski/535906/ltcube_363225601_363484801_4FGL_J2251.5-4928_daily_bin478.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/535906/ft2_4FGL_J2251.5-4928_daily_bin478.fits
.....................!
real 11.68
user 11.34
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/535906/ft1_filtered_4FGL_J2251.5-4928_daily_bin478.fits evtable="EVENTS" scfile=/scratch/kocevski/535906/ft2_4FGL_J2251.5-4928_daily_bin478.fits sctable="SC_DATA" expcube=/scratch/kocevski/535906/ltcube_363225601_363484801_4FGL_J2251.5-4928_daily_bin478.fits outfile=/scratch/kocevski/535906/expmap_363225601_363484801_4FGL_J2251.5-4928_daily_bin478.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/535906/ltcube_363225601_363484801_4FGL_J2251.5-4928_daily_bin478.fits
.....................!
real 190.79
user 184.96
sys 5.51

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/535906/ft1_filtered_4FGL_J2251.5-4928_daily_bin478.fits scfile=/scratch/kocevski/535906/ft2_4FGL_J2251.5-4928_daily_bin478.fits outfile=/scratch/kocevski/535906/cmap_363225601_363484801_4FGL_J2251.5-4928_daily_bin478.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/535906/ft1_filtered_4FGL_J2251.5-4928_daily_bin478.fits scfile=/scratch/kocevski/535906/ft2_4FGL_J2251.5-4928_daily_bin478.fits outfile=/scratch/kocevski/535906/cmap_HighResolution_363225601_363484801_4FGL_J2251.5-4928_daily_bin478.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    72.013       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.0191       1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.3666       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .16195E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    55.670       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.6728       1.0000         .10000E-03   10000.    
    11 'Prefactor '    25.803       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.9140       1.0000         .10000E-03   10000.    
    17 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .29528       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    3.1883       1.0000         .10000E-03   10000.    
    22 'Prefactor '    14.848       1.0000         .10000E-03   10000.    
    23 'norm      '    17.997       1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    1.3662       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    8.9183       1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.1356       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .66329       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=   4352.079     FROM MIGRAD    STATUS=CONVERGED    849 CALLS     4404 TOTAL
                     EDM=   .63E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     72.038        61.951        .30069E-06    .24698E-03
   2  Prefactor     1.0193        10.673       -.11234E-05    .53990E-03
   3  Prefactor     9.3671        4.8492       -.99829E-07    .70604E-04
   4  Prefactor     .10000E-03    99.730        .26057E-05** at limit **
   5  norm          .10000E-03    2.6045       -.17698E-08** at limit **
   6  Prefactor     .10001E-03    2.6406        .21264E-07** at limit **
   7  Prefactor     55.696        54.512        .26415E-05    .14697E-03
   8  Prefactor     .10000E-03    2.9637        .28181E-07** at limit **
   9  Prefactor     .10000E-03    8.4495        .25024E-06** at limit **
  10  Prefactor     4.6697        80.028       -.17900E-06    .47627E-05
  11  Prefactor     25.801        21.371        .36759E-06    .20950E-04
  12  Prefactor     .10000E-03    45.077        .10607E-06** at limit **
  13  Prefactor     .10000E-03    4.3989        .10918E-06** at limit **
  14  Prefactor     .10000E-03    19.693        .13737E-05** at limit **
  15  Prefactor     .10000E-03    8.3403       -.18333E-06** at limit **
  16  norm          3.9139        14.046        .46981E-06   -.42724E-04
  17  norm          .10000E-03    6.9097        .30192E-07** at limit **
  18  norm          .10000E-03    2.0332        .14415E-08** at limit **
  19  Prefactor     .29190        18.711        .15081E-05   -.13187E-03
  20  Prefactor     .10000E-03    11.213        .17800E-06** at limit **
  21  norm          3.1881        3.2633        .59086E-07   -.19912E-04
  22  Prefactor     14.841        29.463       -.10354E-05   -.21283E-03
  23  norm          17.997        3.1784       -.38614E-07   -.81895E-03
  24  norm          .10000E-03    1.7618       -.18419E-08** at limit **
  25  Prefactor     .10000E-03    21.868       -.80355E-06** at limit **
  26  Prefactor     1.3663        5.0004        .10209E-05   -.25389E-04
  27  Prefactor     .10000E-03    107.30       -.42208E-05** at limit **
  28  norm          .10000E-03    13.725       -.42109E-06** at limit **
  29  Prefactor     .10000E-03    3.5432       -.90504E-07** at limit **
  30  Prefactor     8.9176        8.9782        .17241E-05   -.14796E-03
  31  Normalizat    1.1359        .22361       -.26302E-05    .53528E-04
  32  Prefactor     .66312        .19146        .65261E-07   -.62682E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 72.0378
  Prefactor  = 1.01931
  Prefactor  = 9.36708
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 55.696
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.66968
  Prefactor  = 25.8014
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.91389
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.291896
  Prefactor  = 0.0001
  norm       = 3.18814
  Prefactor  = 14.8414
  norm       = 17.9967
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.36626
  Prefactor  = 0.000100003
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.91757
  Normalizat = 1.13587
  Prefactor  = 0.66312
 **********
 **   18 **HESSE 
 **********

 FCN=   4352.079     FROM HESSE     STATUS=OK           653 CALLS     5057 TOTAL
                     EDM=   .58E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     72.038        64.720        .47308E-04   -1.4008    
   2  Prefactor     1.0193        48.880        .33286E-02   -1.5506    
   3  Prefactor     9.3671        4.8504        .99694E-04   -1.5096    
   4  Prefactor     .10000E-03    100.28        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    2.6048        .10398E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10001E-03    21.585        .20241E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     55.696        54.944        .53763E-04   -1.4214    
   8  Prefactor     .10000E-03    2.9968        .11089E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    8.4577        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.6697        76.575        .18617E-03   -1.5276    
  11  Prefactor     25.801        20.865        .78862E-04   -1.4692    
  12  Prefactor     .10000E-03    45.080        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    4.4321        .13514E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    19.842        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    8.3474        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.9139        14.037        .20393E-03   -1.5312    
  17  norm          .10000E-03    6.9325        .16931E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    2.0336        .91862E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .29190        168.38        .39346E-02   -1.5600    
  20  Prefactor     .10000E-03    11.221        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          3.1881        3.2617        .11747E-03   -1.5351    
  22  Prefactor     14.841        33.548        .10394E-03   -1.4937    
  23  norm          17.997        3.1594        .44429E-04   -1.4859    
  24  norm          .10000E-03    1.7663        .85512E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    22.026        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     1.3663        5.0100        .26175E-03   -1.5474    
  27  Prefactor     .10000E-03    109.01        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    13.741        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    3.5546        .12117E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     8.9176        8.9789        .67108E-03   -1.5111    
  31  Normalizat    1.1359        .26378        .23812E-03   -.88608    
  32  Prefactor     .66312        .22991        .28237E-03   -1.0499    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.75877e-09
Minuit parameter uncertainties:
  1  64.7833
  2  14.1287
  3  4.85062
  4  0.000894186
  5  1.32414e-06
  6  0.000668652
  7  54.9936
  8  9.72485e-06
  9  1.68671e-05
  10  37.8764
  11  20.8707
  12  2.55746e-05
  13  6.75536e-06
  14  0.00017108
  15  8.06522e-06
  16  14.0493
  17  2.2031e-06
  18  4.48317e-07
  19  14.0586
  20  2.07528e-05
  21  3.26189
  22  33.5903
  23  3.15947
  24  1.10346e-06
  25  3.11856e-05
  26  5.01156
  27  0.00107303
  28  3.72842e-05
  29  7.72288e-07
  30  8.9803
  31  0.264091
  32  0.230238
Done.

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

Extracting fit parameters...

4FGL J2251.5-4928
   Spectrum: PowerLaw
403    Prefactor:  1.000e-04  1.711e-04  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:  6.631e-01  2.302e-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.136e+00  2.641e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 342.879 -49.469
Photon Flux Upper Limit: 4.47e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.31e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/535906/likelihoodResults_363225601_363484801_4FGL_J2251.5-4928_daily_bin478.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) = 4352.07958249
delta logL = -0.00023940401843

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4352.07934318
delta logL = -9.83927748166e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9374       1.0000          .0000       10.000    
     3 'Normalizat'    1.1359       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .66313       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=   4352.079     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      237 TOTAL
                     EDM=   .88E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    752.42        .90712E-02** at limit **
   2  Index         1.9267        5.1447        .50000        .43211E-05
   3  Normalizat    1.1359        .34671E-01    .53854E-01    .26527E-05
   4  Prefactor     .66312        .32374E-01    .63826E-01    .20359E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.92667
  Normalizat = 1.13587
  Prefactor  = 0.663122
 **********
 **   18 **HESSE 
 **********

 FCN=   4352.079     FROM HESSE     STATUS=OK            33 CALLS      270 TOTAL
                     EDM=   .19E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    19.611        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9267        5.9498        .50000       -.66196    
   3  Normalizat    1.1359        .23898        .23812E-03   -.88608    
   4  Prefactor     .66312        .22286        .28237E-03   -1.0499    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.91679e-11
Minuit parameter uncertainties:
  1  1.29411e-05
  2  3.99481
  3  0.239212
  4  0.223158
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/535906': 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) = 4352.07934316
delta logL = -7.576909411e-08

Extracting fit parameters...

4FGL J2251.5-4928
   Spectrum: PowerLaw
403    Prefactor:  1.000e-04  1.294e-05  1.000e-04  1.000e+04 ( 1.000e-14)
404        Index:  1.927e+00  3.995e+00  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:  6.631e-01  2.232e-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.136e+00  2.392e-01  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/535906/cmap_HighResolution_363225601_363484801_4FGL_J2251.5-4928_daily_bin478.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.31e-03', job_status='DONE', photon_flux_upper_limit='4.47e-08', time_completed='2021-09-29 00:03:47.150496', job_id='535906', GAL2='0.66', fit_tolerance='1e-08', EG2='1.14', EG='1.14', time_epoch_completed='1632899027.15', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.66', dlogl='-7.58e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.85' WHERE bin_id='478' AND source_name='4FGL J2251.5-4928' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 00:03:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0252>
Subject: Job 535906: <4FGL_J2251.5-4928_daily_bin478> in cluster <slac> Done

Job <4FGL_J2251.5-4928_daily_bin478> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 23:50:47 2021
Job was executed on host(s) <bullet0252>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 23:50:49 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 23:50:49 2021
Terminated at Wed Sep 29 00:03:47 2021
Results reported at Wed Sep 29 00:03:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2251.5-4928_daily_bin478 342.879 -49.4691 363225601 363484801 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 :                                   760.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             293.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   778 sec.
    Turnaround time :                            780 sec.

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

