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


Performing analysis on: 4FGL_J2139.4-4235_daily_bin1745
RA = 324.855, Dec = -42.5895
tmin = 691632001, tmax = 691891201
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='656408', job_status='RUN', time_executed='2022-12-05 01:23:30.425880', time_epoch_executed='1670232210.43' WHERE source_name='4FGL J2139.4-4235' and cadence='daily' and bin_id='1745'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/656408

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/656408/ft1_4FGL_J2139.4-4235_daily_bin1745.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/656408/ft2_4FGL_J2139.4-4235_daily_bin1745.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/656408/ft1_4FGL_J2139.4-4235_daily_bin1745.fits outfile=/scratch/kocevski/656408/ft1_filteredMKT_4FGL_J2139.4-4235_daily_bin1745.fits ra=324.855 dec=-42.5895 rad=12.0 tmin=691632001.0 tmax=691891201.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 2.38
user 2.17
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/656408/ft2_4FGL_J2139.4-4235_daily_bin1745.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/656408/ft1_filteredMKT_4FGL_J2139.4-4235_daily_bin1745.fits evtable="EVENTS" outfile="/scratch/kocevski/656408/ft1_filtered_4FGL_J2139.4-4235_daily_bin1745.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.49
user 0.34
sys 0.14

Number of photons that the gtmktime cut: 608

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/656408/ft1_filtered_4FGL_J2139.4-4235_daily_bin1745.fits" evtable="EVENTS" scfile=/scratch/kocevski/656408/ft2_4FGL_J2139.4-4235_daily_bin1745.fits sctable="SC_DATA" outfile=/scratch/kocevski/656408/ltcube_691632001_691891201_4FGL_J2139.4-4235_daily_bin1745.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/656408/ft2_4FGL_J2139.4-4235_daily_bin1745.fits
.....................!
real 13.09
user 12.69
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/656408/ft1_filtered_4FGL_J2139.4-4235_daily_bin1745.fits evtable="EVENTS" scfile=/scratch/kocevski/656408/ft2_4FGL_J2139.4-4235_daily_bin1745.fits sctable="SC_DATA" expcube=/scratch/kocevski/656408/ltcube_691632001_691891201_4FGL_J2139.4-4235_daily_bin1745.fits outfile=/scratch/kocevski/656408/expmap_691632001_691891201_4FGL_J2139.4-4235_daily_bin1745.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/656408/ltcube_691632001_691891201_4FGL_J2139.4-4235_daily_bin1745.fits
.....................!
real 192.72
user 187.13
sys 5.11

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/656408/ft1_filtered_4FGL_J2139.4-4235_daily_bin1745.fits scfile=/scratch/kocevski/656408/ft2_4FGL_J2139.4-4235_daily_bin1745.fits outfile=/scratch/kocevski/656408/cmap_691632001_691891201_4FGL_J2139.4-4235_daily_bin1745.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/656408/ft1_filtered_4FGL_J2139.4-4235_daily_bin1745.fits scfile=/scratch/kocevski/656408/ft2_4FGL_J2139.4-4235_daily_bin1745.fits outfile=/scratch/kocevski/656408/cmap_HighResolution_691632001_691891201_4FGL_J2139.4-4235_daily_bin1745.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.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/656408/ft1_filtered_4FGL_J2139.4-4235_daily_bin1745.fits evtable="EVENTS" scfile=/scratch/kocevski/656408/ft2_4FGL_J2139.4-4235_daily_bin1745.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/656408/Model_4FGL_J2139.4-4235_daily_bin1745.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/656408/ft1_filtered_4FGL_J2139.4-4235_daily_bin1745.fits.....................!
real 54.33
user 52.93
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13721E-02   1.0000          .0000       .10000E+07
     2 'norm      '    .53746E-06   1.0000          .0000       .10000E+07
     3 'Prefactor '    .50872       1.0000          .0000       .10000E+07
     4 'Prefactor '    3.3003       1.0000          .0000       .10000E+07
     5 'Prefactor '    11.348       1.0000          .0000       .10000E+07
     6 'Prefactor '    12.866       1.0000          .0000       .10000E+07
     7 'Prefactor '    .10981E-01   1.0000          .0000       .10000E+07
     8 'norm      '    24.306       1.0000          .0000       .10000E+07
     9 'Prefactor '    .14611E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    3.9945       1.0000          .0000       .10000E+07
    11 'norm      '    .23580E-01   1.0000          .0000       .10000E+07
    12 'Prefactor '    14.699       1.0000          .0000       .10000E+07
    13 'Prefactor '    1.0180       1.0000          .0000       .10000E+07
    14 'Prefactor '    .60876       1.0000          .0000       .10000E+07
    15 'Prefactor '    .84888       1.0000          .0000       .10000E+07
    16 'Prefactor '    7.0007       1.0000          .0000       .10000E+07
    17 'Prefactor '    .50523E-01   1.0000          .0000       .10000E+07
    18 'Prefactor '    .21039E-06   1.0000          .0000       .10000E+07
    19 'Prefactor '    .19714E-01   1.0000          .0000       .10000E+07
    20 'Normalizat'    1.1244       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0616       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=   6656.698     FROM MIGRAD    STATUS=CONVERGED    139 CALLS     2387 TOTAL
                     EDM=   .38E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .41078E-08    17.388       -.11450E-05** at limit **
   2  norm           .0000        1.0476        .11203E-06** at limit **
   3  Prefactor     .20590E-05    98.573        .12176E-05** at limit **
   4  Prefactor     3.2666        7.4484        .54175E-07    .32172E-02
   5  Prefactor     11.487        3.4987        .32400E-06   -.23478E-01
   6  Prefactor     13.005        9.3076        .66992E-06   -.75312E-01
   7  Prefactor     .72164E-09    14.413       -.71074E-06** at limit **
   8  norm          24.313        7.2852        .51118E-06    .17943E-01
   9  Prefactor     .55511E-10    5.5020        .13635E-06** at limit **
  10  Prefactor     4.0087        7.7788        .16970E-05    .89740E-02
  11  norm          .22204E-09    11.312        .10698E-05** at limit **
  12  Prefactor     14.672        1.1050        .19491E-07   -.39269E-02
  13  Prefactor     1.0310        12.865        .76400E-06    .17719E-04
  14  Prefactor     .33897E-05    117.93       -.32177E-05** at limit **
  15  Prefactor     .84419        .52647       -.56594E-07   -.17123E-02
  16  Prefactor     7.0489        4.9767        .23377E-06   -.14388E-02
  17  Prefactor     .55511E-10    25.207       -.27518E-07** at limit **
  18  Prefactor      .0000        1.6858       -.18946E-06** at limit **
  19  Prefactor      .0000        21.701       -.15247E-06** at limit **
  20  Normalizat    1.1239        .23729       -.66277E-05   -.69499E-04
  21  Prefactor     1.0622        .15565        .33223E-05   -.71541E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.10783e-09
  norm       = 0
  Prefactor  = 2.05896e-06
  Prefactor  = 3.26665
  Prefactor  = 11.4869
  Prefactor  = 13.0052
  Prefactor  = 7.21645e-10
  norm       = 24.3129
  Prefactor  = 5.55112e-11
  Prefactor  = 4.00865
  norm       = 2.22045e-10
  Prefactor  = 14.6722
  Prefactor  = 1.03104
  Prefactor  = 3.38973e-06
  Prefactor  = 0.844193
  Prefactor  = 7.04891
  Prefactor  = 5.55112e-11
  Prefactor  = 0
  Prefactor  = 0
  Normalizat = 1.12392
  Prefactor  = 1.0622
 **********
 **   18 **HESSE 
 **********

 FCN=   6656.698     FROM HESSE     STATUS=OK           363 CALLS     2750 TOTAL
                     EDM=   .56E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .41078E-08    17.404        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm           .0000        1.0368        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .20590E-05    98.941        .77837E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.2666        7.5429        .55705E-03   -1.5672    
   5  Prefactor     11.487        42.060        .29714E-03   -1.5640    
   6  Prefactor     13.005        43.843        .27900E-03   -1.5636    
   7  Prefactor     .72164E-09    14.232        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          24.313        7.9785        .20288E-03   -1.5609    
   9  Prefactor     .55511E-10    5.5063        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.0087        7.8054        .50438E-03   -1.5668    
  11  norm          .22204E-09    5.1856        .61727E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     14.672        30.063        .26098E-03   -1.5631    
  13  Prefactor     1.0310        13.016        .12865E-02   -1.5688    
  14  Prefactor     .33897E-05    121.40        .68447E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .84419        13.411        .49361E-03   -1.5690    
  16  Prefactor     7.0489        4.9641        .37892E-03   -1.5655    
  17  Prefactor     .55511E-10    25.046        .15520E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor      .0000        1.6854        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor      .0000        21.256        .17056E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.1239        .21355        .67631E-01   -.88987    
  21  Prefactor     1.0622        .13469        .39275E-01   -.90684    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.57685e-06
Minuit parameter uncertainties:
  1  0.000536082
  2  3.76595e-06
  3  0.0285462
  4  7.54289
  5  42.0613
  6  43.8442
  7  0.000203139
  8  7.97852
  9  4.19202e-05
  10  7.80538
  11  6.63351e-05
  12  30.0636
  13  7.32656
  14  0.0405721
  15  6.72953
  16  4.96406
  17  7.34314e-05
  18  5.91613e-06
  19  3.28996e-06
  20  0.21371
  21  0.134734
Done.

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

Extracting fit parameters...

4FGL J2139.4-4235
   Spectrum: LogParabola
298         norm:  2.431e+01  7.979e+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.062e+00  1.347e-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.124e+00  2.137e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 48.95
Ra Dec: 324.855 -42.590
Photon Index (Fixed Index): 1.93 +/- 0.00
Photon Flux (Fixed Index): 1.47e-07 +/- 4.84e-08
Energy Flux (Fixed Index): 1.04e-04 +/- 3.41e-05

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) = 6654.94934621
delta logL = 1.74839824471

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6654.65550014
delta logL = 2.04224431327

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    17.431       1.0000          .0000       .10000E+07
     2 'alpha     '    1.3628       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1979       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0441       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=   6654.655     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      219 TOTAL
                     EDM=   .25E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          17.424        6.6296        .23962E-03   -.91133E-03
   2  alpha         1.3625        .21266        .15728       -.42611E-04
   3  Normalizat    1.1980        .19791        .65916E-01    .52305E-05
   4  Prefactor     1.0441        .13334        .40267E-01   -.96303E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 17.4236
  alpha      = 1.36252
  Normalizat = 1.19797
  Prefactor  = 1.04407
 **********
 **   18 **HESSE 
 **********

 FCN=   6654.655     FROM HESSE     STATUS=OK            33 CALLS      252 TOTAL
                     EDM=   .66E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          17.424        8.3003        .95846E-05   -1.5624    
   2  alpha         1.3625        .27306        .67821E-02   -.47236    
   3  Normalizat    1.1980        .22851        .29160E-03   -.86666    
   4  Prefactor     1.0441        .15396        .20824E-03   -.91275    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.63927e-10
Minuit parameter uncertainties:
  1  8.3003
  2  0.273749
  3  0.228698
  4  0.154022
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/656408': 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) = 6654.65549936
delta logL = 2.04224509053

Extracting fit parameters...

4FGL J2139.4-4235
   Spectrum: LogParabola
298         norm:  1.742e+01  8.300e+00  0.000e+00  1.000e+06 ( 1.000e-12)
299        alpha:  1.363e+00  2.737e-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.044e+00  1.540e-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.198e+00  2.287e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 53.24
Ra Dec: 324.855 -42.590
Photon Index (Free Index): 1.36 +/- 0.27
Photon Flux (Free Index): 7.21e-08 +/- 3.67e-08
Energy Flux (Free Index): 2.34e-04 +/- 1.30e-04

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/656408/cmap_HighResolution_691632001_691891201_4FGL_J2139.4-4235_daily_bin1745.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.47e-07', energy_flux2='2.34e-04', photon_flux_error='4.84e-08', dlogl='2.04e+00', energy_flux='1.04e-04', photon_flux2='7.21e-08', job_status='DONE', time_completed='2022-12-05 01:33:20.076125', photon_index_error2='0.27', photon_index2='1.36', ts='48.95', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', energy_flux_error2='1.30e-04', EG='1.12', time_epoch_completed='1670232800.08', return_code='0', job_id='656408', GAL2='1.04', EG2='1.20', return_code2='0', energy_flux_error='3.41e-05', photon_flux_error2='3.67e-08', ts2='53.24', photon_index='1.93' WHERE bin_id='1745' AND source_name='4FGL J2139.4-4235' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Dec  5 01:33:20 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0231>
Subject: Job 656408: <4FGL_J2139.4-4235_daily_bin1745> in cluster <slac> Done

Job <4FGL_J2139.4-4235_daily_bin1745> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Dec  5 01:20:16 2022
Job was executed on host(s) <bullet0231>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Dec  5 01:20:18 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Dec  5 01:20:18 2022
Terminated at Mon Dec  5 01:33:20 2022
Results reported at Mon Dec  5 01:33:20 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2139.4-4235_daily_bin1745 324.855 -42.5895 691632001 691891201 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 :                                   592.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             279.40 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   782 sec.
    Turnaround time :                            784 sec.

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

