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


Performing analysis on: 4FGL_J2251.5-4928_daily_bin755
RA = 342.879, Dec = -49.4691
tmin = 435024001, tmax = 435283201
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='549485', job_status='RUN', time_executed='2021-09-29 00:33:29.797679', time_epoch_executed='1632900809.8' WHERE source_name='4FGL J2251.5-4928' and cadence='daily' and bin_id='755'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/549485

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/549485/ft1_4FGL_J2251.5-4928_daily_bin755.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/549485/ft2_4FGL_J2251.5-4928_daily_bin755.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/549485/ft1_4FGL_J2251.5-4928_daily_bin755.fits outfile=/scratch/kocevski/549485/ft1_filteredMKT_4FGL_J2251.5-4928_daily_bin755.fits ra=342.879 dec=-49.4691 rad=12.0 tmin=435024001.0 tmax=435283201.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 5.05
user 4.78
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/549485/ft2_4FGL_J2251.5-4928_daily_bin755.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/549485/ft1_filteredMKT_4FGL_J2251.5-4928_daily_bin755.fits evtable="EVENTS" outfile="/scratch/kocevski/549485/ft1_filtered_4FGL_J2251.5-4928_daily_bin755.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/549485/ft1_filtered_4FGL_J2251.5-4928_daily_bin755.fits" evtable="EVENTS" scfile=/scratch/kocevski/549485/ft2_4FGL_J2251.5-4928_daily_bin755.fits sctable="SC_DATA" outfile=/scratch/kocevski/549485/ltcube_435024001_435283201_4FGL_J2251.5-4928_daily_bin755.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/549485/ft2_4FGL_J2251.5-4928_daily_bin755.fits
.....................!
real 12.92
user 12.53
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/549485/ft1_filtered_4FGL_J2251.5-4928_daily_bin755.fits evtable="EVENTS" scfile=/scratch/kocevski/549485/ft2_4FGL_J2251.5-4928_daily_bin755.fits sctable="SC_DATA" expcube=/scratch/kocevski/549485/ltcube_435024001_435283201_4FGL_J2251.5-4928_daily_bin755.fits outfile=/scratch/kocevski/549485/expmap_435024001_435283201_4FGL_J2251.5-4928_daily_bin755.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/549485/ltcube_435024001_435283201_4FGL_J2251.5-4928_daily_bin755.fits
.....................!
real 192.38
user 186.13
sys 5.49

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/549485/ft1_filtered_4FGL_J2251.5-4928_daily_bin755.fits scfile=/scratch/kocevski/549485/ft2_4FGL_J2251.5-4928_daily_bin755.fits outfile=/scratch/kocevski/549485/cmap_435024001_435283201_4FGL_J2251.5-4928_daily_bin755.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/549485/ft1_filtered_4FGL_J2251.5-4928_daily_bin755.fits scfile=/scratch/kocevski/549485/ft2_4FGL_J2251.5-4928_daily_bin755.fits outfile=/scratch/kocevski/549485/cmap_HighResolution_435024001_435283201_4FGL_J2251.5-4928_daily_bin755.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.55
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    29.782       1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.7617       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.5385       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    49.004       1.0000         .10000E-03   10000.    
    10 'Prefactor '    98.911       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .70188E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.5287       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    71.994       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    7.7141       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    7.1443       1.0000         .10000E-03   10000.    
    24 'norm      '    3.9073       1.0000         .10000E-03   10000.    
    25 'Prefactor '    24.327       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    13.462       1.0000         .10000E-03   10000.    
    28 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .72800       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.5493       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=   3000.960     FROM MIGRAD    STATUS=CONVERGED    823 CALLS     4402 TOTAL
                     EDM=   .48E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     29.732        75.818       -.66380E-06   -.39961E-04
   2  Prefactor     4.7693        16.091       -.24053E-06   -.10273E-04
   3  Prefactor     .10000E-03    2.0997        .30398E-07** at limit **
   4  Prefactor     .10000E-03    128.03       -.16270E-06** at limit **
   5  norm          .10000E-03    7.8297       -.64793E-07** at limit **
   6  Prefactor     6.5386        7.0877        .44349E-07   -.45359E-05
   7  Prefactor     .10000E-03    31.663        .17426E-07** at limit **
   8  Prefactor     .10000E-03    5.1798       -.52578E-07** at limit **
   9  Prefactor     49.002        51.825       -.24733E-06   -.31094E-05
  10  Prefactor     98.904        61.174        .11009E-05    .21060E-06
  11  Prefactor     .10000E-03    62.125        .59085E-06** at limit **
  12  Prefactor     .10000E-03    127.71        .12088E-07** at limit **
  13  Prefactor     8.5287        14.826       -.10570E-07   -.35077E-05
  14  Prefactor     .10000E-03    27.833       -.60779E-07** at limit **
  15  Prefactor     71.986        40.369       -.25302E-06   -.19973E-04
  16  norm          .10000E-03    8.4483        .13415E-06** at limit **
  17  norm          7.7133        11.299        .12825E-05    .26043E-04
  18  norm          .10000E-03    3.0699        .49868E-08** at limit **
  19  Prefactor     .10000E-03    4.1185       -.25604E-07** at limit **
  20  Prefactor     .10000E-03    26.454        .59446E-07** at limit **
  21  norm          .10000E-03    2.5891        .19313E-07** at limit **
  22  Prefactor     .10000E-03    9.0828        .31936E-07** at limit **
  23  norm          7.1450        3.2989       -.39202E-07   -.40132E-06
  24  norm          3.9079        5.7288        .15063E-05    .66498E-04
  25  Prefactor     24.322        31.902       -.18033E-06   -.63328E-05
  26  Prefactor     .10000E-03    2.1126       -.84313E-07** at limit **
  27  Prefactor     13.450        39.390       -.72216E-06   -.11583E-04
  28  norm          .10000E-03    13.161        .43909E-07** at limit **
  29  Prefactor     .10000E-03    2.7518       -.78414E-09** at limit **
  30  Prefactor     .10000E-03    9.5894       -.15105E-06** at limit **
  31  Normalizat    .72813        .36323        .30400E-05   -.25429E-04
  32  Prefactor     1.5492        .32375       -.21140E-05    .53241E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 29.7323
  Prefactor  = 4.76926
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 6.53862
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 49.0019
  Prefactor  = 98.9045
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.52869
  Prefactor  = 0.0001
  Prefactor  = 71.9857
  norm       = 0.0001
  norm       = 7.7133
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 7.14501
  norm       = 3.90787
  Prefactor  = 24.3221
  Prefactor  = 0.0001
  Prefactor  = 13.4499
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.728133
  Prefactor  = 1.5492
 **********
 **   18 **HESSE 
 **********

 FCN=   3000.960     FROM HESSE     STATUS=OK           645 CALLS     5047 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     29.732        75.733        .73416E-04   -1.4617    
   2  Prefactor     4.7693        15.990        .18438E-03   -1.5271    
   3  Prefactor     .10000E-03    2.1025        .77503E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    128.05        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    7.8414        .14972E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.5386        7.0850        .14492E-03   -1.5196    
   7  Prefactor     .10000E-03    31.667        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    5.1921        .12175E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     49.002        51.930        .57284E-04   -1.4307    
  10  Prefactor     98.904        61.542        .40420E-04   -1.3716    
  11  Prefactor     .10000E-03    63.592        .41956E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    127.79        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     8.5287        14.831        .13726E-03   -1.5124    
  14  Prefactor     .10000E-03    27.838        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     71.986        40.518        .47314E-04   -1.4009    
  16  norm          .10000E-03    8.4545        .15554E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          7.7133        11.317        .72190E-03   -1.5152    
  18  norm          .10000E-03    3.0701        .93745E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    4.1217        .10857E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    26.501        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    2.5947        .86072E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    9.0890        .16125E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          7.1450        3.3021        .58423E-04   -1.5173    
  24  norm          3.9079        5.7908        .78166E-03   -1.5313    
  25  Prefactor     24.322        32.000        .81215E-04   -1.4721    
  26  Prefactor     .10000E-03    2.1150        .77700E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     13.450        39.463        .10917E-03   -1.4974    
  28  norm          .10000E-03    13.162        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    2.7541        .88744E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    9.6979        .16563E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .72813        .41925        .34732E-03   -1.0279    
  32  Prefactor     1.5492        .37493        .24624E-03   -.76171    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.18431e-10
Minuit parameter uncertainties:
  1  75.9794
  2  16.0045
  3  1.26744e-06
  4  7.50333e-05
  5  1.9852e-05
  6  7.08588
  7  5.74133e-06
  8  4.90847e-06
  9  51.978
  10  61.5815
  11  2.42941e-05
  12  5.51308e-05
  13  14.8372
  14  3.10686e-05
  15  40.5339
  16  3.00154e-05
  17  11.3198
  18  6.99316e-07
  19  3.27286e-06
  20  2.93952e-05
  21  3.57344e-06
  22  8.63144e-06
  23  3.30217
  24  5.79159
  25  32.0222
  26  1.61404e-07
  27  39.5393
  28  1.39599e-05
  29  2.11947e-07
  30  3.52739e-05
  31  0.421118
  32  0.375607
Done.

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

Extracting fit parameters...

4FGL J2251.5-4928
   Spectrum: PowerLaw
403    Prefactor:  1.000e-04  3.107e-05  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:  1.549e+00  3.756e-01  0.000e+00  1.000e+01 ( 1.000e+00)
590        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
591        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
588   Normalization:  7.281e-01  4.211e-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: 7.63e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.65e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/549485/likelihoodResults_435024001_435283201_4FGL_J2251.5-4928_daily_bin755.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) = 3000.95996135
delta logL = -0.000168338869116

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3000.95979804
delta logL = -5.0204771469e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12971E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7845       1.0000          .0000       10.000    
     3 'Normalizat'    .72814       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.5492       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=   3000.960     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      253 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.087        .90712E-02** at limit **
   2  Index         2.7514        6.3757        .50000        .30714E-04
   3  Normalizat    .72814        .82858E-02    .78449E-01    .63059E-05
   4  Prefactor     1.5492        .82462E-02    .55696E-01   -.20277E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.75139
  Normalizat = 0.728136
  Prefactor  = 1.5492
 **********
 **   18 **HESSE 
 **********

 FCN=   3000.960     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      284 TOTAL
                     EDM=   .12E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    791.47        .16826E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7514        6.3676        .50000       -.46645    
   3  Normalizat    .72814        .74917E-01    .34731E-03   -1.0279    
   4  Prefactor     1.5492        .74708E-01    .24624E-03   -.76171    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.24526e-07
Minuit parameter uncertainties:
  1  0.00149014
  2  40.4418
  3  0.0749272
  4  0.0747134
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/549485': 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) = 3000.95979624
delta logL = -3.22606501868e-06

Extracting fit parameters...

4FGL J2251.5-4928
   Spectrum: PowerLaw
403    Prefactor:  1.000e-04  1.490e-03  1.000e-04  1.000e+04 ( 1.000e-14)
404        Index:  2.751e+00  4.044e+01  0.000e+00  1.000e+01 (-1.000e+00)
405        Scale:  2.716e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
589    Prefactor:  1.549e+00  7.471e-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:  7.281e-01  7.493e-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/549485/cmap_HighResolution_435024001_435283201_4FGL_J2251.5-4928_daily_bin755.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.65e-03', job_status='DONE', photon_flux_upper_limit='7.63e-08', time_completed='2021-09-29 00:43:55.987841', job_id='549485', GAL2='1.55', fit_tolerance='1e-08', EG2='0.73', EG='0.73', time_epoch_completed='1632901435.99', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.55', dlogl='-3.23e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.85' WHERE bin_id='755' AND source_name='4FGL J2251.5-4928' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 00:43:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0077>
Subject: Job 549485: <4FGL_J2251.5-4928_daily_bin755> in cluster <slac> Done

Job <4FGL_J2251.5-4928_daily_bin755> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep 29 00:30:13 2021
Job was executed on host(s) <bullet0077>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 00:30:14 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:30:14 2021
Terminated at Wed Sep 29 00:43:56 2021
Results reported at Wed Sep 29 00:43:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2251.5-4928_daily_bin755 342.879 -49.4691 435024001 435283201 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 :                                   624.19 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             228.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   822 sec.
    Turnaround time :                            823 sec.

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

