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


Performing analysis on: 4FGL_J2139.4-4235_daily_bin1001
RA = 324.855, Dec = -42.5895
tmin = 498787201, tmax = 499046401
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='639653', job_status='RUN', time_executed='2021-09-26 21:46:58.678899', time_epoch_executed='1632718018.68' WHERE source_name='4FGL J2139.4-4235' and cadence='daily' and bin_id='1001'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/639653

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/639653/ft1_4FGL_J2139.4-4235_daily_bin1001.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/639653/ft2_4FGL_J2139.4-4235_daily_bin1001.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/639653/ft1_4FGL_J2139.4-4235_daily_bin1001.fits outfile=/scratch/kocevski/639653/ft1_filteredMKT_4FGL_J2139.4-4235_daily_bin1001.fits ra=324.855 dec=-42.5895 rad=12.0 tmin=498787201.0 tmax=499046401.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 5.09
user 4.83
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/639653/ft2_4FGL_J2139.4-4235_daily_bin1001.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/639653/ft1_filteredMKT_4FGL_J2139.4-4235_daily_bin1001.fits evtable="EVENTS" outfile="/scratch/kocevski/639653/ft1_filtered_4FGL_J2139.4-4235_daily_bin1001.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.52
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/639653/ft1_filtered_4FGL_J2139.4-4235_daily_bin1001.fits" evtable="EVENTS" scfile=/scratch/kocevski/639653/ft2_4FGL_J2139.4-4235_daily_bin1001.fits sctable="SC_DATA" outfile=/scratch/kocevski/639653/ltcube_498787201_499046401_4FGL_J2139.4-4235_daily_bin1001.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/639653/ft2_4FGL_J2139.4-4235_daily_bin1001.fits
.....................!
real 14.26
user 13.91
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/639653/ft1_filtered_4FGL_J2139.4-4235_daily_bin1001.fits evtable="EVENTS" scfile=/scratch/kocevski/639653/ft2_4FGL_J2139.4-4235_daily_bin1001.fits sctable="SC_DATA" expcube=/scratch/kocevski/639653/ltcube_498787201_499046401_4FGL_J2139.4-4235_daily_bin1001.fits outfile=/scratch/kocevski/639653/expmap_498787201_499046401_4FGL_J2139.4-4235_daily_bin1001.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/639653/ltcube_498787201_499046401_4FGL_J2139.4-4235_daily_bin1001.fits
.....................!
real 191.21
user 186.69
sys 4.14

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/639653/ft1_filtered_4FGL_J2139.4-4235_daily_bin1001.fits scfile=/scratch/kocevski/639653/ft2_4FGL_J2139.4-4235_daily_bin1001.fits outfile=/scratch/kocevski/639653/cmap_498787201_499046401_4FGL_J2139.4-4235_daily_bin1001.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/639653/ft1_filtered_4FGL_J2139.4-4235_daily_bin1001.fits scfile=/scratch/kocevski/639653/ft2_4FGL_J2139.4-4235_daily_bin1001.fits outfile=/scratch/kocevski/639653/cmap_HighResolution_498787201_499046401_4FGL_J2139.4-4235_daily_bin1001.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/639653/ft1_filtered_4FGL_J2139.4-4235_daily_bin1001.fits evtable="EVENTS" scfile=/scratch/kocevski/639653/ft2_4FGL_J2139.4-4235_daily_bin1001.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/639653/Model_4FGL_J2139.4-4235_daily_bin1001.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/639653/ft1_filtered_4FGL_J2139.4-4235_daily_bin1001.fits.....................!
real 50.99
user 49.72
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.9961       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11704E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.2075       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .33121       1.0000         .10000E-03   10000.    
    10 'norm      '    8.3389       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    10.954       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.0005       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.1779       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    20.877       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .54510       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.3657       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=   6337.714     FROM MIGRAD    STATUS=CONVERGED    504 CALLS     2162 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    21.294        .24060E-05** at limit **
   2  Prefactor     .10000E-03    95.910        .37022E-05** at limit **
   3  norm          1.9957        1.6780       -.19508E-06    .83546E-04
   4  Prefactor     .10000E-03    89.384       -.29278E-05** at limit **
   5  Prefactor     .10000E-03    19.223        .66421E-06** at limit **
   6  Prefactor     5.2106        6.6908       -.59470E-06    .29102E-04
   7  Prefactor     .10000E-03    10.179        .13820E-05** at limit **
   8  Prefactor     .10000E-03    25.176       -.27748E-05** at limit **
   9  Prefactor     .27788        18.988        .77594E-05   -.26406E-04
  10  norm          8.3389        4.3752        .52933E-07   -.40757E-04
  11  Prefactor     .10000E-03    3.3682       -.69546E-07** at limit **
  12  Prefactor     .10000E-03    6.5645       -.38222E-07** at limit **
  13  norm          10.952        7.0807       -.83376E-07   -.14286E-04
  14  Prefactor     .10000E-03    23.327        .14416E-05** at limit **
  15  Prefactor     2.0029        9.6657       -.37619E-05    .11347E-03
  16  Prefactor     .10000E-03    93.810        .78763E-06** at limit **
  17  Prefactor     3.1740        8.8185       -.14379E-05    .10536E-03
  18  Prefactor     .10000E-03    1.3174       -.40623E-08** at limit **
  19  Prefactor     .10000E-03    24.688       -.11263E-05** at limit **
  20  Prefactor     20.874        9.3873        .20589E-06    .13689E-03
  21  Prefactor     .10000E-03    9.5188       -.73434E-06** at limit **
  22  Normalizat    .54538        .22285        .75560E-06    .91664E-04
  23  Prefactor     1.3657        .14691        .13072E-06    .13957E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  norm       = 1.99573
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 5.21063
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.277875
  norm       = 8.33888
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.9523
  Prefactor  = 0.0001
  Prefactor  = 2.00286
  Prefactor  = 0.0001
  Prefactor  = 3.17405
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.8741
  Prefactor  = 0.0001
  Normalizat = 0.54538
  Prefactor  = 1.3657
 **********
 **   18 **HESSE 
 **********

 FCN=   6337.714     FROM HESSE     STATUS=OK           366 CALLS     2528 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    21.510        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    96.509        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.9957        1.6684        .90648E-04   -1.5425    
   4  Prefactor     .10000E-03    93.603        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    19.245        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.2106        6.6725        .17615E-03   -1.5251    
   7  Prefactor     .10000E-03    10.249        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    25.561        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .27788        19.120        .23201E-02   -1.5603    
  10  norm          8.3389        4.3736        .11665E-03   -1.5130    
  11  Prefactor     .10000E-03    3.3990        .14266E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    6.6840        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          10.952        7.0783        .12105E-03   -1.5046    
  14  Prefactor     .10000E-03    23.479        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.0029        9.7772        .29281E-03   -1.5425    
  16  Prefactor     .10000E-03    94.009        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     3.1740        8.8535        .22733E-03   -1.5352    
  18  Prefactor     .10000E-03    1.3232        .89209E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    24.767        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     20.874        9.3976        .87662E-04   -1.4794    
  21  Prefactor     .10000E-03    9.5490        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .54538        .23978        .38493E-03   -1.1036    
  23  Prefactor     1.3657        .16020        .17769E-03   -.81374    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.44025e-08
Minuit parameter uncertainties:
  1  0.000252564
  2  0.0007159
  3  1.66843
  4  0.000619428
  5  6.62762e-05
  6  6.6734
  7  9.94885e-05
  8  0.000345952
  9  4.61074
  10  4.37377
  11  9.33345e-06
  12  1.78032e-05
  13  7.07887
  14  0.000162283
  15  8.85251
  16  0.000341301
  17  8.8571
  18  2.82565e-06
  19  0.000152027
  20  9.39828
  21  6.03742e-05
  22  0.24024
  23  0.160263
Done.

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

Extracting fit parameters...

4FGL J2139.4-4235
   Spectrum: LogParabola
298         norm:  8.339e+00  4.374e+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.366e+00  1.603e-01  0.000e+00  1.000e+01 ( 1.000e+00)
579        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
580        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
577   Normalization:  5.454e-01  2.402e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 17.52
Ra Dec: 324.855 -42.590
Photon Index (Fixed Index): 1.93 +/- 0.00
Photon Flux (Fixed Index): 5.05e-08 +/- 2.65e-08
Energy Flux (Fixed Index): 3.56e-05 +/- 1.87e-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) = 6336.57259574
delta logL = 1.14167387688

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6336.12978092
delta logL = 1.58448869172

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.1174       1.0000         .10000E-03   10000.    
     2 'alpha     '    .99721       1.0000          .0000       5.0000    
     3 'Normalizat'    .58181       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3589       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5810E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6336.130     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      218 TOTAL
                     EDM=   .77E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.1105        2.3941        .57411E-02   -.23733E-03
   2  alpha         .99624        .30768        .23378       -.36087E-04
   3  Normalizat    .58188        .20339        .84296E-01    .40893E-04
   4  Prefactor     1.3590        .14346        .31654E-01   -.51729E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 3.1105
  alpha      = 0.996242
  Normalizat = 0.58188
  Prefactor  = 1.35901
 **********
 **   18 **HESSE 
 **********

 FCN=   6336.130     FROM HESSE     STATUS=OK            33 CALLS      251 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.1105        3.9232        .88157E-04   -1.5355    
   2  alpha         .99624        .51507        .10046E-01   -.64538    
   3  Normalizat    .58188        .22271        .37337E-03   -1.0876    
   4  Prefactor     1.3590        .15759        .17819E-03   -.81569    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.91209e-09
Minuit parameter uncertainties:
  1  3.92354
  2  0.520961
  3  0.223056
  4  0.157641
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/639653': 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) = 6336.12977848
delta logL = 1.5844911369

Extracting fit parameters...

4FGL J2139.4-4235
   Spectrum: LogParabola
298         norm:  3.111e+00  3.924e+00  1.000e-04  1.000e+04 ( 1.000e-12)
299        alpha:  9.962e-01  5.210e-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.359e+00  1.576e-01  0.000e+00  1.000e+01 ( 1.000e+00)
579        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
580        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
577   Normalization:  5.819e-01  2.231e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 20.69
Ra Dec: 324.855 -42.590
Photon Index (Free Index): 1.00 +/- 0.52
Photon Flux (Free Index): 1.45e-08 +/- 1.30e-08
Energy Flux (Free Index): 1.34e-04 +/- 1.29e-04

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/639653/cmap_HighResolution_498787201_499046401_4FGL_J2139.4-4235_daily_bin1001.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.05e-08', energy_flux2='1.34e-04', photon_flux_error='2.65e-08', dlogl='1.58e+00', energy_flux='3.56e-05', photon_flux2='1.45e-08', job_status='DONE', time_completed='2021-09-26 21:56:55.840264', photon_index_error2='0.52', photon_index2='1.00', ts='17.52', fit_tolerance='1e-08', GAL='1.37', photon_index_error='0.00', energy_flux_error2='1.29e-04', EG='0.55', time_epoch_completed='1632718615.84', return_code='0', job_id='639653', GAL2='1.36', EG2='0.58', return_code2='0', energy_flux_error='1.87e-05', photon_flux_error2='1.30e-08', ts2='20.69', photon_index='1.93' WHERE bin_id='1001' AND source_name='4FGL J2139.4-4235' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 21:56:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0187>
Subject: Job 639653: <4FGL_J2139.4-4235_daily_bin1001> in cluster <slac> Done

Job <4FGL_J2139.4-4235_daily_bin1001> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep 26 21:45:22 2021
Job was executed on host(s) <bullet0187>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 21:46:06 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:46:06 2021
Terminated at Sun Sep 26 21:56:56 2021
Results reported at Sun Sep 26 21:56:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2139.4-4235_daily_bin1001 324.855 -42.5895 498787201 499046401 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 :                                   592.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             332.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   650 sec.
    Turnaround time :                            694 sec.

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

