/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 12 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_bin1581
RA = 324.855, Dec = -42.5895
tmin = 649123201, tmax = 649382401
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='642900', job_status='RUN', time_executed='2021-09-26 21:57:13.903428', time_epoch_executed='1632718633.9' WHERE source_name='4FGL J2139.4-4235' and cadence='daily' and bin_id='1581'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/642900

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/642900/ft1_4FGL_J2139.4-4235_daily_bin1581.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/642900/ft2_4FGL_J2139.4-4235_daily_bin1581.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/642900/ft1_4FGL_J2139.4-4235_daily_bin1581.fits outfile=/scratch/kocevski/642900/ft1_filteredMKT_4FGL_J2139.4-4235_daily_bin1581.fits ra=324.855 dec=-42.5895 rad=12.0 tmin=649123201.0 tmax=649382401.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.99
user 2.75
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/642900/ft1_filtered_4FGL_J2139.4-4235_daily_bin1581.fits" evtable="EVENTS" scfile=/scratch/kocevski/642900/ft2_4FGL_J2139.4-4235_daily_bin1581.fits sctable="SC_DATA" outfile=/scratch/kocevski/642900/ltcube_649123201_649382401_4FGL_J2139.4-4235_daily_bin1581.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/642900/ft2_4FGL_J2139.4-4235_daily_bin1581.fits
.....................!
real 13.61
user 13.27
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/642900/ft1_filtered_4FGL_J2139.4-4235_daily_bin1581.fits evtable="EVENTS" scfile=/scratch/kocevski/642900/ft2_4FGL_J2139.4-4235_daily_bin1581.fits sctable="SC_DATA" expcube=/scratch/kocevski/642900/ltcube_649123201_649382401_4FGL_J2139.4-4235_daily_bin1581.fits outfile=/scratch/kocevski/642900/expmap_649123201_649382401_4FGL_J2139.4-4235_daily_bin1581.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/642900/ltcube_649123201_649382401_4FGL_J2139.4-4235_daily_bin1581.fits
.....................!
real 192.43
user 186.43
sys 5.47

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/642900/ft1_filtered_4FGL_J2139.4-4235_daily_bin1581.fits scfile=/scratch/kocevski/642900/ft2_4FGL_J2139.4-4235_daily_bin1581.fits outfile=/scratch/kocevski/642900/cmap_649123201_649382401_4FGL_J2139.4-4235_daily_bin1581.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/642900/ft1_filtered_4FGL_J2139.4-4235_daily_bin1581.fits scfile=/scratch/kocevski/642900/ft2_4FGL_J2139.4-4235_daily_bin1581.fits outfile=/scratch/kocevski/642900/cmap_HighResolution_649123201_649382401_4FGL_J2139.4-4235_daily_bin1581.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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/642900/ft1_filtered_4FGL_J2139.4-4235_daily_bin1581.fits evtable="EVENTS" scfile=/scratch/kocevski/642900/ft2_4FGL_J2139.4-4235_daily_bin1581.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/642900/Model_4FGL_J2139.4-4235_daily_bin1581.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/642900/ft1_filtered_4FGL_J2139.4-4235_daily_bin1581.fits..........................!
real 19.82
user 17.60
sys 1.60

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     2 'Prefactor '    9999.8       1.0000         .10000E-03   10000.    
     3 'norm      '    45.944       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5953.2       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .17796E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10963E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .92915E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    21.612       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11118E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    20.897       1.0000         .10000E-03   10000.    
    13 'norm      '    .10057E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10102E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .12008E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    538.22       1.0000         .10000E-03   10000.    
    17 'Prefactor '    23.789       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10363E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .17567E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10159E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .75947       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.2161       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=   894.1688     FROM MIGRAD    STATUS=CONVERGED    492 CALLS     2936 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10000.        9432.6        .32583E-02** at limit **
   2  Prefactor    10000.0        9997.5        .77730E-02** at limit **
   3  norm          45.885        84.235       -.56068E-04    .13308E-03
   4  Prefactor     5955.2        7432.4        .40839E-03    .22952E-05
   5  Prefactor     .10001E-03    341.78       -.63473E-04** at limit **
   6  Prefactor     .10000E-03    20.423       -.16865E-05** at limit **
   7  Prefactor     .10000E-03    94.874       -.68547E-04** at limit **
   8  Prefactor     .10018E-03    603.49       -.57837E-03** at limit **
   9  Prefactor     .10000E-03    6.1147       -.40725E-06** at limit **
  10  norm          21.628        20.506        .23952E-05    .38589E-04
  11  Prefactor     .10000E-03    36.695       -.14918E-04** at limit **
  12  Prefactor     20.962        42.722        .97108E-05    .34027E-04
  13  norm          .10000E-03    21.581        .27034E-05** at limit **
  14  Prefactor     .10000E-03    50.451       -.19742E-04** at limit **
  15  Prefactor     .10005E-03    47.321        .51692E-05** at limit **
  16  Prefactor     538.39        326.29        .73913E-04    .46097E-04
  17  Prefactor     23.791        41.894        .11640E-05   -.66612E-04
  18  Prefactor     .10000E-03    11.179        .55542E-06** at limit **
  19  Prefactor     .10000E-03    183.27        .24052E-03** at limit **
  20  Prefactor     .10000E-03    7.9123       -.29870E-06** at limit **
  21  Prefactor     .10000E-03    44.921        .32303E-04** at limit **
  22  Normalizat    .75975        .59479       -.11553E-04    .13718E-03
  23  Prefactor     1.2157        .46853       -.66551E-05    .26743E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10000
  Prefactor  = 10000
  norm       = 45.8847
  Prefactor  = 5955.2
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.00010018
  Prefactor  = 0.0001
  norm       = 21.6279
  Prefactor  = 0.0001
  Prefactor  = 20.9625
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100052
  Prefactor  = 538.387
  Prefactor  = 23.7907
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.759745
  Prefactor  = 1.21566
 **********
 **   18 **HESSE 
 **********

 FCN=   894.1688     FROM HESSE     STATUS=OK           350 CALLS     3286 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10000.        9433.3        .18332E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor    10000.0        9997.7        .19586E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          45.885        84.207        .29576E-03   -1.4352    
   4  Prefactor     5955.2        7438.0        .40747E-04    .19222    
   5  Prefactor     .10001E-03    342.15        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    20.424        .13205E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    94.880        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10018E-03    606.60        .18210E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    6.1174        .72233E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          21.628        20.507        .86158E-04   -1.4778    
  11  Prefactor     .10000E-03    36.698        .17700E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     20.962        42.718        .87619E-04   -1.4792    
  13  norm          .10000E-03    21.582        .13574E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    50.456        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10005E-03    47.677        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     538.39        325.90        .88627E-04   -1.1025    
  17  Prefactor     23.791        42.633        .82127E-04   -1.4732    
  18  Prefactor     .10000E-03    11.285        .97401E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    183.90        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    7.9298        .82143E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    44.979        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .75975        .69965        .35388E-03   -1.0158    
  23  Prefactor     1.2157        .55506        .23554E-03   -.85851    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.20119e-09
Minuit parameter uncertainties:
  1  0.000118855
  2  0.00708973
  3  84.4268
  4  5367.2
  5  0.00304562
  6  2.70916e-05
  7  7.69262e-05
  8  0.0211074
  9  2.71176e-05
  10  20.5141
  11  0.000229912
  12  42.7801
  13  1.37097e-05
  14  0.00016792
  15  0.00316438
  16  327.045
  17  42.6878
  18  3.60363e-05
  19  0.000423955
  20  4.78845e-05
  21  4.32399e-05
  22  0.708161
  23  0.557761
Done.

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

Extracting fit parameters...

4FGL J2139.4-4235
   Spectrum: LogParabola
298         norm:  2.163e+01  2.051e+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:  1.216e+00  5.578e-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:  7.597e-01  7.082e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.78
Ra Dec: 324.855 -42.590
Photon Index (Fixed Index): 1.93 +/- 0.00
Photon Flux (Fixed Index): 1.31e-07 +/- 1.24e-07
Energy Flux (Fixed Index): 9.24e-05 +/- 8.76e-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) = 893.79742401
delta logL = 0.371399079317

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 893.737604917
delta logL = 0.431218172608

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    14.299       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.2285       1.0000          .0000       5.0000    
     3 'Normalizat'    .77569       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2228       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=   893.7376     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      200 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          14.299        15.903        .26481E-02    .25830E-02
   2  alpha         1.2284        .56673        .16158       -.85739E-05
   3  Normalizat    .77548        .55089        .79281E-01   -.22447E-03
   4  Prefactor     1.2229        .45717        .53190E-01   -.29747E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 14.2988
  alpha      = 1.22844
  Normalizat = 0.775477
  Prefactor  = 1.22293
 **********
 **   18 **HESSE 
 **********

 FCN=   893.7376     FROM HESSE     STATUS=OK            25 CALLS      225 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          14.299        19.712        .10592E-03   -1.4952    
   2  alpha         1.2284        .71376        .69920E-03   -.53359    
   3  Normalizat    .77548        .64158        .35101E-03   -1.0098    
   4  Prefactor     1.2229        .53473        .23516E-03   -.85628    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.95032e-08
Minuit parameter uncertainties:
  1  19.7214
  2  0.727532
  3  0.647984
  4  0.537129
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/642900': 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) = 893.737604849
delta logL = 0.431218240432

Extracting fit parameters...

4FGL J2139.4-4235
   Spectrum: LogParabola
298         norm:  1.430e+01  1.972e+01  1.000e-04  1.000e+04 ( 1.000e-12)
299        alpha:  1.228e+00  7.275e-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.223e+00  5.371e-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:  7.755e-01  6.480e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.63
Ra Dec: 324.855 -42.590
Photon Index (Free Index): 1.23 +/- 0.73
Photon Flux (Free Index): 5.92e-08 +/- 7.65e-08
Energy Flux (Free Index): 2.86e-04 +/- 4.70e-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/642900/cmap_HighResolution_649123201_649382401_4FGL_J2139.4-4235_daily_bin1581.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.31e-07', energy_flux2='2.86e-04', photon_flux_error='1.24e-07', dlogl='4.31e-01', energy_flux='9.24e-05', photon_flux2='5.92e-08', job_status='DONE', time_completed='2021-09-26 22:03:32.873250', photon_index_error2='0.73', photon_index2='1.23', ts='4.78', fit_tolerance='1e-08', GAL='1.22', photon_index_error='0.00', energy_flux_error2='4.70e-04', EG='0.76', time_epoch_completed='1632719012.87', return_code='0', job_id='642900', GAL2='1.22', EG2='0.78', return_code2='0', energy_flux_error='8.76e-05', photon_flux_error2='7.65e-08', ts2='5.63', photon_index='1.93' WHERE bin_id='1581' AND source_name='4FGL J2139.4-4235' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 22:03:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0202>
Subject: Job 642900: <4FGL_J2139.4-4235_daily_bin1581> in cluster <slac> Done

Job <4FGL_J2139.4-4235_daily_bin1581> 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) <bullet0202>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 21:56: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:56:50 2021
Terminated at Sun Sep 26 22:03:33 2021
Results reported at Sun Sep 26 22:03:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2139.4-4235_daily_bin1581 324.855 -42.5895 649123201 649382401 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 :                                   362.62 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             311.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   403 sec.
    Turnaround time :                            494 sec.

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

