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


Performing analysis on: 4FGL_J2251.5-4928_daily_bin1107
RA = 342.879, Dec = -49.4691
tmin = 526262401, tmax = 526521601
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='551236', job_status='RUN', time_executed='2021-09-29 00:36:04.182533', time_epoch_executed='1632900964.18' WHERE source_name='4FGL J2251.5-4928' and cadence='daily' and bin_id='1107'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/551236

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/551236/ft1_4FGL_J2251.5-4928_daily_bin1107.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/551236/ft2_4FGL_J2251.5-4928_daily_bin1107.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/551236/ft1_4FGL_J2251.5-4928_daily_bin1107.fits outfile=/scratch/kocevski/551236/ft1_filteredMKT_4FGL_J2251.5-4928_daily_bin1107.fits ra=342.879 dec=-49.4691 rad=12.0 tmin=526262401.0 tmax=526521601.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 4.00
user 3.76
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/551236/ft1_filtered_4FGL_J2251.5-4928_daily_bin1107.fits" evtable="EVENTS" scfile=/scratch/kocevski/551236/ft2_4FGL_J2251.5-4928_daily_bin1107.fits sctable="SC_DATA" outfile=/scratch/kocevski/551236/ltcube_526262401_526521601_4FGL_J2251.5-4928_daily_bin1107.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/551236/ft2_4FGL_J2251.5-4928_daily_bin1107.fits
.....................!
real 11.67
user 11.29
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/551236/ft1_filtered_4FGL_J2251.5-4928_daily_bin1107.fits evtable="EVENTS" scfile=/scratch/kocevski/551236/ft2_4FGL_J2251.5-4928_daily_bin1107.fits sctable="SC_DATA" expcube=/scratch/kocevski/551236/ltcube_526262401_526521601_4FGL_J2251.5-4928_daily_bin1107.fits outfile=/scratch/kocevski/551236/expmap_526262401_526521601_4FGL_J2251.5-4928_daily_bin1107.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/551236/ltcube_526262401_526521601_4FGL_J2251.5-4928_daily_bin1107.fits
.....................!
real 191.64
user 186.05
sys 5.28

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/551236/ft1_filtered_4FGL_J2251.5-4928_daily_bin1107.fits scfile=/scratch/kocevski/551236/ft2_4FGL_J2251.5-4928_daily_bin1107.fits outfile=/scratch/kocevski/551236/cmap_526262401_526521601_4FGL_J2251.5-4928_daily_bin1107.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/551236/ft1_filtered_4FGL_J2251.5-4928_daily_bin1107.fits scfile=/scratch/kocevski/551236/ft2_4FGL_J2251.5-4928_daily_bin1107.fits outfile=/scratch/kocevski/551236/cmap_HighResolution_526262401_526521601_4FGL_J2251.5-4928_daily_bin1107.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.53
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    44.873       1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.5147       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.6792       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .12115E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.9211       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.8120       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    121.67       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    24.926       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    5.2556       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.8691       1.0000         .10000E-03   10000.    
    20 'Prefactor '    49.804       1.0000         .10000E-03   10000.    
    21 'norm      '    .10103E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    7.1617       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10278E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    5.4204       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10316E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .82938       1.0000         .10000E-03   10000.    
    30 'Prefactor '    2.4859       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .99070       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .85138       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=   5684.285     FROM MIGRAD    STATUS=CONVERGED    841 CALLS     4336 TOTAL
                     EDM=   .80E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     44.863        36.427       -.14556E-05   -.15665E-03
   2  Prefactor     7.5119        8.4398        .31708E-06    .35808E-04
   3  Prefactor     2.6785        3.6030        .15711E-06   -.14915E-04
   4  Prefactor     .10000E-03    70.834       -.44403E-05** at limit **
   5  norm          .10002E-03    4.2662       -.12826E-05** at limit **
   6  Prefactor     .10000E-03    .83717        .52703E-09** at limit **
   7  Prefactor     .10000E-03    8.9167       -.14789E-05** at limit **
   8  Prefactor     3.9199        5.1158        .29061E-06   -.12530E-04
   9  Prefactor     .10000E-03    6.4460        .14710E-05** at limit **
  10  Prefactor     4.8066        24.612       -.15707E-06    .50437E-05
  11  Prefactor     .10000E-03    7.3132       -.10150E-05** at limit **
  12  Prefactor     121.66        93.408       -.34617E-06   -.56546E-05
  13  Prefactor     .10000E-03    3.5881       -.13582E-07** at limit **
  14  Prefactor     24.923        30.287       -.51208E-06   -.47290E-04
  15  Prefactor     .10000E-03    4.4909        .32535E-06** at limit **
  16  norm          5.2556        5.6397       -.14548E-05    .23154E-03
  17  norm          .10000E-03    1.7122       -.34562E-08** at limit **
  18  norm          .10000E-03    1.7096        .30019E-07** at limit **
  19  Prefactor     7.8688        4.5348        .10721E-07   -.23652E-04
  20  Prefactor     49.821        44.358       -.24620E-06    .23510E-03
  21  norm          .10000E-03    5.0502       -.29301E-06** at limit **
  22  Prefactor     .10000E-03    3.2343        .47388E-07** at limit **
  23  norm          .10000E-03    .38835        .20231E-07** at limit **
  24  norm          7.1625        6.7740        .19589E-05   -.33316E-03
  25  Prefactor     .10001E-03    50.069        .53084E-05** at limit **
  26  Prefactor     5.4204        3.9353        .15208E-06   -.46177E-04
  27  Prefactor     .10000E-03    10.359        .24015E-05** at limit **
  28  norm          .10000E-03    42.508       -.14118E-05** at limit **
  29  Prefactor     .82417        4.0599        .51352E-06   -.29307E-03
  30  Prefactor     2.4857        3.2763       -.99616E-07   -.13054E-03
  31  Normalizat    .99090        .18355       -.12455E-05    .33930E-05
  32  Prefactor     .85121        .17008        .83530E-06   -.62008E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 44.8632
  Prefactor  = 7.51185
  Prefactor  = 2.67851
  Prefactor  = 0.000100005
  norm       = 0.00010002
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 3.91987
  Prefactor  = 0.000100001
  Prefactor  = 4.80665
  Prefactor  = 0.0001
  Prefactor  = 121.665
  Prefactor  = 0.0001
  Prefactor  = 24.9226
  Prefactor  = 0.0001
  norm       = 5.25562
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 7.86877
  Prefactor  = 49.8206
  norm       = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 7.1625
  Prefactor  = 0.000100005
  Prefactor  = 5.42042
  Prefactor  = 0.000100001
  norm       = 0.000100001
  Prefactor  = 0.824171
  Prefactor  = 2.4857
  Normalizat = 0.990895
  Prefactor  = 0.851205
 **********
 **   18 **HESSE 
 **********

 FCN=   5684.285     FROM HESSE     STATUS=OK           653 CALLS     4989 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     44.863        36.593        .59851E-04   -1.4367    
   2  Prefactor     7.5119        8.4198        .14630E-03   -1.5160    
   3  Prefactor     2.6785        3.5880        .15638E-03   -1.5381    
   4  Prefactor     .10000E-03    71.614        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10002E-03    13.740        .29466E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    .84299        .67354E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    9.0064        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.9199        5.0971        .18165E-03   -1.5312    
   9  Prefactor     .10000E-03    6.5464        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.8066        24.385        .18340E-03   -1.5269    
  11  Prefactor     .10000E-03    7.4004        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     121.66        93.307        .18243E-03   -1.3497    
  13  Prefactor     .10000E-03    3.6241        .13944E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     24.923        30.298        .80234E-04   -1.4709    
  15  Prefactor     .10000E-03    4.5025        .15611E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          5.2556        5.6931        .87665E-03   -1.5249    
  17  norm          .10000E-03    1.7123        .96347E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    1.7105        .96265E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     7.8688        4.5346        .11855E-03   -1.5147    
  20  Prefactor     49.821        46.434        .56825E-04   -1.4295    
  21  norm          .10000E-03    5.2297        .33106E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    3.2370        .13240E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    .40000        .91585E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          7.1625        7.1124        .74946E-03   -1.5173    
  25  Prefactor     .10001E-03    52.147        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     5.4204        3.8937        .11588E-03   -1.5242    
  27  Prefactor     .10000E-03    10.598        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    43.318        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .82417        12.350        .27080E-02   -1.5526    
  30  Prefactor     2.4857        3.2690        .15256E-03   -1.5393    
  31  Normalizat    .99090        .22078        .22904E-03   -.93336    
  32  Prefactor     .85121        .20418        .23967E-03   -.97868    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.83841e-09
Minuit parameter uncertainties:
  1  36.611
  2  8.42112
  3  3.58832
  4  0.00115353
  5  0.00105968
  6  6.79762e-07
  7  0.000139772
  8  5.09768
  9  0.000118923
  10  21.6663
  11  6.90303e-05
  12  93.4196
  13  9.16503e-07
  14  30.3164
  15  2.18395e-05
  16  5.69369
  17  2.5408e-07
  18  1.91983e-06
  19  4.53477
  20  46.468
  21  0.000114469
  22  1.37894e-06
  23  2.22176e-07
  24  7.11321
  25  0.00102876
  26  3.89384
  27  0.000235568
  28  0.000337445
  29  6.38189
  30  3.2692
  31  0.220979
  32  0.204365
Done.

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

Extracting fit parameters...

4FGL J2251.5-4928
   Spectrum: PowerLaw
403    Prefactor:  2.492e+01  3.032e+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:  8.512e-01  2.044e-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:  9.909e-01  2.210e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.20
Ra Dec: 342.879 -49.469
Photon Index (Fixed Index): 1.85 +/- 0.00
Photon Flux (Fixed Index): 1.32e-08 +/- 1.60e-08
Energy Flux (Fixed Index): 1.36e-05 +/- 1.65e-05

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

Saving results to:
/scratch/kocevski/551236/likelihoodResults_526262401_526521601_4FGL_J2251.5-4928_daily_bin1107.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) = 5684.19298216
delta logL = 0.0924377779356

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5684.1915541
delta logL = 0.0938658420209

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.371       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2010       1.0000          .0000       10.000    
     3 'Normalizat'    .98116       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85613       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=   5684.192     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      294 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.361        32.745        .96095E-04   -.57142E-04
   2  Index         2.2018        .92610        .71058E-02   -.55130E-04
   3  Normalizat    .98113        .20724        .23003E-03   -.10425E-02
   4  Prefactor     .85636        .20193        .23899E-03   -.11623E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.3613
  Index      = 2.2018
  Normalizat = 0.981127
  Prefactor  = 0.856355
 **********
 **   18 **HESSE 
 **********

 FCN=   5684.192     FROM HESSE     STATUS=OK            25 CALLS      319 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.361        28.962        .38438E-05   -1.4874    
   2  Index         2.2018        .82002        .28423E-03   -.59395    
   3  Normalizat    .98113        .20700        .46005E-04   -.93665    
   4  Prefactor     .85636        .20190        .47798E-04   -.97683    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.51701e-09
Minuit parameter uncertainties:
  1  28.9851
  2  0.825472
  3  0.207168
  4  0.202072
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/551236': 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) = 5684.1915505
delta logL = 0.0938694437027

Extracting fit parameters...

4FGL J2251.5-4928
   Spectrum: PowerLaw
403    Prefactor:  1.736e+01  2.899e+01  1.000e-04  1.000e+04 ( 1.000e-14)
404        Index:  2.202e+00  8.255e-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.564e-01  2.021e-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:  9.811e-01  2.072e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.39
Ra Dec: 342.879 -49.469
Photon Index (Free Index): 2.20 +/- 0.83
Photon Flux (Free Index): 2.08e-08 +/- 2.83e-08
Energy Flux (Free Index): 9.29e-06 +/- 1.23e-05

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/551236/cmap_HighResolution_526262401_526521601_4FGL_J2251.5-4928_daily_bin1107.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.30e-03', comment='SUCCESS', photon_flux='1.32e-08', energy_flux2='9.29e-06', photon_flux_error='1.60e-08', dlogl='9.39e-02', energy_flux='1.36e-05', photon_flux2='2.08e-08', job_status='DONE', time_completed='2021-09-29 00:50:37.863978', photon_index_error2='0.83', photon_index2='2.20', ts='1.20', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', photon_flux_upper_limit='5.81e-08', energy_flux_error2='1.23e-05', EG='0.99', time_epoch_completed='1632901837.86', return_code='0', job_id='551236', GAL2='0.86', EG2='0.98', return_code2='0', energy_flux_error='1.65e-05', photon_flux_error2='2.83e-08', ts2='1.39', photon_index='1.85' WHERE bin_id='1107' AND source_name='4FGL J2251.5-4928' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 00:50:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0160>
Subject: Job 551236: <4FGL_J2251.5-4928_daily_bin1107> in cluster <slac> Done

Job <4FGL_J2251.5-4928_daily_bin1107> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 00:35:25 2021
Job was executed on host(s) <bullet0160>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 00:35:26 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:35:26 2021
Terminated at Wed Sep 29 00:50:38 2021
Results reported at Wed Sep 29 00:50:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2251.5-4928_daily_bin1107 342.879 -49.4691 526262401 526521601 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 :                                   859.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             318.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   912 sec.
    Turnaround time :                            913 sec.

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

