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


Performing analysis on: 4FGL_J2251.5-4928_daily_bin1338
RA = 342.879, Dec = -49.4691
tmin = 586137601, tmax = 586396801
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='552782', job_status='RUN', time_executed='2021-09-29 00:41:52.474866', time_epoch_executed='1632901312.47' WHERE source_name='4FGL J2251.5-4928' and cadence='daily' and bin_id='1338'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/552782

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

Retrieving the FT1 file...

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

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

Retrieving 41 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/552782/ft1_4FGL_J2251.5-4928_daily_bin1338.fits


Retrieving the FT1 file...

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

Retrieving 41 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/552782/ft2_4FGL_J2251.5-4928_daily_bin1338.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/552782/ft1_4FGL_J2251.5-4928_daily_bin1338.fits outfile=/scratch/kocevski/552782/ft1_filteredMKT_4FGL_J2251.5-4928_daily_bin1338.fits ra=342.879 dec=-49.4691 rad=12.0 tmin=586137601.0 tmax=586396801.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 4.54
user 4.30
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/552782/ft1_filtered_4FGL_J2251.5-4928_daily_bin1338.fits" evtable="EVENTS" scfile=/scratch/kocevski/552782/ft2_4FGL_J2251.5-4928_daily_bin1338.fits sctable="SC_DATA" outfile=/scratch/kocevski/552782/ltcube_586137601_586396801_4FGL_J2251.5-4928_daily_bin1338.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/552782/ft2_4FGL_J2251.5-4928_daily_bin1338.fits
.....................!
real 10.04
user 9.69
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/552782/ft1_filtered_4FGL_J2251.5-4928_daily_bin1338.fits evtable="EVENTS" scfile=/scratch/kocevski/552782/ft2_4FGL_J2251.5-4928_daily_bin1338.fits sctable="SC_DATA" expcube=/scratch/kocevski/552782/ltcube_586137601_586396801_4FGL_J2251.5-4928_daily_bin1338.fits outfile=/scratch/kocevski/552782/expmap_586137601_586396801_4FGL_J2251.5-4928_daily_bin1338.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/552782/ltcube_586137601_586396801_4FGL_J2251.5-4928_daily_bin1338.fits
.....................!
real 192.75
user 188.04
sys 4.40

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/552782/ft1_filtered_4FGL_J2251.5-4928_daily_bin1338.fits scfile=/scratch/kocevski/552782/ft2_4FGL_J2251.5-4928_daily_bin1338.fits outfile=/scratch/kocevski/552782/cmap_586137601_586396801_4FGL_J2251.5-4928_daily_bin1338.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.54
user 0.35
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/552782/ft1_filtered_4FGL_J2251.5-4928_daily_bin1338.fits scfile=/scratch/kocevski/552782/ft2_4FGL_J2251.5-4928_daily_bin1338.fits outfile=/scratch/kocevski/552782/cmap_HighResolution_586137601_586396801_4FGL_J2251.5-4928_daily_bin1338.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/552782/ft1_filtered_4FGL_J2251.5-4928_daily_bin1338.fits evtable="EVENTS" scfile=/scratch/kocevski/552782/ft2_4FGL_J2251.5-4928_daily_bin1338.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/552782/Model_4FGL_J2251.5-4928_daily_bin1338.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/552782/ft1_filtered_4FGL_J2251.5-4928_daily_bin1338.fits.....................!
real 38.02
user 36.82
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    73.516       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10293E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.4910       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.3500       1.0000         .10000E-03   10000.    
     5 'norm      '    9.3540       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10617E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    211.19       1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.4947       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10105E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    70.642       1.0000         .10000E-03   10000.    
    16 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    6.7888       1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .31285E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    4.5074       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    27.326       1.0000         .10000E-03   10000.    
    26 'Prefactor '    1.0054       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .13020E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    43.966       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .15835E-02   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .87949       1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.3035       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .66943       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=   4603.397     FROM MIGRAD    STATUS=CONVERGED    851 CALLS     5053 TOTAL
                     EDM=   .25E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     73.510        42.191       -.93055E-06   -.37609E-04
   2  Prefactor     .10000E-03    12.081        .20392E-05** at limit **
   3  Prefactor     7.4902        4.6859        .91161E-07   -.65221E-04
   4  Prefactor     3.4289        629.00        .26643E-05   -.29931E-05
   5  norm          9.3527        7.3166        .19113E-07   -.96924E-05
   6  Prefactor     .10000E-03    .99145       -.40371E-07** at limit **
   7  Prefactor     .10000E-03    15.619        .32020E-06** at limit **
   8  Prefactor     .10000E-03    3.2718       -.28057E-07** at limit **
   9  Prefactor     .10000E-03    24.043        .39828E-06** at limit **
  10  Prefactor     .10000E-03    12.889       -.26345E-06** at limit **
  11  Prefactor     .10000E-03    13.468       -.42436E-06** at limit **
  12  Prefactor     211.21        149.85        .56208E-06    .10233E-04
  13  Prefactor     6.4975        9.0644        .24140E-06   -.65287E-05
  14  Prefactor     .10000E-03    41.321       -.16222E-05** at limit **
  15  Prefactor     70.659        28.815        .42362E-07   -.10152E-04
  16  norm          .10000E-03    4.1067       -.20268E-07** at limit **
  17  norm          6.7891        7.0775       -.15847E-06   -.76517E-05
  18  norm          .10000E-03    2.1001       -.20766E-08** at limit **
  19  Prefactor     .10003E-03    7.4042        .43152E-06** at limit **
  20  Prefactor     .10000E-03    42.680       -.13601E-05** at limit **
  21  norm          4.5086        5.0746       -.20978E-07    .38370E-04
  22  Prefactor     .10000E-03    9.8904       -.25599E-06** at limit **
  23  norm          .10000E-03    .67941       -.29232E-07** at limit **
  24  norm          .10000E-03    2.2114       -.76139E-07** at limit **
  25  Prefactor     27.322        24.245       -.88249E-07   -.11396E-04
  26  Prefactor     1.0030        3.7981       -.65402E-06    .34054E-04
  27  Prefactor     .10000E-03    66.472        .24102E-05** at limit **
  28  norm          43.947        31.625       -.14495E-05   -.77176E-05
  29  Prefactor     .10000E-03    295.62       -.13838E-05** at limit **
  30  Prefactor     .88115        9.8315       -.76448E-06    .23146E-04
  31  Normalizat    1.3031        .21762       -.65004E-06   -.83469E-04
  32  Prefactor     .66975        .19566       -.90479E-06   -.50292E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 73.51
  Prefactor  = 0.0001
  Prefactor  = 7.49024
  Prefactor  = 3.42887
  norm       = 9.35271
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 211.21
  Prefactor  = 6.49748
  Prefactor  = 0.0001
  Prefactor  = 70.6589
  norm       = 0.0001
  norm       = 6.78908
  norm       = 0.0001
  Prefactor  = 0.000100028
  Prefactor  = 0.0001
  norm       = 4.50863
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 27.3224
  Prefactor  = 1.00296
  Prefactor  = 0.0001
  norm       = 43.9473
  Prefactor  = 0.000100001
  Prefactor  = 0.881151
  Normalizat = 1.30312
  Prefactor  = 0.669753
 **********
 **   18 **HESSE 
 **********

 FCN=   4603.397     FROM HESSE     STATUS=OK           671 CALLS     5724 TOTAL
                     EDM=   .41E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     73.510        42.252        .46825E-04   -1.3991    
   2  Prefactor     .10000E-03    12.162        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     7.4902        4.6820        .11034E-03   -1.5161    
   4  Prefactor     3.4289        611.45        .22112E-03   -1.5338    
   5  norm          9.3527        7.3185        .13104E-03   -1.5096    
   6  Prefactor     .10000E-03    .99300        .65959E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    15.628        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.3198        .11980E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    24.360        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    12.902        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    13.571        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     211.21        149.91        .13910E-03   -1.2791    
  13  Prefactor     6.4975        9.0964        .15748E-03   -1.5198    
  14  Prefactor     .10000E-03    41.374        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     70.659        29.114        .47761E-04   -1.4025    
  16  norm          .10000E-03    4.1070        .13429E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          6.7891        7.0743        .15399E-03   -1.5187    
  18  norm          .10000E-03    2.1004        .96002E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10003E-03    7.0579        .55020E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    42.667        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          4.5086        5.0773        .15634E-03   -1.5283    
  22  Prefactor     .10000E-03    9.9111        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    .69654        .10882E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    2.2172        .98471E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     27.322        24.417        .76638E-04   -1.4662    
  26  Prefactor     1.0030        3.8248        .24315E-03   -1.5508    
  27  Prefactor     .10000E-03    67.607        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          43.947        33.943        .60463E-04   -1.4381    
  29  Prefactor     .10000E-03    15.183        .45955E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .88115        9.8049        .40118E-03   -1.5520    
  31  Normalizat    1.3031        .26643        .22665E-03   -.83473    
  32  Prefactor     .66975        .23485        .28590E-03   -1.0472    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.12645e-11
Minuit parameter uncertainties:
  1  42.2688
  2  3.97229e-05
  3  4.68219
  4  92.5516
  5  7.31916
  6  1.56062e-06
  7  6.52415e-06
  8  7.54694e-06
  9  3.29918e-05
  10  8.10133e-06
  11  1.20591e-05
  12  150.185
  13  9.09829
  14  4.09886e-05
  15  29.1198
  16  1.06423e-06
  17  7.07516
  18  6.94727e-07
  19  0.000889441
  20  6.5007e-05
  21  5.07782
  22  9.88377e-06
  23  1.18499e-06
  24  2.97598e-06
  25  24.4259
  26  3.82574
  27  5.22596e-05
  28  33.9583
  29  0.000182674
  30  5.87952
  31  0.266711
  32  0.235199
Done.

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

Extracting fit parameters...

4FGL J2251.5-4928
   Spectrum: PowerLaw
403    Prefactor:  1.000e-04  4.099e-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:  6.698e-01  2.352e-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.303e+00  2.667e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/552782/likelihoodResults_586137601_586396801_4FGL_J2251.5-4928_daily_bin1338.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) = 4603.39746028
delta logL = -0.000115063001431

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4603.39734537
delta logL = -1.48313120008e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10989E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9090       1.0000          .0000       10.000    
     3 'Normalizat'    1.3031       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .66975       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=   4603.397     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      239 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    6372.9        .90712E-02** at limit **
   2  Index         1.8982        6.4877        .50000        .19576E-05
   3  Normalizat    1.3031        .49135E-01    .51264E-01    .33300E-04
   4  Prefactor     .66975        .46187E-01    .64621E-01   -.31070E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100006
  Index      = 1.89822
  Normalizat = 1.30313
  Prefactor  = 0.669752
 **********
 **   18 **HESSE 
 **********

 FCN=   4603.397     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      272 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    7198.2        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8982        7.6319        .50000       -.66920    
   3  Normalizat    1.3031        .71803E-01    .22665E-03   -.83473    
   4  Prefactor     .66975        .67408E-01    .28590E-03   -1.0472    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.27728e-08
Minuit parameter uncertainties:
  1  0.0110314
  2  44.9024
  3  0.0718089
  4  0.0674159
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/552782': 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) = 4603.39734524
delta logL = -2.0743755158e-08

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
589    Prefactor:  6.698e-01  6.742e-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.303e+00  7.181e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 342.879 -49.469

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/552782/cmap_HighResolution_586137601_586396801_4FGL_J2251.5-4928_daily_bin1338.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.06e-03', job_status='DONE', photon_flux_upper_limit='5.48e-08', time_completed='2021-09-29 00:56:14.353262', job_id='552782', GAL2='0.67', fit_tolerance='1e-08', EG2='1.30', EG='1.30', time_epoch_completed='1632902174.35', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.67', dlogl='-2.07e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.85' WHERE bin_id='1338' AND source_name='4FGL J2251.5-4928' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 00:56:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0121>
Subject: Job 552782: <4FGL_J2251.5-4928_daily_bin1338> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2251.5-4928_daily_bin1338 342.879 -49.4691 586137601 586396801 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 :                                   796.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             315.40 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   947 sec.
    Turnaround time :                            949 sec.

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

