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


Performing analysis on: 4FGL_J2139.4-4235_daily_bin924
RA = 324.855, Dec = -42.5895
tmin = 478828801, tmax = 479088001
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='639543', job_status='RUN', time_executed='2021-09-26 21:47:28.014704', time_epoch_executed='1632718048.01' WHERE source_name='4FGL J2139.4-4235' and cadence='daily' and bin_id='924'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/639543

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/639543/ft1_4FGL_J2139.4-4235_daily_bin924.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/639543/ft2_4FGL_J2139.4-4235_daily_bin924.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/639543/ft1_4FGL_J2139.4-4235_daily_bin924.fits outfile=/scratch/kocevski/639543/ft1_filteredMKT_4FGL_J2139.4-4235_daily_bin924.fits ra=324.855 dec=-42.5895 rad=12.0 tmin=478828801.0 tmax=479088001.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.83
user 2.62
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/639543/ft1_filtered_4FGL_J2139.4-4235_daily_bin924.fits" evtable="EVENTS" scfile=/scratch/kocevski/639543/ft2_4FGL_J2139.4-4235_daily_bin924.fits sctable="SC_DATA" outfile=/scratch/kocevski/639543/ltcube_478828801_479088001_4FGL_J2139.4-4235_daily_bin924.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/639543/ft2_4FGL_J2139.4-4235_daily_bin924.fits
.....................!
real 12.55
user 12.23
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/639543/ft1_filtered_4FGL_J2139.4-4235_daily_bin924.fits evtable="EVENTS" scfile=/scratch/kocevski/639543/ft2_4FGL_J2139.4-4235_daily_bin924.fits sctable="SC_DATA" expcube=/scratch/kocevski/639543/ltcube_478828801_479088001_4FGL_J2139.4-4235_daily_bin924.fits outfile=/scratch/kocevski/639543/expmap_478828801_479088001_4FGL_J2139.4-4235_daily_bin924.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/639543/ltcube_478828801_479088001_4FGL_J2139.4-4235_daily_bin924.fits
.....................!
real 152.57
user 148.25
sys 4.00

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/639543/ft1_filtered_4FGL_J2139.4-4235_daily_bin924.fits scfile=/scratch/kocevski/639543/ft2_4FGL_J2139.4-4235_daily_bin924.fits outfile=/scratch/kocevski/639543/cmap_478828801_479088001_4FGL_J2139.4-4235_daily_bin924.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.49
user 0.33
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/639543/ft1_filtered_4FGL_J2139.4-4235_daily_bin924.fits scfile=/scratch/kocevski/639543/ft2_4FGL_J2139.4-4235_daily_bin924.fits outfile=/scratch/kocevski/639543/cmap_HighResolution_478828801_479088001_4FGL_J2139.4-4235_daily_bin924.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.51
user 0.35
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    4.2258       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.2185       1.0000         .10000E-03   10000.    
    10 'norm      '    11.799       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.9124       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10315E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    31.648       1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.3208       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .63876       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    9.5295       1.0000         .10000E-03   10000.    
    21 'Prefactor '    10.670       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .75467       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0887       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=   7937.175     FROM MIGRAD    STATUS=CONVERGED    489 CALLS     2121 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.7838       -.13786E-05** at limit **
   2  Prefactor     .10000E-03    30.065        .13662E-05** at limit **
   3  norm          4.2258        1.9279        .36324E-07   -.10985E-03
   4  Prefactor     .10000E-03    18.002       -.22699E-05** at limit **
   5  Prefactor     .10001E-03    31.832       -.10181E-04** at limit **
   6  Prefactor     .10000E-03    2.6921       -.11937E-07** at limit **
   7  Prefactor     .10000E-03    8.1397        .33275E-05** at limit **
   8  Prefactor     .10001E-03    26.184        .10127E-04** at limit **
   9  Prefactor     6.2179        3.4904        .95541E-06   -.31196E-02
  10  norm          11.800        4.3668       -.60979E-07   -.19457E-03
  11  Prefactor     .10000E-03    5.2141        .43146E-06** at limit **
  12  Prefactor     .10000E-03    6.7691       -.25195E-06** at limit **
  13  norm          .10000E-03    3.8276        .27807E-07** at limit **
  14  Prefactor     6.9156        18.291        .15994E-05    .58522E-04
  15  Prefactor     .10000E-03    2.5521       -.38614E-07** at limit **
  16  Prefactor     31.647        39.734       -.85552E-06   -.38465E-04
  17  Prefactor     9.3219        8.0302        .65470E-06   -.81613E-03
  18  Prefactor     .63895        2.8087        .73913E-06   -.58793E-03
  19  Prefactor     .10000E-03    9.4417       -.19371E-05** at limit **
  20  Prefactor     9.5317        6.7597        .85981E-08   -.75221E-04
  21  Prefactor     10.671        13.835        .31803E-06   -.17530E-03
  22  Normalizat    .75455        .17052       -.10328E-05   -.55406E-04
  23  Prefactor     1.0888        .11314        .12158E-07   -.76353E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.22583
  Prefactor  = 0.000100001
  Prefactor  = 0.000100012
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100012
  Prefactor  = 6.21793
  norm       = 11.7996
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 6.91561
  Prefactor  = 0.0001
  Prefactor  = 31.647
  Prefactor  = 9.32186
  Prefactor  = 0.638945
  Prefactor  = 0.0001
  Prefactor  = 9.53167
  Prefactor  = 10.671
  Normalizat = 0.754549
  Prefactor  = 1.08875
 **********
 **   18 **HESSE 
 **********

 FCN=   7937.175     FROM HESSE     STATUS=OK           362 CALLS     2483 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.7997        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    30.143        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          4.2258        1.9269        .79591E-04   -1.5297    
   4  Prefactor     .10000E-03    18.193        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10001E-03    32.722        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.7103        .14272E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    8.2439        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10001E-03    27.065        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     6.2179        4.5247        .76295E-03   -1.5209    
  10  norm          11.800        4.3709        .10965E-03   -1.5021    
  11  Prefactor     .10000E-03    5.3065        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    6.9613        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    3.8624        .17019E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.9156        18.303        .15260E-03   -1.5182    
  15  Prefactor     .10000E-03    2.5640        .13893E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     31.647        39.755        .71224E-04   -1.4582    
  17  Prefactor     9.3219        8.4321        .65635E-03   -1.5097    
  18  Prefactor     .63895        3.1036        .28845E-03   -1.5548    
  19  Prefactor     .10000E-03    9.4736        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     9.5317        6.7734        .12982E-03   -1.5090    
  21  Prefactor     10.671        13.882        .61328E-03   -1.5055    
  22  Normalizat    .75455        .19705        .31214E-03   -1.0178    
  23  Prefactor     1.0888        .12937        .18493E-03   -.89827    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.54504e-09
Minuit parameter uncertainties:
  1  7.88689e-05
  2  0.000164742
  3  1.92695
  4  0.000199538
  5  0.0012666
  6  5.88646e-07
  7  0.000210099
  8  0.00113508
  9  4.52498
  10  4.37106
  11  2.20171e-05
  12  1.05879e-05
  13  1.70729e-06
  14  18.3178
  15  2.4625e-06
  16  39.7878
  17  8.43317
  18  2.8164
  19  0.000130745
  20  6.77393
  21  13.8866
  22  0.197236
  23  0.129405
Done.

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

Extracting fit parameters...

4FGL J2139.4-4235
   Spectrum: LogParabola
298         norm:  1.180e+01  4.371e+00  1.000e-04  1.000e+04 ( 1.000e-12)
299        alpha:  1.929e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
300         beta:  4.914e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
301           Eb:  8.547e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
578    Prefactor:  1.089e+00  1.294e-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.545e-01  1.972e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 28.75
Ra Dec: 324.855 -42.590
Photon Index (Fixed Index): 1.93 +/- 0.00
Photon Flux (Fixed Index): 7.15e-08 +/- 2.65e-08
Energy Flux (Fixed Index): 5.04e-05 +/- 1.87e-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) = 7936.98400631
delta logL = 0.191201697442

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7936.96093888
delta logL = 0.214269123551

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.027       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7434       1.0000          .0000       5.0000    
     3 'Normalizat'    .76495       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0857       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=   7936.961     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      204 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.027        5.1830        .28878E-02   -.28504E-02
   2  alpha         1.7433        .29538        .22932        .21126E-04
   3  Normalizat    .76493        .15924        .70104E-01   -.81064E-04
   4  Prefactor     1.0857        .11164        .38158E-01   -.95988E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 12.0268
  alpha      = 1.74329
  Normalizat = 0.76493
  Prefactor  = 1.08568
 **********
 **   18 **HESSE 
 **********

 FCN=   7936.961     FROM HESSE     STATUS=OK            29 CALLS      233 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.027        4.5894        .11419E-03   -1.5014    
   2  alpha         1.7433        .27974        .94643E-02   -.30751    
   3  Normalizat    .76493        .17968        .31022E-03   -1.0138    
   4  Prefactor     1.0857        .12629        .18519E-03   -.89925    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.41315e-09
Minuit parameter uncertainties:
  1  4.5895
  2  0.280391
  3  0.179822
  4  0.126327
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/639543': 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) = 7936.96093884
delta logL = 0.214269161762

Extracting fit parameters...

4FGL J2139.4-4235
   Spectrum: LogParabola
298         norm:  1.203e+01  4.590e+00  1.000e-04  1.000e+04 ( 1.000e-12)
299        alpha:  1.743e+00  2.804e-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.086e+00  1.263e-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.649e-01  1.798e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 29.15
Ra Dec: 324.855 -42.590
Photon Index (Free Index): 1.74 +/- 0.28
Photon Flux (Free Index): 6.10e-08 +/- 2.81e-08
Energy Flux (Free Index): 6.70e-05 +/- 4.03e-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/639543/cmap_HighResolution_478828801_479088001_4FGL_J2139.4-4235_daily_bin924.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.15e-08', energy_flux2='6.70e-05', photon_flux_error='2.65e-08', dlogl='2.14e-01', energy_flux='5.04e-05', photon_flux2='6.10e-08', job_status='DONE', time_completed='2021-09-26 21:55:54.793842', photon_index_error2='0.28', photon_index2='1.74', ts='28.75', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', energy_flux_error2='4.03e-05', EG='0.75', time_epoch_completed='1632718554.79', return_code='0', job_id='639543', GAL2='1.09', EG2='0.76', return_code2='0', energy_flux_error='1.87e-05', photon_flux_error2='2.81e-08', ts2='29.15', photon_index='1.93' WHERE bin_id='924' AND source_name='4FGL J2139.4-4235' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 21:55:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0095>
Subject: Job 639543: <4FGL_J2139.4-4235_daily_bin924> in cluster <slac> Done

Job <4FGL_J2139.4-4235_daily_bin924> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep 26 21:45:13 2021
Job was executed on host(s) <bullet0095>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 21:45:22 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:45:22 2021
Terminated at Sun Sep 26 21:55:55 2021
Results reported at Sun Sep 26 21:55:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2139.4-4235_daily_bin924 324.855 -42.5895 478828801 479088001 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 :                                   504.36 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             340.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   633 sec.
    Turnaround time :                            642 sec.

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

