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


Performing analysis on: 4FGL_J2139.4-4235_daily_bin1740
RA = 324.855, Dec = -42.5895
tmin = 690336001, tmax = 690595201
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='835892', job_status='RUN', time_executed='2022-11-20 00:48:47.525928', time_epoch_executed='1668934127.53' WHERE source_name='4FGL J2139.4-4235' and cadence='daily' and bin_id='1740'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/835892

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/835892/ft1_4FGL_J2139.4-4235_daily_bin1740.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/835892/ft2_4FGL_J2139.4-4235_daily_bin1740.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/835892/ft1_4FGL_J2139.4-4235_daily_bin1740.fits outfile=/scratch/kocevski/835892/ft1_filteredMKT_4FGL_J2139.4-4235_daily_bin1740.fits ra=324.855 dec=-42.5895 rad=12.0 tmin=690336001.0 tmax=690595201.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.00
user 2.77
sys 0.20

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

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

Number of photons that the gtmktime cut: 1059

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/835892/ft1_filtered_4FGL_J2139.4-4235_daily_bin1740.fits" evtable="EVENTS" scfile=/scratch/kocevski/835892/ft2_4FGL_J2139.4-4235_daily_bin1740.fits sctable="SC_DATA" outfile=/scratch/kocevski/835892/ltcube_690336001_690595201_4FGL_J2139.4-4235_daily_bin1740.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/835892/ft2_4FGL_J2139.4-4235_daily_bin1740.fits
.....................!
real 14.39
user 13.98
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/835892/ft1_filtered_4FGL_J2139.4-4235_daily_bin1740.fits evtable="EVENTS" scfile=/scratch/kocevski/835892/ft2_4FGL_J2139.4-4235_daily_bin1740.fits sctable="SC_DATA" expcube=/scratch/kocevski/835892/ltcube_690336001_690595201_4FGL_J2139.4-4235_daily_bin1740.fits outfile=/scratch/kocevski/835892/expmap_690336001_690595201_4FGL_J2139.4-4235_daily_bin1740.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/835892/ltcube_690336001_690595201_4FGL_J2139.4-4235_daily_bin1740.fits
.....................!
real 191.92
user 185.54
sys 5.77

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/835892/ft1_filtered_4FGL_J2139.4-4235_daily_bin1740.fits scfile=/scratch/kocevski/835892/ft2_4FGL_J2139.4-4235_daily_bin1740.fits outfile=/scratch/kocevski/835892/cmap_690336001_690595201_4FGL_J2139.4-4235_daily_bin1740.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/835892/ft1_filtered_4FGL_J2139.4-4235_daily_bin1740.fits scfile=/scratch/kocevski/835892/ft2_4FGL_J2139.4-4235_daily_bin1740.fits outfile=/scratch/kocevski/835892/cmap_HighResolution_690336001_690595201_4FGL_J2139.4-4235_daily_bin1740.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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/835892/ft1_filtered_4FGL_J2139.4-4235_daily_bin1740.fits evtable="EVENTS" scfile=/scratch/kocevski/835892/ft2_4FGL_J2139.4-4235_daily_bin1740.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/835892/Model_4FGL_J2139.4-4235_daily_bin1740.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/835892/ft1_filtered_4FGL_J2139.4-4235_daily_bin1740.fits.....................!
real 79.01
user 77.57
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10372E-02   1.0000          .0000       .10000E+07
     2 'norm      '    2.3250       1.0000          .0000       .10000E+07
     3 'Prefactor '    21.010       1.0000          .0000       .10000E+07
     4 'Prefactor '    .30132E-04   1.0000          .0000       .10000E+07
     5 'Prefactor '    .12542E-01   1.0000          .0000       .10000E+07
     6 'Prefactor '    .71541       1.0000          .0000       .10000E+07
     7 'Prefactor '    1.5327       1.0000          .0000       .10000E+07
     8 'norm      '    4.9804       1.0000          .0000       .10000E+07
     9 'Prefactor '    .75469E-04   1.0000          .0000       .10000E+07
    10 'Prefactor '    .48258E-03   1.0000          .0000       .10000E+07
    11 'norm      '    .10619E-06   1.0000          .0000       .10000E+07
    12 'Prefactor '    40.084       1.0000          .0000       .10000E+07
    13 'Prefactor '    1.6468       1.0000          .0000       .10000E+07
    14 'Prefactor '    .55026       1.0000          .0000       .10000E+07
    15 'Prefactor '    .87778E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    .72164E-09   1.0000          .0000       .10000E+07
    17 'Prefactor '    .86052E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    4.9990       1.0000          .0000       .10000E+07
    19 'Prefactor '    .42858E-03   1.0000          .0000       .10000E+07
    20 'Normalizat'    .82073       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0860       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=   11376.13     FROM MIGRAD    STATUS=CONVERGED    171 CALLS     1683 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .43299E-08    13.917       -.49815E-07** at limit **
   2  norm          2.3248        1.2878        .88623E-08    .70668E-03
   3  Prefactor     20.985        2.3582       -.19887E-07   -.33672E-01
   4  Prefactor      .0000        3.3560        .13967E-06** at limit **
   5  Prefactor     .16154E-07    25.762        .91070E-07** at limit **
   6  Prefactor     .36892        291.05       -.21473E-05    .37647E-02
   7  Prefactor     1.5330        2.2696       -.80737E-08   -.50145E-03
   8  norm          4.9780        2.9827        .10592E-07    .34276E-03
   9  Prefactor      .0000        2.4672       -.81272E-07** at limit **
  10  Prefactor     .28866E-08    11.416        .16054E-07** at limit **
  11  norm          .83267E-09    7.2544       -.37492E-07** at limit **
  12  Prefactor     40.658        10.471        .59303E-07    .11562    
  13  Prefactor     1.6087        5.9905       -.15810E-06   -.24951E-02
  14  Prefactor     .23678E-05    99.172        .12656E-06** at limit **
  15  Prefactor      .0000        5.5511       -.21049E-07** at limit **
  16  Prefactor      .0000        .71419        .29057E-07** at limit **
  17  Prefactor     .28311E-08    7.6667       -.48040E-07** at limit **
  18  Prefactor     4.9896        4.0028        .52871E-07    .99878E-03
  19  Prefactor     .26090E-08    7.1448        .12482E-06** at limit **
  20  Normalizat    .82085        .15239       -.11614E-05   -.59250E-04
  21  Prefactor     1.0860        .10600        .63229E-06   -.31884E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.32987e-09
  norm       = 2.32483
  Prefactor  = 20.9847
  Prefactor  = 0
  Prefactor  = 1.61537e-08
  Prefactor  = 0.368919
  Prefactor  = 1.53297
  norm       = 4.97803
  Prefactor  = 0
  Prefactor  = 2.88658e-09
  norm       = 8.32667e-10
  Prefactor  = 40.6585
  Prefactor  = 1.60872
  Prefactor  = 2.36777e-06
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 2.83107e-09
  Prefactor  = 4.98963
  Prefactor  = 2.60902e-09
  Normalizat = 0.820848
  Prefactor  = 1.08597
 **********
 **   18 **HESSE 
 **********

 FCN=   11376.13     FROM HESSE     STATUS=OK           361 CALLS     2044 TOTAL
                     EDM=   .12E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .43299E-08    13.974        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.3248        1.2955        .67237E-03   -1.5677    
   3  Prefactor     20.985        18.874        .21823E-03   -1.5616    
   4  Prefactor      .0000        3.3539        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .16154E-07    25.801        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .36892        20.579        .10554E-01   -1.5696    
   7  Prefactor     1.5330        2.3110        .86157E-03   -1.5683    
   8  norm          4.9780        2.9854        .45039E-03   -1.5663    
   9  Prefactor      .0000        2.4714        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .28866E-08    11.255        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .83267E-09    7.1178        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     40.658        34.469        .15796E-03   -1.5580    
  13  Prefactor     1.6087        7.1451        .82266E-03   -1.5683    
  14  Prefactor     .23678E-05    105.68        .73806E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor      .0000        5.4681        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor      .0000        .71571        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .28311E-08    7.6997        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.9896        4.0156        .44954E-03   -1.5663    
  19  Prefactor     .26090E-08    7.1861        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .82085        .13560        .66022E-01   -.99300    
  21  Prefactor     1.0860        .93229E-01    .38146E-01   -.89916    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.24153e-06
Minuit parameter uncertainties:
  1  0.000490897
  2  1.29549
  3  18.8741
  4  1.82556e-05
  5  0.00129022
  6  5.51076
  7  2.31099
  8  2.98543
  9  8.7311e-06
  10  0.000359926
  11  0.000155054
  12  34.469
  13  6.78073
  14  0.0316371
  15  1.5609e-05
  16  1.82482e-06
  17  0.00029524
  18  4.01559
  19  0.000273176
  20  0.135658
  21  0.093243
Done.

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

Extracting fit parameters...

4FGL J2139.4-4235
   Spectrum: LogParabola
298         norm:  4.978e+00  2.985e+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.086e+00  9.324e-02  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:  8.208e-01  1.357e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.91
Ra Dec: 324.855 -42.590
Photon Index (Fixed Index): 1.93 +/- 0.00
Photon Flux (Fixed Index): 3.02e-08 +/- 1.81e-08
Energy Flux (Fixed Index): 2.13e-05 +/- 1.28e-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) = 11376.1252296
delta logL = 0.00314271506249

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11376.1248515
delta logL = 0.00352075412229

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.0390       1.0000          .0000       .10000E+07
     2 'alpha     '    1.9850       1.0000          .0000       5.0000    
     3 'Normalizat'    .81849       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0866       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.

 FCN=   11376.12     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      237 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.0389        2.9627        .13500E-04    .45930E-02
   2  alpha         1.9849        .63697        .16634E-01    .36294E-04
   3  Normalizat    .81849        .14874        .29245E-03   -.67408E-04
   4  Prefactor     1.0866        .10536        .18432E-03    .80481E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.03893
  alpha      = 1.98491
  Normalizat = 0.818488
  Prefactor  = 1.08655
 **********
 **   18 **HESSE 
 **********

 FCN=   11376.12     FROM HESSE     STATUS=OK            25 CALLS      262 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.0389        2.9837        .53999E-06   -1.5663    
   2  alpha         1.9849        .64101        .66535E-03   -.20752    
   3  Normalizat    .81849        .14883        .11698E-04   -.99387    
   4  Prefactor     1.0866        .10541        .36863E-04   -.89898    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.84617e-10
Minuit parameter uncertainties:
  1  2.98373
  2  0.648583
  3  0.148908
  4  0.105432
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/835892': 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) = 11376.1248515
delta logL = 0.00352078129254

Extracting fit parameters...

4FGL J2139.4-4235
   Spectrum: LogParabola
298         norm:  5.039e+00  2.984e+00  0.000e+00  1.000e+06 ( 1.000e-12)
299        alpha:  1.985e+00  6.486e-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.087e+00  1.054e-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:  8.185e-01  1.489e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.92
Ra Dec: 324.855 -42.590
Photon Index (Free Index): 1.98 +/- 0.65
Photon Flux (Free Index): 3.24e-08 +/- 3.26e-08
Energy Flux (Free Index): 2.03e-05 +/- 1.57e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/835892/cmap_HighResolution_690336001_690595201_4FGL_J2139.4-4235_daily_bin1740.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.02e-08', energy_flux2='2.03e-05', photon_flux_error='1.81e-08', dlogl='3.52e-03', energy_flux='2.13e-05', photon_flux2='3.24e-08', job_status='DONE', time_completed='2022-11-20 01:00:43.310684', photon_index_error2='0.65', photon_index2='1.98', ts='9.91', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', energy_flux_error2='1.57e-05', EG='0.82', time_epoch_completed='1668934843.31', return_code='0', job_id='835892', GAL2='1.09', EG2='0.82', return_code2='0', energy_flux_error='1.28e-05', photon_flux_error2='3.26e-08', ts2='9.92', photon_index='1.93' WHERE bin_id='1740' AND source_name='4FGL J2139.4-4235' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Nov 20 01:00:43 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0258>
Subject: Job 835892: <4FGL_J2139.4-4235_daily_bin1740> in cluster <slac> Done

Job <4FGL_J2139.4-4235_daily_bin1740> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Nov 20 00:45:33 2022
Job was executed on host(s) <bullet0258>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Nov 20 00:48:19 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Nov 20 00:48:19 2022
Terminated at Sun Nov 20 01:00:44 2022
Results reported at Sun Nov 20 01:00:44 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2139.4-4235_daily_bin1740 324.855 -42.5895 690336001 690595201 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 :                                   713.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             375.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   744 sec.
    Turnaround time :                            911 sec.

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

