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


Performing analysis on: 4FGL_J2039.0-1046_daily_bin1647
RA = 309.758, Dec = -10.7731
tmin = 666230401, tmax = 666489601
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='833429', job_status='RUN', time_executed='2022-02-14 00:35:49.161268', time_epoch_executed='1644827749.16' WHERE source_name='4FGL J2039.0-1046' and cadence='daily' and bin_id='1647'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/833429

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/833429/ft1_4FGL_J2039.0-1046_daily_bin1647.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/833429/ft2_4FGL_J2039.0-1046_daily_bin1647.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/833429/ft1_4FGL_J2039.0-1046_daily_bin1647.fits outfile=/scratch/kocevski/833429/ft1_filteredMKT_4FGL_J2039.0-1046_daily_bin1647.fits ra=309.758 dec=-10.7731 rad=12.0 tmin=666230401.0 tmax=666489601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.30
user 4.04
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/833429/ft1_filtered_4FGL_J2039.0-1046_daily_bin1647.fits" evtable="EVENTS" scfile=/scratch/kocevski/833429/ft2_4FGL_J2039.0-1046_daily_bin1647.fits sctable="SC_DATA" outfile=/scratch/kocevski/833429/ltcube_666230401_666489601_4FGL_J2039.0-1046_daily_bin1647.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/833429/ft2_4FGL_J2039.0-1046_daily_bin1647.fits
.....................!
real 12.16
user 11.80
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/833429/ft1_filtered_4FGL_J2039.0-1046_daily_bin1647.fits evtable="EVENTS" scfile=/scratch/kocevski/833429/ft2_4FGL_J2039.0-1046_daily_bin1647.fits sctable="SC_DATA" expcube=/scratch/kocevski/833429/ltcube_666230401_666489601_4FGL_J2039.0-1046_daily_bin1647.fits outfile=/scratch/kocevski/833429/expmap_666230401_666489601_4FGL_J2039.0-1046_daily_bin1647.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/833429/ltcube_666230401_666489601_4FGL_J2039.0-1046_daily_bin1647.fits
.....................!
real 191.09
user 185.47
sys 5.02

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/833429/ft1_filtered_4FGL_J2039.0-1046_daily_bin1647.fits scfile=/scratch/kocevski/833429/ft2_4FGL_J2039.0-1046_daily_bin1647.fits outfile=/scratch/kocevski/833429/cmap_666230401_666489601_4FGL_J2039.0-1046_daily_bin1647.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.14

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

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

This is gtbin version HEAD
real 0.55
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/833429/ft1_filtered_4FGL_J2039.0-1046_daily_bin1647.fits evtable="EVENTS" scfile=/scratch/kocevski/833429/ft2_4FGL_J2039.0-1046_daily_bin1647.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/833429/Model_4FGL_J2039.0-1046_daily_bin1647.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/833429/ft1_filtered_4FGL_J2039.0-1046_daily_bin1647.fits.....................!
real 69.88
user 68.53
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10236E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10187E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    118.07       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10866E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    28.725       1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.984       1.0000         .10000E-03   10000.    
     8 'norm      '    17.606       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .12037E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.4293       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    4.1420       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .14208E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.4761       1.0000         .10000E-03   10000.    
    18 'Prefactor '    48.624       1.0000         .10000E-03   10000.    
    19 'Prefactor '    46.460       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0039       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .94026       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=   7119.926     FROM MIGRAD    STATUS=CONVERGED    483 CALLS     2393 TOTAL
                     EDM=   .55E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.5654       -.21596E-06** at limit **
   2  Prefactor     .10000E-03    32.354        .18488E-06** at limit **
   3  Prefactor     .10000E-03    10.292        .17887E-07** at limit **
   4  Prefactor     118.06        54.861        .35041E-07    .20230E-05
   5  Prefactor     .10000E-03    2.0174       -.18728E-06** at limit **
   6  Prefactor     28.719        28.353        .89902E-07    .79442E-05
   7  Prefactor     13.003        16.556       -.44384E-07    .10802E-04
   8  norm          17.611        13.037       -.33799E-07    .17202E-04
   9  Prefactor     .10000E-03    18.210       -.11955E-06** at limit **
  10  Prefactor     .10000E-03    61.833        .45884E-06** at limit **
  11  norm          .10001E-03    43.108        .79459E-06** at limit **
  12  norm          .10000E-03    9.5632       -.29695E-06** at limit **
  13  norm          1.4288        1.2991        .13509E-06    .86393E-03
  14  Prefactor     .10000E-03    3.8879       -.45588E-07** at limit **
  15  norm          4.1421        3.4779        .26413E-07    .95188E-04
  16  Prefactor     .10000E-03    4.0242        .11684E-05** at limit **
  17  Prefactor     2.4795        6.7634        .51926E-05   -.23195E-03
  18  Prefactor     48.626        27.192       -.25259E-06    .68442E-04
  19  Prefactor     46.478        30.465       -.30460E-06    .17219E-04
  20  Prefactor     .10000E-03    9.0240        .10193E-05** at limit **
  21  Normalizat    1.0031        .29210       -.41936E-05    .24921E-03
  22  Prefactor     .94053        .10187        .16116E-05    .11345E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 118.064
  Prefactor  = 0.0001
  Prefactor  = 28.7188
  Prefactor  = 13.0032
  norm       = 17.6107
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100006
  norm       = 0.0001
  norm       = 1.42876
  Prefactor  = 0.0001
  norm       = 4.1421
  Prefactor  = 0.0001
  Prefactor  = 2.47955
  Prefactor  = 48.6262
  Prefactor  = 46.4778
  Prefactor  = 0.000100001
  Normalizat = 1.00313
  Prefactor  = 0.940535
 **********
 **   18 **HESSE 
 **********

 FCN=   7119.926     FROM HESSE     STATUS=OK           340 CALLS     2733 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.5806        .10324E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    32.363        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    10.293        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     118.06        54.920        .37032E-04   -1.3531    
   5  Prefactor     .10000E-03    2.1034        .23341E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     28.719        28.373        .74752E-04   -1.4636    
   7  Prefactor     13.003        16.513        .11116E-03   -1.4987    
   8  norm          17.611        13.037        .95454E-04   -1.4868    
   9  Prefactor     .10000E-03    18.228        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    61.834        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10001E-03    44.430        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    9.5706        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.4288        1.2797        .87679E-04   -1.5469    
  14  Prefactor     .10000E-03    3.8904        .16248E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.1421        3.4801        .14005E-03   -1.5301    
  16  Prefactor     .10000E-03    14.790        .31397E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.4795        6.9080        .12991E-02   -1.5393    
  18  Prefactor     48.626        27.281        .57507E-04   -1.4312    
  19  Prefactor     46.478        30.588        .58824E-04   -1.4343    
  20  Prefactor     .10000E-03    9.1384        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.0031        .32912        .42862E-03   -.92926    
  22  Prefactor     .94053        .12081        .16663E-03   -.94739    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.26877e-09
Minuit parameter uncertainties:
  1  2.00067e-05
  2  0.000177839
  3  5.37809e-05
  4  54.9435
  5  2.06673e-05
  6  28.3858
  7  16.5193
  8  13.0396
  9  2.6839e-05
  10  0.000203973
  11  0.0010039
  12  1.40427e-05
  13  1.27974
  14  8.42214e-06
  15  3.4803
  16  5.35212e-05
  17  6.91026
  18  27.2883
  19  30.598
  20  0.000189222
  21  0.329784
  22  0.120849
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
595    Prefactor:  9.405e-01  1.208e-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.003e+00  3.298e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.97
Ra Dec: 309.758 -10.773
Photon Index (Fixed Index): 1.96 +/- 0.00
Photon Flux (Fixed Index): 3.20e-08 +/- 2.69e-08
Energy Flux (Fixed Index): 2.09e-05 +/- 1.76e-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) = 7119.48706149
delta logL = 0.439259415633

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7119.46820833
delta logL = 0.458112573063

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.4101       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.3595       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0156       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93949       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=   7119.468     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      210 TOTAL
                     EDM=   .46E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.4094        3.0211        .54768E-02   -.11425E-03
   2  alpha         1.3591        .45772        .43137       -.29768E-04
   3  Normalizat    1.0156        .26546        .96230E-01    .22012E-04
   4  Prefactor     .93950        .10085        .45506E-01   -.59269E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 3.40935
  alpha      = 1.35908
  Normalizat = 1.01556
  Prefactor  = 0.939495
 **********
 **   18 **HESSE 
 **********

 FCN=   7119.468     FROM HESSE     STATUS=OK            33 CALLS      243 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.4094        3.5895        .13440E-03   -1.5339    
   2  alpha         1.3591        .60481        .17022E-01   -.47391    
   3  Normalizat    1.0156        .30984        .42630E-03   -.92511    
   4  Prefactor     .93950        .11817        .16672E-03   -.94774    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.07596e-09
Minuit parameter uncertainties:
  1  3.58974
  2  0.61252
  3  0.310396
  4  0.118203
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/833429': 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) = 7119.46820799
delta logL = 0.458112916139

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
595    Prefactor:  9.395e-01  1.182e-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.016e+00  3.104e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.88
Ra Dec: 309.758 -10.773
Photon Index (Free Index): 1.36 +/- 0.61
Photon Flux (Free Index): 1.61e-08 +/- 1.90e-08
Energy Flux (Free Index): 4.22e-05 +/- 5.17e-05

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/833429/cmap_HighResolution_666230401_666489601_4FGL_J2039.0-1046_daily_bin1647.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.20e-08', energy_flux2='4.22e-05', photon_flux_error='2.69e-08', dlogl='4.58e-01', energy_flux='2.09e-05', photon_flux2='1.61e-08', job_status='DONE', time_completed='2022-02-14 00:46:19.481662', photon_index_error2='0.61', photon_index2='1.36', ts='7.97', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', energy_flux_error2='5.17e-05', EG='1.00', time_epoch_completed='1644828379.48', return_code='0', job_id='833429', GAL2='0.94', EG2='1.02', return_code2='0', energy_flux_error='1.76e-05', photon_flux_error2='1.90e-08', ts2='8.88', photon_index='1.96' WHERE bin_id='1647' AND source_name='4FGL J2039.0-1046' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Feb 14 00:46:19 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0281>
Subject: Job 833429: <4FGL_J2039.0-1046_daily_bin1647> in cluster <slac> Done

Job <4FGL_J2039.0-1046_daily_bin1647> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Feb 14 00:35:29 2022
Job was executed on host(s) <bullet0281>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Feb 14 00:35:31 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Feb 14 00:35:31 2022
Terminated at Mon Feb 14 00:46:20 2022
Results reported at Mon Feb 14 00:46:20 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2039.0-1046_daily_bin1647 309.758 -10.7731 666230401 666489601 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 :                                   632.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             291.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   648 sec.
    Turnaround time :                            651 sec.

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

