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


Performing analysis on: 4FGL_J2039.0-1046_daily_bin1464
RA = 309.758, Dec = -10.7731
tmin = 618796801, tmax = 619056001
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='104248', job_status='RUN', time_executed='2021-09-25 15:33:40.394507', time_epoch_executed='1632609220.39' WHERE source_name='4FGL J2039.0-1046' and cadence='daily' and bin_id='1464'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/104248

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/104248/ft1_4FGL_J2039.0-1046_daily_bin1464.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/104248/ft2_4FGL_J2039.0-1046_daily_bin1464.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/104248/ft1_4FGL_J2039.0-1046_daily_bin1464.fits outfile=/scratch/kocevski/104248/ft1_filteredMKT_4FGL_J2039.0-1046_daily_bin1464.fits ra=309.758 dec=-10.7731 rad=12.0 tmin=618796801.0 tmax=619056001.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.76
user 3.47
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/104248/ft1_filtered_4FGL_J2039.0-1046_daily_bin1464.fits" evtable="EVENTS" scfile=/scratch/kocevski/104248/ft2_4FGL_J2039.0-1046_daily_bin1464.fits sctable="SC_DATA" outfile=/scratch/kocevski/104248/ltcube_618796801_619056001_4FGL_J2039.0-1046_daily_bin1464.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/104248/ft2_4FGL_J2039.0-1046_daily_bin1464.fits
.....................!
real 14.52
user 13.99
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/104248/ft1_filtered_4FGL_J2039.0-1046_daily_bin1464.fits evtable="EVENTS" scfile=/scratch/kocevski/104248/ft2_4FGL_J2039.0-1046_daily_bin1464.fits sctable="SC_DATA" expcube=/scratch/kocevski/104248/ltcube_618796801_619056001_4FGL_J2039.0-1046_daily_bin1464.fits outfile=/scratch/kocevski/104248/expmap_618796801_619056001_4FGL_J2039.0-1046_daily_bin1464.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/104248/ltcube_618796801_619056001_4FGL_J2039.0-1046_daily_bin1464.fits
.....................!
real 193.78
user 187.38
sys 4.36

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/104248/ft1_filtered_4FGL_J2039.0-1046_daily_bin1464.fits scfile=/scratch/kocevski/104248/ft2_4FGL_J2039.0-1046_daily_bin1464.fits outfile=/scratch/kocevski/104248/cmap_618796801_619056001_4FGL_J2039.0-1046_daily_bin1464.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.57
user 0.39
sys 0.15

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

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

This is gtbin version HEAD
real 0.57
user 0.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/104248/ft1_filtered_4FGL_J2039.0-1046_daily_bin1464.fits evtable="EVENTS" scfile=/scratch/kocevski/104248/ft2_4FGL_J2039.0-1046_daily_bin1464.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/104248/Model_4FGL_J2039.0-1046_daily_bin1464.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/104248/ft1_filtered_4FGL_J2039.0-1046_daily_bin1464.fits.....................!
real 71.64
user 69.75
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    2.8205       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10098E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.3027       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.1543       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.1822       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    4.5715       1.0000         .10000E-03   10000.    
    12 'norm      '    33.267       1.0000         .10000E-03   10000.    
    13 'norm      '    5.0235       1.0000         .10000E-03   10000.    
    14 'Prefactor '    17.763       1.0000         .10000E-03   10000.    
    15 'norm      '    .36007       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .16919E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.7237       1.0000         .10000E-03   10000.    
    18 'Prefactor '    11.483       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    26.553       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .73560       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1391       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=   7181.905     FROM MIGRAD    STATUS=CONVERGED    465 CALLS     2402 TOTAL
                     EDM=   .78E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.2600       -.23365E-06** at limit **
   2  Prefactor     2.7447        142.29       -.75849E-05   -.51308E-04
   3  Prefactor     .10000E-03    10.335       -.41141E-07** at limit **
   4  Prefactor     .10000E-03    53.303       -.20879E-05** at limit **
   5  Prefactor     1.3025        1.2760       -.25948E-06    .13734E-04
   6  Prefactor     3.1543        42.391        .16069E-04    .57472E-04
   7  Prefactor     .10000E-03    4.7195       -.18590E-06** at limit **
   8  norm          .10000E-03    3.2407       -.95246E-07** at limit **
   9  Prefactor     8.1741        31.488       -.10672E-06   -.86877E-05
  10  Prefactor     .10000E-03    49.284        .33275E-06** at limit **
  11  norm          4.5706        11.937        .14551E-06    .14891E-04
  12  norm          33.261        31.956       -.89908E-07    .17473E-04
  13  norm          5.0234        1.9988       -.32984E-09    .29745E-03
  14  Prefactor     17.763        16.539        .76205E-07    .46470E-04
  15  norm          .36826        3.1907       -.12287E-05    .10564E-02
  16  Prefactor     .10000E-03    8.3786        .97172E-06** at limit **
  17  Prefactor     1.7236        3.9932        .94377E-06    .81272E-04
  18  Prefactor     11.483        21.458        .53238E-06    .30934E-04
  19  Prefactor     .10000E-03    9.3823        .22079E-07** at limit **
  20  Prefactor     26.550        18.567        .18553E-06   -.20504E-05
  21  Normalizat    .73544        .29759       -.45532E-05    .62646E-04
  22  Prefactor     1.1392        .11335        .82469E-06    .65552E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 2.74467
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.30252
  Prefactor  = 3.15435
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 8.17414
  Prefactor  = 0.0001
  norm       = 4.57063
  norm       = 33.2608
  norm       = 5.02336
  Prefactor  = 17.7626
  norm       = 0.368257
  Prefactor  = 0.0001
  Prefactor  = 1.72364
  Prefactor  = 11.4829
  Prefactor  = 0.0001
  Prefactor  = 26.5505
  Normalizat = 0.735443
  Prefactor  = 1.13919
 **********
 **   18 **HESSE 
 **********

 FCN=   7181.905     FROM HESSE     STATUS=OK           350 CALLS     2752 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.3762        .34138E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.7447        148.12        .24218E-03   -1.5377    
   3  Prefactor     .10000E-03    10.339        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    53.505        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.3025        1.2930        .91683E-04   -1.5480    
   6  Prefactor     3.1543        43.470        .11411E-02   -1.5353    
   7  Prefactor     .10000E-03    4.7222        .17978E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    3.2463        .14897E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     8.1741        31.545        .14016E-03   -1.5136    
  10  Prefactor     .10000E-03    49.335        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          4.5706        11.929        .18827E-03   -1.5280    
  12  norm          33.261        31.951        .69474E-04   -1.4554    
  13  norm          5.0234        1.9961        .68703E-04   -1.5260    
  14  Prefactor     17.763        16.536        .95031E-04   -1.4865    
  15  norm          .36826        22.059        .27475E-02   -1.5587    
  16  Prefactor     .10000E-03    8.7725        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.7236        3.9737        .24936E-03   -1.5445    
  18  Prefactor     11.483        21.489        .11822E-03   -1.5030    
  19  Prefactor     .10000E-03    9.4102        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     26.550        18.574        .77742E-04   -1.4677    
  21  Normalizat    .73544        .32446        .48671E-03   -1.0251    
  22  Prefactor     1.1392        .12570        .15941E-03   -.88224    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.10334e-08
Minuit parameter uncertainties:
  1  1.27275e-06
  2  40.4312
  3  1.69004e-05
  4  0.000249346
  5  1.29303
  6  23.44
  7  8.6454e-08
  8  2.58631e-06
  9  31.6094
  10  0.000268156
  11  11.9351
  12  31.9679
  13  1.99614
  14  16.5406
  15  5.70173
  16  9.00422e-05
  17  3.9743
  18  21.5031
  19  3.16792e-06
  20  18.5784
  21  0.325316
  22  0.125728
Done.

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

Extracting fit parameters...

4FGL J2039.0-1046
   Spectrum: LogParabola
308         norm:  3.683e-01  5.702e+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.139e+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:  7.354e-01  3.253e-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.09e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.14e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/104248/likelihoodResults_618796801_619056001_4FGL_J2039.0-1046_daily_bin1464.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) = 7180.10988684
delta logL = 1.79475880523

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7180.10770946
delta logL = 1.79693618605

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.5245       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.6558       1.0000          .0000       5.0000    
     3 'Normalizat'    .53037       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1777       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=   7180.108     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      310 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.5247        12.172        .86476E-02    .79845E-03
   2  alpha         3.6558        3.9686        .25120        .79711E-04
   3  Normalizat    .53037        .85186E-01    .12756        .52566E-04
   4  Prefactor     1.1777        .33305E-01    .35182E-01   -.94219E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.52469
  alpha      = 3.65575
  Normalizat = 0.530374
  Prefactor  = 1.17765
 **********
 **   18 **HESSE 
 **********

 FCN=   7180.108     FROM HESSE     STATUS=OK            33 CALLS      343 TOTAL
                     EDM=   .58E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.5247        4.6241        .56246E-04   -1.5461    
   2  alpha         3.6558        1.5183        .10250E-01    .48059    
   3  Normalizat    .53037        .32480        .56575E-03   -1.1103    
   4  Prefactor     1.1777        .12623        .15676E-03   -.87022    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.83147e-08
Minuit parameter uncertainties:
  1  4.62517
  2  1.67255
  3  0.325971
  4  0.126267
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/104248': 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) = 7180.10770945
delta logL = 1.79693619234

Extracting fit parameters...

4FGL J2039.0-1046
   Spectrum: LogParabola
308         norm:  1.525e+00  4.625e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  3.656e+00  1.673e+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.178e+00  1.263e-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:  5.304e-01  3.260e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.01
Ra Dec: 309.758 -10.773
Photon Index (Free Index): 3.66 +/- 1.67
Photon Flux (Free Index): 1.94e-07 +/- 1.22e-07
Energy Flux (Free Index): 3.31e-05 +/- 2.12e-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/104248/cmap_HighResolution_618796801_619056001_4FGL_J2039.0-1046_daily_bin1464.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.14e-05', comment='SUCCESS', energy_flux2='3.31e-05', dlogl='1.80e+00', photon_flux2='1.94e-07', job_status='DONE', time_completed='2021-09-25 15:45:51.765301', photon_index_error2='1.67', photon_index2='3.66', ts='0.00', fit_tolerance='1e-08', GAL='1.14', photon_index_error='0.00', photon_flux_upper_limit='1.09e-07', energy_flux_error2='2.12e-05', EG='0.74', time_epoch_completed='1632609951.77', return_code='0', job_id='104248', GAL2='1.18', EG2='0.53', return_code2='0', photon_flux_error2='1.22e-07', ts2='4.01', photon_index='1.96' WHERE bin_id='1464' AND source_name='4FGL J2039.0-1046' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 25 15:45:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0076>
Subject: Job 104248: <4FGL_J2039.0-1046_daily_bin1464> in cluster <slac> Done

Job <4FGL_J2039.0-1046_daily_bin1464> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Sep 25 15:30:21 2021
Job was executed on host(s) <bullet0076>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 25 15:30:42 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:42 2021
Terminated at Sat Sep 25 15:45:52 2021
Results reported at Sat Sep 25 15:45:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2039.0-1046_daily_bin1464 309.758 -10.7731 618796801 619056001 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 :                                   723.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             320.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   913 sec.
    Turnaround time :                            931 sec.

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

