/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 51 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 = 7394
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2039.0-1046_daily_bin1316
RA = 309.758, Dec = -10.7731
tmin = 580435201, tmax = 580694401
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='103088', job_status='RUN', time_executed='2021-09-25 15:27:06.303752', time_epoch_executed='1632608826.3' WHERE source_name='4FGL J2039.0-1046' and cadence='daily' and bin_id='1316'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/103088

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/103088/ft1_4FGL_J2039.0-1046_daily_bin1316.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/103088/ft2_4FGL_J2039.0-1046_daily_bin1316.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/103088/ft1_4FGL_J2039.0-1046_daily_bin1316.fits outfile=/scratch/kocevski/103088/ft1_filteredMKT_4FGL_J2039.0-1046_daily_bin1316.fits ra=309.758 dec=-10.7731 rad=12.0 tmin=580435201.0 tmax=580694401.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.17
user 2.93
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/103088/ft2_4FGL_J2039.0-1046_daily_bin1316.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/103088/ft2_4FGL_J2039.0-1046_daily_bin1316.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/103088/ft1_filteredMKT_4FGL_J2039.0-1046_daily_bin1316.fits evtable="EVENTS" outfile="/scratch/kocevski/103088/ft1_filtered_4FGL_J2039.0-1046_daily_bin1316.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.56
user 0.35
sys 0.19

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/103088/ft1_filtered_4FGL_J2039.0-1046_daily_bin1316.fits" evtable="EVENTS" scfile=/scratch/kocevski/103088/ft2_4FGL_J2039.0-1046_daily_bin1316.fits sctable="SC_DATA" outfile=/scratch/kocevski/103088/ltcube_580435201_580694401_4FGL_J2039.0-1046_daily_bin1316.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/103088/ft2_4FGL_J2039.0-1046_daily_bin1316.fits
.....................!
real 20.31
user 19.88
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/103088/ft1_filtered_4FGL_J2039.0-1046_daily_bin1316.fits evtable="EVENTS" scfile=/scratch/kocevski/103088/ft2_4FGL_J2039.0-1046_daily_bin1316.fits sctable="SC_DATA" expcube=/scratch/kocevski/103088/ltcube_580435201_580694401_4FGL_J2039.0-1046_daily_bin1316.fits outfile=/scratch/kocevski/103088/expmap_580435201_580694401_4FGL_J2039.0-1046_daily_bin1316.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/103088/ltcube_580435201_580694401_4FGL_J2039.0-1046_daily_bin1316.fits
.....................!
real 195.97
user 191.24
sys 4.32

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 182 point sources and 0 extended sources

Setting source of interest to:
4FGL J2039.0-1046 @ 309.758 -10.7731

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/103088/ft1_filtered_4FGL_J2039.0-1046_daily_bin1316.fits scfile=/scratch/kocevski/103088/ft2_4FGL_J2039.0-1046_daily_bin1316.fits outfile=/scratch/kocevski/103088/cmap_580435201_580694401_4FGL_J2039.0-1046_daily_bin1316.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=309.758 yref=-10.7731 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.62
user 0.45
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/103088/ft1_filtered_4FGL_J2039.0-1046_daily_bin1316.fits scfile=/scratch/kocevski/103088/ft2_4FGL_J2039.0-1046_daily_bin1316.fits outfile=/scratch/kocevski/103088/cmap_HighResolution_580435201_580694401_4FGL_J2039.0-1046_daily_bin1316.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=309.758 yref=-10.7731 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.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/103088/ft1_filtered_4FGL_J2039.0-1046_daily_bin1316.fits evtable="EVENTS" scfile=/scratch/kocevski/103088/ft2_4FGL_J2039.0-1046_daily_bin1316.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/103088/Model_4FGL_J2039.0-1046_daily_bin1316.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/103088/ft1_filtered_4FGL_J2039.0-1046_daily_bin1316.fits.....................!
real 99.77
user 98.23
sys 1.32

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/103088/ft1_filtered_4FGL_J2039.0-1046_daily_bin1316.fits', '/scratch/kocevski/103088/ft2_4FGL_J2039.0-1046_daily_bin1316.fits', expMap='/scratch/kocevski/103088/expmap_580435201_580694401_4FGL_J2039.0-1046_daily_bin1316.fits', expCube='/scratch/kocevski/103088/ltcube_580435201_580694401_4FGL_J2039.0-1046_daily_bin1316.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/103088/Model_4FGL_J2039.0-1046_daily_bin1316.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2039.0-1046'

4FGL J2039.0-1046
   Spectrum: LogParabola
308         norm:  2.263e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  1.956e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
310         beta:  9.320e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
311           Eb:  1.019e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/103088/ft1_filtered_4FGL_J2039.0-1046_daily_bin1316.fits
Spacecraft file(s): /scratch/kocevski/103088/ft2_4FGL_J2039.0-1046_daily_bin1316.fits
Exposure map: /scratch/kocevski/103088/expmap_580435201_580694401_4FGL_J2039.0-1046_daily_bin1316.fits
Exposure cube: /scratch/kocevski/103088/ltcube_580435201_580694401_4FGL_J2039.0-1046_daily_bin1316.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/103088/Model_4FGL_J2039.0-1046_daily_bin1316.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) = 10823.193239

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.8527       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10196E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    16.325       1.0000         .10000E-03   10000.    
     8 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    72.533       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    14.598       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    3.8028       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .99783E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.2876       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .81826       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1809       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5980E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10823.19     FROM MIGRAD    STATUS=CONVERGED    477 CALLS     2385 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.8524        5.5785        .18742E-06   -.80575E-03
   2  Prefactor     .10000E-03    23.893        .99724E-05** at limit **
   3  Prefactor     .10000E-03    21.718       -.64839E-05** at limit **
   4  Prefactor     .10000E-03    78.442       -.27146E-05** at limit **
   5  Prefactor     .10000E-03    1.0992        .27129E-07** at limit **
   6  Prefactor     .10000E-03    9.4854       -.29195E-05** at limit **
   7  Prefactor     16.324        14.137        .18952E-06   -.18097E-04
   8  norm          .10000E-03    2.5153        .97825E-07** at limit **
   9  Prefactor     .10000E-03    16.505       -.93138E-05** at limit **
  10  Prefactor     72.486        117.65       -.41931E-04   -.66016E-04
  11  norm          .10000E-03    7.9682        .11402E-05** at limit **
  12  norm          .10000E-03    6.1417       -.94679E-07** at limit **
  13  norm          14.598        2.1567       -.82269E-09   -.40904E-04
  14  Prefactor     .10000E-03    4.5267        .32783E-08** at limit **
  15  norm          3.8029        2.8200       -.20325E-07   -.49815E-04
  16  Prefactor     .10003E-03    1.5939        .40716E-06** at limit **
  17  Prefactor     .10000E-03    1.8705        .84830E-09** at limit **
  18  Prefactor     .10000E-03    14.084        .75986E-05** at limit **
  19  Prefactor     1.2871        4.0614        .23237E-05   -.16754E-02
  20  Prefactor     .10000E-03    9.7068        .25983E-06** at limit **
  21  Normalizat    .81830        .22631       -.10272E-05   -.11839E-03
  22  Prefactor     1.1808        .96962E-01    .88010E-06   -.46907E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.85242
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.3242
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 72.486
  norm       = 0.0001
  norm       = 0.0001
  norm       = 14.598
  Prefactor  = 0.0001
  norm       = 3.80292
  Prefactor  = 0.000100027
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.28714
  Prefactor  = 0.0001
  Normalizat = 0.818304
  Prefactor  = 1.18081
 **********
 **   18 **HESSE 
 **********

 FCN=   10823.19     FROM HESSE     STATUS=OK           334 CALLS     2719 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.8524        5.6410        .71545E-03   -1.5147    
   2  Prefactor     .10000E-03    23.933        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    21.911        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    78.850        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    1.1346        .21219E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    9.4888        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     16.324        14.086        .99128E-04   -1.4900    
   8  norm          .10000E-03    2.5205        .16113E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    16.536        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     72.486        118.06        .47139E-04   -1.4003    
  11  norm          .10000E-03    8.0449        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    6.1433        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          14.598        2.1548        .56220E-04   -1.4944    
  14  Prefactor     .10000E-03    4.5344        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.8029        2.8187        .14611E-03   -1.5318    
  16  Prefactor     .10003E-03    17.991        .24806E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    1.8997        .13891E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    14.266        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.2871        17.809        .19526E-02   -1.5481    
  20  Prefactor     .10000E-03    9.8603        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .81830        .25042        .45650E-03   -.99393    
  22  Prefactor     1.1808        .10941        .16637E-03   -.86924    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.13871e-08
Minuit parameter uncertainties:
  1  5.64141
  2  0.000159822
  3  7.68908e-05
  4  0.000287668
  5  3.21289e-06
  6  2.74171e-05
  7  14.0886
  8  1.76062e-05
  9  0.000118117
  10  118.44
  11  5.99769e-06
  12  4.65528e-06
  13  2.15485
  14  1.64451e-06
  15  2.81879
  16  0.00138844
  17  3.6384e-06
  18  1.03696e-05
  19  9.57876
  20  1.08818e-05
  21  0.250772
  22  0.109433
Done.

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

Extracting fit parameters...

4FGL J2039.0-1046
   Spectrum: LogParabola
308         norm:  3.803e+00  2.819e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  1.956e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
310         beta:  9.320e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
311           Eb:  1.019e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
595    Prefactor:  1.181e+00  1.094e-01  0.000e+00  1.000e+01 ( 1.000e+00)
596        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
597        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
594   Normalization:  8.183e-01  2.508e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.61
Ra Dec: 309.758 -10.773
Photon Index (Fixed Index): 1.96 +/- 0.00
Photon Flux (Fixed Index): 2.94e-08 +/- 2.18e-08
Energy Flux (Fixed Index): 1.92e-05 +/- 1.43e-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) = 10822.089286
delta logL = 1.10304459805

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10822.0851069
delta logL = 1.10722366113

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.5408       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.2177       1.0000          .0000       5.0000    
     3 'Normalizat'    .82867       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1791       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5980E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10822.09     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      207 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.5408        2.4344        .53703E-02    .10582E-02
   2  alpha         1.2177        .33654        .40264       -.66728E-04
   3  Normalizat    .82867        .22031        .10240       -.97193E-04
   4  Prefactor     1.1791        .95207E-01    .35144E-01   -.45991E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.54078
  alpha      = 1.21772
  Normalizat = 0.82867
  Prefactor  = 1.17912
 **********
 **   18 **HESSE 
 **********

 FCN=   10822.09     FROM HESSE     STATUS=OK            29 CALLS      236 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.5408        2.9037        .13106E-03   -1.5332    
   2  alpha         1.2177        .44680        .15962E-01   -.53857    
   3  Normalizat    .82867        .24729        .45384E-03   -.99014    
   4  Prefactor     1.1791        .10730        .16646E-03   -.86976    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.85131e-10
Minuit parameter uncertainties:
  1  2.9038
  2  0.450091
  3  0.247628
  4  0.107325
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/103088': 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) = 10822.0851069
delta logL = 1.10722366155

Extracting fit parameters...

4FGL J2039.0-1046
   Spectrum: LogParabola
308         norm:  3.541e+00  2.904e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  1.218e+00  4.501e-01  0.000e+00  5.000e+00 ( 1.000e+00)
310         beta:  9.320e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
311           Eb:  1.019e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
595    Prefactor:  1.179e+00  1.073e-01  0.000e+00  1.000e+01 ( 1.000e+00)
596        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
597        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
594   Normalization:  8.287e-01  2.476e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.83
Ra Dec: 309.758 -10.773
Photon Index (Free Index): 1.22 +/- 0.45
Photon Flux (Free Index): 1.63e-08 +/- 1.35e-08
Energy Flux (Free Index): 6.21e-05 +/- 6.22e-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/103088/cmap_HighResolution_580435201_580694401_4FGL_J2039.0-1046_daily_bin1316.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.94e-08', energy_flux2='6.21e-05', photon_flux_error='2.18e-08', dlogl='1.11e+00', energy_flux='1.92e-05', photon_flux2='1.63e-08', job_status='DONE', time_completed='2021-09-25 15:41:24.192493', photon_index_error2='0.45', photon_index2='1.22', ts='4.61', fit_tolerance='1e-08', GAL='1.18', photon_index_error='0.00', energy_flux_error2='6.22e-05', EG='0.82', time_epoch_completed='1632609684.19', return_code='0', job_id='103088', GAL2='1.18', EG2='0.83', return_code2='0', energy_flux_error='1.43e-05', photon_flux_error2='1.35e-08', ts2='6.83', photon_index='1.96' WHERE bin_id='1316' AND source_name='4FGL J2039.0-1046' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 25 15:41:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0187>
Subject: Job 103088: <4FGL_J2039.0-1046_daily_bin1316> in cluster <slac> Done

Job <4FGL_J2039.0-1046_daily_bin1316> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep 25 15:25:22 2021
Job was executed on host(s) <bullet0187>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 25 15:25:55 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 25 15:25:55 2021
Terminated at Sat Sep 25 15:41:25 2021
Results reported at Sat Sep 25 15:41:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2039.0-1046_daily_bin1316 309.758 -10.7731 580435201 580694401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2039.0-1046 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   856.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             332.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   929 sec.
    Turnaround time :                            963 sec.

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

