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


Performing analysis on: 4FGL_J1251.3-0201_daily_bin1714
RA = 192.836, Dec = -2.0271
tmin = 683596801, tmax = 683856001
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='123321', job_status='RUN', time_executed='2022-09-16 17:02:21.986911', time_epoch_executed='1663372941.99' WHERE source_name='4FGL J1251.3-0201' and cadence='daily' and bin_id='1714'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/123321

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/123321/ft1_4FGL_J1251.3-0201_daily_bin1714.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/123321/ft2_4FGL_J1251.3-0201_daily_bin1714.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/123321/ft1_4FGL_J1251.3-0201_daily_bin1714.fits outfile=/scratch/kocevski/123321/ft1_filteredMKT_4FGL_J1251.3-0201_daily_bin1714.fits ra=192.836 dec=-2.0271 rad=12.0 tmin=683596801.0 tmax=683856001.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.51
user 3.25
sys 0.23

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

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

Number of photons that the gtmktime cut: 618

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/123321/ft1_filtered_4FGL_J1251.3-0201_daily_bin1714.fits" evtable="EVENTS" scfile=/scratch/kocevski/123321/ft2_4FGL_J1251.3-0201_daily_bin1714.fits sctable="SC_DATA" outfile=/scratch/kocevski/123321/ltcube_683596801_683856001_4FGL_J1251.3-0201_daily_bin1714.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/123321/ft2_4FGL_J1251.3-0201_daily_bin1714.fits
.....................!
real 16.33
user 15.92
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/123321/ft1_filtered_4FGL_J1251.3-0201_daily_bin1714.fits evtable="EVENTS" scfile=/scratch/kocevski/123321/ft2_4FGL_J1251.3-0201_daily_bin1714.fits sctable="SC_DATA" expcube=/scratch/kocevski/123321/ltcube_683596801_683856001_4FGL_J1251.3-0201_daily_bin1714.fits outfile=/scratch/kocevski/123321/expmap_683596801_683856001_4FGL_J1251.3-0201_daily_bin1714.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/123321/ltcube_683596801_683856001_4FGL_J1251.3-0201_daily_bin1714.fits
.....................!
real 192.35
user 186.52
sys 5.35

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/123321/ft1_filtered_4FGL_J1251.3-0201_daily_bin1714.fits scfile=/scratch/kocevski/123321/ft2_4FGL_J1251.3-0201_daily_bin1714.fits outfile=/scratch/kocevski/123321/cmap_683596801_683856001_4FGL_J1251.3-0201_daily_bin1714.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/123321/ft1_filtered_4FGL_J1251.3-0201_daily_bin1714.fits scfile=/scratch/kocevski/123321/ft2_4FGL_J1251.3-0201_daily_bin1714.fits outfile=/scratch/kocevski/123321/cmap_HighResolution_683596801_683856001_4FGL_J1251.3-0201_daily_bin1714.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.58
user 0.38
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/123321/ft1_filtered_4FGL_J1251.3-0201_daily_bin1714.fits evtable="EVENTS" scfile=/scratch/kocevski/123321/ft2_4FGL_J1251.3-0201_daily_bin1714.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/123321/Model_4FGL_J1251.3-0201_daily_bin1714.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/123321/ft1_filtered_4FGL_J1251.3-0201_daily_bin1714.fits.....................!
real 57.76
user 56.38
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/123321/ft1_filtered_4FGL_J1251.3-0201_daily_bin1714.fits', '/scratch/kocevski/123321/ft2_4FGL_J1251.3-0201_daily_bin1714.fits', expMap='/scratch/kocevski/123321/expmap_683596801_683856001_4FGL_J1251.3-0201_daily_bin1714.fits', expCube='/scratch/kocevski/123321/ltcube_683596801_683856001_4FGL_J1251.3-0201_daily_bin1714.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/123321/Model_4FGL_J1251.3-0201_daily_bin1714.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/123321/ft1_filtered_4FGL_J1251.3-0201_daily_bin1714.fits
Spacecraft file(s): /scratch/kocevski/123321/ft2_4FGL_J1251.3-0201_daily_bin1714.fits
Exposure map: /scratch/kocevski/123321/expmap_683596801_683856001_4FGL_J1251.3-0201_daily_bin1714.fits
Exposure cube: /scratch/kocevski/123321/ltcube_683596801_683856001_4FGL_J1251.3-0201_daily_bin1714.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/123321/Model_4FGL_J1251.3-0201_daily_bin1714.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) = 6821.34928906

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.911       1.0000          .0000       .10000E+07
     2 'Prefactor '    .22116E-06   1.0000          .0000       .10000E+07
     3 'Prefactor '    4.4385       1.0000          .0000       .10000E+07
     4 'norm      '    1.5965       1.0000          .0000       .10000E+07
     5 'norm      '    .52948       1.0000          .0000       .10000E+07
     6 'norm      '    .87158E-06   1.0000          .0000       .10000E+07
     7 'norm      '    .67687       1.0000          .0000       .10000E+07
     8 'Prefactor '    .29557E-05   1.0000          .0000       .10000E+07
     9 'Prefactor '    7.0637       1.0000          .0000       .10000E+07
    10 'norm      '    2.0615       1.0000          .0000       .10000E+07
    11 'Prefactor '    3.1148       1.0000          .0000       .10000E+07
    12 'Prefactor '    1.0152       1.0000          .0000       .10000E+07
    13 'norm      '    6.6668       1.0000          .0000       .10000E+07
    14 'norm      '    .21989       1.0000          .0000       .10000E+07
    15 'Prefactor '    67.384       1.0000          .0000       .10000E+07
    16 'norm      '    11.215       1.0000          .0000       .10000E+07
    17 'norm      '    7.6867       1.0000          .0000       .10000E+07
    18 'Prefactor '    .43223E-04   1.0000          .0000       .10000E+07
    19 'Prefactor '    18.773       1.0000          .0000       .10000E+07
    20 'norm      '    1.1994       1.0000          .0000       .10000E+07
    21 'Normalizat'    1.8653       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .68996       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=   6821.243     FROM MIGRAD    STATUS=CONVERGED    153 CALLS     1826 TOTAL
                     EDM=   .46E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.241        23.881       -.23875E-06    .85551E-02
   2  Prefactor     .22204E-09    17.561       -.93481E-07** at limit **
   3  Prefactor     4.2744        8.1136        .10860E-06    .11339E-01
   4  norm          1.6104        1.9807       -.40304E-07   -.54994E-03
   5  norm          .54068        4.5382        .27616E-06   -.24598E-05
   6  norm          .16653E-09    14.801       -.48829E-08** at limit **
   7  norm          .67840        .60714        .23169E-07   -.99597E-04
   8  Prefactor      .0000        4.8921       -.15323E-06** at limit **
   9  Prefactor     7.1598        10.213       -.90851E-07    .14510E-04
  10  norm          2.0638        1.6848        .32884E-07    .12351E-03
  11  Prefactor     3.0583        6.4062        .68644E-07    .32535E-03
  12  Prefactor     1.4759        61.663       -.19684E-06   -.18685E-03
  13  norm          6.6605        1.8744       -.13011E-07   -.69669E-02
  14  norm          .21868        .17745       -.21856E-07** at limit **
  15  Prefactor     69.396        64.685        .35961E-06   -.24821E-02
  16  norm          11.169        6.9322        .11643E-06   -.18643E-01
  17  norm          7.5895        7.4852       -.42625E-07   -.13298E-03
  18  Prefactor     .55511E-10    8.1551        .57168E-07** at limit **
  19  Prefactor     18.893        10.205        .22764E-06    .16434E-01
  20  norm          1.2009        1.6074        .69932E-07    .70635E-04
  21  Normalizat    1.8647        .28502       -.28619E-05   -.41266E-05
  22  Prefactor     .68950        .19042       -.31833E-05   -.66142E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.2407
  Prefactor  = 2.22045e-10
  Prefactor  = 4.27441
  norm       = 1.6104
  norm       = 0.54068
  norm       = 1.66533e-10
  norm       = 0.678399
  Prefactor  = 0
  Prefactor  = 7.15977
  norm       = 2.06381
  Prefactor  = 3.05834
  Prefactor  = 1.47587
  norm       = 6.66046
  norm       = 0.218679
  Prefactor  = 69.3963
  norm       = 11.1687
  norm       = 7.58945
  Prefactor  = 5.55112e-11
  Prefactor  = 18.8925
  norm       = 1.2009
  Normalizat = 1.86467
  Prefactor  = 0.689495
 **********
 **   18 **HESSE 
 **********

 FCN=   6821.243     FROM HESSE     STATUS=OK           400 CALLS     2226 TOTAL
                     EDM=   .37E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.241        24.551        .21874E-03   -1.5616    
   2  Prefactor     .22204E-09    17.568        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.2744        16.290        .47774E-03   -1.5667    
   4  norm          1.6104        2.2929        .83902E-03   -1.5683    
   5  norm          .54068        4.6730        .75798E-03   -1.5693    
   6  norm          .16653E-09    14.807        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .67840        .62886        .62606E-03   -1.5691    
   8  Prefactor      .0000        4.8957        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     7.1598        10.258        .37721E-03   -1.5654    
  10  norm          2.0638        1.6997        .71942E-03   -1.5679    
  11  Prefactor     3.0583        6.5643        .57427E-03   -1.5673    
  12  Prefactor     1.4759        75.187        .12962E-02   -1.5684    
  13  norm          6.6605        17.580        .38840E-03   -1.5656    
  14  norm          .21868        .18871        .67047E-03   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     69.396        64.744        .12183E-03   -1.5541    
  16  norm          11.169        12.295        .29891E-03   -1.5641    
  17  norm          7.5895        7.4874        .36146E-03   -1.5653    
  18  Prefactor     .55511E-10    8.1712        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     18.893        11.306        .23088E-03   -1.5621    
  20  norm          1.2009        1.6363        .10365E-02   -1.5686    
  21  Normalizat    1.8647        .24041        .60838E-01   -.67987    
  22  Prefactor     .68950        .16113        .65187E-01   -1.0394    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.65297e-06
Minuit parameter uncertainties:
  1  24.5509
  2  0.000120611
  3  16.2903
  4  2.29289
  5  3.17906
  6  9.85542e-05
  7  0.628865
  8  9.65631e-06
  9  10.2585
  10  1.69968
  11  6.5643
  12  21.0684
  13  17.5803
  14  0.188712
  15  64.7451
  16  12.2954
  17  7.48736
  18  3.38286e-05
  19  11.306
  20  1.63628
  21  0.240562
  22  0.161235
Done.

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

Extracting fit parameters...

4FGL J1251.3-0201
   Spectrum: LogParabola
290         norm:  6.660e+00  1.758e+01  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:  6.895e-01  1.612e-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.865e+00  2.406e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/123321/likelihoodResults_683596801_683856001_4FGL_J1251.3-0201_daily_bin1714.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) = 6821.23522223
delta logL = 0.0079844106358

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6821.23504871
delta logL = 0.00815792934918

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6821.235     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      269 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.9683        17.541        .15192E-04    .34798E-03
   2  alpha         1.7555        1.3928        .44376E-01   -.23715E-04
   3  Normalizat    1.8660        .26895        .26894E-03    .17966E-04
   4  Prefactor     .68892        .18812        .28852E-03    .11466E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.96834
  alpha      = 1.7555
  Normalizat = 1.86597
  Prefactor  = 0.688917
 **********
 **   18 **HESSE 
 **********

 FCN=   6821.235     FROM HESSE     STATUS=OK            25 CALLS      294 TOTAL
                     EDM=   .67E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.9683        17.510        .60768E-06   -1.5655    
   2  alpha         1.7555        1.3919        .88751E-02   -.30239    
   3  Normalizat    1.8660        .26918        .10758E-04   -.67954    
   4  Prefactor     .68892        .18828        .11541E-04   -1.0396    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.69243e-12
Minuit parameter uncertainties:
  1  17.5101
  2  1.48607
  3  0.269395
  4  0.188458
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/123321': 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) = 6821.2350487
delta logL = 0.00815794187292

Extracting fit parameters...

4FGL J1251.3-0201
   Spectrum: LogParabola
290         norm:  6.968e+00  1.751e+01  0.000e+00  1.000e+06 ( 1.000e-13)
291        alpha:  1.756e+00  1.486e+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:  6.889e-01  1.885e-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.866e+00  2.694e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/123321/cmap_HighResolution_683596801_683856001_4FGL_J1251.3-0201_daily_bin1714.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.83e-05', job_status='DONE', photon_flux_upper_limit='5.54e-08', time_completed='2022-09-16 17:13:12.187748', job_id='123321', GAL2='0.69', fit_tolerance='1e-08', EG2='1.87', EG='1.86', time_epoch_completed='1663373592.19', return_code2='0', ts='0.20', comment='SUCCESS', return_code='0', GAL='0.69', dlogl='8.16e-03', ts2='0.21', photon_index_error='0.00', photon_index='1.95' WHERE bin_id='1714' AND source_name='4FGL J1251.3-0201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 17:13:12 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0122>
Subject: Job 123321: <4FGL_J1251.3-0201_daily_bin1714> in cluster <slac> Done

Job <4FGL_J1251.3-0201_daily_bin1714> 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) <bullet0122>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 17:01:25 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:25 2022
Terminated at Fri Sep 16 17:13:13 2022
Results reported at Fri Sep 16 17:13:13 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1251.3-0201_daily_bin1714 192.836 -2.0271 683596801 683856001 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 :                                   652.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             312.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   707 sec.
    Turnaround time :                            774 sec.

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

