/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 16 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_bin1099
RA = 342.879, Dec = -49.4691
tmin = 524188801, tmax = 524448001
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='551224', job_status='RUN', time_executed='2021-09-29 00:35:49.964400', time_epoch_executed='1632900949.96' WHERE source_name='4FGL J2251.5-4928' and cadence='daily' and bin_id='1099'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/551224

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/551224/ft1_4FGL_J2251.5-4928_daily_bin1099.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/551224/ft2_4FGL_J2251.5-4928_daily_bin1099.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/551224/ft1_4FGL_J2251.5-4928_daily_bin1099.fits outfile=/scratch/kocevski/551224/ft1_filteredMKT_4FGL_J2251.5-4928_daily_bin1099.fits ra=342.879 dec=-49.4691 rad=12.0 tmin=524188801.0 tmax=524448001.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.43
user 3.19
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/551224/ft1_filtered_4FGL_J2251.5-4928_daily_bin1099.fits" evtable="EVENTS" scfile=/scratch/kocevski/551224/ft2_4FGL_J2251.5-4928_daily_bin1099.fits sctable="SC_DATA" outfile=/scratch/kocevski/551224/ltcube_524188801_524448001_4FGL_J2251.5-4928_daily_bin1099.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/551224/ft2_4FGL_J2251.5-4928_daily_bin1099.fits
.....................!
real 11.73
user 11.35
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/551224/ft1_filtered_4FGL_J2251.5-4928_daily_bin1099.fits evtable="EVENTS" scfile=/scratch/kocevski/551224/ft2_4FGL_J2251.5-4928_daily_bin1099.fits sctable="SC_DATA" expcube=/scratch/kocevski/551224/ltcube_524188801_524448001_4FGL_J2251.5-4928_daily_bin1099.fits outfile=/scratch/kocevski/551224/expmap_524188801_524448001_4FGL_J2251.5-4928_daily_bin1099.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/551224/ltcube_524188801_524448001_4FGL_J2251.5-4928_daily_bin1099.fits
.....................!
real 198.61
user 192.88
sys 5.39

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

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

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/551224/ft1_filtered_4FGL_J2251.5-4928_daily_bin1099.fits scfile=/scratch/kocevski/551224/ft2_4FGL_J2251.5-4928_daily_bin1099.fits outfile=/scratch/kocevski/551224/cmap_HighResolution_524188801_524448001_4FGL_J2251.5-4928_daily_bin1099.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=342.879 yref=-49.4691 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.7155       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.4667       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    3.4139       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .33330E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.9141       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.3355       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    26.167       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.2515       1.0000         .10000E-03   10000.    
    14 'Prefactor '    21.605       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    16.873       1.0000         .10000E-03   10000.    
    21 'norm      '    .10029E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    6.1368       1.0000         .10000E-03   10000.    
    23 'norm      '    .10201E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    4.6806       1.0000         .10000E-03   10000.    
    25 'Prefactor '    2.0012       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10483E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    21.735       1.0000         .10000E-03   10000.    
    28 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.3418       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .46410       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=   5602.933     FROM MIGRAD    STATUS=CONVERGED    833 CALLS     4387 TOTAL
                     EDM=   .38E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.410       -.59466E-06** at limit **
   2  Prefactor     3.7154        4.8437        .65712E-06   -.38135E-04
   3  Prefactor     2.4669        3.6521        .17580E-06    .32617E-04
   4  Prefactor     .10000E-03    34.781       -.62029E-06** at limit **
   5  norm          3.4139        3.7197       -.18330E-07    .25523E-04
   6  Prefactor     .49235E-01    1.5598        .90954E-07   -.80824E-04
   7  Prefactor     4.9007        31.185        .40293E-05   -.19163E-05
   8  Prefactor     2.3353        4.0340        .33388E-06    .72116E-04
   9  Prefactor     .10000E-03    13.908        .38920E-06** at limit **
  10  Prefactor     26.169        28.156        .48470E-06    .76695E-04
  11  Prefactor     .10000E-03    5.9517       -.14228E-06** at limit **
  12  Prefactor     .10000E-03    27.054        .25582E-06** at limit **
  13  Prefactor     4.2509        6.6189        .13849E-06   -.40331E-04
  14  Prefactor     21.604        25.931        .21815E-06    .14638E-05
  15  Prefactor     .10000E-03    4.1769       -.13088E-06** at limit **
  16  norm          .10000E-03    4.3136       -.13850E-06** at limit **
  17  norm          .10000E-03    1.6489       -.26741E-08** at limit **
  18  norm          .10000E-03    1.3957        .22122E-08** at limit **
  19  Prefactor     .10000E-03    3.9791        .37865E-07** at limit **
  20  Prefactor     16.872        18.455        .11727E-06   -.36340E-05
  21  norm          .10000E-03    .96667       -.15963E-08** at limit **
  22  Prefactor     6.1357        10.281       -.51720E-07   -.27242E-03
  23  norm          .10000E-03    .38650        .29896E-06** at limit **
  24  norm          4.6808        3.5039        .61431E-07   -.10488E-04
  25  Prefactor     2.0036        19.735        .10231E-04   -.15899E-03
  26  Prefactor     .10000E-03    1.6460        .12160E-05** at limit **
  27  Prefactor     21.757        19.370       -.18241E-05   -.37939E-03
  28  norm          .10000E-03    5.7249        .55724E-06** at limit **
  29  Prefactor     .10000E-03    2.4524        .58526E-07** at limit **
  30  Prefactor     .10000E-03    1.8663        .10966E-06** at limit **
  31  Normalizat    1.3417        .17763       -.20858E-05   -.38039E-03
  32  Prefactor     .46418        .15495        .17139E-05   -.13520E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 3.71544
  Prefactor  = 2.46693
  Prefactor  = 0.0001
  norm       = 3.41393
  Prefactor  = 0.0492354
  Prefactor  = 4.90068
  Prefactor  = 2.33528
  Prefactor  = 0.0001
  Prefactor  = 26.1685
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.25094
  Prefactor  = 21.6035
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.8723
  norm       = 0.0001
  Prefactor  = 6.13572
  norm       = 0.0001
  norm       = 4.68078
  Prefactor  = 2.00363
  Prefactor  = 0.0001
  Prefactor  = 21.7567
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.34169
  Prefactor  = 0.464177
 **********
 **   18 **HESSE 
 **********

 FCN=   5602.933     FROM HESSE     STATUS=OK           659 CALLS     5046 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.416        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.7154        4.8404        .90751E-03   -1.5322    
   3  Prefactor     2.4669        3.6344        .16397E-03   -1.5394    
   4  Prefactor     .10000E-03    34.775        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.4139        3.7228        .14701E-03   -1.5338    
   6  Prefactor     .49235E-01    32.338        .17799E-02   -1.5664    
   7  Prefactor     4.9007        31.007        .18144E-03   -1.5265    
   8  Prefactor     2.3353        4.0000        .18565E-03   -1.5402    
   9  Prefactor     .10000E-03    13.921        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     26.169        28.187        .78313E-04   -1.4684    
  11  Prefactor     .10000E-03    5.9598        .17777E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    27.058        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.2509        6.6143        .19541E-03   -1.5296    
  14  Prefactor     21.604        25.927        .86173E-04   -1.4778    
  15  Prefactor     .10000E-03    4.1833        .14938E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    4.3190        .15183E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    1.6493        .93867E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    1.3965        .86347E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    3.9990        .14439E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     16.872        18.461        .97505E-04   -1.4886    
  21  norm          .10000E-03    .96802        .71843E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     6.1357        10.131        .16206E-03   -1.5213    
  23  norm          .10000E-03    .63880        .89111E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          4.6808        3.5013        .11748E-03   -1.5275    
  25  Prefactor     2.0036        20.418        .14638E-02   -1.5425    
  26  Prefactor     .10000E-03    2.9425        .18163E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     21.757        19.614        .85916E-04   -1.4775    
  28  norm          .10000E-03    5.7165        .17478E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    2.5100        .11444E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    1.8842        .99878E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.3417        .20116        .19113E-03   -.82330    
  32  Prefactor     .46418        .17381        .29086E-03   -1.1365    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.50976e-08
Minuit parameter uncertainties:
  1  2.43333e-07
  2  4.8409
  3  3.63474
  4  1.68342e-05
  5  3.72306
  6  2.52244
  7  24.6725
  8  4.00044
  9  6.34578e-05
  10  28.201
  11  3.95664e-05
  12  1.30949e-05
  13  6.61546
  14  25.9402
  15  1.58892e-06
  16  1.45334e-06
  17  3.77334e-07
  18  7.33268e-07
  19  1.37449e-05
  20  18.4669
  21  4.70637e-07
  22  10.1343
  23  7.58067e-06
  24  3.5015
  25  12.7974
  26  4.35685e-05
  27  19.6193
  28  3.31769e-06
  29  3.50997e-06
  30  8.93505e-06
  31  0.201279
  32  0.174011
Done.

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

Extracting fit parameters...

4FGL J2251.5-4928
   Spectrum: PowerLaw
403    Prefactor:  2.160e+01  2.594e+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:  4.642e-01  1.740e-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.342e+00  2.013e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.12
Ra Dec: 342.879 -49.469
Photon Index (Fixed Index): 1.85 +/- 0.00
Photon Flux (Fixed Index): 1.14e-08 +/- 1.37e-08
Energy Flux (Fixed Index): 1.18e-05 +/- 1.41e-05

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

Saving results to:
/scratch/kocevski/551224/likelihoodResults_524188801_524448001_4FGL_J2251.5-4928_daily_bin1099.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): 0
logL (Free Index) = 5602.77302468
delta logL = 0.159686467213

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5602.76393826
delta logL = 0.168772891883

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    27.920       1.0000         .10000E-03   10000.    
     2 'Index     '    1.3986       1.0000          .0000       10.000    
     3 'Normalizat'    1.3464       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .46226       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=   5602.764     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      295 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     27.921        33.124        .75819E-04   -.35210E-03
   2  Index         1.3986        .73447        .12519E-01   -.12835E-03
   3  Normalizat    1.3464        .18152        .19084E-03    .15667E-04
   4  Prefactor     .46221        .17060        .29143E-03    .76460E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 27.9206
  Index      = 1.39865
  Normalizat = 1.34644
  Prefactor  = 0.462208
 **********
 **   18 **HESSE 
 **********

 FCN=   5602.764     FROM HESSE     STATUS=OK            23 CALLS      318 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     27.921        33.375        .15164E-04   -1.4651    
   2  Index         1.3986        .74029        .50076E-03   -.80419    
   3  Normalizat    1.3464        .18166        .76337E-05   -.82191    
   4  Prefactor     .46221        .17074        .11657E-04   -1.1374    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.47478e-09
Minuit parameter uncertainties:
  1  33.397
  2  0.746025
  3  0.181743
  4  0.170931
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/551224': 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) = 5602.7639382
delta logL = 0.168772945703

Extracting fit parameters...

4FGL J2251.5-4928
   Spectrum: PowerLaw
403    Prefactor:  2.792e+01  3.340e+01  1.000e-04  1.000e+04 ( 1.000e-14)
404        Index:  1.399e+00  7.460e-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:  4.622e-01  1.709e-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.346e+00  1.817e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.46
Ra Dec: 342.879 -49.469
Photon Index (Free Index): 1.40 +/- 0.75
Photon Flux (Free Index): 6.64e-09 +/- 1.09e-08
Energy Flux (Free Index): 2.95e-05 +/- 5.23e-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/551224/cmap_HighResolution_524188801_524448001_4FGL_J2251.5-4928_daily_bin1099.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.65e-03', comment='SUCCESS', photon_flux='1.14e-08', energy_flux2='2.95e-05', photon_flux_error='1.37e-08', dlogl='1.69e-01', energy_flux='1.18e-05', photon_flux2='6.64e-09', job_status='DONE', time_completed='2021-09-29 00:50:22.817883', photon_index_error2='0.75', photon_index2='1.40', ts='1.12', fit_tolerance='1e-08', GAL='0.46', photon_index_error='0.00', photon_flux_upper_limit='4.93e-08', energy_flux_error2='5.23e-05', EG='1.34', time_epoch_completed='1632901822.82', return_code='0', job_id='551224', GAL2='0.46', EG2='1.35', return_code2='0', energy_flux_error='1.41e-05', photon_flux_error2='1.09e-08', ts2='1.46', photon_index='1.85' WHERE bin_id='1099' AND source_name='4FGL J2251.5-4928' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 00:50:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0284>
Subject: Job 551224: <4FGL_J2251.5-4928_daily_bin1099> in cluster <slac> Done

Job <4FGL_J2251.5-4928_daily_bin1099> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 00:35:24 2021
Job was executed on host(s) <bullet0284>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 00:35:25 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:35:25 2021
Terminated at Wed Sep 29 00:50:23 2021
Results reported at Wed Sep 29 00:50:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2251.5-4928_daily_bin1099 342.879 -49.4691 524188801 524448001 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 :                                   868.34 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             317.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   898 sec.
    Turnaround time :                            899 sec.

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

