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


Performing analysis on: 4FGL_J2251.5-4928_daily_bin951
RA = 342.879, Dec = -49.4691
tmin = 485827201, tmax = 486086401
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='549815', job_status='RUN', time_executed='2021-09-29 00:30:42.734688', time_epoch_executed='1632900642.73' WHERE source_name='4FGL J2251.5-4928' and cadence='daily' and bin_id='951'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/549815

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/549815/ft1_4FGL_J2251.5-4928_daily_bin951.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/549815/ft2_4FGL_J2251.5-4928_daily_bin951.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/549815/ft1_4FGL_J2251.5-4928_daily_bin951.fits outfile=/scratch/kocevski/549815/ft1_filteredMKT_4FGL_J2251.5-4928_daily_bin951.fits ra=342.879 dec=-49.4691 rad=12.0 tmin=485827201.0 tmax=486086401.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.73
user 3.49
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/549815/ft2_4FGL_J2251.5-4928_daily_bin951.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/549815/ft1_filteredMKT_4FGL_J2251.5-4928_daily_bin951.fits evtable="EVENTS" outfile="/scratch/kocevski/549815/ft1_filtered_4FGL_J2251.5-4928_daily_bin951.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/549815/ft1_filtered_4FGL_J2251.5-4928_daily_bin951.fits" evtable="EVENTS" scfile=/scratch/kocevski/549815/ft2_4FGL_J2251.5-4928_daily_bin951.fits sctable="SC_DATA" outfile=/scratch/kocevski/549815/ltcube_485827201_486086401_4FGL_J2251.5-4928_daily_bin951.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/549815/ft2_4FGL_J2251.5-4928_daily_bin951.fits
.....................!
real 12.40
user 11.96
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/549815/ft1_filtered_4FGL_J2251.5-4928_daily_bin951.fits evtable="EVENTS" scfile=/scratch/kocevski/549815/ft2_4FGL_J2251.5-4928_daily_bin951.fits sctable="SC_DATA" expcube=/scratch/kocevski/549815/ltcube_485827201_486086401_4FGL_J2251.5-4928_daily_bin951.fits outfile=/scratch/kocevski/549815/expmap_485827201_486086401_4FGL_J2251.5-4928_daily_bin951.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/549815/ltcube_485827201_486086401_4FGL_J2251.5-4928_daily_bin951.fits
.....................!
real 194.54
user 188.67
sys 5.25

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/549815/ft1_filtered_4FGL_J2251.5-4928_daily_bin951.fits scfile=/scratch/kocevski/549815/ft2_4FGL_J2251.5-4928_daily_bin951.fits outfile=/scratch/kocevski/549815/cmap_485827201_486086401_4FGL_J2251.5-4928_daily_bin951.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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/549815/ft1_filtered_4FGL_J2251.5-4928_daily_bin951.fits scfile=/scratch/kocevski/549815/ft2_4FGL_J2251.5-4928_daily_bin951.fits outfile=/scratch/kocevski/549815/cmap_HighResolution_485827201_486086401_4FGL_J2251.5-4928_daily_bin951.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/549815/ft1_filtered_4FGL_J2251.5-4928_daily_bin951.fits evtable="EVENTS" scfile=/scratch/kocevski/549815/ft2_4FGL_J2251.5-4928_daily_bin951.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/549815/Model_4FGL_J2251.5-4928_daily_bin951.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/549815/ft1_filtered_4FGL_J2251.5-4928_daily_bin951.fits.....................!
real 42.12
user 40.83
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.3504       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11483E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .30840E-02   1.0000         .10000E-03   10000.    
     5 'norm      '    10.352       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.1539       1.0000         .10000E-03   10000.    
     7 'Prefactor '    35.190       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10148E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.1650       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10219E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    12.725       1.0000         .10000E-03   10000.    
    18 'norm      '    23.130       1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.4679       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .15685E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10359E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    7.0096       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .84162       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.2884       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=   5557.946     FROM MIGRAD    STATUS=CONVERGED    866 CALLS     4373 TOTAL
                     EDM=   .91E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    32.432        .33681E-06** at limit **
   2  Prefactor     1.3354        10.996        .18756E-05    .95817E-04
   3  Prefactor     .10000E-03    2.8082       -.12655E-05** at limit **
   4  Prefactor     .10000E-03    1230.5        .75434E-05** at limit **
   5  norm          10.349        8.9675        .36865E-06    .59192E-04
   6  Prefactor     4.1526        3.3726       -.14528E-06    .56458E-04
   7  Prefactor     35.202        46.845        .42700E-06   -.79229E-05
   8  Prefactor     .10000E-03    3.2353       -.86959E-07** at limit **
   9  Prefactor     .10000E-03    7.1517       -.22518E-08** at limit **
  10  Prefactor     .10000E-03    16.614       -.19103E-06** at limit **
  11  Prefactor     .10000E-03    5.8041       -.19778E-06** at limit **
  12  Prefactor     .10000E-03    72.161       -.10863E-05** at limit **
  13  Prefactor     6.1700        9.5599       -.11639E-05    .77584E-04
  14  Prefactor     .10000E-03    91.416       -.20449E-06** at limit **
  15  Prefactor     .10000E-03    4.7436       -.12285E-06** at limit **
  16  norm          .10000E-03    5.2032        .32493E-07** at limit **
  17  norm          12.726        8.1155       -.54694E-07    .12825E-04
  18  norm          23.133        9.0640       -.81198E-07    .28555E-04
  19  Prefactor     8.4648        6.6595       -.18711E-06    .35010E-04
  20  Prefactor     .10000E-03    120.15       -.43242E-06** at limit **
  21  norm          .10000E-03    3.2782       -.12495E-06** at limit **
  22  Prefactor     .10000E-03    22.784       -.28093E-07** at limit **
  23  norm          .10000E-03    .27081       -.27313E-07** at limit **
  24  norm          .10000E-03    2.5675       -.10074E-06** at limit **
  25  Prefactor     7.0093        13.953       -.46631E-06    .80107E-05
  26  Prefactor     .10000E-03    2.6790       -.22688E-06** at limit **
  27  Prefactor     .10000E-03    33.175       -.55046E-06** at limit **
  28  norm          .10000E-03    10.141        .29112E-06** at limit **
  29  Prefactor     .10000E-03    4.4602       -.20139E-06** at limit **
  30  Prefactor     .10000E-03    2.6987       -.90381E-07** at limit **
  31  Normalizat    .84179        .19680        .91878E-06    .14438E-03
  32  Prefactor     1.2882        .19336        .11744E-05    .13671E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 1.33536
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  norm       = 10.3494
  Prefactor  = 4.15261
  Prefactor  = 35.2019
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.17003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 12.7259
  norm       = 23.1327
  Prefactor  = 8.46475
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 7.0093
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.841786
  Prefactor  = 1.28819
 **********
 **   18 **HESSE 
 **********

 FCN=   5557.946     FROM HESSE     STATUS=OK           649 CALLS     5022 TOTAL
                     EDM=   .60E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    32.525        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.3354        11.621        .18825E-02   -1.5477    
   3  Prefactor     .10000E-03    9.7985        .21012E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1214.6        .39596E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          10.349        8.9769        .12453E-03   -1.5064    
   6  Prefactor     4.1526        3.3670        .59026E-03   -1.5300    
   7  Prefactor     35.202        46.767        .67555E-04   -1.4521    
   8  Prefactor     .10000E-03    3.2997        .13103E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    7.1546        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    16.687        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    5.8484        .17553E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    72.212        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     6.1700        9.5144        .80843E-03   -1.5211    
  14  Prefactor     .10000E-03    94.182        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.7538        .15860E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    5.2090        .16608E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          12.726        8.1166        .11229E-03   -1.4994    
  18  norm          23.133        9.0447        .83286E-04   -1.4746    
  19  Prefactor     8.4648        6.6340        .13776E-03   -1.5126    
  20  Prefactor     .10000E-03    121.86        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    3.3028        .13166E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    23.088        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    .27238        .37878E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    2.5862        .11669E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     7.0093        13.954        .15152E-03   -1.5178    
  26  Prefactor     .10000E-03    2.7768        .23866E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    33.617        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    10.139        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    4.5999        .30774E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    2.7127        .11964E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .84179        .23941        .27203E-03   -.98537    
  32  Prefactor     1.2882        .23526        .22444E-03   -.83659    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.97434e-10
Minuit parameter uncertainties:
  1  0.000109107
  2  7.88031
  3  0.000437214
  4  0.000213986
  5  8.97811
  6  3.36716
  7  46.8156
  8  1.22705e-05
  9  3.85207e-06
  10  3.07872e-05
  11  1.13062e-05
  12  0.000107271
  13  9.51671
  14  0.000351076
  15  1.41841e-06
  16  6.02021e-06
  17  8.11732
  18  9.04519
  19  6.63458
  20  0.000383695
  21  3.13481e-06
  22  3.52277e-05
  23  5.29964e-07
  24  3.48799e-06
  25  13.9608
  26  9.43643e-06
  27  5.67507e-05
  28  2.39774e-05
  29  1.19773e-05
  30  4.43235e-06
  31  0.239711
  32  0.235453
Done.

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

Extracting fit parameters...

4FGL J2251.5-4928
   Spectrum: PowerLaw
403    Prefactor:  1.000e-04  3.511e-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:  1.288e+00  2.355e-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.418e-01  2.397e-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: 4.43e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.28e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/549815/likelihoodResults_485827201_486086401_4FGL_J2251.5-4928_daily_bin951.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) = 5557.94617352
delta logL = -5.05370726387e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5557.94617352
delta logL = -5.05348943989e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96360E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    1.8511       1.0000          .0000       10.000    
     3 'Normalizat'    .84179       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2882       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=   5557.946     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      209 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    41.639        .90713E-02** at limit **
   2  Index         1.8081        9.0957        .50000        .23569E-05
   3  Normalizat    .84179        .30120E-02    .44153E-01    .25035E-04
   4  Prefactor     1.2882        .30163E-02    .50768E-01   -.13730E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Index      = 1.80812
  Normalizat = 0.841788
  Prefactor  = 1.28819
 **********
 **   18 **HESSE 
 **********

 FCN=   5557.946     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      240 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    1827.2        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8081        8.3714        .50000       -.69239    
   3  Normalizat    .84179        .20691E-01    .27203E-03   -.98537    
   4  Prefactor     1.2882        .20724E-01    .22444E-03   -.83659    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.17051e-07
Minuit parameter uncertainties:
  1  0.00421432
  2  592.824
  3  0.0206909
  4  0.0207242
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/549815': 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) = 5557.94612295
delta logL = 3.23161657434e-08

Extracting fit parameters...

4FGL J2251.5-4928
   Spectrum: PowerLaw
403    Prefactor:  1.000e-04  4.214e-03  1.000e-04  1.000e+04 ( 1.000e-14)
404        Index:  1.808e+00  5.928e+02  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.288e+00  2.072e-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.418e-01  2.069e-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/549815/cmap_HighResolution_485827201_486086401_4FGL_J2251.5-4928_daily_bin951.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.28e-03', job_status='DONE', photon_flux_upper_limit='4.43e-08', time_completed='2021-09-29 00:44:47.231819', job_id='549815', GAL2='1.29', fit_tolerance='1e-08', EG2='0.84', EG='0.84', time_epoch_completed='1632901487.23', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.29', dlogl='3.23e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.85' WHERE bin_id='951' AND source_name='4FGL J2251.5-4928' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 00:44:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0235>
Subject: Job 549815: <4FGL_J2251.5-4928_daily_bin951> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2251.5-4928_daily_bin951 342.879 -49.4691 485827201 486086401 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 :                                   838.21 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             284.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   856 sec.
    Turnaround time :                            857 sec.

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

