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


Performing analysis on: 4FGL_J2139.4-4235_daily_bin1052
RA = 324.855, Dec = -42.5895
tmin = 512006401, tmax = 512265601
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='640951', job_status='RUN', time_executed='2021-09-26 21:51:27.477688', time_epoch_executed='1632718287.48' WHERE source_name='4FGL J2139.4-4235' and cadence='daily' and bin_id='1052'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/640951

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/640951/ft1_4FGL_J2139.4-4235_daily_bin1052.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/640951/ft2_4FGL_J2139.4-4235_daily_bin1052.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/640951/ft1_4FGL_J2139.4-4235_daily_bin1052.fits outfile=/scratch/kocevski/640951/ft1_filteredMKT_4FGL_J2139.4-4235_daily_bin1052.fits ra=324.855 dec=-42.5895 rad=12.0 tmin=512006401.0 tmax=512265601.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 3.52
user 3.29
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/640951/ft1_filtered_4FGL_J2139.4-4235_daily_bin1052.fits" evtable="EVENTS" scfile=/scratch/kocevski/640951/ft2_4FGL_J2139.4-4235_daily_bin1052.fits sctable="SC_DATA" outfile=/scratch/kocevski/640951/ltcube_512006401_512265601_4FGL_J2139.4-4235_daily_bin1052.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/640951/ft2_4FGL_J2139.4-4235_daily_bin1052.fits
.....................!
real 14.97
user 14.57
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/640951/ft1_filtered_4FGL_J2139.4-4235_daily_bin1052.fits evtable="EVENTS" scfile=/scratch/kocevski/640951/ft2_4FGL_J2139.4-4235_daily_bin1052.fits sctable="SC_DATA" expcube=/scratch/kocevski/640951/ltcube_512006401_512265601_4FGL_J2139.4-4235_daily_bin1052.fits outfile=/scratch/kocevski/640951/expmap_512006401_512265601_4FGL_J2139.4-4235_daily_bin1052.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/640951/ltcube_512006401_512265601_4FGL_J2139.4-4235_daily_bin1052.fits
.....................!
real 191.66
user 186.46
sys 4.72

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/640951/ft1_filtered_4FGL_J2139.4-4235_daily_bin1052.fits scfile=/scratch/kocevski/640951/ft2_4FGL_J2139.4-4235_daily_bin1052.fits outfile=/scratch/kocevski/640951/cmap_512006401_512265601_4FGL_J2139.4-4235_daily_bin1052.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/640951/ft1_filtered_4FGL_J2139.4-4235_daily_bin1052.fits scfile=/scratch/kocevski/640951/ft2_4FGL_J2139.4-4235_daily_bin1052.fits outfile=/scratch/kocevski/640951/cmap_HighResolution_512006401_512265601_4FGL_J2139.4-4235_daily_bin1052.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.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/640951/ft1_filtered_4FGL_J2139.4-4235_daily_bin1052.fits evtable="EVENTS" scfile=/scratch/kocevski/640951/ft2_4FGL_J2139.4-4235_daily_bin1052.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/640951/Model_4FGL_J2139.4-4235_daily_bin1052.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/640951/ft1_filtered_4FGL_J2139.4-4235_daily_bin1052.fits.....................!
real 67.21
user 65.91
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .58584E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    33.527       1.0000         .10000E-03   10000.    
     5 'Prefactor '    53.033       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11023E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10307E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11381E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.4938       1.0000         .10000E-03   10000.    
    10 'norm      '    8.9365       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.0803       1.0000         .10000E-03   10000.    
    13 'norm      '    3.8246       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .25727E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    21.450       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.5877       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10242E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .36402E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.2149       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1439       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .86761       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=   8828.606     FROM MIGRAD    STATUS=CONVERGED    496 CALLS     2529 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.389        .45969E-06** at limit **
   2  Prefactor     .10000E-03    12.068       -.28680E-06** at limit **
   3  norm          .58560E-01    .51449        .14195E-06   -.25503E-03
   4  Prefactor     33.526        23.422        .62183E-06   -.66634E-05
   5  Prefactor     53.037        42.425       -.33964E-06   -.15919E-04
   6  Prefactor     .10000E-03    5.1804        .11645E-05** at limit **
   7  Prefactor     .10000E-03    7.5172        .26949E-07** at limit **
   8  Prefactor     .10000E-03    17.919        .56427E-06** at limit **
   9  Prefactor     6.4879        4.8823        .30156E-06   -.45886E-03
  10  norm          8.9358        3.9755       -.39490E-07   -.14719E-03
  11  Prefactor     .10000E-03    1.6651        .56912E-07** at limit **
  12  Prefactor     3.0799        5.8247        .40775E-05   -.11526E-04
  13  norm          3.8266        5.3313        .27711E-05    .77310E-05
  14  Prefactor     .10003E-03    144.67        .12425E-04** at limit **
  15  Prefactor     .10000E-03    1.6598       -.24201E-07** at limit **
  16  Prefactor     21.456        47.862       -.23526E-05   -.57081E-04
  17  Prefactor     .10000E-03    2.4177        .13650E-07** at limit **
  18  Prefactor     5.5892        3.4443        .37657E-06   -.16904E-03
  19  Prefactor     .10000E-03    16.881       -.85093E-06** at limit **
  20  Prefactor     .10000E-03    3.1707        .90069E-06** at limit **
  21  Prefactor     4.2149        15.954        .66697E-06   -.71427E-05
  22  Normalizat    1.1437        .16032       -.16987E-05   -.51814E-03
  23  Prefactor     .86760        .10357       -.16208E-06   -.64419E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0585599
  Prefactor  = 33.5259
  Prefactor  = 53.0366
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.48789
  norm       = 8.93584
  Prefactor  = 0.0001
  Prefactor  = 3.07994
  norm       = 3.82656
  Prefactor  = 0.000100033
  Prefactor  = 0.0001
  Prefactor  = 21.4564
  Prefactor  = 0.0001
  Prefactor  = 5.58916
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.21493
  Normalizat = 1.14371
  Prefactor  = 0.867601
 **********
 **   18 **HESSE 
 **********

 FCN=   8828.606     FROM HESSE     STATUS=OK           368 CALLS     2897 TOTAL
                     EDM=   .84E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.413        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    12.073        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .58560E-01    7.0236        .12831E-02   -1.5660    
   4  Prefactor     33.526        23.494        .69206E-04   -1.4549    
   5  Prefactor     53.037        42.426        .55076E-04   -1.4250    
   6  Prefactor     .10000E-03    20.754        .39614E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7.5250        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    17.978        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     6.4879        4.8512        .15749E-03   -1.5198    
  10  norm          8.9358        3.9741        .12056E-03   -1.5110    
  11  Prefactor     .10000E-03    1.6705        .11840E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.0799        5.8284        .11555E-02   -1.5357    
  13  norm          3.8266        5.3339        .10319E-02   -1.5317    
  14  Prefactor     .10003E-03    146.97        .42907E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1.6624        .11819E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     21.456        48.034        .86483E-04   -1.4781    
  17  Prefactor     .10000E-03    2.4268        .14266E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.5892        3.4541        .13088E-03   -1.5235    
  19  Prefactor     .10000E-03    16.911        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    7.6530        .32191E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     4.2149        15.990        .19628E-03   -1.5297    
  22  Normalizat    1.1437        .18434        .26424E-03   -.88360    
  23  Prefactor     .86760        .12046        .20153E-03   -.97283    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.43745e-10
Minuit parameter uncertainties:
  1  2.9221e-06
  2  2.67777e-06
  3  1.28171
  4  23.5007
  5  42.4497
  6  0.000298936
  7  8.04093e-07
  8  3.36938e-06
  9  4.85148
  10  3.97424
  11  2.42723e-07
  12  5.82943
  13  5.33456
  14  0.0044391
  15  3.00617e-07
  16  48.1208
  17  1.32003e-06
  18  3.45422
  19  1.04525e-05
  20  1.68464e-06
  21  16.0066
  22  0.184439
  23  0.120499
Done.

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

Extracting fit parameters...

4FGL J2139.4-4235
   Spectrum: LogParabola
298         norm:  8.936e+00  3.974e+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:  8.676e-01  1.205e-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.144e+00  1.844e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 13.99
Ra Dec: 324.855 -42.590
Photon Index (Fixed Index): 1.93 +/- 0.00
Photon Flux (Fixed Index): 5.42e-08 +/- 2.41e-08
Energy Flux (Fixed Index): 3.82e-05 +/- 1.70e-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) = 8828.41964578
delta logL = 0.186122109611

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8828.41157349
delta logL = 0.194194401896

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.4656       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1695       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1282       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87280       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=   8828.412     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      267 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.4620        68.592        .34444E-02    .99182E-04
   2  alpha         2.1690        3.5401        .29638        .42222E-04
   3  Normalizat    1.1285        .13694        .60087E-01    .17554E-04
   4  Prefactor     .87259        .60393E-01    .44657E-01    .11571E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 8.46198
  alpha      = 2.16899
  Normalizat = 1.12851
  Prefactor  = 0.872588
 **********
 **   18 **HESSE 
 **********

 FCN=   8828.412     FROM HESSE     STATUS=OK            33 CALLS      300 TOTAL
                     EDM=   .72E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.4620        3.9232        .11196E-03   -1.5126    
   2  alpha         2.1690        .39459        .11382E-01   -.13279    
   3  Normalizat    1.1285        .17634        .26575E-03   -.88842    
   4  Prefactor     .87259        .11813        .20098E-03   -.97106    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.24695e-10
Minuit parameter uncertainties:
  1  3.92331
  2  0.396276
  3  0.176434
  4  0.118164
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/640951': 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) = 8828.41156987
delta logL = 0.194198025953

Extracting fit parameters...

4FGL J2139.4-4235
   Spectrum: LogParabola
298         norm:  8.462e+00  3.923e+00  1.000e-04  1.000e+04 ( 1.000e-12)
299        alpha:  2.169e+00  3.963e-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.726e-01  1.182e-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.129e+00  1.764e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 14.36
Ra Dec: 324.855 -42.590
Photon Index (Free Index): 2.17 +/- 0.40
Photon Flux (Free Index): 6.78e-08 +/- 3.57e-08
Energy Flux (Free Index): 3.04e-05 +/- 1.62e-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/640951/cmap_HighResolution_512006401_512265601_4FGL_J2139.4-4235_daily_bin1052.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.42e-08', energy_flux2='3.04e-05', photon_flux_error='2.41e-08', dlogl='1.94e-01', energy_flux='3.82e-05', photon_flux2='6.78e-08', job_status='DONE', time_completed='2021-09-26 22:03:39.029489', photon_index_error2='0.40', photon_index2='2.17', ts='13.99', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', energy_flux_error2='1.62e-05', EG='1.14', time_epoch_completed='1632719019.03', return_code='0', job_id='640951', GAL2='0.87', EG2='1.13', return_code2='0', energy_flux_error='1.70e-05', photon_flux_error2='3.57e-08', ts2='14.36', photon_index='1.93' WHERE bin_id='1052' AND source_name='4FGL J2139.4-4235' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 22:03:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0009>
Subject: Job 640951: <4FGL_J2139.4-4235_daily_bin1052> in cluster <slac> Done

Job <4FGL_J2139.4-4235_daily_bin1052> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep 26 21:50:17 2021
Job was executed on host(s) <bullet0009>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 21:50:46 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:50:46 2021
Terminated at Sun Sep 26 22:03:39 2021
Results reported at Sun Sep 26 22:03:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2139.4-4235_daily_bin1052 324.855 -42.5895 512006401 512265601 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 :                                   729.00 sec.
    Max Memory :                                 1153 MB
    Average Memory :                             326.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   774 sec.
    Turnaround time :                            802 sec.

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

