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


Performing analysis on: 4FGL_J2139.4-4235_daily_bin753
RA = 324.855, Dec = -42.5895
tmin = 434505601, tmax = 434764801
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='636896', job_status='RUN', time_executed='2021-09-26 21:36:21.317167', time_epoch_executed='1632717381.32' WHERE source_name='4FGL J2139.4-4235' and cadence='daily' and bin_id='753'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/636896

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/636896/ft1_4FGL_J2139.4-4235_daily_bin753.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/636896/ft2_4FGL_J2139.4-4235_daily_bin753.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/636896/ft1_4FGL_J2139.4-4235_daily_bin753.fits outfile=/scratch/kocevski/636896/ft1_filteredMKT_4FGL_J2139.4-4235_daily_bin753.fits ra=324.855 dec=-42.5895 rad=12.0 tmin=434505601.0 tmax=434764801.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 6.04
user 5.69
sys 0.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/636896/ft1_filtered_4FGL_J2139.4-4235_daily_bin753.fits" evtable="EVENTS" scfile=/scratch/kocevski/636896/ft2_4FGL_J2139.4-4235_daily_bin753.fits sctable="SC_DATA" outfile=/scratch/kocevski/636896/ltcube_434505601_434764801_4FGL_J2139.4-4235_daily_bin753.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/636896/ft2_4FGL_J2139.4-4235_daily_bin753.fits
.....................!
real 12.93
user 12.55
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/636896/ft1_filtered_4FGL_J2139.4-4235_daily_bin753.fits evtable="EVENTS" scfile=/scratch/kocevski/636896/ft2_4FGL_J2139.4-4235_daily_bin753.fits sctable="SC_DATA" expcube=/scratch/kocevski/636896/ltcube_434505601_434764801_4FGL_J2139.4-4235_daily_bin753.fits outfile=/scratch/kocevski/636896/expmap_434505601_434764801_4FGL_J2139.4-4235_daily_bin753.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/636896/ltcube_434505601_434764801_4FGL_J2139.4-4235_daily_bin753.fits
.....................!
real 191.15
user 185.63
sys 5.12

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/636896/ft1_filtered_4FGL_J2139.4-4235_daily_bin753.fits scfile=/scratch/kocevski/636896/ft2_4FGL_J2139.4-4235_daily_bin753.fits outfile=/scratch/kocevski/636896/cmap_434505601_434764801_4FGL_J2139.4-4235_daily_bin753.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.54
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/636896/ft1_filtered_4FGL_J2139.4-4235_daily_bin753.fits scfile=/scratch/kocevski/636896/ft2_4FGL_J2139.4-4235_daily_bin753.fits outfile=/scratch/kocevski/636896/cmap_HighResolution_434505601_434764801_4FGL_J2139.4-4235_daily_bin753.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.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/636896/ft1_filtered_4FGL_J2139.4-4235_daily_bin753.fits evtable="EVENTS" scfile=/scratch/kocevski/636896/ft2_4FGL_J2139.4-4235_daily_bin753.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/636896/Model_4FGL_J2139.4-4235_daily_bin753.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/636896/ft1_filtered_4FGL_J2139.4-4235_daily_bin753.fits.....................!
real 38.24
user 36.89
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    58.172       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.1498       1.0000         .10000E-03   10000.    
     3 'norm      '    6.8720       1.0000         .10000E-03   10000.    
     4 'Prefactor '    67.291       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.0334       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.4222       1.0000         .10000E-03   10000.    
    10 'norm      '    20.249       1.0000         .10000E-03   10000.    
    11 'Prefactor '    15.749       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    12.123       1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.7886       1.0000         .10000E-03   10000.    
    16 'Prefactor '    44.218       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    113.75       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    19.442       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0239       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .62345       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=   4001.500     FROM MIGRAD    STATUS=CONVERGED    482 CALLS     2949 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     58.186        57.440        .21606E-05    .11441E-03
   2  Prefactor     3.1917        460.56        .21577E-04    .38504E-04
   3  norm          6.8725        2.9510        .37165E-07   -.81803E-04
   4  Prefactor     67.290        35.991        .84865E-07   -.39516E-04
   5  Prefactor     .10000E-03    18.507       -.45497E-07** at limit **
   6  Prefactor     .10000E-03    9.5254       -.41343E-06** at limit **
   7  Prefactor     8.0274        51.935       -.78452E-06   -.28485E-04
   8  Prefactor     .10000E-03    18.446       -.95259E-07** at limit **
   9  Prefactor     4.4222        4.9778        .25110E-05   -.44702E-03
  10  norm          20.247        9.3188        .15981E-06    .26684E-05
  11  Prefactor     15.751        10.949        .27171E-06    .18037E-05
  12  Prefactor     .10000E-03    7.6120        .98997E-08** at limit **
  13  norm          .10000E-03    2.6323       -.18361E-08** at limit **
  14  Prefactor     12.117        36.198       -.24481E-05   -.49711E-04
  15  Prefactor     8.7867        10.312        .16394E-05   -.19034E-03
  16  Prefactor     44.243        100.28       -.23505E-06    .41469E-04
  17  Prefactor     .10000E-03    4.0572       -.20806E-07** at limit **
  18  Prefactor     .10000E-03    2.1578        .16569E-06** at limit **
  19  Prefactor     113.77        80.266        .17922E-05    .58237E-04
  20  Prefactor     .10000E-03    1.9272        .97039E-08** at limit **
  21  Prefactor     19.434        32.674       -.10522E-05   -.75306E-04
  22  Normalizat    1.0242        .22834       -.12247E-05   -.18958E-04
  23  Prefactor     .62332        .14326       -.53600E-06   -.40638E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 58.1861
  Prefactor  = 3.19171
  norm       = 6.87245
  Prefactor  = 67.2896
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.0274
  Prefactor  = 0.0001
  Prefactor  = 4.42223
  norm       = 20.2467
  Prefactor  = 15.751
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 12.1175
  Prefactor  = 8.78666
  Prefactor  = 44.2435
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 113.771
  Prefactor  = 0.0001
  Prefactor  = 19.4338
  Normalizat = 1.02419
  Prefactor  = 0.623322
 **********
 **   18 **HESSE 
 **********

 FCN=   4001.500     FROM HESSE     STATUS=OK           368 CALLS     3317 TOTAL
                     EDM=   .60E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     58.186        57.274        .52600E-04   -1.4181    
   2  Prefactor     3.1917        471.90        .22839E-03   -1.5351    
   3  norm          6.8725        2.9519        .67447E-04   -1.5184    
   4  Prefactor     67.290        36.015        .48928E-04   -1.4066    
   5  Prefactor     .10000E-03    18.512        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    9.6889        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     8.0274        51.621        .14146E-03   -1.5141    
   8  Prefactor     .10000E-03    18.484        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.4222        5.0326        .71569E-03   -1.5287    
  10  norm          20.247        9.2869        .89008E-04   -1.4808    
  11  Prefactor     15.751        10.983        .10093E-03   -1.4914    
  12  Prefactor     .10000E-03    7.6448        .17035E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    2.6358        .10023E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     12.117        36.256        .11505E-03   -1.5012    
  15  Prefactor     8.7867        10.375        .67603E-03   -1.5115    
  16  Prefactor     44.243        101.29        .60291E-04   -1.4377    
  17  Prefactor     .10000E-03    4.0861        .12442E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.1821        .90629E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     113.77        80.797        .37720E-04   -1.3571    
  20  Prefactor     .10000E-03    1.9300        .85759E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     19.434        32.893        .90835E-04   -1.4826    
  22  Normalizat    1.0242        .25658        .25504E-03   -.92224    
  23  Prefactor     .62332        .16024        .21405E-03   -1.0661    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.96832e-10
Minuit parameter uncertainties:
  1  57.3278
  2  78.2542
  3  2.95195
  4  36.0267
  5  3.60118e-06
  6  7.57301e-06
  7  40.764
  8  1.01938e-05
  9  5.03308
  10  9.2876
  11  10.9847
  12  7.23012e-06
  13  1.31882e-06
  14  36.3224
  15  10.3772
  16  101.691
  17  4.24626e-06
  18  2.27146e-06
  19  80.8755
  20  2.74005e-08
  21  32.9232
  22  0.256888
  23  0.160361
Done.

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

Extracting fit parameters...

4FGL J2139.4-4235
   Spectrum: LogParabola
298         norm:  2.025e+01  9.288e+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:  6.233e-01  1.604e-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.024e+00  2.569e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 13.04
Ra Dec: 324.855 -42.590
Photon Index (Fixed Index): 1.93 +/- 0.00
Photon Flux (Fixed Index): 1.23e-07 +/- 5.63e-08
Energy Flux (Fixed Index): 8.65e-05 +/- 3.97e-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) = 3999.61079803
delta logL = 1.88902150242

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3999.60987539
delta logL = 1.88994414889

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.071       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7204       1.0000          .0000       5.0000    
     3 'Normalizat'    .91208       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .67027       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=   3999.610     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      302 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.077        8.7684        .36485E-03   -.43780E-04
   2  alpha         2.7208        .50974        .57103E-02    .17197E-03
   3  Normalizat    .91212        .24291        .26744E-03   -.53796E-04
   4  Prefactor     .67009        .16034        .20691E-03   -.64616E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 12.0774
  alpha      = 2.72077
  Normalizat = 0.912121
  Prefactor  = 0.670085
 **********
 **   18 **HESSE 
 **********

 FCN=   3999.610     FROM HESSE     STATUS=OK            25 CALLS      327 TOTAL
                     EDM=   .56E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.077        8.1116        .14594E-04   -1.5013    
   2  alpha         2.7208        .47181        .11421E-02    .88423E-01
   3  Normalizat    .91212        .24244        .10697E-04   -.96036    
   4  Prefactor     .67009        .16001        .82764E-05   -1.0471    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.55985e-12
Minuit parameter uncertainties:
  1  8.11232
  2  0.474675
  3  0.242726
  4  0.160122
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/636896': 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) = 3999.60987012
delta logL = 1.88994941298

Extracting fit parameters...

4FGL J2139.4-4235
   Spectrum: LogParabola
298         norm:  1.208e+01  8.112e+00  1.000e-04  1.000e+04 ( 1.000e-12)
299        alpha:  2.721e+00  4.747e-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:  6.701e-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:  9.121e-01  2.427e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 16.88
Ra Dec: 324.855 -42.590
Photon Index (Free Index): 2.72 +/- 0.47
Photon Flux (Free Index): 2.11e-07 +/- 8.13e-08
Energy Flux (Free Index): 5.14e-05 +/- 2.05e-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/636896/cmap_HighResolution_434505601_434764801_4FGL_J2139.4-4235_daily_bin753.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.23e-07', energy_flux2='5.14e-05', photon_flux_error='5.63e-08', dlogl='1.89e+00', energy_flux='8.65e-05', photon_flux2='2.11e-07', job_status='DONE', time_completed='2021-09-26 21:45:34.652165', photon_index_error2='0.47', photon_index2='2.72', ts='13.04', fit_tolerance='1e-08', GAL='0.62', photon_index_error='0.00', energy_flux_error2='2.05e-05', EG='1.02', time_epoch_completed='1632717934.65', return_code='0', job_id='636896', GAL2='0.67', EG2='0.91', return_code2='0', energy_flux_error='3.97e-05', photon_flux_error2='8.13e-08', ts2='16.88', photon_index='1.93' WHERE bin_id='753' AND source_name='4FGL J2139.4-4235' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 21:45:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0088>
Subject: Job 636896: <4FGL_J2139.4-4235_daily_bin753> in cluster <slac> Done

Job <4FGL_J2139.4-4235_daily_bin753> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Sep 26 21:35:24 2021
Job was executed on host(s) <bullet0088>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 21:36: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:36:04 2021
Terminated at Sun Sep 26 21:45:35 2021
Results reported at Sun Sep 26 21:45:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2139.4-4235_daily_bin753 324.855 -42.5895 434505601 434764801 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 :                                   539.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             265.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   570 sec.
    Turnaround time :                            611 sec.

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

