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

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

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

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

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

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


Performing analysis on: 4FGL_J2139.4-4235_daily_bin1004
RA = 324.855, Dec = -42.5895
tmin = 499564801, tmax = 499824001
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='640878', job_status='RUN', time_executed='2021-09-26 21:50:34.089417', time_epoch_executed='1632718234.09' WHERE source_name='4FGL J2139.4-4235' and cadence='daily' and bin_id='1004'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/640878

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/640878/ft1_4FGL_J2139.4-4235_daily_bin1004.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/640878/ft2_4FGL_J2139.4-4235_daily_bin1004.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/640878/ft1_4FGL_J2139.4-4235_daily_bin1004.fits outfile=/scratch/kocevski/640878/ft1_filteredMKT_4FGL_J2139.4-4235_daily_bin1004.fits ra=324.855 dec=-42.5895 rad=12.0 tmin=499564801.0 tmax=499824001.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 5.11
user 4.81
sys 0.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/640878/ft1_filtered_4FGL_J2139.4-4235_daily_bin1004.fits" evtable="EVENTS" scfile=/scratch/kocevski/640878/ft2_4FGL_J2139.4-4235_daily_bin1004.fits sctable="SC_DATA" outfile=/scratch/kocevski/640878/ltcube_499564801_499824001_4FGL_J2139.4-4235_daily_bin1004.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/640878/ft2_4FGL_J2139.4-4235_daily_bin1004.fits
.....................!
real 15.24
user 14.84
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/640878/ft1_filtered_4FGL_J2139.4-4235_daily_bin1004.fits evtable="EVENTS" scfile=/scratch/kocevski/640878/ft2_4FGL_J2139.4-4235_daily_bin1004.fits sctable="SC_DATA" expcube=/scratch/kocevski/640878/ltcube_499564801_499824001_4FGL_J2139.4-4235_daily_bin1004.fits outfile=/scratch/kocevski/640878/expmap_499564801_499824001_4FGL_J2139.4-4235_daily_bin1004.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/640878/ltcube_499564801_499824001_4FGL_J2139.4-4235_daily_bin1004.fits
.....................!
real 192.13
user 186.49
sys 5.18

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/640878/ft1_filtered_4FGL_J2139.4-4235_daily_bin1004.fits scfile=/scratch/kocevski/640878/ft2_4FGL_J2139.4-4235_daily_bin1004.fits outfile=/scratch/kocevski/640878/cmap_499564801_499824001_4FGL_J2139.4-4235_daily_bin1004.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.53
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/640878/ft1_filtered_4FGL_J2139.4-4235_daily_bin1004.fits scfile=/scratch/kocevski/640878/ft2_4FGL_J2139.4-4235_daily_bin1004.fits outfile=/scratch/kocevski/640878/cmap_HighResolution_499564801_499824001_4FGL_J2139.4-4235_daily_bin1004.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.56
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/640878/ft1_filtered_4FGL_J2139.4-4235_daily_bin1004.fits evtable="EVENTS" scfile=/scratch/kocevski/640878/ft2_4FGL_J2139.4-4235_daily_bin1004.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/640878/Model_4FGL_J2139.4-4235_daily_bin1004.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/640878/ft1_filtered_4FGL_J2139.4-4235_daily_bin1004.fits.....................!
real 52.85
user 51.57
sys 1.15

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/640878/ft1_filtered_4FGL_J2139.4-4235_daily_bin1004.fits', '/scratch/kocevski/640878/ft2_4FGL_J2139.4-4235_daily_bin1004.fits', expMap='/scratch/kocevski/640878/expmap_499564801_499824001_4FGL_J2139.4-4235_daily_bin1004.fits', expCube='/scratch/kocevski/640878/ltcube_499564801_499824001_4FGL_J2139.4-4235_daily_bin1004.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/640878/Model_4FGL_J2139.4-4235_daily_bin1004.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2139.4-4235'

4FGL J2139.4-4235
   Spectrum: LogParabola
298         norm:  7.892e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
299        alpha:  1.929e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
300         beta:  4.914e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
301           Eb:  8.547e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/640878/ft1_filtered_4FGL_J2139.4-4235_daily_bin1004.fits
Spacecraft file(s): /scratch/kocevski/640878/ft2_4FGL_J2139.4-4235_daily_bin1004.fits
Exposure map: /scratch/kocevski/640878/expmap_499564801_499824001_4FGL_J2139.4-4235_daily_bin1004.fits
Exposure cube: /scratch/kocevski/640878/ltcube_499564801_499824001_4FGL_J2139.4-4235_daily_bin1004.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/640878/Model_4FGL_J2139.4-4235_daily_bin1004.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) = 6089.53630388

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    120.36       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .19688       1.0000         .10000E-03   10000.    
     5 'Prefactor '    71.509       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.4903       1.0000         .10000E-03   10000.    
    10 'norm      '    13.699       1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.2407       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10213E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    24.775       1.0000         .10000E-03   10000.    
    14 'Prefactor '    43.049       1.0000         .10000E-03   10000.    
    15 'Prefactor '    10.896       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10457E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.1517       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.6696       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10480E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .45105       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.4385       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=   6089.533     FROM MIGRAD    STATUS=CONVERGED    572 CALLS     2583 TOTAL
                     EDM=   .28E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.176       -.15251E-06** at limit **
   2  Prefactor     120.31        105.24        .35320E-05    .15570E-04
   3  norm          .10000E-03    1.2865       -.25976E-06** at limit **
   4  Prefactor     .10097        34.619       -.50313E-06    .54145E-04
   5  Prefactor     71.490        100.56        .17200E-05    .26726E-05
   6  Prefactor     .10000E-03    4.9305        .41508E-07** at limit **
   7  Prefactor     .10000E-03    25.832       -.31765E-06** at limit **
   8  Prefactor     .10000E-03    25.517        .18092E-06** at limit **
   9  Prefactor     4.4928        7.6504        .21927E-05    .12794E-04
  10  norm          13.700        5.9766        .48447E-08    .50967E-05
  11  Prefactor     8.2440        9.6136        .22549E-06    .41397E-05
  12  Prefactor     .10000E-03    7.7919       -.14337E-07** at limit **
  13  norm          24.780        12.694       -.11654E-06   -.10480E-04
  14  Prefactor     43.035        43.460       -.18114E-05   -.44560E-05
  15  Prefactor     10.895        14.479        .15453E-07    .51133E-06
  16  Prefactor     .10000E-03    108.19        .94418E-07** at limit **
  17  Prefactor     .10000E-03    5.5230       -.46922E-08** at limit **
  18  Prefactor     5.1539        7.5651        .24610E-06    .26341E-05
  19  Prefactor     .10000E-03    50.435       -.45564E-07** at limit **
  20  Prefactor     6.6737        13.319       -.28470E-06   -.41684E-05
  21  Prefactor     .10000E-03    89.180       -.22341E-08** at limit **
  22  Normalizat    .45083        .29767       -.14687E-05    .45330E-04
  23  Prefactor     1.4386        .17576        .15384E-08    .20416E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 120.31
  norm       = 0.0001
  Prefactor  = 0.100966
  Prefactor  = 71.49
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.49281
  norm       = 13.7003
  Prefactor  = 8.24398
  Prefactor  = 0.0001
  norm       = 24.7803
  Prefactor  = 43.0346
  Prefactor  = 10.8953
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.15391
  Prefactor  = 0.0001
  Prefactor  = 6.67368
  Prefactor  = 0.0001
  Normalizat = 0.450825
  Prefactor  = 1.4386
 **********
 **   18 **HESSE 
 **********

 FCN=   6089.533     FROM HESSE     STATUS=OK           376 CALLS     2959 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.185        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     120.31        105.42        .18341E-03   -1.3510    
   3  norm          .10000E-03    2.3352        .16845E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10097        42.832        .10244       -1.5644    
   5  Prefactor     71.490        100.44        .47473E-04   -1.4015    
   6  Prefactor     .10000E-03    4.9579        .16916E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    25.960        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    25.515        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.4928        7.6939        .95003E-03   -1.5284    
  10  norm          13.700        5.9723        .54109E-03   -1.4968    
  11  Prefactor     8.2440        9.5646        .13966E-03   -1.5134    
  12  Prefactor     .10000E-03    7.8222        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          24.780        12.651        .80479E-04   -1.4712    
  14  Prefactor     43.035        43.419        .61101E-04   -1.4395    
  15  Prefactor     10.895        14.429        .12137E-03   -1.5048    
  16  Prefactor     .10000E-03    108.20        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    5.5273        .17910E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.1539        7.5376        .17712E-03   -1.5254    
  19  Prefactor     .10000E-03    50.461        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     6.6737        13.285        .15538E-03   -1.5191    
  21  Prefactor     .10000E-03    89.910        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .45083        .28879        .50780E-03   -1.1475    
  23  Prefactor     1.4386        .17807        .18479E-03   -.79274    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.61555e-10
Minuit parameter uncertainties:
  1  2.26039e-05
  2  105.585
  3  3.64318e-06
  4  4.16004
  5  100.682
  6  5.44565e-07
  7  3.59722e-06
  8  2.92532e-05
  9  7.69562
  10  5.97253
  11  9.56635
  12  2.32208e-07
  13  12.6523
  14  43.4504
  15  14.4336
  16  9.39015e-06
  17  3.46246e-07
  18  7.53897
  19  1.91995e-06
  20  13.2909
  21  1.45979e-05
  22  0.289751
  23  0.178148
Done.

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

Extracting fit parameters...

4FGL J2139.4-4235
   Spectrum: LogParabola
298         norm:  1.370e+01  5.973e+00  1.000e-04  1.000e+04 ( 1.000e-12)
299        alpha:  1.929e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
300         beta:  4.914e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
301           Eb:  8.547e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
578    Prefactor:  1.439e+00  1.781e-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:  4.508e-01  2.898e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 22.14
Ra Dec: 324.855 -42.590
Photon Index (Fixed Index): 1.93 +/- 0.00
Photon Flux (Fixed Index): 8.30e-08 +/- 3.62e-08
Energy Flux (Fixed Index): 5.85e-05 +/- 2.55e-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) = 6088.23074341
delta logL = 1.3022069378

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6088.20555448
delta logL = 1.32739587093

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.347       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.4236       1.0000          .0000       5.0000    
     3 'Normalizat'    .48144       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4295       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=   6088.206     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      210 TOTAL
                     EDM=   .74E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.347        5.5907        .28500E-02   -.21208E-03
   2  alpha         1.4236        .25189        .19960       -.37316E-04
   3  Normalizat    .48141        .26964        .11099        .46168E-04
   4  Prefactor     1.4295        .16808        .30666E-01   -.67765E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 12.3473
  alpha      = 1.42362
  Normalizat = 0.481408
  Prefactor  = 1.42952
 **********
 **   18 **HESSE 
 **********

 FCN=   6088.206     FROM HESSE     STATUS=OK            33 CALLS      243 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.347        6.2462        .11400E-03   -1.5005    
   2  alpha         1.4236        .29489        .84263E-02   -.44510    
   3  Normalizat    .48141        .27383        .49207E-03   -1.1328    
   4  Prefactor     1.4295        .17144        .18528E-03   -.79533    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.5398e-10
Minuit parameter uncertainties:
  1  6.24657
  2  0.295732
  3  0.274595
  4  0.171507
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/640878': 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) = 6088.20555447
delta logL = 1.32739587825

Extracting fit parameters...

4FGL J2139.4-4235
   Spectrum: LogParabola
298         norm:  1.235e+01  6.247e+00  1.000e-04  1.000e+04 ( 1.000e-12)
299        alpha:  1.424e+00  2.957e-01  0.000e+00  5.000e+00 ( 1.000e+00)
300         beta:  4.914e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
301           Eb:  8.547e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
578    Prefactor:  1.430e+00  1.715e-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:  4.814e-01  2.746e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 24.81
Ra Dec: 324.855 -42.590
Photon Index (Free Index): 1.42 +/- 0.30
Photon Flux (Free Index): 5.18e-08 +/- 2.86e-08
Energy Flux (Free Index): 1.40e-04 +/- 1.00e-04

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/640878/cmap_HighResolution_499564801_499824001_4FGL_J2139.4-4235_daily_bin1004.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.30e-08', energy_flux2='1.40e-04', photon_flux_error='3.62e-08', dlogl='1.33e+00', energy_flux='5.85e-05', photon_flux2='5.18e-08', job_status='DONE', time_completed='2021-09-26 22:00:34.313015', photon_index_error2='0.30', photon_index2='1.42', ts='22.14', fit_tolerance='1e-08', GAL='1.44', photon_index_error='0.00', energy_flux_error2='1.00e-04', EG='0.45', time_epoch_completed='1632718834.31', return_code='0', job_id='640878', GAL2='1.43', EG2='0.48', return_code2='0', energy_flux_error='2.55e-05', photon_flux_error2='2.86e-08', ts2='24.81', photon_index='1.93' WHERE bin_id='1004' AND source_name='4FGL J2139.4-4235' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 22:00:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0016>
Subject: Job 640878: <4FGL_J2139.4-4235_daily_bin1004> in cluster <slac> Done

Job <4FGL_J2139.4-4235_daily_bin1004> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep 26 21:50:11 2021
Job was executed on host(s) <bullet0016>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 21:50:14 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep 26 21:50:14 2021
Terminated at Sun Sep 26 22:00:34 2021
Results reported at Sun Sep 26 22:00:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2139.4-4235_daily_bin1004 324.855 -42.5895 499564801 499824001 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 :                                   597.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             298.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   620 sec.
    Turnaround time :                            623 sec.

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

