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


Performing analysis on: 4FGL_J2251.5-4928_daily_bin1292
RA = 342.879, Dec = -49.4691
tmin = 574214401, tmax = 574473601
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='552712', job_status='RUN', time_executed='2021-09-29 00:41:10.498362', time_epoch_executed='1632901270.5' WHERE source_name='4FGL J2251.5-4928' and cadence='daily' and bin_id='1292'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/552712

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/552712/ft1_4FGL_J2251.5-4928_daily_bin1292.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/552712/ft2_4FGL_J2251.5-4928_daily_bin1292.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/552712/ft1_4FGL_J2251.5-4928_daily_bin1292.fits outfile=/scratch/kocevski/552712/ft1_filteredMKT_4FGL_J2251.5-4928_daily_bin1292.fits ra=342.879 dec=-49.4691 rad=12.0 tmin=574214401.0 tmax=574473601.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.65
user 3.35
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/552712/ft2_4FGL_J2251.5-4928_daily_bin1292.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/552712/ft1_filteredMKT_4FGL_J2251.5-4928_daily_bin1292.fits evtable="EVENTS" outfile="/scratch/kocevski/552712/ft1_filtered_4FGL_J2251.5-4928_daily_bin1292.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/552712/ft1_filtered_4FGL_J2251.5-4928_daily_bin1292.fits" evtable="EVENTS" scfile=/scratch/kocevski/552712/ft2_4FGL_J2251.5-4928_daily_bin1292.fits sctable="SC_DATA" outfile=/scratch/kocevski/552712/ltcube_574214401_574473601_4FGL_J2251.5-4928_daily_bin1292.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/552712/ft2_4FGL_J2251.5-4928_daily_bin1292.fits
.....................!
real 12.08
user 11.72
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/552712/ft1_filtered_4FGL_J2251.5-4928_daily_bin1292.fits evtable="EVENTS" scfile=/scratch/kocevski/552712/ft2_4FGL_J2251.5-4928_daily_bin1292.fits sctable="SC_DATA" expcube=/scratch/kocevski/552712/ltcube_574214401_574473601_4FGL_J2251.5-4928_daily_bin1292.fits outfile=/scratch/kocevski/552712/expmap_574214401_574473601_4FGL_J2251.5-4928_daily_bin1292.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/552712/ltcube_574214401_574473601_4FGL_J2251.5-4928_daily_bin1292.fits
.....................!
real 190.98
user 185.60
sys 5.06

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

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

This is gtbin version HEAD
real 0.56
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/552712/ft1_filtered_4FGL_J2251.5-4928_daily_bin1292.fits evtable="EVENTS" scfile=/scratch/kocevski/552712/ft2_4FGL_J2251.5-4928_daily_bin1292.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/552712/Model_4FGL_J2251.5-4928_daily_bin1292.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/552712/ft1_filtered_4FGL_J2251.5-4928_daily_bin1292.fits.....................!
real 43.00
user 41.72
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.5718       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.8511       1.0000         .10000E-03   10000.    
     4 'Prefactor '    23.414       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.035       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    29.098       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .60000       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    18.367       1.0000         .10000E-03   10000.    
    16 'norm      '    19.206       1.0000         .10000E-03   10000.    
    17 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.4961       1.0000         .10000E-03   10000.    
    20 'Prefactor '    14.969       1.0000         .10000E-03   10000.    
    21 'norm      '    4.4045       1.0000         .10000E-03   10000.    
    22 'Prefactor '    8.9438       1.0000         .10000E-03   10000.    
    23 'norm      '    .91666E-01   1.0000         .10000E-03   10000.    
    24 'norm      '    .10107E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    3.8383       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .56488E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    6.5911       1.0000         .10000E-03   10000.    
    30 'Prefactor '    7.5328       1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.1566       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .76094       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=   5643.531     FROM MIGRAD    STATUS=CONVERGED    829 CALLS     4378 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.5497        145.51        .71037E-05    .93443E-04
   2  Prefactor     .10000E-03    4.0410       -.15315E-07** at limit **
   3  Prefactor     4.8511        3.9085        .39930E-09    .15872E-03
   4  Prefactor     23.407        56.044        .79336E-06    .57377E-04
   5  norm          .10000E-03    2.3212       -.18395E-07** at limit **
   6  Prefactor     .10020E-03    4.0546        .32837E-05** at limit **
   7  Prefactor     .10000E-03    16.350        .14526E-05** at limit **
   8  Prefactor     11.035        7.4756        .52192E-07    .94242E-04
   9  Prefactor     .10000E-03    9.2668       -.18340E-06** at limit **
  10  Prefactor     29.101        28.810       -.10327E-06   -.22265E-04
  11  Prefactor     .10000E-03    8.6502        .13703E-06** at limit **
  12  Prefactor     .10000E-03    39.051        .86529E-06** at limit **
  13  Prefactor     .59970        8.1600       -.12114E-05    .18789E-03
  14  Prefactor     .10000E-03    35.649       -.99065E-06** at limit **
  15  Prefactor     18.367        13.497        .22548E-08    .26188E-03
  16  norm          19.206        11.935        .11283E-06    .32711E-04
  17  norm          .10000E-03    2.5896        .59251E-07** at limit **
  18  norm          .10000E-03    1.7166       -.20780E-07** at limit **
  19  Prefactor     5.4959        5.7868        .10148E-07    .25316E-03
  20  Prefactor     14.995        36.182       -.41673E-05   -.22130E-03
  21  norm          4.4040        4.1438        .68124E-06    .47862E-03
  22  Prefactor     8.9438        17.400        .26025E-06    .20544E-03
  23  norm          .92288E-01    .82205        .61006E-06    .12233E-02
  24  norm          .10000E-03    1.6599       -.84637E-07** at limit **
  25  Prefactor     .10000E-03    5.5219       -.14479E-06** at limit **
  26  Prefactor     3.8387        3.6538        .76437E-08    .78921E-03
  27  Prefactor     .10001E-03    56.267       -.15534E-04** at limit **
  28  norm          .10000E-03    11.188       -.77298E-06** at limit **
  29  Prefactor     6.5917        6.2308       -.44376E-07    .24872E-03
  30  Prefactor     7.5330        5.2492       -.42385E-07    .16949E-03
  31  Normalizat    1.1566        .20388       -.10153E-05    .32372E-03
  32  Prefactor     .76093        .18067        .19516E-05    .58326E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.54967
  Prefactor  = 0.0001
  Prefactor  = 4.85111
  Prefactor  = 23.4073
  norm       = 0.0001
  Prefactor  = 0.000100198
  Prefactor  = 0.000100002
  Prefactor  = 11.0354
  Prefactor  = 0.0001
  Prefactor  = 29.1012
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.599703
  Prefactor  = 0.000100001
  Prefactor  = 18.367
  norm       = 19.2058
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 5.49589
  Prefactor  = 14.9946
  norm       = 4.40396
  Prefactor  = 8.94378
  norm       = 0.0922883
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.83873
  Prefactor  = 0.000100007
  norm       = 0.000100001
  Prefactor  = 6.59171
  Prefactor  = 7.53301
  Normalizat = 1.15657
  Prefactor  = 0.760935
 **********
 **   18 **HESSE 
 **********

 FCN=   5643.531     FROM HESSE     STATUS=OK           659 CALLS     5037 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.5497        149.51        .25452E-03   -1.5389    
   2  Prefactor     .10000E-03    4.0643        .14727E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.8511        3.9078        .12703E-03   -1.5267    
   4  Prefactor     23.407        56.026        .82780E-04   -1.4740    
   5  norm          .10000E-03    2.3238        .11178E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10020E-03    25.105        .18053E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    16.501        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     11.035        7.4732        .12060E-03   -1.5043    
   9  Prefactor     .10000E-03    9.2836        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     29.101        28.865        .74272E-04   -1.4629    
  11  Prefactor     .10000E-03    8.7212        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    39.113        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .59970        8.4035        .41417E-03   -1.5553    
  14  Prefactor     .10000E-03    35.880        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     18.367        13.390        .46727E-03   -1.4851    
  16  norm          19.206        11.935        .45696E-03   -1.4831    
  17  norm          .10000E-03    2.5948        .11803E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    1.7176        .96100E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     5.4959        5.7584        .16246E-03   -1.5239    
  20  Prefactor     14.995        37.151        .10352E-03   -1.4933    
  21  norm          4.4040        4.2126        .12395E-03   -1.5288    
  22  Prefactor     8.9438        17.214        .13402E-03   -1.5110    
  23  norm          .92288E-01    1.5372        .12010E-02   -1.5647    
  24  norm          .10000E-03    1.6694        .94451E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    5.5338        .17243E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     3.8387        3.5602        .12749E-03   -1.5316    
  27  Prefactor     .10001E-03    69.520        .51768E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    11.238        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     6.5917        6.2253        .15631E-03   -1.5194    
  30  Prefactor     7.5330        5.2399        .13855E-03   -1.5159    
  31  Normalizat    1.1566        .23605        .22709E-03   -.87956    
  32  Prefactor     .76093        .21091        .26177E-03   -1.0118    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.10045e-08
Minuit parameter uncertainties:
  1  39.1512
  2  3.99683e-05
  3  3.90796
  4  56.1521
  5  2.3272e-06
  6  0.00445829
  7  0.000368872
  8  7.47386
  9  3.46443e-05
  10  28.879
  11  3.86145e-05
  12  0.00034893
  13  4.4902
  14  0.000358869
  15  13.3927
  16  11.9362
  17  5.38488e-06
  18  3.05334e-07
  19  5.75897
  20  37.208
  21  4.21287
  22  17.2231
  23  0.752911
  24  7.03774e-06
  25  2.22636e-05
  26  3.5604
  27  0.00136974
  28  0.000163903
  29  6.22587
  30  5.24026
  31  0.236269
  32  0.211129
Done.

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

Extracting fit parameters...

4FGL J2251.5-4928
   Spectrum: PowerLaw
403    Prefactor:  1.000e-04  3.589e-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:  7.609e-01  2.111e-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.157e+00  2.363e-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.55e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.37e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/552712/likelihoodResults_574214401_574473601_4FGL_J2251.5-4928_daily_bin1292.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) = 5643.53160839
delta logL = -0.000132731474878

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5643.53147556
delta logL = 9.75514922175e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10372E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9143       1.0000          .0000       10.000    
     3 'Normalizat'    1.1566       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76093       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=   5643.531     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      236 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1018.3        .90712E-02** at limit **
   2  Index         1.9618        8.0850        .50000       -.10001E-04
   3  Normalizat    1.1566        .22385E-01    .36056E-01    .15611E-03
   4  Prefactor     .76093        .21481E-01    .43207E-01   -.75538E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.96179
  Normalizat = 1.15658
  Prefactor  = 0.760926
 **********
 **   18 **HESSE 
 **********

 FCN=   5643.531     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      267 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7902.6        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9618        5.8459        .50000       -.65309    
   3  Normalizat    1.1566        .80948E-01    .22710E-03   -.87955    
   4  Prefactor     .76093        .77640E-01    .26177E-03   -1.0119    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.53532e-08
Minuit parameter uncertainties:
  1  0.000691012
  2  52.2353
  3  0.080957
  4  0.0776508
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/552712': 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) = 5643.5314754
delta logL = 2.59452463069e-07

Extracting fit parameters...

4FGL J2251.5-4928
   Spectrum: PowerLaw
403    Prefactor:  1.000e-04  6.910e-04  1.000e-04  1.000e+04 ( 1.000e-14)
404        Index:  1.962e+00  5.224e+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:  7.609e-01  7.765e-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:  1.157e+00  8.096e-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/552712/cmap_HighResolution_574214401_574473601_4FGL_J2251.5-4928_daily_bin1292.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.37e-03', job_status='DONE', photon_flux_upper_limit='4.55e-08', time_completed='2021-09-29 00:55:57.237602', job_id='552712', GAL2='0.76', fit_tolerance='1e-08', EG2='1.16', EG='1.16', time_epoch_completed='1632902157.24', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.76', dlogl='2.59e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.85' WHERE bin_id='1292' AND source_name='4FGL J2251.5-4928' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 00:55:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0280>
Subject: Job 552712: <4FGL_J2251.5-4928_daily_bin1292> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2251.5-4928_daily_bin1292 342.879 -49.4691 574214401 574473601 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.06 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             322.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   937 sec.
    Turnaround time :                            938 sec.

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

