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


Performing analysis on: 4FGL_J2139.4-4235_daily_bin1079
RA = 324.855, Dec = -42.5895
tmin = 519004801, tmax = 519264001
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='640998', job_status='RUN', time_executed='2021-09-26 21:53:24.788725', time_epoch_executed='1632718404.79' WHERE source_name='4FGL J2139.4-4235' and cadence='daily' and bin_id='1079'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/640998

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/640998/ft1_4FGL_J2139.4-4235_daily_bin1079.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/640998/ft2_4FGL_J2139.4-4235_daily_bin1079.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/640998/ft1_4FGL_J2139.4-4235_daily_bin1079.fits outfile=/scratch/kocevski/640998/ft1_filteredMKT_4FGL_J2139.4-4235_daily_bin1079.fits ra=324.855 dec=-42.5895 rad=12.0 tmin=519004801.0 tmax=519264001.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.56
user 3.34
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/640998/ft2_4FGL_J2139.4-4235_daily_bin1079.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/640998/ft1_filteredMKT_4FGL_J2139.4-4235_daily_bin1079.fits evtable="EVENTS" outfile="/scratch/kocevski/640998/ft1_filtered_4FGL_J2139.4-4235_daily_bin1079.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.51
user 0.31
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/640998/ft1_filtered_4FGL_J2139.4-4235_daily_bin1079.fits" evtable="EVENTS" scfile=/scratch/kocevski/640998/ft2_4FGL_J2139.4-4235_daily_bin1079.fits sctable="SC_DATA" outfile=/scratch/kocevski/640998/ltcube_519004801_519264001_4FGL_J2139.4-4235_daily_bin1079.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/640998/ft2_4FGL_J2139.4-4235_daily_bin1079.fits
.....................!
real 12.97
user 12.63
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/640998/ft1_filtered_4FGL_J2139.4-4235_daily_bin1079.fits evtable="EVENTS" scfile=/scratch/kocevski/640998/ft2_4FGL_J2139.4-4235_daily_bin1079.fits sctable="SC_DATA" expcube=/scratch/kocevski/640998/ltcube_519004801_519264001_4FGL_J2139.4-4235_daily_bin1079.fits outfile=/scratch/kocevski/640998/expmap_519004801_519264001_4FGL_J2139.4-4235_daily_bin1079.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/640998/ltcube_519004801_519264001_4FGL_J2139.4-4235_daily_bin1079.fits
.....................!
real 191.13
user 185.60
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/640998/ft1_filtered_4FGL_J2139.4-4235_daily_bin1079.fits scfile=/scratch/kocevski/640998/ft2_4FGL_J2139.4-4235_daily_bin1079.fits outfile=/scratch/kocevski/640998/cmap_519004801_519264001_4FGL_J2139.4-4235_daily_bin1079.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.38
sys 0.14

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/640998/ft1_filtered_4FGL_J2139.4-4235_daily_bin1079.fits evtable="EVENTS" scfile=/scratch/kocevski/640998/ft2_4FGL_J2139.4-4235_daily_bin1079.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/640998/Model_4FGL_J2139.4-4235_daily_bin1079.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/640998/ft1_filtered_4FGL_J2139.4-4235_daily_bin1079.fits.....................!
real 48.38
user 47.06
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.4891       1.0000         .10000E-03   10000.    
     2 'Prefactor '    46.246       1.0000         .10000E-03   10000.    
     3 'norm      '    1.8676       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    17.708       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.6747       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.8401       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    10.269       1.0000         .10000E-03   10000.    
    11 'Prefactor '    13.528       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .52957       1.0000         .10000E-03   10000.    
    13 'norm      '    15.285       1.0000         .10000E-03   10000.    
    14 'Prefactor '    15.715       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.9289       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.3078       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.2101       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .91748       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=   5807.632     FROM MIGRAD    STATUS=CONVERGED    519 CALLS     2526 TOTAL
                     EDM=   .42E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.4992        35.997       -.19620E-05   -.82364E-05
   2  Prefactor     45.997        98.091        .19964E-04   -.13222E-05
   3  norm          1.8683        2.0814       -.14491E-06   -.12792E-03
   4  Prefactor     .10000E-03    15.014       -.28777E-06** at limit **
   5  Prefactor     17.684        68.091        .29236E-05   -.90573E-06
   6  Prefactor     1.6755        16.840        .94598E-05    .33382E-04
   7  Prefactor     3.7973        64.022       -.66951E-05   -.42176E-05
   8  Prefactor     .10000E-03    12.034       -.32002E-07** at limit **
   9  Prefactor     .10000E-03    2.5603        .26275E-06** at limit **
  10  norm          10.273        6.6287        .41777E-06    .74696E-04
  11  Prefactor     13.533        11.558        .25004E-06    .54918E-04
  12  Prefactor     .49575        9.2355       -.45266E-06    .10835E-03
  13  norm          15.284        10.192        .22209E-06    .49393E-05
  14  Prefactor     15.706        29.362       -.28568E-06   -.32728E-05
  15  Prefactor     5.9255        8.2981        .93639E-06   -.19842E-05
  16  Prefactor     .10000E-03    35.833        .24017E-06** at limit **
  17  Prefactor     .10000E-03    3.2117       -.24420E-07** at limit **
  18  Prefactor     .10000E-03    1.0621       -.17444E-07** at limit **
  19  Prefactor     .10000E-03    24.157       -.20713E-06** at limit **
  20  Prefactor     8.3067        6.9765        .10354E-06   -.92689E-05
  21  Prefactor     .10000E-03    15.820        .23106E-06** at limit **
  22  Normalizat    1.2103        .22561       -.36154E-05    .10070E-03
  23  Prefactor     .91742        .13894        .12473E-05    .18044E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.49917
  Prefactor  = 45.9969
  norm       = 1.86833
  Prefactor  = 0.0001
  Prefactor  = 17.6837
  Prefactor  = 1.67547
  Prefactor  = 3.79729
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.273
  Prefactor  = 13.5329
  Prefactor  = 0.495751
  norm       = 15.284
  Prefactor  = 15.7056
  Prefactor  = 5.92552
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.30672
  Prefactor  = 0.0001
  Normalizat = 1.21029
  Prefactor  = 0.917422
 **********
 **   18 **HESSE 
 **********

 FCN=   5807.632     FROM HESSE     STATUS=OK           378 CALLS     2904 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.4992        36.005        .15755E-03   -1.5198    
   2  Prefactor     45.997        98.138        .29480E-03   -1.4351    
   3  norm          1.8683        2.0657        .11045E-03   -1.5435    
   4  Prefactor     .10000E-03    15.038        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     17.684        68.182        .95177E-04   -1.4867    
   6  Prefactor     1.6755        16.998        .16283E-02   -1.5449    
   7  Prefactor     3.7973        63.230        .20595E-03   -1.5318    
   8  Prefactor     .10000E-03    12.038        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.5855        .11902E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          10.273        6.5814        .12504E-03   -1.5067    
  11  Prefactor     13.533        11.342        .10890E-03   -1.4972    
  12  Prefactor     .49575        37.484        .41030E-02   -1.5567    
  13  norm          15.284        10.192        .10244E-03   -1.4926    
  14  Prefactor     15.706        29.376        .10103E-03   -1.4915    
  15  Prefactor     5.9255        8.2996        .82459E-03   -1.5221    
  16  Prefactor     .10000E-03    35.834        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    3.2235        .13337E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    1.0646        .76687E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    24.174        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     8.3067        6.9945        .13909E-03   -1.5131    
  21  Prefactor     .10000E-03    15.872        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.2103        .25696        .28414E-03   -.86285    
  23  Prefactor     .91742        .16000        .21180E-03   -.95535    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.02552e-10
Minuit parameter uncertainties:
  1  30.6224
  2  98.4851
  3  2.06579
  4  1.87438e-06
  5  68.4852
  6  10.6769
  7  31.0287
  8  3.633e-06
  9  6.44965e-07
  10  6.5819
  11  11.3436
  12  8.62627
  13  10.1927
  14  29.4035
  15  8.3012
  16  9.99772e-07
  17  2.29229e-06
  18  1.13792e-06
  19  7.71666e-06
  20  6.99518
  21  1.00418e-05
  22  0.257224
  23  0.160082
Done.

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

Extracting fit parameters...

4FGL J2139.4-4235
   Spectrum: LogParabola
298         norm:  1.027e+01  6.582e+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:  9.174e-01  1.601e-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:  1.210e+00  2.572e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.57
Ra Dec: 324.855 -42.590
Photon Index (Fixed Index): 1.93 +/- 0.00
Photon Flux (Fixed Index): 6.23e-08 +/- 3.99e-08
Energy Flux (Fixed Index): 4.39e-05 +/- 2.81e-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) = 5804.36682584
delta logL = 3.26468178268

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5804.36542178
delta logL = 3.26608584474

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.2948       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.1546       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0402       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97491       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=   5804.365     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      303 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.2944        5.0829        .65584E-04   -.78335E-03
   2  alpha         3.1545        .54526        .69563E-02   -.87124E-04
   3  Normalizat    1.0403        .24870        .30213E-03   -.10453E-03
   4  Prefactor     .97493        .15967        .20568E-03   -.15255E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.29444
  alpha      = 3.15454
  Normalizat = 1.04026
  Prefactor  = 0.974927
 **********
 **   18 **HESSE 
 **********

 FCN=   5804.365     FROM HESSE     STATUS=OK            25 CALLS      328 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.2944        4.5584        .26233E-05   -1.5206    
   2  alpha         3.1545        .48937        .27825E-03    .26490    
   3  Normalizat    1.0403        .24840        .12085E-04   -.91694    
   4  Prefactor     .97493        .15956        .82273E-05   -.93570    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.21625e-10
Minuit parameter uncertainties:
  1  4.55861
  2  0.492786
  3  0.248673
  4  0.159632
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/640998': 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) = 5804.36542169
delta logL = 3.26608593353

Extracting fit parameters...

4FGL J2139.4-4235
   Spectrum: LogParabola
298         norm:  6.294e+00  4.559e+00  1.000e-04  1.000e+04 ( 1.000e-12)
299        alpha:  3.155e+00  4.928e-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:  9.749e-01  1.596e-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:  1.040e+00  2.487e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 13.56
Ra Dec: 324.855 -42.590
Photon Index (Free Index): 3.15 +/- 0.49
Photon Flux (Free Index): 2.20e-07 +/- 9.17e-08
Energy Flux (Free Index): 4.23e-05 +/- 1.57e-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/640998/cmap_HighResolution_519004801_519264001_4FGL_J2139.4-4235_daily_bin1079.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.23e-08', energy_flux2='4.23e-05', photon_flux_error='3.99e-08', dlogl='3.27e+00', energy_flux='4.39e-05', photon_flux2='2.20e-07', job_status='DONE', time_completed='2021-09-26 22:03:44.937010', photon_index_error2='0.49', photon_index2='3.15', ts='6.57', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', energy_flux_error2='1.57e-05', EG='1.21', time_epoch_completed='1632719024.94', return_code='0', job_id='640998', GAL2='0.97', EG2='1.04', return_code2='0', energy_flux_error='2.81e-05', photon_flux_error2='9.17e-08', ts2='13.56', photon_index='1.93' WHERE bin_id='1079' AND source_name='4FGL J2139.4-4235' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 22:03:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0150>
Subject: Job 640998: <4FGL_J2139.4-4235_daily_bin1079> in cluster <slac> Done

Job <4FGL_J2139.4-4235_daily_bin1079> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep 26 21:50:20 2021
Job was executed on host(s) <bullet0150>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 21:51:04 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:51:04 2021
Terminated at Sun Sep 26 22:03:45 2021
Results reported at Sun Sep 26 22:03:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2139.4-4235_daily_bin1079 324.855 -42.5895 519004801 519264001 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 :                                   583.42 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             306.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   761 sec.
    Turnaround time :                            805 sec.

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

