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


Performing analysis on: 4FGL_J2039.0-1046_daily_bin1433
RA = 309.758, Dec = -10.7731
tmin = 610761601, tmax = 611020801
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='104205', job_status='RUN', time_executed='2021-09-25 15:31:08.771950', time_epoch_executed='1632609068.77' WHERE source_name='4FGL J2039.0-1046' and cadence='daily' and bin_id='1433'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/104205

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/104205/ft1_4FGL_J2039.0-1046_daily_bin1433.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/104205/ft2_4FGL_J2039.0-1046_daily_bin1433.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/104205/ft1_4FGL_J2039.0-1046_daily_bin1433.fits outfile=/scratch/kocevski/104205/ft1_filteredMKT_4FGL_J2039.0-1046_daily_bin1433.fits ra=309.758 dec=-10.7731 rad=12.0 tmin=610761601.0 tmax=611020801.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.52
user 3.30
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/104205/ft1_filtered_4FGL_J2039.0-1046_daily_bin1433.fits" evtable="EVENTS" scfile=/scratch/kocevski/104205/ft2_4FGL_J2039.0-1046_daily_bin1433.fits sctable="SC_DATA" outfile=/scratch/kocevski/104205/ltcube_610761601_611020801_4FGL_J2039.0-1046_daily_bin1433.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/104205/ft2_4FGL_J2039.0-1046_daily_bin1433.fits
.....................!
real 13.56
user 13.20
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/104205/ft1_filtered_4FGL_J2039.0-1046_daily_bin1433.fits evtable="EVENTS" scfile=/scratch/kocevski/104205/ft2_4FGL_J2039.0-1046_daily_bin1433.fits sctable="SC_DATA" expcube=/scratch/kocevski/104205/ltcube_610761601_611020801_4FGL_J2039.0-1046_daily_bin1433.fits outfile=/scratch/kocevski/104205/expmap_610761601_611020801_4FGL_J2039.0-1046_daily_bin1433.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/104205/ltcube_610761601_611020801_4FGL_J2039.0-1046_daily_bin1433.fits
.....................!
real 191.07
user 185.53
sys 4.78

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/104205/ft1_filtered_4FGL_J2039.0-1046_daily_bin1433.fits scfile=/scratch/kocevski/104205/ft2_4FGL_J2039.0-1046_daily_bin1433.fits outfile=/scratch/kocevski/104205/cmap_610761601_611020801_4FGL_J2039.0-1046_daily_bin1433.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/104205/ft1_filtered_4FGL_J2039.0-1046_daily_bin1433.fits scfile=/scratch/kocevski/104205/ft2_4FGL_J2039.0-1046_daily_bin1433.fits outfile=/scratch/kocevski/104205/cmap_HighResolution_610761601_611020801_4FGL_J2039.0-1046_daily_bin1433.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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/104205/ft1_filtered_4FGL_J2039.0-1046_daily_bin1433.fits evtable="EVENTS" scfile=/scratch/kocevski/104205/ft2_4FGL_J2039.0-1046_daily_bin1433.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/104205/Model_4FGL_J2039.0-1046_daily_bin1433.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/104205/ft1_filtered_4FGL_J2039.0-1046_daily_bin1433.fits.....................!
real 76.24
user 74.90
sys 1.11

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.0771       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.5712       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    6.8354       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    125.02       1.0000         .10000E-03   10000.    
    11 'norm      '    4.7441       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    9.1951       1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.126       1.0000         .10000E-03   10000.    
    15 'norm      '    3.3034       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .12702E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.6456       1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.9481       1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.1063       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0573       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .89253       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=   8096.516     FROM MIGRAD    STATUS=CONVERGED    455 CALLS     2380 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.0871        .12670E-07** at limit **
   2  Prefactor     .10000E-03    16.971       -.25292E-05** at limit **
   3  Prefactor     3.0864        31.417        .19291E-04   -.49379E-04
   4  Prefactor     .10000E-03    24.399       -.44737E-05** at limit **
   5  Prefactor     3.5710        2.4622       -.48244E-07   -.58320E-03
   6  Prefactor     .10000E-03    23.971       -.24998E-05** at limit **
   7  Prefactor     .10000E-03    18.374        .44372E-05** at limit **
   8  norm          6.8384        10.758        .14594E-05   -.11402E-03
   9  Prefactor     .10000E-03    11.047        .50103E-05** at limit **
  10  Prefactor     124.99        171.31       -.19517E-04   -.81459E-05
  11  norm          4.7440        8.8928       -.12598E-06   -.91608E-04
  12  norm          .10000E-03    21.989        .63079E-05** at limit **
  13  norm          9.1951        2.1070        .98149E-08   -.16367E-03
  14  Prefactor     10.127        14.045       -.24370E-06   -.55908E-04
  15  norm          3.3034        2.8177        .57952E-07   -.23246E-05
  16  Prefactor     .10000E-03    1.8197       -.49468E-08** at limit **
  17  Prefactor     5.6460        6.2418        .11710E-05   -.31734E-03
  18  Prefactor     5.9497        17.167        .25600E-06   -.57067E-04
  19  Prefactor     7.1069        11.216        .14998E-07    .12111E-04
  20  Prefactor     .10000E-03    11.896       -.58505E-05** at limit **
  21  Normalizat    1.0573        .24340        .66094E-06   -.62050E-04
  22  Prefactor     .89254        .93919E-01   -.45311E-06    .25011E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.08642
  Prefactor  = 0.0001
  Prefactor  = 3.57105
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.83838
  Prefactor  = 0.0001
  Prefactor  = 124.993
  norm       = 4.744
  norm       = 0.0001
  norm       = 9.19508
  Prefactor  = 10.1268
  norm       = 3.30343
  Prefactor  = 0.0001
  Prefactor  = 5.64597
  Prefactor  = 5.94974
  Prefactor  = 7.10686
  Prefactor  = 0.0001
  Normalizat = 1.05727
  Prefactor  = 0.892541
 **********
 **   18 **HESSE 
 **********

 FCN=   8096.516     FROM HESSE     STATUS=OK           346 CALLS     2726 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.0923        .91612E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    16.975        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.0864        30.881        .23123E-03   -1.5357    
   4  Prefactor     .10000E-03    24.433        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.5710        2.4526        .11119E-03   -1.5330    
   6  Prefactor     .10000E-03    24.059        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    18.562        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          6.8384        10.690        .15346E-03   -1.5185    
   9  Prefactor     .10000E-03    11.064        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     124.99        171.39        .36001E-04   -1.3467    
  11  norm          4.7440        8.8864        .18473E-03   -1.5272    
  12  norm          .10000E-03    22.132        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          9.1951        2.1069        .57230E-04   -1.5101    
  14  Prefactor     10.127        14.042        .12592E-03   -1.5071    
  15  norm          3.3034        2.8174        .13561E-03   -1.5344    
  16  Prefactor     .10000E-03    8.8627        .23515E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.6460        6.2092        .16906E-03   -1.5233    
  18  Prefactor     5.9497        17.257        .16465E-03   -1.5220    
  19  Prefactor     7.1069        11.211        .15048E-03   -1.5175    
  20  Prefactor     .10000E-03    12.003        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.0573        .28829        .38547E-03   -.91136    
  22  Prefactor     .89254        .11254        .16593E-03   -.96402    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.75323e-10
Minuit parameter uncertainties:
  1  2.30954e-07
  2  6.01229e-06
  3  19.5385
  4  4.00741e-05
  5  2.4527
  6  0.000139607
  7  2.86469e-06
  8  10.6931
  9  4.27934e-07
  10  172.074
  11  8.88884
  12  2.75282e-05
  13  2.10694
  14  14.0463
  15  2.81754
  16  9.02205e-05
  17  6.2099
  18  17.2712
  19  11.2139
  20  2.02322e-05
  21  0.28872
  22  0.112569
Done.

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

Extracting fit parameters...

4FGL J2039.0-1046
   Spectrum: LogParabola
308         norm:  3.303e+00  2.818e+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:  8.925e-01  1.126e-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.057e+00  2.887e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.24
Ra Dec: 309.758 -10.773
Photon Index (Fixed Index): 1.96 +/- 0.00
Photon Flux (Fixed Index): 2.56e-08 +/- 2.18e-08
Energy Flux (Fixed Index): 1.67e-05 +/- 1.42e-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) = 8095.94329213
delta logL = 0.572949055041

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8095.93876551
delta logL = 0.577475673872

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.0623       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.3331       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0684       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89049       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=   8095.939     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      202 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.0623        2.5366        .57954E-02    .13201E-02
   2  alpha         1.3331        .43247        .43589       -.33186E-04
   3  Normalizat    1.0683        .22888        .86655E-01    .44281E-04
   4  Prefactor     .89052        .91817E-01    .44884E-01    .52792E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.06231
  alpha      = 1.33312
  Normalizat = 1.06828
  Prefactor  = 0.890518
 **********
 **   18 **HESSE 
 **********

 FCN=   8095.939     FROM HESSE     STATUS=OK            31 CALLS      233 TOTAL
                     EDM=   .97E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.0623        2.7980        .12509E-03   -1.5358    
   2  alpha         1.3331        .53908        .16986E-01   -.48562    
   3  Normalizat    1.0683        .27087        .38372E-03   -.90777    
   4  Prefactor     .89052        .10897        .16608E-03   -.96473    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.73056e-10
Minuit parameter uncertainties:
  1  2.79815
  2  0.544564
  3  0.271224
  4  0.108995
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/104205': 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) = 8095.93876544
delta logL = 0.577475747174

Extracting fit parameters...

4FGL J2039.0-1046
   Spectrum: LogParabola
308         norm:  3.062e+00  2.798e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  1.333e+00  5.446e-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:  8.905e-01  1.090e-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.068e+00  2.712e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.40
Ra Dec: 309.758 -10.773
Photon Index (Free Index): 1.33 +/- 0.54
Photon Flux (Free Index): 1.43e-08 +/- 1.43e-08
Energy Flux (Free Index): 4.03e-05 +/- 4.82e-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/104205/cmap_HighResolution_610761601_611020801_4FGL_J2039.0-1046_daily_bin1433.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.56e-08', energy_flux2='4.03e-05', photon_flux_error='2.18e-08', dlogl='5.77e-01', energy_flux='1.67e-05', photon_flux2='1.43e-08', job_status='DONE', time_completed='2021-09-25 15:42:34.026499', photon_index_error2='0.54', photon_index2='1.33', ts='4.24', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', energy_flux_error2='4.82e-05', EG='1.06', time_epoch_completed='1632609754.03', return_code='0', job_id='104205', GAL2='0.89', EG2='1.07', return_code2='0', energy_flux_error='1.42e-05', photon_flux_error2='1.43e-08', ts2='5.40', photon_index='1.96' WHERE bin_id='1433' AND source_name='4FGL J2039.0-1046' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 25 15:42:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0154>
Subject: Job 104205: <4FGL_J2039.0-1046_daily_bin1433> in cluster <slac> Done

Job <4FGL_J2039.0-1046_daily_bin1433> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Sep 25 15:30:18 2021
Job was executed on host(s) <bullet0154>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 25 15:30:31 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:30:31 2021
Terminated at Sat Sep 25 15:42:34 2021
Results reported at Sat Sep 25 15:42:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2039.0-1046_daily_bin1433 309.758 -10.7731 610761601 611020801 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 :                                   682.39 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             295.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   723 sec.
    Turnaround time :                            736 sec.

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

