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


Performing analysis on: 4FGL_J2139.4-4235_daily_bin1135
RA = 324.855, Dec = -42.5895
tmin = 533520001, tmax = 533779201
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='641083', job_status='RUN', time_executed='2021-09-26 21:52:31.504082', time_epoch_executed='1632718351.5' WHERE source_name='4FGL J2139.4-4235' and cadence='daily' and bin_id='1135'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/641083

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/641083/ft1_4FGL_J2139.4-4235_daily_bin1135.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/641083/ft2_4FGL_J2139.4-4235_daily_bin1135.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/641083/ft1_4FGL_J2139.4-4235_daily_bin1135.fits outfile=/scratch/kocevski/641083/ft1_filteredMKT_4FGL_J2139.4-4235_daily_bin1135.fits ra=324.855 dec=-42.5895 rad=12.0 tmin=533520001.0 tmax=533779201.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.60
user 3.34
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/641083/ft1_filtered_4FGL_J2139.4-4235_daily_bin1135.fits" evtable="EVENTS" scfile=/scratch/kocevski/641083/ft2_4FGL_J2139.4-4235_daily_bin1135.fits sctable="SC_DATA" outfile=/scratch/kocevski/641083/ltcube_533520001_533779201_4FGL_J2139.4-4235_daily_bin1135.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/641083/ft2_4FGL_J2139.4-4235_daily_bin1135.fits
.....................!
real 14.78
user 14.41
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/641083/ft1_filtered_4FGL_J2139.4-4235_daily_bin1135.fits evtable="EVENTS" scfile=/scratch/kocevski/641083/ft2_4FGL_J2139.4-4235_daily_bin1135.fits sctable="SC_DATA" expcube=/scratch/kocevski/641083/ltcube_533520001_533779201_4FGL_J2139.4-4235_daily_bin1135.fits outfile=/scratch/kocevski/641083/expmap_533520001_533779201_4FGL_J2139.4-4235_daily_bin1135.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/641083/ltcube_533520001_533779201_4FGL_J2139.4-4235_daily_bin1135.fits
.....................!
real 193.51
user 187.83
sys 5.23

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/641083/ft1_filtered_4FGL_J2139.4-4235_daily_bin1135.fits scfile=/scratch/kocevski/641083/ft2_4FGL_J2139.4-4235_daily_bin1135.fits outfile=/scratch/kocevski/641083/cmap_533520001_533779201_4FGL_J2139.4-4235_daily_bin1135.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.56
user 0.38
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    44.759       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    8.1894       1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.8560       1.0000         .10000E-03   10000.    
     5 'Prefactor '    18.655       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.6161       1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.9066       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.9452       1.0000         .10000E-03   10000.    
    10 'norm      '    40.783       1.0000         .10000E-03   10000.    
    11 'Prefactor '    18.767       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .47274E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    44.626       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .41594E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.8982       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.6556       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .37376E-01   1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.6044       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .78577       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1001       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=   7824.708     FROM MIGRAD    STATUS=CONVERGED    927 CALLS     2996 TOTAL
                     EDM=   .59E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     44.738        44.344        .59927E-04   -.24662E-04
   2  Prefactor     .10000E-03    18.315        .18142E-02** at limit **
   3  norm          8.1882        2.5037        .73364E-04    .38740E-04
   4  Prefactor     9.8489        20.980        .12764E-03    .18259E-04
   5  Prefactor     18.638        42.926        .92731E-04   -.91949E-05
   6  Prefactor     3.6133        7.8337        .10624E-02    .48124E-04
   7  Prefactor     7.9026        15.447        .14260E-03    .25672E-04
   8  Prefactor     .10000E-03    9.5395        .18142E-02** at limit **
   9  Prefactor     9.9456        4.6112        .12316E-03    .21637E-03
  10  norm          40.779        7.9182        .62769E-04   -.89220E-04
  11  Prefactor     18.768        9.6953        .92454E-04   -.19244E-03
  12  Prefactor     .10000E-03    5.8633        .18142E-02** at limit **
  13  norm          .27808E-01    4.7440        .57897E-01    .24001E-03
  14  Prefactor     44.642        36.268        .60016E-04    .17374E-03
  15  Prefactor     .10000E-03    11.780        .36285E-03** at limit **
  16  Prefactor     .10002E-03    345.41        .21246E-02** at limit **
  17  Prefactor     4.8963        7.5345        .18174E-03   -.11635E-04
  18  Prefactor     1.6560        2.3090        .15348E-03   -.21325E-03
  19  Prefactor     .10000E-03    21.998        .13920    ** at limit **
  20  Prefactor     2.6039        5.0206        .25279E-03    .78883E-04
  21  Prefactor     .10000E-03    6.3629        .18142E-02** at limit **
  22  Normalizat    .78605        .22735        .33843E-03    .79513E-04
  23  Prefactor     1.1001        .14665        .20306E-03   -.15255E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 44.7379
  Prefactor  = 0.0001
  norm       = 8.18823
  Prefactor  = 9.84892
  Prefactor  = 18.638
  Prefactor  = 3.61329
  Prefactor  = 7.90256
  Prefactor  = 0.0001
  Prefactor  = 9.94564
  norm       = 40.7791
  Prefactor  = 18.7682
  Prefactor  = 0.0001
  norm       = 0.0278077
  Prefactor  = 44.6419
  Prefactor  = 0.000100002
  Prefactor  = 0.000100018
  Prefactor  = 4.8963
  Prefactor  = 1.65604
  Prefactor  = 0.0001
  Prefactor  = 2.60394
  Prefactor  = 0.0001
  Normalizat = 0.786045
  Prefactor  = 1.10012
 **********
 **   18 **HESSE 
 **********

 FCN=   7824.708     FROM HESSE     STATUS=OK           368 CALLS     3364 TOTAL
                     EDM=   .58E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     44.738        44.349        .23971E-05   -1.4369    
   2  Prefactor     .10000E-03    18.315        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          8.1882        2.5036        .29346E-05   -1.5136    
   4  Prefactor     9.8489        20.981        .51056E-05   -1.5080    
   5  Prefactor     18.638        42.930        .37092E-05   -1.4844    
   6  Prefactor     3.6133        7.8268        .42494E-04   -1.5328    
   7  Prefactor     7.9026        15.447        .57039E-05   -1.5146    
   8  Prefactor     .10000E-03    9.5398        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     9.9456        4.6110        .49265E-05   -1.5077    
  10  norm          40.779        7.9179        .12554E-04   -1.4430    
  11  Prefactor     18.768        9.6949        .36982E-05   -1.4841    
  12  Prefactor     .10000E-03    5.8659        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .27808E-01    4.6222        .59122E-01   -1.5675    
  14  Prefactor     44.642        36.269        .12003E-04   -1.4371    
  15  Prefactor     .10000E-03    11.781        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10002E-03    345.59        .42491E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     4.8963        7.5340        .72696E-05   -1.5265    
  18  Prefactor     1.6560        2.3089        .61393E-05   -1.5451    
  19  Prefactor     .10000E-03    21.897        .13982       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     2.6039        5.0201        .10112E-04   -1.5385    
  21  Prefactor     .10000E-03    6.3632        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .78605        .22742        .13537E-04   -1.0059    
  23  Prefactor     1.1001        .14674        .40612E-04   -.89463    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.84685e-10
Minuit parameter uncertainties:
  1  44.3816
  2  5.97481e-05
  3  2.50363
  4  20.997
  5  43.0015
  6  7.82898
  7  15.4543
  8  3.1787e-05
  9  4.61115
  10  7.91806
  11  9.69571
  12  4.37868e-05
  13  0.715794
  14  36.2872
  15  0.000269823
  16  0.0049619
  17  7.53545
  18  2.30905
  19  1.5633e-05
  20  5.0209
  21  9.93946e-06
  22  0.227699
  23  0.146791
Done.

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

Extracting fit parameters...

4FGL J2139.4-4235
   Spectrum: LogParabola
298         norm:  4.078e+01  7.918e+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.100e+00  1.468e-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.860e-01  2.277e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 114.77
Ra Dec: 324.855 -42.590
Photon Index (Fixed Index): 1.93 +/- 0.00
Photon Flux (Fixed Index): 2.47e-07 +/- 4.80e-08
Energy Flux (Fixed Index): 1.74e-04 +/- 3.38e-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) = 7824.68647817
delta logL = 0.021734964027

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7824.68518638
delta logL = 0.0230267496754

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    41.077       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8921       1.0000          .0000       5.0000    
     3 'Normalizat'    .79426       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0972       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=   7824.685     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      208 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          41.077        9.2160        .15636E-02    .29389E-02
   2  alpha         1.8921        .19288        .13289       -.18494E-04
   3  Normalizat    .79426        .18414        .76122E-01   -.17510E-04
   4  Prefactor     1.0972        .12690        .37692E-01   -.11979E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 41.0766
  alpha      = 1.89215
  Normalizat = 0.794265
  Prefactor  = 1.09723
 **********
 **   18 **HESSE 
 **********

 FCN=   7824.685     FROM HESSE     STATUS=OK            31 CALLS      239 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          41.077        8.0326        .62545E-04   -1.4425    
   2  alpha         1.8921        .17266        .57082E-02   -.24560    
   3  Normalizat    .79426        .20607        .33694E-03   -1.0028    
   4  Prefactor     1.0972        .14237        .20333E-03   -.89555    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.43329e-09
Minuit parameter uncertainties:
  1  8.03286
  2  0.172809
  3  0.206272
  4  0.142417
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/641083': 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) = 7824.68518638
delta logL = 0.023026755398

Extracting fit parameters...

4FGL J2139.4-4235
   Spectrum: LogParabola
298         norm:  4.108e+01  8.033e+00  1.000e-04  1.000e+04 ( 1.000e-12)
299        alpha:  1.892e+00  1.728e-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.097e+00  1.424e-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.943e-01  2.063e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 114.43
Ra Dec: 324.855 -42.590
Photon Index (Free Index): 1.89 +/- 0.17
Photon Flux (Free Index): 2.40e-07 +/- 5.79e-08
Energy Flux (Free Index): 1.83e-04 +/- 5.71e-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/641083/cmap_HighResolution_533520001_533779201_4FGL_J2139.4-4235_daily_bin1135.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.47e-07', energy_flux2='1.83e-04', photon_flux_error='4.80e-08', dlogl='2.30e-02', energy_flux='1.74e-04', photon_flux2='2.40e-07', job_status='DONE', time_completed='2021-09-26 22:04:45.879683', photon_index_error2='0.17', photon_index2='1.89', ts='114.77', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', energy_flux_error2='5.71e-05', EG='0.79', time_epoch_completed='1632719085.88', return_code='0', job_id='641083', GAL2='1.10', EG2='0.79', return_code2='0', energy_flux_error='3.38e-05', photon_flux_error2='5.79e-08', ts2='114.43', photon_index='1.93' WHERE bin_id='1135' AND source_name='4FGL J2139.4-4235' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 22:04:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0110>
Subject: Job 641083: <4FGL_J2139.4-4235_daily_bin1135> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2139.4-4235_daily_bin1135 324.855 -42.5895 533520001 533779201 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 :                                   731.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             331.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   776 sec.
    Turnaround time :                            858 sec.

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

