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


Performing analysis on: 4FGL_J2139.4-4235_daily_bin1045
RA = 324.855, Dec = -42.5895
tmin = 510192001, tmax = 510451201
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='640940', job_status='RUN', time_executed='2021-09-26 21:52:27.645091', time_epoch_executed='1632718347.65' WHERE source_name='4FGL J2139.4-4235' and cadence='daily' and bin_id='1045'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/640940

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/640940/ft1_4FGL_J2139.4-4235_daily_bin1045.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/640940/ft2_4FGL_J2139.4-4235_daily_bin1045.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/640940/ft1_4FGL_J2139.4-4235_daily_bin1045.fits outfile=/scratch/kocevski/640940/ft1_filteredMKT_4FGL_J2139.4-4235_daily_bin1045.fits ra=324.855 dec=-42.5895 rad=12.0 tmin=510192001.0 tmax=510451201.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 4.34
user 4.08
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/640940/ft2_4FGL_J2139.4-4235_daily_bin1045.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/640940/ft1_filteredMKT_4FGL_J2139.4-4235_daily_bin1045.fits evtable="EVENTS" outfile="/scratch/kocevski/640940/ft1_filtered_4FGL_J2139.4-4235_daily_bin1045.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/640940/ft1_filtered_4FGL_J2139.4-4235_daily_bin1045.fits" evtable="EVENTS" scfile=/scratch/kocevski/640940/ft2_4FGL_J2139.4-4235_daily_bin1045.fits sctable="SC_DATA" outfile=/scratch/kocevski/640940/ltcube_510192001_510451201_4FGL_J2139.4-4235_daily_bin1045.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/640940/ft2_4FGL_J2139.4-4235_daily_bin1045.fits
.....................!
real 12.90
user 12.53
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/640940/ft1_filtered_4FGL_J2139.4-4235_daily_bin1045.fits evtable="EVENTS" scfile=/scratch/kocevski/640940/ft2_4FGL_J2139.4-4235_daily_bin1045.fits sctable="SC_DATA" expcube=/scratch/kocevski/640940/ltcube_510192001_510451201_4FGL_J2139.4-4235_daily_bin1045.fits outfile=/scratch/kocevski/640940/expmap_510192001_510451201_4FGL_J2139.4-4235_daily_bin1045.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/640940/ltcube_510192001_510451201_4FGL_J2139.4-4235_daily_bin1045.fits
.....................!
real 191.86
user 185.91
sys 5.57

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/640940/ft1_filtered_4FGL_J2139.4-4235_daily_bin1045.fits scfile=/scratch/kocevski/640940/ft2_4FGL_J2139.4-4235_daily_bin1045.fits outfile=/scratch/kocevski/640940/cmap_510192001_510451201_4FGL_J2139.4-4235_daily_bin1045.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/640940/ft1_filtered_4FGL_J2139.4-4235_daily_bin1045.fits scfile=/scratch/kocevski/640940/ft2_4FGL_J2139.4-4235_daily_bin1045.fits outfile=/scratch/kocevski/640940/cmap_HighResolution_510192001_510451201_4FGL_J2139.4-4235_daily_bin1045.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.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/640940/ft1_filtered_4FGL_J2139.4-4235_daily_bin1045.fits evtable="EVENTS" scfile=/scratch/kocevski/640940/ft2_4FGL_J2139.4-4235_daily_bin1045.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/640940/Model_4FGL_J2139.4-4235_daily_bin1045.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/640940/ft1_filtered_4FGL_J2139.4-4235_daily_bin1045.fits.....................!
real 49.97
user 48.55
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    21.275       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    92.242       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.1826       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    40.020       1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.8774       1.0000         .10000E-03   10000.    
    10 'norm      '    12.583       1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.326       1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.5922       1.0000         .10000E-03   10000.    
    13 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10102E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    123.41       1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.6911       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.6090       1.0000         .10000E-03   10000.    
    20 'Prefactor '    11.395       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .89805       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0229       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5810E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6433.382     FROM MIGRAD    STATUS=CONVERGED     85 CALLS     2109 TOTAL
                     EDM=   .73E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.205       -.31091E-05** at limit **
   2  Prefactor     21.274        1.0007        .19653E-08   -.26801E-04
   3  norm          .10000E-03    .78929       -.22479E-06** at limit **
   4  Prefactor     92.237        1.2531       -.73206E-07    .57130E-03
   5  Prefactor     .10000E-03    12.739        .14569E-04** at limit **
   6  Prefactor     9.1805        1.8241       -.11718E-05    .53877E-03
   7  Prefactor     .10006E-03    219.46       -.12658E-04** at limit **
   8  Prefactor     40.036        2.8284        .54320E-06   -.24409E-02
   9  Prefactor     8.8784        4.8726        .22576E-05    .51472E-04
  10  norm          12.579        5.4652        .63893E-06    .53250E-03
  11  Prefactor     11.326        1.0195       -.86607E-07   -.55673E-05
  12  Prefactor     7.5916        1.0844       -.78917E-07   -.16823E-04
  13  norm          .10000E-03    3.1040       -.43048E-07** at limit **
  14  Prefactor     .10000E-03    28.584        .18398E-05** at limit **
  15  Prefactor     .10000E-03    4.2365       -.39252E-07** at limit **
  16  Prefactor     123.42        1.4599        .19045E-06   -.33519E-02
  17  Prefactor     5.6945        1.4404        .10856E-05   -.45369E-03
  18  Prefactor     .10000E-03    1.7367        .13633E-06** at limit **
  19  Prefactor     2.6154        1.5092        .10019E-05   -.32279E-03
  20  Prefactor     11.397        1.2828        .41562E-06    .47126E-03
  21  Prefactor     .10000E-03    13.426       -.11636E-04** at limit **
  22  Normalizat    .89771        .22027       -.36375E-05    .56312E-04
  23  Prefactor     1.0231        .15048        .98463E-06    .11600E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 21.2744
  norm       = 0.0001
  Prefactor  = 92.2371
  Prefactor  = 0.000100001
  Prefactor  = 9.18049
  Prefactor  = 0.000100056
  Prefactor  = 40.0365
  Prefactor  = 8.87835
  norm       = 12.5793
  Prefactor  = 11.3264
  Prefactor  = 7.59165
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 123.417
  Prefactor  = 5.69449
  Prefactor  = 0.0001
  Prefactor  = 2.61541
  Prefactor  = 11.397
  Prefactor  = 0.0001
  Normalizat = 0.897715
  Prefactor  = 1.02306
 **********
 **   18 **HESSE 
 **********

 FCN=   6433.382     FROM HESSE     STATUS=OK           418 CALLS     2527 TOTAL
                     EDM=   .12E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.221        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     21.274        35.193        .21710E-02   -1.4785    
   3  norm          .10000E-03    .77419        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     92.237        39.296        .10461E-02   -1.3784    
   5  Prefactor     .10000E-03    13.070        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     9.1805        9.5009        .33065E-02   -1.5102    
   7  Prefactor     .10006E-03    212.26        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     40.036        42.159        .15840E-02   -1.4442    
   9  Prefactor     8.8784        4.9702        .33631E-02   -1.5112    
  10  norm          12.579        5.5265        .28231E-02   -1.4998    
  11  Prefactor     11.326        9.0623        .29760E-02   -1.5035    
  12  Prefactor     7.5916        7.3239        .36386E-02   -1.5157    
  13  norm          .10000E-03    3.0977        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    28.461        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.2176        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     123.42        91.596        .90578E-03   -1.3482    
  17  Prefactor     5.6945        10.385        .42094E-02   -1.5231    
  18  Prefactor     .10000E-03    1.7178        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.6154        202.73        .63136E-02   -1.5385    
  20  Prefactor     11.397        6.9530        .29670E-02   -1.5033    
  21  Prefactor     .10000E-03    13.683        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .89771        .21130        .71020E-01   -.96540    
  23  Prefactor     1.0231        .13391        .41864E-01   -.91965    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.16933e-07
Minuit parameter uncertainties:
  1  6.17697e-05
  2  35.2268
  3  3.95627e-06
  4  39.3067
  5  0.000181549
  6  9.50245
  7  0.0069234
  8  42.1902
  9  4.97046
  10  5.52674
  11  9.06338
  12  7.32474
  13  1.16823e-06
  14  8.09581e-05
  15  2.06718e-06
  16  91.7017
  17  10.3882
  18  3.5413e-06
  19  46.215
  20  6.95348
  21  0.000107624
  22  0.211493
  23  0.133951
Done.

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

Extracting fit parameters...

4FGL J2139.4-4235
   Spectrum: LogParabola
298         norm:  1.258e+01  5.527e+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.023e+00  1.340e-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.977e-01  2.115e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 14.87
Ra Dec: 324.855 -42.590
Photon Index (Fixed Index): 1.93 +/- 0.00
Photon Flux (Fixed Index): 7.62e-08 +/- 3.35e-08
Energy Flux (Fixed Index): 5.37e-05 +/- 2.36e-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) = 6433.36811149
delta logL = 0.0137937451345

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6433.36765918
delta logL = 0.0142460520456

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.580       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8623       1.0000          .0000       5.0000    
     3 'Normalizat'    .90377       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0208       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=   6433.368     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      196 TOTAL
                     EDM=   .64E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.629        8.5046        .28235E-02    .53943E-04
   2  alpha         1.8625        .52393        .28145        .17327E-04
   3  Normalizat    .90300        .19593        .70837E-01   -.11897E-03
   4  Prefactor     1.0212        .13299        .42059E-01   -.27357E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 12.6293
  alpha      = 1.86254
  Normalizat = 0.903001
  Prefactor  = 1.02123
 **********
 **   18 **HESSE 
 **********

 FCN=   6433.368     FROM HESSE     STATUS=OK            31 CALLS      227 TOTAL
                     EDM=   .74E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.629        5.5487        .11294E-03   -1.4997    
   2  alpha         1.8625        .38918        .10877E-01   -.25783    
   3  Normalizat    .90300        .22025        .31342E-03   -.96355    
   4  Prefactor     1.0212        .15069        .20315E-03   -.92025    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.39452e-11
Minuit parameter uncertainties:
  1  5.54895
  2  0.390879
  3  0.220465
  4  0.150752
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/640940': 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) = 6433.36761426
delta logL = 0.0142909795941

Extracting fit parameters...

4FGL J2139.4-4235
   Spectrum: LogParabola
298         norm:  1.263e+01  5.549e+00  1.000e-04  1.000e+04 ( 1.000e-12)
299        alpha:  1.863e+00  3.909e-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.021e+00  1.508e-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.030e-01  2.205e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 14.88
Ra Dec: 324.855 -42.590
Photon Index (Free Index): 1.86 +/- 0.39
Photon Flux (Free Index): 7.15e-08 +/- 4.14e-08
Energy Flux (Free Index): 5.85e-05 +/- 4.04e-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/640940/cmap_HighResolution_510192001_510451201_4FGL_J2139.4-4235_daily_bin1045.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.62e-08', energy_flux2='5.85e-05', photon_flux_error='3.35e-08', dlogl='1.43e-02', energy_flux='5.37e-05', photon_flux2='7.15e-08', job_status='DONE', time_completed='2021-09-26 22:02:08.940147', photon_index_error2='0.39', photon_index2='1.86', ts='14.87', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', energy_flux_error2='4.04e-05', EG='0.90', time_epoch_completed='1632718928.94', return_code='0', job_id='640940', GAL2='1.02', EG2='0.90', return_code2='0', energy_flux_error='2.36e-05', photon_flux_error2='4.14e-08', ts2='14.88', photon_index='1.93' WHERE bin_id='1045' AND source_name='4FGL J2139.4-4235' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 22:02:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0192>
Subject: Job 640940: <4FGL_J2139.4-4235_daily_bin1045> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2139.4-4235_daily_bin1045 324.855 -42.5895 510192001 510451201 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 :                                   578.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             251.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   686 sec.
    Turnaround time :                            713 sec.

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

