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


Performing analysis on: 4FGL_J2039.0-1046_daily_bin1059
RA = 309.758, Dec = -10.7731
tmin = 513820801, tmax = 514080001
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='101615', job_status='RUN', time_executed='2021-09-25 15:22:46.713289', time_epoch_executed='1632608566.71' WHERE source_name='4FGL J2039.0-1046' and cadence='daily' and bin_id='1059'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/101615

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/101615/ft1_4FGL_J2039.0-1046_daily_bin1059.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/101615/ft2_4FGL_J2039.0-1046_daily_bin1059.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/101615/ft1_4FGL_J2039.0-1046_daily_bin1059.fits outfile=/scratch/kocevski/101615/ft1_filteredMKT_4FGL_J2039.0-1046_daily_bin1059.fits ra=309.758 dec=-10.7731 rad=12.0 tmin=513820801.0 tmax=514080001.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.73
user 3.52
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/101615/ft2_4FGL_J2039.0-1046_daily_bin1059.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/101615/ft1_filteredMKT_4FGL_J2039.0-1046_daily_bin1059.fits evtable="EVENTS" outfile="/scratch/kocevski/101615/ft1_filtered_4FGL_J2039.0-1046_daily_bin1059.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.68
user 0.34
sys 0.31

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/101615/ft1_filtered_4FGL_J2039.0-1046_daily_bin1059.fits" evtable="EVENTS" scfile=/scratch/kocevski/101615/ft2_4FGL_J2039.0-1046_daily_bin1059.fits sctable="SC_DATA" outfile=/scratch/kocevski/101615/ltcube_513820801_514080001_4FGL_J2039.0-1046_daily_bin1059.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/101615/ft2_4FGL_J2039.0-1046_daily_bin1059.fits
.....................!
real 12.81
user 12.36
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/101615/ft1_filtered_4FGL_J2039.0-1046_daily_bin1059.fits evtable="EVENTS" scfile=/scratch/kocevski/101615/ft2_4FGL_J2039.0-1046_daily_bin1059.fits sctable="SC_DATA" expcube=/scratch/kocevski/101615/ltcube_513820801_514080001_4FGL_J2039.0-1046_daily_bin1059.fits outfile=/scratch/kocevski/101615/expmap_513820801_514080001_4FGL_J2039.0-1046_daily_bin1059.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/101615/ltcube_513820801_514080001_4FGL_J2039.0-1046_daily_bin1059.fits
.....................!
real 192.97
user 187.72
sys 4.74

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/101615/ft1_filtered_4FGL_J2039.0-1046_daily_bin1059.fits scfile=/scratch/kocevski/101615/ft2_4FGL_J2039.0-1046_daily_bin1059.fits outfile=/scratch/kocevski/101615/cmap_513820801_514080001_4FGL_J2039.0-1046_daily_bin1059.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.56
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/101615/ft1_filtered_4FGL_J2039.0-1046_daily_bin1059.fits scfile=/scratch/kocevski/101615/ft2_4FGL_J2039.0-1046_daily_bin1059.fits outfile=/scratch/kocevski/101615/cmap_HighResolution_513820801_514080001_4FGL_J2039.0-1046_daily_bin1059.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.55
user 0.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/101615/ft1_filtered_4FGL_J2039.0-1046_daily_bin1059.fits evtable="EVENTS" scfile=/scratch/kocevski/101615/ft2_4FGL_J2039.0-1046_daily_bin1059.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/101615/Model_4FGL_J2039.0-1046_daily_bin1059.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/101615/ft1_filtered_4FGL_J2039.0-1046_daily_bin1059.fits.....................!
real 74.96
user 73.40
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10101E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    16.429       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    36.848       1.0000         .10000E-03   10000.    
     8 'norm      '    1.8834       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    25.743       1.0000         .10000E-03   10000.    
    12 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10415E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.984       1.0000         .10000E-03   10000.    
    15 'norm      '    3.4468       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.5641       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    26.576       1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.1296       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .97684       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0206       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=   7730.117     FROM MIGRAD    STATUS=CONVERGED    471 CALLS     2064 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.1802       -.42696E-07** at limit **
   2  Prefactor     .10000E-03    19.324        .14061E-05** at limit **
   3  Prefactor     .10000E-03    8.6983       -.13372E-05** at limit **
   4  Prefactor     16.436        26.252        .92175E-05    .17378E-04
   5  Prefactor     .10000E-03    1.7364       -.48611E-07** at limit **
   6  Prefactor     .10000E-03    39.320       -.19797E-04** at limit **
   7  Prefactor     36.847        19.990        .89840E-06    .58439E-05
   8  norm          1.8835        4.9125       -.48819E-06   -.15308E-02
   9  Prefactor     .10000E-03    18.738       -.46518E-05** at limit **
  10  Prefactor     .10000E-03    34.446        .23201E-04** at limit **
  11  norm          25.747        17.966        .14659E-05    .82970E-04
  12  norm          .10000E-03    9.4319        .81260E-06** at limit **
  13  norm          .10000E-03    .72591       -.55265E-06** at limit **
  14  Prefactor     11.007        16.112        .60113E-05    .27877E-03
  15  norm          3.4468        3.3022        .12217E-05    .57520E-04
  16  Prefactor     1.5632        2.5213        .59997E-06   -.28914E-02
  17  Prefactor     .10000E-03    1.2074        .34371E-07** at limit **
  18  Prefactor     .10000E-03    9.3044        .11271E-05** at limit **
  19  Prefactor     26.590        25.795        .13668E-04    .22645E-04
  20  Prefactor     8.1257        13.005       -.26241E-05   -.44512E-04
  21  Normalizat    .97692        .25206       -.54893E-05    .12353E-03
  22  Prefactor     1.0206        .98495E-01   -.20159E-06    .18150E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.436
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 36.8472
  norm       = 1.88354
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 25.7475
  norm       = 0.0001
  norm       = 0.000100001
  Prefactor  = 11.0068
  norm       = 3.44678
  Prefactor  = 1.56316
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.5896
  Prefactor  = 8.1257
  Normalizat = 0.976923
  Prefactor  = 1.02058
 **********
 **   18 **HESSE 
 **********

 FCN=   7730.117     FROM HESSE     STATUS=OK           342 CALLS     2406 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.2104        .12672E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    19.338        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    8.7006        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     16.436        26.247        .98814E-04   -1.4897    
   5  Prefactor     .10000E-03    1.7647        .22433E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    39.396        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     36.847        19.819        .66023E-04   -1.4493    
   8  norm          1.8835        5.4481        .15165E-02   -1.5433    
   9  Prefactor     .10000E-03    18.740        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    34.346        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          25.747        17.978        .78954E-04   -1.4693    
  12  norm          .10000E-03    9.4368        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.0839        .13709E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     11.007        15.449        .12089E-03   -1.5044    
  15  norm          3.4468        3.3026        .15153E-03   -1.5337    
  16  Prefactor     1.5632        4.9714        .16141E-02   -1.5458    
  17  Prefactor     .10000E-03    1.2107        .94343E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    9.3605        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     26.590        25.725        .77710E-04   -1.4676    
  20  Prefactor     8.1257        12.999        .14061E-03   -1.5138    
  21  Normalizat    .97692        .29822        .40972E-03   -.93808    
  22  Prefactor     1.0206        .11574        .16113E-03   -.92047    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.76573e-08
Minuit parameter uncertainties:
  1  2.48889e-06
  2  4.70046e-06
  3  4.45788e-06
  4  26.2656
  5  7.85145e-06
  6  5.61442e-05
  7  19.8221
  8  5.44953
  9  5.46757e-06
  10  8.13324e-05
  11  17.9813
  12  3.0796e-06
  13  6.36114e-05
  14  15.4542
  15  3.30276
  16  4.97271
  17  2.47537e-06
  18  1.04622e-05
  19  25.7361
  20  13.0038
  21  0.298727
  22  0.115772
Done.

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

Extracting fit parameters...

4FGL J2039.0-1046
   Spectrum: LogParabola
308         norm:  3.447e+00  3.303e+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.021e+00  1.158e-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:  9.769e-01  2.987e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.46
Ra Dec: 309.758 -10.773
Photon Index (Fixed Index): 1.96 +/- 0.00
Photon Flux (Fixed Index): 2.67e-08 +/- 2.55e-08
Energy Flux (Fixed Index): 1.74e-05 +/- 1.67e-05

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

Saving results to:
/scratch/kocevski/101615/likelihoodResults_513820801_514080001_4FGL_J2039.0-1046_daily_bin1059.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) = 7730.00897221
delta logL = 0.107971346495

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7730.00594258
delta logL = 0.111000976437

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.5113       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3827       1.0000          .0000       5.0000    
     3 'Normalizat'    .95258       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0246       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=   7730.006     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      209 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.5120        72.086        .53937E-02    .16234E-03
   2  alpha         2.3831        3.3058        .41209        .33208E-04
   3  Normalizat    .95274        .12958        .93541E-01    .29525E-04
   4  Prefactor     1.0245        .35380E-01    .41707E-01    .19509E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 3.51196
  alpha      = 2.38305
  Normalizat = 0.952741
  Prefactor  = 1.02455
 **********
 **   18 **HESSE 
 **********

 FCN=   7730.006     FROM HESSE     STATUS=OK            33 CALLS      242 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.5120        3.2217        .13531E-03   -1.5333    
   2  alpha         2.3831        .86854        .18409E-01   -.46795E-01
   3  Normalizat    .95274        .28912        .41433E-03   -.94631    
   4  Prefactor     1.0245        .11425        .16083E-03   -.91916    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.22301e-09
Minuit parameter uncertainties:
  1  3.22187
  2  0.887076
  3  0.289599
  4  0.11428
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/101615': 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) = 7730.00594209
delta logL = 0.111001462392

Extracting fit parameters...

4FGL J2039.0-1046
   Spectrum: LogParabola
308         norm:  3.512e+00  3.222e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  2.383e+00  8.871e-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.025e+00  1.143e-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:  9.527e-01  2.896e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.69
Ra Dec: 309.758 -10.773
Photon Index (Free Index): 2.38 +/- 0.89
Photon Flux (Free Index): 4.87e-08 +/- 6.44e-08
Energy Flux (Free Index): 1.70e-05 +/- 1.46e-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/101615/cmap_HighResolution_513820801_514080001_4FGL_J2039.0-1046_daily_bin1059.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.37e-05', comment='SUCCESS', photon_flux='2.67e-08', energy_flux2='1.70e-05', photon_flux_error='2.55e-08', dlogl='1.11e-01', energy_flux='1.74e-05', photon_flux2='4.87e-08', job_status='DONE', time_completed='2021-09-25 15:34:42.139964', photon_index_error2='0.89', photon_index2='2.38', ts='3.46', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', photon_flux_upper_limit='9.75e-08', energy_flux_error2='1.46e-05', EG='0.98', time_epoch_completed='1632609282.14', return_code='0', job_id='101615', GAL2='1.02', EG2='0.95', return_code2='0', energy_flux_error='1.67e-05', photon_flux_error2='6.44e-08', ts2='3.69', photon_index='1.96' WHERE bin_id='1059' AND source_name='4FGL J2039.0-1046' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 25 15:34:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0258>
Subject: Job 101615: <4FGL_J2039.0-1046_daily_bin1059> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2039.0-1046_daily_bin1059 309.758 -10.7731 513820801 514080001 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 :                                   713.28 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             319.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   743 sec.
    Turnaround time :                            858 sec.

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

