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


Performing analysis on: 4FGL_J2139.4-4235_daily_bin1167
RA = 324.855, Dec = -42.5895
tmin = 541814401, tmax = 542073601
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='641136', job_status='RUN', time_executed='2021-09-26 21:53:32.074209', time_epoch_executed='1632718412.07' WHERE source_name='4FGL J2139.4-4235' and cadence='daily' and bin_id='1167'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/641136

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/641136/ft1_4FGL_J2139.4-4235_daily_bin1167.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/641136/ft2_4FGL_J2139.4-4235_daily_bin1167.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/641136/ft1_4FGL_J2139.4-4235_daily_bin1167.fits outfile=/scratch/kocevski/641136/ft1_filteredMKT_4FGL_J2139.4-4235_daily_bin1167.fits ra=324.855 dec=-42.5895 rad=12.0 tmin=541814401.0 tmax=542073601.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.72
user 3.46
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/641136/ft1_filtered_4FGL_J2139.4-4235_daily_bin1167.fits" evtable="EVENTS" scfile=/scratch/kocevski/641136/ft2_4FGL_J2139.4-4235_daily_bin1167.fits sctable="SC_DATA" outfile=/scratch/kocevski/641136/ltcube_541814401_542073601_4FGL_J2139.4-4235_daily_bin1167.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/641136/ft2_4FGL_J2139.4-4235_daily_bin1167.fits
.....................!
real 15.51
user 15.15
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/641136/ft1_filtered_4FGL_J2139.4-4235_daily_bin1167.fits evtable="EVENTS" scfile=/scratch/kocevski/641136/ft2_4FGL_J2139.4-4235_daily_bin1167.fits sctable="SC_DATA" expcube=/scratch/kocevski/641136/ltcube_541814401_542073601_4FGL_J2139.4-4235_daily_bin1167.fits outfile=/scratch/kocevski/641136/expmap_541814401_542073601_4FGL_J2139.4-4235_daily_bin1167.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/641136/ltcube_541814401_542073601_4FGL_J2139.4-4235_daily_bin1167.fits
.....................!
real 192.52
user 187.27
sys 4.63

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/641136/ft1_filtered_4FGL_J2139.4-4235_daily_bin1167.fits scfile=/scratch/kocevski/641136/ft2_4FGL_J2139.4-4235_daily_bin1167.fits outfile=/scratch/kocevski/641136/cmap_541814401_542073601_4FGL_J2139.4-4235_daily_bin1167.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.58
user 0.40
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/641136/ft1_filtered_4FGL_J2139.4-4235_daily_bin1167.fits scfile=/scratch/kocevski/641136/ft2_4FGL_J2139.4-4235_daily_bin1167.fits outfile=/scratch/kocevski/641136/cmap_HighResolution_541814401_542073601_4FGL_J2139.4-4235_daily_bin1167.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/641136/ft1_filtered_4FGL_J2139.4-4235_daily_bin1167.fits evtable="EVENTS" scfile=/scratch/kocevski/641136/ft2_4FGL_J2139.4-4235_daily_bin1167.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/641136/Model_4FGL_J2139.4-4235_daily_bin1167.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/641136/ft1_filtered_4FGL_J2139.4-4235_daily_bin1167.fits....................!
real 49.25
user 47.82
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    4.6138       1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.7158       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.5146       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10874E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10224E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.0439       1.0000         .10000E-03   10000.    
    10 'norm      '    14.127       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .30609       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10426E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    83.199       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .90935       1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.0174       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.6236       1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.3154       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10372E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0409       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0831       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=   5805.847     FROM MIGRAD    STATUS=CONVERGED    545 CALLS     2551 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    24.306       -.29299E-06** at limit **
   2  Prefactor     .10000E-03    21.075        .25827E-06** at limit **
   3  norm          4.6128        2.5782        .10378E-06   -.92359E-04
   4  Prefactor     6.7106        48.266        .15285E-05   -.17028E-04
   5  Prefactor     .10000E-03    30.317        .76928E-06** at limit **
   6  Prefactor     3.5051        11.536        .49957E-07   -.75138E-04
   7  Prefactor     .10000E-03    38.967       -.34380E-06** at limit **
   8  Prefactor     .10000E-03    25.356       -.23005E-06** at limit **
   9  Prefactor     1.0479        5.5741        .28539E-05    .19580E-04
  10  norm          14.124        6.8643        .42171E-06   -.74038E-04
  11  Prefactor     .18335        9.3933        .92755E-06   -.12637E-03
  12  Prefactor     .10000E-03    12.860        .91715E-07** at limit **
  13  norm          .10000E-03    2.8627        .14205E-07** at limit **
  14  Prefactor     .10000E-03    39.075       -.43676E-06** at limit **
  15  Prefactor     .10000E-03    3.6207       -.25947E-06** at limit **
  16  Prefactor     83.177        94.743       -.26160E-06   -.56060E-04
  17  Prefactor     .88945        12.017        .21573E-05   -.29636E-03
  18  Prefactor     9.0150        4.6057        .39135E-09   -.89272E-04
  19  Prefactor     1.5134        226.90        .17060E-05   -.13165E-04
  20  Prefactor     4.3146        4.3053       -.35329E-08   -.13190E-04
  21  Prefactor     .10000E-03    13.777       -.34141E-07** at limit **
  22  Normalizat    1.0414        .24057       -.17201E-05   -.30298E-03
  23  Prefactor     1.0829        .14588       -.43666E-06   -.40449E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.61285
  Prefactor  = 6.71064
  Prefactor  = 0.000100001
  Prefactor  = 3.50511
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.04787
  norm       = 14.1237
  Prefactor  = 0.183345
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 83.1771
  Prefactor  = 0.889445
  Prefactor  = 9.01501
  Prefactor  = 1.51336
  Prefactor  = 4.31463
  Prefactor  = 0.0001
  Normalizat = 1.04144
  Prefactor  = 1.08292
 **********
 **   18 **HESSE 
 **********

 FCN=   5805.847     FROM HESSE     STATUS=OK           376 CALLS     2927 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    24.349        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    21.096        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          4.6128        2.5775        .86613E-04   -1.5278    
   4  Prefactor     6.7106        48.398        .15484E-03   -1.5190    
   5  Prefactor     .10000E-03    30.487        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.5051        11.492        .21565E-03   -1.5334    
   7  Prefactor     .10000E-03    39.100        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    25.445        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.0479        5.6792        .33430E-03   -1.5503    
  10  norm          14.124        6.8511        .53284E-03   -1.4956    
  11  Prefactor     .18335        13.569        .62743E-01   -1.5622    
  12  Prefactor     .10000E-03    13.017        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    2.8665        .12590E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    39.184        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.6260        .14143E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     83.177        95.086        .44038E-04   -1.3881    
  17  Prefactor     .88945        35.524        .45940E-02   -1.5519    
  18  Prefactor     9.0150        4.6183        .11186E-03   -1.5107    
  19  Prefactor     1.5134        232.18        .33207E-03   -1.5462    
  20  Prefactor     4.3146        4.3083        .15384E-03   -1.5293    
  21  Prefactor     .10000E-03    13.790        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.0414        .27995        .31353E-03   -.91655    
  23  Prefactor     1.0829        .16963        .20409E-03   -.90014    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.08731e-09
Minuit parameter uncertainties:
  1  0.000154836
  2  0.000111829
  3  2.57757
  4  36.0842
  5  0.000406049
  6  11.4994
  7  0.000159254
  8  0.000102914
  9  4.87944
  10  6.8515
  11  3.15449
  12  1.60008e-05
  13  5.45246e-07
  14  0.000148957
  15  2.15977e-06
  16  95.2603
  17  11.2487
  18  4.6185
  19  37.6379
  20  4.30861
  21  6.44972e-06
  22  0.280347
  23  0.169717
Done.

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

Extracting fit parameters...

4FGL J2139.4-4235
   Spectrum: LogParabola
298         norm:  1.412e+01  6.851e+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.083e+00  1.697e-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.041e+00  2.803e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.92
Ra Dec: 324.855 -42.590
Photon Index (Fixed Index): 1.93 +/- 0.00
Photon Flux (Fixed Index): 8.56e-08 +/- 4.15e-08
Energy Flux (Fixed Index): 6.03e-05 +/- 2.93e-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) = 5805.05577909
delta logL = 0.790981103968

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5805.03534771
delta logL = 0.811412481862

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.783       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4914       1.0000          .0000       5.0000    
     3 'Normalizat'    .97132       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1084       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=   5805.035     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      307 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.789        7.0071        .51331E-03   -.14801E-03
   2  alpha         2.4920        .48424        .87835E-02    .21645E-03
   3  Normalizat    .97129        .25713        .32279E-03    .12609E-03
   4  Prefactor     1.1083        .16807        .20190E-03    .23047E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 11.7895
  alpha      = 2.49198
  Normalizat = 0.971289
  Prefactor  = 1.10833
 **********
 **   18 **HESSE 
 **********

 FCN=   5805.035     FROM HESSE     STATUS=OK            25 CALLS      332 TOTAL
                     EDM=   .52E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.789        6.6861        .20532E-04   -1.5021    
   2  alpha         2.4920        .46202        .17567E-02   -.32082E-02
   3  Normalizat    .97129        .25700        .12912E-04   -.93999    
   4  Prefactor     1.1083        .16803        .40380E-04   -.89201    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.18839e-11
Minuit parameter uncertainties:
  1  6.68651
  2  0.464688
  3  0.257327
  4  0.168109
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/641136': 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) = 5805.03534389
delta logL = 0.811416299771

Extracting fit parameters...

4FGL J2139.4-4235
   Spectrum: LogParabola
298         norm:  1.179e+01  6.687e+00  1.000e-04  1.000e+04 ( 1.000e-12)
299        alpha:  2.492e+00  4.647e-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.108e+00  1.681e-01  0.000e+00  1.000e+01 ( 1.000e+00)
579        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
580        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
577   Normalization:  9.713e-01  2.573e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.59
Ra Dec: 324.855 -42.590
Photon Index (Free Index): 2.49 +/- 0.46
Photon Flux (Free Index): 1.46e-07 +/- 7.29e-08
Energy Flux (Free Index): 4.34e-05 +/- 1.96e-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/641136/cmap_HighResolution_541814401_542073601_4FGL_J2139.4-4235_daily_bin1167.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.56e-08', energy_flux2='4.34e-05', photon_flux_error='4.15e-08', dlogl='8.11e-01', energy_flux='6.03e-05', photon_flux2='1.46e-07', job_status='DONE', time_completed='2021-09-26 22:04:20.418022', photon_index_error2='0.46', photon_index2='2.49', ts='8.92', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', energy_flux_error2='1.96e-05', EG='1.04', time_epoch_completed='1632719060.42', return_code='0', job_id='641136', GAL2='1.11', EG2='0.97', return_code2='0', energy_flux_error='2.93e-05', photon_flux_error2='7.29e-08', ts2='10.59', photon_index='1.93' WHERE bin_id='1167' AND source_name='4FGL J2139.4-4235' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 22:04:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0155>
Subject: Job 641136: <4FGL_J2139.4-4235_daily_bin1167> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2139.4-4235_daily_bin1167 324.855 -42.5895 541814401 542073601 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 :                                   585.49 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             257.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   724 sec.
    Turnaround time :                            829 sec.

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

