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


Performing analysis on: 4FGL_J2139.4-4235_daily_bin1109
RA = 324.855, Dec = -42.5895
tmin = 526780801, tmax = 527040001
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='641044', job_status='RUN', time_executed='2021-09-26 21:53:17.547027', time_epoch_executed='1632718397.55' WHERE source_name='4FGL J2139.4-4235' and cadence='daily' and bin_id='1109'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/641044

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/641044/ft1_4FGL_J2139.4-4235_daily_bin1109.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/641044/ft2_4FGL_J2139.4-4235_daily_bin1109.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/641044/ft1_4FGL_J2139.4-4235_daily_bin1109.fits outfile=/scratch/kocevski/641044/ft1_filteredMKT_4FGL_J2139.4-4235_daily_bin1109.fits ra=324.855 dec=-42.5895 rad=12.0 tmin=526780801.0 tmax=527040001.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 7.88
user 4.10
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/641044/ft1_filtered_4FGL_J2139.4-4235_daily_bin1109.fits" evtable="EVENTS" scfile=/scratch/kocevski/641044/ft2_4FGL_J2139.4-4235_daily_bin1109.fits sctable="SC_DATA" outfile=/scratch/kocevski/641044/ltcube_526780801_527040001_4FGL_J2139.4-4235_daily_bin1109.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/641044/ft2_4FGL_J2139.4-4235_daily_bin1109.fits
.....................!
real 12.31
user 11.93
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/641044/ft1_filtered_4FGL_J2139.4-4235_daily_bin1109.fits evtable="EVENTS" scfile=/scratch/kocevski/641044/ft2_4FGL_J2139.4-4235_daily_bin1109.fits sctable="SC_DATA" expcube=/scratch/kocevski/641044/ltcube_526780801_527040001_4FGL_J2139.4-4235_daily_bin1109.fits outfile=/scratch/kocevski/641044/expmap_526780801_527040001_4FGL_J2139.4-4235_daily_bin1109.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/641044/ltcube_526780801_527040001_4FGL_J2139.4-4235_daily_bin1109.fits
.....................!
real 190.64
user 185.05
sys 5.16

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/641044/ft1_filtered_4FGL_J2139.4-4235_daily_bin1109.fits scfile=/scratch/kocevski/641044/ft2_4FGL_J2139.4-4235_daily_bin1109.fits outfile=/scratch/kocevski/641044/cmap_526780801_527040001_4FGL_J2139.4-4235_daily_bin1109.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.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/641044/ft1_filtered_4FGL_J2139.4-4235_daily_bin1109.fits scfile=/scratch/kocevski/641044/ft2_4FGL_J2139.4-4235_daily_bin1109.fits outfile=/scratch/kocevski/641044/cmap_HighResolution_526780801_527040001_4FGL_J2139.4-4235_daily_bin1109.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/641044/ft1_filtered_4FGL_J2139.4-4235_daily_bin1109.fits evtable="EVENTS" scfile=/scratch/kocevski/641044/ft2_4FGL_J2139.4-4235_daily_bin1109.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/641044/Model_4FGL_J2139.4-4235_daily_bin1109.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/641044/ft1_filtered_4FGL_J2139.4-4235_daily_bin1109.fits....................!
real 55.84
user 54.30
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.435       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .13159E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.9920       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .17016E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .14503E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.3622       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .12506E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .12237E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .39189E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    12.711       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.6090       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .66799E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .53445E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    25.134       1.0000         .10000E-03   10000.    
    16 'Prefactor '    70.202       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.5888       1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.9173       1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.0505       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .25097       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .11163E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.3430       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .79067       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=   6983.237     FROM MIGRAD    STATUS=CONVERGED    583 CALLS     2610 TOTAL
                     EDM=   .38E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.380        18.934       -.37866E-05   -.63608E-05
   2  Prefactor     .10000E-03    21.207       -.44607E-05** at limit **
   3  norm          1.9914        1.5552       -.12305E-06   -.42328E-03
   4  Prefactor     .10000E-03    5.7311        .10307E-06** at limit **
   5  Prefactor     .10000E-03    27.191       -.68448E-05** at limit **
   6  Prefactor     6.3563        7.7637        .38315E-05   -.10833E-03
   7  Prefactor     .10000E-03    9.4415        .61038E-06** at limit **
   8  Prefactor     .10000E-03    21.873        .62073E-05** at limit **
   9  Prefactor     .10000E-03    2.3806       -.89141E-06** at limit **
  10  norm          12.709        5.2511       -.16764E-06   -.12399E-03
  11  Prefactor     5.5974        6.7006       -.59759E-05   -.28421E-03
  12  Prefactor     .10001E-03    4.9578        .10063E-05** at limit **
  13  norm          .10000E-03    2.2481        .41047E-07** at limit **
  14  Prefactor     .10000E-03    39.159        .28959E-04** at limit **
  15  Prefactor     25.172        13.938        .30364E-05   -.79512E-04
  16  Prefactor     69.389        129.67       -.38116E-05   -.18973E-05
  17  Prefactor     2.5949        9.3823       -.70098E-06   -.23453E-03
  18  Prefactor     5.9309        4.2678        .12792E-06   -.70008E-04
  19  Prefactor     4.0663        66.812       -.14522E-04   -.15590E-04
  20  Prefactor     .18737        5.0431       -.49641E-06   -.14293E-03
  21  Prefactor     .10000E-03    8.7171       -.95660E-07** at limit **
  22  Normalizat    1.3431        .20319       -.31823E-06    .48896E-04
  23  Prefactor     .79074        .11874        .26901E-06   -.33554E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.3799
  Prefactor  = 0.0001
  norm       = 1.99144
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.35634
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 12.7093
  Prefactor  = 5.59744
  Prefactor  = 0.000100011
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 25.1716
  Prefactor  = 69.389
  Prefactor  = 2.59485
  Prefactor  = 5.93092
  Prefactor  = 4.06626
  Prefactor  = 0.187367
  Prefactor  = 0.0001
  Normalizat = 1.34314
  Prefactor  = 0.790735
 **********
 **   18 **HESSE 
 **********

 FCN=   6983.237     FROM HESSE     STATUS=OK           374 CALLS     2984 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.380        18.935        .11847E-03   -1.5033    
   2  Prefactor     .10000E-03    21.208        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.9914        1.5479        .88078E-04   -1.5426    
   4  Prefactor     .10000E-03    5.7343        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    27.211        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.3563        7.7329        .15913E-03   -1.5204    
   7  Prefactor     .10000E-03    9.4493        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    21.996        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    8.2103        .24508E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          12.709        5.2493        .11235E-03   -1.4995    
  11  Prefactor     5.5974        6.7489        .16962E-03   -1.5235    
  12  Prefactor     .10001E-03    14.017        .35752E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    2.2523        .12236E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    38.727        .21124E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     25.172        13.929        .79903E-04   -1.4704    
  16  Prefactor     69.389        129.76        .47910E-04   -1.4040    
  17  Prefactor     2.5949        9.4257        .25361E-03   -1.5386    
  18  Prefactor     5.9309        4.2678        .14017E-03   -1.5221    
  19  Prefactor     4.0663        67.039        .20035E-03   -1.5305    
  20  Prefactor     .18737        99.408        .35691E-02   -1.5621    
  21  Prefactor     .10000E-03    8.7206        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.3431        .23743        .27245E-03   -.82288    
  23  Prefactor     .79074        .13861        .21537E-03   -1.0007    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.8782e-09
Minuit parameter uncertainties:
  1  18.9448
  2  6.36469e-06
  3  1.54791
  4  1.95736e-06
  5  2.79396e-06
  6  7.73409
  7  8.16394e-06
  8  2.83718e-05
  9  0.000177459
  10  5.24953
  11  6.74984
  12  0.000783032
  13  8.3511e-06
  14  0.000284454
  15  13.9305
  16  130.297
  17  9.43105
  18  4.26798
  19  33.0644
  20  8.64365
  21  5.23044e-06
  22  0.237624
  23  0.138667
Done.

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

Extracting fit parameters...

4FGL J2139.4-4235
   Spectrum: LogParabola
298         norm:  1.271e+01  5.250e+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:  7.907e-01  1.387e-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.343e+00  2.376e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 22.21
Ra Dec: 324.855 -42.590
Photon Index (Fixed Index): 1.93 +/- 0.00
Photon Flux (Fixed Index): 7.70e-08 +/- 3.18e-08
Energy Flux (Fixed Index): 5.43e-05 +/- 2.24e-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) = 6983.21089849
delta logL = 0.0265843178422

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6983.2094447
delta logL = 0.0280381116136

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.492       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8361       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3529       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78775       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=   6983.209     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      201 TOTAL
                     EDM=   .80E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.492        6.2078        .28334E-02    .15279E-02
   2  alpha         1.8360        .39351        .28576       -.15960E-04
   3  Normalizat    1.3529        .19124        .61423E-01    .69585E-05
   4  Prefactor     .78775        .11829        .43558E-01    .12285E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 12.4918
  alpha      = 1.83605
  Normalizat = 1.35287
  Prefactor  = 0.78775
 **********
 **   18 **HESSE 
 **********

 FCN=   6983.209     FROM HESSE     STATUS=OK            31 CALLS      232 TOTAL
                     EDM=   .55E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.492        5.4192        .11334E-03   -1.5001    
   2  alpha         1.8360        .38948        .11055E-01   -.26881    
   3  Normalizat    1.3529        .22064        .27167E-03   -.82002    
   4  Prefactor     .78775        .13648        .21576E-03   -1.0018    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.51149e-10
Minuit parameter uncertainties:
  1  5.41946
  2  0.391198
  3  0.220794
  4  0.136539
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/641044': 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) = 6983.20944468
delta logL = 0.0280381276434

Extracting fit parameters...

4FGL J2139.4-4235
   Spectrum: LogParabola
298         norm:  1.249e+01  5.419e+00  1.000e-04  1.000e+04 ( 1.000e-12)
299        alpha:  1.836e+00  3.912e-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:  7.878e-01  1.365e-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.353e+00  2.208e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 22.24
Ra Dec: 324.855 -42.590
Photon Index (Free Index): 1.84 +/- 0.39
Photon Flux (Free Index): 6.89e-08 +/- 4.37e-08
Energy Flux (Free Index): 6.01e-05 +/- 3.75e-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/641044/cmap_HighResolution_526780801_527040001_4FGL_J2139.4-4235_daily_bin1109.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.70e-08', energy_flux2='6.01e-05', photon_flux_error='3.18e-08', dlogl='2.80e-02', energy_flux='5.43e-05', photon_flux2='6.89e-08', job_status='DONE', time_completed='2021-09-26 22:04:28.382111', photon_index_error2='0.39', photon_index2='1.84', ts='22.21', fit_tolerance='1e-08', GAL='0.79', photon_index_error='0.00', energy_flux_error2='3.75e-05', EG='1.34', time_epoch_completed='1632719068.38', return_code='0', job_id='641044', GAL2='0.79', EG2='1.35', return_code2='0', energy_flux_error='2.24e-05', photon_flux_error2='4.37e-08', ts2='22.24', photon_index='1.93' WHERE bin_id='1109' AND source_name='4FGL J2139.4-4235' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 22:04:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0267>
Subject: Job 641044: <4FGL_J2139.4-4235_daily_bin1109> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2139.4-4235_daily_bin1109 324.855 -42.5895 526780801 527040001 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 :                                   634.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             298.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   781 sec.
    Turnaround time :                            844 sec.

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

