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


Performing analysis on: 4FGL_J2039.0-1046_daily_bin1565
RA = 309.758, Dec = -10.7731
tmin = 644976001, tmax = 645235201
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='105573', job_status='RUN', time_executed='2021-09-25 15:37:18.970679', time_epoch_executed='1632609438.97' WHERE source_name='4FGL J2039.0-1046' and cadence='daily' and bin_id='1565'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/105573

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/105573/ft1_4FGL_J2039.0-1046_daily_bin1565.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/105573/ft2_4FGL_J2039.0-1046_daily_bin1565.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/105573/ft1_4FGL_J2039.0-1046_daily_bin1565.fits outfile=/scratch/kocevski/105573/ft1_filteredMKT_4FGL_J2039.0-1046_daily_bin1565.fits ra=309.758 dec=-10.7731 rad=12.0 tmin=644976001.0 tmax=645235201.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.01
user 2.79
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/105573/ft1_filtered_4FGL_J2039.0-1046_daily_bin1565.fits" evtable="EVENTS" scfile=/scratch/kocevski/105573/ft2_4FGL_J2039.0-1046_daily_bin1565.fits sctable="SC_DATA" outfile=/scratch/kocevski/105573/ltcube_644976001_645235201_4FGL_J2039.0-1046_daily_bin1565.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/105573/ft2_4FGL_J2039.0-1046_daily_bin1565.fits
.....................!
real 13.71
user 13.28
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/105573/ft1_filtered_4FGL_J2039.0-1046_daily_bin1565.fits evtable="EVENTS" scfile=/scratch/kocevski/105573/ft2_4FGL_J2039.0-1046_daily_bin1565.fits sctable="SC_DATA" expcube=/scratch/kocevski/105573/ltcube_644976001_645235201_4FGL_J2039.0-1046_daily_bin1565.fits outfile=/scratch/kocevski/105573/expmap_644976001_645235201_4FGL_J2039.0-1046_daily_bin1565.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/105573/ltcube_644976001_645235201_4FGL_J2039.0-1046_daily_bin1565.fits
.....................!
real 194.54
user 188.73
sys 5.43

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/105573/ft1_filtered_4FGL_J2039.0-1046_daily_bin1565.fits scfile=/scratch/kocevski/105573/ft2_4FGL_J2039.0-1046_daily_bin1565.fits outfile=/scratch/kocevski/105573/cmap_644976001_645235201_4FGL_J2039.0-1046_daily_bin1565.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/105573/ft1_filtered_4FGL_J2039.0-1046_daily_bin1565.fits scfile=/scratch/kocevski/105573/ft2_4FGL_J2039.0-1046_daily_bin1565.fits outfile=/scratch/kocevski/105573/cmap_HighResolution_644976001_645235201_4FGL_J2039.0-1046_daily_bin1565.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.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/105573/ft1_filtered_4FGL_J2039.0-1046_daily_bin1565.fits evtable="EVENTS" scfile=/scratch/kocevski/105573/ft2_4FGL_J2039.0-1046_daily_bin1565.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/105573/Model_4FGL_J2039.0-1046_daily_bin1565.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/105573/ft1_filtered_4FGL_J2039.0-1046_daily_bin1565.fits.....................!
real 64.17
user 62.76
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10129E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .88097       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.7307       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .86660E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.1303       1.0000         .10000E-03   10000.    
     8 'norm      '    13.305       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    27.319       1.0000         .10000E-03   10000.    
    12 'norm      '    .10061E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .18078       1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .12149E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.3584       1.0000         .10000E-03   10000.    
    18 'Prefactor '    15.041       1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.5491       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .14299E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2889       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .98507       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=   6469.214     FROM MIGRAD    STATUS=CONVERGED    568 CALLS     2481 TOTAL
                     EDM=   .35E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.0201        .98606E-07** at limit **
   2  Prefactor     .10000E-03    26.429       -.14144E-06** at limit **
   3  Prefactor     .41726E-03    71.965       -.31292E-05** at limit **
   4  Prefactor     .10000E-03    63.295        .65582E-06** at limit **
   5  Prefactor     1.7311        2.9006        .12561E-05    .19777E-03
   6  Prefactor     .10001E-03    740.99       -.44573E-04** at limit **
   7  Prefactor     9.1193        23.538       -.43794E-06    .23342E-04
   8  norm          13.300        13.686        .19155E-07    .20359E-04
   9  Prefactor     .10000E-03    26.330        .94643E-08** at limit **
  10  Prefactor     .10000E-03    108.04       -.91673E-06** at limit **
  11  norm          27.310        25.706        .75833E-06    .74339E-04
  12  norm          .10000E-03    46.047        .93982E-07** at limit **
  13  norm          .10000E-03    .77924       -.29726E-07** at limit **
  14  Prefactor     .88048E-01    10.848       -.97790E-06    .18291E-03
  15  norm          .10000E-03    2.5567       -.74152E-08** at limit **
  16  Prefactor     .10000E-03    2.5384        .88098E-07** at limit **
  17  Prefactor     2.3580        3.3668        .50413E-07    .15326E-04
  18  Prefactor     15.040        15.544        .12610E-07    .98073E-05
  19  Prefactor     9.5398        20.143        .38319E-06    .88771E-05
  20  Prefactor     .10000E-03    12.530        .36680E-07** at limit **
  21  Normalizat    1.2885        .27918       -.19002E-06    .12274E-03
  22  Prefactor     .98537        .11353       -.29843E-07    .34964E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000417264
  Prefactor  = 0.0001
  Prefactor  = 1.73111
  Prefactor  = 0.00010001
  Prefactor  = 9.11932
  norm       = 13.2999
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 27.3104
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0880484
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.35802
  Prefactor  = 15.0402
  Prefactor  = 9.53978
  Prefactor  = 0.0001
  Normalizat = 1.28849
  Prefactor  = 0.985366
 **********
 **   18 **HESSE 
 **********

 FCN=   6469.214     FROM HESSE     STATUS=OK           358 CALLS     2839 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.0769        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    26.433        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .41726E-03    67.067        .16956       -1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    63.447        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.7311        2.9101        .80652E-03   -1.5445    
   6  Prefactor     .10001E-03    741.53        .36674E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     9.1193        23.548        .13264E-03   -1.5104    
   8  norm          13.300        13.665        .10981E-03   -1.4978    
   9  Prefactor     .10000E-03    26.350        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    108.08        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          27.310        25.753        .76647E-04   -1.4662    
  12  norm          .10000E-03    46.216        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .79804        .13817E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .88048E-01    13.212        .81629E-01   -1.5649    
  15  norm          .10000E-03    2.5880        .12556E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    5.0782        .24708E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.3580        3.3497        .17092E-03   -1.5401    
  18  Prefactor     15.040        15.594        .10327E-03   -1.4932    
  19  Prefactor     9.5398        19.501        .12968E-03   -1.5090    
  20  Prefactor     .10000E-03    55.962        .52187E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.2885        .33419        .36668E-03   -.83911    
  22  Prefactor     .98537        .13856        .17137E-03   -.93219    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.06747e-09
Minuit parameter uncertainties:
  1  1.06046e-05
  2  9.94205e-06
  3  0.292066
  4  4.56625e-05
  5  2.91034
  6  0.00564583
  7  23.5716
  8  13.6682
  9  2.8158e-06
  10  9.49618e-05
  11  25.763
  12  3.6609e-06
  13  5.79213e-07
  14  2.15637
  15  7.22586e-07
  16  7.74312e-06
  17  3.34998
  18  15.5982
  19  19.514
  20  0.000250089
  21  0.334749
  22  0.138612
Done.

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

Extracting fit parameters...

4FGL J2039.0-1046
   Spectrum: LogParabola
308         norm:  1.000e-04  7.226e-07  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.854e-01  1.386e-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.288e+00  3.347e-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: 7.39e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.83e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/105573/likelihoodResults_644976001_645235201_4FGL_J2039.0-1046_daily_bin1565.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) = 6469.21630057
delta logL = -0.00184171082128

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6469.21444939
delta logL = 9.46586169448e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .17753E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.0927       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2885       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98536       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6469.214     FROM MIGRAD    STATUS=FAILED       100 CALLS      296 TOTAL
                     EDM=   .11E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10064E-03    258.02        .12287E-02** at limit **
   2  alpha         3.2617        2.5735        .50000       -.90795E-06
   3  Normalizat    1.2885        .36985E-01    .36668E-03    .30424E-03
   4  Prefactor     .98537        .15455E-01    .17137E-03    .41146E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6469.214     FROM SIMPLEX   STATUS=UNCHANGED    147 CALLS      443 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10064E-03    258.02        .54209E-03** at limit **
   2  alpha         3.2617        2.5735        .49036E-04   -.90795E-06
   3  Normalizat    1.2885        .36985E-01    .14395E-05    .30424E-03
   4  Prefactor     .98537        .15455E-01    .63697E-06    .41146E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6469.214     FROM MIGRAD    STATUS=CONVERGED     41 CALLS      484 TOTAL
                     EDM=   .34E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 11.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    10.281       -.20857E-05** at limit **
   2  alpha         3.2717        3.2227        .33452E-02    .26106E-07
   3  Normalizat    1.2885        .31921        .49417E-06   -.13377E-03
   4  Prefactor     .98537        .13348       -.12766E-06   -.17670E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 3.27169
  Normalizat = 1.28848
  Prefactor  = 0.985366
 **********
 **   18 **HESSE 
 **********

 FCN=   6469.214     FROM HESSE     STATUS=OK            29 CALLS      513 TOTAL
                     EDM=   .99E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    10.296        .98300E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         3.2717        3.3449        .50000        .31380    
   3  Normalizat    1.2885        .31889        .14667E-04   -.83911    
   4  Prefactor     .98537        .13345        .68549E-05   -.93219    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.93745e-11
Minuit parameter uncertainties:
  1  2.54916e-05
  2  116.12
  3  0.319372
  4  0.133494
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/105573': 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) = 6469.2144445
delta logL = 1.43596716953e-05

Extracting fit parameters...

4FGL J2039.0-1046
   Spectrum: LogParabola
308         norm:  1.000e-04  2.549e-05  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  3.272e+00  1.161e+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.854e-01  1.335e-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.288e+00  3.194e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/105573/cmap_HighResolution_644976001_645235201_4FGL_J2039.0-1046_daily_bin1565.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.83e-05', job_status='DONE', photon_flux_upper_limit='7.39e-08', time_completed='2021-09-25 15:49:11.962516', job_id='105573', GAL2='0.99', fit_tolerance='1e-08', EG2='1.29', EG='1.29', time_epoch_completed='1632610151.96', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='1.44e-05', ts2='-0.00', photon_index_error='0.00', photon_index='1.96' WHERE bin_id='1565' AND source_name='4FGL J2039.0-1046' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 25 15:49:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0298>
Subject: Job 105573: <4FGL_J2039.0-1046_daily_bin1565> in cluster <slac> Done

Job <4FGL_J2039.0-1046_daily_bin1565> 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) <bullet0298>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 25 15:35:45 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:45 2021
Terminated at Sat Sep 25 15:49:12 2021
Results reported at Sat Sep 25 15:49:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2039.0-1046_daily_bin1565 309.758 -10.7731 644976001 645235201 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 :                                   711.08 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             320.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   807 sec.
    Turnaround time :                            824 sec.

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

