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


Performing analysis on: 4FGL_J2139.4-4235_daily_bin1654
RA = 324.855, Dec = -42.5895
tmin = 668044801, tmax = 668304001
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='100196', job_status='RUN', time_executed='2022-03-07 01:22:43.758012', time_epoch_executed='1646644963.76' WHERE source_name='4FGL J2139.4-4235' and cadence='daily' and bin_id='1654'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/100196

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/100196/ft1_4FGL_J2139.4-4235_daily_bin1654.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/100196/ft2_4FGL_J2139.4-4235_daily_bin1654.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/100196/ft1_4FGL_J2139.4-4235_daily_bin1654.fits outfile=/scratch/kocevski/100196/ft1_filteredMKT_4FGL_J2139.4-4235_daily_bin1654.fits ra=324.855 dec=-42.5895 rad=12.0 tmin=668044801.0 tmax=668304001.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.65
user 3.44
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/100196/ft2_4FGL_J2139.4-4235_daily_bin1654.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/100196/ft1_filteredMKT_4FGL_J2139.4-4235_daily_bin1654.fits evtable="EVENTS" outfile="/scratch/kocevski/100196/ft1_filtered_4FGL_J2139.4-4235_daily_bin1654.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.49
user 0.34
sys 0.14
Number of photons that survived the gtmktime cut: 721

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/100196/ft1_filtered_4FGL_J2139.4-4235_daily_bin1654.fits" evtable="EVENTS" scfile=/scratch/kocevski/100196/ft2_4FGL_J2139.4-4235_daily_bin1654.fits sctable="SC_DATA" outfile=/scratch/kocevski/100196/ltcube_668044801_668304001_4FGL_J2139.4-4235_daily_bin1654.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/100196/ft2_4FGL_J2139.4-4235_daily_bin1654.fits
.....................!
real 14.04
user 13.65
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/100196/ft1_filtered_4FGL_J2139.4-4235_daily_bin1654.fits evtable="EVENTS" scfile=/scratch/kocevski/100196/ft2_4FGL_J2139.4-4235_daily_bin1654.fits sctable="SC_DATA" expcube=/scratch/kocevski/100196/ltcube_668044801_668304001_4FGL_J2139.4-4235_daily_bin1654.fits outfile=/scratch/kocevski/100196/expmap_668044801_668304001_4FGL_J2139.4-4235_daily_bin1654.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/100196/ltcube_668044801_668304001_4FGL_J2139.4-4235_daily_bin1654.fits
.....................!
real 191.08
user 185.93
sys 4.75

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/100196/ft1_filtered_4FGL_J2139.4-4235_daily_bin1654.fits scfile=/scratch/kocevski/100196/ft2_4FGL_J2139.4-4235_daily_bin1654.fits outfile=/scratch/kocevski/100196/cmap_668044801_668304001_4FGL_J2139.4-4235_daily_bin1654.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.55
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/100196/ft1_filtered_4FGL_J2139.4-4235_daily_bin1654.fits scfile=/scratch/kocevski/100196/ft2_4FGL_J2139.4-4235_daily_bin1654.fits outfile=/scratch/kocevski/100196/cmap_HighResolution_668044801_668304001_4FGL_J2139.4-4235_daily_bin1654.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.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/100196/ft1_filtered_4FGL_J2139.4-4235_daily_bin1654.fits evtable="EVENTS" scfile=/scratch/kocevski/100196/ft2_4FGL_J2139.4-4235_daily_bin1654.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/100196/Model_4FGL_J2139.4-4235_daily_bin1654.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/100196/ft1_filtered_4FGL_J2139.4-4235_daily_bin1654.fits.....................!
real 59.28
user 57.90
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.1761       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.1599       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.886       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.6092       1.0000         .10000E-03   10000.    
    10 'norm      '    3.4281       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10330E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.6125       1.0000         .10000E-03   10000.    
    13 'norm      '    2.7002       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .13208E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.0990       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10234E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10235E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    129.28       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .16153E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    23.631       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .80738       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.2003       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=   7808.210     FROM MIGRAD    STATUS=CONVERGED    552 CALLS     2317 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.652        .84841E-06** at limit **
   2  Prefactor     .10000E-03    45.989        .42447E-06** at limit **
   3  norm          .10000E-03    .87000        .32914E-06** at limit **
   4  Prefactor     6.1811        29.395        .14529E-06   -.44935E-04
   5  Prefactor     .10000E-03    19.523        .16694E-06** at limit **
   6  Prefactor     6.1618        5.6772        .90123E-07    .71464E-05
   7  Prefactor     .10000E-03    10.496        .74439E-07** at limit **
   8  Prefactor     11.889        19.003       -.38120E-06   -.42103E-04
   9  Prefactor     1.6096        3.9688        .10534E-05    .98740E-04
  10  norm          3.4287        3.1245        .33497E-07   -.36681E-04
  11  Prefactor     .10001E-03    4.1267        .12071E-05** at limit **
  12  Prefactor     3.6125        6.2471        .51696E-06   -.71349E-04
  13  norm          2.7005        5.5197        .30804E-06   -.13540E-03
  14  Prefactor     .10115E-03    34.429       -.43165E-05** at limit **
  15  Prefactor     1.1026        7.8002        .45364E-05    .16417E-03
  16  Prefactor     .10000E-03    42.045       -.58849E-06** at limit **
  17  Prefactor     .10000E-03    13.538       -.11749E-05** at limit **
  18  Prefactor     .10000E-03    3.1804       -.46383E-06** at limit **
  19  Prefactor     129.21        57.312       -.27908E-05   -.41608E-03
  20  Prefactor     .12917E-03    5.1058        .16254E-05** at limit **
  21  Prefactor     23.637        22.960        .24048E-06   -.37590E-04
  22  Normalizat    .80718        .18500       -.85801E-06   -.24104E-03
  23  Prefactor     1.2004        .12227       -.42281E-06   -.37612E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 6.18115
  Prefactor  = 0.0001
  Prefactor  = 6.16181
  Prefactor  = 0.0001
  Prefactor  = 11.8894
  Prefactor  = 1.60958
  norm       = 3.42866
  Prefactor  = 0.000100014
  Prefactor  = 3.61255
  norm       = 2.7005
  Prefactor  = 0.000101149
  Prefactor  = 1.10258
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 129.208
  Prefactor  = 0.000129165
  Prefactor  = 23.6373
  Normalizat = 0.807176
  Prefactor  = 1.20039
 **********
 **   18 **HESSE 
 **********

 FCN=   7808.210     FROM HESSE     STATUS=OK           390 CALLS     2707 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.707        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    46.094        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    1.6642        .15798E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.1811        29.596        .16154E-03   -1.5211    
   5  Prefactor     .10000E-03    19.563        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.1618        5.6669        .16175E-03   -1.5211    
   7  Prefactor     .10000E-03    10.540        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     11.889        18.998        .11619E-03   -1.5018    
   9  Prefactor     1.6096        3.9611        .25792E-03   -1.5454    
  10  norm          3.4287        3.1259        .14419E-03   -1.5338    
  11  Prefactor     .10001E-03    13.613        .33196E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.6125        6.1744        .21258E-03   -1.5328    
  13  norm          2.7005        5.5143        .24791E-03   -1.5379    
  14  Prefactor     .10115E-03    31.288        .12798       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.1026        8.3332        .45371E-03   -1.5498    
  16  Prefactor     .10000E-03    42.115        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    13.923        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    3.2887        .30623E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     129.21        59.781        .17705E-03   -1.3430    
  20  Prefactor     .12917E-03    5.1345        .54378E-01   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     23.637        22.984        .82401E-04   -1.4735    
  22  Normalizat    .80718        .20893        .31896E-03   -.99803    
  23  Prefactor     1.2004        .13959        .18681E-03   -.86319    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.03481e-09
Minuit parameter uncertainties:
  1  0.000114265
  2  9.06226e-05
  3  1.27765e-05
  4  27.0725
  5  2.45665e-05
  6  5.6674
  7  4.00969e-06
  8  19.0079
  9  3.96178
  10  3.12602
  11  0.000865938
  12  6.17553
  13  5.51534
  14  0.0119977
  15  6.06323
  16  0.000174575
  17  0.000134551
  18  1.47937e-05
  19  59.8093
  20  0.0244764
  21  22.9926
  22  0.209134
  23  0.139631
Done.

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

Extracting fit parameters...

4FGL J2139.4-4235
   Spectrum: LogParabola
298         norm:  3.429e+00  3.126e+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.200e+00  1.396e-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:  8.072e-01  2.091e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.23
Ra Dec: 324.855 -42.590
Photon Index (Fixed Index): 1.93 +/- 0.00
Photon Flux (Fixed Index): 2.08e-08 +/- 1.89e-08
Energy Flux (Fixed Index): 1.46e-05 +/- 1.34e-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) = 7808.20482156
delta logL = 0.00534657804292

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7808.20300028
delta logL = 0.00716786053999

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.6193       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0386       1.0000          .0000       5.0000    
     3 'Normalizat'    .80302       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2013       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=   7808.203     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      233 TOTAL
                     EDM=   .65E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.6191        3.2791        .14145E-03    .23094E-02
   2  alpha         2.0384        .83423        .19230E-01    .16905E-03
   3  Normalizat    .80304        .19616        .31969E-03   -.89615E-04
   4  Prefactor     1.2013        .13608        .18674E-03   -.20495E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.61908
  alpha      = 2.03845
  Normalizat = 0.803041
  Prefactor  = 1.20132
 **********
 **   18 **HESSE 
 **********

 FCN=   7808.203     FROM HESSE     STATUS=OK            23 CALLS      256 TOTAL
                     EDM=   .69E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.6191        3.3358        .28290E-04   -1.5327    
   2  alpha         2.0384        .84792        .76921E-03   -.18569    
   3  Normalizat    .80304        .19635        .12788E-04   -.99956    
   4  Prefactor     1.2013        .13616        .37347E-04   -.86291    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.86114e-09
Minuit parameter uncertainties:
  1  3.33592
  2  0.865727
  3  0.196524
  4  0.136197
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/100196': 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) = 7808.20300025
delta logL = 0.00716788285717

Extracting fit parameters...

4FGL J2139.4-4235
   Spectrum: LogParabola
298         norm:  3.619e+00  3.336e+00  1.000e-04  1.000e+04 ( 1.000e-12)
299        alpha:  2.038e+00  8.657e-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.201e+00  1.362e-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:  8.030e-01  1.965e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.25
Ra Dec: 324.855 -42.590
Photon Index (Free Index): 2.04 +/- 0.87
Photon Flux (Free Index): 2.48e-08 +/- 3.88e-08
Energy Flux (Free Index): 1.40e-05 +/- 1.31e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/100196/cmap_HighResolution_668044801_668304001_4FGL_J2139.4-4235_daily_bin1654.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.08e-08', energy_flux2='1.40e-05', photon_flux_error='1.89e-08', dlogl='7.17e-03', energy_flux='1.46e-05', photon_flux2='2.48e-08', job_status='DONE', time_completed='2022-03-07 01:33:34.653635', photon_index_error2='0.87', photon_index2='2.04', ts='4.23', fit_tolerance='1e-08', GAL='1.20', photon_index_error='0.00', energy_flux_error2='1.31e-05', EG='0.81', time_epoch_completed='1646645614.65', return_code='0', job_id='100196', GAL2='1.20', EG2='0.80', return_code2='0', energy_flux_error='1.34e-05', photon_flux_error2='3.88e-08', ts2='4.25', photon_index='1.93' WHERE bin_id='1654' AND source_name='4FGL J2139.4-4235' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Mar  7 01:33:34 PST 2022


------------------------------------------------------------
Sender: LSF System <scs@bullet0009>
Subject: Job 100196: <4FGL_J2139.4-4235_daily_bin1654> in cluster <slac> Done

Job <4FGL_J2139.4-4235_daily_bin1654> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Mar  7 01:20:39 2022
Job was executed on host(s) <bullet0009>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Mar  7 01:21:33 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Mar  7 01:21:33 2022
Terminated at Mon Mar  7 01:33:35 2022
Results reported at Mon Mar  7 01:33:35 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2139.4-4235_daily_bin1654 324.855 -42.5895 668044801 668304001 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 :                                   653.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             312.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   721 sec.
    Turnaround time :                            776 sec.

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

