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


Performing analysis on: 4FGL_J2251.5-4928_daily_bin731
RA = 342.879, Dec = -49.4691
tmin = 428803201, tmax = 429062401
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='546731', job_status='RUN', time_executed='2021-09-29 00:27:08.585116', time_epoch_executed='1632900428.59' WHERE source_name='4FGL J2251.5-4928' and cadence='daily' and bin_id='731'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/546731

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/546731/ft1_4FGL_J2251.5-4928_daily_bin731.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/546731/ft2_4FGL_J2251.5-4928_daily_bin731.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/546731/ft1_4FGL_J2251.5-4928_daily_bin731.fits outfile=/scratch/kocevski/546731/ft1_filteredMKT_4FGL_J2251.5-4928_daily_bin731.fits ra=342.879 dec=-49.4691 rad=12.0 tmin=428803201.0 tmax=429062401.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 6.58
user 6.26
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/546731/ft2_4FGL_J2251.5-4928_daily_bin731.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/546731/ft1_filteredMKT_4FGL_J2251.5-4928_daily_bin731.fits evtable="EVENTS" outfile="/scratch/kocevski/546731/ft1_filtered_4FGL_J2251.5-4928_daily_bin731.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.50
user 0.31
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/546731/ft1_filtered_4FGL_J2251.5-4928_daily_bin731.fits" evtable="EVENTS" scfile=/scratch/kocevski/546731/ft2_4FGL_J2251.5-4928_daily_bin731.fits sctable="SC_DATA" outfile=/scratch/kocevski/546731/ltcube_428803201_429062401_4FGL_J2251.5-4928_daily_bin731.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/546731/ft2_4FGL_J2251.5-4928_daily_bin731.fits
.....................!
real 12.01
user 11.65
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/546731/ft1_filtered_4FGL_J2251.5-4928_daily_bin731.fits evtable="EVENTS" scfile=/scratch/kocevski/546731/ft2_4FGL_J2251.5-4928_daily_bin731.fits sctable="SC_DATA" expcube=/scratch/kocevski/546731/ltcube_428803201_429062401_4FGL_J2251.5-4928_daily_bin731.fits outfile=/scratch/kocevski/546731/expmap_428803201_429062401_4FGL_J2251.5-4928_daily_bin731.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/546731/ltcube_428803201_429062401_4FGL_J2251.5-4928_daily_bin731.fits
.....................!
real 191.69
user 185.71
sys 5.63

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/546731/ft1_filtered_4FGL_J2251.5-4928_daily_bin731.fits scfile=/scratch/kocevski/546731/ft2_4FGL_J2251.5-4928_daily_bin731.fits outfile=/scratch/kocevski/546731/cmap_428803201_429062401_4FGL_J2251.5-4928_daily_bin731.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.56
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/546731/ft1_filtered_4FGL_J2251.5-4928_daily_bin731.fits scfile=/scratch/kocevski/546731/ft2_4FGL_J2251.5-4928_daily_bin731.fits outfile=/scratch/kocevski/546731/cmap_HighResolution_428803201_429062401_4FGL_J2251.5-4928_daily_bin731.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.36
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/546731/ft1_filtered_4FGL_J2251.5-4928_daily_bin731.fits evtable="EVENTS" scfile=/scratch/kocevski/546731/ft2_4FGL_J2251.5-4928_daily_bin731.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/546731/Model_4FGL_J2251.5-4928_daily_bin731.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/546731/ft1_filtered_4FGL_J2251.5-4928_daily_bin731.fits......................!
real 29.80
user 28.02
sys 1.34

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    51.064       1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.4490       1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.3190       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .13457E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    12.236       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    15.137       1.0000         .10000E-03   10000.    
     9 'Prefactor '    42.106       1.0000         .10000E-03   10000.    
    10 'Prefactor '    94.426       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10563E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10433E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    12.127       1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    4.5254       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.1630       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .16147       1.0000         .10000E-03   10000.    
    21 'norm      '    1.1790       1.0000         .10000E-03   10000.    
    22 'Prefactor '    9.0891       1.0000         .10000E-03   10000.    
    23 'norm      '    8.9856       1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    3.4790       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    34.031       1.0000         .10000E-03   10000.    
    28 'norm      '    1.0548       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    4.0228       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .87877       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .66451       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=   3050.974     FROM MIGRAD    STATUS=CONVERGED   1551 CALLS     5128 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     50.995        63.558        .56122E-04    .10315E-03
   2  Prefactor     4.4349        8.9580        .19091E-03    .72086E-04
   3  Prefactor     7.3175        7.1468        .13802E-03    .62188E-05
   4  Prefactor     .10001E-03    208.39        .18142E-02** at limit **
   5  norm          12.234        12.704        .11452E-03    .11417E-05
   6  Prefactor     .10000E-03    1.4483        .64874E-03** at limit **
   7  Prefactor     .10000E-03    32.625        .18142E-02** at limit **
   8  Prefactor     15.136        11.414        .10295E-03    .13307E-04
   9  Prefactor     42.104        29.724        .61778E-04    .12514E-04
  10  Prefactor     94.415        58.120        .41360E-04    .24134E-04
  11  Prefactor     .10000E-03    10.418        .17392E-02** at limit **
  12  Prefactor     .10000E-03    62.832        .18142E-02** at limit **
  13  Prefactor     .10000E-03    10.378        .17263E-02** at limit **
  14  Prefactor     .10000E-03    83.023        .18142E-02** at limit **
  15  Prefactor     12.124        26.902        .11503E-03    .11761E-04
  16  norm          .10000E-03    17.807        .18142E-02** at limit **
  17  norm          .10000E-03    3.4362        .99994E-03** at limit **
  18  norm          4.5209        8.1781        .13895E-03    .85912E-04
  19  Prefactor     1.1692        20.400        .32854E-03    .35002E-04
  20  Prefactor     .78952E-01    56.143        .87711E-01    .41980E-04
  21  norm          1.1859        10.409        .21527E-03    .32996E-03
  22  Prefactor     9.0807        31.382        .13294E-03    .32154E-04
  23  norm          8.9859        2.6374        .42875E-04    .13483E-03
  24  norm          .10000E-03    2.6259        .86962E-03** at limit **
  25  Prefactor     3.4783        40.099        .21679E-03    .68172E-05
  26  Prefactor     .10000E-03    1.3675        .62945E-03** at limit **
  27  Prefactor     34.025        24.733        .68693E-04    .21515E-04
  28  norm          1.0434        94.176        .46456E-02    .11692E-03
  29  Prefactor     .10000E-03    2.8806        .91122E-03** at limit **
  30  Prefactor     4.0222        5.6483        .74278E-03    .22656E-03
  31  Normalizat    .87878        .29731        .24297E-03    .87638E-04
  32  Prefactor     .66457        .25566        .26026E-03    .78692E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 50.9951
  Prefactor  = 4.43489
  Prefactor  = 7.31751
  Prefactor  = 0.000100009
  norm       = 12.2343
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.1362
  Prefactor  = 42.1038
  Prefactor  = 94.4152
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 12.1238
  norm       = 0.0001
  norm       = 0.0001
  norm       = 4.52086
  Prefactor  = 1.1692
  Prefactor  = 0.0789521
  norm       = 1.18586
  Prefactor  = 9.08071
  norm       = 8.98593
  norm       = 0.0001
  Prefactor  = 3.47831
  Prefactor  = 0.0001
  Prefactor  = 34.0255
  norm       = 1.04336
  Prefactor  = 0.0001
  Prefactor  = 4.0222
  Normalizat = 0.878785
  Prefactor  = 0.664573
 **********
 **   18 **HESSE 
 **********

 FCN=   3050.974     FROM HESSE     STATUS=OK           637 CALLS     5765 TOTAL
                     EDM=   .87E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     50.995        63.544        .11224E-04   -1.4279    
   2  Prefactor     4.4349        8.9566        .76364E-05   -1.5287    
   3  Prefactor     7.3175        7.1459        .55209E-05   -1.5167    
   4  Prefactor     .10001E-03    208.40        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          12.234        12.704        .45807E-05   -1.5008    
   6  Prefactor     .10000E-03    1.4483        .12975E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    32.626        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     15.136        11.413        .41178E-05   -1.4930    
   9  Prefactor     42.104        29.723        .24711E-05   -1.4409    
  10  Prefactor     94.415        58.118        .82720E-05   -1.3762    
  11  Prefactor     .10000E-03    10.419        .34785E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    62.832        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    10.383        .34525E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    83.028        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     12.124        26.900        .46013E-05   -1.5011    
  16  norm          .10000E-03    17.817        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    3.4362        .19999E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          4.5209        8.1515        .55579E-05   -1.5283    
  19  Prefactor     1.1692        20.196        .13142E-04   -1.5492    
  20  Prefactor     .78952E-01    45.699        .99792E-01   -1.5652    
  21  norm          1.1859        10.217        .86108E-05   -1.5490    
  22  Prefactor     9.0807        31.232        .53176E-05   -1.5105    
  23  norm          8.9859        2.6372        .85750E-05   -1.5108    
  24  norm          .10000E-03    2.6260        .17392E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     3.4783        40.071        .86717E-05   -1.5335    
  26  Prefactor     .10000E-03    1.3676        .12589E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     34.025        24.731        .27477E-05   -1.4541    
  28  norm          1.0434        94.511        .18582E-03   -1.5504    
  29  Prefactor     .10000E-03    2.8808        .18224E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     4.0222        5.6471        .29711E-04   -1.5307    
  31  Normalizat    .87878        .29737        .97188E-05   -.97210    
  32  Prefactor     .66457        .25548        .10411E-04   -1.0493    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.74629e-10
Minuit parameter uncertainties:
  1  63.6289
  2  8.95927
  3  7.14671
  4  0.00280428
  5  12.7069
  6  1.40595e-06
  7  7.83091e-06
  8  11.415
  9  29.7338
  10  58.1529
  11  1.64077e-05
  12  0.000384275
  13  1.04821e-05
  14  0.000771199
  15  26.9271
  16  1.49668e-05
  17  2.86374e-07
  18  8.15347
  19  9.72221
  20  3.79948
  21  6.96304
  22  31.2887
  23  2.63723
  24  2.84176e-05
  25  23.6315
  26  2.62515e-07
  27  24.7386
  28  19.892
  29  1.25101e-06
  30  5.64781
  31  0.29793
  32  0.25593
Done.

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

Extracting fit parameters...

4FGL J2251.5-4928
   Spectrum: PowerLaw
403    Prefactor:  1.000e-04  7.712e-04  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.646e-01  2.559e-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:  8.788e-01  2.979e-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: 1.01e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.47e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/546731/likelihoodResults_428803201_429062401_4FGL_J2251.5-4928_daily_bin731.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) = 3050.97452523
delta logL = -5.7272489812e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3050.97446802
delta logL = -6.45109139441e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10110E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.8086       1.0000          .0000       10.000    
     3 'Normalizat'    .87879       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .66457       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=   3050.974     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      235 TOTAL
                     EDM=   .66E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    6395.9        .90712E-02** at limit **
   2  Index         1.8591        5.2664        .50000       -.54750E-05
   3  Normalizat    .87879        .36306E-01    .44630E-01    .97829E-04
   4  Prefactor     .66457        .34407E-01    .41928E-01    .69246E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100005
  Index      = 1.85907
  Normalizat = 0.878785
  Prefactor  = 0.664572
 **********
 **   18 **HESSE 
 **********

 FCN=   3050.974     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      268 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    8226.0        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8591        9.0701        .50000       -.67922    
   3  Normalizat    .87879        .67447E-01    .24296E-03   -.97210    
   4  Prefactor     .66457        .63917E-01    .26027E-03   -1.0493    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.83858e-08
Minuit parameter uncertainties:
  1  0.0134338
  2  40.0651
  3  0.0674531
  4  0.0639238
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/546731': 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) = 3050.97446795
delta logL = 1.09957909444e-08

Extracting fit parameters...

4FGL J2251.5-4928
   Spectrum: PowerLaw
403    Prefactor:  1.000e-04  1.343e-02  1.000e-04  1.000e+04 ( 1.000e-14)
404        Index:  1.859e+00  4.007e+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.646e-01  6.392e-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:  8.788e-01  6.745e-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/546731/cmap_HighResolution_428803201_429062401_4FGL_J2251.5-4928_daily_bin731.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.47e-03', job_status='DONE', photon_flux_upper_limit='1.01e-07', time_completed='2021-09-29 00:37:51.546221', job_id='546731', GAL2='0.66', fit_tolerance='1e-08', EG2='0.88', EG='0.88', time_epoch_completed='1632901071.55', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.66', dlogl='1.10e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.85' WHERE bin_id='731' AND source_name='4FGL J2251.5-4928' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 00:37:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0010>
Subject: Job 546731: <4FGL_J2251.5-4928_daily_bin731> in cluster <slac> Done

Job <4FGL_J2251.5-4928_daily_bin731> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 00:25:39 2021
Job was executed on host(s) <bullet0010>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 00:25:40 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:25:40 2021
Terminated at Wed Sep 29 00:37:52 2021
Results reported at Wed Sep 29 00:37:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2251.5-4928_daily_bin731 342.879 -49.4691 428803201 429062401 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 :                                   641.47 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             291.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   731 sec.
    Turnaround time :                            733 sec.

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

