/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 3 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 = 7397
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2139.4-4235_daily_bin1529
RA = 324.855, Dec = -42.5895
tmin = 635644801, tmax = 635904001
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='642820', job_status='RUN', time_executed='2021-09-26 21:56:43.299032', time_epoch_executed='1632718603.3' WHERE source_name='4FGL J2139.4-4235' and cadence='daily' and bin_id='1529'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/642820

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/642820/ft1_4FGL_J2139.4-4235_daily_bin1529.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/642820/ft2_4FGL_J2139.4-4235_daily_bin1529.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/642820/ft1_4FGL_J2139.4-4235_daily_bin1529.fits outfile=/scratch/kocevski/642820/ft1_filteredMKT_4FGL_J2139.4-4235_daily_bin1529.fits ra=324.855 dec=-42.5895 rad=12.0 tmin=635644801.0 tmax=635904001.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.40
user 4.07
sys 0.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/642820/ft1_filtered_4FGL_J2139.4-4235_daily_bin1529.fits" evtable="EVENTS" scfile=/scratch/kocevski/642820/ft2_4FGL_J2139.4-4235_daily_bin1529.fits sctable="SC_DATA" outfile=/scratch/kocevski/642820/ltcube_635644801_635904001_4FGL_J2139.4-4235_daily_bin1529.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/642820/ft2_4FGL_J2139.4-4235_daily_bin1529.fits
.....................!
real 17.06
user 16.62
sys 0.39

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/642820/ft1_filtered_4FGL_J2139.4-4235_daily_bin1529.fits evtable="EVENTS" scfile=/scratch/kocevski/642820/ft2_4FGL_J2139.4-4235_daily_bin1529.fits sctable="SC_DATA" expcube=/scratch/kocevski/642820/ltcube_635644801_635904001_4FGL_J2139.4-4235_daily_bin1529.fits outfile=/scratch/kocevski/642820/expmap_635644801_635904001_4FGL_J2139.4-4235_daily_bin1529.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/642820/ltcube_635644801_635904001_4FGL_J2139.4-4235_daily_bin1529.fits
.....................!
real 191.08
user 185.08
sys 5.51

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/642820/ft1_filtered_4FGL_J2139.4-4235_daily_bin1529.fits scfile=/scratch/kocevski/642820/ft2_4FGL_J2139.4-4235_daily_bin1529.fits outfile=/scratch/kocevski/642820/cmap_635644801_635904001_4FGL_J2139.4-4235_daily_bin1529.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.56
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/642820/ft1_filtered_4FGL_J2139.4-4235_daily_bin1529.fits scfile=/scratch/kocevski/642820/ft2_4FGL_J2139.4-4235_daily_bin1529.fits outfile=/scratch/kocevski/642820/cmap_HighResolution_635644801_635904001_4FGL_J2139.4-4235_daily_bin1529.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.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    31.868       1.0000         .10000E-03   10000.    
     2 'Prefactor '    100.21       1.0000         .10000E-03   10000.    
     3 'norm      '    2.3233       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.2455       1.0000         .10000E-03   10000.    
     7 'Prefactor '    13.827       1.0000         .10000E-03   10000.    
     8 'Prefactor '    27.213       1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.2864       1.0000         .10000E-03   10000.    
    10 'norm      '    18.766       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.9760       1.0000         .10000E-03   10000.    
    13 'norm      '    1.2677       1.0000         .10000E-03   10000.    
    14 'Prefactor '    62.535       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.7536       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.1853       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10223E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    14.146       1.0000         .10000E-03   10000.    
    21 'Prefactor '    12.911       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .56471       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.2743       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=   5860.717     FROM MIGRAD    STATUS=CONVERGED    507 CALLS     2576 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     31.855        40.941        .25148E-07    .49554E-04
   2  Prefactor     100.08        82.844        .16964E-04    .41229E-03
   3  norm          2.3239        1.7881       -.12176E-06   -.56847E-03
   4  Prefactor     .10000E-03    8.0126        .32350E-07** at limit **
   5  Prefactor     .10000E-03    19.328       -.21863E-05** at limit **
   6  Prefactor     7.2448        8.1329        .52640E-06   -.27748E-04
   7  Prefactor     13.739        27.451       -.69885E-06   -.57385E-04
   8  Prefactor     27.210        29.491        .75601E-06    .15379E-04
   9  Prefactor     6.2856        5.8703        .60376E-06    .22558E-04
  10  norm          18.770        7.2118        .24692E-06   -.38882E-04
  11  Prefactor     .10000E-03    10.519        .63126E-06** at limit **
  12  Prefactor     6.9723        9.1215        .35132E-06   -.24991E-04
  13  norm          1.2628        10.858        .21945E-04   -.40143E-03
  14  Prefactor     62.553        48.134       -.95394E-06   -.12276E-03
  15  Prefactor     1.7296        13.382        .25400E-05    .62999E-04
  16  Prefactor     .10000E-03    39.861        .71851E-07** at limit **
  17  Prefactor     3.1815        8.0209        .80265E-06   -.19839E-04
  18  Prefactor     .10000E-03    1.9700        .38265E-06** at limit **
  19  Prefactor     .10000E-03    20.171        .23820E-05** at limit **
  20  Prefactor     14.146        8.2036        .43617E-06   -.41079E-04
  21  Prefactor     12.906        20.605        .60195E-06   -.33578E-04
  22  Normalizat    .56531        .23767       -.89631E-05   -.12160E-03
  23  Prefactor     1.2740        .15151        .13468E-05    .12927E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 31.855
  Prefactor  = 100.075
  norm       = 2.32388
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.24479
  Prefactor  = 13.7389
  Prefactor  = 27.2101
  Prefactor  = 6.28561
  norm       = 18.77
  Prefactor  = 0.0001
  Prefactor  = 6.97226
  norm       = 1.2628
  Prefactor  = 62.5534
  Prefactor  = 1.72955
  Prefactor  = 0.0001
  Prefactor  = 3.18152
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 14.1457
  Prefactor  = 12.9064
  Normalizat = 0.565306
  Prefactor  = 1.274
 **********
 **   18 **HESSE 
 **********

 FCN=   5860.717     FROM HESSE     STATUS=OK           374 CALLS     2950 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     31.855        40.938        .70979E-04   -1.4579    
   2  Prefactor     100.08        83.364        .20080E-03   -1.3704    
   3  norm          2.3239        1.7798        .86019E-04   -1.5403    
   4  Prefactor     .10000E-03    8.0188        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    19.338        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.2448        8.1152        .14901E-03   -1.5170    
   7  Prefactor     13.739        27.402        .10772E-03   -1.4966    
   8  Prefactor     27.210        29.476        .76796E-04   -1.4664    
   9  Prefactor     6.2856        5.8512        .16010E-03   -1.5206    
  10  norm          18.770        7.2051        .92456E-04   -1.4841    
  11  Prefactor     .10000E-03    10.708        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.9723        9.0978        .15189E-03   -1.5180    
  13  norm          1.2628        10.948        .19772E-02   -1.5483    
  14  Prefactor     62.553        47.630        .50743E-04   -1.4124    
  15  Prefactor     1.7296        12.967        .31656E-03   -1.5445    
  16  Prefactor     .10000E-03    39.859        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     3.1815        8.0063        .22705E-03   -1.5351    
  18  Prefactor     .10000E-03    13.499        .20577E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    20.188        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     14.146        8.1959        .10649E-03   -1.4956    
  21  Prefactor     12.906        20.609        .11148E-03   -1.4989    
  22  Normalizat    .56531        .25049        .38190E-03   -1.0948    
  23  Prefactor     1.2740        .16369        .18565E-03   -.84084    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.31264e-09
Minuit parameter uncertainties:
  1  40.9737
  2  83.4616
  3  1.77988
  4  5.92895e-06
  5  0.000164673
  6  8.11646
  7  27.4271
  8  29.4915
  9  5.85176
  10  7.20543
  11  9.25476e-05
  12  9.09965
  13  7.43801
  14  47.6591
  15  9.47403
  16  5.68879e-05
  17  8.00895
  18  0.000261403
  19  0.000203043
  20  8.19656
  21  20.6202
  22  0.250989
  23  0.163751
Done.

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

Extracting fit parameters...

4FGL J2139.4-4235
   Spectrum: LogParabola
298         norm:  1.877e+01  7.205e+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.274e+00  1.638e-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:  5.653e-01  2.510e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 32.48
Ra Dec: 324.855 -42.590
Photon Index (Fixed Index): 1.93 +/- 0.00
Photon Flux (Fixed Index): 1.14e-07 +/- 4.37e-08
Energy Flux (Fixed Index): 8.02e-05 +/- 3.08e-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) = 5860.70361773
delta logL = 0.0131902759276

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5860.70284109
delta logL = 0.013966908853

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    18.770       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8726       1.0000          .0000       5.0000    
     3 'Normalizat'    .57236       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2718       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=   5860.703     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      198 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          18.728        9.1256        .23112E-02    .20070E-05
   2  alpha         1.8724        .40271        .22988        .50129E-05
   3  Normalizat    .57267        .21582        .85715E-01    .34646E-04
   4  Prefactor     1.2716        .14963        .33120E-01   -.42188E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 18.7277
  alpha      = 1.87241
  Normalizat = 0.572674
  Prefactor  = 1.27164
 **********
 **   18 **HESSE 
 **********

 FCN=   5860.703     FROM HESSE     STATUS=OK            33 CALLS      231 TOTAL
                     EDM=   .22E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          18.728        6.9868        .92447E-04   -1.4842    
   2  alpha         1.8724        .33896        .91614E-02   -.25375    
   3  Normalizat    .57267        .23069        .37967E-03   -1.0916    
   4  Prefactor     1.2716        .16096        .18583E-03   -.84154    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.15331e-14
Minuit parameter uncertainties:
  1  6.98711
  2  0.340074
  3  0.231081
  4  0.161022
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/642820': 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) = 5860.70282263
delta logL = 0.0139853780565

Extracting fit parameters...

4FGL J2139.4-4235
   Spectrum: LogParabola
298         norm:  1.873e+01  6.987e+00  1.000e-04  1.000e+04 ( 1.000e-12)
299        alpha:  1.872e+00  3.401e-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.272e+00  1.610e-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:  5.727e-01  2.311e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 32.50
Ra Dec: 324.855 -42.590
Photon Index (Free Index): 1.87 +/- 0.34
Photon Flux (Free Index): 1.07e-07 +/- 5.58e-08
Energy Flux (Free Index): 8.57e-05 +/- 4.79e-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/642820/cmap_HighResolution_635644801_635904001_4FGL_J2139.4-4235_daily_bin1529.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.14e-07', energy_flux2='8.57e-05', photon_flux_error='4.37e-08', dlogl='1.40e-02', energy_flux='8.02e-05', photon_flux2='1.07e-07', job_status='DONE', time_completed='2021-09-26 22:07:24.048903', photon_index_error2='0.34', photon_index2='1.87', ts='32.48', fit_tolerance='1e-08', GAL='1.27', photon_index_error='0.00', energy_flux_error2='4.79e-05', EG='0.57', time_epoch_completed='1632719244.05', return_code='0', job_id='642820', GAL2='1.27', EG2='0.57', return_code2='0', energy_flux_error='3.08e-05', photon_flux_error2='5.58e-08', ts2='32.50', photon_index='1.93' WHERE bin_id='1529' AND source_name='4FGL J2139.4-4235' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 22:07:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0193>
Subject: Job 642820: <4FGL_J2139.4-4235_daily_bin1529> in cluster <slac> Done

Job <4FGL_J2139.4-4235_daily_bin1529> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep 26 21:55:13 2021
Job was executed on host(s) <bullet0193>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 21:56:30 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:56:30 2021
Terminated at Sun Sep 26 22:07:24 2021
Results reported at Sun Sep 26 22:07:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2139.4-4235_daily_bin1529 324.855 -42.5895 635644801 635904001 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 :                                   595.36 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             271.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   654 sec.
    Turnaround time :                            731 sec.

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

