aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 125 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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 = 7481
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1251.3-0201_daily_bin1717
RA = 192.836, Dec = -2.0271
tmin = 684374401, tmax = 684633601
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='123325', job_status='RUN', time_executed='2022-09-16 17:03:40.369350', time_epoch_executed='1663373020.37' WHERE source_name='4FGL J1251.3-0201' and cadence='daily' and bin_id='1717'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/123325

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/123325/ft1_4FGL_J1251.3-0201_daily_bin1717.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/123325/ft2_4FGL_J1251.3-0201_daily_bin1717.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/123325/ft1_4FGL_J1251.3-0201_daily_bin1717.fits outfile=/scratch/kocevski/123325/ft1_filteredMKT_4FGL_J1251.3-0201_daily_bin1717.fits ra=192.836 dec=-2.0271 rad=12.0 tmin=684374401.0 tmax=684633601.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 5.03
user 4.77
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/123325/ft2_4FGL_J1251.3-0201_daily_bin1717.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/123325/ft2_4FGL_J1251.3-0201_daily_bin1717.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/123325/ft1_filteredMKT_4FGL_J1251.3-0201_daily_bin1717.fits evtable="EVENTS" outfile="/scratch/kocevski/123325/ft1_filtered_4FGL_J1251.3-0201_daily_bin1717.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.53
user 0.35
sys 0.16

Number of photons that the gtmktime cut: 465

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/123325/ft1_filtered_4FGL_J1251.3-0201_daily_bin1717.fits" evtable="EVENTS" scfile=/scratch/kocevski/123325/ft2_4FGL_J1251.3-0201_daily_bin1717.fits sctable="SC_DATA" outfile=/scratch/kocevski/123325/ltcube_684374401_684633601_4FGL_J1251.3-0201_daily_bin1717.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/123325/ft2_4FGL_J1251.3-0201_daily_bin1717.fits
.....................!
real 15.40
user 14.96
sys 0.39

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/123325/ft1_filtered_4FGL_J1251.3-0201_daily_bin1717.fits evtable="EVENTS" scfile=/scratch/kocevski/123325/ft2_4FGL_J1251.3-0201_daily_bin1717.fits sctable="SC_DATA" expcube=/scratch/kocevski/123325/ltcube_684374401_684633601_4FGL_J1251.3-0201_daily_bin1717.fits outfile=/scratch/kocevski/123325/expmap_684374401_684633601_4FGL_J1251.3-0201_daily_bin1717.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/123325/ltcube_684374401_684633601_4FGL_J1251.3-0201_daily_bin1717.fits
.....................!
real 192.07
user 186.68
sys 4.98

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 179 point sources and 0 extended sources

Setting source of interest to:
4FGL J1251.3-0201 @ 192.836 -2.0271

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/123325/ft1_filtered_4FGL_J1251.3-0201_daily_bin1717.fits scfile=/scratch/kocevski/123325/ft2_4FGL_J1251.3-0201_daily_bin1717.fits outfile=/scratch/kocevski/123325/cmap_684374401_684633601_4FGL_J1251.3-0201_daily_bin1717.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=192.836 yref=-2.0271 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.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/123325/ft1_filtered_4FGL_J1251.3-0201_daily_bin1717.fits scfile=/scratch/kocevski/123325/ft2_4FGL_J1251.3-0201_daily_bin1717.fits outfile=/scratch/kocevski/123325/cmap_HighResolution_684374401_684633601_4FGL_J1251.3-0201_daily_bin1717.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=192.836 yref=-2.0271 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.60
user 0.39
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/123325/ft1_filtered_4FGL_J1251.3-0201_daily_bin1717.fits evtable="EVENTS" scfile=/scratch/kocevski/123325/ft2_4FGL_J1251.3-0201_daily_bin1717.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/123325/Model_4FGL_J1251.3-0201_daily_bin1717.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/123325/ft1_filtered_4FGL_J1251.3-0201_daily_bin1717.fits.....................!
real 45.02
user 43.64
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/123325/ft1_filtered_4FGL_J1251.3-0201_daily_bin1717.fits', '/scratch/kocevski/123325/ft2_4FGL_J1251.3-0201_daily_bin1717.fits', expMap='/scratch/kocevski/123325/expmap_684374401_684633601_4FGL_J1251.3-0201_daily_bin1717.fits', expCube='/scratch/kocevski/123325/ltcube_684374401_684633601_4FGL_J1251.3-0201_daily_bin1717.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/123325/Model_4FGL_J1251.3-0201_daily_bin1717.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1251.3-0201'

4FGL J1251.3-0201
   Spectrum: LogParabola
290         norm:  5.916e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
291        alpha:  1.951e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
292         beta:  1.558e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
293           Eb:  1.195e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/123325/ft1_filtered_4FGL_J1251.3-0201_daily_bin1717.fits
Spacecraft file(s): /scratch/kocevski/123325/ft2_4FGL_J1251.3-0201_daily_bin1717.fits
Exposure map: /scratch/kocevski/123325/expmap_684374401_684633601_4FGL_J1251.3-0201_daily_bin1717.fits
Exposure cube: /scratch/kocevski/123325/ltcube_684374401_684633601_4FGL_J1251.3-0201_daily_bin1717.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/123325/Model_4FGL_J1251.3-0201_daily_bin1717.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) = 5178.25823289

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .56867E-04   1.0000          .0000       .10000E+07
     2 'Prefactor '    8.6888       1.0000          .0000       .10000E+07
     3 'Prefactor '    21.519       1.0000          .0000       .10000E+07
     4 'norm      '    .16775E-03   1.0000          .0000       .10000E+07
     5 'norm      '    .20405E-02   1.0000          .0000       .10000E+07
     6 'norm      '    .51711E-03   1.0000          .0000       .10000E+07
     7 'norm      '    .92041       1.0000          .0000       .10000E+07
     8 'Prefactor '    .15258E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    .72164E-08   1.0000          .0000       .10000E+07
    10 'norm      '    1.9617       1.0000          .0000       .10000E+07
    11 'Prefactor '    7.1291       1.0000          .0000       .10000E+07
    12 'Prefactor '    .13181       1.0000          .0000       .10000E+07
    13 'norm      '    .21502E-03   1.0000          .0000       .10000E+07
    14 'norm      '    .30538       1.0000          .0000       .10000E+07
    15 'Prefactor '    .15011E-02   1.0000          .0000       .10000E+07
    16 'norm      '    .22107E-01   1.0000          .0000       .10000E+07
    17 'norm      '    .95692E-04   1.0000          .0000       .10000E+07
    18 'Prefactor '    .37142E-02   1.0000          .0000       .10000E+07
    19 'Prefactor '    .71762E-03   1.0000          .0000       .10000E+07
    20 'norm      '    .30420E-07   1.0000          .0000       .10000E+07
    21 'Normalizat'    1.6876       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .77902       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5850E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5178.072     FROM MIGRAD    STATUS=CONVERGED    145 CALLS     1795 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .92720E-06    4.7326       -.42773E-06** at limit **
   2  Prefactor     8.8048        3.8936       -.52831E-06    .15384E-01
   3  Prefactor     21.618        7.9748        .37481E-06    .48011E-01
   4  norm          .55511E-09    3.2783       -.11211E-05** at limit **
   5  norm          .93259E-08    4.2669        .43247E-06** at limit **
   6  norm          .24737E-05    10.073       -.26444E-05** at limit **
   7  norm          .91977        .64309        .15149E-06    .23605E-03
   8  Prefactor     .81871E-05    8.6720       -.21079E-05** at limit **
   9  Prefactor     .13878E-08    4.5662        .77850E-06** at limit **
  10  norm          1.9620        1.7412       -.10472E-07    .53331E-03
  11  Prefactor     7.1176        7.6959        .69622E-06    .26798E-03
  12  Prefactor     .47740E-08    49.005        .14496E-05** at limit **
  13  norm          .12889E-05    7.3229       -.66381E-06** at limit **
  14  norm          .30579        .23643       -.12772E-06   -.95512E-02
  15  Prefactor     .64737E-06    57.724        .42093E-05** at limit **
  16  norm          .27756E-09    38.772        .48670E-06** at limit **
  17  norm          .11102E-08    8.5686        .20027E-05** at limit **
  18  Prefactor     .18041E-07    8.7564       -.62380E-06** at limit **
  19  Prefactor     .86225E-06    34.458        .25504E-05** at limit **
  20  norm           .0000        .79476       -.20472E-06** at limit **
  21  Normalizat    1.6874        .30277        .13332E-04   -.88377E-04
  22  Prefactor     .77904        .21268       -.19795E-04   -.10291E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.27203e-07
  Prefactor  = 8.80478
  Prefactor  = 21.6183
  norm       = 5.55112e-10
  norm       = 9.32587e-09
  norm       = 2.47369e-06
  norm       = 0.919774
  Prefactor  = 8.18706e-06
  Prefactor  = 1.38778e-09
  norm       = 1.96201
  Prefactor  = 7.11762
  Prefactor  = 4.77396e-09
  norm       = 1.28886e-06
  norm       = 0.305788
  Prefactor  = 6.47371e-07
  norm       = 2.77556e-10
  norm       = 1.11022e-09
  Prefactor  = 1.80411e-08
  Prefactor  = 8.62255e-07
  norm       = 0
  Normalizat = 1.68736
  Prefactor  = 0.779045
 **********
 **   18 **HESSE 
 **********

 FCN=   5178.072     FROM HESSE     STATUS=OK           394 CALLS     2189 TOTAL
                     EDM=   .85E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .92720E-06    11.328        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     8.8048        34.443        .33982E-03   -1.5649    
   3  Prefactor     21.618        17.267        .21563E-03   -1.5615    
   4  norm          .55511E-09    3.2507        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .93259E-08    4.0142        .46830E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .24737E-05    16.512        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .91977        .67277        .44359E-03   -1.5689    
   8  Prefactor     .81871E-05    20.218        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .13878E-08    4.5808        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.9620        1.7610        .74029E-03   -1.5680    
  11  Prefactor     7.1176        7.7070        .37546E-03   -1.5655    
  12  Prefactor     .47740E-08    48.879        .13143E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .12889E-05    10.442        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .30579        .24580        .66453E-03   -1.5697    
  15  Prefactor     .64737E-06    58.920        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .27756E-09    7.6962        .11391E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .11102E-08    8.6193        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .18041E-07    12.886        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .86225E-06    38.453        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm           .0000        .78728        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.6874        .25950        .60163E-01   -.72641    
  22  Prefactor     .77904        .18029        .43444E-01   -1.0051    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.46786e-07
Minuit parameter uncertainties:
  1  0.00648196
  2  34.4441
  3  17.2671
  4  8.42133e-05
  5  0.000386489
  6  0.012782
  7  0.672765
  8  0.0257317
  9  0.000160507
  10  1.76099
  11  7.70704
  12  0.000965276
  13  0.00733703
  14  0.245796
  15  0.0123519
  16  8.8176e-05
  17  0.000197149
  18  0.00096405
  19  0.0115165
  20  1.41057e-06
  21  0.259707
  22  0.180427
Done.

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

Extracting fit parameters...

4FGL J1251.3-0201
   Spectrum: LogParabola
290         norm:  1.289e-06  7.337e-03  0.000e+00  1.000e+06 ( 1.000e-13)
291        alpha:  1.951e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
292         beta:  1.558e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
293           Eb:  1.195e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
582    Prefactor:  7.790e-01  1.804e-01  0.000e+00  1.000e+01 ( 1.000e+00)
583        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
584        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
581   Normalization:  1.687e+00  2.597e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 192.836 -2.027
Photon Flux Upper Limit: 4.55e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.14e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/123325/likelihoodResults_684374401_684633601_4FGL_J1251.3-0201_daily_bin1717.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) = 5178.07226309
delta logL = -0.000676462462252

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5178.07158662
delta logL = 2.68119038083e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .15909E-06   1.0000          .0000       .10000E+07
     2 'alpha     '    .36833       1.0000          .0000       5.0000    
     3 'Normalizat'    1.6874       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77900       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5850E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5178.072     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      233 TOTAL
                     EDM=   .58E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        8.6286        .18335E-06** at limit **
   2  alpha         2.3184        3.5488       -.17476E-04     .0000    
   3  Normalizat    1.6874        .29843       -.51373E-05   -.17248E-03
   4  Prefactor     .77904        .21352        .19008E-04   -.25261E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  alpha      = 2.31836
  Normalizat = 1.68737
  Prefactor  = 0.779043
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   5178.072     FROM HESSE     STATUS=FAILED         9 CALLS      242 TOTAL
                     EDM=   .58E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        8.8155        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.1243        1.3023       -.17476E-04   -.72719E-01
   3  Normalizat    1.6874        1.0345       -.51373E-05   -.72641    
   4  Prefactor     .77904        1.1281        .19008E-04   -1.0051    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 5.78271e-11
Minuit parameter uncertainties:
  1  7.88136e-06
  2  1.37023
  3  1.04822
  4  1.16437
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/123325': 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): 101
logL (Free Index) = 5178.07158656
delta logL = 6.16628312855e-08

Extracting fit parameters...

4FGL J1251.3-0201
   Spectrum: LogParabola
290         norm:  0.000e+00  7.881e-06  0.000e+00  1.000e+06 ( 1.000e-13)
291        alpha:  2.318e+00  1.370e+00  0.000e+00  5.000e+00 ( 1.000e+00)
292         beta:  1.558e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
293           Eb:  1.195e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
582    Prefactor:  7.790e-01  1.164e+00  0.000e+00  1.000e+01 ( 1.000e+00)
583        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
584        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
581   Normalization:  1.687e+00  1.048e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 192.836 -2.027

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/123325/cmap_HighResolution_684374401_684633601_4FGL_J1251.3-0201_daily_bin1717.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.14e-05', job_status='DONE', photon_flux_upper_limit='4.55e-08', time_completed='2022-09-16 17:12:51.489081', job_id='123325', GAL2='0.78', fit_tolerance='1e-08', EG2='1.69', EG='1.69', time_epoch_completed='1663373571.49', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='6.17e-08', ts2='0.00', photon_index_error='0.00', photon_index='1.95' WHERE bin_id='1717' AND source_name='4FGL J1251.3-0201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 17:12:51 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0274>
Subject: Job 123325: <4FGL_J1251.3-0201_daily_bin1717> in cluster <slac> Done

Job <4FGL_J1251.3-0201_daily_bin1717> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Sep 16 17:00:19 2022
Job was executed on host(s) <bullet0274>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 17:01:26 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 16 17:01:26 2022
Terminated at Fri Sep 16 17:12:52 2022
Results reported at Fri Sep 16 17:12:52 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1251.3-0201_daily_bin1717 192.836 -2.0271 684374401 684633601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1251.3-0201 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   552.39 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             295.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   685 sec.
    Turnaround time :                            753 sec.

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

