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


Performing analysis on: 4FGL_J2139.4-4235_daily_bin1610
RA = 324.855, Dec = -42.5895
tmin = 656640001, tmax = 656899201
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='473620', job_status='RUN', time_executed='2021-12-08 07:52:13.702811', time_epoch_executed='1638978733.7' WHERE source_name='4FGL J2139.4-4235' and cadence='daily' and bin_id='1610'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/473620

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/473620/ft1_4FGL_J2139.4-4235_daily_bin1610.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/473620/ft2_4FGL_J2139.4-4235_daily_bin1610.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/473620/ft1_4FGL_J2139.4-4235_daily_bin1610.fits outfile=/scratch/kocevski/473620/ft1_filteredMKT_4FGL_J2139.4-4235_daily_bin1610.fits ra=324.855 dec=-42.5895 rad=12.0 tmin=656640001.0 tmax=656899201.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.64
user 3.38
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/473620/ft1_filtered_4FGL_J2139.4-4235_daily_bin1610.fits" evtable="EVENTS" scfile=/scratch/kocevski/473620/ft2_4FGL_J2139.4-4235_daily_bin1610.fits sctable="SC_DATA" outfile=/scratch/kocevski/473620/ltcube_656640001_656899201_4FGL_J2139.4-4235_daily_bin1610.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/473620/ft2_4FGL_J2139.4-4235_daily_bin1610.fits
.....................!
real 13.90
user 13.54
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/473620/ft1_filtered_4FGL_J2139.4-4235_daily_bin1610.fits evtable="EVENTS" scfile=/scratch/kocevski/473620/ft2_4FGL_J2139.4-4235_daily_bin1610.fits sctable="SC_DATA" expcube=/scratch/kocevski/473620/ltcube_656640001_656899201_4FGL_J2139.4-4235_daily_bin1610.fits outfile=/scratch/kocevski/473620/expmap_656640001_656899201_4FGL_J2139.4-4235_daily_bin1610.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/473620/ltcube_656640001_656899201_4FGL_J2139.4-4235_daily_bin1610.fits
.....................!
real 190.92
user 185.81
sys 4.65

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/473620/ft1_filtered_4FGL_J2139.4-4235_daily_bin1610.fits scfile=/scratch/kocevski/473620/ft2_4FGL_J2139.4-4235_daily_bin1610.fits outfile=/scratch/kocevski/473620/cmap_656640001_656899201_4FGL_J2139.4-4235_daily_bin1610.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.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/473620/ft1_filtered_4FGL_J2139.4-4235_daily_bin1610.fits scfile=/scratch/kocevski/473620/ft2_4FGL_J2139.4-4235_daily_bin1610.fits outfile=/scratch/kocevski/473620/cmap_HighResolution_656640001_656899201_4FGL_J2139.4-4235_daily_bin1610.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/473620/ft1_filtered_4FGL_J2139.4-4235_daily_bin1610.fits evtable="EVENTS" scfile=/scratch/kocevski/473620/ft2_4FGL_J2139.4-4235_daily_bin1610.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/473620/Model_4FGL_J2139.4-4235_daily_bin1610.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/473620/ft1_filtered_4FGL_J2139.4-4235_daily_bin1610.fits....................!
real 50.95
user 49.57
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10966E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    19.366       1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    13.107       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .12510E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    5.5617       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.0973       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.6303       1.0000         .10000E-03   10000.    
    13 'norm      '    5.7840       1.0000         .10000E-03   10000.    
    14 'Prefactor '    82.502       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .46343       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .27430E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1284       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .94956       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=   6464.850     FROM MIGRAD    STATUS=CONVERGED    543 CALLS     2634 TOTAL
                     EDM=   .47E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10007E-03    164.90       -.63047E-04** at limit **
   2  Prefactor     19.446        68.120        .12702E-03    .61461E-04
   3  norm          .10000E-03    .80052       -.20778E-06** at limit **
   4  Prefactor     .10000E-03    67.188       -.11755E-04** at limit **
   5  Prefactor     13.103        36.419       -.51865E-06   -.18182E-04
   6  Prefactor     .10000E-03    4.8567        .46383E-07** at limit **
   7  Prefactor     .10000E-03    12.392        .82428E-08** at limit **
   8  Prefactor     .10000E-03    21.984       -.54791E-05** at limit **
   9  Prefactor     .10000E-03    2.2452        .78729E-06** at limit **
  10  norm          5.5612        4.1763        .25020E-06   -.11747E-03
  11  Prefactor     5.0970        5.6736        .55647E-06   -.62028E-04
  12  Prefactor     4.6285        9.0599        .57501E-06   -.19504E-03
  13  norm          5.7819        7.7316        .12592E-05   -.16187E-03
  14  Prefactor     82.509        46.620        .54544E-05    .36521E-04
  15  Prefactor     .43365        8.7169       -.20532E-05   -.13432E-03
  16  Prefactor     .10000E-03    130.00        .68030E-04** at limit **
  17  Prefactor     .10000E-03    4.3528        .74230E-07** at limit **
  18  Prefactor     .10000E-03    1.7619        .62153E-06** at limit **
  19  Prefactor     .10000E-03    24.709        .28764E-05** at limit **
  20  Prefactor     .10000E-03    7.4947        .20099E-06** at limit **
  21  Prefactor     .10000E-03    24.875        .29514E-05** at limit **
  22  Normalizat    1.1288        .19090       -.25716E-05   -.94649E-04
  23  Prefactor     .94942        .12425       -.29064E-05    .21284E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100067
  Prefactor  = 19.4462
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 13.1031
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.56123
  Prefactor  = 5.09702
  Prefactor  = 4.6285
  norm       = 5.78188
  Prefactor  = 82.5088
  Prefactor  = 0.433646
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.12878
  Prefactor  = 0.949418
 **********
 **   18 **HESSE 
 **********

 FCN=   6464.850     FROM HESSE     STATUS=OK           368 CALLS     3002 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10007E-03    171.03        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     19.446        68.135        .91014E-04   -1.4826    
   3  norm          .10000E-03    1.3486        .13930E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    69.017        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     13.103        36.400        .11064E-03   -1.4984    
   6  Prefactor     .10000E-03    4.9609        .17297E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    12.415        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    22.172        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    16.671        .22855E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          5.5612        4.1744        .13714E-03   -1.5236    
  11  Prefactor     5.0970        5.6612        .17808E-03   -1.5256    
  12  Prefactor     4.6285        9.0234        .18704E-03   -1.5278    
  13  norm          5.7819        7.7158        .16700E-03   -1.5227    
  14  Prefactor     82.509        46.304        .44222E-04   -1.3889    
  15  Prefactor     .43365        43.775        .41025E-02   -1.5576    
  16  Prefactor     .10000E-03    130.05        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.3818        .16380E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    28.247        .20200E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    24.738        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    7.7173        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    25.057        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.1288        .21482        .27086E-03   -.88833    
  23  Prefactor     .94942        .14312        .20064E-03   -.94435    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.03703e-09
Minuit parameter uncertainties:
  1  0.00676802
  2  68.4094
  3  2.47315e-05
  4  0.000810594
  5  36.4614
  6  2.03295e-05
  7  2.09044e-05
  8  8.9002e-05
  9  5.31323e-05
  10  4.17457
  11  5.66179
  12  9.02606
  13  7.71717
  14  46.3242
  15  8.71946
  16  0.000270091
  17  1.96325e-05
  18  0.000118027
  19  4.13413e-05
  20  5.43124e-05
  21  0.000101983
  22  0.214991
  23  0.143173
Done.

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

Extracting fit parameters...

4FGL J2139.4-4235
   Spectrum: LogParabola
298         norm:  5.561e+00  4.175e+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.494e-01  1.432e-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:  1.129e+00  2.150e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.60
Ra Dec: 324.855 -42.590
Photon Index (Fixed Index): 1.93 +/- 0.00
Photon Flux (Fixed Index): 3.37e-08 +/- 2.53e-08
Energy Flux (Fixed Index): 2.38e-05 +/- 1.78e-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) = 6464.77846164
delta logL = 0.0717134790802

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6464.56310937
delta logL = 0.287065749124

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .93481       1.0000         .10000E-03   10000.    
     2 'alpha     '    .87845       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1506       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95005       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=   6464.563     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      228 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .93605        1.0487        .12933E-01   -.45254E-03
   2  alpha         .87870        .43529        .35251       -.39059E-04
   3  Normalizat    1.1506        .17725        .60770E-01    .81871E-05
   4  Prefactor     .95003        .12220        .45640E-01    .15111E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.936052
  alpha      = 0.878701
  Normalizat = 1.15063
  Prefactor  = 0.950029
 **********
 **   18 **HESSE 
 **********

 FCN=   6464.563     FROM HESSE     STATUS=OK            35 CALLS      263 TOTAL
                     EDM=   .56E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .93605        2.1899        .70766E-03   -1.5514    
   2  alpha         .87870        .85326        .15067E-01   -.70564    
   3  Normalizat    1.1506        .20484        .26878E-03   -.88142    
   4  Prefactor     .95003        .14132        .20072E-03   -.94414    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.57938e-09
Minuit parameter uncertainties:
  1  2.19007
  2  0.884796
  3  0.204983
  4  0.141373
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/473620': 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) = 6464.56310908
delta logL = 0.287066040984

Extracting fit parameters...

4FGL J2139.4-4235
   Spectrum: LogParabola
298         norm:  9.361e-01  2.190e+00  1.000e-04  1.000e+04 ( 1.000e-12)
299        alpha:  8.787e-01  8.848e-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.500e-01  1.414e-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:  1.151e+00  2.050e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.18
Ra Dec: 324.855 -42.590
Photon Index (Free Index): 0.88 +/- 0.88
Photon Flux (Free Index): 4.97e-09 +/- 6.96e-09
Energy Flux (Free Index): 6.09e-05 +/- 8.94e-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/473620/cmap_HighResolution_656640001_656899201_4FGL_J2139.4-4235_daily_bin1610.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.37e-08', energy_flux2='6.09e-05', photon_flux_error='2.53e-08', dlogl='2.87e-01', energy_flux='2.38e-05', photon_flux2='4.97e-09', job_status='DONE', time_completed='2021-12-08 08:02:33.215626', photon_index_error2='0.88', photon_index2='0.88', ts='8.60', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', energy_flux_error2='8.94e-05', EG='1.13', time_epoch_completed='1638979353.22', return_code='0', job_id='473620', GAL2='0.95', EG2='1.15', return_code2='0', energy_flux_error='1.78e-05', photon_flux_error2='6.96e-09', ts2='9.18', photon_index='1.93' WHERE bin_id='1610' AND source_name='4FGL J2139.4-4235' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Dec  8 08:02:33 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0243>
Subject: Job 473620: <4FGL_J2139.4-4235_daily_bin1610> in cluster <slac> Done

Job <4FGL_J2139.4-4235_daily_bin1610> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Wed Dec  8 07:50:24 2021
Job was executed on host(s) <bullet0243>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec  8 07:51:31 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Dec  8 07:51:31 2021
Terminated at Wed Dec  8 08:02:34 2021
Results reported at Wed Dec  8 08:02:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2139.4-4235_daily_bin1610 324.855 -42.5895 656640001 656899201 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 :                                   618.28 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             286.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   664 sec.
    Turnaround time :                            730 sec.

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

