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


Performing analysis on: 4FGL_J2139.4-4235_daily_bin970
RA = 324.855, Dec = -42.5895
tmin = 490752001, tmax = 491011201
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='639609', job_status='RUN', time_executed='2021-09-26 21:47:23.971890', time_epoch_executed='1632718043.97' WHERE source_name='4FGL J2139.4-4235' and cadence='daily' and bin_id='970'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/639609

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/639609/ft1_4FGL_J2139.4-4235_daily_bin970.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/639609/ft2_4FGL_J2139.4-4235_daily_bin970.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/639609/ft1_4FGL_J2139.4-4235_daily_bin970.fits outfile=/scratch/kocevski/639609/ft1_filteredMKT_4FGL_J2139.4-4235_daily_bin970.fits ra=324.855 dec=-42.5895 rad=12.0 tmin=490752001.0 tmax=491011201.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 5.78
user 5.51
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/639609/ft1_filtered_4FGL_J2139.4-4235_daily_bin970.fits" evtable="EVENTS" scfile=/scratch/kocevski/639609/ft2_4FGL_J2139.4-4235_daily_bin970.fits sctable="SC_DATA" outfile=/scratch/kocevski/639609/ltcube_490752001_491011201_4FGL_J2139.4-4235_daily_bin970.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/639609/ft2_4FGL_J2139.4-4235_daily_bin970.fits
.....................!
real 15.98
user 14.51
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/639609/ft1_filtered_4FGL_J2139.4-4235_daily_bin970.fits evtable="EVENTS" scfile=/scratch/kocevski/639609/ft2_4FGL_J2139.4-4235_daily_bin970.fits sctable="SC_DATA" expcube=/scratch/kocevski/639609/ltcube_490752001_491011201_4FGL_J2139.4-4235_daily_bin970.fits outfile=/scratch/kocevski/639609/expmap_490752001_491011201_4FGL_J2139.4-4235_daily_bin970.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/639609/ltcube_490752001_491011201_4FGL_J2139.4-4235_daily_bin970.fits
.....................!
real 191.07
user 185.66
sys 4.94

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/639609/ft1_filtered_4FGL_J2139.4-4235_daily_bin970.fits scfile=/scratch/kocevski/639609/ft2_4FGL_J2139.4-4235_daily_bin970.fits outfile=/scratch/kocevski/639609/cmap_490752001_491011201_4FGL_J2139.4-4235_daily_bin970.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.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/639609/ft1_filtered_4FGL_J2139.4-4235_daily_bin970.fits scfile=/scratch/kocevski/639609/ft2_4FGL_J2139.4-4235_daily_bin970.fits outfile=/scratch/kocevski/639609/cmap_HighResolution_490752001_491011201_4FGL_J2139.4-4235_daily_bin970.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .68031       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.9658       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.2680       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.328       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.8964       1.0000         .10000E-03   10000.    
    10 'norm      '    7.8520       1.0000         .10000E-03   10000.    
    11 'Prefactor '    14.156       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .27787E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.1082       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.1749       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.3458       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1039       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=   8564.202     FROM MIGRAD    STATUS=CONVERGED    499 CALLS     2167 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    18.006        .71188E-05** at limit **
   2  Prefactor     .10000E-03    74.885       -.96629E-06** at limit **
   3  norm          .68024        1.4334       -.33524E-06   -.18884E-02
   4  Prefactor     2.9625        45.876       -.12744E-05   -.41255E-04
   5  Prefactor     2.2586        63.197       -.15417E-04   -.64190E-04
   6  Prefactor     .10000E-03    1.6963        .19951E-06** at limit **
   7  Prefactor     .10000E-03    16.866       -.42180E-05** at limit **
   8  Prefactor     11.361        39.495        .53011E-04    .22698E-04
   9  Prefactor     2.8967        5.5226       -.40932E-05   -.92468E-03
  10  norm          7.8529        4.7384        .14671E-05    .94816E-04
  11  Prefactor     14.161        11.446        .83072E-06    .71882E-04
  12  Prefactor     .10000E-03    5.8317       -.54316E-06** at limit **
  13  norm          .10000E-03    4.2108       -.10860E-06** at limit **
  14  Prefactor     .10000E-03    76.177       -.81217E-05** at limit **
  15  Prefactor     .10000E-03    7.8144       -.12319E-06** at limit **
  16  Prefactor     .10000E-03    47.389        .24446E-04** at limit **
  17  Prefactor     .10000E-03    19.935       -.10491E-05** at limit **
  18  Prefactor     5.1087        5.3929       -.58667E-06   -.26874E-03
  19  Prefactor     .10000E-03    39.259       -.17518E-04** at limit **
  20  Prefactor     .10000E-03    5.3381       -.22645E-06** at limit **
  21  Prefactor     5.1773        44.433        .39935E-05   -.78126E-05
  22  Normalizat    1.3455        .21682       -.28731E-05    .28622E-03
  23  Prefactor     1.1041        .12501        .88067E-06    .29463E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.680237
  Prefactor  = 2.96246
  Prefactor  = 2.25858
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.3608
  Prefactor  = 2.89671
  norm       = 7.85286
  Prefactor  = 14.1607
  Prefactor  = 0.000100003
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.10868
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.17728
  Normalizat = 1.34552
  Prefactor  = 1.10407
 **********
 **   18 **HESSE 
 **********

 FCN=   8564.202     FROM HESSE     STATUS=OK           368 CALLS     2535 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    18.015        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    75.096        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .68024        1.4291        .15118E-03   -1.5543    
   4  Prefactor     2.9625        45.647        .23578E-03   -1.5364    
   5  Prefactor     2.2586        63.792        .27272E-03   -1.5407    
   6  Prefactor     .10000E-03    1.6993        .11770E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    16.940        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     11.361        39.300        .11903E-03   -1.5034    
   9  Prefactor     2.8967        5.6030        .23877E-03   -1.5368    
  10  norm          7.8529        4.7162        .14310E-03   -1.5147    
  11  Prefactor     14.161        11.121        .10646E-03   -1.4955    
  12  Prefactor     .10000E-03    54.644        .41180E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    4.2292        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    76.667        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    7.8705        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    47.234        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    20.222        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.1087        5.4040        .17789E-03   -1.5256    
  19  Prefactor     .10000E-03    39.201        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    5.3660        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     5.1773        44.414        .17672E-03   -1.5253    
  22  Normalizat    1.3455        .25078        .31749E-03   -.82218    
  23  Prefactor     1.1041        .14515        .21076E-03   -.89337    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.18575e-09
Minuit parameter uncertainties:
  1  8.72751e-06
  2  9.1042e-05
  3  1.42914
  4  23.2783
  5  24.0343
  6  2.39957e-06
  7  1.54109e-05
  8  39.3893
  9  5.60399
  10  4.71646
  11  11.1226
  12  0.000832458
  13  2.97653e-06
  14  0.000168781
  15  8.82865e-06
  16  6.14583e-06
  17  4.82222e-05
  18  5.40451
  19  2.01922e-05
  20  8.83251e-06
  21  30.3578
  22  0.251004
  23  0.145202
Done.

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

Extracting fit parameters...

4FGL J2139.4-4235
   Spectrum: LogParabola
298         norm:  7.853e+00  4.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.104e+00  1.452e-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.346e+00  2.510e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.87
Ra Dec: 324.855 -42.590
Photon Index (Fixed Index): 1.93 +/- 0.00
Photon Flux (Fixed Index): 4.76e-08 +/- 2.86e-08
Energy Flux (Fixed Index): 3.35e-05 +/- 2.01e-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) = 8564.19403108
delta logL = 0.00762916041458

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8564.19373962
delta logL = 0.0079206236187

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.7768       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8673       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3496       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1029       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=   8564.194     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      224 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.7739        9.8353        .35948E-02    .71968E-03
   2  alpha         1.8671        .79888        .40367       -.16663E-04
   3  Normalizat    1.3493        .20897        .71668E-01   -.72937E-04
   4  Prefactor     1.1029        .12588        .37478E-01   -.33327E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 7.77387
  alpha      = 1.86705
  Normalizat = 1.34934
  Prefactor  = 1.10287
 **********
 **   18 **HESSE 
 **********

 FCN=   8564.194     FROM HESSE     STATUS=OK            31 CALLS      255 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.7739        4.7533        .71896E-03   -1.5150    
   2  alpha         1.8671        .48532        .14229E-01   -.25596    
   3  Normalizat    1.3493        .23523        .31711E-03   -.82105    
   4  Prefactor     1.1029        .14324        .21087E-03   -.89375    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.70858e-10
Minuit parameter uncertainties:
  1  4.75356
  2  0.48864
  3  0.23542
  4  0.143293
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/639609': 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) = 8564.19373673
delta logL = 0.00792351492782

Extracting fit parameters...

4FGL J2139.4-4235
   Spectrum: LogParabola
298         norm:  7.774e+00  4.754e+00  1.000e-04  1.000e+04 ( 1.000e-12)
299        alpha:  1.867e+00  4.886e-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.103e+00  1.433e-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.349e+00  2.354e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.88
Ra Dec: 324.855 -42.590
Photon Index (Free Index): 1.87 +/- 0.49
Photon Flux (Free Index): 4.42e-08 +/- 3.69e-08
Energy Flux (Free Index): 3.58e-05 +/- 2.94e-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/639609/cmap_HighResolution_490752001_491011201_4FGL_J2139.4-4235_daily_bin970.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.76e-08', energy_flux2='3.58e-05', photon_flux_error='2.86e-08', dlogl='7.92e-03', energy_flux='3.35e-05', photon_flux2='4.42e-08', job_status='DONE', time_completed='2021-09-26 21:58:44.976940', photon_index_error2='0.49', photon_index2='1.87', ts='7.87', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', energy_flux_error2='2.94e-05', EG='1.35', time_epoch_completed='1632718724.98', return_code='0', job_id='639609', GAL2='1.10', EG2='1.35', return_code2='0', energy_flux_error='2.01e-05', photon_flux_error2='3.69e-08', ts2='7.88', photon_index='1.93' WHERE bin_id='970' AND source_name='4FGL J2139.4-4235' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 21:58:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0303>
Subject: Job 639609: <4FGL_J2139.4-4235_daily_bin970> in cluster <slac> Done

Job <4FGL_J2139.4-4235_daily_bin970> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep 26 21:45:19 2021
Job was executed on host(s) <bullet0303>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 21:45: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:45:50 2021
Terminated at Sun Sep 26 21:58:45 2021
Results reported at Sun Sep 26 21:58:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2139.4-4235_daily_bin970 324.855 -42.5895 490752001 491011201 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 :                                   675.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             297.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   777 sec.
    Turnaround time :                            806 sec.

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

