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


Performing analysis on: 4FGL_J2139.4-4235_daily_bin1746
RA = 324.855, Dec = -42.5895
tmin = 691891201, tmax = 692150401
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='740505', job_status='RUN', time_executed='2022-12-08 01:48:14.316522', time_epoch_executed='1670492894.32' WHERE source_name='4FGL J2139.4-4235' and cadence='daily' and bin_id='1746'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/740505

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/740505/ft1_4FGL_J2139.4-4235_daily_bin1746.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/740505/ft2_4FGL_J2139.4-4235_daily_bin1746.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/740505/ft1_4FGL_J2139.4-4235_daily_bin1746.fits outfile=/scratch/kocevski/740505/ft1_filteredMKT_4FGL_J2139.4-4235_daily_bin1746.fits ra=324.855 dec=-42.5895 rad=12.0 tmin=691891201.0 tmax=692150401.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 4.84
user 4.48
sys 0.32

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

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

Number of photons that the gtmktime cut: 491

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/740505/ft1_filtered_4FGL_J2139.4-4235_daily_bin1746.fits" evtable="EVENTS" scfile=/scratch/kocevski/740505/ft2_4FGL_J2139.4-4235_daily_bin1746.fits sctable="SC_DATA" outfile=/scratch/kocevski/740505/ltcube_691891201_692150401_4FGL_J2139.4-4235_daily_bin1746.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/740505/ft2_4FGL_J2139.4-4235_daily_bin1746.fits
.....................!
real 13.08
user 12.65
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/740505/ft1_filtered_4FGL_J2139.4-4235_daily_bin1746.fits evtable="EVENTS" scfile=/scratch/kocevski/740505/ft2_4FGL_J2139.4-4235_daily_bin1746.fits sctable="SC_DATA" expcube=/scratch/kocevski/740505/ltcube_691891201_692150401_4FGL_J2139.4-4235_daily_bin1746.fits outfile=/scratch/kocevski/740505/expmap_691891201_692150401_4FGL_J2139.4-4235_daily_bin1746.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/740505/ltcube_691891201_692150401_4FGL_J2139.4-4235_daily_bin1746.fits
.....................!
real 190.83
user 185.92
sys 4.43

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/740505/ft1_filtered_4FGL_J2139.4-4235_daily_bin1746.fits scfile=/scratch/kocevski/740505/ft2_4FGL_J2139.4-4235_daily_bin1746.fits outfile=/scratch/kocevski/740505/cmap_691891201_692150401_4FGL_J2139.4-4235_daily_bin1746.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.57
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/740505/ft1_filtered_4FGL_J2139.4-4235_daily_bin1746.fits scfile=/scratch/kocevski/740505/ft2_4FGL_J2139.4-4235_daily_bin1746.fits outfile=/scratch/kocevski/740505/cmap_HighResolution_691891201_692150401_4FGL_J2139.4-4235_daily_bin1746.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/740505/ft1_filtered_4FGL_J2139.4-4235_daily_bin1746.fits evtable="EVENTS" scfile=/scratch/kocevski/740505/ft2_4FGL_J2139.4-4235_daily_bin1746.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/740505/Model_4FGL_J2139.4-4235_daily_bin1746.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/740505/ft1_filtered_4FGL_J2139.4-4235_daily_bin1746.fits.....................!
real 48.62
user 47.18
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    61.758       1.0000          .0000       .10000E+07
     2 'norm      '    5.5595       1.0000          .0000       .10000E+07
     3 'Prefactor '    21.415       1.0000          .0000       .10000E+07
     4 'Prefactor '    .56512E-02   1.0000          .0000       .10000E+07
     5 'Prefactor '    120.62       1.0000          .0000       .10000E+07
     6 'Prefactor '    .10491E-01   1.0000          .0000       .10000E+07
     7 'Prefactor '    1.5372       1.0000          .0000       .10000E+07
     8 'norm      '    27.824       1.0000          .0000       .10000E+07
     9 'Prefactor '    .33197E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    11.707       1.0000          .0000       .10000E+07
    11 'norm      '    .37145E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    .44128E-01   1.0000          .0000       .10000E+07
    13 'Prefactor '    .28083E-02   1.0000          .0000       .10000E+07
    14 'Prefactor '    5.0406       1.0000          .0000       .10000E+07
    15 'Prefactor '    4.0866       1.0000          .0000       .10000E+07
    16 'Prefactor '    .20872E-07   1.0000          .0000       .10000E+07
    17 'Prefactor '    41.227       1.0000          .0000       .10000E+07
    18 'Prefactor '    .38054E-02   1.0000          .0000       .10000E+07
    19 'Prefactor '    .31092E-06   1.0000          .0000       .10000E+07
    20 'Normalizat'    .86862       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.2429       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=   5532.502     FROM MIGRAD    STATUS=CONVERGED    202 CALLS     1668 TOTAL
                     EDM=   .31E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     63.556        43.200        .95493E-06    .21476E-02
   2  norm          5.5782        2.8640        .13942E-06   -.11669E-03
   3  Prefactor     24.151        42.410        .12680E-05   -.31745E-04
   4  Prefactor      .0000        13.003        .10438E-05** at limit **
   5  Prefactor     126.86        63.626        .91523E-06   -.23672E-03
   6  Prefactor      .0000        22.550        .40403E-06** at limit **
   7  Prefactor     1.6209        5.3606        .49806E-06    .10748E-05
   8  norm          27.497        9.8747        .82774E-07   -.69232E-04
   9  Prefactor      .0000        8.4686        .33567E-06** at limit **
  10  Prefactor     11.634        10.421       -.19992E-07    .30187E-04
  11  norm           .0000        3.7405       -.16328E-07** at limit **
  12  Prefactor      .0000        114.69        .12137E-05** at limit **
  13  Prefactor      .0000        15.281       -.94384E-06** at limit **
  14  Prefactor     7.8226        302.96        .54089E-05   -.27537E-03
  15  Prefactor     4.2621        11.791        .10344E-05   -.14715E-04
  16  Prefactor      .0000        2.4327        .55917E-06** at limit **
  17  Prefactor     43.045        46.301       -.23794E-05   -.61548E-04
  18  Prefactor      .0000        5.6352        .92774E-07** at limit **
  19  Prefactor      .0000        12.611        .94969E-07** at limit **
  20  Normalizat    .86184        .29264       -.27615E-04    .12802E-04
  21  Prefactor     1.2417        .18739        .73842E-05    .12309E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 63.5562
  norm       = 5.57818
  Prefactor  = 24.1515
  Prefactor  = 0
  Prefactor  = 126.856
  Prefactor  = 0
  Prefactor  = 1.62087
  norm       = 27.4969
  Prefactor  = 0
  Prefactor  = 11.6344
  norm       = 0
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 7.82257
  Prefactor  = 4.26208
  Prefactor  = 0
  Prefactor  = 43.0454
  Prefactor  = 0
  Prefactor  = 0
  Normalizat = 0.861841
  Prefactor  = 1.24168
 **********
 **   18 **HESSE 
 **********

 FCN=   5532.502     FROM HESSE     STATUS=OK           361 CALLS     2029 TOTAL
                     EDM=   .29E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     63.556        90.897        .12726E-03   -1.5549    
   2  norm          5.5782        2.8682        .42585E-03   -1.5661    
   3  Prefactor     24.151        42.238        .21615E-03   -1.5610    
   4  Prefactor      .0000        12.937        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     126.86        63.579        .91058E-04   -1.5483    
   6  Prefactor      .0000        22.533        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.6209        5.3921        .85993E-03   -1.5683    
   8  norm          27.497        9.8772        .18961E-03   -1.5603    
   9  Prefactor      .0000        8.4696        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     11.634        10.417        .29254E-03   -1.5640    
  11  norm           .0000        3.7547        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor      .0000        111.01        .15783E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor      .0000        14.963        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     7.8226        367.31        .44764E-03   -1.5652    
  15  Prefactor     4.2621        11.728        .49848E-03   -1.5667    
  16  Prefactor      .0000        2.4326        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     43.045        46.225        .15576E-03   -1.5577    
  18  Prefactor      .0000        5.6156        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor      .0000        12.571        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .86184        .26256        .82975E-01   -.97814    
  21  Prefactor     1.2417        .16692        .33687E-01   -.85058    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.94946e-08
Minuit parameter uncertainties:
  1  90.8987
  2  2.86823
  3  42.2381
  4  5.95148e-06
  5  63.5795
  6  3.30356e-06
  7  5.39212
  8  9.87716
  9  1.72804e-06
  10  10.4167
  11  4.54786e-07
  12  3.58167e-05
  13  8.43489e-06
  14  107.213
  15  11.7284
  16  1.95899e-06
  17  46.2256
  18  3.93575e-07
  19  5.1006e-07
  20  0.262949
  21  0.166996
Done.

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

Extracting fit parameters...

4FGL J2139.4-4235
   Spectrum: LogParabola
298         norm:  2.750e+01  9.877e+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.242e+00  1.670e-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.618e-01  2.629e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 32.01
Ra Dec: 324.855 -42.590
Photon Index (Fixed Index): 1.93 +/- 0.00
Photon Flux (Fixed Index): 1.67e-07 +/- 5.99e-08
Energy Flux (Fixed Index): 1.17e-04 +/- 4.22e-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) = 5532.49857126
delta logL = 0.00388804873364

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5532.49820046
delta logL = 0.00425885046934

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    27.575       1.0000          .0000       .10000E+07
     2 'alpha     '    1.9603       1.0000          .0000       5.0000    
     3 'Normalizat'    .85607       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2436       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=   5532.498     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      197 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          27.614        12.247        .19047E-03   -.13573E-03
   2  alpha         1.9626        .42641        .23021        .27068E-04
   3  Normalizat    .85547        .25462        .83227E-01   -.21779E-04
   4  Prefactor     1.2438        .16482        .33673E-01   -.26399E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 27.6141
  alpha      = 1.96257
  Normalizat = 0.855467
  Prefactor  = 1.24378
 **********
 **   18 **HESSE 
 **********

 FCN=   5532.498     FROM HESSE     STATUS=OK            31 CALLS      228 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          27.614        9.2141        .76187E-05   -1.5603    
   2  alpha         1.9626        .35812        .90159E-02   -.21666    
   3  Normalizat    .85547        .28081        .36851E-03   -.98043    
   4  Prefactor     1.2438        .18342        .20793E-03   -.84995    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.33147e-10
Minuit parameter uncertainties:
  1  9.21408
  2  0.359417
  3  0.281291
  4  0.183518
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/740505': 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) = 5532.49817394
delta logL = 0.00428536680192

Extracting fit parameters...

4FGL J2139.4-4235
   Spectrum: LogParabola
298         norm:  2.761e+01  9.214e+00  0.000e+00  1.000e+06 ( 1.000e-12)
299        alpha:  1.963e+00  3.594e-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.244e+00  1.835e-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.555e-01  2.813e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 32.28
Ra Dec: 324.855 -42.590
Photon Index (Free Index): 1.96 +/- 0.36
Photon Flux (Free Index): 1.73e-07 +/- 9.26e-08
Energy Flux (Free Index): 1.14e-04 +/- 5.36e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/740505/cmap_HighResolution_691891201_692150401_4FGL_J2139.4-4235_daily_bin1746.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.67e-07', energy_flux2='1.14e-04', photon_flux_error='5.99e-08', dlogl='4.29e-03', energy_flux='1.17e-04', photon_flux2='1.73e-07', job_status='DONE', time_completed='2022-12-08 01:56:40.947874', photon_index_error2='0.36', photon_index2='1.96', ts='32.01', fit_tolerance='1e-08', GAL='1.24', photon_index_error='0.00', energy_flux_error2='5.36e-05', EG='0.86', time_epoch_completed='1670493400.95', return_code='0', job_id='740505', GAL2='1.24', EG2='0.86', return_code2='0', energy_flux_error='4.22e-05', photon_flux_error2='9.26e-08', ts2='32.28', photon_index='1.93' WHERE bin_id='1746' AND source_name='4FGL J2139.4-4235' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Dec  8 01:56:40 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0250>
Subject: Job 740505: <4FGL_J2139.4-4235_daily_bin1746> in cluster <slac> Done

Job <4FGL_J2139.4-4235_daily_bin1746> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Thu Dec  8 01:45:21 2022
Job was executed on host(s) <bullet0250>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Dec  8 01:45:22 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Dec  8 01:45:22 2022
Terminated at Thu Dec  8 01:56:41 2022
Results reported at Thu Dec  8 01:56:41 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2139.4-4235_daily_bin1746 324.855 -42.5895 691891201 692150401 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 :                                   508.16 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             323.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   679 sec.
    Turnaround time :                            680 sec.

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

