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


Performing analysis on: 4FGL_J2139.4-4235_daily_bin1766
RA = 324.855, Dec = -42.5895
tmin = 697075201, tmax = 697334401
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='859636', job_status='RUN', time_executed='2023-02-06 01:30:35.555735', time_epoch_executed='1675675835.56' WHERE source_name='4FGL J2139.4-4235' and cadence='daily' and bin_id='1766'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/859636

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/859636/ft1_4FGL_J2139.4-4235_daily_bin1766.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/859636/ft2_4FGL_J2139.4-4235_daily_bin1766.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/859636/ft1_4FGL_J2139.4-4235_daily_bin1766.fits outfile=/scratch/kocevski/859636/ft1_filteredMKT_4FGL_J2139.4-4235_daily_bin1766.fits ra=324.855 dec=-42.5895 rad=12.0 tmin=697075201.0 tmax=697334401.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.73
user 3.49
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/859636/ft2_4FGL_J2139.4-4235_daily_bin1766.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/859636/ft1_filteredMKT_4FGL_J2139.4-4235_daily_bin1766.fits evtable="EVENTS" outfile="/scratch/kocevski/859636/ft1_filtered_4FGL_J2139.4-4235_daily_bin1766.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.52
user 0.36
sys 0.15

Number of photons that the gtmktime cut: 497

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/859636/ft1_filtered_4FGL_J2139.4-4235_daily_bin1766.fits" evtable="EVENTS" scfile=/scratch/kocevski/859636/ft2_4FGL_J2139.4-4235_daily_bin1766.fits sctable="SC_DATA" outfile=/scratch/kocevski/859636/ltcube_697075201_697334401_4FGL_J2139.4-4235_daily_bin1766.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/859636/ft2_4FGL_J2139.4-4235_daily_bin1766.fits
.....................!
real 15.81
user 15.34
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/859636/ft1_filtered_4FGL_J2139.4-4235_daily_bin1766.fits evtable="EVENTS" scfile=/scratch/kocevski/859636/ft2_4FGL_J2139.4-4235_daily_bin1766.fits sctable="SC_DATA" expcube=/scratch/kocevski/859636/ltcube_697075201_697334401_4FGL_J2139.4-4235_daily_bin1766.fits outfile=/scratch/kocevski/859636/expmap_697075201_697334401_4FGL_J2139.4-4235_daily_bin1766.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/859636/ltcube_697075201_697334401_4FGL_J2139.4-4235_daily_bin1766.fits
.....................!
real 192.39
user 186.82
sys 5.02

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/859636/ft1_filtered_4FGL_J2139.4-4235_daily_bin1766.fits scfile=/scratch/kocevski/859636/ft2_4FGL_J2139.4-4235_daily_bin1766.fits outfile=/scratch/kocevski/859636/cmap_697075201_697334401_4FGL_J2139.4-4235_daily_bin1766.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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/859636/ft1_filtered_4FGL_J2139.4-4235_daily_bin1766.fits scfile=/scratch/kocevski/859636/ft2_4FGL_J2139.4-4235_daily_bin1766.fits outfile=/scratch/kocevski/859636/cmap_HighResolution_697075201_697334401_4FGL_J2139.4-4235_daily_bin1766.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.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/859636/ft1_filtered_4FGL_J2139.4-4235_daily_bin1766.fits evtable="EVENTS" scfile=/scratch/kocevski/859636/ft2_4FGL_J2139.4-4235_daily_bin1766.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/859636/Model_4FGL_J2139.4-4235_daily_bin1766.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/859636/ft1_filtered_4FGL_J2139.4-4235_daily_bin1766.fits.....................!
real 47.04
user 45.75
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/859636/ft1_filtered_4FGL_J2139.4-4235_daily_bin1766.fits', '/scratch/kocevski/859636/ft2_4FGL_J2139.4-4235_daily_bin1766.fits', expMap='/scratch/kocevski/859636/expmap_697075201_697334401_4FGL_J2139.4-4235_daily_bin1766.fits', expCube='/scratch/kocevski/859636/ltcube_697075201_697334401_4FGL_J2139.4-4235_daily_bin1766.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/859636/Model_4FGL_J2139.4-4235_daily_bin1766.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/859636/ft1_filtered_4FGL_J2139.4-4235_daily_bin1766.fits
Spacecraft file(s): /scratch/kocevski/859636/ft2_4FGL_J2139.4-4235_daily_bin1766.fits
Exposure map: /scratch/kocevski/859636/expmap_697075201_697334401_4FGL_J2139.4-4235_daily_bin1766.fits
Exposure cube: /scratch/kocevski/859636/ltcube_697075201_697334401_4FGL_J2139.4-4235_daily_bin1766.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/859636/Model_4FGL_J2139.4-4235_daily_bin1766.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) = 5483.45164033

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15015       1.0000          .0000       .10000E+07
     2 'norm      '    .26062E-05   1.0000          .0000       .10000E+07
     3 'Prefactor '    8.6738       1.0000          .0000       .10000E+07
     4 'Prefactor '    9.1883       1.0000          .0000       .10000E+07
     5 'Prefactor '    .21483E-04   1.0000          .0000       .10000E+07
     6 'Prefactor '    .16778E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    2.3539       1.0000          .0000       .10000E+07
     8 'norm      '    6.1165       1.0000          .0000       .10000E+07
     9 'Prefactor '    3.2762       1.0000          .0000       .10000E+07
    10 'Prefactor '    .74240E-03   1.0000          .0000       .10000E+07
    11 'norm      '    .83409E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    .47691E-02   1.0000          .0000       .10000E+07
    13 'Prefactor '    .38815E-02   1.0000          .0000       .10000E+07
    14 'Prefactor '    45.431       1.0000          .0000       .10000E+07
    15 'Prefactor '    .38743E-02   1.0000          .0000       .10000E+07
    16 'Prefactor '    .70649       1.0000          .0000       .10000E+07
    17 'Prefactor '    .67824E-01   1.0000          .0000       .10000E+07
    18 'Prefactor '    .20371E-03   1.0000          .0000       .10000E+07
    19 'Prefactor '    .30614E-03   1.0000          .0000       .10000E+07
    20 'Normalizat'    1.0954       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.1303       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=   5483.448     FROM MIGRAD    STATUS=CONVERGED    160 CALLS     1629 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .36138E-06    2.0727        .32387E-06** at limit **
   2  norm           .0000        1.7073       -.55080E-06** at limit **
   3  Prefactor     9.3529        39.787       -.26782E-05    .95720E-01
   4  Prefactor     9.1844        11.415        .17872E-06    .21170E-01
   5  Prefactor     .28230E-05    27.226        .72503E-06** at limit **
   6  Prefactor     .16098E-08    10.331        .44648E-06** at limit **
   7  Prefactor     2.2474        6.1443       -.51153E-06    .16207E-02
   8  norm          6.1148        4.8784        .11122E-06   -.92526E-05
   9  Prefactor     3.2985        7.5988        .10561E-05    .25942E-01
  10  Prefactor      .0000        3.0411        .51419E-07** at limit **
  11  norm          .55511E-10    2.4651       -.86857E-08** at limit **
  12  Prefactor     .56288E-07    7.3457        .78085E-06** at limit **
  13  Prefactor     .14433E-08    7.1183        .28236E-06** at limit **
  14  Prefactor     44.847        47.064        .10004E-05    .17516    
  15  Prefactor     .24702E-07    5.9640        .75808E-06** at limit **
  16  Prefactor     .72197        7.0595        .87500E-06   -.17902E-02
  17  Prefactor     .21649E-08    50.026        .67197E-06** at limit **
  18  Prefactor      .0000        2.0889        .22699E-06** at limit **
  19  Prefactor     .23398E-05    25.530       -.96949E-06** at limit **
  20  Normalizat    1.0958        .25812        .11734E-05    .35784E-04
  21  Prefactor     1.1301        .17027        .90956E-06    .50536E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.61378e-07
  norm       = 0
  Prefactor  = 9.35285
  Prefactor  = 9.18445
  Prefactor  = 2.82296e-06
  Prefactor  = 1.60982e-09
  Prefactor  = 2.24736
  norm       = 6.11478
  Prefactor  = 3.29851
  Prefactor  = 0
  norm       = 5.55112e-11
  Prefactor  = 5.62883e-08
  Prefactor  = 1.44329e-09
  Prefactor  = 44.8466
  Prefactor  = 2.47025e-08
  Prefactor  = 0.72197
  Prefactor  = 2.16493e-09
  Prefactor  = 0
  Prefactor  = 2.3398e-06
  Normalizat = 1.09583
  Prefactor  = 1.13006
 **********
 **   18 **HESSE 
 **********

 FCN=   5483.448     FROM HESSE     STATUS=OK           351 CALLS     1980 TOTAL
                     EDM=   .76E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .36138E-06    66.091        .12740E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm           .0000        1.6924        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     9.3529        66.947        .34011E-03   -1.5647    
   4  Prefactor     9.1844        11.511        .33039E-03   -1.5647    
   5  Prefactor     .28230E-05    27.682        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .16098E-08    10.344        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.2474        6.1892        .66780E-03   -1.5678    
   8  norm          6.1148        4.8835        .40571E-03   -1.5659    
   9  Prefactor     3.2985        7.6394        .55919E-03   -1.5672    
  10  Prefactor      .0000        3.0425        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .55511E-10    2.4647        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .56288E-07    13.030        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .14433E-08    7.2522        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     44.847        74.364        .14837E-03   -1.5574    
  15  Prefactor     .24702E-07    13.408        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .72197        7.0651        .60183E-03   -1.5691    
  17  Prefactor     .21649E-08    49.756        .14891E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor      .0000        2.0884        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .23398E-05    25.894        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.0958        .22809        .67957E-01   -.89886    
  21  Prefactor     1.1301        .14953        .36533E-01   -.88512    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.62148e-06
Minuit parameter uncertainties:
  1  0.00977408
  2  5.20844e-06
  3  50.0467
  4  11.5109
  5  0.01768
  6  0.000257788
  7  6.18918
  8  4.88347
  9  7.6394
  10  2.25484e-06
  11  1.70518e-05
  12  0.00171259
  13  0.000205685
  14  74.3655
  15  0.00115092
  16  4.51701
  17  0.000656248
  18  2.64646e-06
  19  0.0155675
  20  0.228291
  21  0.149584
Done.

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

Extracting fit parameters...

4FGL J2139.4-4235
   Spectrum: LogParabola
298         norm:  6.115e+00  4.883e+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

GAL_V02
   Spectrum: PowerLaw
578    Prefactor:  1.130e+00  1.496e-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.096e+00  2.283e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.58
Ra Dec: 324.855 -42.590
Photon Index (Fixed Index): 1.93 +/- 0.00
Photon Flux (Fixed Index): 3.71e-08 +/- 2.96e-08
Energy Flux (Fixed Index): 2.61e-05 +/- 2.09e-05

TS (Fixed Index): 3.58
Ra Dec: 324.855 -42.590
Photon Flux Upper Limit: 1.11e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.85e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/859636/likelihoodResults_697075201_697334401_4FGL_J2139.4-4235_daily_bin1766.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) = 5483.39981519
delta logL = 0.0477354750556

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5483.39841011
delta logL = 0.0491405620614

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.1642       1.0000          .0000       .10000E+07
     2 'alpha     '    2.1504       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0841       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1337       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=   5483.398     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      229 TOTAL
                     EDM=   .21E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.1779        140.75        .40411E-03    .80405E-03
   2  alpha         2.1529        2.8028        .41672        .91548E-05
   3  Normalizat    1.0839        .15483        .68274E-01    .11226E-04
   4  Prefactor     1.1336        .68094E-01    .36426E-01    .72193E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 6.17787
  alpha      = 2.15291
  Normalizat = 1.08393
  Prefactor  = 1.13365
 **********
 **   18 **HESSE 
 **********

 FCN=   5483.398     FROM HESSE     STATUS=OK            33 CALLS      262 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.1779        4.8167        .13604E-04   -1.5658    
   2  alpha         2.1529        .71470        .14850E-01   -.13929    
   3  Normalizat    1.0839        .25047        .30206E-03   -.90270    
   4  Prefactor     1.1336        .16870        .20094E-03   -.88398    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.20218e-10
Minuit parameter uncertainties:
  1  4.81667
  2  0.725017
  3  0.250744
  4  0.168775
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/859636': 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) = 5483.39839764
delta logL = 0.0491530320032

Extracting fit parameters...

4FGL J2139.4-4235
   Spectrum: LogParabola
298         norm:  6.178e+00  4.817e+00  0.000e+00  1.000e+06 ( 1.000e-12)
299        alpha:  2.153e+00  7.250e-01  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.134e+00  1.688e-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.084e+00  2.507e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.67
Ra Dec: 324.855 -42.590
Photon Index (Free Index): 2.15 +/- 0.73
Photon Flux (Free Index): 4.85e-08 +/- 5.24e-08
Energy Flux (Free Index): 2.23e-05 +/- 1.96e-05

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/859636/cmap_HighResolution_697075201_697334401_4FGL_J2139.4-4235_daily_bin1766.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.85e-05', comment='SUCCESS', photon_flux='3.71e-08', energy_flux2='2.23e-05', photon_flux_error='2.96e-08', dlogl='4.92e-02', energy_flux='2.61e-05', photon_flux2='4.85e-08', job_status='DONE', time_completed='2023-02-06 01:39:50.334850', photon_index_error2='0.73', photon_index2='2.15', ts='3.58', fit_tolerance='1e-08', GAL='1.13', photon_index_error='0.00', photon_flux_upper_limit='1.11e-07', energy_flux_error2='1.96e-05', EG='1.10', time_epoch_completed='1675676390.33', return_code='0', job_id='859636', GAL2='1.13', EG2='1.08', return_code2='0', energy_flux_error='2.09e-05', photon_flux_error2='5.24e-08', ts2='3.67', photon_index='1.93' WHERE bin_id='1766' AND source_name='4FGL J2139.4-4235' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Feb  6 01:39:50 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0156>
Subject: Job 859636: <4FGL_J2139.4-4235_daily_bin1766> in cluster <slac> Done

Job <4FGL_J2139.4-4235_daily_bin1766> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Mon Feb  6 01:25:21 2023
Job was executed on host(s) <bullet0156>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Feb  6 01:27:13 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Feb  6 01:27:13 2023
Terminated at Mon Feb  6 01:39:51 2023
Results reported at Mon Feb  6 01:39:51 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2139.4-4235_daily_bin1766 324.855 -42.5895 697075201 697334401 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 :                                   556.52 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             279.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   757 sec.
    Turnaround time :                            870 sec.

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

