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 191 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 7542
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2139.4-4235_daily_bin1703
RA = 324.855, Dec = -42.5895
tmin = 680745601, tmax = 681004801
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='324075', job_status='RUN', time_executed='2022-08-01 01:24:14.946520', time_epoch_executed='1659342254.95' WHERE source_name='4FGL J2139.4-4235' and cadence='daily' and bin_id='1703'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/324075

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/324075/ft1_4FGL_J2139.4-4235_daily_bin1703.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/324075/ft2_4FGL_J2139.4-4235_daily_bin1703.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/324075/ft1_4FGL_J2139.4-4235_daily_bin1703.fits outfile=/scratch/kocevski/324075/ft1_filteredMKT_4FGL_J2139.4-4235_daily_bin1703.fits ra=324.855 dec=-42.5895 rad=12.0 tmin=680745601.0 tmax=681004801.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.03
user 2.80
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/324075/ft2_4FGL_J2139.4-4235_daily_bin1703.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/324075/ft1_filteredMKT_4FGL_J2139.4-4235_daily_bin1703.fits evtable="EVENTS" outfile="/scratch/kocevski/324075/ft1_filtered_4FGL_J2139.4-4235_daily_bin1703.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: 33

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/324075/ft1_filtered_4FGL_J2139.4-4235_daily_bin1703.fits" evtable="EVENTS" scfile=/scratch/kocevski/324075/ft2_4FGL_J2139.4-4235_daily_bin1703.fits sctable="SC_DATA" outfile=/scratch/kocevski/324075/ltcube_680745601_681004801_4FGL_J2139.4-4235_daily_bin1703.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/324075/ft2_4FGL_J2139.4-4235_daily_bin1703.fits
.....................!
real 17.09
user 16.71
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/324075/ft1_filtered_4FGL_J2139.4-4235_daily_bin1703.fits evtable="EVENTS" scfile=/scratch/kocevski/324075/ft2_4FGL_J2139.4-4235_daily_bin1703.fits sctable="SC_DATA" expcube=/scratch/kocevski/324075/ltcube_680745601_681004801_4FGL_J2139.4-4235_daily_bin1703.fits outfile=/scratch/kocevski/324075/expmap_680745601_681004801_4FGL_J2139.4-4235_daily_bin1703.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/324075/ltcube_680745601_681004801_4FGL_J2139.4-4235_daily_bin1703.fits
.....................!
real 193.16
user 187.01
sys 5.10

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/324075/ft1_filtered_4FGL_J2139.4-4235_daily_bin1703.fits scfile=/scratch/kocevski/324075/ft2_4FGL_J2139.4-4235_daily_bin1703.fits outfile=/scratch/kocevski/324075/cmap_680745601_681004801_4FGL_J2139.4-4235_daily_bin1703.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.56
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/324075/ft1_filtered_4FGL_J2139.4-4235_daily_bin1703.fits scfile=/scratch/kocevski/324075/ft2_4FGL_J2139.4-4235_daily_bin1703.fits outfile=/scratch/kocevski/324075/cmap_HighResolution_680745601_681004801_4FGL_J2139.4-4235_daily_bin1703.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.57
user 0.39
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/324075/ft1_filtered_4FGL_J2139.4-4235_daily_bin1703.fits evtable="EVENTS" scfile=/scratch/kocevski/324075/ft2_4FGL_J2139.4-4235_daily_bin1703.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/324075/Model_4FGL_J2139.4-4235_daily_bin1703.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/324075/ft1_filtered_4FGL_J2139.4-4235_daily_bin1703.fits.................................!
real 15.98
user 14.70
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/324075/ft1_filtered_4FGL_J2139.4-4235_daily_bin1703.fits', '/scratch/kocevski/324075/ft2_4FGL_J2139.4-4235_daily_bin1703.fits', expMap='/scratch/kocevski/324075/expmap_680745601_681004801_4FGL_J2139.4-4235_daily_bin1703.fits', expCube='/scratch/kocevski/324075/ltcube_680745601_681004801_4FGL_J2139.4-4235_daily_bin1703.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/324075/Model_4FGL_J2139.4-4235_daily_bin1703.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  1.000e-04  1.000e+04 ( 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  0.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/324075/ft1_filtered_4FGL_J2139.4-4235_daily_bin1703.fits
Spacecraft file(s): /scratch/kocevski/324075/ft2_4FGL_J2139.4-4235_daily_bin1703.fits
Exposure map: /scratch/kocevski/324075/expmap_680745601_681004801_4FGL_J2139.4-4235_daily_bin1703.fits
Exposure cube: /scratch/kocevski/324075/ltcube_680745601_681004801_4FGL_J2139.4-4235_daily_bin1703.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/324075/Model_4FGL_J2139.4-4235_daily_bin1703.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) = 398.031792158

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9999.8       1.0000         .10000E-03   10000.    
     2 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     3 'norm      '    10000.       1.0000         .10000E-03   10000.    
     4 'Prefactor '    9999.9       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .78510E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10504E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .14035E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10273E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10121E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10304E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10097E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    15.301       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10545E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .86074E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    13.938       1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.4328       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    18.458       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .21585E-01   1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0295       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   397.8355     FROM MIGRAD    STATUS=FAILED       906 CALLS     3235 TOTAL
                     EDM=   .15E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor    10000.0        5057.4        .20372E-02** at limit **
   2  Prefactor    10000.0        9495.2        .18167E-02** at limit **
   3  norm         10000.0        1011.0        .18142E-02** at limit **
   4  Prefactor    10000.0        7112.9        .19115E-02** at limit **
   5  Prefactor     .10000E-03    1837.9        .20913E-02** at limit **
   6  Prefactor     .10000E-03    210.11        .18142E-02** at limit **
   7  Prefactor     .10002E-03    434.07        .18142E-02** at limit **
   8  Prefactor     .10000E-03    182.21        .18142E-02** at limit **
   9  Prefactor     .10000E-03    28.759        .10633E-02** at limit **
  10  norm          .10000E-03    22.776        .94610E-03** at limit **
  11  Prefactor     .10000E-03    35.781        .11861E-02** at limit **
  12  Prefactor     .10000E-03    30.812        .11006E-02** at limit **
  13  norm          .10000E-03    48.586        .13817E-02** at limit **
  14  Prefactor     .10000E-03    111.34        .18142E-02** at limit **
  15  Prefactor     15.328        35.118        .10239E-03   -.98888E-04
  16  Prefactor     .10000E-03    209.96        .18142E-02** at limit **
  17  Prefactor     .10635E-03    484.44        .30596E-02** at limit **
  18  Prefactor     13.965        29.712        .59907E-04   -.41047E-03
  19  Prefactor     5.8311        1681.8        .17240E-02   -.66620E-04
  20  Prefactor     .10000E-03    7.0469        .52539E-03** at limit **
  21  Prefactor     18.575        471.69        .93223E-04   -.41587E-04
  22  Normalizat    .16433E-01    9.1859        .11268E-01    .10810E-04
  23  Prefactor     1.0324        2.4661        .17471E-03   -.14172E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   397.8355     FROM SIMPLEX   STATUS=UNCHANGED   1161 CALLS     4396 TOTAL
                     EDM=   .18E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor    10000.0        5057.4        .38715E-01** at limit **
   2  Prefactor    10000.0        9495.2        .59880E-01** at limit **
   3  norm         10000.0        1011.0        .48669E-02** at limit **
   4  Prefactor    10000.0        7112.9        .14260E-02** at limit **
   5  Prefactor     .10000E-03    1837.9        .56117E-02** at limit **
   6  Prefactor     .10000E-03    210.11        .21111E-02** at limit **
   7  Prefactor     .10002E-03    434.07        .66733E-03** at limit **
   8  Prefactor     .10000E-03    182.21        .69592E-03** at limit **
   9  Prefactor     .10000E-03    28.759        .45629E-03** at limit **
  10  norm          .10000E-03    22.776        .20254E-03** at limit **
  11  Prefactor     .10000E-03    35.781        .23212E-03** at limit **
  12  Prefactor     .10000E-03    30.812        .33292E-03** at limit **
  13  norm          .10000E-03    48.586        .63455E-03** at limit **
  14  Prefactor     .10000E-03    111.34        .49070E-03** at limit **
  15  Prefactor     15.328        35.118        .34760E-06   -.98888E-04
  16  Prefactor     .10000E-03    209.96        .98818E-03** at limit **
  17  Prefactor     .10635E-03    484.44        .39823E-04** at limit **
  18  Prefactor     13.965        29.712        .34752E-06   -.41047E-03
  19  Prefactor     5.8311        1681.8        .34386E-06   -.66620E-04
  20  Prefactor     .10000E-03    7.0469        .65518E-04** at limit **
  21  Prefactor     18.575        471.69        .34420E-06   -.41587E-04
  22  Normalizat    .16433E-01    9.1859        .52845E-06    .10810E-04
  23  Prefactor     1.0324        2.4661        .21302E-06   -.14172E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   397.8355     FROM MIGRAD    STATUS=CONVERGED    356 CALLS     4752 TOTAL
                     EDM=   .65E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor    10000.0        5000.0        .40743E-03** at limit **
   2  Prefactor    10000.0        9695.5        .36335E-03** at limit **
   3  norm         10000.0        1044.0        .36285E-03** at limit **
   4  Prefactor    10000.0        6908.8        .38231E-03** at limit **
   5  Prefactor     .10000E-03    1896.0        .41827E-03** at limit **
   6  Prefactor     .10000E-03    217.19        .36285E-03** at limit **
   7  Prefactor     .10000E-03    448.59        .36285E-03** at limit **
   8  Prefactor     .10000E-03    188.35        .36285E-03** at limit **
   9  Prefactor     .10000E-03    29.735        .21266E-03** at limit **
  10  norm          .10000E-03    23.549        .18922E-03** at limit **
  11  Prefactor     .10000E-03    36.994        .23723E-03** at limit **
  12  Prefactor     .10000E-03    31.857        .22012E-03** at limit **
  13  norm          .10000E-03    50.232        .27634E-03** at limit **
  14  Prefactor     .10000E-03    115.11        .36285E-03** at limit **
  15  Prefactor     15.328        27.308        .40956E-05    .30187E-05
  16  Prefactor     .10000E-03    217.04        .36285E-03** at limit **
  17  Prefactor     .10001E-03    476.32        .61193E-03** at limit **
  18  Prefactor     13.965        14.888        .11981E-04    .53029E-04
  19  Prefactor     5.8374        1036.7        .68959E-04    .18135E-05
  20  Prefactor     .10000E-03    7.2861        .10508E-03** at limit **
  21  Prefactor     18.576        106.93        .18645E-04    .29977E-04
  22  Normalizat    .16374E-01    9.9152        .45072E-03    .43778E-05
  23  Prefactor     1.0324        .63716        .34943E-04    .59787E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10000
  Prefactor  = 10000
  norm       = 10000
  Prefactor  = 10000
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.3282
  Prefactor  = 0.0001
  Prefactor  = 0.000100011
  Prefactor  = 13.965
  Prefactor  = 5.8374
  Prefactor  = 0.0001
  Prefactor  = 18.5763
  Normalizat = 0.0163736
  Prefactor  = 1.03242
 **********
 **   18 **HESSE 
 **********

 FCN=   397.8355     FROM HESSE     STATUS=OK           346 CALLS     5098 TOTAL
                     EDM=   .66E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor    10000.0        5000.0        .40743E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor    10000.0        9695.5        .36335E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm         10000.0        1044.0        .36285E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor    10000.0        6908.8        .38231E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    1896.0        .83653E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    217.19        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    448.59        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    188.35        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    29.735        .42533E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    23.549        .37844E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    36.994        .47445E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    31.857        .44025E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    50.232        .55268E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    115.11        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     15.328        27.303        .81913E-06   -1.4925    
  16  Prefactor     .10000E-03    217.04        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10001E-03    476.40        .12239E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     13.965        14.832        .23963E-05   -1.4960    
  19  Prefactor     5.8374        1035.0        .27584E-05   -1.5225    
  20  Prefactor     .10000E-03    7.2861        .21016E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     18.576        106.04        .37289E-05   -1.4846    
  22  Normalizat    .16374E-01    9.9591        .18029E-04   -1.5203    
  23  Prefactor     1.0324        .62287        .69886E-05   -.91657    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.56306e-11
Minuit parameter uncertainties:
  1  0.126835
  2  0.0191676
  3  0.000202991
  4  0.0319663
  5  0.000152672
  6  3.13909e-06
  7  0.000147515
  8  2.70924e-05
  9  8.87113e-07
  10  3.39284e-07
  11  5.14494e-07
  12  8.38091e-07
  13  1.87549e-07
  14  1.27812e-05
  15  27.3255
  16  1.60007e-05
  17  0.00454835
  18  14.8359
  19  158.321
  20  3.80456e-07
  21  89.0075
  22  0.842836
  23  0.627309
Done.

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

Extracting fit parameters...

4FGL J2139.4-4235
   Spectrum: LogParabola
298         norm:  1.000e-04  3.393e-07  1.000e-04  1.000e+04 ( 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  0.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.032e+00  6.273e-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.637e-02  8.428e-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.66e-07 ph cm-2 s-1
Energy Flux Upper Limit: 5.40e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/324075/likelihoodResults_680745601_681004801_4FGL_J2139.4-4235_daily_bin1703.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) = 397.835635153
delta logL = -0.000181278570949

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 397.83545571
delta logL = -1.83578220003e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10078E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.9030       1.0000          .0000       5.0000    
     3 'Normalizat'    .16373E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0325       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   397.8355     FROM MIGRAD    STATUS=FAILED       104 CALLS      292 TOTAL
                     EDM=   .43E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10001E-03    1669.6        .70576E-02** at limit **
   2  alpha         1.8127        3.9816        .16739        .12819E-08
   3  Normalizat    .16349E-01    .64979        .11362E-01   -.44032E-05
   4  Prefactor     1.0324        .11568        .17469E-03    .11054E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   397.8355     FROM SIMPLEX   STATUS=UNCHANGED    165 CALLS      457 TOTAL
                     EDM=   .16E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10001E-03    1669.6        .86585E-03** at limit **
   2  alpha         1.8127        3.9816        .49885E-05    .12819E-08
   3  Normalizat    .16349E-01    .64979        .15995E-04   -.44032E-05
   4  Prefactor     1.0324        .11568        .44084E-07    .11054E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   397.8355     FROM MIGRAD    STATUS=CONVERGED     30 CALLS      487 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    23.856        .95057E-03** at limit **
   2  alpha         1.8196        3.7498        .66957E-02    .50873E-07
   3  Normalizat    .16349E-01    9.7114        .45448E-03   -.57503E-05
   4  Prefactor     1.0324        .60168        .34939E-04    .11064E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100003
  alpha      = 1.81963
  Normalizat = 0.0163494
  Prefactor  = 1.03244
 **********
 **   18 **HESSE 
 **********

 FCN=   397.8355     FROM HESSE     STATUS=OK            23 CALLS      510 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    23.769        .19011E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.8196        2.9490        .13391E-02   -.27562    
   3  Normalizat    .16349E-01    9.6596        .18179E-04   -1.5204    
   4  Prefactor     1.0324        .59215        .69878E-05   -.91656    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.59101e-09
Minuit parameter uncertainties:
  1  0.000568403
  2  581.477
  3  0.673341
  4  0.595948
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/324075': 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) = 397.835453856
delta logL = 1.88824174074e-08

Extracting fit parameters...

4FGL J2139.4-4235
   Spectrum: LogParabola
298         norm:  1.000e-04  5.684e-04  1.000e-04  1.000e+04 ( 1.000e-12)
299        alpha:  1.820e+00  5.815e+02  0.000e+00  5.000e+00 ( 1.000e+00)
300         beta:  4.914e-02  0.000e+00  0.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.032e+00  5.959e-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.635e-02  6.733e-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/324075/cmap_HighResolution_680745601_681004801_4FGL_J2139.4-4235_daily_bin1703.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.40e-04', job_status='DONE', photon_flux_upper_limit='7.66e-07', time_completed='2022-08-01 01:30:13.469772', job_id='324075', GAL2='1.03', fit_tolerance='1e-08', EG2='0.02', EG='0.02', time_epoch_completed='1659342613.47', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='1.89e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.93' WHERE bin_id='1703' AND source_name='4FGL J2139.4-4235' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug  1 01:30:13 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0217>
Subject: Job 324075: <4FGL_J2139.4-4235_daily_bin1703> in cluster <slac> Done

Job <4FGL_J2139.4-4235_daily_bin1703> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Aug  1 01:20:16 2022
Job was executed on host(s) <bullet0217>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug  1 01:20:55 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Aug  1 01:20:55 2022
Terminated at Mon Aug  1 01:30:14 2022
Results reported at Mon Aug  1 01:30:14 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2139.4-4235_daily_bin1703 324.855 -42.5895 680745601 681004801 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 :                                   360.41 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             224.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   558 sec.
    Turnaround time :                            598 sec.

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

