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


Performing analysis on: 4FGL_J2139.4-4235_daily_bin1551
RA = 324.855, Dec = -42.5895
tmin = 641347201, tmax = 641606401
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='642854', job_status='RUN', time_executed='2021-09-26 21:59:08.485499', time_epoch_executed='1632718748.49' WHERE source_name='4FGL J2139.4-4235' and cadence='daily' and bin_id='1551'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/642854

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/642854/ft1_4FGL_J2139.4-4235_daily_bin1551.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/642854/ft2_4FGL_J2139.4-4235_daily_bin1551.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/642854/ft1_4FGL_J2139.4-4235_daily_bin1551.fits outfile=/scratch/kocevski/642854/ft1_filteredMKT_4FGL_J2139.4-4235_daily_bin1551.fits ra=324.855 dec=-42.5895 rad=12.0 tmin=641347201.0 tmax=641606401.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 2.26
user 2.06
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/642854/ft1_filtered_4FGL_J2139.4-4235_daily_bin1551.fits" evtable="EVENTS" scfile=/scratch/kocevski/642854/ft2_4FGL_J2139.4-4235_daily_bin1551.fits sctable="SC_DATA" outfile=/scratch/kocevski/642854/ltcube_641347201_641606401_4FGL_J2139.4-4235_daily_bin1551.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/642854/ft2_4FGL_J2139.4-4235_daily_bin1551.fits
.....................!
real 11.29
user 10.78
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/642854/ft1_filtered_4FGL_J2139.4-4235_daily_bin1551.fits evtable="EVENTS" scfile=/scratch/kocevski/642854/ft2_4FGL_J2139.4-4235_daily_bin1551.fits sctable="SC_DATA" expcube=/scratch/kocevski/642854/ltcube_641347201_641606401_4FGL_J2139.4-4235_daily_bin1551.fits outfile=/scratch/kocevski/642854/expmap_641347201_641606401_4FGL_J2139.4-4235_daily_bin1551.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/642854/ltcube_641347201_641606401_4FGL_J2139.4-4235_daily_bin1551.fits
.....................!
real 153.98
user 149.33
sys 4.38

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/642854/ft1_filtered_4FGL_J2139.4-4235_daily_bin1551.fits scfile=/scratch/kocevski/642854/ft2_4FGL_J2139.4-4235_daily_bin1551.fits outfile=/scratch/kocevski/642854/cmap_641347201_641606401_4FGL_J2139.4-4235_daily_bin1551.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.48
user 0.31
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/642854/ft1_filtered_4FGL_J2139.4-4235_daily_bin1551.fits scfile=/scratch/kocevski/642854/ft2_4FGL_J2139.4-4235_daily_bin1551.fits outfile=/scratch/kocevski/642854/cmap_HighResolution_641347201_641606401_4FGL_J2139.4-4235_daily_bin1551.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.48
user 0.33
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/642854/ft1_filtered_4FGL_J2139.4-4235_daily_bin1551.fits evtable="EVENTS" scfile=/scratch/kocevski/642854/ft2_4FGL_J2139.4-4235_daily_bin1551.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/642854/Model_4FGL_J2139.4-4235_daily_bin1551.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/642854/ft1_filtered_4FGL_J2139.4-4235_daily_bin1551.fits.....................!
real 54.22
user 53.03
sys 1.08

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    44.934       1.0000         .10000E-03   10000.    
     2 'Prefactor '    45.975       1.0000         .10000E-03   10000.    
     3 'norm      '    9.2288       1.0000         .10000E-03   10000.    
     4 'Prefactor '    33.980       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10247E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    24.293       1.0000         .10000E-03   10000.    
     7 'Prefactor '    30.514       1.0000         .10000E-03   10000.    
     8 'Prefactor '    42.405       1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.4669       1.0000         .10000E-03   10000.    
    10 'norm      '    11.228       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    41.568       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10309E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.8494       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.1979       1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.6400       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.3565       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .93506       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1782       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=   8955.657     FROM MIGRAD    STATUS=CONVERGED    497 CALLS     2529 TOTAL
                     EDM=   .36E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     44.932        38.831       -.23823E-05    .57503E-05
   2  Prefactor     45.963        72.637       -.16411E-04    .37601E-05
   3  norm          9.2284        2.5498       -.17733E-06   -.75214E-04
   4  Prefactor     33.977        25.740       -.39466E-05    .79323E-05
   5  Prefactor     .10000E-03    23.943       -.29730E-05** at limit **
   6  Prefactor     24.294        9.6912       -.52225E-06    .16181E-04
   7  Prefactor     30.514        32.704       -.18468E-05    .91869E-05
   8  Prefactor     42.391        36.260       -.15199E-04    .14319E-04
   9  Prefactor     6.4677        4.3405        .79715E-06   -.18882E-03
  10  norm          11.228        5.7190       -.27431E-06   -.59523E-04
  11  Prefactor     .10000E-03    7.5847       -.17445E-06** at limit **
  12  Prefactor     .10000E-03    4.8118       -.11592E-06** at limit **
  13  norm          .10000E-03    6.5123       -.53588E-06** at limit **
  14  Prefactor     41.567        38.155       -.13294E-05    .73587E-05
  15  Prefactor     .10000E-03    4.0322       -.29039E-07** at limit **
  16  Prefactor     .10000E-03    30.887        .49417E-05** at limit **
  17  Prefactor     4.8504        7.1006       -.12941E-05   -.17037E-03
  18  Prefactor     1.1958        3.4537        .52145E-05   -.10919E-03
  19  Prefactor     4.5942        113.55       -.17341E-03   -.40596E-04
  20  Prefactor     .10000E-03    2.8240       -.17482E-06** at limit **
  21  Prefactor     7.3593        24.897        .12599E-04    .14418E-03
  22  Normalizat    .93488        .19912        .71939E-05   -.10513E-03
  23  Prefactor     1.1784        .12807        .54634E-06    .26315E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 44.9321
  Prefactor  = 45.963
  norm       = 9.22843
  Prefactor  = 33.977
  Prefactor  = 0.0001
  Prefactor  = 24.2935
  Prefactor  = 30.5136
  Prefactor  = 42.3911
  Prefactor  = 6.46772
  norm       = 11.2277
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 41.5673
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.85038
  Prefactor  = 1.19582
  Prefactor  = 4.59417
  Prefactor  = 0.0001
  Prefactor  = 7.3593
  Normalizat = 0.934881
  Prefactor  = 1.17837
 **********
 **   18 **HESSE 
 **********

 FCN=   8955.657     FROM HESSE     STATUS=OK           374 CALLS     2903 TOTAL
                     EDM=   .80E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     44.932        38.826        .59810E-04   -1.4366    
   2  Prefactor     45.963        72.660        .59133E-04   -1.4351    
   3  norm          9.2284        2.5498        .75504E-04   -1.5100    
   4  Prefactor     33.977        25.762        .68744E-04   -1.4542    
   5  Prefactor     .10000E-03    23.961        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     24.294        9.6925        .81271E-04   -1.4722    
   7  Prefactor     30.514        32.688        .72532E-04   -1.4603    
   8  Prefactor     42.391        36.237        .61561E-04   -1.4405    
   9  Prefactor     6.4677        4.3367        .15264E-03   -1.5199    
  10  norm          11.228        5.7152        .11956E-03   -1.5038    
  11  Prefactor     .10000E-03    7.8483        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.8715        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    6.7946        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     41.567        38.306        .62175E-04   -1.4418    
  15  Prefactor     .10000E-03    4.0931        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    30.895        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     4.8504        7.1188        .18267E-03   -1.5267    
  18  Prefactor     1.1958        3.3919        .26788E-03   -1.5489    
  19  Prefactor     4.5942        112.58        .18684E-03   -1.5279    
  20  Prefactor     .10000E-03    2.8565        .15527E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     7.3593        24.949        .14788E-03   -1.5165    
  22  Normalizat    .93488        .22353        .33841E-03   -.95245    
  23  Prefactor     1.1784        .14455        .21272E-03   -.86999    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.03037e-10
Minuit parameter uncertainties:
  1  38.8476
  2  72.8007
  3  2.54978
  4  25.77
  5  8.6958e-05
  6  9.69315
  7  32.7067
  8  36.2557
  9  4.33696
  10  5.71553
  11  0.000116
  12  3.47836e-05
  13  6.16631e-05
  14  38.3285
  15  2.40701e-05
  16  4.37754e-05
  17  7.12005
  18  3.39245
  19  45.5798
  20  2.25114e-05
  21  24.984
  22  0.223748
  23  0.144603
Done.

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

Extracting fit parameters...

4FGL J2139.4-4235
   Spectrum: LogParabola
298         norm:  1.123e+01  5.716e+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.178e+00  1.446e-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.349e-01  2.237e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 13.67
Ra Dec: 324.855 -42.590
Photon Index (Fixed Index): 1.93 +/- 0.00
Photon Flux (Fixed Index): 6.81e-08 +/- 3.46e-08
Energy Flux (Fixed Index): 4.80e-05 +/- 2.44e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8955.65000976
delta logL = 0.00715838914584

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8955.64966146
delta logL = 0.00750669275476

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.222       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9852       1.0000          .0000       5.0000    
     3 'Normalizat'    .93058       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1798       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=   8955.650     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      271 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.218        5.2203        .11959E-03    .54774E-03
   2  alpha         1.9848        .44982        .13809E-01    .41297E-04
   3  Normalizat    .93061        .20286        .33905E-03    .11213E-03
   4  Prefactor     1.1798        .14044        .21259E-03    .23423E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 11.2183
  alpha      = 1.9848
  Normalizat = 0.930606
  Prefactor  = 1.17976
 **********
 **   18 **HESSE 
 **********

 FCN=   8955.650     FROM HESSE     STATUS=OK            25 CALLS      296 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.218        5.2019        .47838E-05   -1.5038    
   2  alpha         1.9848        .44799        .55235E-03   -.20757    
   3  Normalizat    .93061        .20292        .13562E-04   -.95393    
   4  Prefactor     1.1798        .14050        .85036E-05   -.86956    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.3243e-10
Minuit parameter uncertainties:
  1  5.20214
  2  0.450529
  3  0.203092
  4  0.140542
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/642854': 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) = 8955.64966091
delta logL = 0.00750724492173

Extracting fit parameters...

4FGL J2139.4-4235
   Spectrum: LogParabola
298         norm:  1.122e+01  5.202e+00  1.000e-04  1.000e+04 ( 1.000e-12)
299        alpha:  1.985e+00  4.505e-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.180e+00  1.405e-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.306e-01  2.031e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 13.69
Ra Dec: 324.855 -42.590
Photon Index (Free Index): 1.98 +/- 0.45
Photon Flux (Free Index): 7.22e-08 +/- 4.74e-08
Energy Flux (Free Index): 4.53e-05 +/- 2.93e-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/642854/cmap_HighResolution_641347201_641606401_4FGL_J2139.4-4235_daily_bin1551.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.81e-08', energy_flux2='4.53e-05', photon_flux_error='3.46e-08', dlogl='7.51e-03', energy_flux='4.80e-05', photon_flux2='7.22e-08', job_status='DONE', time_completed='2021-09-26 22:09:09.236507', photon_index_error2='0.45', photon_index2='1.98', ts='13.67', fit_tolerance='1e-08', GAL='1.18', photon_index_error='0.00', energy_flux_error2='2.93e-05', EG='0.93', time_epoch_completed='1632719349.24', return_code='0', job_id='642854', GAL2='1.18', EG2='0.93', return_code2='0', energy_flux_error='2.44e-05', photon_flux_error2='4.74e-08', ts2='13.69', photon_index='1.93' WHERE bin_id='1551' AND source_name='4FGL J2139.4-4235' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 22:09:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0033>
Subject: Job 642854: <4FGL_J2139.4-4235_daily_bin1551> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2139.4-4235_daily_bin1551 324.855 -42.5895 641347201 641606401 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 :                                   591.51 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             243.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   751 sec.
    Turnaround time :                            834 sec.

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

