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


Performing analysis on: 4FGL_J2139.4-4235_daily_bin1546
RA = 324.855, Dec = -42.5895
tmin = 640051201, tmax = 640310401
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='642846', job_status='RUN', time_executed='2021-09-26 21:57:24.801794', time_epoch_executed='1632718644.8' WHERE source_name='4FGL J2139.4-4235' and cadence='daily' and bin_id='1546'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/642846

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/642846/ft1_4FGL_J2139.4-4235_daily_bin1546.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/642846/ft2_4FGL_J2139.4-4235_daily_bin1546.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/642846/ft1_4FGL_J2139.4-4235_daily_bin1546.fits outfile=/scratch/kocevski/642846/ft1_filteredMKT_4FGL_J2139.4-4235_daily_bin1546.fits ra=324.855 dec=-42.5895 rad=12.0 tmin=640051201.0 tmax=640310401.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.73
user 3.44
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/642846/ft2_4FGL_J2139.4-4235_daily_bin1546.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/642846/ft1_filteredMKT_4FGL_J2139.4-4235_daily_bin1546.fits evtable="EVENTS" outfile="/scratch/kocevski/642846/ft1_filtered_4FGL_J2139.4-4235_daily_bin1546.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/642846/ft1_filtered_4FGL_J2139.4-4235_daily_bin1546.fits" evtable="EVENTS" scfile=/scratch/kocevski/642846/ft2_4FGL_J2139.4-4235_daily_bin1546.fits sctable="SC_DATA" outfile=/scratch/kocevski/642846/ltcube_640051201_640310401_4FGL_J2139.4-4235_daily_bin1546.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/642846/ft2_4FGL_J2139.4-4235_daily_bin1546.fits
.....................!
real 15.96
user 15.54
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/642846/ft1_filtered_4FGL_J2139.4-4235_daily_bin1546.fits evtable="EVENTS" scfile=/scratch/kocevski/642846/ft2_4FGL_J2139.4-4235_daily_bin1546.fits sctable="SC_DATA" expcube=/scratch/kocevski/642846/ltcube_640051201_640310401_4FGL_J2139.4-4235_daily_bin1546.fits outfile=/scratch/kocevski/642846/expmap_640051201_640310401_4FGL_J2139.4-4235_daily_bin1546.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/642846/ltcube_640051201_640310401_4FGL_J2139.4-4235_daily_bin1546.fits
.....................!
real 193.39
user 186.23
sys 6.69

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/642846/ft1_filtered_4FGL_J2139.4-4235_daily_bin1546.fits scfile=/scratch/kocevski/642846/ft2_4FGL_J2139.4-4235_daily_bin1546.fits outfile=/scratch/kocevski/642846/cmap_640051201_640310401_4FGL_J2139.4-4235_daily_bin1546.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.57
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/642846/ft1_filtered_4FGL_J2139.4-4235_daily_bin1546.fits scfile=/scratch/kocevski/642846/ft2_4FGL_J2139.4-4235_daily_bin1546.fits outfile=/scratch/kocevski/642846/cmap_HighResolution_640051201_640310401_4FGL_J2139.4-4235_daily_bin1546.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.59
user 0.40
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/642846/ft1_filtered_4FGL_J2139.4-4235_daily_bin1546.fits evtable="EVENTS" scfile=/scratch/kocevski/642846/ft2_4FGL_J2139.4-4235_daily_bin1546.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/642846/Model_4FGL_J2139.4-4235_daily_bin1546.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/642846/ft1_filtered_4FGL_J2139.4-4235_daily_bin1546.fits.....................!
real 60.80
user 59.23
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.278       1.0000         .10000E-03   10000.    
     2 'Prefactor '    56.333       1.0000         .10000E-03   10000.    
     3 'norm      '    2.2019       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .33232E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.580       1.0000         .10000E-03   10000.    
     7 'Prefactor '    22.745       1.0000         .10000E-03   10000.    
     8 'Prefactor '    27.506       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.4692       1.0000         .10000E-03   10000.    
    10 'norm      '    4.9213       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .48606E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    30.775       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.3794       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.0023       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.3911       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .73331       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .97367       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=   8106.090     FROM MIGRAD    STATUS=CONVERGED    918 CALLS     3073 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.254        30.120        .93683E-04    .16140E-04
   2  Prefactor     56.294        55.495        .53447E-04    .33438E-04
   3  norm          2.2021        1.4945        .86822E-04   -.85506E-04
   4  Prefactor     .10000E-03    10.277        .89966E-01** at limit **
   5  Prefactor     .10000E-03    46.486        .18142E-02** at limit **
   6  Prefactor     12.579        7.7448        .11294E-03   -.50030E-04
   7  Prefactor     22.745        20.923        .83988E-04   -.94752E-05
   8  Prefactor     27.509        28.803        .76387E-04    .22324E-05
   9  Prefactor     2.4697        3.4785        .18960E-03   -.26167E-03
  10  norm          4.9211        3.3764        .12940E-03   -.60709E-04
  11  Prefactor     .10001E-03    24.086        .25069E-02** at limit **
  12  Prefactor     .10000E-03    2.6136        .14165E-02** at limit **
  13  norm          .10000E-03    1.4030        .10396E-02** at limit **
  14  Prefactor     30.773        30.756        .72225E-04   -.42500E-04
  15  Prefactor     .10000E-03    4.1859        .17906E-02** at limit **
  16  Prefactor     .10000E-03    70.513        .18142E-02** at limit **
  17  Prefactor     2.3793        5.2966        .26557E-03   -.20745E-03
  18  Prefactor     1.0011        2.2231        .20129E-02    .47441E-02
  19  Prefactor     .10000E-03    12.800        .18142E-02** at limit **
  20  Prefactor     .10000E-03    5.2575        .36285E-03** at limit **
  21  Prefactor     3.3846        33.672        .21971E-03   -.34513E-04
  22  Normalizat    .73331        .17949        .29421E-03   -.27211E-03
  23  Prefactor     .97371        .11963        .17938E-03   -.73887E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.2536
  Prefactor  = 56.2939
  norm       = 2.20206
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 12.5786
  Prefactor  = 22.7453
  Prefactor  = 27.5091
  Prefactor  = 2.46972
  norm       = 4.92107
  Prefactor  = 0.000100008
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 30.7734
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.37933
  Prefactor  = 1.00113
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.38464
  Normalizat = 0.733314
  Prefactor  = 0.973711
 **********
 **   18 **HESSE 
 **********

 FCN=   8106.090     FROM HESSE     STATUS=OK           358 CALLS     3431 TOTAL
                     EDM=   .63E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.254        30.121        .37473E-05   -1.4853    
   2  Prefactor     56.294        55.493        .10689E-04   -1.4206    
   3  norm          2.2021        1.4944        .34729E-05   -1.5411    
   4  Prefactor     .10000E-03    10.104        .91317E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    46.493        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     12.579        7.7440        .45175E-05   -1.4998    
   7  Prefactor     22.745        20.920        .33595E-05   -1.4754    
   8  Prefactor     27.509        28.805        .30555E-05   -1.4659    
   9  Prefactor     2.4697        3.4780        .75840E-05   -1.5394    
  10  norm          4.9211        3.3762        .51760E-05   -1.5264    
  11  Prefactor     .10001E-03    24.804        .10027E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    2.6140        .28330E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.4031        .20792E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     30.773        30.754        .28890E-05   -1.4598    
  15  Prefactor     .10000E-03    4.1871        .35813E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    70.516        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.3793        5.2961        .10623E-04   -1.5399    
  18  Prefactor     1.0011        2.2190        .40258E-03   -1.5508    
  19  Prefactor     .10000E-03    12.800        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    5.2576        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     3.3846        33.666        .87884E-05   -1.5340    
  22  Normalizat    .73331        .17943        .11769E-04   -1.0259    
  23  Prefactor     .97371        .11968        .35875E-04   -.93611    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.34675e-10
Minuit parameter uncertainties:
  1  30.1464
  2  55.5437
  3  1.49446
  4  0.000363572
  5  0.000112214
  6  7.74464
  7  20.927
  8  28.8196
  9  3.47829
  10  3.37635
  11  0.000913109
  12  2.00144e-06
  13  2.85816e-07
  14  30.7699
  15  8.21572e-06
  16  0.000245289
  17  5.29712
  18  2.21919
  19  2.64101e-06
  20  1.46689e-05
  21  21.3645
  22  0.17957
  23  0.119712
Done.

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

Extracting fit parameters...

4FGL J2139.4-4235
   Spectrum: LogParabola
298         norm:  4.921e+00  3.376e+00  1.000e-04  1.000e+04 ( 1.000e-12)
299        alpha:  1.929e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
300         beta:  4.914e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
301           Eb:  8.547e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
578    Prefactor:  9.737e-01  1.197e-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:  7.333e-01  1.796e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.74
Ra Dec: 324.855 -42.590
Photon Index (Fixed Index): 1.93 +/- 0.00
Photon Flux (Fixed Index): 2.98e-08 +/- 2.05e-08
Energy Flux (Fixed Index): 2.10e-05 +/- 1.44e-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) = 8105.87107024
delta logL = 0.218812430294

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8105.86728508
delta logL = 0.222597592919

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.5737       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2845       1.0000          .0000       5.0000    
     3 'Normalizat'    .72061       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97783       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=   8105.867     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      237 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.5741        60.330        .47056E-02    .72397E-04
   2  alpha         2.2841        3.5901        .38074        .50178E-04
   3  Normalizat    .72048        .69841E-01    .67008E-01    .26308E-04
   4  Prefactor     .97781        .40553E-01    .45989E-01   -.12182E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.5741
  alpha      = 2.28406
  Normalizat = 0.72048
  Prefactor  = 0.977808
 **********
 **   18 **HESSE 
 **********

 FCN=   8105.867     FROM HESSE     STATUS=OK            31 CALLS      268 TOTAL
                     EDM=   .44E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.5741        3.2397        .11547E-03   -1.5280    
   2  alpha         2.2841        .55056        .13123E-01   -.86485E-01
   3  Normalizat    .72048        .16852        .29649E-03   -1.0309    
   4  Prefactor     .97781        .11692        .17899E-03   -.93473    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.43827e-11
Minuit parameter uncertainties:
  1  3.23984
  2  0.555148
  3  0.168644
  4  0.11695
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/642846': 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) = 8105.86728268
delta logL = 0.222599989261

Extracting fit parameters...

4FGL J2139.4-4235
   Spectrum: LogParabola
298         norm:  4.574e+00  3.240e+00  1.000e-04  1.000e+04 ( 1.000e-12)
299        alpha:  2.284e+00  5.551e-01  0.000e+00  5.000e+00 ( 1.000e+00)
300         beta:  4.914e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
301           Eb:  8.547e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
578    Prefactor:  9.778e-01  1.169e-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:  7.205e-01  1.686e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.19
Ra Dec: 324.855 -42.590
Photon Index (Free Index): 2.28 +/- 0.56
Photon Flux (Free Index): 4.25e-08 +/- 3.14e-08
Energy Flux (Free Index): 1.61e-05 +/- 1.15e-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/642846/cmap_HighResolution_640051201_640310401_4FGL_J2139.4-4235_daily_bin1546.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.98e-08', energy_flux2='1.61e-05', photon_flux_error='2.05e-08', dlogl='2.23e-01', energy_flux='2.10e-05', photon_flux2='4.25e-08', job_status='DONE', time_completed='2021-09-26 22:11:18.573556', photon_index_error2='0.56', photon_index2='2.28', ts='4.74', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', energy_flux_error2='1.15e-05', EG='0.73', time_epoch_completed='1632719478.57', return_code='0', job_id='642846', GAL2='0.98', EG2='0.72', return_code2='0', energy_flux_error='1.44e-05', photon_flux_error2='3.14e-08', ts2='5.19', photon_index='1.93' WHERE bin_id='1546' AND source_name='4FGL J2139.4-4235' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 22:11:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0075>
Subject: Job 642846: <4FGL_J2139.4-4235_daily_bin1546> in cluster <slac> Done

Job <4FGL_J2139.4-4235_daily_bin1546> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep 26 21:55:15 2021
Job was executed on host(s) <bullet0075>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 21:56:37 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:56:37 2021
Terminated at Sun Sep 26 22:11:19 2021
Results reported at Sun Sep 26 22:11:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2139.4-4235_daily_bin1546 324.855 -42.5895 640051201 640310401 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 :                                   750.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             313.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   881 sec.
    Turnaround time :                            964 sec.

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

