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


Performing analysis on: 4FGL_J2251.5-4928_daily_bin1255
RA = 342.879, Dec = -49.4691
tmin = 564624001, tmax = 564883201
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='552652', job_status='RUN', time_executed='2021-09-29 00:43:29.252836', time_epoch_executed='1632901409.25' WHERE source_name='4FGL J2251.5-4928' and cadence='daily' and bin_id='1255'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/552652

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/552652/ft1_4FGL_J2251.5-4928_daily_bin1255.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/552652/ft2_4FGL_J2251.5-4928_daily_bin1255.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/552652/ft1_4FGL_J2251.5-4928_daily_bin1255.fits outfile=/scratch/kocevski/552652/ft1_filteredMKT_4FGL_J2251.5-4928_daily_bin1255.fits ra=342.879 dec=-49.4691 rad=12.0 tmin=564624001.0 tmax=564883201.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.59
user 3.40
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/552652/ft2_4FGL_J2251.5-4928_daily_bin1255.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/552652/ft1_filteredMKT_4FGL_J2251.5-4928_daily_bin1255.fits evtable="EVENTS" outfile="/scratch/kocevski/552652/ft1_filtered_4FGL_J2251.5-4928_daily_bin1255.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.49
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/552652/ft1_filtered_4FGL_J2251.5-4928_daily_bin1255.fits" evtable="EVENTS" scfile=/scratch/kocevski/552652/ft2_4FGL_J2251.5-4928_daily_bin1255.fits sctable="SC_DATA" outfile=/scratch/kocevski/552652/ltcube_564624001_564883201_4FGL_J2251.5-4928_daily_bin1255.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/552652/ft2_4FGL_J2251.5-4928_daily_bin1255.fits
.....................!
real 12.99
user 12.59
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/552652/ft1_filtered_4FGL_J2251.5-4928_daily_bin1255.fits evtable="EVENTS" scfile=/scratch/kocevski/552652/ft2_4FGL_J2251.5-4928_daily_bin1255.fits sctable="SC_DATA" expcube=/scratch/kocevski/552652/ltcube_564624001_564883201_4FGL_J2251.5-4928_daily_bin1255.fits outfile=/scratch/kocevski/552652/expmap_564624001_564883201_4FGL_J2251.5-4928_daily_bin1255.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/552652/ltcube_564624001_564883201_4FGL_J2251.5-4928_daily_bin1255.fits
.....................!
real 190.60
user 185.48
sys 4.65

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/552652/ft1_filtered_4FGL_J2251.5-4928_daily_bin1255.fits scfile=/scratch/kocevski/552652/ft2_4FGL_J2251.5-4928_daily_bin1255.fits outfile=/scratch/kocevski/552652/cmap_564624001_564883201_4FGL_J2251.5-4928_daily_bin1255.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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/552652/ft1_filtered_4FGL_J2251.5-4928_daily_bin1255.fits scfile=/scratch/kocevski/552652/ft2_4FGL_J2251.5-4928_daily_bin1255.fits outfile=/scratch/kocevski/552652/cmap_HighResolution_564624001_564883201_4FGL_J2251.5-4928_daily_bin1255.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.39
sys 0.13

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/552652/ft1_filtered_4FGL_J2251.5-4928_daily_bin1255.fits', '/scratch/kocevski/552652/ft2_4FGL_J2251.5-4928_daily_bin1255.fits', expMap='/scratch/kocevski/552652/expmap_564624001_564883201_4FGL_J2251.5-4928_daily_bin1255.fits', expCube='/scratch/kocevski/552652/ltcube_564624001_564883201_4FGL_J2251.5-4928_daily_bin1255.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/552652/Model_4FGL_J2251.5-4928_daily_bin1255.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/552652/ft1_filtered_4FGL_J2251.5-4928_daily_bin1255.fits
Spacecraft file(s): /scratch/kocevski/552652/ft2_4FGL_J2251.5-4928_daily_bin1255.fits
Exposure map: /scratch/kocevski/552652/expmap_564624001_564883201_4FGL_J2251.5-4928_daily_bin1255.fits
Exposure cube: /scratch/kocevski/552652/ltcube_564624001_564883201_4FGL_J2251.5-4928_daily_bin1255.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/552652/Model_4FGL_J2251.5-4928_daily_bin1255.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 162.800682655

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 160.003052097

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.3120       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .20660E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.8750       1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.9060       1.0000         .10000E-03   10000.    
     5 'norm      '    1.6153       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .14083E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.4874       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.2999       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.0657       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.1536       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.6745       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.0694       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .30879E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.0056       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.5499       1.0000         .10000E-03   10000.    
    16 'norm      '    361.13       1.0000         .10000E-03   10000.    
    17 'norm      '    1.0534       1.0000         .10000E-03   10000.    
    18 'norm      '    .19202E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.5015       1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.5230       1.0000         .10000E-03   10000.    
    21 'norm      '    .18649E-02   1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.5986       1.0000         .10000E-03   10000.    
    23 'norm      '    7.2906       1.0000         .10000E-03   10000.    
    24 'norm      '    13.950       1.0000         .10000E-03   10000.    
    25 'Prefactor '    2.1836       1.0000         .10000E-03   10000.    
    26 'Prefactor '    1.5694       1.0000         .10000E-03   10000.    
    27 'Prefactor '    2.2519       1.0000         .10000E-03   10000.    
    28 'norm      '    2.9390       1.0000         .10000E-03   10000.    
    29 'Prefactor '    2.4203       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10700E-02   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.3902       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5920E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   159.7639     FROM MIGRAD    STATUS=CONVERGED    321 CALLS      466 TOTAL
                     EDM=   .26E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10004E-03    561.67        .11544E-05** at limit **
   2  Prefactor     .10000E-03    103.47        .52804E-05** at limit **
   3  Prefactor     1.8750        1.0409         .0000         .0000    
   4  Prefactor     .11113E-03    1850.0       -.40612E-05** at limit **
   5  norm          1.6153        1.0584         .0000         .0000    
   6  Prefactor     .10000E-03    22.642       -.38669E-05** at limit **
   7  Prefactor     .10000E-03    223.22        .20529E-05** at limit **
   8  Prefactor     .10000E-03    110.26       -.30736E-05** at limit **
   9  Prefactor     .10007E-03    531.67        .91589E-04** at limit **
  10  Prefactor     .36847        15.159        .10316E-05    .59101E-03
  11  Prefactor     .38651        815.30       -.29136E-04   -.17912E-02
  12  Prefactor     4.0694        1.0077         .0000         .0000    
  13  Prefactor     .10000E-03    24.350        .26737E-06** at limit **
  14  Prefactor     1857.0        3049.3        .55438E-04   -.20469E-03
  15  Prefactor     3.5499        1.0103         .0000         .0000    
  16  norm          330.75        278.62        .52853E-05   -.67992E-02
  17  norm          .75321E-03    8951.1       -.43774E-04** at limit **
  18  norm          .10000E-03    26.656        .51024E-05** at limit **
  19  Prefactor     .10000E-03    317.83       -.76960E-05** at limit **
  20  Prefactor     .10011E-03    475.91       -.30307E-04** at limit **
  21  norm          .10000E-03    27.821        .53443E-05** at limit **
  22  Prefactor     .10013E-03    906.34       -.34607E-05** at limit **
  23  norm          7.2906        1.0024         .0000         .0000    
  24  norm          14.358        42.924        .11655E-04    .33158E-04
  25  Prefactor     2.1836        1.0290         .0000         .0000    
  26  Prefactor     1.5694        1.0628         .0000         .0000    
  27  Prefactor     2.2519        1.0271         .0000         .0000    
  28  norm          2.9390        1.0153         .0000         .0000    
  29  Prefactor     2.4203        1.0231         .0000         .0000    
  30  Prefactor     .10000E-03    376.55        .39851E-05** at limit **
  31  Normalizat    .10000E-01    .46048        .67207E-06** at limit **
  32  Prefactor     1.3312        .50418        .10836E-04    .55756E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100038
  Prefactor  = 0.0001
  Prefactor  = 1.87498
  Prefactor  = 0.000111131
  norm       = 1.61533
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.000100067
  Prefactor  = 0.368465
  Prefactor  = 0.386513
  Prefactor  = 4.06936
  Prefactor  = 0.0001
  Prefactor  = 1857.03
  Prefactor  = 3.54989
  norm       = 330.745
  norm       = 0.000753213
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.00010011
  norm       = 0.0001
  Prefactor  = 0.000100126
  norm       = 7.2906
  norm       = 14.3585
  Prefactor  = 2.18357
  Prefactor  = 1.5694
  Prefactor  = 2.25189
  norm       = 2.93896
  Prefactor  = 2.42032
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 1.3312
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   159.7639     FROM HESSE     STATUS=FAILED        17 CALLS      483 TOTAL
                     EDM=   .26E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10004E-03    561.48        .43595E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    98.687        .10100E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     571.08        569.06         .0000       -1.5434    
   4  Prefactor     .11113E-03    .36418E-01   -.40612E-05   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.6153        1.0584         .0000       -1.5454    
   6  Prefactor     .10000E-03    .20672       -.38669E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    .19320        .20529E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    .58975E-01   -.30736E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10007E-03    .12912        .91589E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .36847        .30007        .10316E-05   -1.5587    
  11  Prefactor     .38651        .38724       -.29136E-04   -1.5832    
  12  Prefactor     4.0694        1.0077         .0000       -1.5304    
  13  Prefactor     .10000E-03    .24495        .26737E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1857.0        13.776        .55438E-04   -.67974    
  15  Prefactor     3.5499        1.0103         .0000       -1.5331    
  16  norm          330.75        .95851        .52853E-05   -1.2050    
  17  norm          .75321E-03    .36122       -.43774E-04   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    .25667        .51024E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    .19077       -.76960E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10011E-03    .38580E-01   -.30307E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    .25732        .53443E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10013E-03    .10009       -.34607E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          7.2906        1.0024         .0000       -1.5168    
  24  norm          14.358        1.0152        .11655E-04   -1.4950    
  25  Prefactor     2.1836        1.0290         .0000       -1.5412    
  26  Prefactor     1.5694        1.0628         .0000       -1.5457    
  27  Prefactor     2.2519        1.0271         .0000       -1.5408    
  28  norm          2.9390        1.0153         .0000       -1.5365    
  29  Prefactor     2.4203        1.0231         .0000       -1.5397    
  30  Prefactor     .10000E-03    .26825        .39851E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .10000E-01    .25769        .67207E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     1.3312        1.0427        .10836E-04   -.82384    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.58104e-10
Minuit parameter uncertainties:
  1  0.00931524
  2  0.000154659
  3  1.0409
  4  0.00127336
  5  1.05842
  6  7.90482e-06
  7  5.46607e-06
  8  2.09982e-05
  9  0.000186179
  10  0.300076
  11  0.387246
  12  1.00775
  13  3.98237e-06
  14  13.7763
  15  1.01028
  16  0.958513
  17  0.0307216
  18  4.65484e-06
  19  2.88236e-06
  20  0.000130424
  21  7.22057e-06
  22  0.000224789
  23  1.00237
  24  1.01517
  25  1.02897
  26  1.06278
  27  1.02706
  28  1.01526
  29  1.02311
  30  1.07701e-05
  31  1.37217e-06
  32  1.0598
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 159.763890168

Extracting fit parameters...

4FGL J2251.5-4928
   Spectrum: PowerLaw
403    Prefactor:  1.857e+03  1.378e+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:  1.331e+00  1.060e+00  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.000e-02  1.372e-06  1.000e-02  1.000e+01 ( 1.000e+00)

calc_int error: parameter max 10000.0 is not large enough
delta logLike = -1.21629689478

TS (Fixed Index): 0.48
Ra Dec: 342.879 -49.469
Photon Flux Upper Limit: -1.00e+00 ph cm-2 s-1
Energy Flux Upper Limit: -7.40e+04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/552652/likelihoodResults_564624001_564883201_4FGL_J2251.5-4928_daily_bin1255.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) = 159.603370192
delta logL = 0.160519976835

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 159.603288382
delta logL = 0.160601786032

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Index     '    2.2500       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=   159.6033     FROM MIGRAD    STATUS=CONVERGED     13 CALLS       53 TOTAL
                     EDM=   .22E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1    Index       2.2501        .53865        .36413E-01    .36460E-05
                               ERR DEF=  .500    
Final values: 
  Index      = 2.25011
 **********
 **   18 **HESSE 
 **********

 FCN=   159.6033     FROM HESSE     STATUS=OK             7 CALLS       60 TOTAL
                     EDM=   .93E-14    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1    Index       2.2501        .54537        .15983E-03   -.58234    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.34174e-15
Minuit parameter uncertainties:
  1  0.546935
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/552652': 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) = 159.603288351
delta logL = 0.160601817494

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
589    Prefactor:  1.329e+00  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
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.000e-02  0.000e+00  1.000e-02  1.000e+01 ( 1.000e+00) fixed


TS (Free Index): 0.45
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/552652/cmap_HighResolution_564624001_564883201_4FGL_J2251.5-4928_daily_bin1255.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='-7.40e+04', job_status='DONE', photon_flux_upper_limit='-1.00e+00', time_completed='2021-09-29 00:48:54.025791', job_id='552652', GAL2='1.33', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1632901734.03', return_code2='0', ts='0.45', comment='SUCCESS', return_code='101', GAL='1.33', dlogl='1.61e-01', ts2='0.80', photon_index_error='0.00', photon_index='1.85' WHERE bin_id='1255' AND source_name='4FGL J2251.5-4928' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 00:48:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0298>
Subject: Job 552652: <4FGL_J2251.5-4928_daily_bin1255> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2251.5-4928_daily_bin1255 342.879 -49.4691 564624001 564883201 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 :                                   323.10 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             334.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   518 sec.
    Turnaround time :                            519 sec.

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

