/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 3 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 = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2251.5-4928_daily_bin527
RA = 342.879, Dec = -49.4691
tmin = 375926401, tmax = 376185601
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='537017', job_status='RUN', time_executed='2021-09-28 23:55:30.024245', time_epoch_executed='1632898530.02' WHERE source_name='4FGL J2251.5-4928' and cadence='daily' and bin_id='527'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/537017

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/537017/ft1_4FGL_J2251.5-4928_daily_bin527.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/537017/ft2_4FGL_J2251.5-4928_daily_bin527.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/537017/ft1_4FGL_J2251.5-4928_daily_bin527.fits outfile=/scratch/kocevski/537017/ft1_filteredMKT_4FGL_J2251.5-4928_daily_bin527.fits ra=342.879 dec=-49.4691 rad=12.0 tmin=375926401.0 tmax=376185601.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.41
user 3.20
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/537017/ft1_filtered_4FGL_J2251.5-4928_daily_bin527.fits" evtable="EVENTS" scfile=/scratch/kocevski/537017/ft2_4FGL_J2251.5-4928_daily_bin527.fits sctable="SC_DATA" outfile=/scratch/kocevski/537017/ltcube_375926401_376185601_4FGL_J2251.5-4928_daily_bin527.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/537017/ft2_4FGL_J2251.5-4928_daily_bin527.fits
.....................!
real 11.91
user 11.55
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/537017/ft1_filtered_4FGL_J2251.5-4928_daily_bin527.fits evtable="EVENTS" scfile=/scratch/kocevski/537017/ft2_4FGL_J2251.5-4928_daily_bin527.fits sctable="SC_DATA" expcube=/scratch/kocevski/537017/ltcube_375926401_376185601_4FGL_J2251.5-4928_daily_bin527.fits outfile=/scratch/kocevski/537017/expmap_375926401_376185601_4FGL_J2251.5-4928_daily_bin527.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/537017/ltcube_375926401_376185601_4FGL_J2251.5-4928_daily_bin527.fits
.....................!
real 191.94
user 185.91
sys 5.02

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/537017/ft1_filtered_4FGL_J2251.5-4928_daily_bin527.fits scfile=/scratch/kocevski/537017/ft2_4FGL_J2251.5-4928_daily_bin527.fits outfile=/scratch/kocevski/537017/cmap_375926401_376185601_4FGL_J2251.5-4928_daily_bin527.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.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/537017/ft1_filtered_4FGL_J2251.5-4928_daily_bin527.fits scfile=/scratch/kocevski/537017/ft2_4FGL_J2251.5-4928_daily_bin527.fits outfile=/scratch/kocevski/537017/cmap_HighResolution_375926401_376185601_4FGL_J2251.5-4928_daily_bin527.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    63.031       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.7510       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    6.7088       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.4984       1.0000         .10000E-03   10000.    
     7 'Prefactor '    48.969       1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.5834       1.0000         .10000E-03   10000.    
     9 'Prefactor '    46.660       1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.6638       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10216E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.7061       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.7248       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10050E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    6.2493       1.0000         .10000E-03   10000.    
    22 'Prefactor '    25.420       1.0000         .10000E-03   10000.    
    23 'norm      '    8.3704       1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    11.077       1.0000         .10000E-03   10000.    
    26 'Prefactor '    1.8975       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10182E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    1.4319       1.0000         .10000E-03   10000.    
    30 'Prefactor '    5.9529       1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.0760       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .79741       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=   4752.565     FROM MIGRAD    STATUS=CONVERGED    818 CALLS     4363 TOTAL
                     EDM=   .51E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     63.049        51.950       -.15518E-05    .22024E-04
   2  Prefactor     .10000E-03    4.1333        .15770E-06** at limit **
   3  Prefactor     2.7515        2.9736        .94830E-07    .22169E-04
   4  Prefactor     .10000E-03    29.598       -.23180E-05** at limit **
   5  norm          6.7089        6.4225       -.12335E-07    .32694E-05
   6  Prefactor     3.5004        5.2190        .23018E-05    .55768E-04
   7  Prefactor     48.971        52.041       -.14594E-05    .20998E-05
   8  Prefactor     8.5854        6.5101       -.14800E-06    .62428E-05
   9  Prefactor     46.665        32.023       -.59094E-06    .37530E-05
  10  Prefactor     9.6555        23.929        .12395E-05   -.35556E-06
  11  Prefactor     .10000E-03    4.1853       -.96739E-07** at limit **
  12  Prefactor     .10000E-03    25.491        .57777E-06** at limit **
  13  Prefactor     4.7073        11.438        .24511E-05    .11780E-04
  14  Prefactor     5.7247        29.988        .16963E-05    .14713E-05
  15  Prefactor     .10000E-03    10.299        .33967E-07** at limit **
  16  norm          .10000E-03    16.729       -.10061E-05** at limit **
  17  norm          .10000E-03    4.4964        .23560E-06** at limit **
  18  norm          .10000E-03    2.1493       -.40554E-08** at limit **
  19  Prefactor     .10000E-03    4.6183       -.18155E-06** at limit **
  20  Prefactor     .10000E-03    60.415        .23205E-05** at limit **
  21  norm          6.2489        5.1437       -.15471E-07   -.10563E-03
  22  Prefactor     25.423        19.797        .17620E-06    .33598E-04
  23  norm          8.3706        2.3096        .22004E-07    .74418E-04
  24  norm          .10000E-03    1.6787       -.13831E-07** at limit **
  25  Prefactor     11.080        18.587        .87993E-06   -.56096E-06
  26  Prefactor     1.8960        4.7274        .59037E-06    .41387E-04
  27  Prefactor     .10000E-03    54.660       -.17172E-05** at limit **
  28  norm          .10000E-03    21.433        .18091E-05** at limit **
  29  Prefactor     1.4322        5.0147        .21530E-07   -.16773E-03
  30  Prefactor     5.9534        6.4224        .14377E-06    .14164E-04
  31  Normalizat    1.0757        .22962       -.23903E-05    .34309E-04
  32  Prefactor     .79771        .19352        .13274E-05   -.98361E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 63.0491
  Prefactor  = 0.0001
  Prefactor  = 2.75145
  Prefactor  = 0.0001
  norm       = 6.70888
  Prefactor  = 3.50038
  Prefactor  = 48.9715
  Prefactor  = 8.58538
  Prefactor  = 46.6649
  Prefactor  = 9.65548
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.7073
  Prefactor  = 5.72472
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.24888
  Prefactor  = 25.423
  norm       = 8.37061
  norm       = 0.0001
  Prefactor  = 11.0805
  Prefactor  = 1.89601
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.43223
  Prefactor  = 5.9534
  Normalizat = 1.07565
  Prefactor  = 0.797705
 **********
 **   18 **HESSE 
 **********

 FCN=   4752.565     FROM HESSE     STATUS=OK           657 CALLS     5020 TOTAL
                     EDM=   .96E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     63.049        52.090        .50544E-04   -1.4118    
   2  Prefactor     .10000E-03    4.1592        .13684E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.7515        2.9628        .11903E-03   -1.5376    
   4  Prefactor     .10000E-03    29.595        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          6.7089        6.4263        .15492E-03   -1.5190    
   6  Prefactor     3.5004        5.2114        .88613E-03   -1.5334    
   7  Prefactor     48.971        52.074        .57305E-04   -1.4307    
   8  Prefactor     8.5854        6.5151        .13682E-03   -1.5122    
   9  Prefactor     46.665        32.068        .58699E-04   -1.4341    
  10  Prefactor     9.6555        23.980        .12891E-03   -1.5086    
  11  Prefactor     .10000E-03    4.1952        .13767E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    25.489        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.7073        11.384        .92747E-03   -1.5274    
  14  Prefactor     5.7247        30.003        .83937E-03   -1.5229    
  15  Prefactor     .10000E-03    10.320        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    16.908        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    4.5037        .14274E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    2.1495        .98686E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    4.6263        .14450E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    60.576        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          6.2489        5.1477        .13726E-03   -1.5208    
  22  Prefactor     25.423        19.825        .79452E-04   -1.4699    
  23  norm          8.3706        2.3087        .50618E-04   -1.5129    
  24  norm          .10000E-03    1.6802        .87223E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     11.080        18.605        .60187E-03   -1.5042    
  26  Prefactor     1.8960        4.6672        .21717E-03   -1.5433    
  27  Prefactor     .10000E-03    55.429        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    21.416        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     1.4322        4.9516        .27232E-03   -1.5469    
  30  Prefactor     5.9534        6.4299        .16458E-03   -1.5220    
  31  Normalizat    1.0757        .27023        .24786E-03   -.90537    
  32  Prefactor     .79771        .22856        .26372E-03   -.99813    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.58478e-11
Minuit parameter uncertainties:
  1  52.1278
  2  2.59361e-05
  3  2.96293
  4  5.07373e-05
  5  6.42692
  6  5.21212
  7  52.1229
  8  6.5156
  9  32.0799
  10  24.0038
  11  1.40743e-05
  12  1.60047e-05
  13  11.3896
  14  26.2317
  15  7.05943e-06
  16  1.58473e-05
  17  1.7106e-06
  18  1.27589e-07
  19  2.38803e-06
  20  0.000105434
  21  5.14809
  22  19.8303
  23  2.30876
  24  5.80226e-07
  25  18.6149
  26  4.66814
  27  5.15032e-05
  28  7.65158e-05
  29  4.95303
  30  6.43061
  31  0.270578
  32  0.228828
Done.

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

Extracting fit parameters...

4FGL J2251.5-4928
   Spectrum: PowerLaw
403    Prefactor:  5.725e+00  2.623e+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:  7.977e-01  2.288e-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.076e+00  2.706e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/537017/likelihoodResults_375926401_376185601_4FGL_J2251.5-4928_daily_bin527.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) = 4752.55906549
delta logL = 0.0057480003843

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4752.55846005
delta logL = 0.00635344486182

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.9587       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0423       1.0000          .0000       10.000    
     3 'Normalizat'    1.0749       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79749       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=   4752.558     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      256 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.9623        34.552        .18061E-03   -.10575E-04
   2  Index         2.0412        1.8183        .12888E-01    .12138E-03
   3  Normalizat    1.0749        .23951        .24794E-03    .34712E-03
   4  Prefactor     .79785        .22404        .26369E-03    .37292E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.96228
  Index      = 2.04118
  Normalizat = 1.07488
  Prefactor  = 0.797851
 **********
 **   18 **HESSE 
 **********

 FCN=   4752.558     FROM HESSE     STATUS=OK            25 CALLS      281 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.9623        29.334        .72242E-05   -1.5262    
   2  Index         2.0412        1.6867        .25777E-02   -.63325    
   3  Normalizat    1.0749        .23967        .49588E-04   -.90563    
   4  Prefactor     .79785        .22418        .52738E-04   -.99808    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.2151e-10
Minuit parameter uncertainties:
  1  24.1474
  2  1.7403
  3  0.23991
  4  0.224438
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/537017': 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) = 4752.55845474
delta logL = 0.00635875600801

Extracting fit parameters...

4FGL J2251.5-4928
   Spectrum: PowerLaw
403    Prefactor:  4.962e+00  2.415e+01  1.000e-04  1.000e+04 ( 1.000e-14)
404        Index:  2.041e+00  1.740e+00  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:  7.979e-01  2.244e-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.075e+00  2.399e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.06
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/537017/cmap_HighResolution_375926401_376185601_4FGL_J2251.5-4928_daily_bin527.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.90e-03', job_status='DONE', photon_flux_upper_limit='5.26e-08', time_completed='2021-09-29 00:08:29.123395', job_id='537017', GAL2='0.80', fit_tolerance='1e-08', EG2='1.07', EG='1.08', time_epoch_completed='1632899309.12', return_code2='0', ts='0.06', comment='SUCCESS', return_code='0', GAL='0.80', dlogl='6.36e-03', ts2='0.07', photon_index_error='0.00', photon_index='1.85' WHERE bin_id='527' AND source_name='4FGL J2251.5-4928' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 00:08:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0054>
Subject: Job 537017: <4FGL_J2251.5-4928_daily_bin527> in cluster <slac> Done

Job <4FGL_J2251.5-4928_daily_bin527> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 23:55:17 2021
Job was executed on host(s) <bullet0054>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 23:55:19 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 23:55:19 2021
Terminated at Wed Sep 29 00:08:29 2021
Results reported at Wed Sep 29 00:08:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2251.5-4928_daily_bin527 342.879 -49.4691 375926401 376185601 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 :                                   775.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             319.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   790 sec.
    Turnaround time :                            792 sec.

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

