/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 0 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 = 7424
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2139.4-4235_daily_bin31
RA = 324.855, Dec = -42.5895
tmin = 247363201, tmax = 247622401
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='630270', job_status='RUN', time_executed='2021-09-26 21:23:33.162493', time_epoch_executed='1632716613.16' WHERE source_name='4FGL J2139.4-4235' and cadence='daily' and bin_id='31'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/630270

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/630270/ft1_4FGL_J2139.4-4235_daily_bin31.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/630270/ft2_4FGL_J2139.4-4235_daily_bin31.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/630270/ft1_4FGL_J2139.4-4235_daily_bin31.fits outfile=/scratch/kocevski/630270/ft1_filteredMKT_4FGL_J2139.4-4235_daily_bin31.fits ra=324.855 dec=-42.5895 rad=12.0 tmin=247363201.0 tmax=247622401.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 1.47
user 1.29
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/630270/ft1_filtered_4FGL_J2139.4-4235_daily_bin31.fits" evtable="EVENTS" scfile=/scratch/kocevski/630270/ft2_4FGL_J2139.4-4235_daily_bin31.fits sctable="SC_DATA" outfile=/scratch/kocevski/630270/ltcube_247363201_247622401_4FGL_J2139.4-4235_daily_bin31.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/630270/ft2_4FGL_J2139.4-4235_daily_bin31.fits
.....................!
real 16.65
user 16.26
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/630270/ft1_filtered_4FGL_J2139.4-4235_daily_bin31.fits evtable="EVENTS" scfile=/scratch/kocevski/630270/ft2_4FGL_J2139.4-4235_daily_bin31.fits sctable="SC_DATA" expcube=/scratch/kocevski/630270/ltcube_247363201_247622401_4FGL_J2139.4-4235_daily_bin31.fits outfile=/scratch/kocevski/630270/expmap_247363201_247622401_4FGL_J2139.4-4235_daily_bin31.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/630270/ltcube_247363201_247622401_4FGL_J2139.4-4235_daily_bin31.fits
.....................!
real 193.72
user 188.49
sys 4.61

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/630270/ft1_filtered_4FGL_J2139.4-4235_daily_bin31.fits scfile=/scratch/kocevski/630270/ft2_4FGL_J2139.4-4235_daily_bin31.fits outfile=/scratch/kocevski/630270/cmap_247363201_247622401_4FGL_J2139.4-4235_daily_bin31.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/630270/ft1_filtered_4FGL_J2139.4-4235_daily_bin31.fits scfile=/scratch/kocevski/630270/ft2_4FGL_J2139.4-4235_daily_bin31.fits outfile=/scratch/kocevski/630270/cmap_HighResolution_247363201_247622401_4FGL_J2139.4-4235_daily_bin31.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/630270/ft1_filtered_4FGL_J2139.4-4235_daily_bin31.fits evtable="EVENTS" scfile=/scratch/kocevski/630270/ft2_4FGL_J2139.4-4235_daily_bin31.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/630270/Model_4FGL_J2139.4-4235_daily_bin31.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/630270/ft1_filtered_4FGL_J2139.4-4235_daily_bin31.fits.....................!
real 61.70
user 60.35
sys 1.12

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    27.453       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.5790       1.0000         .10000E-03   10000.    
     4 'Prefactor '    20.596       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    14.480       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .92400E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    20.829       1.0000         .10000E-03   10000.    
    11 'Prefactor '    21.589       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    6.9255       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10098E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11122E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    129.03       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.0446       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11625E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10329E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.2199       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .95994       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=   7414.974     FROM MIGRAD    STATUS=CONVERGED    520 CALLS     2579 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     27.442        37.649       -.18709E-05   -.12356E-03
   2  Prefactor     .10000E-03    40.260       -.96099E-06** at limit **
   3  norm          1.5790        2.1055        .18183E-06   -.22522E-03
   4  Prefactor     20.591        23.681        .20601E-06    .24586E-04
   5  Prefactor     .10000E-03    17.111       -.25402E-07** at limit **
   6  Prefactor     14.481        10.807       -.54633E-07   -.45003E-04
   7  Prefactor     .10000E-03    13.806        .24132E-07** at limit **
   8  Prefactor     .10000E-03    33.204       -.12928E-05** at limit **
   9  Prefactor     .10000E-03    2.2683        .57500E-07** at limit **
  10  norm          20.828        6.5295        .14719E-09   -.54568E-05
  11  Prefactor     21.584        11.382       -.14962E-06    .12887E-04
  12  Prefactor     .10000E-03    2.3809        .64538E-08** at limit **
  13  norm          6.9241        7.1689        .15067E-05   -.65443E-03
  14  Prefactor     .10000E-03    31.387        .11187E-05** at limit **
  15  Prefactor     .10000E-03    7.8518       -.14378E-06** at limit **
  16  Prefactor     129.01        100.48       -.40821E-05   -.16617E-03
  17  Prefactor     .10000E-03    2.9197        .10630E-07** at limit **
  18  Prefactor     7.0408        5.2025        .69205E-07   -.74950E-04
  19  Prefactor     .10000E-03    143.88        .10597E-06** at limit **
  20  Prefactor     .10000E-03    4.4188       -.54119E-08** at limit **
  21  Prefactor     .10000E-03    40.929        .12973E-05** at limit **
  22  Normalizat    1.2202        .20995        .38021E-06   -.51258E-04
  23  Prefactor     .95985        .12978       -.29979E-06    .66462E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 27.4422
  Prefactor  = 0.0001
  norm       = 1.57896
  Prefactor  = 20.5913
  Prefactor  = 0.0001
  Prefactor  = 14.4806
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 20.8279
  Prefactor  = 21.5839
  Prefactor  = 0.0001
  norm       = 6.92412
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 129.011
  Prefactor  = 0.0001
  Prefactor  = 7.04078
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.22023
  Prefactor  = 0.959849
 **********
 **   18 **HESSE 
 **********

 FCN=   7414.974     FROM HESSE     STATUS=OK           366 CALLS     2945 TOTAL
                     EDM=   .82E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     27.442        38.450        .76460E-04   -1.4660    
   2  Prefactor     .10000E-03    40.372        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.5790        2.1015        .13648E-03   -1.5457    
   4  Prefactor     20.591        23.687        .88255E-04   -1.4800    
   5  Prefactor     .10000E-03    17.116        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     14.481        10.825        .10526E-03   -1.4947    
   7  Prefactor     .10000E-03    13.824        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    33.557        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    11.011        .24796E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          20.828        6.5317        .87761E-04   -1.4795    
  11  Prefactor     21.584        11.412        .86205E-04   -1.4778    
  12  Prefactor     .10000E-03    2.3827        .12974E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          6.9241        7.9371        .76225E-03   -1.5182    
  14  Prefactor     .10000E-03    31.730        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    7.9289        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     129.01        107.01        .17722E-03   -1.3431    
  17  Prefactor     .10000E-03    2.9277        .14369E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     7.0408        5.2449        .15114E-03   -1.5177    
  19  Prefactor     .10000E-03    145.57        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.4609        .17673E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    42.163        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.2202        .24385        .30230E-03   -.85980    
  23  Prefactor     .95985        .15043        .21949E-03   -.94080    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.15351e-10
Minuit parameter uncertainties:
  1  38.4852
  2  0.000192485
  3  2.10163
  4  23.6979
  5  4.82389e-06
  6  10.8261
  7  1.1062e-06
  8  0.000264507
  9  2.65874e-05
  10  6.53197
  11  11.4133
  12  1.87771e-07
  13  7.93827
  14  0.000262422
  15  4.68759e-05
  16  107.167
  17  8.93839e-07
  18  5.24526
  19  5.06942e-05
  20  4.26409e-06
  21  0.000225831
  22  0.244076
  23  0.150498
Done.

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

Extracting fit parameters...

4FGL J2139.4-4235
   Spectrum: LogParabola
298         norm:  2.083e+01  6.532e+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:  9.598e-01  1.505e-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.220e+00  2.441e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 31.55
Ra Dec: 324.855 -42.590
Photon Index (Fixed Index): 1.93 +/- 0.00
Photon Flux (Fixed Index): 1.26e-07 +/- 3.96e-08
Energy Flux (Fixed Index): 8.90e-05 +/- 2.79e-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) = 7414.97110425
delta logL = 0.00287542767001

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7414.97095996
delta logL = 0.00301972367743

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    20.828       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9513       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2170       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96086       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=   7414.971     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      195 TOTAL
                     EDM=   .16E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          20.818        8.6673        .21941E-02    .95961E-05
   2  alpha         1.9513        .35295        .21576        .78932E-05
   3  Normalizat    1.2171        .19952        .68397E-01    .19790E-04
   4  Prefactor     .96085        .12854        .45776E-01    .75038E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 20.8176
  alpha      = 1.95133
  Normalizat = 1.21709
  Prefactor  = 0.96085
 **********
 **   18 **HESSE 
 **********

 FCN=   7414.971     FROM HESSE     STATUS=OK            33 CALLS      228 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          20.818        6.4911        .87764E-04   -1.4795    
   2  alpha         1.9513        .28448        .88136E-02   -.22127    
   3  Normalizat    1.2171        .22890        .30261E-03   -.86076    
   4  Prefactor     .96085        .14801        .21938E-03   -.94046    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.95886e-11
Minuit parameter uncertainties:
  1  6.49128
  2  0.285134
  3  0.229085
  4  0.148069
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/630270': 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) = 7414.9709587
delta logL = 0.00302098536304

Extracting fit parameters...

4FGL J2139.4-4235
   Spectrum: LogParabola
298         norm:  2.082e+01  6.491e+00  1.000e-04  1.000e+04 ( 1.000e-12)
299        alpha:  1.951e+00  2.851e-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:  9.608e-01  1.481e-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.217e+00  2.291e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 31.49
Ra Dec: 324.855 -42.590
Photon Index (Free Index): 1.95 +/- 0.29
Photon Flux (Free Index): 1.29e-07 +/- 5.48e-08
Energy Flux (Free Index): 8.68e-05 +/- 3.84e-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/630270/cmap_HighResolution_247363201_247622401_4FGL_J2139.4-4235_daily_bin31.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.26e-07', energy_flux2='8.68e-05', photon_flux_error='3.96e-08', dlogl='3.02e-03', energy_flux='8.90e-05', photon_flux2='1.29e-07', job_status='DONE', time_completed='2021-09-26 21:34:29.844563', photon_index_error2='0.29', photon_index2='1.95', ts='31.55', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', energy_flux_error2='3.84e-05', EG='1.22', time_epoch_completed='1632717269.84', return_code='0', job_id='630270', GAL2='0.96', EG2='1.22', return_code2='0', energy_flux_error='2.79e-05', photon_flux_error2='5.48e-08', ts2='31.49', photon_index='1.93' WHERE bin_id='31' AND source_name='4FGL J2139.4-4235' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 21:34:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0115>
Subject: Job 630270: <4FGL_J2139.4-4235_daily_bin31> in cluster <slac> Done

Job <4FGL_J2139.4-4235_daily_bin31> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Sep 26 21:20:12 2021
Job was executed on host(s) <bullet0115>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 21:23:25 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:23:25 2021
Terminated at Sun Sep 26 21:34:30 2021
Results reported at Sun Sep 26 21:34:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2139.4-4235_daily_bin31 324.855 -42.5895 247363201 247622401 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 :                                   653.57 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             325.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   665 sec.
    Turnaround time :                            858 sec.

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

