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


Performing analysis on: 4FGL_J2039.0-1046_daily_bin1568
RA = 309.758, Dec = -10.7731
tmin = 645753601, tmax = 646012801
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='105577', job_status='RUN', time_executed='2021-09-25 15:38:27.307518', time_epoch_executed='1632609507.31' WHERE source_name='4FGL J2039.0-1046' and cadence='daily' and bin_id='1568'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/105577

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/105577/ft1_4FGL_J2039.0-1046_daily_bin1568.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/105577/ft2_4FGL_J2039.0-1046_daily_bin1568.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/105577/ft1_4FGL_J2039.0-1046_daily_bin1568.fits outfile=/scratch/kocevski/105577/ft1_filteredMKT_4FGL_J2039.0-1046_daily_bin1568.fits ra=309.758 dec=-10.7731 rad=12.0 tmin=645753601.0 tmax=646012801.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.36
user 2.13
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/105577/ft1_filtered_4FGL_J2039.0-1046_daily_bin1568.fits" evtable="EVENTS" scfile=/scratch/kocevski/105577/ft2_4FGL_J2039.0-1046_daily_bin1568.fits sctable="SC_DATA" outfile=/scratch/kocevski/105577/ltcube_645753601_646012801_4FGL_J2039.0-1046_daily_bin1568.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/105577/ft2_4FGL_J2039.0-1046_daily_bin1568.fits
.....................!
real 15.86
user 15.43
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/105577/ft1_filtered_4FGL_J2039.0-1046_daily_bin1568.fits evtable="EVENTS" scfile=/scratch/kocevski/105577/ft2_4FGL_J2039.0-1046_daily_bin1568.fits sctable="SC_DATA" expcube=/scratch/kocevski/105577/ltcube_645753601_646012801_4FGL_J2039.0-1046_daily_bin1568.fits outfile=/scratch/kocevski/105577/expmap_645753601_646012801_4FGL_J2039.0-1046_daily_bin1568.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/105577/ltcube_645753601_646012801_4FGL_J2039.0-1046_daily_bin1568.fits
.....................!
real 190.77
user 185.86
sys 4.13

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/105577/ft1_filtered_4FGL_J2039.0-1046_daily_bin1568.fits scfile=/scratch/kocevski/105577/ft2_4FGL_J2039.0-1046_daily_bin1568.fits outfile=/scratch/kocevski/105577/cmap_645753601_646012801_4FGL_J2039.0-1046_daily_bin1568.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.39
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/105577/ft1_filtered_4FGL_J2039.0-1046_daily_bin1568.fits evtable="EVENTS" scfile=/scratch/kocevski/105577/ft2_4FGL_J2039.0-1046_daily_bin1568.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/105577/Model_4FGL_J2039.0-1046_daily_bin1568.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/105577/ft1_filtered_4FGL_J2039.0-1046_daily_bin1568.fits.....................!
real 73.96
user 72.38
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.541       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10867E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    44.162       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .57622E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10095E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    106.45       1.0000         .10000E-03   10000.    
    13 'norm      '    .95889       1.0000         .10000E-03   10000.    
    14 'Prefactor '    12.118       1.0000         .10000E-03   10000.    
    15 'norm      '    12.658       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.1166       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .15178E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .98745       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0066       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=   7635.196     FROM MIGRAD    STATUS=CONVERGED    524 CALLS     2400 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.542        8.4019       -.46278E-07    .10321E-03
   2  Prefactor     .10000E-03    225.50        .80714E-05** at limit **
   3  Prefactor     .10000E-03    8.8697       -.56308E-07** at limit **
   4  Prefactor     44.168        58.926        .73168E-06    .67709E-04
   5  Prefactor     .10000E-03    2.5991       -.18372E-07** at limit **
   6  Prefactor     .10000E-03    12.973       -.47057E-07** at limit **
   7  Prefactor     .10000E-03    26.849       -.44459E-06** at limit **
   8  norm          .10217E-03    87.910       -.12336E-04** at limit **
   9  Prefactor     .10000E-03    11.104       -.11452E-06** at limit **
  10  Prefactor     .10001E-03    712.70       -.11114E-04** at limit **
  11  norm          .10000E-03    10.427       -.18474E-06** at limit **
  12  norm          106.42        50.841       -.10137E-05    .12568E-04
  13  norm          .95847        1.0658        .97371E-06    .13218E-02
  14  Prefactor     12.127        16.898       -.22863E-05   -.59762E-04
  15  norm          12.660        5.8006       -.50052E-07    .80773E-04
  16  Prefactor     2.1177        5.0299       -.10371E-05   -.23475E-03
  17  Prefactor     .10000E-03    1.0124       -.10163E-06** at limit **
  18  Prefactor     .10019E-03    25.554        .35892E-05** at limit **
  19  Prefactor     .10000E-03    7.8264       -.36078E-06** at limit **
  20  Prefactor     .10000E-03    3.4090       -.13292E-06** at limit **
  21  Normalizat    .98742        .27078        .71857E-06    .33396E-03
  22  Prefactor     1.0065        .10530        .35846E-06    .61427E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.5425
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 44.1678
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000102165
  Prefactor  = 0.0001
  Prefactor  = 0.000100014
  norm       = 0.0001
  norm       = 106.416
  norm       = 0.958472
  Prefactor  = 12.1269
  norm       = 12.6601
  Prefactor  = 2.11771
  Prefactor  = 0.0001
  Prefactor  = 0.000100192
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.987418
  Prefactor  = 1.00646
 **********
 **   18 **HESSE 
 **********

 FCN=   7635.196     FROM HESSE     STATUS=OK           344 CALLS     2744 TOTAL
                     EDM=   .69E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.542        8.4087        .10160E-03   -1.4919    
   2  Prefactor     .10000E-03    227.40        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    8.8709        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     44.168        58.941        .60329E-04   -1.4378    
   5  Prefactor     .10000E-03    2.6305        .13742E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    12.975        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    26.981        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10217E-03    19.189        .91931E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    11.108        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10001E-03    715.11        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    10.451        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          106.42        50.828        .38978E-04   -1.3641    
  13  norm          .95847        1.0679        .91365E-04   -1.5512    
  14  Prefactor     12.127        17.055        .11508E-03   -1.5011    
  15  norm          12.660        5.8005        .11259E-03   -1.4996    
  16  Prefactor     2.1177        5.0542        .14176E-02   -1.5417    
  17  Prefactor     .10000E-03    1.0159        .85849E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10019E-03    35.165        .44409E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    7.8444        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    3.4112        .15756E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .98742        .31257        .42384E-03   -.93453    
  22  Prefactor     1.0065        .12459        .16660E-03   -.92514    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.85324e-09
Minuit parameter uncertainties:
  1  8.40937
  2  0.00173664
  3  4.20019e-06
  4  59.0185
  5  3.85285e-06
  6  3.67286e-06
  7  1.63961e-05
  8  0.012895
  9  1.07715e-05
  10  0.00642041
  11  1.6873e-05
  12  50.8488
  13  1.06794
  14  17.0619
  15  5.80077
  16  5.05518
  17  7.09063e-07
  18  0.00519409
  19  8.19917e-06
  20  1.99663e-06
  21  0.313147
  22  0.12463
Done.

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

Extracting fit parameters...

4FGL J2039.0-1046
   Spectrum: LogParabola
308         norm:  1.266e+01  5.801e+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.006e+00  1.246e-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.874e-01  3.131e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 20.61
Ra Dec: 309.758 -10.773
Photon Index (Fixed Index): 1.96 +/- 0.00
Photon Flux (Fixed Index): 9.79e-08 +/- 4.49e-08
Energy Flux (Fixed Index): 6.40e-05 +/- 2.93e-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) = 7634.32240518
delta logL = 0.873428713442

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7634.17826578
delta logL = 1.01756811519

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.4197       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.2897       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0358       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0032       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=   7634.178     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      215 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.4198        4.8450        .34539E-02   -.32149E-02
   2  alpha         1.2896        .31368        .27297       -.50897E-04
   3  Normalizat    1.0357        .25804        .93781E-01    .89869E-04
   4  Prefactor     1.0032        .10280        .44623E-01    .18834E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 8.41975
  alpha      = 1.28959
  Normalizat = 1.03574
  Prefactor  = 1.00317
 **********
 **   18 **HESSE 
 **********

 FCN=   7634.178     FROM HESSE     STATUS=OK            29 CALLS      244 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.4198        7.2575        .13206E-03   -1.5128    
   2  alpha         1.2896        .49498        .11399E-01   -.50541    
   3  Normalizat    1.0357        .30791        .41542E-03   -.91843    
   4  Prefactor     1.0032        .12316        .16703E-03   -.92624    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.47795e-08
Minuit parameter uncertainties:
  1  7.25823
  2  0.499305
  3  0.308437
  4  0.123193
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/105577': 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) = 7634.17826564
delta logL = 1.01756824597

Extracting fit parameters...

4FGL J2039.0-1046
   Spectrum: LogParabola
308         norm:  8.420e+00  7.258e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  1.290e+00  4.993e-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.003e+00  1.232e-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.036e+00  3.084e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 22.62
Ra Dec: 309.758 -10.773
Photon Index (Free Index): 1.29 +/- 0.50
Photon Flux (Free Index): 3.90e-08 +/- 3.68e-08
Energy Flux (Free Index): 1.23e-04 +/- 9.49e-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/105577/cmap_HighResolution_645753601_646012801_4FGL_J2039.0-1046_daily_bin1568.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.79e-08', energy_flux2='1.23e-04', photon_flux_error='4.49e-08', dlogl='1.02e+00', energy_flux='6.40e-05', photon_flux2='3.90e-08', job_status='DONE', time_completed='2021-09-25 15:49:27.106448', photon_index_error2='0.50', photon_index2='1.29', ts='20.61', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', energy_flux_error2='9.49e-05', EG='0.99', time_epoch_completed='1632610167.11', return_code='0', job_id='105577', GAL2='1.00', EG2='1.04', return_code2='0', energy_flux_error='2.93e-05', photon_flux_error2='3.68e-08', ts2='22.62', photon_index='1.96' WHERE bin_id='1568' AND source_name='4FGL J2039.0-1046' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 25 15:49:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0215>
Subject: Job 105577: <4FGL_J2039.0-1046_daily_bin1568> in cluster <slac> Done

Job <4FGL_J2039.0-1046_daily_bin1568> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep 25 15:35:28 2021
Job was executed on host(s) <bullet0215>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 25 15:35:47 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:35:47 2021
Terminated at Sat Sep 25 15:49:27 2021
Results reported at Sat Sep 25 15:49:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2039.0-1046_daily_bin1568 309.758 -10.7731 645753601 646012801 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 :                                   657.33 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             297.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   820 sec.
    Turnaround time :                            839 sec.

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

