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


Performing analysis on: 4FGL_J2039.0-1046_daily_bin1093
RA = 309.758, Dec = -10.7731
tmin = 522633601, tmax = 522892801
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='101663', job_status='RUN', time_executed='2021-09-25 15:24:14.638136', time_epoch_executed='1632608654.64' WHERE source_name='4FGL J2039.0-1046' and cadence='daily' and bin_id='1093'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/101663

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/101663/ft1_4FGL_J2039.0-1046_daily_bin1093.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/101663/ft2_4FGL_J2039.0-1046_daily_bin1093.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/101663/ft1_4FGL_J2039.0-1046_daily_bin1093.fits outfile=/scratch/kocevski/101663/ft1_filteredMKT_4FGL_J2039.0-1046_daily_bin1093.fits ra=309.758 dec=-10.7731 rad=12.0 tmin=522633601.0 tmax=522892801.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.64
user 3.36
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/101663/ft1_filtered_4FGL_J2039.0-1046_daily_bin1093.fits" evtable="EVENTS" scfile=/scratch/kocevski/101663/ft2_4FGL_J2039.0-1046_daily_bin1093.fits sctable="SC_DATA" outfile=/scratch/kocevski/101663/ltcube_522633601_522892801_4FGL_J2039.0-1046_daily_bin1093.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/101663/ft2_4FGL_J2039.0-1046_daily_bin1093.fits
.....................!
real 15.55
user 15.17
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/101663/ft1_filtered_4FGL_J2039.0-1046_daily_bin1093.fits evtable="EVENTS" scfile=/scratch/kocevski/101663/ft2_4FGL_J2039.0-1046_daily_bin1093.fits sctable="SC_DATA" expcube=/scratch/kocevski/101663/ltcube_522633601_522892801_4FGL_J2039.0-1046_daily_bin1093.fits outfile=/scratch/kocevski/101663/expmap_522633601_522892801_4FGL_J2039.0-1046_daily_bin1093.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/101663/ltcube_522633601_522892801_4FGL_J2039.0-1046_daily_bin1093.fits
.....................!
real 192.35
user 186.38
sys 5.43

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/101663/ft1_filtered_4FGL_J2039.0-1046_daily_bin1093.fits scfile=/scratch/kocevski/101663/ft2_4FGL_J2039.0-1046_daily_bin1093.fits outfile=/scratch/kocevski/101663/cmap_522633601_522892801_4FGL_J2039.0-1046_daily_bin1093.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.58
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/101663/ft1_filtered_4FGL_J2039.0-1046_daily_bin1093.fits scfile=/scratch/kocevski/101663/ft2_4FGL_J2039.0-1046_daily_bin1093.fits outfile=/scratch/kocevski/101663/cmap_HighResolution_522633601_522892801_4FGL_J2039.0-1046_daily_bin1093.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.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/101663/ft1_filtered_4FGL_J2039.0-1046_daily_bin1093.fits evtable="EVENTS" scfile=/scratch/kocevski/101663/ft2_4FGL_J2039.0-1046_daily_bin1093.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/101663/Model_4FGL_J2039.0-1046_daily_bin1093.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/101663/ft1_filtered_4FGL_J2039.0-1046_daily_bin1093.fits.....................!
real 78.31
user 76.76
sys 1.28

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/101663/ft1_filtered_4FGL_J2039.0-1046_daily_bin1093.fits', '/scratch/kocevski/101663/ft2_4FGL_J2039.0-1046_daily_bin1093.fits', expMap='/scratch/kocevski/101663/expmap_522633601_522892801_4FGL_J2039.0-1046_daily_bin1093.fits', expCube='/scratch/kocevski/101663/ltcube_522633601_522892801_4FGL_J2039.0-1046_daily_bin1093.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/101663/Model_4FGL_J2039.0-1046_daily_bin1093.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/101663/ft1_filtered_4FGL_J2039.0-1046_daily_bin1093.fits
Spacecraft file(s): /scratch/kocevski/101663/ft2_4FGL_J2039.0-1046_daily_bin1093.fits
Exposure map: /scratch/kocevski/101663/expmap_522633601_522892801_4FGL_J2039.0-1046_daily_bin1093.fits
Exposure cube: /scratch/kocevski/101663/ltcube_522633601_522892801_4FGL_J2039.0-1046_daily_bin1093.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/101663/Model_4FGL_J2039.0-1046_daily_bin1093.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) = 7993.54734527

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10447E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    17.850       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.8668       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    6.3095       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    98.285       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    7.3048       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    6.5825       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10150E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.9146       1.0000         .10000E-03   10000.    
    20 'Prefactor '    16.881       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1204       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0855       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=   7993.527     FROM MIGRAD    STATUS=CONVERGED    466 CALLS     2348 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.5656       -.13396E-05** at limit **
   2  Prefactor     .10000E-03    56.231       -.60190E-06** at limit **
   3  Prefactor     .10000E-03    14.865        .15198E-06** at limit **
   4  Prefactor     17.827        49.283       -.26392E-05   -.75219E-04
   5  Prefactor     1.8670        1.8363       -.18767E-06   -.53127E-04
   6  Prefactor     .10000E-03    40.199        .30052E-06** at limit **
   7  Prefactor     .10000E-03    8.6008       -.43389E-06** at limit **
   8  norm          6.3082        10.845        .44277E-05   -.19211E-03
   9  Prefactor     .10000E-03    17.319       -.33561E-06** at limit **
  10  Prefactor     98.278        110.68       -.15929E-05   -.21421E-04
  11  norm          .10000E-03    8.2307        .10097E-06** at limit **
  12  norm          .10000E-03    14.125        .14896E-06** at limit **
  13  norm          7.3059        2.0636        .32809E-07   -.33347E-05
  14  Prefactor     .10000E-03    15.397        .17750E-06** at limit **
  15  norm          6.5826        4.4372        .43635E-07    .28885E-05
  16  Prefactor     .10000E-03    6.1463        .27116E-06** at limit **
  17  Prefactor     .10000E-03    1.7722        .35130E-07** at limit **
  18  Prefactor     .10000E-03    7.3565        .32995E-06** at limit **
  19  Prefactor     4.8363        24.838        .52099E-06   -.89837E-04
  20  Prefactor     16.862        23.947        .42854E-07    .10624E-03
  21  Normalizat    1.1205        .28751       -.12333E-05    .16658E-04
  22  Prefactor     1.0855        .11003        .13943E-06   -.12693E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.8271
  Prefactor  = 1.86704
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.30821
  Prefactor  = 0.0001
  Prefactor  = 98.2783
  norm       = 0.0001
  norm       = 0.0001
  norm       = 7.30595
  Prefactor  = 0.0001
  norm       = 6.5826
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.83635
  Prefactor  = 16.8619
  Normalizat = 1.1205
  Prefactor  = 1.08549
 **********
 **   18 **HESSE 
 **********

 FCN=   7993.527     FROM HESSE     STATUS=OK           338 CALLS     2686 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.7336        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    56.345        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    14.874        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     17.827        49.217        .94797E-04   -1.4863    
   5  Prefactor     1.8670        1.8300        .11587E-03   -1.5435    
   6  Prefactor     .10000E-03    40.280        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    8.6360        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          6.3082        10.906        .79901E-03   -1.5206    
   9  Prefactor     .10000E-03    17.337        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     98.278        110.72        .20274E-03   -1.3722    
  11  norm          .10000E-03    8.2483        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    14.148        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          7.3059        2.0624        .65007E-04   -1.5167    
  14  Prefactor     .10000E-03    15.460        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          6.5826        4.4370        .14959E-03   -1.5195    
  16  Prefactor     .10000E-03    6.3799        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    1.7800        .11622E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    7.3784        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     4.8363        24.474        .18143E-03   -1.5268    
  20  Prefactor     16.862        23.848        .97480E-04   -1.4886    
  21  Normalizat    1.1205        .33538        .43521E-03   -.89096    
  22  Prefactor     1.0855        .12961        .17165E-03   -.89932    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.8487e-10
Minuit parameter uncertainties:
  1  1.03303e-05
  2  6.07555e-05
  3  5.57886e-05
  4  49.329
  5  1.83004
  6  0.000214968
  7  8.47204e-05
  8  10.9091
  9  0.000151903
  10  110.952
  11  2.53661e-05
  12  5.5534e-05
  13  2.0624
  14  3.22618e-05
  15  4.43718
  16  1.75337e-05
  17  4.71166e-07
  18  7.5184e-05
  19  21.7729
  20  23.8613
  21  0.336021
  22  0.129645
Done.

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

Extracting fit parameters...

4FGL J2039.0-1046
   Spectrum: LogParabola
308         norm:  6.583e+00  4.437e+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.085e+00  1.296e-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:  1.120e+00  3.360e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.67
Ra Dec: 309.758 -10.773
Photon Index (Fixed Index): 1.96 +/- 0.00
Photon Flux (Fixed Index): 5.09e-08 +/- 3.43e-08
Energy Flux (Fixed Index): 3.33e-05 +/- 2.24e-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) = 7993.52454879
delta logL = 0.00196762774704

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7993.52451514
delta logL = 0.00200128377583

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.5882       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9217       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1223       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0853       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=   7993.525     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      225 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.5894        138.28        .39086E-02    .32419E-04
   2  alpha         1.9218        2.8074        .42637        .12738E-04
   3  Normalizat    1.1223        .22105        .98160E-01    .25916E-04
   4  Prefactor     1.0852        .59740E-01    .38175E-01    .14119E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 6.58939
  alpha      = 1.92182
  Normalizat = 1.12226
  Prefactor  = 1.08524
 **********
 **   18 **HESSE 
 **********

 FCN=   7993.525     FROM HESSE     STATUS=OK            33 CALLS      258 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.5894        4.4619        .15052E-03   -1.5195    
   2  alpha         1.9218        .53630        .15268E-01   -.23338    
   3  Normalizat    1.1223        .32420        .43493E-03   -.89040    
   4  Prefactor     1.0852        .12669        .17167E-03   -.89940    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.28131e-10
Minuit parameter uncertainties:
  1  4.4621
  2  0.540743
  3  0.324778
  4  0.126723
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/101663': 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) = 7993.524515
delta logL = 0.00200142012

Extracting fit parameters...

4FGL J2039.0-1046
   Spectrum: LogParabola
308         norm:  6.589e+00  4.462e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  1.922e+00  5.407e-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.085e+00  1.267e-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:  1.122e+00  3.248e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.67
Ra Dec: 309.758 -10.773
Photon Index (Free Index): 1.92 +/- 0.54
Photon Flux (Free Index): 4.90e-08 +/- 4.46e-08
Energy Flux (Free Index): 3.41e-05 +/- 2.72e-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/101663/cmap_HighResolution_522633601_522892801_4FGL_J2039.0-1046_daily_bin1093.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.09e-08', energy_flux2='3.41e-05', photon_flux_error='3.43e-08', dlogl='2.00e-03', energy_flux='3.33e-05', photon_flux2='4.90e-08', job_status='DONE', time_completed='2021-09-25 15:35:41.585619', photon_index_error2='0.54', photon_index2='1.92', ts='6.67', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', energy_flux_error2='2.72e-05', EG='1.12', time_epoch_completed='1632609341.59', return_code='0', job_id='101663', GAL2='1.09', EG2='1.12', return_code2='0', energy_flux_error='2.24e-05', photon_flux_error2='4.46e-08', ts2='6.67', photon_index='1.96' WHERE bin_id='1093' AND source_name='4FGL J2039.0-1046' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 25 15:35:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0139>
Subject: Job 101663: <4FGL_J2039.0-1046_daily_bin1093> in cluster <slac> Done

Job <4FGL_J2039.0-1046_daily_bin1093> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep 25 15:20:26 2021
Job was executed on host(s) <bullet0139>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 25 15:22:58 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:22:58 2021
Terminated at Sat Sep 25 15:35:42 2021
Results reported at Sat Sep 25 15:35:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2039.0-1046_daily_bin1093 309.758 -10.7731 522633601 522892801 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 :                                   686.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             299.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   763 sec.
    Turnaround time :                            916 sec.

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

