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


Performing analysis on: 4FGL_J2039.0-1046_daily_bin1403
RA = 309.758, Dec = -10.7731
tmin = 602985601, tmax = 603244801
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='104163', job_status='RUN', time_executed='2021-09-25 15:31:05.243809', time_epoch_executed='1632609065.24' WHERE source_name='4FGL J2039.0-1046' and cadence='daily' and bin_id='1403'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/104163

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/104163/ft1_4FGL_J2039.0-1046_daily_bin1403.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/104163/ft2_4FGL_J2039.0-1046_daily_bin1403.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/104163/ft1_4FGL_J2039.0-1046_daily_bin1403.fits outfile=/scratch/kocevski/104163/ft1_filteredMKT_4FGL_J2039.0-1046_daily_bin1403.fits ra=309.758 dec=-10.7731 rad=12.0 tmin=602985601.0 tmax=603244801.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.04
user 2.82
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/104163/ft1_filtered_4FGL_J2039.0-1046_daily_bin1403.fits" evtable="EVENTS" scfile=/scratch/kocevski/104163/ft2_4FGL_J2039.0-1046_daily_bin1403.fits sctable="SC_DATA" outfile=/scratch/kocevski/104163/ltcube_602985601_603244801_4FGL_J2039.0-1046_daily_bin1403.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/104163/ft2_4FGL_J2039.0-1046_daily_bin1403.fits
.....................!
real 13.20
user 12.85
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/104163/ft1_filtered_4FGL_J2039.0-1046_daily_bin1403.fits evtable="EVENTS" scfile=/scratch/kocevski/104163/ft2_4FGL_J2039.0-1046_daily_bin1403.fits sctable="SC_DATA" expcube=/scratch/kocevski/104163/ltcube_602985601_603244801_4FGL_J2039.0-1046_daily_bin1403.fits outfile=/scratch/kocevski/104163/expmap_602985601_603244801_4FGL_J2039.0-1046_daily_bin1403.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/104163/ltcube_602985601_603244801_4FGL_J2039.0-1046_daily_bin1403.fits
.....................!
real 190.63
user 185.22
sys 4.53

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 182 point sources and 0 extended sources

Setting source of interest to:
4FGL J2039.0-1046 @ 309.758 -10.7731

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/104163/ft1_filtered_4FGL_J2039.0-1046_daily_bin1403.fits scfile=/scratch/kocevski/104163/ft2_4FGL_J2039.0-1046_daily_bin1403.fits outfile=/scratch/kocevski/104163/cmap_602985601_603244801_4FGL_J2039.0-1046_daily_bin1403.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.56
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/104163/ft1_filtered_4FGL_J2039.0-1046_daily_bin1403.fits scfile=/scratch/kocevski/104163/ft2_4FGL_J2039.0-1046_daily_bin1403.fits outfile=/scratch/kocevski/104163/cmap_HighResolution_602985601_603244801_4FGL_J2039.0-1046_daily_bin1403.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.821       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10943E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11548E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10366E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    49.031       1.0000         .10000E-03   10000.    
     8 'norm      '    .42112E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .15898E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    10.827       1.0000         .10000E-03   10000.    
    12 'norm      '    .11432E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.3419       1.0000         .10000E-03   10000.    
    14 'Prefactor '    31.212       1.0000         .10000E-03   10000.    
    15 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .52503E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    27.126       1.0000         .10000E-03   10000.    
    18 'Prefactor '    98.739       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .29372E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .21696       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0863       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=   2314.591     FROM MIGRAD    STATUS=CONVERGED    848 CALLS     3097 TOTAL
                     EDM=   .73E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.831        10.023        .12179E-03    .44152E-04
   2  Prefactor     .10000E-03    32.051        .18142E-02** at limit **
   3  Prefactor     .10000E-03    17.523        .18142E-02** at limit **
   4  Prefactor     .10000E-03    86.922        .18142E-02** at limit **
   5  Prefactor     .10000E-03    1.8829        .64242E-03** at limit **
   6  Prefactor     .10000E-03    39.871        .18142E-02** at limit **
   7  Prefactor     49.046        46.191        .57269E-04    .58562E-05
   8  norm          .10008E-03    56.769        .70141E-01** at limit **
   9  Prefactor     .10000E-03    22.573        .18142E-02** at limit **
  10  Prefactor     .10000E-03    484.06        .18142E-02** at limit **
  11  norm          10.832        24.066        .12176E-03    .20074E-05
  12  norm          .10000E-03    37.330        .18142E-02** at limit **
  13  norm          2.3404        4.2711        .10269E-03    .29725E-04
  14  Prefactor     31.276        49.800        .71719E-04    .82429E-05
  15  norm          .10000E-03    3.8365        .92036E-03** at limit **
  16  Prefactor     .10001E-03    44.298        .73157E-01** at limit **
  17  Prefactor     27.103        25.703        .76918E-04    .51657E-04
  18  Prefactor     98.800        116.62        .20228E-03    .11943E-04
  19  Prefactor     .10000E-03    556.42        .19851E-02** at limit **
  20  Prefactor    10000.0        1910.1        .20360E-02** at limit **
  21  Normalizat    .21628        .99589        .10195E-01    .12675E-03
  22  Prefactor     1.0865        .27397        .14876E-03   -.28354E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.8308
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 49.0464
  norm       = 0.000100081
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.8324
  norm       = 0.0001
  norm       = 2.3404
  Prefactor  = 31.2756
  norm       = 0.0001
  Prefactor  = 0.000100014
  Prefactor  = 27.1034
  Prefactor  = 98.7999
  Prefactor  = 0.0001
  Prefactor  = 10000
  Normalizat = 0.216277
  Prefactor  = 1.08652
 **********
 **   18 **HESSE 
 **********

 FCN=   2314.591     FROM HESSE     STATUS=OK           342 CALLS     3439 TOTAL
                     EDM=   .35E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.831        10.022        .48717E-05   -1.5050    
   2  Prefactor     .10000E-03    32.051        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    17.523        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    86.928        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    1.8830        .12848E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    39.872        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     49.046        46.079        .22907E-05   -1.4306    
   8  norm          .10008E-03    47.551        .78130E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    22.573        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    484.07        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          10.832        24.063        .48704E-05   -1.5050    
  12  norm          .10000E-03    37.331        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.3404        4.2685        .41076E-05   -1.5402    
  14  Prefactor     31.276        49.745        .28688E-05   -1.4589    
  15  norm          .10000E-03    3.8365        .18407E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10001E-03    38.640        .79535E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     27.103        25.652        .30767E-05   -1.4666    
  18  Prefactor     98.800        116.29        .80911E-05   -1.3717    
  19  Prefactor     .10000E-03    556.42        .39702E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor    10000.0        1910.1        .40719E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .21628        .86532        .20390E-02   -1.2824    
  22  Prefactor     1.0865        .25693        .59502E-05   -.89898    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.5305e-11
Minuit parameter uncertainties:
  1  10.0231
  2  1.29449e-05
  3  1.82492e-05
  4  0.000295488
  5  3.23553e-06
  6  9.57342e-05
  7  46.1121
  8  0.00393278
  9  5.19234e-06
  10  0.000245421
  11  24.0846
  12  4.26445e-06
  13  4.26902
  14  49.8114
  15  9.44872e-07
  16  0.00149208
  17  25.6627
  18  116.558
  19  7.17063e-05
  20  0.00195868
  21  0.867438
  22  0.257224
Done.

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

Extracting fit parameters...

4FGL J2039.0-1046
   Spectrum: LogParabola
308         norm:  1.000e-04  9.449e-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.087e+00  2.572e-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:  2.163e-01  8.674e-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: 1.75e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.14e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/104163/likelihoodResults_602985601_603244801_4FGL_J2039.0-1046_daily_bin1403.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) = 2314.5922233
delta logL = -0.00102296498062

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2314.59120039
delta logL = -4.76734385302e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9511       1.0000          .0000       5.0000    
     3 'Normalizat'    .21635       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0865       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=   2314.591     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      242 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    8.1051        .92152E-03** at limit **
   2  alpha         1.7402        3.1874        .16992       -.28501E-07
   3  Normalizat    .21628        .82986        .10198E-01    .11067E-04
   4  Prefactor     1.0865        .26130        .14875E-03    .43028E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.74021
  Normalizat = 0.216276
  Prefactor  = 1.08652
 **********
 **   18 **HESSE 
 **********

 FCN=   2314.591     FROM HESSE     STATUS=OK            25 CALLS      267 TOTAL
                     EDM=   .68E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.9386        .18430E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.7402        3.1692        .67969E-02   -.30880    
   3  Normalizat    .21628        .75083        .40792E-03   -1.2824    
   4  Prefactor     1.0865        .24352        .59501E-05   -.89898    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.8115e-11
Minuit parameter uncertainties:
  1  5.92352e-05
  2  258.779
  3  0.791085
  4  0.243771
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/104163': 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) = 2314.5912
delta logL = 3.37518940796e-07

Extracting fit parameters...

4FGL J2039.0-1046
   Spectrum: LogParabola
308         norm:  1.000e-04  5.924e-05  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  1.740e+00  2.588e+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.087e+00  2.438e-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:  2.163e-01  7.911e-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/104163/cmap_HighResolution_602985601_603244801_4FGL_J2039.0-1046_daily_bin1403.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.14e-04', job_status='DONE', photon_flux_upper_limit='1.75e-07', time_completed='2021-09-25 15:38:59.687531', job_id='104163', GAL2='1.09', fit_tolerance='1e-08', EG2='0.22', EG='0.22', time_epoch_completed='1632609539.69', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.09', dlogl='3.38e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.96' WHERE bin_id='1403' AND source_name='4FGL J2039.0-1046' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 25 15:38:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0144>
Subject: Job 104163: <4FGL_J2039.0-1046_daily_bin1403> in cluster <slac> Done

Job <4FGL_J2039.0-1046_daily_bin1403> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Sep 25 15:30:16 2021
Job was executed on host(s) <bullet0144>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 25 15:30:20 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:30:20 2021
Terminated at Sat Sep 25 15:39:00 2021
Results reported at Sat Sep 25 15:39:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2039.0-1046_daily_bin1403 309.758 -10.7731 602985601 603244801 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 :                                   472.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             304.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   519 sec.
    Turnaround time :                            524 sec.

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

