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


Performing analysis on: 4FGL_J2139.4-4235_daily_bin1089
RA = 324.855, Dec = -42.5895
tmin = 521596801, tmax = 521856001
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='641013', job_status='RUN', time_executed='2021-09-26 21:52:08.257871', time_epoch_executed='1632718328.26' WHERE source_name='4FGL J2139.4-4235' and cadence='daily' and bin_id='1089'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/641013

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/641013/ft1_4FGL_J2139.4-4235_daily_bin1089.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/641013/ft2_4FGL_J2139.4-4235_daily_bin1089.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/641013/ft1_4FGL_J2139.4-4235_daily_bin1089.fits outfile=/scratch/kocevski/641013/ft1_filteredMKT_4FGL_J2139.4-4235_daily_bin1089.fits ra=324.855 dec=-42.5895 rad=12.0 tmin=521596801.0 tmax=521856001.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 4.35
user 4.11
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/641013/ft1_filtered_4FGL_J2139.4-4235_daily_bin1089.fits" evtable="EVENTS" scfile=/scratch/kocevski/641013/ft2_4FGL_J2139.4-4235_daily_bin1089.fits sctable="SC_DATA" outfile=/scratch/kocevski/641013/ltcube_521596801_521856001_4FGL_J2139.4-4235_daily_bin1089.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/641013/ft2_4FGL_J2139.4-4235_daily_bin1089.fits
.....................!
real 13.53
user 13.15
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/641013/ft1_filtered_4FGL_J2139.4-4235_daily_bin1089.fits evtable="EVENTS" scfile=/scratch/kocevski/641013/ft2_4FGL_J2139.4-4235_daily_bin1089.fits sctable="SC_DATA" expcube=/scratch/kocevski/641013/ltcube_521596801_521856001_4FGL_J2139.4-4235_daily_bin1089.fits outfile=/scratch/kocevski/641013/expmap_521596801_521856001_4FGL_J2139.4-4235_daily_bin1089.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/641013/ltcube_521596801_521856001_4FGL_J2139.4-4235_daily_bin1089.fits
.....................!
real 192.43
user 186.75
sys 5.21

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

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

This is gtbin version HEAD
real 0.54
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/641013/ft1_filtered_4FGL_J2139.4-4235_daily_bin1089.fits scfile=/scratch/kocevski/641013/ft2_4FGL_J2139.4-4235_daily_bin1089.fits outfile=/scratch/kocevski/641013/cmap_HighResolution_521596801_521856001_4FGL_J2139.4-4235_daily_bin1089.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.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/641013/ft1_filtered_4FGL_J2139.4-4235_daily_bin1089.fits evtable="EVENTS" scfile=/scratch/kocevski/641013/ft2_4FGL_J2139.4-4235_daily_bin1089.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/641013/Model_4FGL_J2139.4-4235_daily_bin1089.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/641013/ft1_filtered_4FGL_J2139.4-4235_daily_bin1089.fits.....................!
real 64.92
user 63.58
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .43967       1.0000         .10000E-03   10000.    
     2 'Prefactor '    36.307       1.0000         .10000E-03   10000.    
     3 'norm      '    .13813E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .58252E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.008       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.1365       1.0000         .10000E-03   10000.    
    10 'norm      '    8.0171       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .30611E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10392E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .12695E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.0141       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.1342       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.7546       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    10.529       1.0000         .10000E-03   10000.    
    21 'Prefactor '    14.717       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .51477       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.3313       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=   8709.433     FROM MIGRAD    STATUS=CONVERGED    990 CALLS     3430 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .39823        19.028        .13474        .22510E-03
   2  Prefactor     36.287        49.194        .66512E-04   -.18118E-04
   3  norm          .10000E-03    2.9829        .14111E-02** at limit **
   4  Prefactor     .10000E-03    7.6522        .18142E-02** at limit **
   5  Prefactor     .10000E-03    14.720        .18142E-02** at limit **
   6  Prefactor     .97420E-02    9.2299        .49690E-01    .15125E-03
   7  Prefactor     10.037        20.406        .12667E-03    .18489E-04
   8  Prefactor     .10000E-03    32.450        .18142E-02** at limit **
   9  Prefactor     5.1376        3.7152        .14541E-03    .11258E-03
  10  norm          8.0166        3.9625        .12221E-03    .10866E-03
  11  Prefactor     .10000E-03    2.6810        .14870E-02** at limit **
  12  Prefactor     .10000E-03    20.767        .39450E-02** at limit **
  13  norm          .10000E-03    6.1761        .36285E-03** at limit **
  14  Prefactor     .10000E-03    32.919        .13095    ** at limit **
  15  Prefactor     6.0090        5.8906        .16373E-03   -.13471E-04
  16  Prefactor     .10000E-03    18.898        .18142E-02** at limit **
  17  Prefactor     1.1359        12.362        .21894E-02    .51572E-04
  18  Prefactor     1.7540        2.8457        .19119E-03    .73616E-04
  19  Prefactor     .10000E-03    8.2601        .18142E-02** at limit **
  20  Prefactor     10.528        5.8233        .12348E-03   -.90228E-05
  21  Prefactor     14.714        20.594        .10441E-03    .26133E-05
  22  Normalizat    .51472        .20758        .37902E-03    .62030E-04
  23  Prefactor     1.3314        .13519        .17451E-03    .95767E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.398229
  Prefactor  = 36.2874
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.00974198
  Prefactor  = 10.0369
  Prefactor  = 0.0001
  Prefactor  = 5.13765
  norm       = 8.0166
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.00898
  Prefactor  = 0.0001
  Prefactor  = 1.13587
  Prefactor  = 1.75404
  Prefactor  = 0.0001
  Prefactor  = 10.5283
  Prefactor  = 14.7138
  Normalizat = 0.514716
  Prefactor  = 1.33139
 **********
 **   18 **HESSE 
 **********

 FCN=   8709.433     FROM HESSE     STATUS=OK           378 CALLS     3808 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .39823        18.801        .13627       -1.5582    
   2  Prefactor     36.287        49.193        .13302E-04   -1.4502    
   3  norm          .10000E-03    2.9988        .28222E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    7.6527        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    14.720        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .97420E-02    6.1523        .63216E-01   -1.5688    
   7  Prefactor     10.037        20.394        .50666E-05   -1.5074    
   8  Prefactor     .10000E-03    32.472        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.1376        3.7146        .58164E-05   -1.5255    
  10  norm          8.0166        3.9620        .48883E-05   -1.5142    
  11  Prefactor     .10000E-03    2.6814        .29740E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    21.044        .78899E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    6.1764        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    32.247        .13270       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.0090        5.8889        .65492E-05   -1.5218    
  16  Prefactor     .10000E-03    18.898        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.1359        12.276        .87577E-04   -1.5495    
  18  Prefactor     1.7540        2.8447        .76475E-05   -1.5443    
  19  Prefactor     .10000E-03    8.2602        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     10.528        5.8225        .49392E-05   -1.5059    
  21  Prefactor     14.714        20.591        .41763E-05   -1.4941    
  22  Normalizat    .51472        .20683        .15161E-04   -1.1174    
  23  Prefactor     1.3314        .13512        .69802E-05   -.82378    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.33681e-10
Minuit parameter uncertainties:
  1  5.47369
  2  49.248
  3  2.91941e-05
  4  2.65189e-06
  5  1.40705e-05
  6  0.487165
  7  20.4083
  8  5.60653e-05
  9  3.71473
  10  3.96214
  11  1.1313e-06
  12  6.22202e-06
  13  1.39611e-05
  14  1.56314e-05
  15  5.88945
  16  8.7444e-06
  17  7.47005
  18  2.84487
  19  1.17249e-05
  20  5.82281
  21  20.6005
  22  0.207134
  23  0.135155
Done.

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

Extracting fit parameters...

4FGL J2139.4-4235
   Spectrum: LogParabola
298         norm:  8.017e+00  3.962e+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.331e+00  1.352e-01  0.000e+00  1.000e+01 ( 1.000e+00)
579        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
580        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
577   Normalization:  5.147e-01  2.071e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 12.06
Ra Dec: 324.855 -42.590
Photon Index (Fixed Index): 1.93 +/- 0.00
Photon Flux (Fixed Index): 4.86e-08 +/- 2.40e-08
Energy Flux (Fixed Index): 3.42e-05 +/- 1.69e-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) = 8709.20186636
delta logL = 0.230764106866

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8709.19512255
delta logL = 0.237507923359

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.6174       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2587       1.0000          .0000       5.0000    
     3 'Normalizat'    .48900       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3407       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=   8709.195     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      267 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.6177        3.8630        .11018E-03   -.85685E-03
   2  alpha         2.2595        .49086        .11675E-01   -.98955E-04
   3  Normalizat    .48892        .18776        .38835E-03    .79685E-04
   4  Prefactor     1.3408        .13180        .17395E-03    .23688E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 7.61765
  alpha      = 2.25951
  Normalizat = 0.488915
  Prefactor  = 1.34078
 **********
 **   18 **HESSE 
 **********

 FCN=   8709.195     FROM HESSE     STATUS=OK            25 CALLS      292 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.6177        3.7808        .44071E-05   -1.5156    
   2  alpha         2.2595        .47991        .46700E-03   -.96345E-01
   3  Normalizat    .48892        .18763        .15534E-04   -1.1293    
   4  Prefactor     1.3408        .13179        .34790E-04   -.82102    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.0084e-10
Minuit parameter uncertainties:
  1  3.78092
  2  0.48294
  3  0.187877
  4  0.131819
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/641013': 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) = 8709.19512003
delta logL = 0.237510436116

Extracting fit parameters...

4FGL J2139.4-4235
   Spectrum: LogParabola
298         norm:  7.618e+00  3.781e+00  1.000e-04  1.000e+04 ( 1.000e-12)
299        alpha:  2.260e+00  4.829e-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.341e+00  1.318e-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:  4.889e-01  1.879e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.56
Ra Dec: 324.855 -42.590
Photon Index (Free Index): 2.26 +/- 0.48
Photon Flux (Free Index): 6.86e-08 +/- 4.18e-08
Energy Flux (Free Index): 2.68e-05 +/- 1.39e-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/641013/cmap_HighResolution_521596801_521856001_4FGL_J2139.4-4235_daily_bin1089.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.86e-08', energy_flux2='2.68e-05', photon_flux_error='2.40e-08', dlogl='2.38e-01', energy_flux='3.42e-05', photon_flux2='6.86e-08', job_status='DONE', time_completed='2021-09-26 22:05:49.071351', photon_index_error2='0.48', photon_index2='2.26', ts='12.06', fit_tolerance='1e-08', GAL='1.33', photon_index_error='0.00', energy_flux_error2='1.39e-05', EG='0.51', time_epoch_completed='1632719149.07', return_code='0', job_id='641013', GAL2='1.34', EG2='0.49', return_code2='0', energy_flux_error='1.69e-05', photon_flux_error2='4.18e-08', ts2='12.56', photon_index='1.93' WHERE bin_id='1089' AND source_name='4FGL J2139.4-4235' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 22:05:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0011>
Subject: Job 641013: <4FGL_J2139.4-4235_daily_bin1089> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2139.4-4235_daily_bin1089 324.855 -42.5895 521596801 521856001 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 :                                   814.46 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             345.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   877 sec.
    Turnaround time :                            927 sec.

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

