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


Performing analysis on: 4FGL_J2139.4-4235_daily_bin1751
RA = 324.855, Dec = -42.5895
tmin = 693187201, tmax = 693446401
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='87749', job_status='RUN', time_executed='2022-12-23 01:20:45.620200', time_epoch_executed='1671787245.62' WHERE source_name='4FGL J2139.4-4235' and cadence='daily' and bin_id='1751'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/87749

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/87749/ft1_4FGL_J2139.4-4235_daily_bin1751.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/87749/ft2_4FGL_J2139.4-4235_daily_bin1751.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/87749/ft1_4FGL_J2139.4-4235_daily_bin1751.fits outfile=/scratch/kocevski/87749/ft1_filteredMKT_4FGL_J2139.4-4235_daily_bin1751.fits ra=324.855 dec=-42.5895 rad=12.0 tmin=693187201.0 tmax=693446401.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.62
user 3.41
sys 0.20

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

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

Number of photons that the gtmktime cut: 642

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/87749/ft1_filtered_4FGL_J2139.4-4235_daily_bin1751.fits" evtable="EVENTS" scfile=/scratch/kocevski/87749/ft2_4FGL_J2139.4-4235_daily_bin1751.fits sctable="SC_DATA" outfile=/scratch/kocevski/87749/ltcube_693187201_693446401_4FGL_J2139.4-4235_daily_bin1751.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/87749/ft2_4FGL_J2139.4-4235_daily_bin1751.fits
.....................!
real 11.92
user 11.56
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/87749/ft1_filtered_4FGL_J2139.4-4235_daily_bin1751.fits evtable="EVENTS" scfile=/scratch/kocevski/87749/ft2_4FGL_J2139.4-4235_daily_bin1751.fits sctable="SC_DATA" expcube=/scratch/kocevski/87749/ltcube_693187201_693446401_4FGL_J2139.4-4235_daily_bin1751.fits outfile=/scratch/kocevski/87749/expmap_693187201_693446401_4FGL_J2139.4-4235_daily_bin1751.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/87749/ltcube_693187201_693446401_4FGL_J2139.4-4235_daily_bin1751.fits
.....................!
real 189.78
user 185.19
sys 4.23

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/87749/ft1_filtered_4FGL_J2139.4-4235_daily_bin1751.fits scfile=/scratch/kocevski/87749/ft2_4FGL_J2139.4-4235_daily_bin1751.fits outfile=/scratch/kocevski/87749/cmap_693187201_693446401_4FGL_J2139.4-4235_daily_bin1751.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.35
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/87749/ft1_filtered_4FGL_J2139.4-4235_daily_bin1751.fits scfile=/scratch/kocevski/87749/ft2_4FGL_J2139.4-4235_daily_bin1751.fits outfile=/scratch/kocevski/87749/cmap_HighResolution_693187201_693446401_4FGL_J2139.4-4235_daily_bin1751.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.54
user 0.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.4402       1.0000          .0000       .10000E+07
     2 'norm      '    .44123       1.0000          .0000       .10000E+07
     3 'Prefactor '    11.542       1.0000          .0000       .10000E+07
     4 'Prefactor '    .66173       1.0000          .0000       .10000E+07
     5 'Prefactor '    .49205E-04   1.0000          .0000       .10000E+07
     6 'Prefactor '    .37542E-06   1.0000          .0000       .10000E+07
     7 'Prefactor '    .15432E-07   1.0000          .0000       .10000E+07
     8 'norm      '    3.3241       1.0000          .0000       .10000E+07
     9 'Prefactor '    .41078E-08   1.0000          .0000       .10000E+07
    10 'Prefactor '    4.1125       1.0000          .0000       .10000E+07
    11 'norm      '    6.4630       1.0000          .0000       .10000E+07
    12 'Prefactor '    4.0151       1.0000          .0000       .10000E+07
    13 'Prefactor '    .18485E-07   1.0000          .0000       .10000E+07
    14 'Prefactor '    113.67       1.0000          .0000       .10000E+07
    15 'Prefactor '    .93814E-08   1.0000          .0000       .10000E+07
    16 'Prefactor '    .96539       1.0000          .0000       .10000E+07
    17 'Prefactor '    7.3362       1.0000          .0000       .10000E+07
    18 'Prefactor '    .12241E-04   1.0000          .0000       .10000E+07
    19 'Prefactor '    1.1619       1.0000          .0000       .10000E+07
    20 'Normalizat'    .99952       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0465       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.

 FCN=   6931.344     FROM MIGRAD    STATUS=CONVERGED    518 CALLS     2337 TOTAL
                     EDM=   .77E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.1928        255.25        .11048E-06   -.49090E-04
   2  norm          .44109        1.0566        .65928E-07    .19765E-01
   3  Prefactor     11.536        25.728        .69360E-07    .19318E-04
   4  Prefactor     .66106        13.847        .36137E-07    .13033E-02
   5  Prefactor     .27756E-09    37.478        .49201E-07** at limit **
   6  Prefactor      .0000        17.433        .67645E-09** at limit **
   7  Prefactor     .55511E-10    3.0762        .17054E-07** at limit **
   8  norm          3.3236        3.3511        .17813E-07    .30502E-02
   9  Prefactor      .0000        5.0303       -.66391E-08** at limit **
  10  Prefactor     4.1135        9.1126        .47503E-07    .65994E-03
  11  norm          6.4631        5.3530        .35717E-08    .12710E-03
  12  Prefactor     4.0073        27.078        .17740E-07    .18445E-03
  13  Prefactor     .33307E-09    6.5773       -.47095E-07** at limit **
  14  Prefactor     113.60        85.605        .97717E-07    .14863E-03
  15  Prefactor      .0000        4.3501       -.22067E-08** at limit **
  16  Prefactor     .96549        3.9025        .48669E-06   -.27844E-02
  17  Prefactor     7.3340        22.419       -.88250E-07   -.33570E-03
  18  Prefactor     .38858E-09    18.047       -.51298E-07** at limit **
  19  Prefactor     1.1361        64.306       -.81923E-07   -.75060E-03
  20  Normalizat    .99929        .19193       -.23345E-05    .37093E-03
  21  Prefactor     1.0466        .12729        .10019E-05    .47302E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.1928
  norm       = 0.441085
  Prefactor  = 11.5357
  Prefactor  = 0.661063
  Prefactor  = 2.77556e-10
  Prefactor  = 0
  Prefactor  = 5.55112e-11
  norm       = 3.32363
  Prefactor  = 0
  Prefactor  = 4.11354
  norm       = 6.46307
  Prefactor  = 4.00727
  Prefactor  = 3.33067e-10
  Prefactor  = 113.596
  Prefactor  = 0
  Prefactor  = 0.965494
  Prefactor  = 7.33401
  Prefactor  = 3.88578e-10
  Prefactor  = 1.13609
  Normalizat = 0.999293
  Prefactor  = 1.04664
 **********
 **   18 **HESSE 
 **********

 FCN=   6931.344     FROM HESSE     STATUS=OK           319 CALLS     2656 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.1928        255.95        .21802E-04   -1.5672    
   2  norm          .44109        .96888        .13162E-03   -1.5695    
   3  Prefactor     11.536        25.759        .11785E-04   -1.5640    
   4  Prefactor     .66106        13.877        .25548E-04   -1.5692    
   5  Prefactor     .27756E-09    37.680        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        17.445        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .55511E-10    3.0999        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.3236        3.3459        .14777E-04   -1.5672    
   9  Prefactor      .0000        5.0401        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.1135        9.0919        .19874E-04   -1.5667    
  11  norm          6.4631        5.3525        .15782E-04   -1.5657    
  12  Prefactor     4.0073        27.000        .20122E-04   -1.5668    
  13  Prefactor     .33307E-09    6.6172        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     113.60        85.774        .37520E-05   -1.5495    
  15  Prefactor      .0000        4.3572        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .96549        3.8851        .85072E-04   -1.5688    
  17  Prefactor     7.3340        22.396        .14803E-04   -1.5654    
  18  Prefactor     .38858E-09    18.689        .16847E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.1361        67.092        .42719E-04   -1.5687    
  20  Normalizat    .99929        .21702        .28006E-03   -.93054    
  21  Prefactor     1.0466        .14536        .19185E-03   -.91191    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.65356e-09
Minuit parameter uncertainties:
  1  57.1753
  2  0.968876
  3  25.7597
  4  6.05757
  5  0.000208813
  6  2.05343e-06
  7  2.36468e-05
  8  3.34593
  9  3.28151e-06
  10  9.09194
  11  5.35254
  12  20.8037
  13  9.42787e-05
  14  85.775
  15  8.93464e-06
  16  3.87353
  17  22.3967
  18  0.000165984
  19  17.4613
  20  0.217214
  21  0.145411
Done.

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

Extracting fit parameters...

4FGL J2139.4-4235
   Spectrum: LogParabola
298         norm:  3.324e+00  3.346e+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.047e+00  1.454e-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:  9.993e-01  2.172e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.06
Ra Dec: 324.855 -42.590
Photon Index (Fixed Index): 1.93 +/- 0.00
Photon Flux (Fixed Index): 2.01e-08 +/- 2.03e-08
Energy Flux (Fixed Index): 1.42e-05 +/- 1.43e-05

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

Saving results to:
/scratch/kocevski/87749/likelihoodResults_693187201_693446401_4FGL_J2139.4-4235_daily_bin1751.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) = 6930.97017817
delta logL = 0.373540285118

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6930.96566207
delta logL = 0.378056386123

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.7168       1.0000          .0000       .10000E+07
     2 'alpha     '    2.6513       1.0000          .0000       5.0000    
     3 'Normalizat'    .97315       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0555       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=   6930.966     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      292 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.7165        3.3705        .10730E-04    .19379E-02
   2  alpha         2.6514        .96322        .15029E-01    .14855E-04
   3  Normalizat    .97316        .20398        .28331E-03   -.25481E-03
   4  Prefactor     1.0556        .14103        .19107E-03   -.63111E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.71651
  alpha      = 2.65137
  Normalizat = 0.973156
  Prefactor  = 1.0556
 **********
 **   18 **HESSE 
 **********

 FCN=   6930.966     FROM HESSE     STATUS=OK            25 CALLS      317 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.7165        3.0981        .42920E-06   -1.5675    
   2  alpha         2.6514        .88791        .60118E-03    .60587E-01
   3  Normalizat    .97316        .20366        .11332E-04   -.93935    
   4  Prefactor     1.0556        .14095        .38215E-04   -.90898    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.90827e-10
Minuit parameter uncertainties:
  1  3.09808
  2  0.907802
  3  0.203824
  4  0.140996
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/87749': 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) = 6930.96566178
delta logL = 0.378056674596

Extracting fit parameters...

4FGL J2139.4-4235
   Spectrum: LogParabola
298         norm:  2.717e+00  3.098e+00  0.000e+00  1.000e+06 ( 1.000e-12)
299        alpha:  2.651e+00  9.078e-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.056e+00  1.410e-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:  9.732e-01  2.038e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.84
Ra Dec: 324.855 -42.590
Photon Index (Free Index): 2.65 +/- 0.91
Photon Flux (Free Index): 4.26e-08 +/- 4.24e-08
Energy Flux (Free Index): 1.10e-05 +/- 9.09e-06

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/87749/cmap_HighResolution_693187201_693446401_4FGL_J2139.4-4235_daily_bin1751.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.13e-05', comment='SUCCESS', photon_flux='2.01e-08', energy_flux2='1.10e-05', photon_flux_error='2.03e-08', dlogl='3.78e-01', energy_flux='1.42e-05', photon_flux2='4.26e-08', job_status='DONE', time_completed='2022-12-23 01:31:22.628537', photon_index_error2='0.91', photon_index2='2.65', ts='2.06', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', photon_flux_upper_limit='7.28e-08', energy_flux_error2='9.09e-06', EG='1.00', time_epoch_completed='1671787882.63', return_code='0', job_id='87749', GAL2='1.06', EG2='0.97', return_code2='0', energy_flux_error='1.43e-05', photon_flux_error2='4.24e-08', ts2='2.84', photon_index='1.93' WHERE bin_id='1751' AND source_name='4FGL J2139.4-4235' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Dec 23 01:31:22 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0011>
Subject: Job 87749: <4FGL_J2139.4-4235_daily_bin1751> in cluster <slac> Done

Job <4FGL_J2139.4-4235_daily_bin1751> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Dec 23 01:20:14 2022
Job was executed on host(s) <bullet0011>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Dec 23 01:20:15 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Dec 23 01:20:15 2022
Terminated at Fri Dec 23 01:31:23 2022
Results reported at Fri Dec 23 01:31:23 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2139.4-4235_daily_bin1751 324.855 -42.5895 693187201 693446401 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 :                                   639.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             332.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   667 sec.
    Turnaround time :                            669 sec.

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

