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


Performing analysis on: 4FGL_J2039.0-1046_daily_bin1023
RA = 309.758, Dec = -10.7731
tmin = 504489601, tmax = 504748801
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='101563', job_status='RUN', time_executed='2021-09-25 15:22:58.461916', time_epoch_executed='1632608578.46' WHERE source_name='4FGL J2039.0-1046' and cadence='daily' and bin_id='1023'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/101563

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/101563/ft1_4FGL_J2039.0-1046_daily_bin1023.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/101563/ft2_4FGL_J2039.0-1046_daily_bin1023.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/101563/ft1_4FGL_J2039.0-1046_daily_bin1023.fits outfile=/scratch/kocevski/101563/ft1_filteredMKT_4FGL_J2039.0-1046_daily_bin1023.fits ra=309.758 dec=-10.7731 rad=12.0 tmin=504489601.0 tmax=504748801.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.61
user 3.39
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/101563/ft2_4FGL_J2039.0-1046_daily_bin1023.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/101563/ft1_filteredMKT_4FGL_J2039.0-1046_daily_bin1023.fits evtable="EVENTS" outfile="/scratch/kocevski/101563/ft1_filtered_4FGL_J2039.0-1046_daily_bin1023.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.45
user 0.29
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/101563/ft1_filtered_4FGL_J2039.0-1046_daily_bin1023.fits" evtable="EVENTS" scfile=/scratch/kocevski/101563/ft2_4FGL_J2039.0-1046_daily_bin1023.fits sctable="SC_DATA" outfile=/scratch/kocevski/101563/ltcube_504489601_504748801_4FGL_J2039.0-1046_daily_bin1023.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/101563/ft2_4FGL_J2039.0-1046_daily_bin1023.fits
.....................!
real 10.32
user 9.87
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/101563/ft1_filtered_4FGL_J2039.0-1046_daily_bin1023.fits evtable="EVENTS" scfile=/scratch/kocevski/101563/ft2_4FGL_J2039.0-1046_daily_bin1023.fits sctable="SC_DATA" expcube=/scratch/kocevski/101563/ltcube_504489601_504748801_4FGL_J2039.0-1046_daily_bin1023.fits outfile=/scratch/kocevski/101563/expmap_504489601_504748801_4FGL_J2039.0-1046_daily_bin1023.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/101563/ltcube_504489601_504748801_4FGL_J2039.0-1046_daily_bin1023.fits
.....................!
real 148.98
user 144.28
sys 4.42

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/101563/ft1_filtered_4FGL_J2039.0-1046_daily_bin1023.fits scfile=/scratch/kocevski/101563/ft2_4FGL_J2039.0-1046_daily_bin1023.fits outfile=/scratch/kocevski/101563/cmap_504489601_504748801_4FGL_J2039.0-1046_daily_bin1023.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.31
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/101563/ft1_filtered_4FGL_J2039.0-1046_daily_bin1023.fits scfile=/scratch/kocevski/101563/ft2_4FGL_J2039.0-1046_daily_bin1023.fits outfile=/scratch/kocevski/101563/cmap_HighResolution_504489601_504748801_4FGL_J2039.0-1046_daily_bin1023.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.48
user 0.32
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/101563/ft1_filtered_4FGL_J2039.0-1046_daily_bin1023.fits evtable="EVENTS" scfile=/scratch/kocevski/101563/ft2_4FGL_J2039.0-1046_daily_bin1023.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/101563/Model_4FGL_J2039.0-1046_daily_bin1023.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/101563/ft1_filtered_4FGL_J2039.0-1046_daily_bin1023.fits.....................!
real 62.53
user 61.12
sys 1.06

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.7948       1.0000         .10000E-03   10000.    
     2 'Prefactor '    37.398       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    38.656       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11945E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    17.391       1.0000         .10000E-03   10000.    
     8 'norm      '    19.155       1.0000         .10000E-03   10000.    
     9 'Prefactor '    26.248       1.0000         .10000E-03   10000.    
    10 'Prefactor '    137.46       1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    17.989       1.0000         .10000E-03   10000.    
    13 'norm      '    3.7235       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .88040       1.0000         .10000E-03   10000.    
    15 'norm      '    2.1446       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.8643       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .24475E-01   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .63121       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1654       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=   8343.863     FROM MIGRAD    STATUS=CONVERGED    496 CALLS     3203 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.7950        4.2052        .79533E-06    .22492E-04
   2  Prefactor     37.382        61.303       -.11744E-04    .24872E-05
   3  Prefactor     .10000E-03    13.380       -.65430E-09** at limit **
   4  Prefactor     38.635        58.547       -.18180E-04   -.18721E-05
   5  Prefactor     .10000E-03    .90198        .15304E-06** at limit **
   6  Prefactor     .10000E-03    66.169        .18250E-06** at limit **
   7  Prefactor     17.383        17.228        .35119E-06   -.98589E-05
   8  norm          19.150        14.036       -.68293E-05   -.50528E-04
   9  Prefactor     26.245        30.229        .46431E-06    .35657E-05
  10  Prefactor     137.57        189.23        .90256E-04    .48770E-05
  11  norm          .10000E-03    5.4331       -.23523E-07** at limit **
  12  norm          17.986        24.033       -.59899E-06   -.58841E-05
  13  norm          3.7257        1.7886        .18487E-08    .21551E-03
  14  Prefactor     .79968        9.8275       -.76071E-06   -.45070E-04
  15  norm          2.1445        2.6396       -.57263E-07   -.53187E-04
  16  Prefactor     3.8635        4.7657       -.44785E-06   -.60370E-03
  17  Prefactor     .10000E-03    1.9210        .58620E-08** at limit **
  18  Prefactor     .10000E-03    14.401        .15599E-07** at limit **
  19  Prefactor     .10001E-03    10.863        .22807E-06** at limit **
  20  Prefactor     .10000E-03    3.7267        .10447E-08** at limit **
  21  Normalizat    .63104        .27461       -.83728E-06   -.14091E-04
  22  Prefactor     1.1656        .11201        .56317E-07    .12788E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.79496
  Prefactor  = 37.3817
  Prefactor  = 0.0001
  Prefactor  = 38.6349
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.3825
  norm       = 19.1503
  Prefactor  = 26.2453
  Prefactor  = 137.571
  norm       = 0.0001
  norm       = 17.9855
  norm       = 3.72567
  Prefactor  = 0.799677
  norm       = 2.14448
  Prefactor  = 3.86355
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100013
  Prefactor  = 0.0001
  Normalizat = 0.631036
  Prefactor  = 1.16557
 **********
 **   18 **HESSE 
 **********

 FCN=   8343.863     FROM HESSE     STATUS=OK           358 CALLS     3561 TOTAL
                     EDM=   .32E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.7950        4.2021        .16573E-03   -1.5270    
   2  Prefactor     37.382        61.380        .65537E-04   -1.4484    
   3  Prefactor     .10000E-03    13.398        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     38.635        58.692        .64466E-04   -1.4464    
   5  Prefactor     .10000E-03    .91068        .84495E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    66.511        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     17.383        17.178        .96041E-04   -1.4874    
   8  norm          19.150        14.024        .91513E-04   -1.4832    
   9  Prefactor     26.245        30.254        .78192E-04   -1.4683    
  10  Prefactor     137.57        189.27        .17177E-03   -1.3357    
  11  norm          .10000E-03    5.4375        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          17.986        24.038        .94432E-04   -1.4860    
  13  norm          3.7257        1.8304        .74274E-04   -1.5322    
  14  Prefactor     .79968        84.405        .49280E-02   -1.5529    
  15  norm          2.1445        2.6301        .15964E-03   -1.5415    
  16  Prefactor     3.8635        4.7449        .20528E-03   -1.5315    
  17  Prefactor     .10000E-03    1.9391        .12360E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    14.551        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10001E-03    13.384        .93799E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    3.7295        .17220E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .63104        .29328        .51194E-03   -1.0668    
  22  Prefactor     1.1656        .12352        .15913E-03   -.87397    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.23905e-08
Minuit parameter uncertainties:
  1  4.20241
  2  61.4841
  3  3.00362e-06
  4  58.7803
  5  1.4482e-05
  6  3.8721e-05
  7  17.1824
  8  14.0262
  9  30.2716
  10  190.111
  11  3.55227e-06
  12  24.0512
  13  1.83047
  14  16.4541
  15  2.63026
  16  4.74538
  17  1.25413e-06
  18  1.16718e-05
  19  0.000826091
  20  5.181e-07
  21  0.294009
  22  0.123553
Done.

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

Extracting fit parameters...

4FGL J2039.0-1046
   Spectrum: LogParabola
308         norm:  2.144e+00  2.630e+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.166e+00  1.236e-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:  6.310e-01  2.940e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.53
Ra Dec: 309.758 -10.773
Photon Index (Fixed Index): 1.96 +/- 0.00
Photon Flux (Fixed Index): 1.66e-08 +/- 2.03e-08
Energy Flux (Fixed Index): 1.08e-05 +/- 1.33e-05

TS (Fixed Index): 1.53
Ra Dec: 309.758 -10.773
Photon Flux Upper Limit: 8.06e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.27e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/101563/likelihoodResults_504489601_504748801_4FGL_J2039.0-1046_daily_bin1023.txt

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) = 8342.12131226
delta logL = 1.7418463121

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8342.11521062
delta logL = 1.74794795598

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.2419       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.6141       1.0000          .0000       5.0000    
     3 'Normalizat'    .46712       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2020       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=   8342.115     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      247 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.2417        8.9212        .10056E-01    .62436E-03
   2  alpha         3.6141        3.9150        .26389        .84025E-04
   3  Normalizat    .46712        .74843E-01    .13287       -.22926E-05
   4  Prefactor     1.2020        .30280E-01    .34585E-01   -.30369E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.24174
  alpha      = 3.61415
  Normalizat = 0.467122
  Prefactor  = 1.20197
 **********
 **   18 **HESSE 
 **********

 FCN=   8342.115     FROM HESSE     STATUS=OK            31 CALLS      278 TOTAL
                     EDM=   .36E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.2417        2.4971        .52659E-04   -1.5485    
   2  alpha         3.6141        1.0935        .10725E-01    .46191    
   3  Normalizat    .46712        .29570        .58912E-03   -1.1396    
   4  Prefactor     1.2020        .11952        .15677E-03   -.86271    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.588e-08
Minuit parameter uncertainties:
  1  2.49732
  2  1.14243
  3  0.296696
  4  0.119552
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/101563': 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) = 8342.11521061
delta logL = 1.74794796774

Extracting fit parameters...

4FGL J2039.0-1046
   Spectrum: LogParabola
308         norm:  1.242e+00  2.497e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  3.614e+00  1.142e+00  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.202e+00  1.196e-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:  4.671e-01  2.967e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.36
Ra Dec: 309.758 -10.773
Photon Index (Free Index): 3.61 +/- 1.14
Photon Flux (Free Index): 1.46e-07 +/- 8.74e-08
Energy Flux (Free Index): 2.52e-05 +/- 1.41e-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/101563/cmap_HighResolution_504489601_504748801_4FGL_J2039.0-1046_daily_bin1023.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.27e-05', comment='SUCCESS', photon_flux='1.66e-08', energy_flux2='2.52e-05', photon_flux_error='2.03e-08', dlogl='1.75e+00', energy_flux='1.08e-05', photon_flux2='1.46e-07', job_status='DONE', time_completed='2021-09-25 15:34:52.825835', photon_index_error2='1.14', photon_index2='3.61', ts='1.53', fit_tolerance='1e-08', GAL='1.17', photon_index_error='0.00', photon_flux_upper_limit='8.06e-08', energy_flux_error2='1.41e-05', EG='0.63', time_epoch_completed='1632609292.83', return_code='0', job_id='101563', GAL2='1.20', EG2='0.47', return_code2='0', energy_flux_error='1.33e-05', photon_flux_error2='8.74e-08', ts2='5.36', photon_index='1.96' WHERE bin_id='1023' AND source_name='4FGL J2039.0-1046' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 25 15:34:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0189>
Subject: Job 101563: <4FGL_J2039.0-1046_daily_bin1023> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2039.0-1046_daily_bin1023 309.758 -10.7731 504489601 504748801 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 :                                   711.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             320.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   794 sec.
    Turnaround time :                            874 sec.

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

