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


Performing analysis on: 4FGL_J2039.0-1046_daily_bin1044
RA = 309.758, Dec = -10.7731
tmin = 509932801, tmax = 510192001
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='101593', job_status='RUN', time_executed='2021-09-25 15:23:39.689274', time_epoch_executed='1632608619.69' WHERE source_name='4FGL J2039.0-1046' and cadence='daily' and bin_id='1044'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/101593

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/101593/ft1_4FGL_J2039.0-1046_daily_bin1044.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/101593/ft2_4FGL_J2039.0-1046_daily_bin1044.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/101593/ft1_4FGL_J2039.0-1046_daily_bin1044.fits outfile=/scratch/kocevski/101593/ft1_filteredMKT_4FGL_J2039.0-1046_daily_bin1044.fits ra=309.758 dec=-10.7731 rad=12.0 tmin=509932801.0 tmax=510192001.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.54
user 3.30
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/101593/ft1_filtered_4FGL_J2039.0-1046_daily_bin1044.fits" evtable="EVENTS" scfile=/scratch/kocevski/101593/ft2_4FGL_J2039.0-1046_daily_bin1044.fits sctable="SC_DATA" outfile=/scratch/kocevski/101593/ltcube_509932801_510192001_4FGL_J2039.0-1046_daily_bin1044.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/101593/ft2_4FGL_J2039.0-1046_daily_bin1044.fits
.....................!
real 14.50
user 14.13
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/101593/ft1_filtered_4FGL_J2039.0-1046_daily_bin1044.fits evtable="EVENTS" scfile=/scratch/kocevski/101593/ft2_4FGL_J2039.0-1046_daily_bin1044.fits sctable="SC_DATA" expcube=/scratch/kocevski/101593/ltcube_509932801_510192001_4FGL_J2039.0-1046_daily_bin1044.fits outfile=/scratch/kocevski/101593/expmap_509932801_510192001_4FGL_J2039.0-1046_daily_bin1044.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/101593/ltcube_509932801_510192001_4FGL_J2039.0-1046_daily_bin1044.fits
.....................!
real 193.52
user 187.91
sys 5.17

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

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

This is gtbin version HEAD
real 0.58
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/101593/ft1_filtered_4FGL_J2039.0-1046_daily_bin1044.fits scfile=/scratch/kocevski/101593/ft2_4FGL_J2039.0-1046_daily_bin1044.fits outfile=/scratch/kocevski/101593/cmap_HighResolution_509932801_510192001_4FGL_J2039.0-1046_daily_bin1044.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.57
user 0.41
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.2855       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.4787       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10154E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.0706       1.0000         .10000E-03   10000.    
     6 'Prefactor '    51.281       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10954E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    8.6298       1.0000         .10000E-03   10000.    
     9 'Prefactor '    15.236       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .13854E-01   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .11015E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.0483       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.8935       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10138E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.4441       1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.3487       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0637       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0238       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=   6936.898     FROM MIGRAD    STATUS=CONVERGED    462 CALLS     2400 TOTAL
                     EDM=   .62E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.2856        5.2938        .10477E-06    .75908E-05
   2  Prefactor     .10000E-03    23.026        .34055E-07** at limit **
   3  Prefactor     3.4773        29.451        .12527E-05   -.63922E-06
   4  Prefactor     .10000E-03    30.738        .96496E-07** at limit **
   5  Prefactor     4.0686        2.8443        .17096E-06    .32616E-04
   6  Prefactor     51.294        36.696        .14618E-06    .36908E-05
   7  Prefactor     .10000E-03    51.663        .13695E-05** at limit **
   8  norm          8.6482        14.128       -.45794E-05   -.82729E-05
   9  Prefactor     15.244        48.566        .13092E-05   -.12690E-05
  10  Prefactor     .10001E-03    1960.4       -.39142E-04** at limit **
  11  norm          .10000E-03    5.7590        .20693E-07** at limit **
  12  norm          .10000E-03    13.535       -.49070E-07** at limit **
  13  norm          2.0483        1.2555        .42482E-07    .54937E-05
  14  Prefactor     .10000E-03    8.4310        .62136E-07** at limit **
  15  norm          .10000E-03    .95476        .52032E-08** at limit **
  16  Prefactor     8.8924        6.1378        .93586E-07   -.39273E-05
  17  Prefactor     .10000E-03    2.2948        .33274E-07** at limit **
  18  Prefactor     .10000E-03    21.469        .30109E-06** at limit **
  19  Prefactor     4.4540        59.263       -.21781E-05   -.13216E-04
  20  Prefactor     5.3439        33.042        .31527E-05    .10175E-04
  21  Normalizat    1.0636        .28938        .48570E-06   -.73989E-04
  22  Prefactor     1.0238        .11249       -.14753E-05    .14940E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.28564
  Prefactor  = 0.0001
  Prefactor  = 3.4773
  Prefactor  = 0.0001
  Prefactor  = 4.0686
  Prefactor  = 51.2936
  Prefactor  = 0.000100003
  norm       = 8.64816
  Prefactor  = 15.2441
  Prefactor  = 0.000100005
  norm       = 0.0001
  norm       = 0.0001
  norm       = 2.04828
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 8.89241
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.45403
  Prefactor  = 5.34386
  Normalizat = 1.06363
  Prefactor  = 1.02382
 **********
 **   18 **HESSE 
 **********

 FCN=   6936.898     FROM HESSE     STATUS=OK           344 CALLS     2744 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.2856        5.3007        .16011E-03   -1.5206    
   2  Prefactor     .10000E-03    23.031        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.4773        29.538        .21680E-03   -1.5335    
   4  Prefactor     .10000E-03    30.781        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.0686        2.8319        .11105E-03   -1.5305    
   6  Prefactor     51.294        36.715        .28002E-03   -1.4274    
   7  Prefactor     .10000E-03    52.832        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          8.6482        14.091        .13645E-03   -1.5120    
   9  Prefactor     15.244        48.599        .10261E-03   -1.4927    
  10  Prefactor     .10001E-03    1951.6        .18184E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    5.7634        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    13.547        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.0483        1.2590        .70345E-04   -1.5422    
  14  Prefactor     .10000E-03    8.4545        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    .95620        .79476E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     8.8924        6.1608        .13440E-03   -1.5111    
  17  Prefactor     .10000E-03    2.3087        .12319E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    21.807        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     4.4540        54.447        .19102E-03   -1.5286    
  20  Prefactor     5.3439        30.786        .17377E-03   -1.5246    
  21  Normalizat    1.0636        .34373        .41269E-03   -.90928    
  22  Prefactor     1.0238        .13333        .16618E-03   -.91940    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.44429e-10
Minuit parameter uncertainties:
  1  5.30112
  2  1.8812e-05
  3  20.2826
  4  6.31207e-05
  5  2.832
  6  36.7316
  7  0.000751283
  8  14.0959
  9  48.7256
  10  0.00674894
  11  4.52468e-06
  12  1.39799e-05
  13  1.25902
  14  1.27431e-05
  15  9.73842e-07
  16  6.16129
  17  4.31422e-06
  18  7.15577e-05
  19  31.1804
  20  25.6728
  21  0.344452
  22  0.133371
Done.

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

Extracting fit parameters...

4FGL J2039.0-1046
   Spectrum: LogParabola
308         norm:  1.000e-04  9.738e-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:  1.024e+00  1.334e-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.064e+00  3.445e-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: 4.19e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.74e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/101593/likelihoodResults_509932801_510192001_4FGL_J2039.0-1046_daily_bin1044.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): 102
logL (Free Index) = 6936.89758237
delta logL = -1.64215662153e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6936.89756609
delta logL = -1.40097654366e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9436       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0638       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0238       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=   6936.898     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      234 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.7899        .79655E-03** at limit **
   2  alpha         1.7611        3.5378        .17008       -.95920E-07
   3  Normalizat    1.0636        .31856        .41269E-03    .15950E-04
   4  Prefactor     1.0238        .12724        .16619E-03    .51731E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.76109
  Normalizat = 1.06363
  Prefactor  = 1.02382
 **********
 **   18 **HESSE 
 **********

 FCN=   6936.898     FROM HESSE     STATUS=OK            23 CALLS      257 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .98041        .15931E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.7611        2.6089        .68032E-02   -.30005    
   3  Normalizat    1.0636        .31879        .16507E-04   -.90928    
   4  Prefactor     1.0238        .12733        .33237E-04   -.91940    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.80944e-10
Minuit parameter uncertainties:
  1  2.453e-05
  2  119.834
  3  0.319368
  4  0.127367
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/101593': 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) = 6936.89756466
delta logL = 1.289426109e-06

Extracting fit parameters...

4FGL J2039.0-1046
   Spectrum: LogParabola
308         norm:  1.000e-04  2.453e-05  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  1.761e+00  1.198e+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:  1.024e+00  1.274e-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.064e+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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/101593/cmap_HighResolution_509932801_510192001_4FGL_J2039.0-1046_daily_bin1044.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.74e-05', job_status='DONE', photon_flux_upper_limit='4.19e-08', time_completed='2021-09-25 15:35:29.964333', job_id='101593', GAL2='1.02', fit_tolerance='1e-08', EG2='1.06', EG='1.06', time_epoch_completed='1632609329.96', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='1.29e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.96' WHERE bin_id='1044' AND source_name='4FGL J2039.0-1046' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 25 15:35:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0303>
Subject: Job 101593: <4FGL_J2039.0-1046_daily_bin1044> in cluster <slac> Done

Job <4FGL_J2039.0-1046_daily_bin1044> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep 25 15:20:21 2021
Job was executed on host(s) <bullet0303>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 25 15:21:58 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:21:58 2021
Terminated at Sat Sep 25 15:35:30 2021
Results reported at Sat Sep 25 15:35:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2039.0-1046_daily_bin1044 309.758 -10.7731 509932801 510192001 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 :                                   710.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             326.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   812 sec.
    Turnaround time :                            909 sec.

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

