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


Performing analysis on: 4FGL_J2139.4-4235_daily_bin1597
RA = 324.855, Dec = -42.5895
tmin = 653270401, tmax = 653529601
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='642926', job_status='RUN', time_executed='2021-09-26 21:57:19.321502', time_epoch_executed='1632718639.32' WHERE source_name='4FGL J2139.4-4235' and cadence='daily' and bin_id='1597'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/642926

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/642926/ft1_4FGL_J2139.4-4235_daily_bin1597.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/642926/ft2_4FGL_J2139.4-4235_daily_bin1597.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/642926/ft1_4FGL_J2139.4-4235_daily_bin1597.fits outfile=/scratch/kocevski/642926/ft1_filteredMKT_4FGL_J2139.4-4235_daily_bin1597.fits ra=324.855 dec=-42.5895 rad=12.0 tmin=653270401.0 tmax=653529601.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.33
user 3.08
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/642926/ft1_filtered_4FGL_J2139.4-4235_daily_bin1597.fits" evtable="EVENTS" scfile=/scratch/kocevski/642926/ft2_4FGL_J2139.4-4235_daily_bin1597.fits sctable="SC_DATA" outfile=/scratch/kocevski/642926/ltcube_653270401_653529601_4FGL_J2139.4-4235_daily_bin1597.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/642926/ft2_4FGL_J2139.4-4235_daily_bin1597.fits
.....................!
real 12.88
user 12.52
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/642926/ft1_filtered_4FGL_J2139.4-4235_daily_bin1597.fits evtable="EVENTS" scfile=/scratch/kocevski/642926/ft2_4FGL_J2139.4-4235_daily_bin1597.fits sctable="SC_DATA" expcube=/scratch/kocevski/642926/ltcube_653270401_653529601_4FGL_J2139.4-4235_daily_bin1597.fits outfile=/scratch/kocevski/642926/expmap_653270401_653529601_4FGL_J2139.4-4235_daily_bin1597.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/642926/ltcube_653270401_653529601_4FGL_J2139.4-4235_daily_bin1597.fits
.....................!
real 191.53
user 186.16
sys 4.97

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/642926/ft1_filtered_4FGL_J2139.4-4235_daily_bin1597.fits scfile=/scratch/kocevski/642926/ft2_4FGL_J2139.4-4235_daily_bin1597.fits outfile=/scratch/kocevski/642926/cmap_653270401_653529601_4FGL_J2139.4-4235_daily_bin1597.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=324.855 yref=-42.5895 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/642926/ft1_filtered_4FGL_J2139.4-4235_daily_bin1597.fits scfile=/scratch/kocevski/642926/ft2_4FGL_J2139.4-4235_daily_bin1597.fits outfile=/scratch/kocevski/642926/cmap_HighResolution_653270401_653529601_4FGL_J2139.4-4235_daily_bin1597.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.56
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    27.120       1.0000         .10000E-03   10000.    
     2 'Prefactor '    77.084       1.0000         .10000E-03   10000.    
     3 'norm      '    4.7322       1.0000         .10000E-03   10000.    
     4 'Prefactor '    55.074       1.0000         .10000E-03   10000.    
     5 'Prefactor '    32.336       1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.837       1.0000         .10000E-03   10000.    
     7 'Prefactor '    53.546       1.0000         .10000E-03   10000.    
     8 'Prefactor '    25.076       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .56979E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    21.810       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .50756       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    40.000       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .15231E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.3265       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .25673E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .58907       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .84418       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=   2301.489     FROM MIGRAD    STATUS=CONVERGED    511 CALLS     2632 TOTAL
                     EDM=   .60E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     27.149        34.083        .16326E-06    .87744E-05
   2  Prefactor     77.099        72.419        .22423E-06    .82777E-06
   3  norm          4.7331        2.9861        .78307E-07   -.15872E-03
   4  Prefactor     55.096        52.023        .58232E-06    .45976E-05
   5  Prefactor     32.459        81.076       -.50884E-06   -.20591E-04
   6  Prefactor     12.841        13.646       -.91056E-07   -.16044E-03
   7  Prefactor     53.575        74.001        .45416E-06   -.16949E-04
   8  Prefactor     25.083        42.677       -.10564E-06   -.50604E-04
   9  Prefactor     .10021E-03    6.5734        .25877E-05** at limit **
  10  norm          21.812        12.826        .38663E-07   -.42781E-04
  11  Prefactor     .10000E-03    4.3370       -.62300E-07** at limit **
  12  Prefactor     .10000E-03    6.7809       -.32553E-07** at limit **
  13  norm          .55889        14.450       -.79117E-06    .93793E-04
  14  Prefactor     .10000E-03    96.437        .83706E-06** at limit **
  15  Prefactor     40.063        26.534       -.54615E-05   -.27150E-03
  16  Prefactor     .10003E-03    1734.7        .14823E-04** at limit **
  17  Prefactor     .10000E-03    8.8585       -.19563E-06** at limit **
  18  Prefactor     1.3303        13.172        .18946E-05    .10962E-04
  19  Prefactor     .10000E-03    56.508       -.35734E-06** at limit **
  20  Prefactor     .10005E-03    16.925       -.64191E-06** at limit **
  21  Prefactor     .10000E-03    24.557       -.15604E-06** at limit **
  22  Normalizat    .58865        .34756        .45016E-06   -.16604E-03
  23  Prefactor     .84426        .19367       -.94838E-06   -.20743E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 27.1489
  Prefactor  = 77.0992
  norm       = 4.7331
  Prefactor  = 55.0958
  Prefactor  = 32.4594
  Prefactor  = 12.8406
  Prefactor  = 53.5752
  Prefactor  = 25.0832
  Prefactor  = 0.000100209
  norm       = 21.8119
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.558887
  Prefactor  = 0.000100001
  Prefactor  = 40.063
  Prefactor  = 0.00010003
  Prefactor  = 0.0001
  Prefactor  = 1.33035
  Prefactor  = 0.0001
  Prefactor  = 0.000100051
  Prefactor  = 0.0001
  Normalizat = 0.588648
  Prefactor  = 0.844259
 **********
 **   18 **HESSE 
 **********

 FCN=   2301.489     FROM HESSE     STATUS=OK           368 CALLS     3000 TOTAL
                     EDM=   .67E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     27.149        34.098        .76928E-04   -1.4665    
   2  Prefactor     77.099        72.393        .45737E-04   -1.3950    
   3  norm          4.7331        2.9819        .60664E-04   -1.5273    
   4  Prefactor     55.096        51.992        .54051E-04   -1.4222    
   5  Prefactor     32.459        80.712        .70465E-04   -1.4568    
   6  Prefactor     12.841        13.611        .11180E-03   -1.4991    
   7  Prefactor     53.575        73.955        .54813E-04   -1.4243    
   8  Prefactor     25.083        42.622        .79995E-04   -1.4706    
   9  Prefactor     .10021E-03    37.668        .22062E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          21.812        12.821        .85767E-04   -1.4774    
  11  Prefactor     .10000E-03    4.3382        .97578E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    6.7861        .12201E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .55889        40.132        .34924E-02   -1.5558    
  14  Prefactor     .10000E-03    96.687        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     40.063        26.605        .63377E-04   -1.4441    
  16  Prefactor     .10003E-03    1751.1        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    8.8630        .13947E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.3303        13.192        .33103E-03   -1.5477    
  19  Prefactor     .10000E-03    56.512        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10005E-03    79.618        .38181E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    24.559        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .58865        .38315        .35264E-03   -1.0847    
  23  Prefactor     .84426        .22030        .18125E-03   -.98117    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.73312e-09
Minuit parameter uncertainties:
  1  34.1228
  2  72.476
  3  2.98197
  4  52.035
  5  80.9849
  6  13.6142
  7  74.0819
  8  42.674
  9  0.00562137
  10  12.8231
  11  5.29271e-07
  12  7.87877e-07
  13  9.47768
  14  0.000581377
  15  26.6128
  16  0.0148535
  17  1.12364e-06
  18  8.38048
  19  6.4575e-05
  20  0.00403756
  21  6.74972e-06
  22  0.38489
  23  0.220526
Done.

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

Extracting fit parameters...

4FGL J2139.4-4235
   Spectrum: LogParabola
298         norm:  2.181e+01  1.282e+01  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:  8.443e-01  2.205e-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.886e-01  3.849e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 13.54
Ra Dec: 324.855 -42.590
Photon Index (Fixed Index): 1.93 +/- 0.00
Photon Flux (Fixed Index): 1.32e-07 +/- 7.77e-08
Energy Flux (Fixed Index): 9.32e-05 +/- 5.48e-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) = 2301.47621706
delta logL = 0.0130554300972

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2301.47527766
delta logL = 0.0139948281712

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    21.812       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0157       1.0000          .0000       5.0000    
     3 'Normalizat'    .57506       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84901       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=   2301.475     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      197 TOTAL
                     EDM=   .40E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          21.740        19.511        .21441E-02    .95622E-05
   2  alpha         2.0160        .77488        .21422        .61592E-05
   3  Normalizat    .57543        .32693        .80451E-01    .12646E-04
   4  Prefactor     .84885        .19411        .44352E-01    .89055E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 21.7405
  alpha      = 2.01602
  Normalizat = 0.575427
  Prefactor  = 0.848854
 **********
 **   18 **HESSE 
 **********

 FCN=   2301.475     FROM HESSE     STATUS=OK            33 CALLS      230 TOTAL
                     EDM=   .29E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          21.740        12.005        .42882E-03   -1.4775    
   2  alpha         2.0160        .51795        .87016E-02   -.19482    
   3  Normalizat    .57543        .36082        .35629E-03   -1.0904    
   4  Prefactor     .84885        .21729        .18077E-03   -.97952    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.91932e-11
Minuit parameter uncertainties:
  1  12.0065
  2  0.521882
  3  0.362307
  4  0.217512
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/642926': 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) = 2301.47525978
delta logL = 0.014012707858

Extracting fit parameters...

4FGL J2139.4-4235
   Spectrum: LogParabola
298         norm:  2.174e+01  1.201e+01  1.000e-04  1.000e+04 ( 1.000e-12)
299        alpha:  2.016e+00  5.219e-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:  8.489e-01  2.175e-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.754e-01  3.623e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 13.56
Ra Dec: 324.855 -42.590
Photon Index (Free Index): 2.02 +/- 0.52
Photon Flux (Free Index): 1.45e-07 +/- 1.09e-07
Energy Flux (Free Index): 8.54e-05 +/- 6.35e-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/642926/cmap_HighResolution_653270401_653529601_4FGL_J2139.4-4235_daily_bin1597.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.32e-07', energy_flux2='8.54e-05', photon_flux_error='7.77e-08', dlogl='1.40e-02', energy_flux='9.32e-05', photon_flux2='1.45e-07', job_status='DONE', time_completed='2021-09-26 22:04:35.846715', photon_index_error2='0.52', photon_index2='2.02', ts='13.54', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', energy_flux_error2='6.35e-05', EG='0.59', time_epoch_completed='1632719075.85', return_code='0', job_id='642926', GAL2='0.85', EG2='0.58', return_code2='0', energy_flux_error='5.48e-05', photon_flux_error2='1.09e-07', ts2='13.56', photon_index='1.93' WHERE bin_id='1597' AND source_name='4FGL J2139.4-4235' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 22:04:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0210>
Subject: Job 642926: <4FGL_J2139.4-4235_daily_bin1597> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2139.4-4235_daily_bin1597 324.855 -42.5895 653270401 653529601 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 :                                   421.05 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             300.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   461 sec.
    Turnaround time :                            555 sec.

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

