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


Performing analysis on: 4FGL_J2139.4-4235_daily_bin1709
RA = 324.855, Dec = -42.5895
tmin = 682300801, tmax = 682560001
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='234565', job_status='RUN', time_executed='2022-09-16 23:23:36.243095', time_epoch_executed='1663395816.24' WHERE source_name='4FGL J2139.4-4235' and cadence='daily' and bin_id='1709'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/234565

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/234565/ft1_4FGL_J2139.4-4235_daily_bin1709.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/234565/ft2_4FGL_J2139.4-4235_daily_bin1709.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/234565/ft1_4FGL_J2139.4-4235_daily_bin1709.fits outfile=/scratch/kocevski/234565/ft1_filteredMKT_4FGL_J2139.4-4235_daily_bin1709.fits ra=324.855 dec=-42.5895 rad=12.0 tmin=682300801.0 tmax=682560001.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.75
user 3.52
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/234565/ft2_4FGL_J2139.4-4235_daily_bin1709.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/234565/ft2_4FGL_J2139.4-4235_daily_bin1709.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/234565/ft1_filteredMKT_4FGL_J2139.4-4235_daily_bin1709.fits evtable="EVENTS" outfile="/scratch/kocevski/234565/ft1_filtered_4FGL_J2139.4-4235_daily_bin1709.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.50
user 0.33
sys 0.16

Number of photons that the gtmktime cut: 583

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/234565/ft1_filtered_4FGL_J2139.4-4235_daily_bin1709.fits" evtable="EVENTS" scfile=/scratch/kocevski/234565/ft2_4FGL_J2139.4-4235_daily_bin1709.fits sctable="SC_DATA" outfile=/scratch/kocevski/234565/ltcube_682300801_682560001_4FGL_J2139.4-4235_daily_bin1709.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/234565/ft2_4FGL_J2139.4-4235_daily_bin1709.fits
.....................!
real 15.28
user 14.89
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/234565/ft1_filtered_4FGL_J2139.4-4235_daily_bin1709.fits evtable="EVENTS" scfile=/scratch/kocevski/234565/ft2_4FGL_J2139.4-4235_daily_bin1709.fits sctable="SC_DATA" expcube=/scratch/kocevski/234565/ltcube_682300801_682560001_4FGL_J2139.4-4235_daily_bin1709.fits outfile=/scratch/kocevski/234565/expmap_682300801_682560001_4FGL_J2139.4-4235_daily_bin1709.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/234565/ltcube_682300801_682560001_4FGL_J2139.4-4235_daily_bin1709.fits
.....................!
real 194.28
user 188.24
sys 5.54

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

Setting source of interest to:
4FGL J2139.4-4235 @ 324.855 -42.5895

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/234565/ft1_filtered_4FGL_J2139.4-4235_daily_bin1709.fits scfile=/scratch/kocevski/234565/ft2_4FGL_J2139.4-4235_daily_bin1709.fits outfile=/scratch/kocevski/234565/cmap_682300801_682560001_4FGL_J2139.4-4235_daily_bin1709.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=324.855 yref=-42.5895 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.59
user 0.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/234565/ft1_filtered_4FGL_J2139.4-4235_daily_bin1709.fits scfile=/scratch/kocevski/234565/ft2_4FGL_J2139.4-4235_daily_bin1709.fits outfile=/scratch/kocevski/234565/cmap_HighResolution_682300801_682560001_4FGL_J2139.4-4235_daily_bin1709.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=324.855 yref=-42.5895 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.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/234565/ft1_filtered_4FGL_J2139.4-4235_daily_bin1709.fits evtable="EVENTS" scfile=/scratch/kocevski/234565/ft2_4FGL_J2139.4-4235_daily_bin1709.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/234565/Model_4FGL_J2139.4-4235_daily_bin1709.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/234565/ft1_filtered_4FGL_J2139.4-4235_daily_bin1709.fits.....................!
real 51.41
user 50.03
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/234565/ft1_filtered_4FGL_J2139.4-4235_daily_bin1709.fits', '/scratch/kocevski/234565/ft2_4FGL_J2139.4-4235_daily_bin1709.fits', expMap='/scratch/kocevski/234565/expmap_682300801_682560001_4FGL_J2139.4-4235_daily_bin1709.fits', expCube='/scratch/kocevski/234565/ltcube_682300801_682560001_4FGL_J2139.4-4235_daily_bin1709.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/234565/Model_4FGL_J2139.4-4235_daily_bin1709.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2139.4-4235'

4FGL J2139.4-4235
   Spectrum: LogParabola
298         norm:  7.892e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
299        alpha:  1.929e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
300         beta:  4.914e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
301           Eb:  8.547e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/234565/ft1_filtered_4FGL_J2139.4-4235_daily_bin1709.fits
Spacecraft file(s): /scratch/kocevski/234565/ft2_4FGL_J2139.4-4235_daily_bin1709.fits
Exposure map: /scratch/kocevski/234565/expmap_682300801_682560001_4FGL_J2139.4-4235_daily_bin1709.fits
Exposure cube: /scratch/kocevski/234565/ltcube_682300801_682560001_4FGL_J2139.4-4235_daily_bin1709.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/234565/Model_4FGL_J2139.4-4235_daily_bin1709.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) = 6333.07587638

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .33685E-01   1.0000          .0000       .10000E+07
     2 'norm      '    3.8534       1.0000          .0000       .10000E+07
     3 'Prefactor '    .48156E-02   1.0000          .0000       .10000E+07
     4 'Prefactor '    5.3774       1.0000          .0000       .10000E+07
     5 'Prefactor '    .20033E-01   1.0000          .0000       .10000E+07
     6 'Prefactor '    29.302       1.0000          .0000       .10000E+07
     7 'Prefactor '    1.3171       1.0000          .0000       .10000E+07
     8 'norm      '    .42473E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    .17697E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    26.423       1.0000          .0000       .10000E+07
    11 'norm      '    .74241E-05   1.0000          .0000       .10000E+07
    12 'Prefactor '    .72004E-02   1.0000          .0000       .10000E+07
    13 'Prefactor '    12.554       1.0000          .0000       .10000E+07
    14 'Prefactor '    3.8201       1.0000          .0000       .10000E+07
    15 'Prefactor '    .92893       1.0000          .0000       .10000E+07
    16 'Prefactor '    .98183E-04   1.0000          .0000       .10000E+07
    17 'Prefactor '    .44180E-01   1.0000          .0000       .10000E+07
    18 'Prefactor '    2.5563       1.0000          .0000       .10000E+07
    19 'Prefactor '    23.947       1.0000          .0000       .10000E+07
    20 'Normalizat'    1.0922       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0637       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5810E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6333.069     FROM MIGRAD    STATUS=CONVERGED    196 CALLS     1667 TOTAL
                     EDM=   .58E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        25.334       -.35236E-06** at limit **
   2  norm          3.8497        2.1099       -.16814E-07    .17466E-03
   3  Prefactor      .0000        14.596        .25522E-06** at limit **
   4  Prefactor     5.4224        7.2368        .11414E-06    .17013E-03
   5  Prefactor      .0000        9.7754       -.14718E-06** at limit **
   6  Prefactor     29.153        36.941        .11264E-05   -.30305E-02
   7  Prefactor     1.3128        3.1225        .30800E-07    .80020E-04
   8  norm          .11102E-09    43.507        .18905E-05** at limit **
   9  Prefactor      .0000        5.6122        .69416E-07** at limit **
  10  Prefactor     26.386        11.757        .87872E-07    .36563E-03
  11  norm           .0000        6.1703       -.27389E-06** at limit **
  12  Prefactor     .55511E-10    20.865       -.36750E-06** at limit **
  13  Prefactor     12.794        10.519       -.84791E-06    .10174E-02
  14  Prefactor     .11940E-06    4940.1        .20618E-04** at limit **
  15  Prefactor     .90988        18.606        .18376E-05    .81589E-02
  16  Prefactor      .0000        3.2199        .97165E-08** at limit **
  17  Prefactor      .0000        26.895       -.84360E-07** at limit **
  18  Prefactor     2.5340        8.2752        .39890E-06    .23180E-03
  19  Prefactor     24.016        9.0287       -.30475E-06    .39237E-01
  20  Normalizat    1.0927        .24754       -.85539E-05    .43652E-05
  21  Prefactor     1.0635        .15482        .31160E-05   -.10944E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  norm       = 3.84969
  Prefactor  = 0
  Prefactor  = 5.4224
  Prefactor  = 0
  Prefactor  = 29.1525
  Prefactor  = 1.31283
  norm       = 1.11022e-10
  Prefactor  = 0
  Prefactor  = 26.3859
  norm       = 0
  Prefactor  = 5.55112e-11
  Prefactor  = 12.7944
  Prefactor  = 1.19404e-07
  Prefactor  = 0.909882
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 2.534
  Prefactor  = 24.0155
  Normalizat = 1.09274
  Prefactor  = 1.06352
 **********
 **   18 **HESSE 
 **********

 FCN=   6333.069     FROM HESSE     STATUS=OK           365 CALLS     2032 TOTAL
                     EDM=   .46E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        25.322        .16262E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.8497        2.1197        .51384E-03   -1.5669    
   3  Prefactor      .0000        14.602        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     5.4224        7.2495        .43313E-03   -1.5661    
   5  Prefactor      .0000        9.7715        .17035E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     29.153        36.965        .18476E-03   -1.5600    
   7  Prefactor     1.3128        3.1808        .95911E-03   -1.5685    
   8  norm          .11102E-09    3.5787        .53162E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor      .0000        5.6027        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     26.386        11.853        .19458E-03   -1.5605    
  11  norm           .0000        6.1832        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .55511E-10    20.825        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     12.794        10.565        .28246E-03   -1.5636    
  14  Prefactor     .11940E-06    4924.3        .51616E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .90988        20.689        .43780E-03   -1.5689    
  16  Prefactor      .0000        3.2089        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor      .0000        26.830        .15780E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.5340        8.2292        .63830E-03   -1.5676    
  19  Prefactor     24.016        24.312        .20440E-03   -1.5610    
  20  Normalizat    1.0927        .21829        .68767E-01   -.89985    
  21  Prefactor     1.0635        .13512        .39166E-01   -.90641    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.57884e-08
Minuit parameter uncertainties:
  1  7.54926e-06
  2  2.11968
  3  3.04916e-05
  4  7.24955
  5  2.78893e-06
  6  36.9651
  7  3.18083
  8  3.5979e-05
  9  1.22743e-06
  10  11.8526
  11  9.04701e-06
  12  5.37072e-05
  13  10.5649
  14  0.0485364
  15  8.67739
  16  6.05226e-07
  17  2.15322e-06
  18  8.22928
  19  24.3122
  20  0.218472
  21  0.135159
Done.

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

Extracting fit parameters...

4FGL J2139.4-4235
   Spectrum: LogParabola
298         norm:  1.110e-10  3.598e-05  0.000e+00  1.000e+06 ( 1.000e-12)
299        alpha:  1.929e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
300         beta:  4.914e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
301           Eb:  8.547e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
578    Prefactor:  1.064e+00  1.352e-01  0.000e+00  1.000e+01 ( 1.000e+00)
579        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
580        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
577   Normalization:  1.093e+00  2.185e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 324.855 -42.590
Photon Flux Upper Limit: 7.06e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.98e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/234565/likelihoodResults_682300801_682560001_4FGL_J2139.4-4235_daily_bin1709.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) = 6333.06876504
delta logL = 0.000242550504481

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6333.00806697
delta logL = 0.0609406184803

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6333.008     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      283 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .82389        2.7816        .51373E-03    .95824E-02
   2  alpha         1.2632        .78322        .50000       -.43865E-04
   3  Normalizat    1.0973        .20037        .68642E-01    .13866E-04
   4  Prefactor     1.0580        .13377        .39469E-01    .13848E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.823893
  alpha      = 1.26322
  Normalizat = 1.09726
  Prefactor  = 1.05796
 **********
 **   18 **HESSE 
 **********

 FCN=   6333.008     FROM HESSE     STATUS=OK            33 CALLS      316 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .82389        2.8224        .20549E-04   -1.5690    
   2  alpha         1.2632        1.0781        .26858E-01   -.51750    
   3  Normalizat    1.0973        .22789        .30370E-03   -.89840    
   4  Prefactor     1.0580        .15226        .20426E-03   -.90822    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.41355e-11
Minuit parameter uncertainties:
  1  2.8224
  2  1.12808
  3  0.228095
  4  0.152327
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/234565': 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) = 6333.00806623
delta logL = 0.060941360186

Extracting fit parameters...

4FGL J2139.4-4235
   Spectrum: LogParabola
298         norm:  8.239e-01  2.822e+00  0.000e+00  1.000e+06 ( 1.000e-12)
299        alpha:  1.263e+00  1.128e+00  0.000e+00  5.000e+00 ( 1.000e+00)
300         beta:  4.914e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
301           Eb:  8.547e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
578    Prefactor:  1.058e+00  1.523e-01  0.000e+00  1.000e+01 ( 1.000e+00)
579        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
580        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
577   Normalization:  1.097e+00  2.281e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 324.855 -42.590

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/234565/cmap_HighResolution_682300801_682560001_4FGL_J2139.4-4235_daily_bin1709.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.98e-05', job_status='DONE', photon_flux_upper_limit='7.06e-08', time_completed='2022-09-16 23:33:14.701713', job_id='234565', GAL2='1.06', fit_tolerance='1e-08', EG2='1.10', EG='1.09', time_epoch_completed='1663396394.7', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='6.09e-02', ts2='0.12', photon_index_error='0.00', photon_index='1.93' WHERE bin_id='1709' AND source_name='4FGL J2139.4-4235' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 23:33:14 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0209>
Subject: Job 234565: <4FGL_J2139.4-4235_daily_bin1709> in cluster <slac> Done

Job <4FGL_J2139.4-4235_daily_bin1709> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Sep 16 23:20:24 2022
Job was executed on host(s) <bullet0209>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 23:22:32 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 16 23:22:32 2022
Terminated at Fri Sep 16 23:33:15 2022
Results reported at Fri Sep 16 23:33:15 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2139.4-4235_daily_bin1709 324.855 -42.5895 682300801 682560001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2139.4-4235 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   580.32 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             317.91 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   643 sec.
    Turnaround time :                            771 sec.

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

