/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 = 7471
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2251.5-4928_daily_bin194
RA = 342.879, Dec = -49.4691
tmin = 289612801, tmax = 289872001
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='535484', job_status='RUN', time_executed='2021-09-28 23:50:28.047292', time_epoch_executed='1632898228.05' WHERE source_name='4FGL J2251.5-4928' and cadence='daily' and bin_id='194'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/535484

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/535484/ft1_4FGL_J2251.5-4928_daily_bin194.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/535484/ft2_4FGL_J2251.5-4928_daily_bin194.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/535484/ft1_4FGL_J2251.5-4928_daily_bin194.fits outfile=/scratch/kocevski/535484/ft1_filteredMKT_4FGL_J2251.5-4928_daily_bin194.fits ra=342.879 dec=-49.4691 rad=12.0 tmin=289612801.0 tmax=289872001.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.70
user 3.48
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/535484/ft1_filtered_4FGL_J2251.5-4928_daily_bin194.fits" evtable="EVENTS" scfile=/scratch/kocevski/535484/ft2_4FGL_J2251.5-4928_daily_bin194.fits sctable="SC_DATA" outfile=/scratch/kocevski/535484/ltcube_289612801_289872001_4FGL_J2251.5-4928_daily_bin194.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/535484/ft2_4FGL_J2251.5-4928_daily_bin194.fits
.....................!
real 12.09
user 11.76
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/535484/ft1_filtered_4FGL_J2251.5-4928_daily_bin194.fits evtable="EVENTS" scfile=/scratch/kocevski/535484/ft2_4FGL_J2251.5-4928_daily_bin194.fits sctable="SC_DATA" expcube=/scratch/kocevski/535484/ltcube_289612801_289872001_4FGL_J2251.5-4928_daily_bin194.fits outfile=/scratch/kocevski/535484/expmap_289612801_289872001_4FGL_J2251.5-4928_daily_bin194.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/535484/ltcube_289612801_289872001_4FGL_J2251.5-4928_daily_bin194.fits
.....................!
real 190.37
user 185.51
sys 4.48

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/535484/ft1_filtered_4FGL_J2251.5-4928_daily_bin194.fits scfile=/scratch/kocevski/535484/ft2_4FGL_J2251.5-4928_daily_bin194.fits outfile=/scratch/kocevski/535484/cmap_289612801_289872001_4FGL_J2251.5-4928_daily_bin194.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/535484/ft1_filtered_4FGL_J2251.5-4928_daily_bin194.fits scfile=/scratch/kocevski/535484/ft2_4FGL_J2251.5-4928_daily_bin194.fits outfile=/scratch/kocevski/535484/cmap_HighResolution_289612801_289872001_4FGL_J2251.5-4928_daily_bin194.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.56
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.1644       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.6667       1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.1144       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    5.0905       1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.6313       1.0000         .10000E-03   10000.    
     7 'Prefactor '    17.385       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.8131       1.0000         .10000E-03   10000.    
     9 'Prefactor '    17.766       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .24631E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.879       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10838E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    14.098       1.0000         .10000E-03   10000.    
    17 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    13.226       1.0000         .10000E-03   10000.    
    20 'Prefactor '    17.870       1.0000         .10000E-03   10000.    
    21 'norm      '    .10161E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    9.0377       1.0000         .10000E-03   10000.    
    23 'norm      '    5.4425       1.0000         .10000E-03   10000.    
    24 'norm      '    5.5495       1.0000         .10000E-03   10000.    
    25 'Prefactor '    15.298       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .28595E-02   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.2387       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .88230       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=   5889.232     FROM MIGRAD    STATUS=CONVERGED    855 CALLS     4355 TOTAL
                     EDM=   .84E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.1692        38.461        .11895E-05    .14046E-04
   2  Prefactor     2.6642        10.557       -.21603E-05    .27021E-04
   3  Prefactor     9.1131        5.1020        .10408E-06    .13378E-03
   4  Prefactor     .10000E-03    57.225       -.21265E-05** at limit **
   5  norm          5.0943        7.9257        .21833E-06    .38977E-04
   6  Prefactor     6.6300        5.3361       -.65918E-08    .15770E-04
   7  Prefactor     17.383        40.649       -.19088E-06    .22446E-07
   8  Prefactor     4.8107        6.1225        .40557E-06    .41882E-04
   9  Prefactor     17.769        19.770       -.69297E-07    .19891E-05
  10  Prefactor     .10002E-03    66.656       -.10176E-04** at limit **
  11  Prefactor     11.864        13.516        .16692E-05    .13442E-03
  12  Prefactor     .10000E-03    29.275        .73225E-07** at limit **
  13  Prefactor     .10000E-03    2.1431       -.17535E-07** at limit **
  14  Prefactor     .10000E-03    69.159        .22260E-05** at limit **
  15  Prefactor     .10000E-03    5.1553       -.20437E-07** at limit **
  16  norm          14.090        14.139       -.12634E-06   -.65097E-05
  17  norm          .10000E-03    2.0365       -.10420E-07** at limit **
  18  norm          .10000E-03    2.1007       -.33280E-07** at limit **
  19  Prefactor     13.212        14.820       -.22320E-07   -.48517E-04
  20  Prefactor     17.856        45.871       -.37924E-06   -.54545E-05
  21  norm          .10000E-03    3.1679       -.19650E-06** at limit **
  22  Prefactor     9.0929        30.641        .61680E-07    .21999E-04
  23  norm          5.4421        1.7441       -.70725E-08   -.90908E-04
  24  norm          5.5483        5.1514        .18742E-07    .28328E-04
  25  Prefactor     15.299        16.586       -.11092E-06    .99887E-05
  26  Prefactor     .10000E-03    .93252       -.64592E-08** at limit **
  27  Prefactor     .10000E-03    5.3189       -.16007E-07** at limit **
  28  norm          .10000E-03    66.091        .80919E-05** at limit **
  29  Prefactor     .10000E-03    3.8773       -.10346E-07** at limit **
  30  Prefactor     .10000E-03    1.9266       -.87591E-08** at limit **
  31  Normalizat    1.2390        .21492        .64577E-06   -.10756E-04
  32  Prefactor     .88203        .19144        .20824E-06    .65329E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.16922
  Prefactor  = 2.66424
  Prefactor  = 9.11309
  Prefactor  = 0.0001
  norm       = 5.09428
  Prefactor  = 6.62995
  Prefactor  = 17.3832
  Prefactor  = 4.81075
  Prefactor  = 17.7692
  Prefactor  = 0.000100022
  Prefactor  = 11.8645
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 14.0897
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 13.2124
  Prefactor  = 17.8561
  norm       = 0.0001
  Prefactor  = 9.09295
  norm       = 5.44215
  norm       = 5.5483
  Prefactor  = 15.2995
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.239
  Prefactor  = 0.88203
 **********
 **   18 **HESSE 
 **********

 FCN=   5889.232     FROM HESSE     STATUS=OK           667 CALLS     5022 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.1692        38.630        .13239E-03   -1.5102    
   2  Prefactor     2.6642        10.614        .12479E-02   -1.5382    
   3  Prefactor     9.1131        5.1041        .12232E-03   -1.5104    
   4  Prefactor     .10000E-03    57.265        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          5.0943        7.9248        .17821E-03   -1.5257    
   6  Prefactor     6.6300        5.3497        .14856E-03   -1.5193    
   7  Prefactor     17.383        40.623        .96058E-04   -1.4874    
   8  Prefactor     4.8107        6.1202        .18337E-03   -1.5269    
   9  Prefactor     17.769        19.773        .95021E-04   -1.4865    
  10  Prefactor     .10002E-03    172.42        .70179E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     11.864        13.732        .11623E-03   -1.5019    
  12  Prefactor     .10000E-03    29.277        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.1453        .10971E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    69.084        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.1605        .17016E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          14.090        14.138        .10668E-03   -1.4957    
  17  norm          .10000E-03    2.0367        .10695E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    2.1035        .10860E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     13.212        14.619        .11014E-03   -1.4981    
  20  Prefactor     17.856        46.163        .94745E-04   -1.4863    
  21  norm          .10000E-03    3.1678        .13257E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     9.0929        30.289        .13332E-03   -1.5105    
  23  norm          5.4421        1.7452        .52688E-04   -1.5241    
  24  norm          5.5483        5.1338        .15358E-03   -1.5237    
  25  Prefactor     15.299        16.649        .10240E-03   -1.4925    
  26  Prefactor     .10000E-03    .93757        .72350E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    5.3210        .17286E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    83.956        .52472E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    3.9460        .14719E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    1.9373        .10401E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.2390        .25962        .24764E-03   -.85406    
  32  Prefactor     .88203        .22806        .27618E-03   -.96772    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.84336e-10
Minuit parameter uncertainties:
  1  37.682
  2  10.6211
  3  5.10438
  4  1.58299e-05
  5  7.92642
  6  5.35008
  7  40.688
  8  6.12096
  9  19.7801
  10  0.00389782
  11  13.7361
  12  1.38574e-07
  13  1.01651e-06
  14  0.000262441
  15  3.51994e-06
  16  14.1411
  17  7.50496e-07
  18  4.85838e-06
  19  14.6233
  20  46.2554
  21  3.6381e-05
  22  30.3402
  23  1.74527
  24  5.1342
  25  16.6539
  26  1.51284e-06
  27  5.67748e-06
  28  0.000957486
  29  3.82642e-06
  30  3.53994e-06
  31  0.259894
  32  0.228306
Done.

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

Extracting fit parameters...

4FGL J2251.5-4928
   Spectrum: PowerLaw
403    Prefactor:  1.000e-04  2.624e-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:  8.820e-01  2.283e-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.239e+00  2.599e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/535484/likelihoodResults_289612801_289872001_4FGL_J2251.5-4928_daily_bin194.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) = 5889.23167125
delta logL = -6.88628006174e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5889.20081589
delta logL = 0.030786499432

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.1127       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7426       1.0000          .0000       10.000    
     3 'Normalizat'    1.2290       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88485       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=   5889.201     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      354 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.1126        475.46        .70954E-02    .55716E-03
   2  Index         2.7425        6.2472        .13663        .10230E-03
   3  Normalizat    1.2290        .40042E-01    .56198E-01    .66881E-05
   4  Prefactor     .88485        .38079E-01    .44812E-01    .14072E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.11263
  Index      = 2.74245
  Normalizat = 1.22898
  Prefactor  = 0.884845
 **********
 **   18 **HESSE 
 **********

 FCN=   5889.201     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      387 TOTAL
                     EDM=   .27E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.1126        1638.3        .28382E-03   -1.5417    
   2  Index         2.7425        8.6039        .13987E-01   -.46846    
   3  Normalizat    1.2290        .21321        .24851E-03   -.85712    
   4  Prefactor     .88485        .21401        .27579E-03   -.96673    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.70429e-06
Minuit parameter uncertainties:
  1  121.15
  2  19.564
  3  0.213365
  4  0.214218
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/535484': 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) = 5889.20081588
delta logL = 0.0307865089017

Extracting fit parameters...

4FGL J2251.5-4928
   Spectrum: PowerLaw
403    Prefactor:  2.113e+00  1.212e+02  1.000e-04  1.000e+04 ( 1.000e-14)
404        Index:  2.742e+00  1.956e+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:  8.848e-01  2.142e-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.229e+00  2.134e-01  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/535484/cmap_HighResolution_289612801_289872001_4FGL_J2251.5-4928_daily_bin194.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.25e-03', job_status='DONE', photon_flux_upper_limit='5.75e-08', time_completed='2021-09-29 00:05:23.100712', job_id='535484', GAL2='0.88', fit_tolerance='1e-08', EG2='1.23', EG='1.24', time_epoch_completed='1632899123.1', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='3.08e-02', ts2='0.06', photon_index_error='0.00', photon_index='1.85' WHERE bin_id='194' AND source_name='4FGL J2251.5-4928' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 00:05:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0046>
Subject: Job 535484: <4FGL_J2251.5-4928_daily_bin194> in cluster <slac> Done

Job <4FGL_J2251.5-4928_daily_bin194> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 23:50:14 2021
Job was executed on host(s) <bullet0046>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 23:50:16 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:50:16 2021
Terminated at Wed Sep 29 00:05:23 2021
Results reported at Wed Sep 29 00:05:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2251.5-4928_daily_bin194 342.879 -49.4691 289612801 289872001 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 :                                   892.34 sec.
    Max Memory :                                 1105 MB
    Average Memory :                             327.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   907 sec.
    Turnaround time :                            909 sec.

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

