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


Performing analysis on: 4FGL_J2039.0-1046_daily_bin1248
RA = 309.758, Dec = -10.7731
tmin = 562809601, tmax = 563068801
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='102991', job_status='RUN', time_executed='2021-09-25 15:26:24.051490', time_epoch_executed='1632608784.05' WHERE source_name='4FGL J2039.0-1046' and cadence='daily' and bin_id='1248'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/102991

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/102991/ft1_4FGL_J2039.0-1046_daily_bin1248.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/102991/ft2_4FGL_J2039.0-1046_daily_bin1248.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/102991/ft1_4FGL_J2039.0-1046_daily_bin1248.fits outfile=/scratch/kocevski/102991/ft1_filteredMKT_4FGL_J2039.0-1046_daily_bin1248.fits ra=309.758 dec=-10.7731 rad=12.0 tmin=562809601.0 tmax=563068801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 2.89
user 2.67
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/102991/ft2_4FGL_J2039.0-1046_daily_bin1248.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/102991/ft1_filteredMKT_4FGL_J2039.0-1046_daily_bin1248.fits evtable="EVENTS" outfile="/scratch/kocevski/102991/ft1_filtered_4FGL_J2039.0-1046_daily_bin1248.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.46
user 0.30
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/102991/ft1_filtered_4FGL_J2039.0-1046_daily_bin1248.fits" evtable="EVENTS" scfile=/scratch/kocevski/102991/ft2_4FGL_J2039.0-1046_daily_bin1248.fits sctable="SC_DATA" outfile=/scratch/kocevski/102991/ltcube_562809601_563068801_4FGL_J2039.0-1046_daily_bin1248.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/102991/ft2_4FGL_J2039.0-1046_daily_bin1248.fits
.....................!
real 13.62
user 13.30
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/102991/ft1_filtered_4FGL_J2039.0-1046_daily_bin1248.fits evtable="EVENTS" scfile=/scratch/kocevski/102991/ft2_4FGL_J2039.0-1046_daily_bin1248.fits sctable="SC_DATA" expcube=/scratch/kocevski/102991/ltcube_562809601_563068801_4FGL_J2039.0-1046_daily_bin1248.fits outfile=/scratch/kocevski/102991/expmap_562809601_563068801_4FGL_J2039.0-1046_daily_bin1248.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/102991/ltcube_562809601_563068801_4FGL_J2039.0-1046_daily_bin1248.fits
.....................!
real 156.32
user 151.78
sys 4.22

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/102991/ft1_filtered_4FGL_J2039.0-1046_daily_bin1248.fits scfile=/scratch/kocevski/102991/ft2_4FGL_J2039.0-1046_daily_bin1248.fits outfile=/scratch/kocevski/102991/cmap_562809601_563068801_4FGL_J2039.0-1046_daily_bin1248.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.47
user 0.33
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/102991/ft1_filtered_4FGL_J2039.0-1046_daily_bin1248.fits scfile=/scratch/kocevski/102991/ft2_4FGL_J2039.0-1046_daily_bin1248.fits outfile=/scratch/kocevski/102991/cmap_HighResolution_562809601_563068801_4FGL_J2039.0-1046_daily_bin1248.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.49
user 0.35
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/102991/ft1_filtered_4FGL_J2039.0-1046_daily_bin1248.fits evtable="EVENTS" scfile=/scratch/kocevski/102991/ft2_4FGL_J2039.0-1046_daily_bin1248.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/102991/Model_4FGL_J2039.0-1046_daily_bin1248.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/102991/ft1_filtered_4FGL_J2039.0-1046_daily_bin1248.fits.....................!
real 95.74
user 94.38
sys 1.08

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12822       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10296E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    38.346       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11999E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.5025       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .13982E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.6850       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10271E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10281E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    8.9200       1.0000         .10000E-03   10000.    
    12 'norm      '    .10042E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.5008       1.0000         .10000E-03   10000.    
    14 'Prefactor '    12.777       1.0000         .10000E-03   10000.    
    15 'norm      '    3.2201       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .74705       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.1010       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .71426       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0437       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=   13582.87     FROM MIGRAD    STATUS=CONVERGED    511 CALLS     2498 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .19105        1.2099        .35670E-06   -.31446E-03
   2  Prefactor     .10000E-03    11.590       -.82592E-06** at limit **
   3  Prefactor     38.285        29.852       -.38256E-05    .11003E-04
   4  Prefactor     .10000E-03    66.719        .12443E-04** at limit **
   5  Prefactor     1.5018        1.2323        .12789E-07   -.95455E-04
   6  Prefactor     .10001E-03    153.74       -.56218E-05** at limit **
   7  Prefactor     .10000E-03    5.4537       -.64589E-07** at limit **
   8  norm          1.6860        1.2343       -.35293E-07   -.20923E-02
   9  Prefactor     .10000E-03    20.742        .30636E-05** at limit **
  10  Prefactor     .10000E-03    45.068       -.74658E-05** at limit **
  11  norm          8.9194        8.7477        .11529E-05    .21178E-05
  12  norm          .10000E-03    7.0254        .16747E-07** at limit **
  13  norm          2.5012        1.0828        .72526E-07   -.69353E-04
  14  Prefactor     12.777        10.002       -.66807E-06   -.33241E-04
  15  norm          3.2202        2.3411       -.30547E-08   -.35824E-03
  16  Prefactor     .74726        2.3166        .33679E-06   -.14286E-03
  17  Prefactor     .10000E-03    1.2545        .21611E-07** at limit **
  18  Prefactor     3.0978        8.5164        .13199E-04    .82915E-05
  19  Prefactor     .10000E-03    6.2777        .66350E-08** at limit **
  20  Prefactor     .10000E-03    5.6414        .87808E-07** at limit **
  21  Normalizat    .71448        .18043       -.34959E-05   -.15643E-03
  22  Prefactor     1.0435        .74653E-01    .52149E-06   -.78493E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.191049
  Prefactor  = 0.0001
  Prefactor  = 38.2853
  Prefactor  = 0.0001
  Prefactor  = 1.50181
  Prefactor  = 0.000100011
  Prefactor  = 0.0001
  norm       = 1.68598
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.91938
  norm       = 0.0001
  norm       = 2.50116
  Prefactor  = 12.7771
  norm       = 3.22024
  Prefactor  = 0.747256
  Prefactor  = 0.0001
  Prefactor  = 3.09777
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.714476
  Prefactor  = 1.04346
 **********
 **   18 **HESSE 
 **********

 FCN=   13582.87     FROM HESSE     STATUS=OK           344 CALLS     2842 TOTAL
                     EDM=   .84E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .19105        15.125        .24236E-02   -1.5621    
   2  Prefactor     .10000E-03    11.598        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     38.285        29.864        .64725E-04   -1.4470    
   4  Prefactor     .10000E-03    67.787        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.5018        1.2237        .11319E-03   -1.5463    
   6  Prefactor     .10001E-03    158.83        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.4844        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.6860        5.7490        .16221E-02   -1.5448    
   9  Prefactor     .10000E-03    20.806        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    45.086        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          8.9194        8.7518        .13420E-03   -1.5111    
  12  norm          .10000E-03    7.0335        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.5012        1.0814        .25843E-04   -1.5392    
  14  Prefactor     12.777        9.9876        .11206E-03   -1.4993    
  15  norm          3.2202        2.3450        .73615E-03   -1.5349    
  16  Prefactor     .74726        2.2831        .29397E-03   -1.5535    
  17  Prefactor     .10000E-03    1.2964        .25487E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.0978        8.5378        .23028E-03   -1.5356    
  19  Prefactor     .10000E-03    6.3057        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    5.6862        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .71448        .20636        .42137E-03   -1.0332    
  22  Prefactor     1.0435        .88503E-01    .14895E-03   -.91294    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.44236e-09
Minuit parameter uncertainties:
  1  3.39981
  2  7.62097e-07
  3  29.8758
  4  3.65519e-05
  5  1.2237
  6  0.00265592
  7  9.15246e-06
  8  5.75089
  9  1.41161e-05
  10  5.63786e-06
  11  8.75304
  12  4.11357e-06
  13  1.08144
  14  9.98889
  15  2.34507
  16  2.28337
  17  3.14526e-06
  18  8.54119
  19  5.28294e-06
  20  1.15544e-05
  21  0.206583
  22  0.0885152
Done.

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

Extracting fit parameters...

4FGL J2039.0-1046
   Spectrum: LogParabola
308         norm:  3.220e+00  2.345e+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.043e+00  8.852e-02  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:  7.145e-01  2.066e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.13
Ra Dec: 309.758 -10.773
Photon Index (Fixed Index): 1.96 +/- 0.00
Photon Flux (Fixed Index): 2.49e-08 +/- 1.81e-08
Energy Flux (Fixed Index): 1.63e-05 +/- 1.19e-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) = 13582.4995074
delta logL = 0.374666290196

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 13582.1445936
delta logL = 0.729580096555

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1611       1.0000         .10000E-03   10000.    
     2 'alpha     '    .91067       1.0000          .0000       5.0000    
     3 'Normalizat'    .73262       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0419       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=   13582.14     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      214 TOTAL
                     EDM=   .58E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1602        .97141        .10689E-01   -.55008E-03
   2  alpha         .91037        .38700        .48807       -.83911E-04
   3  Normalizat    .73264        .17127        .94000E-01   -.19106E-03
   4  Prefactor     1.0419        .72409E-01    .40412E-01    .95149E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.16024
  alpha      = 0.91037
  Normalizat = 0.732645
  Prefactor  = 1.04187
 **********
 **   18 **HESSE 
 **********

 FCN=   13582.14     FROM HESSE     STATUS=OK            31 CALLS      245 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1602        1.6326        .94522E-04   -1.5493    
   2  alpha         .91037        .64599        .21167E-02   -.68911    
   3  Normalizat    .73264        .19842        .41646E-03   -1.0262    
   4  Prefactor     1.0419        .84168E-01    .14907E-03   -.91347    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.18981e-10
Minuit parameter uncertainties:
  1  1.6327
  2  0.658708
  3  0.198615
  4  0.0841783
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/102991': 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) = 13582.1445933
delta logL = 0.72958039685

Extracting fit parameters...

4FGL J2039.0-1046
   Spectrum: LogParabola
308         norm:  1.160e+00  1.633e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  9.104e-01  6.587e-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.042e+00  8.418e-02  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:  7.326e-01  1.986e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.58
Ra Dec: 309.758 -10.773
Photon Index (Free Index): 0.91 +/- 0.66
Photon Flux (Free Index): 5.95e-09 +/- 6.08e-09
Energy Flux (Free Index): 4.95e-05 +/- 5.88e-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/102991/cmap_HighResolution_562809601_563068801_4FGL_J2039.0-1046_daily_bin1248.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.49e-08', energy_flux2='4.95e-05', photon_flux_error='1.81e-08', dlogl='7.30e-01', energy_flux='1.63e-05', photon_flux2='5.95e-09', job_status='DONE', time_completed='2021-09-25 15:39:51.463419', photon_index_error2='0.66', photon_index2='0.91', ts='8.13', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', energy_flux_error2='5.88e-05', EG='0.71', time_epoch_completed='1632609591.46', return_code='0', job_id='102991', GAL2='1.04', EG2='0.73', return_code2='0', energy_flux_error='1.19e-05', photon_flux_error2='6.08e-09', ts2='9.58', photon_index='1.96' WHERE bin_id='1248' AND source_name='4FGL J2039.0-1046' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 25 15:39:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0086>
Subject: Job 102991: <4FGL_J2039.0-1046_daily_bin1248> in cluster <slac> Done

Job <4FGL_J2039.0-1046_daily_bin1248> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep 25 15:25:14 2021
Job was executed on host(s) <bullet0086>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 25 15:25:34 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:34 2021
Terminated at Sat Sep 25 15:39:52 2021
Results reported at Sat Sep 25 15:39:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2039.0-1046_daily_bin1248 309.758 -10.7731 562809601 563068801 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 :                                   805.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             334.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   857 sec.
    Turnaround time :                            878 sec.

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

