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


Performing analysis on: 4FGL_J2251.5-4928_daily_bin1238
RA = 342.879, Dec = -49.4691
tmin = 560217601, tmax = 560476801
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='552624', job_status='RUN', time_executed='2021-09-29 00:40:27.473474', time_epoch_executed='1632901227.47' WHERE source_name='4FGL J2251.5-4928' and cadence='daily' and bin_id='1238'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/552624

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/552624/ft1_4FGL_J2251.5-4928_daily_bin1238.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/552624/ft2_4FGL_J2251.5-4928_daily_bin1238.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/552624/ft1_4FGL_J2251.5-4928_daily_bin1238.fits outfile=/scratch/kocevski/552624/ft1_filteredMKT_4FGL_J2251.5-4928_daily_bin1238.fits ra=342.879 dec=-49.4691 rad=12.0 tmin=560217601.0 tmax=560476801.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.60
user 3.40
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/552624/ft1_filtered_4FGL_J2251.5-4928_daily_bin1238.fits" evtable="EVENTS" scfile=/scratch/kocevski/552624/ft2_4FGL_J2251.5-4928_daily_bin1238.fits sctable="SC_DATA" outfile=/scratch/kocevski/552624/ltcube_560217601_560476801_4FGL_J2251.5-4928_daily_bin1238.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/552624/ft2_4FGL_J2251.5-4928_daily_bin1238.fits
.....................!
real 12.46
user 12.08
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/552624/ft1_filtered_4FGL_J2251.5-4928_daily_bin1238.fits evtable="EVENTS" scfile=/scratch/kocevski/552624/ft2_4FGL_J2251.5-4928_daily_bin1238.fits sctable="SC_DATA" expcube=/scratch/kocevski/552624/ltcube_560217601_560476801_4FGL_J2251.5-4928_daily_bin1238.fits outfile=/scratch/kocevski/552624/expmap_560217601_560476801_4FGL_J2251.5-4928_daily_bin1238.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/552624/ltcube_560217601_560476801_4FGL_J2251.5-4928_daily_bin1238.fits
.....................!
real 190.36
user 184.89
sys 4.92

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/552624/ft1_filtered_4FGL_J2251.5-4928_daily_bin1238.fits scfile=/scratch/kocevski/552624/ft2_4FGL_J2251.5-4928_daily_bin1238.fits outfile=/scratch/kocevski/552624/cmap_560217601_560476801_4FGL_J2251.5-4928_daily_bin1238.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.55
user 0.38
sys 0.14

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/552624/ft1_filtered_4FGL_J2251.5-4928_daily_bin1238.fits evtable="EVENTS" scfile=/scratch/kocevski/552624/ft2_4FGL_J2251.5-4928_daily_bin1238.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/552624/Model_4FGL_J2251.5-4928_daily_bin1238.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/552624/ft1_filtered_4FGL_J2251.5-4928_daily_bin1238.fits.!
real 13.42
user 12.16
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/552624/ft1_filtered_4FGL_J2251.5-4928_daily_bin1238.fits', '/scratch/kocevski/552624/ft2_4FGL_J2251.5-4928_daily_bin1238.fits', expMap='/scratch/kocevski/552624/expmap_560217601_560476801_4FGL_J2251.5-4928_daily_bin1238.fits', expCube='/scratch/kocevski/552624/ltcube_560217601_560476801_4FGL_J2251.5-4928_daily_bin1238.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/552624/Model_4FGL_J2251.5-4928_daily_bin1238.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/552624/ft1_filtered_4FGL_J2251.5-4928_daily_bin1238.fits
Spacecraft file(s): /scratch/kocevski/552624/ft2_4FGL_J2251.5-4928_daily_bin1238.fits
Exposure map: /scratch/kocevski/552624/expmap_560217601_560476801_4FGL_J2251.5-4928_daily_bin1238.fits
Exposure cube: /scratch/kocevski/552624/ltcube_560217601_560476801_4FGL_J2251.5-4928_daily_bin1238.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/552624/Model_4FGL_J2251.5-4928_daily_bin1238.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 15.6520232999

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 15.4615370396

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.2826       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .69412E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.8750       1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.1841       1.0000         .10000E-03   10000.    
     5 'norm      '    1.6153       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .50508E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.4832       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.2137       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .23680E-01   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.1691       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.7212       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.0694       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .84625E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.4495       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.5499       1.0000         .10000E-03   10000.    
    16 'norm      '    .88369       1.0000         .10000E-03   10000.    
    17 'norm      '    1.1394       1.0000         .10000E-03   10000.    
    18 'norm      '    .11323       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.1639       1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.7578       1.0000         .10000E-03   10000.    
    21 'norm      '    .96839E-01   1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.2726       1.0000         .10000E-03   10000.    
    23 'norm      '    7.2906       1.0000         .10000E-03   10000.    
    24 'norm      '    .36767E-01   1.0000         .10000E-03   10000.    
    25 'Prefactor '    2.1836       1.0000         .10000E-03   10000.    
    26 'Prefactor '    1.5694       1.0000         .10000E-03   10000.    
    27 'Prefactor '    2.2519       1.0000         .10000E-03   10000.    
    28 'norm      '    2.9390       1.0000         .10000E-03   10000.    
    29 'Prefactor '    2.4203       1.0000         .10000E-03   10000.    
    30 'Prefactor '    1.0244       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .31033       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .20074E-06   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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   15.44509     FROM MIGRAD    STATUS=CONVERGED    174 CALLS      400 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .25499E-03    749.96        .43719E-02** at limit **
   2  Prefactor     .73934E-03    438.48        .93644E-02** at limit **
   3  Prefactor     1.8750        1.0409         .0000         .0000    
   4  Prefactor     6.2643        .93611       -.20118E-05    .79086E-02
   5  norm          1.6153        1.0584         .0000         .0000    
   6  Prefactor     .10000E-03    .23012       -.69183E-06** at limit **
   7  Prefactor     .11039E-03    .19394        .15114E-04** at limit **
   8  Prefactor     .10025E-03    .26300        .84855E-05** at limit **
   9  Prefactor     .10000E-03    .20889       -.80717E-05** at limit **
  10  Prefactor     4.1691        1.0074         .0000         .0000    
  11  Prefactor     2.7212        1.0180         .0000         .0000    
  12  Prefactor     4.0694        1.0077         .0000         .0000    
  13  Prefactor     .10000E-03    .27217        .20289E-05** at limit **
  14  Prefactor     7.4495        1.0023         .0000         .0000    
  15  Prefactor     3.5499        1.0103         .0000         .0000    
  16  norm          .49832E-03    .40629       -.46195E-04** at limit **
  17  norm          1.1394        1.1628         .0000         .0000    
  18  norm          .10000E-03    .22916        .95930E-06** at limit **
  19  Prefactor     3.1639        1.0131         .0000         .0000    
  20  Prefactor     .10446E-03    .53165E-01    .32829E-04** at limit **
  21  norm          .10000E-03    .22544       -.12610E-06** at limit **
  22  Prefactor     3.2726        1.0122         .0000         .0000    
  23  norm          7.2906        1.0024         .0000         .0000    
  24  norm          .10000E-03    .21184       -.71282E-05** at limit **
  25  Prefactor     2.1836        1.0290         .0000         .0000    
  26  Prefactor     1.5694        1.0628         .0000         .0000    
  27  Prefactor     2.2519        1.0271         .0000         .0000    
  28  norm          2.9390        1.0153         .0000         .0000    
  29  Prefactor     2.4203        1.0231         .0000         .0000    
  30  Prefactor     1.0244        1.2821         .0000         .0000    
  31  Normalizat    .31128        .61484        .31398E-04    .57141E-05
  32  Prefactor     .35312E-10    .25768       -.25690E-03** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000254995
  Prefactor  = 0.000739338
  Prefactor  = 1.87498
  Prefactor  = 6.26433
  norm       = 1.61533
  Prefactor  = 0.0001
  Prefactor  = 0.000110394
  Prefactor  = 0.000100247
  Prefactor  = 0.0001
  Prefactor  = 4.16915
  Prefactor  = 2.7212
  Prefactor  = 4.06936
  Prefactor  = 0.0001
  Prefactor  = 7.44949
  Prefactor  = 3.54989
  norm       = 0.000498324
  norm       = 1.13943
  norm       = 0.0001
  Prefactor  = 3.16388
  Prefactor  = 0.00010446
  norm       = 0.0001
  Prefactor  = 3.27264
  norm       = 7.2906
  norm       = 0.0001
  Prefactor  = 2.18357
  Prefactor  = 1.5694
  Prefactor  = 2.25189
  norm       = 2.93896
  Prefactor  = 2.42032
  Prefactor  = 1.02442
  Normalizat = 0.311278
  Prefactor  = 3.53118e-11
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   15.44509     FROM HESSE     STATUS=FAILED        13 CALLS      413 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .25499E-03    749.96        .43719E-02   -1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .73934E-03    438.48        .93644E-02   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     571.08        569.06         .0000       -1.5434    
   4  Prefactor     6.2643        .93611       -.20118E-05   -1.5207    
   5  norm          1.6153        1.0584         .0000       -1.5454    
   6  Prefactor     .10000E-03    .23012       -.69183E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .11039E-03    .19394        .15114E-04   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10025E-03    .26300        .84855E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    .20889       -.80717E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.1691        1.0074         .0000       -1.5300    
  11  Prefactor     2.7212        1.0180         .0000       -1.5378    
  12  Prefactor     4.0694        1.0077         .0000       -1.5304    
  13  Prefactor     .10000E-03    .27217        .20289E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     7.4495        1.0023         .0000       -1.5162    
  15  Prefactor     3.5499        1.0103         .0000       -1.5331    
  16  norm          .49832E-03    .40629       -.46195E-04   -1.5712    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.1394        1.1628         .0000       -1.5494    
  18  norm          .10000E-03    .22916        .95930E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.1639        1.0131         .0000       -1.5352    
  20  Prefactor     .10446E-03    .53165E-01    .32829E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    .22544       -.12610E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     3.2726        1.0122         .0000       -1.5346    
  23  norm          7.2906        1.0024         .0000       -1.5168    
  24  norm          .10000E-03    .21184       -.71282E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     2.1836        1.0290         .0000       -1.5412    
  26  Prefactor     1.5694        1.0628         .0000       -1.5457    
  27  Prefactor     2.2519        1.0271         .0000       -1.5408    
  28  norm          2.9390        1.0153         .0000       -1.5365    
  29  Prefactor     2.4203        1.0231         .0000       -1.5397    
  30  Prefactor     1.0244        1.2821         .0000       -1.5506    
  31  Normalizat    .31128        .61484        .31398E-04   -1.2217    
  32  Prefactor     .35312E-10    .25768       -.25690E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.38835e-09
Minuit parameter uncertainties:
  1  0.690704
  2  1.06684
  3  1.0409
  4  0.936114
  5  1.05842
  6  4.31073e-07
  7  0.00283961
  8  0.00051005
  9  1.34375e-05
  10  1.00738
  11  1.01796
  12  1.00775
  13  8.71465e-07
  14  1.00227
  15  1.01028
  16  0.025443
  17  1.16278
  18  4.72587e-06
  19  1.01307
  20  0.000973848
  21  1.64583e-07
  22  1.01217
  23  1.00237
  24  4.18078e-06
  25  1.02897
  26  1.06278
  27  1.02706
  28  1.01526
  29  1.02311
  30  1.28213
  31  0.628951
  32  6.0592e-06
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 15.4450946927

Extracting fit parameters...

4FGL J2251.5-4928
   Spectrum: PowerLaw
403    Prefactor:  7.449e+00  1.002e+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

GAL_V02
   Spectrum: PowerLaw
589    Prefactor:  3.531e-11  6.059e-06  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:  3.113e-01  6.290e-01  1.000e-02  1.000e+01 ( 1.000e+00)

calc_int error: parameter max 10000.0 is not large enough
delta logLike = -1.7763568394e-15

TS (Fixed Index): 0.00
Ra Dec: 342.879 -49.469
Photon Flux Upper Limit: -1.00e+00 ph cm-2 s-1
Energy Flux Upper Limit: -7.40e+04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/552624/likelihoodResults_560217601_560476801_4FGL_J2251.5-4928_daily_bin1238.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): 101
logL (Free Index) = 15.4456270782
delta logL = -0.000532385440172

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 15.4456270782
delta logL = -0.000532385440172

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Index     '    1.8511       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   15.44563     FROM MIGRAD    STATUS=CONVERGED     15 CALLS       62 TOTAL
                     EDM=   .00E+00  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1    Index       1.8511        1.0256        .26723         .0000    
                               ERR DEF=  .500    
Final values: 
  Index      = 1.85112
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   15.44563     FROM HESSE     STATUS=FAILED         7 CALLS       69 TOTAL
                     EDM=   .00E+00  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1    Index       .35581        1.6071        .26723       -.68126    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 0
Minuit parameter uncertainties:
  1  1.03789
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/552624': 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): 101
logL (Free Index) = 15.4456270782
delta logL = -0.000532385440172

Extracting fit parameters...

4FGL J2251.5-4928
   Spectrum: PowerLaw
403    Prefactor:  7.449e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14) fixed
404        Index:  1.851e+00  1.038e+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:  1.512e-06  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
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:  3.085e-01  0.000e+00  1.000e-02  1.000e+01 ( 1.000e+00) fixed


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/552624/cmap_HighResolution_560217601_560476801_4FGL_J2251.5-4928_daily_bin1238.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='-7.40e+04', job_status='DONE', photon_flux_upper_limit='-1.00e+00', time_completed='2021-09-29 00:45:50.093964', job_id='552624', GAL2='0.00', fit_tolerance='1e-08', EG2='0.31', EG='0.31', time_epoch_completed='1632901550.09', return_code2='101', ts='0.00', comment='SUCCESS', return_code='101', GAL='0.00', dlogl='-5.32e-04', ts2='0.00', photon_index_error='0.00', photon_index='1.85' WHERE bin_id='1238' AND source_name='4FGL J2251.5-4928' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 00:45:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0091>
Subject: Job 552624: <4FGL_J2251.5-4928_daily_bin1238> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2251.5-4928_daily_bin1238 342.879 -49.4691 560217601 560476801 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 :                                   320.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             265.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   337 sec.
    Turnaround time :                            337 sec.

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

