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


Performing analysis on: 4FGL_J2039.0-1046_daily_bin1282
RA = 309.758, Dec = -10.7731
tmin = 571622401, tmax = 571881601
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='103039', job_status='RUN', time_executed='2021-09-25 15:29:29.776257', time_epoch_executed='1632608969.78' WHERE source_name='4FGL J2039.0-1046' and cadence='daily' and bin_id='1282'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/103039

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/103039/ft1_4FGL_J2039.0-1046_daily_bin1282.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/103039/ft2_4FGL_J2039.0-1046_daily_bin1282.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/103039/ft1_4FGL_J2039.0-1046_daily_bin1282.fits outfile=/scratch/kocevski/103039/ft1_filteredMKT_4FGL_J2039.0-1046_daily_bin1282.fits ra=309.758 dec=-10.7731 rad=12.0 tmin=571622401.0 tmax=571881601.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.72
user 2.48
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/103039/ft1_filtered_4FGL_J2039.0-1046_daily_bin1282.fits" evtable="EVENTS" scfile=/scratch/kocevski/103039/ft2_4FGL_J2039.0-1046_daily_bin1282.fits sctable="SC_DATA" outfile=/scratch/kocevski/103039/ltcube_571622401_571881601_4FGL_J2039.0-1046_daily_bin1282.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/103039/ft2_4FGL_J2039.0-1046_daily_bin1282.fits
.....................!
real 13.98
user 13.58
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/103039/ft1_filtered_4FGL_J2039.0-1046_daily_bin1282.fits evtable="EVENTS" scfile=/scratch/kocevski/103039/ft2_4FGL_J2039.0-1046_daily_bin1282.fits sctable="SC_DATA" expcube=/scratch/kocevski/103039/ltcube_571622401_571881601_4FGL_J2039.0-1046_daily_bin1282.fits outfile=/scratch/kocevski/103039/expmap_571622401_571881601_4FGL_J2039.0-1046_daily_bin1282.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/103039/ltcube_571622401_571881601_4FGL_J2039.0-1046_daily_bin1282.fits
.....................!
real 193.19
user 188.09
sys 4.64

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

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/103039/ft1_filtered_4FGL_J2039.0-1046_daily_bin1282.fits scfile=/scratch/kocevski/103039/ft2_4FGL_J2039.0-1046_daily_bin1282.fits outfile=/scratch/kocevski/103039/cmap_HighResolution_571622401_571881601_4FGL_J2039.0-1046_daily_bin1282.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.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/103039/ft1_filtered_4FGL_J2039.0-1046_daily_bin1282.fits evtable="EVENTS" scfile=/scratch/kocevski/103039/ft2_4FGL_J2039.0-1046_daily_bin1282.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/103039/Model_4FGL_J2039.0-1046_daily_bin1282.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/103039/ft1_filtered_4FGL_J2039.0-1046_daily_bin1282.fits.....................!
real 36.45
user 35.16
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    40.570       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    20.385       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.1781       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10113E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    15.585       1.0000         .10000E-03   10000.    
     8 'norm      '    18.862       1.0000         .10000E-03   10000.    
     9 'Prefactor '    16.255       1.0000         .10000E-03   10000.    
    10 'Prefactor '    756.80       1.0000         .10000E-03   10000.    
    11 'norm      '    7.6614       1.0000         .10000E-03   10000.    
    12 'norm      '    42.609       1.0000         .10000E-03   10000.    
    13 'norm      '    4.6419       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .45398       1.0000         .10000E-03   10000.    
    15 'norm      '    29.140       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10342E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .48593       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .84859       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=   2506.744     FROM MIGRAD    STATUS=CONVERGED    505 CALLS     2887 TOTAL
                     EDM=   .31E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.1159        .13766E-06** at limit **
   2  Prefactor     40.573        66.435       -.57823E-05    .38239E-05
   3  Prefactor     .10000E-03    20.184        .27372E-07** at limit **
   4  Prefactor     20.363        66.864       -.17854E-04    .97821E-05
   5  Prefactor     5.1784        5.4487       -.17273E-05    .24972E-04
   6  Prefactor     .10000E-03    58.801        .41583E-06** at limit **
   7  Prefactor     15.562        44.483        .22320E-04    .12919E-04
   8  norm          18.863        21.882       -.53286E-05    .59202E-05
   9  Prefactor     16.185        80.155        .46761E-04    .18700E-04
  10  Prefactor     756.78        444.15       -.74604E-05    .11758E-04
  11  norm          7.6457        17.822       -.22425E-05    .11080E-04
  12  norm          42.609        51.423       -.14219E-04    .20605E-04
  13  norm          4.6597        4.3123        .54357E-06    .14895E-02
  14  Prefactor     .13846        105.73       -.52852E-05    .98780E-04
  15  norm          29.138        18.141        .64837E-06    .13359E-03
  16  Prefactor     .10000E-03    19.460        .19084E-06** at limit **
  17  Prefactor     .10000E-03    7.7175        .26431E-07** at limit **
  18  Prefactor     .10000E-03    170.26        .17738E-04** at limit **
  19  Prefactor     .10000E-03    188.48       -.32637E-04** at limit **
  20  Prefactor     .10000E-03    208.82        .14352E-04** at limit **
  21  Normalizat    .48579        .61915       -.57957E-05    .51805E-04
  22  Prefactor     .84880        .18933        .33698E-06    .34861E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 40.5731
  Prefactor  = 0.0001
  Prefactor  = 20.3628
  Prefactor  = 5.17835
  Prefactor  = 0.0001
  Prefactor  = 15.5624
  norm       = 18.8632
  Prefactor  = 16.1845
  Prefactor  = 756.784
  norm       = 7.64569
  norm       = 42.6093
  norm       = 4.6597
  Prefactor  = 0.13846
  norm       = 29.1382
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.485791
  Prefactor  = 0.848799
 **********
 **   18 **HESSE 
 **********

 FCN=   2506.744     FROM HESSE     STATUS=OK           348 CALLS     3235 TOTAL
                     EDM=   .86E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.1234        .71108E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     40.573        66.531        .62932E-04   -1.4433    
   3  Prefactor     .10000E-03    20.196        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     20.363        67.129        .88712E-04   -1.4805    
   5  Prefactor     5.1784        5.4490        .95044E-04   -1.5253    
   6  Prefactor     .10000E-03    58.885        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     15.562        44.444        .10145E-03   -1.4919    
   8  norm          18.863        21.847        .92220E-04   -1.4839    
   9  Prefactor     16.185        81.244        .99340E-04   -1.4903    
  10  Prefactor     756.78        442.93        .75619E-04   -1.0134    
  11  norm          7.6457        17.862        .14488E-03   -1.5155    
  12  norm          42.609        51.417        .61414E-04   -1.4402    
  13  norm          4.6597        4.8188        .69863E-04   -1.5276    
  14  Prefactor     .13846        196.61        .87685E-01   -1.5634    
  15  norm          29.138        18.050        .74219E-04   -1.4628    
  16  Prefactor     .10000E-03    19.562        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    7.7426        .13573E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    171.54        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    188.47        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    208.85        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .48579        .63768        .61893E-03   -1.1308    
  22  Prefactor     .84880        .20730        .15088E-03   -.97954    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.64739e-10
Minuit parameter uncertainties:
  1  1.96445e-05
  2  66.6531
  3  1.87882e-05
  4  67.3798
  5  5.44948
  6  0.000140729
  7  44.5389
  8  21.8558
  9  72.6806
  10  445.032
  11  17.8742
  12  51.4707
  13  4.81923
  14  10.4658
  15  18.0535
  16  5.39419e-05
  17  1.44883e-05
  18  0.000330142
  19  8.56608e-05
  20  4.53994e-05
  21  0.64763
  22  0.207496
Done.

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

Extracting fit parameters...

4FGL J2039.0-1046
   Spectrum: LogParabola
308         norm:  2.914e+01  1.805e+01  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  1.956e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
310         beta:  9.320e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
311           Eb:  1.019e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
595    Prefactor:  8.488e-01  2.075e-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:  4.858e-01  6.476e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.68
Ra Dec: 309.758 -10.773
Photon Index (Fixed Index): 1.96 +/- 0.00
Photon Flux (Fixed Index): 2.25e-07 +/- 1.40e-07
Energy Flux (Fixed Index): 1.47e-04 +/- 9.13e-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) = 2506.12691621
delta logL = 0.617148539669

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2506.12421039
delta logL = 0.61985436325

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    23.125       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5799       1.0000          .0000       5.0000    
     3 'Normalizat'    .31488       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88426       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=   2506.124     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      274 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          23.093        264.36        .20824E-02    .27628E-04
   2  alpha         2.5783        3.6814        .17383        .25613E-04
   3  Normalizat    .31508        .43550        .17173        .30837E-04
   4  Prefactor     .88447        .11863        .33444E-01    .55217E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 23.093
  alpha      = 2.57831
  Normalizat = 0.315082
  Prefactor  = 0.884466
 **********
 **   18 **HESSE 
 **********

 FCN=   2506.124     FROM HESSE     STATUS=OK            33 CALLS      307 TOTAL
                     EDM=   .94E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          23.093        17.804        .83295E-04   -1.4746    
   2  alpha         2.5783        .59786        .73436E-02    .31330E-01
   3  Normalizat    .31508        .63125        .75716E-03   -1.2195    
   4  Prefactor     .88447        .20252        .14779E-03   -.96686    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.44414e-13
Minuit parameter uncertainties:
  1  17.8085
  2  0.603714
  3  0.646376
  4  0.202692
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/103039': 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) = 2506.12419089
delta logL = 0.619873860965

Extracting fit parameters...

4FGL J2039.0-1046
   Spectrum: LogParabola
308         norm:  2.309e+01  1.781e+01  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  2.578e+00  6.037e-01  0.000e+00  5.000e+00 ( 1.000e+00)
310         beta:  9.320e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
311           Eb:  1.019e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
595    Prefactor:  8.845e-01  2.027e-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:  3.151e-01  6.464e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.09
Ra Dec: 309.758 -10.773
Photon Index (Free Index): 2.58 +/- 0.60
Photon Flux (Free Index): 4.34e-07 +/- 2.94e-07
Energy Flux (Free Index): 1.25e-04 +/- 6.86e-05

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/103039/cmap_HighResolution_571622401_571881601_4FGL_J2039.0-1046_daily_bin1282.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.25e-07', energy_flux2='1.25e-04', photon_flux_error='1.40e-07', dlogl='6.20e-01', energy_flux='1.47e-04', photon_flux2='4.34e-07', job_status='DONE', time_completed='2021-09-25 15:36:57.903017', photon_index_error2='0.60', photon_index2='2.58', ts='4.68', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', energy_flux_error2='6.86e-05', EG='0.49', time_epoch_completed='1632609417.9', return_code='0', job_id='103039', GAL2='0.88', EG2='0.32', return_code2='0', energy_flux_error='9.13e-05', photon_flux_error2='2.94e-07', ts2='6.09', photon_index='1.96' WHERE bin_id='1282' AND source_name='4FGL J2039.0-1046' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 25 15:36:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0029>
Subject: Job 103039: <4FGL_J2039.0-1046_daily_bin1282> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2039.0-1046_daily_bin1282 309.758 -10.7731 571622401 571881601 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 :                                   446.47 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             223.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   678 sec.
    Turnaround time :                            699 sec.

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

