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


Performing analysis on: 4FGL_J2139.4-4235_daily_bin1020
RA = 324.855, Dec = -42.5895
tmin = 503712001, tmax = 503971201
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='640903', job_status='RUN', time_executed='2021-09-26 21:53:38.752945', time_epoch_executed='1632718418.75' WHERE source_name='4FGL J2139.4-4235' and cadence='daily' and bin_id='1020'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/640903

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/640903/ft1_4FGL_J2139.4-4235_daily_bin1020.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/640903/ft2_4FGL_J2139.4-4235_daily_bin1020.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/640903/ft1_4FGL_J2139.4-4235_daily_bin1020.fits outfile=/scratch/kocevski/640903/ft1_filteredMKT_4FGL_J2139.4-4235_daily_bin1020.fits ra=324.855 dec=-42.5895 rad=12.0 tmin=503712001.0 tmax=503971201.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 5.60
user 5.32
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/640903/ft2_4FGL_J2139.4-4235_daily_bin1020.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/640903/ft1_filteredMKT_4FGL_J2139.4-4235_daily_bin1020.fits evtable="EVENTS" outfile="/scratch/kocevski/640903/ft1_filtered_4FGL_J2139.4-4235_daily_bin1020.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.52
user 0.35
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/640903/ft1_filtered_4FGL_J2139.4-4235_daily_bin1020.fits" evtable="EVENTS" scfile=/scratch/kocevski/640903/ft2_4FGL_J2139.4-4235_daily_bin1020.fits sctable="SC_DATA" outfile=/scratch/kocevski/640903/ltcube_503712001_503971201_4FGL_J2139.4-4235_daily_bin1020.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/640903/ft2_4FGL_J2139.4-4235_daily_bin1020.fits
.....................!
real 13.51
user 12.93
sys 0.46

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/640903/ft1_filtered_4FGL_J2139.4-4235_daily_bin1020.fits evtable="EVENTS" scfile=/scratch/kocevski/640903/ft2_4FGL_J2139.4-4235_daily_bin1020.fits sctable="SC_DATA" expcube=/scratch/kocevski/640903/ltcube_503712001_503971201_4FGL_J2139.4-4235_daily_bin1020.fits outfile=/scratch/kocevski/640903/expmap_503712001_503971201_4FGL_J2139.4-4235_daily_bin1020.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/640903/ltcube_503712001_503971201_4FGL_J2139.4-4235_daily_bin1020.fits
.....................!
real 192.43
user 187.37
sys 4.70

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/640903/ft1_filtered_4FGL_J2139.4-4235_daily_bin1020.fits scfile=/scratch/kocevski/640903/ft2_4FGL_J2139.4-4235_daily_bin1020.fits outfile=/scratch/kocevski/640903/cmap_503712001_503971201_4FGL_J2139.4-4235_daily_bin1020.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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/640903/ft1_filtered_4FGL_J2139.4-4235_daily_bin1020.fits scfile=/scratch/kocevski/640903/ft2_4FGL_J2139.4-4235_daily_bin1020.fits outfile=/scratch/kocevski/640903/cmap_HighResolution_503712001_503971201_4FGL_J2139.4-4235_daily_bin1020.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/640903/ft1_filtered_4FGL_J2139.4-4235_daily_bin1020.fits evtable="EVENTS" scfile=/scratch/kocevski/640903/ft2_4FGL_J2139.4-4235_daily_bin1020.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/640903/Model_4FGL_J2139.4-4235_daily_bin1020.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/640903/ft1_filtered_4FGL_J2139.4-4235_daily_bin1020.fits.....................!
real 51.52
user 50.11
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10095E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.3009       1.0000         .10000E-03   10000.    
     3 'norm      '    .10545       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10095E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10506E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10782E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11045E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.4291       1.0000         .10000E-03   10000.    
    10 'norm      '    9.2406       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11525E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.2033       1.0000         .10000E-03   10000.    
    14 'Prefactor '    78.024       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    60.685       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .29547       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.0864       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0712       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .99907       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=   5957.467     FROM MIGRAD    STATUS=CONVERGED    518 CALLS     2568 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    65.484       -.29249E-06** at limit **
   2  Prefactor     8.3084        312.06       -.25248E-05   -.65053E-05
   3  norm          .11372        1.6386       -.11167E-06    .15346E-03
   4  Prefactor     .10000E-03    16.786       -.15474E-06** at limit **
   5  Prefactor     .10000E-03    95.919        .66202E-06** at limit **
   6  Prefactor     .10000E-03    8.1405        .10679E-06** at limit **
   7  Prefactor     .10000E-03    96.115        .27798E-05** at limit **
   8  Prefactor     .10001E-03    173.21       -.30132E-05** at limit **
   9  Prefactor     4.4268        5.6438        .99307E-07    .38007E-04
  10  norm          9.2378        5.2438        .52194E-06    .51483E-03
  11  Prefactor     .10000E-03    20.650        .70204E-06** at limit **
  12  Prefactor     .10000E-03    18.985        .88181E-06** at limit **
  13  norm          1.2047        5.9623        .39943E-05    .48911E-03
  14  Prefactor     78.029        61.270        .21398E-06    .19946E-04
  15  Prefactor     .10000E-03    13.704        .87866E-08** at limit **
  16  Prefactor     60.676        129.77       -.26754E-07   -.30943E-05
  17  Prefactor     .28590        13.350       -.34642E-05    .70271E-03
  18  Prefactor     .10000E-03    6.8448        .27748E-07** at limit **
  19  Prefactor     .10000E-03    22.714       -.89130E-07** at limit **
  20  Prefactor     8.0866        10.376        .14793E-06    .31954E-04
  21  Prefactor     .10000E-03    6.0927       -.43623E-08** at limit **
  22  Normalizat    1.0712        .21410        .12995E-06    .16081E-03
  23  Prefactor     .99899        .13080       -.39612E-06    .14153E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 8.30835
  norm       = 0.113716
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.000100011
  Prefactor  = 4.42676
  norm       = 9.23781
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.20465
  Prefactor  = 78.0289
  Prefactor  = 0.0001
  Prefactor  = 60.6756
  Prefactor  = 0.285896
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.08659
  Prefactor  = 0.0001
  Normalizat = 1.07122
  Prefactor  = 0.998991
 **********
 **   18 **HESSE 
 **********

 FCN=   5957.467     FROM HESSE     STATUS=OK           364 CALLS     2932 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    65.750        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     8.3084        311.09        .13915E-03   -1.5131    
   3  norm          .11372        24.312        .18611E-02   -1.5641    
   4  Prefactor     .10000E-03    16.837        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    96.248        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    8.1856        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    97.526        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10001E-03    175.62        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.4268        5.6370        .19135E-03   -1.5287    
  10  norm          9.2378        5.2625        .12882E-03   -1.5100    
  11  Prefactor     .10000E-03    21.450        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    19.426        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.2047        6.3676        .37012E-03   -1.5488    
  14  Prefactor     78.029        61.423        .45463E-04   -1.3939    
  15  Prefactor     .10000E-03    13.768        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     60.676        129.74        .51506E-04   -1.4148    
  17  Prefactor     .28590        54.155        .38873E-02   -1.5601    
  18  Prefactor     .10000E-03    7.0407        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    22.741        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     8.0866        10.400        .14099E-03   -1.5139    
  21  Prefactor     .10000E-03    6.0935        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.0712        .25087        .30113E-03   -.90681    
  23  Prefactor     .99899        .15330        .19796E-03   -.92763    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.36513e-08
Minuit parameter uncertainties:
  1  0.000325322
  2  102.256
  3  3.3254
  4  5.56465e-05
  5  0.000711582
  6  7.60291e-06
  7  0.00115578
  8  0.0027908
  9  5.63763
  10  5.26272
  11  5.59732e-05
  12  0.000126513
  13  5.53993
  14  61.4734
  15  8.22041e-06
  16  130.346
  17  7.87549
  18  5.72852e-06
  19  3.79626e-05
  20  10.4021
  21  1.21067e-06
  22  0.251149
  23  0.153366
Done.

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

Extracting fit parameters...

4FGL J2139.4-4235
   Spectrum: LogParabola
298         norm:  9.238e+00  5.263e+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.990e-01  1.534e-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.071e+00  2.511e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.71
Ra Dec: 324.855 -42.590
Photon Index (Fixed Index): 1.93 +/- 0.00
Photon Flux (Fixed Index): 5.60e-08 +/- 3.19e-08
Energy Flux (Fixed Index): 3.95e-05 +/- 2.25e-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) = 5957.43665174
delta logL = 0.0304809265936

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5957.43537667
delta logL = 0.0317559997011

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.4295       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0629       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0609       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0016       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=   5957.435     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      202 TOTAL
                     EDM=   .60E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.4295        136.66        .32627E-02    .13373E-03
   2  alpha         2.0627        2.9397        .35670        .32163E-05
   3  Normalizat    1.0609        .28579        .68346E-01    .12556E-04
   4  Prefactor     1.0017        .11057        .45115E-01    .34849E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 9.4295
  alpha      = 2.06274
  Normalizat = 1.06091
  Prefactor  = 1.00167
 **********
 **   18 **HESSE 
 **********

 FCN=   5957.435     FROM HESSE     STATUS=OK            33 CALLS      235 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.4295        5.2018        .12590E-03   -1.5094    
   2  alpha         2.0627        .52622        .12698E-01   -.17581    
   3  Normalizat    1.0609        .23726        .30238E-03   -.91017    
   4  Prefactor     1.0017        .14967        .19769E-03   -.92674    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.06031e-11
Minuit parameter uncertainties:
  1  5.20203
  2  0.53031
  3  0.237501
  4  0.149733
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/640903': 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) = 5957.43537649
delta logL = 0.0317561725969

Extracting fit parameters...

4FGL J2139.4-4235
   Spectrum: LogParabola
298         norm:  9.429e+00  5.202e+00  1.000e-04  1.000e+04 ( 1.000e-12)
299        alpha:  2.063e+00  5.303e-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.002e+00  1.497e-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.061e+00  2.375e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.77
Ra Dec: 324.855 -42.590
Photon Index (Free Index): 2.06 +/- 0.53
Photon Flux (Free Index): 6.64e-08 +/- 5.51e-08
Energy Flux (Free Index): 3.58e-05 +/- 2.35e-05

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/640903/cmap_HighResolution_503712001_503971201_4FGL_J2139.4-4235_daily_bin1020.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.60e-08', energy_flux2='3.58e-05', photon_flux_error='3.19e-08', dlogl='3.18e-02', energy_flux='3.95e-05', photon_flux2='6.64e-08', job_status='DONE', time_completed='2021-09-26 22:05:26.321952', photon_index_error2='0.53', photon_index2='2.06', ts='8.71', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', energy_flux_error2='2.35e-05', EG='1.07', time_epoch_completed='1632719126.32', return_code='0', job_id='640903', GAL2='1.00', EG2='1.06', return_code2='0', energy_flux_error='2.25e-05', photon_flux_error2='5.51e-08', ts2='8.77', photon_index='1.93' WHERE bin_id='1020' AND source_name='4FGL J2139.4-4235' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 22:05:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0093>
Subject: Job 640903: <4FGL_J2139.4-4235_daily_bin1020> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2139.4-4235_daily_bin1020 324.855 -42.5895 503712001 503971201 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 :                                   585.30 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             256.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   901 sec.
    Turnaround time :                            914 sec.

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

