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


Performing analysis on: 4FGL_J2039.0-1046_daily_bin1355
RA = 309.758, Dec = -10.7731
tmin = 590544001, tmax = 590803201
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='103144', job_status='RUN', time_executed='2021-09-25 15:29:03.708691', time_epoch_executed='1632608943.71' WHERE source_name='4FGL J2039.0-1046' and cadence='daily' and bin_id='1355'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/103144

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/103144/ft1_4FGL_J2039.0-1046_daily_bin1355.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/103144/ft2_4FGL_J2039.0-1046_daily_bin1355.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/103144/ft1_4FGL_J2039.0-1046_daily_bin1355.fits outfile=/scratch/kocevski/103144/ft1_filteredMKT_4FGL_J2039.0-1046_daily_bin1355.fits ra=309.758 dec=-10.7731 rad=12.0 tmin=590544001.0 tmax=590803201.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 4.24
user 3.99
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/103144/ft1_filtered_4FGL_J2039.0-1046_daily_bin1355.fits" evtable="EVENTS" scfile=/scratch/kocevski/103144/ft2_4FGL_J2039.0-1046_daily_bin1355.fits sctable="SC_DATA" outfile=/scratch/kocevski/103144/ltcube_590544001_590803201_4FGL_J2039.0-1046_daily_bin1355.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/103144/ft2_4FGL_J2039.0-1046_daily_bin1355.fits
.....................!
real 13.50
user 13.14
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/103144/ft1_filtered_4FGL_J2039.0-1046_daily_bin1355.fits evtable="EVENTS" scfile=/scratch/kocevski/103144/ft2_4FGL_J2039.0-1046_daily_bin1355.fits sctable="SC_DATA" expcube=/scratch/kocevski/103144/ltcube_590544001_590803201_4FGL_J2039.0-1046_daily_bin1355.fits outfile=/scratch/kocevski/103144/expmap_590544001_590803201_4FGL_J2039.0-1046_daily_bin1355.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/103144/ltcube_590544001_590803201_4FGL_J2039.0-1046_daily_bin1355.fits
.....................!
real 190.66
user 185.33
sys 4.72

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/103144/ft1_filtered_4FGL_J2039.0-1046_daily_bin1355.fits scfile=/scratch/kocevski/103144/ft2_4FGL_J2039.0-1046_daily_bin1355.fits outfile=/scratch/kocevski/103144/cmap_590544001_590803201_4FGL_J2039.0-1046_daily_bin1355.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/103144/ft1_filtered_4FGL_J2039.0-1046_daily_bin1355.fits scfile=/scratch/kocevski/103144/ft2_4FGL_J2039.0-1046_daily_bin1355.fits outfile=/scratch/kocevski/103144/cmap_HighResolution_590544001_590803201_4FGL_J2039.0-1046_daily_bin1355.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/103144/ft1_filtered_4FGL_J2039.0-1046_daily_bin1355.fits evtable="EVENTS" scfile=/scratch/kocevski/103144/ft2_4FGL_J2039.0-1046_daily_bin1355.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/103144/Model_4FGL_J2039.0-1046_daily_bin1355.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/103144/ft1_filtered_4FGL_J2039.0-1046_daily_bin1355.fits.....................!
real 76.71
user 75.25
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.1880       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.1371       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    14.883       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    19.216       1.0000         .10000E-03   10000.    
    12 'norm      '    .10060E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .35281E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    13.986       1.0000         .10000E-03   10000.    
    15 'norm      '    3.0804       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.3231       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .98451       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .90114       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=   8141.498     FROM MIGRAD    STATUS=CONVERGED    478 CALLS     2357 TOTAL
                     EDM=   .63E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.1878        3.8454       -.43317E-07   -.66154E-04
   2  Prefactor     .10000E-03    37.206        .24062E-04** at limit **
   3  Prefactor     .10000E-03    21.890       -.79815E-06** at limit **
   4  Prefactor     .10000E-03    24.595       -.14287E-04** at limit **
   5  Prefactor     9.1372        2.6139        .93117E-07    .29908E-03
   6  Prefactor     .10000E-03    10.064        .54924E-05** at limit **
   7  Prefactor     .10000E-03    10.740       -.61809E-05** at limit **
   8  norm          14.881        9.8784       -.80205E-06   -.12461E-02
   9  Prefactor     .10000E-03    23.681       -.10781E-04** at limit **
  10  Prefactor     .10000E-03    74.637       -.16170E-04** at limit **
  11  norm          19.216        15.281       -.43758E-07    .13888E-04
  12  norm          .10000E-03    22.467       -.51586E-05** at limit **
  13  norm          .10000E-03    .50729       -.26681E-07** at limit **
  14  Prefactor     13.989        13.402       -.10066E-06   -.35991E-05
  15  norm          3.0804        2.5645        .52061E-08    .80725E-04
  16  Prefactor     .10000E-03    2.5328        .61944E-07** at limit **
  17  Prefactor     .10000E-03    3.4376       -.12002E-07** at limit **
  18  Prefactor     .10000E-03    8.4694       -.51617E-06** at limit **
  19  Prefactor     .10000E-03    19.724        .18902E-04** at limit **
  20  Prefactor     5.3251        12.886       -.82848E-06   -.22274E-03
  21  Normalizat    .98439        .22550       -.29309E-06   -.39487E-04
  22  Prefactor     .90121        .89671E-01    .23295E-06   -.22158E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.18782
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.13717
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 14.8809
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 19.2163
  norm       = 0.0001
  norm       = 0.000100004
  Prefactor  = 13.9893
  norm       = 3.08044
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.32512
  Normalizat = 0.984388
  Prefactor  = 0.901213
 **********
 **   18 **HESSE 
 **********

 FCN=   8141.498     FROM HESSE     STATUS=OK           348 CALLS     2705 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.1878        3.8533        .12487E-03   -1.5172    
   2  Prefactor     .10000E-03    37.165        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    22.040        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    24.598        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     9.1372        2.6140        .74400E-04   -1.5103    
   6  Prefactor     .10000E-03    10.061        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    10.768        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          14.881        9.9839        .51910E-03   -1.4936    
   9  Prefactor     .10000E-03    23.698        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    74.630        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          19.216        15.288        .91369E-04   -1.4831    
  12  norm          .10000E-03    22.685        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.0937        .21889E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     13.989        13.401        .10710E-03   -1.4960    
  15  norm          3.0804        2.5670        .12822E-03   -1.5357    
  16  Prefactor     .10000E-03    2.6019        .28019E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    3.5433        .32664E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    8.5145        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    19.740        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     5.3251        12.919        .17420E-03   -1.5246    
  21  Normalizat    .98439        .26720        .38519E-03   -.93555    
  22  Prefactor     .90121        .10727        .15991E-03   -.96099    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.26208e-09
Minuit parameter uncertainties:
  1  3.85345
  2  5.38723e-05
  3  4.05475e-06
  4  1.92689e-05
  5  2.614
  6  3.94331e-07
  7  2.03508e-05
  8  9.98498
  9  7.57892e-06
  10  5.17453e-05
  11  15.2906
  12  2.58199e-05
  13  0.000128703
  14  13.4041
  15  2.56704
  16  4.72134e-07
  17  8.10827e-07
  18  5.14294e-07
  19  4.63139e-05
  20  12.9263
  21  0.267565
  22  0.107297
Done.

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

Extracting fit parameters...

4FGL J2039.0-1046
   Spectrum: LogParabola
308         norm:  3.080e+00  2.567e+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:  9.012e-01  1.073e-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.844e-01  2.676e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.68
Ra Dec: 309.758 -10.773
Photon Index (Fixed Index): 1.96 +/- 0.00
Photon Flux (Fixed Index): 2.38e-08 +/- 1.99e-08
Energy Flux (Fixed Index): 1.56e-05 +/- 1.30e-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) = 8140.80233363
delta logL = 0.695998670417

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8140.65213058
delta logL = 0.846201721687

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.3243       1.0000         .10000E-03   10000.    
     2 'alpha     '    .94689       1.0000          .0000       5.0000    
     3 'Normalizat'    .99572       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90165       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=   8140.652     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      216 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.3232        1.3674        .95522E-02   -.44843E-03
   2  alpha         .94648        .45569        .45151       -.43147E-04
   3  Normalizat    .99572        .22039        .86564E-01    .25865E-04
   4  Prefactor     .90169        .88467E-01    .45026E-01    .17917E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 1.32322
  alpha      = 0.946485
  Normalizat = 0.995719
  Prefactor  = 0.901694
 **********
 **   18 **HESSE 
 **********

 FCN=   8140.652     FROM HESSE     STATUS=OK            31 CALLS      247 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.3232        2.2945        .97204E-04   -1.5478    
   2  alpha         .94648        .76523        .19202E-01   -.67054    
   3  Normalizat    .99572        .26180        .38328E-03   -.93174    
   4  Prefactor     .90169        .10538        .15990E-03   -.96082    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.90512e-09
Minuit parameter uncertainties:
  1  2.29469
  2  0.786173
  3  0.262141
  4  0.1054
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/103144': 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) = 8140.65213011
delta logL = 0.846202183898

Extracting fit parameters...

4FGL J2039.0-1046
   Spectrum: LogParabola
308         norm:  1.323e+00  2.295e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  9.465e-01  7.862e-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:  9.017e-01  1.054e-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.957e-01  2.621e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.37
Ra Dec: 309.758 -10.773
Photon Index (Free Index): 0.95 +/- 0.79
Photon Flux (Free Index): 6.61e-09 +/- 8.79e-09
Energy Flux (Free Index): 5.05e-05 +/- 7.04e-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/103144/cmap_HighResolution_590544001_590803201_4FGL_J2039.0-1046_daily_bin1355.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.38e-08', energy_flux2='5.05e-05', photon_flux_error='1.99e-08', dlogl='8.46e-01', energy_flux='1.56e-05', photon_flux2='6.61e-09', job_status='DONE', time_completed='2021-09-25 15:40:35.521850', photon_index_error2='0.79', photon_index2='0.95', ts='6.68', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', energy_flux_error2='7.04e-05', EG='0.98', time_epoch_completed='1632609635.52', return_code='0', job_id='103144', GAL2='0.90', EG2='1.00', return_code2='0', energy_flux_error='1.30e-05', photon_flux_error2='8.79e-09', ts2='8.37', photon_index='1.96' WHERE bin_id='1355' AND source_name='4FGL J2039.0-1046' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 25 15:40:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0077>
Subject: Job 103144: <4FGL_J2039.0-1046_daily_bin1355> in cluster <slac> Done

Job <4FGL_J2039.0-1046_daily_bin1355> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep 25 15:25:26 2021
Job was executed on host(s) <bullet0077>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 25 15:26:08 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:26:08 2021
Terminated at Sat Sep 25 15:40:36 2021
Results reported at Sat Sep 25 15:40:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2039.0-1046_daily_bin1355 309.758 -10.7731 590544001 590803201 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 :                                   690.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             313.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   868 sec.
    Turnaround time :                            910 sec.

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

