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


Performing analysis on: 4FGL_J2139.4-4235_daily_bin1583
RA = 324.855, Dec = -42.5895
tmin = 649641601, tmax = 649900801
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='642903', job_status='RUN', time_executed='2021-09-26 21:58:59.141593', time_epoch_executed='1632718739.14' WHERE source_name='4FGL J2139.4-4235' and cadence='daily' and bin_id='1583'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/642903

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/642903/ft1_4FGL_J2139.4-4235_daily_bin1583.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/642903/ft2_4FGL_J2139.4-4235_daily_bin1583.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/642903/ft1_4FGL_J2139.4-4235_daily_bin1583.fits outfile=/scratch/kocevski/642903/ft1_filteredMKT_4FGL_J2139.4-4235_daily_bin1583.fits ra=324.855 dec=-42.5895 rad=12.0 tmin=649641601.0 tmax=649900801.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.58
user 2.38
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/642903/ft1_filtered_4FGL_J2139.4-4235_daily_bin1583.fits" evtable="EVENTS" scfile=/scratch/kocevski/642903/ft2_4FGL_J2139.4-4235_daily_bin1583.fits sctable="SC_DATA" outfile=/scratch/kocevski/642903/ltcube_649641601_649900801_4FGL_J2139.4-4235_daily_bin1583.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/642903/ft2_4FGL_J2139.4-4235_daily_bin1583.fits
.....................!
real 15.93
user 15.54
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/642903/ft1_filtered_4FGL_J2139.4-4235_daily_bin1583.fits evtable="EVENTS" scfile=/scratch/kocevski/642903/ft2_4FGL_J2139.4-4235_daily_bin1583.fits sctable="SC_DATA" expcube=/scratch/kocevski/642903/ltcube_649641601_649900801_4FGL_J2139.4-4235_daily_bin1583.fits outfile=/scratch/kocevski/642903/expmap_649641601_649900801_4FGL_J2139.4-4235_daily_bin1583.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/642903/ltcube_649641601_649900801_4FGL_J2139.4-4235_daily_bin1583.fits
.....................!
real 191.32
user 186.21
sys 4.58

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/642903/ft1_filtered_4FGL_J2139.4-4235_daily_bin1583.fits scfile=/scratch/kocevski/642903/ft2_4FGL_J2139.4-4235_daily_bin1583.fits outfile=/scratch/kocevski/642903/cmap_649641601_649900801_4FGL_J2139.4-4235_daily_bin1583.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.55
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/642903/ft1_filtered_4FGL_J2139.4-4235_daily_bin1583.fits scfile=/scratch/kocevski/642903/ft2_4FGL_J2139.4-4235_daily_bin1583.fits outfile=/scratch/kocevski/642903/cmap_HighResolution_649641601_649900801_4FGL_J2139.4-4235_daily_bin1583.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.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/642903/ft1_filtered_4FGL_J2139.4-4235_daily_bin1583.fits evtable="EVENTS" scfile=/scratch/kocevski/642903/ft2_4FGL_J2139.4-4235_daily_bin1583.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/642903/Model_4FGL_J2139.4-4235_daily_bin1583.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/642903/ft1_filtered_4FGL_J2139.4-4235_daily_bin1583.fits...................................!
real 16.55
user 15.25
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.1296       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .60186E-01   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .19266       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10219E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10611E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    29.074       1.0000         .10000E-03   10000.    
    10 'norm      '    51.256       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    96.695       1.0000         .10000E-03   10000.    
    13 'norm      '    35.445       1.0000         .10000E-03   10000.    
    14 'Prefactor '    210.84       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11822E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    613.62       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10203E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    35.481       1.0000         .10000E-03   10000.    
    21 'Prefactor '    107.42       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .18342       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .86895       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=   423.6517     FROM MIGRAD    STATUS=CONVERGED    932 CALLS     3301 TOTAL
                     EDM=   .74E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor    10000.0        6276.9        .11458E-01** at limit **
   2  Prefactor     .10009E-03    7892.5        .18639E-02** at limit **
   3  norm          .10000E-03    21.583        .93489E-03** at limit **
   4  Prefactor     .10020E-03    9214.1        .19888E-02** at limit **
   5  Prefactor     .10000E-03    129.01        .18142E-02** at limit **
   6  Prefactor     .10000E-03    134.18        .18142E-02** at limit **
   7  Prefactor     .10000E-03    334.81        .18142E-02** at limit **
   8  Prefactor     .10000E-03    110.84        .18142E-02** at limit **
   9  Prefactor     28.926        26.798        .74302E-04    .17877E-04
  10  norm          51.255        46.598        .56017E-04   -.10447E-04
  11  Prefactor     .10000E-03    117.12        .18142E-02** at limit **
  12  Prefactor     96.733        114.31        .20438E-03   -.84514E-05
  13  norm          35.474        155.79        .67313E-04    .26390E-06
  14  Prefactor     210.88        242.26        .13921E-03   -.12102E-04
  15  Prefactor     .10000E-03    44.800        .13462E-02** at limit **
  16  Prefactor     613.97        540.61        .83336E-04   -.64970E-05
  17  Prefactor     .10000E-03    37.190        .12266E-02** at limit **
  18  Prefactor     .10000E-03    21.107        .91639E-03** at limit **
  19  Prefactor     .10000E-03    90.403        .18142E-02** at limit **
  20  Prefactor     35.476        37.004        .67278E-04   -.27322E-04
  21  Prefactor     107.47        117.27        .38803E-04   -.17019E-04
  22  Normalizat    .18276        1.4945        .69628E-03   -.49422E-05
  23  Prefactor     .86932        .66415        .24139E-03   -.27757E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10000
  Prefactor  = 0.000100095
  norm       = 0.0001
  Prefactor  = 0.000100198
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 28.9256
  norm       = 51.2552
  Prefactor  = 0.0001
  Prefactor  = 96.7333
  norm       = 35.4736
  Prefactor  = 210.877
  Prefactor  = 0.000100001
  Prefactor  = 613.966
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 35.4763
  Prefactor  = 107.466
  Normalizat = 0.182755
  Prefactor  = 0.869316
 **********
 **   18 **HESSE 
 **********

 FCN=   423.6517     FROM HESSE     STATUS=OK           346 CALLS     3647 TOTAL
                     EDM=   .75E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor    10000.0        6277.6        .22917E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10009E-03    7892.5        .37279E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    21.583        .18698E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10020E-03    9214.1        .39776E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    129.01        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    134.20        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    334.81        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    110.84        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     28.926        26.795        .14860E-04   -1.4632    
  10  norm          51.255        46.599        .11203E-04   -1.4275    
  11  Prefactor     .10000E-03    117.12        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     96.733        114.31        .81753E-05   -1.3738    
  13  norm          35.474        155.63        .26925E-05   -1.4516    
  14  Prefactor     210.88        242.22        .27843E-04   -1.2793    
  15  Prefactor     .10000E-03    44.801        .26924E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     613.97        540.50        .16667E-04   -1.0700    
  17  Prefactor     .10000E-03    37.191        .24532E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    21.109        .18328E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    90.403        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     35.476        36.980        .26911E-05   -1.4516    
  21  Prefactor     107.47        117.21        .77605E-05   -1.3631    
  22  Normalizat    .18276        1.4853        .27851E-04   -1.3070    
  23  Prefactor     .86932        .66275        .96558E-05   -.97222    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.46525e-11
Minuit parameter uncertainties:
  1  0.889222
  2  0.053253
  3  1.29487e-08
  4  0.103617
  5  7.52459e-06
  6  2.09145e-06
  7  0.00132729
  8  8.84211e-05
  9  26.8059
  10  46.6325
  11  1.95475e-06
  12  114.568
  13  149.26
  14  243.383
  15  0.000374473
  16  545.174
  17  3.31203e-05
  18  0.000135689
  19  4.52512e-05
  20  37.0035
  21  117.46
  22  1.05039
  23  0.669017
Done.

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

Extracting fit parameters...

4FGL J2139.4-4235
   Spectrum: LogParabola
298         norm:  5.126e+01  4.663e+01  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:  8.693e-01  6.690e-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.828e-01  1.050e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.19
Ra Dec: 324.855 -42.590
Photon Index (Fixed Index): 1.93 +/- 0.00
Photon Flux (Fixed Index): 3.11e-07 +/- 2.83e-07
Energy Flux (Fixed Index): 2.19e-04 +/- 1.99e-04

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) = 423.60394704
delta logL = 0.0477974140772

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 423.603047091
delta logL = 0.0486973630335

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    49.802       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6943       1.0000          .0000       5.0000    
     3 'Normalizat'    .20210       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86440       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=   423.6030     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      184 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          49.802        44.893        .14206E-02   -.54710E-03
   2  alpha         1.6943        .69517        .13686        .43357E-05
   3  Normalizat    .20190        1.5737        .15022        .58556E-05
   4  Prefactor     .86453        .84472        .44550E-01    .30028E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 49.8024
  alpha      = 1.69429
  Normalizat = 0.201901
  Prefactor  = 0.864531
 **********
 **   18 **HESSE 
 **********

 FCN=   423.6030     FROM HESSE     STATUS=OK            29 CALLS      213 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          49.802        46.550        .56825E-04   -1.4295    
   2  alpha         1.6943        .72985        .59417E-03   -.32814    
   3  Normalizat    .20190        .91607        .65932E-03   -1.2927    
   4  Prefactor     .86453        .63820        .24223E-03   -.97392    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.28104e-09
Minuit parameter uncertainties:
  1  46.5838
  2  0.741948
  3  0.860967
  4  0.643822
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/642903': 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) = 423.603047064
delta logL = 0.0486973907799

Extracting fit parameters...

4FGL J2139.4-4235
   Spectrum: LogParabola
298         norm:  4.980e+01  4.658e+01  1.000e-04  1.000e+04 ( 1.000e-12)
299        alpha:  1.694e+00  7.419e-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:  8.645e-01  6.438e-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:  2.019e-01  8.610e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.21
Ra Dec: 324.855 -42.590
Photon Index (Free Index): 1.69 +/- 0.74
Photon Flux (Free Index): 2.43e-07 +/- 2.97e-07
Energy Flux (Free Index): 3.03e-04 +/- 4.45e-04

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/642903/cmap_HighResolution_649641601_649900801_4FGL_J2139.4-4235_daily_bin1583.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.11e-07', energy_flux2='3.03e-04', photon_flux_error='2.83e-07', dlogl='4.87e-02', energy_flux='2.19e-04', photon_flux2='2.43e-07', job_status='DONE', time_completed='2021-09-26 22:04:51.451450', photon_index_error2='0.74', photon_index2='1.69', ts='4.19', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', energy_flux_error2='4.45e-04', EG='0.18', time_epoch_completed='1632719091.45', return_code='0', job_id='642903', GAL2='0.86', EG2='0.20', return_code2='0', energy_flux_error='1.99e-04', photon_flux_error2='2.97e-07', ts2='4.21', photon_index='1.93' WHERE bin_id='1583' AND source_name='4FGL J2139.4-4235' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 22:04:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0117>
Subject: Job 642903: <4FGL_J2139.4-4235_daily_bin1583> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2139.4-4235_daily_bin1583 324.855 -42.5895 649641601 649900801 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 :                                   343.45 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             294.18 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   480 sec.
    Turnaround time :                            573 sec.

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

