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


Performing analysis on: 4FGL_J2251.5-4928_daily_bin1308
RA = 342.879, Dec = -49.4691
tmin = 578361601, tmax = 578620801
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='552734', job_status='RUN', time_executed='2021-09-29 00:41:50.065228', time_epoch_executed='1632901310.07' WHERE source_name='4FGL J2251.5-4928' and cadence='daily' and bin_id='1308'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/552734

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/552734/ft1_4FGL_J2251.5-4928_daily_bin1308.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/552734/ft2_4FGL_J2251.5-4928_daily_bin1308.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/552734/ft1_4FGL_J2251.5-4928_daily_bin1308.fits outfile=/scratch/kocevski/552734/ft1_filteredMKT_4FGL_J2251.5-4928_daily_bin1308.fits ra=342.879 dec=-49.4691 rad=12.0 tmin=578361601.0 tmax=578620801.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.66
user 3.43
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/552734/ft2_4FGL_J2251.5-4928_daily_bin1308.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/552734/ft1_filteredMKT_4FGL_J2251.5-4928_daily_bin1308.fits evtable="EVENTS" outfile="/scratch/kocevski/552734/ft1_filtered_4FGL_J2251.5-4928_daily_bin1308.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/552734/ft1_filtered_4FGL_J2251.5-4928_daily_bin1308.fits" evtable="EVENTS" scfile=/scratch/kocevski/552734/ft2_4FGL_J2251.5-4928_daily_bin1308.fits sctable="SC_DATA" outfile=/scratch/kocevski/552734/ltcube_578361601_578620801_4FGL_J2251.5-4928_daily_bin1308.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/552734/ft2_4FGL_J2251.5-4928_daily_bin1308.fits
.....................!
real 12.09
user 11.73
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/552734/ft1_filtered_4FGL_J2251.5-4928_daily_bin1308.fits evtable="EVENTS" scfile=/scratch/kocevski/552734/ft2_4FGL_J2251.5-4928_daily_bin1308.fits sctable="SC_DATA" expcube=/scratch/kocevski/552734/ltcube_578361601_578620801_4FGL_J2251.5-4928_daily_bin1308.fits outfile=/scratch/kocevski/552734/expmap_578361601_578620801_4FGL_J2251.5-4928_daily_bin1308.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/552734/ltcube_578361601_578620801_4FGL_J2251.5-4928_daily_bin1308.fits
.....................!
real 192.16
user 186.05
sys 5.79

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/552734/ft1_filtered_4FGL_J2251.5-4928_daily_bin1308.fits scfile=/scratch/kocevski/552734/ft2_4FGL_J2251.5-4928_daily_bin1308.fits outfile=/scratch/kocevski/552734/cmap_578361601_578620801_4FGL_J2251.5-4928_daily_bin1308.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/552734/ft1_filtered_4FGL_J2251.5-4928_daily_bin1308.fits scfile=/scratch/kocevski/552734/ft2_4FGL_J2251.5-4928_daily_bin1308.fits outfile=/scratch/kocevski/552734/cmap_HighResolution_578361601_578620801_4FGL_J2251.5-4928_daily_bin1308.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=342.879 yref=-49.4691 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/552734/ft1_filtered_4FGL_J2251.5-4928_daily_bin1308.fits evtable="EVENTS" scfile=/scratch/kocevski/552734/ft2_4FGL_J2251.5-4928_daily_bin1308.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/552734/Model_4FGL_J2251.5-4928_daily_bin1308.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/552734/ft1_filtered_4FGL_J2251.5-4928_daily_bin1308.fits.....................!
real 40.73
user 39.43
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.9248       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    14.577       1.0000         .10000E-03   10000.    
     7 'Prefactor '    38.880       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.7594       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.0209       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.6940       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10373E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.4269       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.3485       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10081E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    5.0688       1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.0266       1.0000         .10000E-03   10000.    
    20 'Prefactor '    35.916       1.0000         .10000E-03   10000.    
    21 'norm      '    4.9979       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    14.432       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    1.5235       1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.0257       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .88461       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=   5188.350     FROM MIGRAD    STATUS=CONVERGED    838 CALLS     4335 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    29.615        .36869E-05** at limit **
   2  Prefactor     .10000E-03    2.8411       -.50173E-07** at limit **
   3  Prefactor     4.9238        4.2592        .22320E-05   -.16589E-02
   4  Prefactor     .10001E-03    25.543       -.46280E-05** at limit **
   5  norm          .10000E-03    1.9783       -.19770E-07** at limit **
   6  Prefactor     14.577        5.9549        .11190E-06    .76339E-04
   7  Prefactor     38.879        45.572       -.68785E-07   -.83014E-05
   8  Prefactor     3.7599        5.5681       -.20344E-07   -.10018E-03
   9  Prefactor     .10000E-03    6.9371        .45993E-08** at limit **
  10  Prefactor     9.0280        27.766        .71694E-06    .70935E-04
  11  Prefactor     5.7050        11.160       -.11367E-06   -.21768E-04
  12  Prefactor     .10000E-03    209.99        .24594E-05** at limit **
  13  Prefactor     .10000E-03    3.1166        .37324E-07** at limit **
  14  Prefactor     1.3565        257.26       -.21966E-04   -.68392E-04
  15  Prefactor     2.3469        13.884        .88690E-06   -.31974E-04
  16  norm          .10000E-03    3.9844        .13703E-07** at limit **
  17  norm          .10000E-03    11.449        .78382E-06** at limit **
  18  norm          5.0688        4.6282        .76092E-07    .11693E-03
  19  Prefactor     4.0234        6.2459       -.18824E-06   -.21522E-03
  20  Prefactor     35.915        66.227       -.40023E-06    .23605E-04
  21  norm          4.9969        7.8793        .42095E-06    .59603E-04
  22  Prefactor     .10000E-03    13.877       -.22436E-05** at limit **
  23  norm          .10000E-03    .34423       -.20590E-07** at limit **
  24  norm          .10000E-03    4.2674        .35159E-07** at limit **
  25  Prefactor     .10000E-03    5.4589        .79008E-07** at limit **
  26  Prefactor     .10000E-03    .91133       -.10958E-08** at limit **
  27  Prefactor     .10000E-03    16.703        .27086E-05** at limit **
  28  norm          14.437        22.761       -.13804E-05   -.13346E-03
  29  Prefactor     .10001E-03    4.9140       -.51410E-06** at limit **
  30  Prefactor     1.5230        3.7836        .41597E-06   -.97238E-04
  31  Normalizat    1.0258        .19776       -.55774E-06    .10753E-03
  32  Prefactor     .88462        .18072       -.17377E-06    .62202E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 4.92381
  Prefactor  = 0.000100006
  norm       = 0.0001
  Prefactor  = 14.5768
  Prefactor  = 38.8793
  Prefactor  = 3.75985
  Prefactor  = 0.0001
  Prefactor  = 9.02803
  Prefactor  = 5.70504
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 1.35654
  Prefactor  = 2.34687
  norm       = 0.0001
  norm       = 0.0001
  norm       = 5.06883
  Prefactor  = 4.02341
  Prefactor  = 35.9152
  norm       = 4.99694
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 14.4368
  Prefactor  = 0.000100012
  Prefactor  = 1.52304
  Normalizat = 1.02578
  Prefactor  = 0.884618
 **********
 **   18 **HESSE 
 **********

 FCN=   5188.350     FROM HESSE     STATUS=OK           661 CALLS     4996 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    30.103        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    2.8486        .11856E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.9238        4.6340        .71003E-03   -1.5264    
   4  Prefactor     .10001E-03    26.297        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.9785        .98944E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     14.577        5.9741        .10487E-03   -1.4944    
   7  Prefactor     38.879        45.586        .64280E-04   -1.4460    
   8  Prefactor     3.7599        5.5400        .19443E-03   -1.5320    
   9  Prefactor     .10000E-03    6.9429        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     9.0280        27.702        .13345E-03   -1.5107    
  11  Prefactor     5.7050        11.058        .16833E-03   -1.5230    
  12  Prefactor     .10000E-03    211.36        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.1299        .12417E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.3565        283.40        .36184E-03   -1.5475    
  15  Prefactor     2.3469        13.832        .26749E-03   -1.5402    
  16  norm          .10000E-03    3.9861        .14042E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    11.855        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          5.0688        4.6321        .14175E-03   -1.5258    
  19  Prefactor     4.0234        6.1903        .20096E-03   -1.5307    
  20  Prefactor     35.915        66.430        .66871E-04   -1.4509    
  21  norm          4.9969        7.8542        .16761E-03   -1.5261    
  22  Prefactor     .10000E-03    14.056        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    .34836        .41140E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    4.3437        .14481E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    5.4708        .16436E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    .91437        .67126E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    17.039        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          14.437        21.886        .10543E-03   -1.4948    
  29  Prefactor     .10001E-03    12.184        .29139E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     1.5230        3.7442        .21419E-03   -1.5461    
  31  Normalizat    1.0258        .23370        .23612E-03   -.92172    
  32  Prefactor     .88462        .21407        .24355E-03   -.96681    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.73813e-09
Minuit parameter uncertainties:
  1  0.000655703
  2  6.3048e-06
  3  4.63438
  4  0.000815111
  5  1.70368e-06
  6  5.97434
  7  45.6272
  8  5.54076
  9  7.94925e-07
  10  27.7418
  11  11.062
  12  0.00150486
  13  1.13226e-06
  14  39.4037
  15  11.399
  16  1.61262e-06
  17  0.000151796
  18  4.63245
  19  6.1913
  20  66.5673
  21  7.85578
  22  0.000195439
  23  9.76424e-07
  24  5.9196e-06
  25  4.93336e-06
  26  1.93868e-06
  27  0.000372683
  28  21.8983
  29  0.000772285
  30  3.74474
  31  0.233934
  32  0.214272
Done.

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

Extracting fit parameters...

4FGL J2251.5-4928
   Spectrum: PowerLaw
403    Prefactor:  1.357e+00  3.940e+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.846e-01  2.143e-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.026e+00  2.339e-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: 6.23e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.61e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/552734/likelihoodResults_578361601_578620801_4FGL_J2251.5-4928_daily_bin1308.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) = 5187.91002768
delta logL = 0.43998934165

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5187.88726233
delta logL = 0.462754683053

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.0939       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1143       1.0000          .0000       10.000    
     3 'Normalizat'    .97672       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90734       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=   5187.887     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      240 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.1224        99.792        .57641E-02    .55441E-03
   2  Index         3.1120        3.0129        .85641E-01    .18696E-03
   3  Normalizat    .97679        .56113E-01    .45875E-01    .41249E-04
   4  Prefactor     .90719        .52830E-01    .45098E-01    .32714E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.12238
  Index      = 3.11196
  Normalizat = 0.97679
  Prefactor  = 0.907185
 **********
 **   18 **HESSE 
 **********

 FCN=   5187.887     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      273 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.1224        193.26        .13721E-03   -1.5355    
   2  Index         3.1120        6.5530        .48510E-02   -.38721    
   3  Normalizat    .97679        .20227        .24112E-03   -.93812    
   4  Prefactor     .90719        .19462        .24069E-03   -.95890    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.93642e-10
Minuit parameter uncertainties:
  1  49.2965
  2  5.70633
  3  0.202429
  4  0.194764
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/552734': 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) = 5187.8872571
delta logL = 0.462759918983

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
589    Prefactor:  9.072e-01  1.948e-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.768e-01  2.024e-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/552734/cmap_HighResolution_578361601_578620801_4FGL_J2251.5-4928_daily_bin1308.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.61e-03', job_status='DONE', photon_flux_upper_limit='6.23e-08', time_completed='2021-09-29 00:56:28.475287', job_id='552734', GAL2='0.91', fit_tolerance='1e-08', EG2='0.98', EG='1.03', time_epoch_completed='1632902188.48', return_code2='102', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='4.63e-01', ts2='0.96', photon_index_error='0.00', photon_index='1.85' WHERE bin_id='1308' AND source_name='4FGL J2251.5-4928' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 00:56:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0141>
Subject: Job 552734: <4FGL_J2251.5-4928_daily_bin1308> in cluster <slac> Done

Job <4FGL_J2251.5-4928_daily_bin1308> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 00:40:21 2021
Job was executed on host(s) <bullet0141>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 00:40:23 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:40:23 2021
Terminated at Wed Sep 29 00:56:29 2021
Results reported at Wed Sep 29 00:56:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2251.5-4928_daily_bin1308 342.879 -49.4691 578361601 578620801 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 :                                   804.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             319.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   965 sec.
    Turnaround time :                            968 sec.

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

