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


Performing analysis on: 4FGL_J2251.5-4928_daily_bin1522
RA = 342.879, Dec = -49.4691
tmin = 633830401, tmax = 634089601
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='554196', job_status='RUN', time_executed='2021-09-29 00:46:30.808911', time_epoch_executed='1632901590.81' WHERE source_name='4FGL J2251.5-4928' and cadence='daily' and bin_id='1522'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/554196

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/554196/ft1_4FGL_J2251.5-4928_daily_bin1522.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/554196/ft2_4FGL_J2251.5-4928_daily_bin1522.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/554196/ft1_4FGL_J2251.5-4928_daily_bin1522.fits outfile=/scratch/kocevski/554196/ft1_filteredMKT_4FGL_J2251.5-4928_daily_bin1522.fits ra=342.879 dec=-49.4691 rad=12.0 tmin=633830401.0 tmax=634089601.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.66
user 3.42
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/554196/ft1_filtered_4FGL_J2251.5-4928_daily_bin1522.fits" evtable="EVENTS" scfile=/scratch/kocevski/554196/ft2_4FGL_J2251.5-4928_daily_bin1522.fits sctable="SC_DATA" outfile=/scratch/kocevski/554196/ltcube_633830401_634089601_4FGL_J2251.5-4928_daily_bin1522.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/554196/ft2_4FGL_J2251.5-4928_daily_bin1522.fits
.....................!
real 13.19
user 12.76
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/554196/ft1_filtered_4FGL_J2251.5-4928_daily_bin1522.fits evtable="EVENTS" scfile=/scratch/kocevski/554196/ft2_4FGL_J2251.5-4928_daily_bin1522.fits sctable="SC_DATA" expcube=/scratch/kocevski/554196/ltcube_633830401_634089601_4FGL_J2251.5-4928_daily_bin1522.fits outfile=/scratch/kocevski/554196/expmap_633830401_634089601_4FGL_J2251.5-4928_daily_bin1522.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/554196/ltcube_633830401_634089601_4FGL_J2251.5-4928_daily_bin1522.fits
.....................!
real 193.54
user 189.02
sys 3.98

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/554196/ft1_filtered_4FGL_J2251.5-4928_daily_bin1522.fits scfile=/scratch/kocevski/554196/ft2_4FGL_J2251.5-4928_daily_bin1522.fits outfile=/scratch/kocevski/554196/cmap_633830401_634089601_4FGL_J2251.5-4928_daily_bin1522.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=342.879 yref=-49.4691 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.52
user 0.37
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/554196/ft1_filtered_4FGL_J2251.5-4928_daily_bin1522.fits evtable="EVENTS" scfile=/scratch/kocevski/554196/ft2_4FGL_J2251.5-4928_daily_bin1522.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/554196/Model_4FGL_J2251.5-4928_daily_bin1522.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/554196/ft1_filtered_4FGL_J2251.5-4928_daily_bin1522.fits.....................!
real 42.32
user 40.98
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.077       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.8946       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .83793       1.0000         .10000E-03   10000.    
     7 'Prefactor '    42.216       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .14278E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    45.672       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.9495       1.0000         .10000E-03   10000.    
    14 'Prefactor '    56.800       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10209E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    8.4297       1.0000         .10000E-03   10000.    
    17 'norm      '    .61541E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .25685E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    33.865       1.0000         .10000E-03   10000.    
    21 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    6.8519       1.0000         .10000E-03   10000.    
    23 'norm      '    3.0023       1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    1.0205       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    7.2633       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .74705       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .97529       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=   5780.204     FROM MIGRAD    STATUS=CONVERGED    838 CALLS     4386 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.076        19.357        .36361E-07   -.41329E-04
   2  Prefactor     .10000E-03    2.5837       -.19294E-08** at limit **
   3  Prefactor     2.8946        3.8488        .41410E-06   -.83794E-04
   4  Prefactor     .10000E-03    18.936       -.20605E-05** at limit **
   5  norm          .10000E-03    2.2827        .19265E-06** at limit **
   6  Prefactor     .83807        2.7072        .11513E-05   -.14086E-03
   7  Prefactor     42.229        53.713        .16670E-05    .13568E-03
   8  Prefactor     .10001E-03    3.6334        .21619E-05** at limit **
   9  Prefactor     .10000E-03    7.0099       -.69523E-06** at limit **
  10  Prefactor     45.667        25.982       -.14231E-06   -.45453E-03
  11  Prefactor     .10000E-03    4.1675       -.13932E-06** at limit **
  12  Prefactor     .10001E-03    25.169        .36092E-05** at limit **
  13  Prefactor     4.9494        4.6378        .11242E-07   -.45913E-04
  14  Prefactor     56.797        40.040       -.30591E-06   -.21437E-03
  15  Prefactor     .10000E-03    9.4787        .23098E-06** at limit **
  16  norm          8.4278        9.6863       -.81354E-07   -.20686E-04
  17  norm          .10000E-03    4.3481        .42088E-06** at limit **
  18  norm          .10000E-03    1.7591       -.48758E-07** at limit **
  19  Prefactor     .10141E-03    5.5132       -.13974E-06** at limit **
  20  Prefactor     33.856        24.524       -.71878E-06   -.20716E-03
  21  norm          .10000E-03    2.2547       -.38762E-06** at limit **
  22  Prefactor     6.8257        15.492       -.18790E-05    .56777E-04
  23  norm          3.0019        1.2868       -.12612E-06   -.44641E-03
  24  norm          .10000E-03    1.5675       -.54895E-07** at limit **
  25  Prefactor     .10000E-03    16.716       -.20340E-05** at limit **
  26  Prefactor     1.0205        2.9499        .54192E-06   -.13464E-03
  27  Prefactor     .10000E-03    13.574        .14515E-05** at limit **
  28  norm          .10000E-03    7.0154       -.97744E-06** at limit **
  29  Prefactor     7.2635        4.9562        .11468E-05   -.30637E-03
  30  Prefactor     .10000E-03    1.2265        .57092E-08** at limit **
  31  Normalizat    .74699        .16978       -.88802E-06   -.30062E-03
  32  Prefactor     .97536        .16017       -.18517E-06   -.31565E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.0764
  Prefactor  = 0.0001
  Prefactor  = 2.89464
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.838074
  Prefactor  = 42.2293
  Prefactor  = 0.00010001
  Prefactor  = 0.0001
  Prefactor  = 45.6667
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  Prefactor  = 4.94937
  Prefactor  = 56.7966
  Prefactor  = 0.0001
  norm       = 8.42777
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000101412
  Prefactor  = 33.856
  norm       = 0.0001
  Prefactor  = 6.82572
  norm       = 3.00191
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 1.02049
  Prefactor  = 0.000100001
  norm       = 0.000100001
  Prefactor  = 7.26353
  Prefactor  = 0.0001
  Normalizat = 0.746995
  Prefactor  = 0.975361
 **********
 **   18 **HESSE 
 **********

 FCN=   5780.204     FROM HESSE     STATUS=OK           655 CALLS     5041 TOTAL
                     EDM=   .24E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.076        19.356        .11527E-03   -1.5013    
   2  Prefactor     .10000E-03    2.5999        .11931E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.8946        3.8380        .16219E-03   -1.5368    
   4  Prefactor     .10000E-03    19.160        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    2.2871        .11224E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .83807        2.6475        .20916E-03   -1.5525    
   7  Prefactor     42.229        53.845        .61698E-04   -1.4407    
   8  Prefactor     .10001E-03    6.7642        .25251E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    7.0564        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     45.667        26.085        .59327E-04   -1.4355    
  11  Prefactor     .10000E-03    4.1753        .15142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10001E-03    25.916        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.9494        4.6335        .15333E-03   -1.5263    
  14  Prefactor     56.797        40.117        .53228E-04   -1.4199    
  15  Prefactor     .10000E-03    9.5870        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          8.4278        9.6796        .13807E-03   -1.5127    
  17  norm          .10000E-03    29.742        .30286E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    1.7627        .98444E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10141E-03    67.126        .27701E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     33.856        24.546        .68860E-04   -1.4544    
  21  norm          .10000E-03    2.2999        .22175E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     6.8257        13.540        .15327E-03   -1.5185    
  23  norm          3.0019        1.2624        .50252E-04   -1.5361    
  24  norm          .10000E-03    1.5789        .92883E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    17.071        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     1.0205        2.9075        .20139E-03   -1.5506    
  27  Prefactor     .10000E-03    13.736        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    7.0686        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     7.2635        4.9565        .65899E-03   -1.5169    
  30  Prefactor     .10000E-03    1.2311        .82222E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .74699        .20042        .24642E-03   -1.0207    
  32  Prefactor     .97536        .18991        .21874E-03   -.93555    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.35126e-08
Minuit parameter uncertainties:
  1  19.3658
  2  6.53299e-07
  3  3.83832
  4  0.000414968
  5  1.37598e-05
  6  2.64782
  7  53.9067
  8  0.00051896
  9  9.71053e-05
  10  26.0915
  11  8.92118e-07
  12  0.000856913
  13  4.63385
  14  40.1364
  15  5.23326e-05
  16  9.68139
  17  5.60854e-05
  18  2.43059e-06
  19  0.019493
  20  24.5531
  21  2.82368e-06
  22  13.5463
  23  1.26237
  24  4.32683e-06
  25  0.000355645
  26  2.90787
  27  0.000247514
  28  0.000120372
  29  4.95678
  30  8.57255e-07
  31  0.20062
  32  0.190043
Done.

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

Extracting fit parameters...

4FGL J2251.5-4928
   Spectrum: PowerLaw
403    Prefactor:  5.680e+01  4.014e+01  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:  9.754e-01  1.900e-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:  7.470e-01  2.006e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.31
Ra Dec: 342.879 -49.469
Photon Index (Fixed Index): 1.85 +/- 0.00
Photon Flux (Fixed Index): 3.00e-08 +/- 2.12e-08
Energy Flux (Fixed Index): 3.09e-05 +/- 2.19e-05

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): 0
logL (Free Index) = 5779.32690296
delta logL = 0.876784099841

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5779.32067932
delta logL = 0.88300774133

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.122       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5850       1.0000          .0000       10.000    
     3 'Normalizat'    .70226       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0015       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=   5779.321     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      285 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.110        38.156        .89289E-04   -.27731E-03
   2  Index         2.5852        .81409        .32929E-02   -.71629E-04
   3  Normalizat    .70225        .19281        .25313E-03    .53039E-03
   4  Prefactor     1.0015        .19108        .21602E-03    .15368E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.1101
  Index      = 2.58522
  Normalizat = 0.702255
  Prefactor  = 1.00146
 **********
 **   18 **HESSE 
 **********

 FCN=   5779.321     FROM HESSE     STATUS=OK            25 CALLS      310 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.110        27.743        .35716E-05   -1.4811    
   2  Index         2.5852        .59280        .13172E-03   -.50403    
   3  Normalizat    .70225        .19097        .50627E-04   -1.0380    
   4  Prefactor     1.0015        .18998        .43204E-04   -.92681    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.09625e-09
Minuit parameter uncertainties:
  1  27.7603
  2  0.594631
  3  0.19115
  4  0.19011
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/554196': 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) = 5779.32067917
delta logL = 0.883007890961

Extracting fit parameters...

4FGL J2251.5-4928
   Spectrum: PowerLaw
403    Prefactor:  2.011e+01  2.776e+01  1.000e-04  1.000e+04 ( 1.000e-14)
404        Index:  2.585e+00  5.946e-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:  1.001e+00  1.901e-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:  7.023e-01  1.911e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.11
Ra Dec: 342.879 -49.469
Photon Index (Free Index): 2.59 +/- 0.59
Photon Flux (Free Index): 6.47e-08 +/- 4.08e-08
Energy Flux (Free Index): 1.72e-05 +/- 1.03e-05

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/554196/cmap_HighResolution_633830401_634089601_4FGL_J2251.5-4928_daily_bin1522.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.00e-08', energy_flux2='1.72e-05', photon_flux_error='2.12e-08', dlogl='8.83e-01', energy_flux='3.09e-05', photon_flux2='6.47e-08', job_status='DONE', time_completed='2021-09-29 00:59:35.589410', photon_index_error2='0.59', photon_index2='2.59', ts='5.31', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', energy_flux_error2='1.03e-05', EG='0.75', time_epoch_completed='1632902375.59', return_code='0', job_id='554196', GAL2='1.00', EG2='0.70', return_code2='0', energy_flux_error='2.19e-05', photon_flux_error2='4.08e-08', ts2='7.11', photon_index='1.85' WHERE bin_id='1522' AND source_name='4FGL J2251.5-4928' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 00:59:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0103>
Subject: Job 554196: <4FGL_J2251.5-4928_daily_bin1522> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2251.5-4928_daily_bin1522 342.879 -49.4691 633830401 634089601 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 :                                   769.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             316.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   859 sec.
    Turnaround time :                            861 sec.

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

