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


Performing analysis on: 4FGL_J2039.0-1046_daily_bin1660
RA = 309.758, Dec = -10.7731
tmin = 669600001, tmax = 669859201
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='993129', job_status='RUN', time_executed='2022-03-25 00:38:00.553114', time_epoch_executed='1648193880.55' WHERE source_name='4FGL J2039.0-1046' and cadence='daily' and bin_id='1660'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/993129

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/993129/ft1_4FGL_J2039.0-1046_daily_bin1660.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/993129/ft2_4FGL_J2039.0-1046_daily_bin1660.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/993129/ft1_4FGL_J2039.0-1046_daily_bin1660.fits outfile=/scratch/kocevski/993129/ft1_filteredMKT_4FGL_J2039.0-1046_daily_bin1660.fits ra=309.758 dec=-10.7731 rad=12.0 tmin=669600001.0 tmax=669859201.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.61
user 4.34
sys 0.22

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

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

Number of photons that the gtmktime cut: 692

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/993129/ft1_filtered_4FGL_J2039.0-1046_daily_bin1660.fits" evtable="EVENTS" scfile=/scratch/kocevski/993129/ft2_4FGL_J2039.0-1046_daily_bin1660.fits sctable="SC_DATA" outfile=/scratch/kocevski/993129/ltcube_669600001_669859201_4FGL_J2039.0-1046_daily_bin1660.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/993129/ft2_4FGL_J2039.0-1046_daily_bin1660.fits
.....................!
real 12.13
user 11.78
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/993129/ft1_filtered_4FGL_J2039.0-1046_daily_bin1660.fits evtable="EVENTS" scfile=/scratch/kocevski/993129/ft2_4FGL_J2039.0-1046_daily_bin1660.fits sctable="SC_DATA" expcube=/scratch/kocevski/993129/ltcube_669600001_669859201_4FGL_J2039.0-1046_daily_bin1660.fits outfile=/scratch/kocevski/993129/expmap_669600001_669859201_4FGL_J2039.0-1046_daily_bin1660.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/993129/ltcube_669600001_669859201_4FGL_J2039.0-1046_daily_bin1660.fits
.....................!
real 191.80
user 185.68
sys 5.63

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/993129/ft1_filtered_4FGL_J2039.0-1046_daily_bin1660.fits scfile=/scratch/kocevski/993129/ft2_4FGL_J2039.0-1046_daily_bin1660.fits outfile=/scratch/kocevski/993129/cmap_669600001_669859201_4FGL_J2039.0-1046_daily_bin1660.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/993129/ft1_filtered_4FGL_J2039.0-1046_daily_bin1660.fits scfile=/scratch/kocevski/993129/ft2_4FGL_J2039.0-1046_daily_bin1660.fits outfile=/scratch/kocevski/993129/cmap_HighResolution_669600001_669859201_4FGL_J2039.0-1046_daily_bin1660.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/993129/ft1_filtered_4FGL_J2039.0-1046_daily_bin1660.fits evtable="EVENTS" scfile=/scratch/kocevski/993129/ft2_4FGL_J2039.0-1046_daily_bin1660.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/993129/Model_4FGL_J2039.0-1046_daily_bin1660.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/993129/ft1_filtered_4FGL_J2039.0-1046_daily_bin1660.fits.....................!
real 70.62
user 69.20
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .26368E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.534       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.8612       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .16965E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.5869       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.3587       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.0665       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .28788E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.5254       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0823       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0844       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=   7516.895     FROM MIGRAD    STATUS=CONVERGED    517 CALLS     2378 TOTAL
                     EDM=   .64E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.9467       -.36984E-07** at limit **
   2  Prefactor     .10019E-03    228.42       -.32042E-05** at limit **
   3  Prefactor     10.512        22.128       -.26996E-05   -.18857E-03
   4  Prefactor     .10000E-03    19.969        .21299E-06** at limit **
   5  Prefactor     3.8601        2.2624       -.12368E-06    .55903E-03
   6  Prefactor     .10004E-03    312.49        .82524E-05** at limit **
   7  Prefactor     .10000E-03    9.4877        .80177E-08** at limit **
   8  norm          1.5861        11.237        .15668E-04    .11137E-04
   9  Prefactor     .10000E-03    15.165       -.17702E-06** at limit **
  10  Prefactor     .10000E-03    43.554        .12120E-05** at limit **
  11  norm          .10000E-03    9.9497       -.95218E-07** at limit **
  12  norm          .10000E-03    36.571       -.93258E-06** at limit **
  13  norm          .10000E-03    .43693        .32940E-08** at limit **
  14  Prefactor     .10000E-03    5.5814       -.20040E-07** at limit **
  15  norm          1.3595        3.2523        .32598E-06    .11050E-04
  16  Prefactor     3.0670        3.1143       -.17071E-07    .10488E-05
  17  Prefactor     .10000E-03    2.8452        .51479E-06** at limit **
  18  Prefactor     .10000E-03    6.7755       -.45282E-07** at limit **
  19  Prefactor     3.5316        31.482        .80656E-06   -.21348E-04
  20  Prefactor     .10000E-03    12.478       -.19805E-06** at limit **
  21  Normalizat    1.0823        .26330        .65935E-06   -.27055E-04
  22  Prefactor     1.0842        .10390       -.92496E-06   -.97579E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100186
  Prefactor  = 10.5123
  Prefactor  = 0.0001
  Prefactor  = 3.86008
  Prefactor  = 0.00010004
  Prefactor  = 0.0001
  norm       = 1.58611
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.3595
  Prefactor  = 3.06696
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 3.53159
  Prefactor  = 0.0001
  Normalizat = 1.08229
  Prefactor  = 1.08425
 **********
 **   18 **HESSE 
 **********

 FCN=   7516.895     FROM HESSE     STATUS=OK           338 CALLS     2716 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.0736        .33619E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10019E-03    234.01        .39928E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     10.512        22.373        .12345E-03   -1.5059    
   4  Prefactor     .10000E-03    20.001        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.8601        2.2625        .96433E-04   -1.5315    
   6  Prefactor     .10004E-03    321.69        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    9.5197        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.5861        11.255        .16848E-02   -1.5456    
   9  Prefactor     .10000E-03    15.174        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    43.586        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    9.9687        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    36.794        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .63682        .11109E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    5.5968        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.3595        3.2159        .23337E-03   -1.5475    
  16  Prefactor     3.0670        3.1180        .14911E-03   -1.5358    
  17  Prefactor     .10000E-03    19.753        .27824E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    6.7932        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.5316        31.512        .21530E-03   -1.5332    
  20  Prefactor     .10000E-03    12.534        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.0823        .30453        .40245E-03   -.90323    
  22  Prefactor     1.0842        .12193        .16116E-03   -.89972    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.21034e-09
Minuit parameter uncertainties:
  1  3.07327e-06
  2  0.0132391
  3  22.3906
  4  3.72831e-05
  5  2.26251
  6  0.00724626
  7  2.89957e-05
  8  8.45226
  9  2.40034e-05
  10  0.000360543
  11  4.01141e-06
  12  0.000288035
  13  1.03006e-06
  14  2.59316e-06
  15  3.21631
  16  3.11814
  17  0.000243174
  18  7.47994e-06
  19  21.1132
  20  7.89399e-05
  21  0.305026
  22  0.121958
Done.

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

Extracting fit parameters...

4FGL J2039.0-1046
   Spectrum: LogParabola
308         norm:  1.360e+00  3.216e+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:  1.084e+00  1.220e-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.082e+00  3.050e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.22
Ra Dec: 309.758 -10.773
Photon Flux Upper Limit: 8.03e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.25e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/993129/likelihoodResults_669600001_669859201_4FGL_J2039.0-1046_daily_bin1660.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) = 7515.77837376
delta logL = 1.11637731592

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7515.76815654
delta logL = 1.12659453426

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.0591       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.4093       1.0000          .0000       5.0000    
     3 'Normalizat'    .99342       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1022       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=   7515.768     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      216 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0578        12.439        .11920E-01    .79993E-03
   2  alpha         3.4101        4.0079        .33816        .71559E-04
   3  Normalizat    .99326        .66774E-01    .94300E-01    .24434E-04
   4  Prefactor     1.1022        .26648E-01    .37505E-01   -.18637E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.05777
  alpha      = 3.41011
  Normalizat = 0.993259
  Prefactor  = 1.1022
 **********
 **   18 **HESSE 
 **********

 FCN=   7515.768     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      251 TOTAL
                     EDM=   .15E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0578        30.399        .66005E-03   -1.5502    
   2  alpha         3.4101        3.9538        .12849E-01    .37261    
   3  Normalizat    .99326        .31339        .41769E-03   -.93257    
   4  Prefactor     1.1022        .12562        .15987E-03   -.89396    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.50508e-07
Minuit parameter uncertainties:
  1  11.3469
  2  6.0274
  3  0.313969
  4  0.125652
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/993129': 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): 102
logL (Free Index) = 7515.76815606
delta logL = 1.12659500967

Extracting fit parameters...

4FGL J2039.0-1046
   Spectrum: LogParabola
308         norm:  1.058e+00  1.135e+01  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  3.410e+00  6.027e+00  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.102e+00  1.257e-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:  9.933e-01  3.140e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.56
Ra Dec: 309.758 -10.773
Photon Index (Free Index): 3.41 +/- 6.03
Photon Flux (Free Index): 8.50e-08 +/- 7.63e-08
Energy Flux (Free Index): 1.56e-05 +/- 2.65e-05

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/993129/cmap_HighResolution_669600001_669859201_4FGL_J2039.0-1046_daily_bin1660.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.25e-05', comment='SUCCESS', energy_flux2='1.56e-05', dlogl='1.13e+00', photon_flux2='8.50e-08', job_status='DONE', time_completed='2022-03-25 00:50:09.601961', photon_index_error2='6.03', photon_index2='3.41', ts='0.22', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', photon_flux_upper_limit='8.03e-08', energy_flux_error2='2.65e-05', EG='1.08', time_epoch_completed='1648194609.6', return_code='0', job_id='993129', GAL2='1.10', EG2='0.99', return_code2='102', photon_flux_error2='7.63e-08', ts2='2.56', photon_index='1.96' WHERE bin_id='1660' AND source_name='4FGL J2039.0-1046' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Mar 25 00:50:09 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0073>
Subject: Job 993129: <4FGL_J2039.0-1046_daily_bin1660> in cluster <slac> Done

Job <4FGL_J2039.0-1046_daily_bin1660> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Mar 25 00:35:28 2022
Job was executed on host(s) <bullet0073>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Mar 25 00:35:30 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Mar 25 00:35:30 2022
Terminated at Fri Mar 25 00:50:11 2022
Results reported at Fri Mar 25 00:50:11 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2039.0-1046_daily_bin1660 309.758 -10.7731 669600001 669859201 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 :                                   731.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             316.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   879 sec.
    Turnaround time :                            883 sec.

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

