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


Performing analysis on: 4FGL_J2251.5-4928_daily_bin1384
RA = 342.879, Dec = -49.4691
tmin = 598060801, tmax = 598320001
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='552864', job_status='RUN', time_executed='2021-09-29 00:42:16.624876', time_epoch_executed='1632901336.62' WHERE source_name='4FGL J2251.5-4928' and cadence='daily' and bin_id='1384'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/552864

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/552864/ft1_4FGL_J2251.5-4928_daily_bin1384.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/552864/ft2_4FGL_J2251.5-4928_daily_bin1384.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/552864/ft1_4FGL_J2251.5-4928_daily_bin1384.fits outfile=/scratch/kocevski/552864/ft1_filteredMKT_4FGL_J2251.5-4928_daily_bin1384.fits ra=342.879 dec=-49.4691 rad=12.0 tmin=598060801.0 tmax=598320001.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.67
user 3.44
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/552864/ft2_4FGL_J2251.5-4928_daily_bin1384.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/552864/ft1_filteredMKT_4FGL_J2251.5-4928_daily_bin1384.fits evtable="EVENTS" outfile="/scratch/kocevski/552864/ft1_filtered_4FGL_J2251.5-4928_daily_bin1384.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.40
user 0.24
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/552864/ft1_filtered_4FGL_J2251.5-4928_daily_bin1384.fits" evtable="EVENTS" scfile=/scratch/kocevski/552864/ft2_4FGL_J2251.5-4928_daily_bin1384.fits sctable="SC_DATA" outfile=/scratch/kocevski/552864/ltcube_598060801_598320001_4FGL_J2251.5-4928_daily_bin1384.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/552864/ft2_4FGL_J2251.5-4928_daily_bin1384.fits
.....................!
real 8.64
user 8.33
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/552864/ft1_filtered_4FGL_J2251.5-4928_daily_bin1384.fits evtable="EVENTS" scfile=/scratch/kocevski/552864/ft2_4FGL_J2251.5-4928_daily_bin1384.fits sctable="SC_DATA" expcube=/scratch/kocevski/552864/ltcube_598060801_598320001_4FGL_J2251.5-4928_daily_bin1384.fits outfile=/scratch/kocevski/552864/expmap_598060801_598320001_4FGL_J2251.5-4928_daily_bin1384.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/552864/ltcube_598060801_598320001_4FGL_J2251.5-4928_daily_bin1384.fits
.....................!
real 140.09
user 136.10
sys 3.76

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/552864/ft1_filtered_4FGL_J2251.5-4928_daily_bin1384.fits scfile=/scratch/kocevski/552864/ft2_4FGL_J2251.5-4928_daily_bin1384.fits outfile=/scratch/kocevski/552864/cmap_598060801_598320001_4FGL_J2251.5-4928_daily_bin1384.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.44
user 0.27
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/552864/ft1_filtered_4FGL_J2251.5-4928_daily_bin1384.fits scfile=/scratch/kocevski/552864/ft2_4FGL_J2251.5-4928_daily_bin1384.fits outfile=/scratch/kocevski/552864/cmap_HighResolution_598060801_598320001_4FGL_J2251.5-4928_daily_bin1384.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.44
user 0.28
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/552864/ft1_filtered_4FGL_J2251.5-4928_daily_bin1384.fits evtable="EVENTS" scfile=/scratch/kocevski/552864/ft2_4FGL_J2251.5-4928_daily_bin1384.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/552864/Model_4FGL_J2251.5-4928_daily_bin1384.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/552864/ft1_filtered_4FGL_J2251.5-4928_daily_bin1384.fits.....................!
real 35.91
user 34.83
sys 1.00

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .68988       1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.8928       1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.9597       1.0000         .10000E-03   10000.    
     5 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.6982       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.5818       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10100E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10199E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.8309       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .19420E-01   1.0000         .10000E-03   10000.    
    18 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .33601E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    27.448       1.0000         .10000E-03   10000.    
    21 'norm      '    3.0749       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .57238       1.0000         .10000E-03   10000.    
    24 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .13095E-02   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .59692E-02   1.0000         .10000E-03   10000.    
    27 'Prefactor '    3.1821       1.0000         .10000E-03   10000.    
    28 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    6.7981       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.1633       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .55378       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=   6790.894     FROM MIGRAD    STATUS=CONVERGED   1608 CALLS     5189 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.915        .18142E-02** at limit **
   2  Prefactor     .67122        22.966        .27229E-02    .24414E-03
   3  Prefactor     5.8925        3.4034        .10933E-03   -.29853E-03
   4  Prefactor     7.1589        432.09        .15207E-03    .11737E-04
   5  norm          .10000E-03    3.4684        .14940E-02** at limit **
   6  Prefactor     .10000E-03    .89073        .75548E-03** at limit **
   7  Prefactor     .10000E-03    8.6198        .18142E-02** at limit **
   8  Prefactor     1.6985        4.5055        .26681E-03    .23516E-03
   9  Prefactor     .10000E-03    3.4411        .14924E-02** at limit **
  10  Prefactor     .10000E-03    63.978        .36285E-03** at limit **
  11  Prefactor     3.5849        7.9335        .21353E-03    .34064E-03
  12  Prefactor     .10000E-03    20.306        .18142E-02** at limit **
  13  Prefactor     .10000E-03    1.6007        .10157E-02** at limit **
  14  Prefactor     .10000E-03    14.665        .18142E-02** at limit **
  15  Prefactor     7.8287        11.126        .14329E-03    .16495E-03
  16  norm          .10000E-03    4.2549        .16580E-02** at limit **
  17  norm          .29453E-01    3.6003        .53051E-01    .10007E-03
  18  norm          .10000E-03    1.2759        .90841E-03** at limit **
  19  Prefactor     .32183E-03    4.6717        .41459E-01** at limit **
  20  Prefactor     27.479        27.031        .76467E-04    .76122E-04
  21  norm          3.0731        3.1914        .13082E-03    .25767E-03
  22  Prefactor     .10000E-03    5.9447        .18142E-02** at limit **
  23  norm          .57222        .61913        .66366E-03   -.13781E-02
  24  norm          .10000E-03    1.2966        .90872E-03** at limit **
  25  Prefactor     .10007E-03    24.390        .35714E-02** at limit **
  26  Prefactor     .12830E-01    5.0503        .28506E-01   -.49086E-03
  27  Prefactor     3.1907        20.493        .22717E-03   -.15879E-03
  28  norm          .10000E-03    5.9148        .18142E-02** at limit **
  29  Prefactor     6.8000        4.4661        .12877E-03   -.42403E-03
  30  Prefactor     .10000E-03    3.2456        .21233E-02** at limit **
  31  Normalizat    1.1635        .17408        .19104E-03    .54855E-04
  32  Prefactor     .55376        .15850        .25969E-03   -.27449E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.671224
  Prefactor  = 5.89248
  Prefactor  = 7.15889
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.69845
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 3.58485
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.82874
  norm       = 0.0001
  norm       = 0.0294532
  norm       = 0.0001
  Prefactor  = 0.000321829
  Prefactor  = 27.4792
  norm       = 3.07312
  Prefactor  = 0.0001
  norm       = 0.57222
  norm       = 0.0001
  Prefactor  = 0.000100068
  Prefactor  = 0.0128297
  Prefactor  = 3.19074
  norm       = 0.0001
  Prefactor  = 6.8
  Prefactor  = 0.000100001
  Normalizat = 1.16346
  Prefactor  = 0.553759
 **********
 **   18 **HESSE 
 **********

 FCN=   6790.894     FROM HESSE     STATUS=OK           659 CALLS     5848 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.916        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .67122        20.436        .10892E-03   -1.5544    
   3  Prefactor     5.8925        3.4034        .43734E-05   -1.5222    
   4  Prefactor     7.1589        388.72        .60829E-05   -1.5173    
   5  norm          .10000E-03    3.4689        .29880E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    .89079        .15110E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    8.6200        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.6985        4.5035        .10673E-04   -1.5447    
   9  Prefactor     .10000E-03    3.4412        .29848E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    63.981        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.5849        7.9322        .85411E-05   -1.5329    
  12  Prefactor     .10000E-03    20.306        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.6008        .20313E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    14.666        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     7.8287        11.124        .57316E-05   -1.5148    
  16  norm          .10000E-03    4.2553        .33161E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .29453E-01    3.5870        .53129E-01   -1.5674    
  18  norm          .10000E-03    1.2759        .18168E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .32183E-03    3.8627        .47275E-01   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     27.479        27.029        .30587E-05   -1.4659    
  21  norm          3.0731        3.1911        .52328E-05   -1.5357    
  22  Prefactor     .10000E-03    5.9473        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .57222        .61849        .26546E-04   -1.5557    
  24  norm          .10000E-03    1.2968        .18174E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10007E-03    24.602        .71428E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .12830E-01    3.1516        .36918E-01   -1.5685    
  27  Prefactor     3.1907        19.651        .90867E-05   -1.5351    
  28  norm          .10000E-03    5.9148        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     6.8000        4.4391        .51509E-05   -1.5186    
  30  Prefactor     .10000E-03    3.2558        .42467E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.1635        .17407        .38208E-04   -.87740    
  32  Prefactor     .55376        .15860        .10388E-04   -1.0957    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.85397e-09
Minuit parameter uncertainties:
  1  2.26831e-06
  2  7.40958
  3  3.4035
  4  106.238
  5  2.69697e-05
  6  1.78211e-06
  7  3.0037e-06
  8  4.50436
  9  2.06108e-06
  10  0.000947887
  11  7.93452
  12  2.47177e-05
  13  2.26567e-06
  14  1.12856e-05
  15  11.1269
  16  2.92483e-06
  17  0.649009
  18  1.74362e-06
  19  0.0585484
  20  27.0412
  21  3.19125
  22  2.84778e-05
  23  0.618496
  24  7.45312e-06
  25  0.0025927
  26  0.400614
  27  15.8443
  28  1.93774e-05
  29  4.43931
  30  0.000107844
  31  0.174156
  32  0.15873
Done.

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

Extracting fit parameters...

4FGL J2251.5-4928
   Spectrum: PowerLaw
403    Prefactor:  1.000e-04  1.129e-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:  5.538e-01  1.587e-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.163e+00  1.742e-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: 3.07e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.28e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/552864/likelihoodResults_598060801_598320001_4FGL_J2251.5-4928_daily_bin1384.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) = 6790.89419575
delta logL = -0.000324813618136

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6790.8938714
delta logL = -4.5729939302e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10098E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2823       1.0000          .0000       10.000    
     3 'Normalizat'    1.1635       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .55376       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=   6790.894     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      236 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.3310        .90712E-02** at limit **
   2  Index         2.2694        6.0295        .50000        .81815E-05
   3  Normalizat    1.1635        .10826E-02    .35857E-01   -.76362E-05
   4  Prefactor     .55376        .10542E-02    .58705E-01    .31406E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.26939
  Normalizat = 1.16345
  Prefactor  = 0.553759
 **********
 **   18 **HESSE 
 **********

 FCN=   6790.894     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      269 TOTAL
                     EDM=   .12E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    40.477        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2694        8.7791        .50000       -.57773    
   3  Normalizat    1.1635        .59628E-02    .19104E-03   -.87740    
   4  Prefactor     .55376        .57981E-02    .25969E-03   -1.0957    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.16761e-07
Minuit parameter uncertainties:
  1  4.20444e-05
  2  174.118
  3  0.00596283
  4  0.00579806
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/552864': 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) = 6790.89387133
delta logL = -3.93715708924e-07

Extracting fit parameters...

4FGL J2251.5-4928
   Spectrum: PowerLaw
403    Prefactor:  1.000e-04  4.204e-05  1.000e-04  1.000e+04 ( 1.000e-14)
404        Index:  2.269e+00  1.741e+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:  5.538e-01  5.798e-03  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.163e+00  5.963e-03  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/552864/cmap_HighResolution_598060801_598320001_4FGL_J2251.5-4928_daily_bin1384.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.28e-03', job_status='DONE', photon_flux_upper_limit='3.07e-08', time_completed='2021-09-29 00:56:25.362755', job_id='552864', GAL2='0.55', fit_tolerance='1e-08', EG2='1.16', EG='1.16', time_epoch_completed='1632902185.36', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.55', dlogl='-3.94e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.85' WHERE bin_id='1384' AND source_name='4FGL J2251.5-4928' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 00:56:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0168>
Subject: Job 552864: <4FGL_J2251.5-4928_daily_bin1384> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2251.5-4928_daily_bin1384 342.879 -49.4691 598060801 598320001 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 :                                   762.20 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             278.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   953 sec.
    Turnaround time :                            956 sec.

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

