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


Performing analysis on: 4FGL_J2039.0-1046_daily_bin1149
RA = 309.758, Dec = -10.7731
tmin = 537148801, tmax = 537408001
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='101748', job_status='RUN', time_executed='2021-09-25 15:24:44.512696', time_epoch_executed='1632608684.51' WHERE source_name='4FGL J2039.0-1046' and cadence='daily' and bin_id='1149'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/101748

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/101748/ft1_4FGL_J2039.0-1046_daily_bin1149.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/101748/ft2_4FGL_J2039.0-1046_daily_bin1149.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/101748/ft1_4FGL_J2039.0-1046_daily_bin1149.fits outfile=/scratch/kocevski/101748/ft1_filteredMKT_4FGL_J2039.0-1046_daily_bin1149.fits ra=309.758 dec=-10.7731 rad=12.0 tmin=537148801.0 tmax=537408001.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.98
user 2.71
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/101748/ft2_4FGL_J2039.0-1046_daily_bin1149.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/101748/ft1_filteredMKT_4FGL_J2039.0-1046_daily_bin1149.fits evtable="EVENTS" outfile="/scratch/kocevski/101748/ft1_filtered_4FGL_J2039.0-1046_daily_bin1149.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.44
user 0.27
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/101748/ft1_filtered_4FGL_J2039.0-1046_daily_bin1149.fits" evtable="EVENTS" scfile=/scratch/kocevski/101748/ft2_4FGL_J2039.0-1046_daily_bin1149.fits sctable="SC_DATA" outfile=/scratch/kocevski/101748/ltcube_537148801_537408001_4FGL_J2039.0-1046_daily_bin1149.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/101748/ft2_4FGL_J2039.0-1046_daily_bin1149.fits
.....................!
real 12.37
user 12.05
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/101748/ft1_filtered_4FGL_J2039.0-1046_daily_bin1149.fits evtable="EVENTS" scfile=/scratch/kocevski/101748/ft2_4FGL_J2039.0-1046_daily_bin1149.fits sctable="SC_DATA" expcube=/scratch/kocevski/101748/ltcube_537148801_537408001_4FGL_J2039.0-1046_daily_bin1149.fits outfile=/scratch/kocevski/101748/expmap_537148801_537408001_4FGL_J2039.0-1046_daily_bin1149.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/101748/ltcube_537148801_537408001_4FGL_J2039.0-1046_daily_bin1149.fits
.....................!
real 156.51
user 152.57
sys 3.53

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/101748/ft1_filtered_4FGL_J2039.0-1046_daily_bin1149.fits scfile=/scratch/kocevski/101748/ft2_4FGL_J2039.0-1046_daily_bin1149.fits outfile=/scratch/kocevski/101748/cmap_537148801_537408001_4FGL_J2039.0-1046_daily_bin1149.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=309.758 yref=-10.7731 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.47
user 0.32
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/101748/ft1_filtered_4FGL_J2039.0-1046_daily_bin1149.fits scfile=/scratch/kocevski/101748/ft2_4FGL_J2039.0-1046_daily_bin1149.fits outfile=/scratch/kocevski/101748/cmap_HighResolution_537148801_537408001_4FGL_J2039.0-1046_daily_bin1149.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=309.758 yref=-10.7731 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.48
user 0.32
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/101748/ft1_filtered_4FGL_J2039.0-1046_daily_bin1149.fits evtable="EVENTS" scfile=/scratch/kocevski/101748/ft2_4FGL_J2039.0-1046_daily_bin1149.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/101748/Model_4FGL_J2039.0-1046_daily_bin1149.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/101748/ft1_filtered_4FGL_J2039.0-1046_daily_bin1149.fits.....................!
real 55.79
user 54.73
sys 0.94

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.1876       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .18752E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .14509E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.7977       1.0000         .10000E-03   10000.    
     6 'Prefactor '    24.956       1.0000         .10000E-03   10000.    
     7 'Prefactor '    36.911       1.0000         .10000E-03   10000.    
     8 'norm      '    .52481       1.0000         .10000E-03   10000.    
     9 'Prefactor '    43.028       1.0000         .10000E-03   10000.    
    10 'Prefactor '    108.04       1.0000         .10000E-03   10000.    
    11 'norm      '    19.075       1.0000         .10000E-03   10000.    
    12 'norm      '    40.116       1.0000         .10000E-03   10000.    
    13 'norm      '    1.2043       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .27819E-02   1.0000         .10000E-03   10000.    
    15 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .41922       1.0000         .10000E-03   10000.    
    17 'Prefactor '    11.824       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.3741       1.0000         .10000E-03   10000.    
    19 'Prefactor '    33.235       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.3797       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .97288       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=   6634.917     FROM MIGRAD    STATUS=CONVERGED    497 CALLS     2437 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.1894        4.7152        .49382E-06   -.18836E-03
   2  Prefactor     .10000E-03    20.742        .34519E-07** at limit **
   3  Prefactor     .10000E-03    167.15        .27993E-05** at limit **
   4  Prefactor     .10000E-03    112.12        .75867E-06** at limit **
   5  Prefactor     2.7971        2.7113       -.71489E-07   -.14331E-03
   6  Prefactor     24.967        53.555       -.20921E-05    .12338E-04
   7  Prefactor     36.861        24.895       -.20904E-06   -.33787E-04
   8  norm          .52318        10.179       -.15381E-05   -.11200E-03
   9  Prefactor     43.163        52.196        .89713E-06    .94606E-05
  10  Prefactor     108.22        124.58        .10520E-05   -.22599E-05
  11  norm          19.078        16.736       -.12691E-06   -.30584E-04
  12  norm          40.129        35.466        .13008E-06   -.36088E-04
  13  norm          1.2046        1.0868       -.25120E-07   -.25354E-03
  14  Prefactor     .10000E-03    58.178       -.91624E-05** at limit **
  15  norm          .10000E-03    2.8112        .13892E-06** at limit **
  16  Prefactor     .39198        3.0842        .71977E-06   -.77669E-05
  17  Prefactor     11.824        7.4681        .23121E-06   -.14105E-03
  18  Prefactor     1.3675        53.550        .26527E-05   -.81112E-05
  19  Prefactor     33.239        22.548        .34575E-06   -.36433E-04
  20  Prefactor     .10000E-03    7.5535        .27470E-07** at limit **
  21  Normalizat    1.3805        .37225       -.82244E-05   -.27409E-03
  22  Prefactor     .97253        .14607        .26886E-05   -.70634E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.18939
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 2.79709
  Prefactor  = 24.9667
  Prefactor  = 36.8606
  norm       = 0.523183
  Prefactor  = 43.1625
  Prefactor  = 108.22
  norm       = 19.0775
  norm       = 40.1286
  norm       = 1.20459
  Prefactor  = 0.000100003
  norm       = 0.0001
  Prefactor  = 0.391979
  Prefactor  = 11.8236
  Prefactor  = 1.3675
  Prefactor  = 33.2386
  Prefactor  = 0.0001
  Normalizat = 1.38048
  Prefactor  = 0.972535
 **********
 **   18 **HESSE 
 **********

 FCN=   6634.917     FROM HESSE     STATUS=OK           350 CALLS     2787 TOTAL
                     EDM=   .60E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.1894        4.7233        .33612E-03   -1.5490    
   2  Prefactor     .10000E-03    20.746        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    169.57        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    112.65        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.7971        2.6946        .12064E-03   -1.5373    
   6  Prefactor     24.967        53.411        .80188E-04   -1.4708    
   7  Prefactor     36.861        24.762        .65967E-04   -1.4493    
   8  norm          .52318        37.112        .42625E-02   -1.5563    
   9  Prefactor     43.163        52.397        .30558E-03   -1.4393    
  10  Prefactor     108.22        124.71        .19347E-03   -1.3624    
  11  norm          19.078        16.731        .91706E-04   -1.4834    
  12  norm          40.129        35.473        .63286E-04   -1.4440    
  13  norm          1.2046        1.0556        .76759E-04   -1.5488    
  14  Prefactor     .10000E-03    60.842        .48006E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.9028        .26683E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .39198        17.409        .26448E-02   -1.5583    
  17  Prefactor     11.824        7.4735        .11650E-03   -1.5020    
  18  Prefactor     1.3675        54.634        .37172E-03   -1.5474    
  19  Prefactor     33.239        22.562        .69508E-04   -1.4554    
  20  Prefactor     .10000E-03    7.5680        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.3805        .37711        .39223E-03   -.81195    
  22  Prefactor     .97253        .14617        .17868E-03   -.93651    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.99225e-08
Minuit parameter uncertainties:
  1  4.72478
  2  7.53628e-07
  3  0.00181369
  4  0.000367284
  5  2.69475
  6  53.5139
  7  24.7691
  8  8.81761
  9  52.4525
  10  125.018
  11  16.7348
  12  35.4914
  13  1.05567
  14  0.000918176
  15  1.64368e-05
  16  5.22545
  17  7.47406
  18  17.3036
  19  22.5676
  20  1.98231e-05
  21  0.377867
  22  0.146231
Done.

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

Extracting fit parameters...

4FGL J2039.0-1046
   Spectrum: LogParabola
308         norm:  1.000e-04  1.644e-05  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.725e-01  1.462e-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.380e+00  3.779e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/101748/likelihoodResults_537148801_537408001_4FGL_J2039.0-1046_daily_bin1149.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) = 6634.91854138
delta logL = -0.0016434687268

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6634.91690004
delta logL = -2.12535451283e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10035E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9612       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3805       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97240       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6634.917     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      241 TOTAL
                     EDM=   .75E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.2470        .26706E-03** at limit **
   2  alpha         2.0433        2.6320        .16972       -.25053E-07
   3  Normalizat    1.3805        .35025        .39222E-03    .14551E-04
   4  Prefactor     .97254        .13798        .17868E-03    .31367E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.04333
  Normalizat = 1.38048
  Prefactor  = 0.972536
 **********
 **   18 **HESSE 
 **********

 FCN=   6634.917     FROM HESSE     STATUS=OK            23 CALLS      264 TOTAL
                     EDM=   .54E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.9298        .53411E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.0433        3.2389        .67887E-02   -.18370    
   3  Normalizat    1.3805        .35060        .15689E-04   -.81195    
   4  Prefactor     .97254        .13812        .71474E-05   -.93651    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.43438e-12
Minuit parameter uncertainties:
  1  8.96155e-06
  2  156.16
  3  0.35121
  4  0.138169
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/101748': 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) = 6634.91689776
delta logL = 1.58591319632e-07

Extracting fit parameters...

4FGL J2039.0-1046
   Spectrum: LogParabola
308         norm:  1.000e-04  8.962e-06  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  2.043e+00  1.562e+02  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.725e-01  1.382e-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.380e+00  3.512e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 309.758 -10.773

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/101748/cmap_HighResolution_537148801_537408001_4FGL_J2039.0-1046_daily_bin1149.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.31e-05', job_status='DONE', photon_flux_upper_limit='6.59e-08', time_completed='2021-09-25 15:34:24.207576', job_id='101748', GAL2='0.97', fit_tolerance='1e-08', EG2='1.38', EG='1.38', time_epoch_completed='1632609264.21', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='1.59e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.96' WHERE bin_id='1149' AND source_name='4FGL J2039.0-1046' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 25 15:34:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0086>
Subject: Job 101748: <4FGL_J2039.0-1046_daily_bin1149> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2039.0-1046_daily_bin1149 309.758 -10.7731 537148801 537408001 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 :                                   576.48 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             353.40 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   606 sec.
    Turnaround time :                            831 sec.

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

