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


Performing analysis on: 4FGL_J2039.0-1046_daily_bin1430
RA = 309.758, Dec = -10.7731
tmin = 609984001, tmax = 610243201
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='104201', job_status='RUN', time_executed='2021-09-25 15:31:11.931757', time_epoch_executed='1632609071.93' WHERE source_name='4FGL J2039.0-1046' and cadence='daily' and bin_id='1430'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/104201

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/104201/ft1_4FGL_J2039.0-1046_daily_bin1430.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/104201/ft2_4FGL_J2039.0-1046_daily_bin1430.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/104201/ft1_4FGL_J2039.0-1046_daily_bin1430.fits outfile=/scratch/kocevski/104201/ft1_filteredMKT_4FGL_J2039.0-1046_daily_bin1430.fits ra=309.758 dec=-10.7731 rad=12.0 tmin=609984001.0 tmax=610243201.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 5.19
user 4.92
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/104201/ft1_filtered_4FGL_J2039.0-1046_daily_bin1430.fits" evtable="EVENTS" scfile=/scratch/kocevski/104201/ft2_4FGL_J2039.0-1046_daily_bin1430.fits sctable="SC_DATA" outfile=/scratch/kocevski/104201/ltcube_609984001_610243201_4FGL_J2039.0-1046_daily_bin1430.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/104201/ft2_4FGL_J2039.0-1046_daily_bin1430.fits
.....................!
real 15.42
user 15.02
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/104201/ft1_filtered_4FGL_J2039.0-1046_daily_bin1430.fits evtable="EVENTS" scfile=/scratch/kocevski/104201/ft2_4FGL_J2039.0-1046_daily_bin1430.fits sctable="SC_DATA" expcube=/scratch/kocevski/104201/ltcube_609984001_610243201_4FGL_J2039.0-1046_daily_bin1430.fits outfile=/scratch/kocevski/104201/expmap_609984001_610243201_4FGL_J2039.0-1046_daily_bin1430.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/104201/ltcube_609984001_610243201_4FGL_J2039.0-1046_daily_bin1430.fits
.....................!
real 194.49
user 187.63
sys 5.01

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/104201/ft1_filtered_4FGL_J2039.0-1046_daily_bin1430.fits scfile=/scratch/kocevski/104201/ft2_4FGL_J2039.0-1046_daily_bin1430.fits outfile=/scratch/kocevski/104201/cmap_609984001_610243201_4FGL_J2039.0-1046_daily_bin1430.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.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/104201/ft1_filtered_4FGL_J2039.0-1046_daily_bin1430.fits scfile=/scratch/kocevski/104201/ft2_4FGL_J2039.0-1046_daily_bin1430.fits outfile=/scratch/kocevski/104201/cmap_HighResolution_609984001_610243201_4FGL_J2039.0-1046_daily_bin1430.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.38
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/104201/ft1_filtered_4FGL_J2039.0-1046_daily_bin1430.fits evtable="EVENTS" scfile=/scratch/kocevski/104201/ft2_4FGL_J2039.0-1046_daily_bin1430.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/104201/Model_4FGL_J2039.0-1046_daily_bin1430.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/104201/ft1_filtered_4FGL_J2039.0-1046_daily_bin1430.fits.....................!
real 79.38
user 77.90
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.2188       1.0000         .10000E-03   10000.    
     2 'Prefactor '    54.558       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .38014E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.1888       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    28.659       1.0000         .10000E-03   10000.    
     8 'norm      '    .10133E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    14.190       1.0000         .10000E-03   10000.    
    13 'norm      '    13.790       1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.8076       1.0000         .10000E-03   10000.    
    15 'norm      '    .10511E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.6709       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    34.916       1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.0691       1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.5053       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1680       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0040       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=   8078.065     FROM MIGRAD    STATUS=CONVERGED    871 CALLS     2849 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.2087        6.5113        .13804E-02   -.26486E-04
   2  Prefactor     54.545        53.237        .54305E-04   -.34208E-04
   3  Prefactor     .10000E-03    14.551        .18142E-02** at limit **
   4  Prefactor     .10000E-03    49.347        .16064    ** at limit **
   5  Prefactor     1.1817        2.5033        .18333E-03   -.21487E-03
   6  Prefactor     .10000E-03    24.289        .18142E-02** at limit **
   7  Prefactor     28.691        23.963        .74837E-04   -.11181E-03
   8  norm          .10000E-03    3.4593        .16310E-02** at limit **
   9  Prefactor     .10000E-03    21.073        .18142E-02** at limit **
  10  Prefactor     .10000E-03    48.325        .18142E-02** at limit **
  11  norm          .10000E-03    6.8952        .18142E-02** at limit **
  12  norm          14.189        19.324        .10633E-03   -.13472E-04
  13  norm          13.790        2.4422        .55919E-04   -.23026E-03
  14  Prefactor     7.8073        9.8834        .14351E-03   -.72883E-05
  15  norm          .10000E-03    8.3716        .27997E-02** at limit **
  16  Prefactor     1.6708        3.5255        .23680E-03    .13538E-04
  17  Prefactor     .10000E-03    2.0945        .12652E-02** at limit **
  18  Prefactor     34.903        22.450        .67819E-04   -.58001E-04
  19  Prefactor     7.0678        13.777        .15088E-03   -.55005E-05
  20  Prefactor     3.5018        11.694        .21594E-03    .14215E-05
  21  Normalizat    1.1687        .33542        .42099E-03   -.13969E-03
  22  Prefactor     1.0037        .12930        .17651E-03   -.48321E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.20865
  Prefactor  = 54.545
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 1.18171
  Prefactor  = 0.0001
  Prefactor  = 28.6908
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 14.189
  norm       = 13.7896
  Prefactor  = 7.80726
  norm       = 0.0001
  Prefactor  = 1.67076
  Prefactor  = 0.0001
  Prefactor  = 34.9032
  Prefactor  = 7.06778
  Prefactor  = 3.50183
  Normalizat = 1.16871
  Prefactor  = 1.00367
 **********
 **   18 **HESSE 
 **********

 FCN=   8078.065     FROM HESSE     STATUS=OK           332 CALLS     3181 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.2087        6.4880        .55216E-04   -1.5411    
   2  Prefactor     54.545        53.233        .10861E-04   -1.4230    
   3  Prefactor     .10000E-03    14.552        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    51.202        .15627       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.1817        2.5017        .73334E-05   -1.5491    
   6  Prefactor     .10000E-03    24.291        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     28.691        23.947        .29935E-05   -1.4636    
   8  norm          .10000E-03    3.4594        .32621E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    21.074        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    48.326        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    6.8961        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          14.189        19.322        .42532E-05   -1.4954    
  13  norm          13.790        2.4422        .11184E-04   -1.4965    
  14  Prefactor     7.8073        9.8830        .57402E-05   -1.5149    
  15  norm          .10000E-03    8.4710        .55993E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.6708        3.5250        .94722E-05   -1.5449    
  17  Prefactor     .10000E-03    2.0948        .25305E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     34.903        22.450        .27128E-05   -1.4526    
  19  Prefactor     7.0678        13.774        .60352E-05   -1.5176    
  20  Prefactor     3.5018        11.692        .86377E-05   -1.5334    
  21  Normalizat    1.1687        .33562        .16840E-04   -.87575    
  22  Prefactor     1.0037        .12932        .35302E-04   -.92607    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.6472e-10
Minuit parameter uncertainties:
  1  6.49007
  2  53.2796
  3  1.76071e-05
  4  0.000433887
  5  2.50191
  6  3.34368e-05
  7  23.9554
  8  2.45859e-05
  9  2.08542e-05
  10  2.34692e-06
  11  7.40941e-06
  12  19.33
  13  2.44218
  14  9.88503
  15  1.34989e-05
  16  3.52548
  17  1.61256e-05
  18  22.4553
  19  13.7803
  20  11.6994
  21  0.336242
  22  0.129364
Done.

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

Extracting fit parameters...

4FGL J2039.0-1046
   Spectrum: LogParabola
308         norm:  1.000e-04  1.350e-05  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.004e+00  1.294e-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.169e+00  3.362e-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: 7.54e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.93e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/104201/likelihoodResults_609984001_610243201_4FGL_J2039.0-1046_daily_bin1430.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): 102
logL (Free Index) = 8078.06559226
delta logL = -0.000565796938645

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8078.06502486
delta logL = 1.60223953571e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11758E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8558       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1686       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0037       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   8078.065     FROM MIGRAD    STATUS=FAILED       112 CALLS      271 TOTAL
                     EDM=   .16E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10737E-03    29.633        .49441E-01** at limit **
   2  alpha         1.4666        2.6291        .17211E-01   -.12709E-05
   3  Normalizat    1.1687        .22013E-01    .42099E-03    .27869E-04
   4  Prefactor     1.0037        .86937E-02    .17651E-03    .90943E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8078.065     FROM SIMPLEX   STATUS=PROGRESS     100 CALLS      371 TOTAL
                     EDM=   .31E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .59654E-01    29.633        .65245E-03   -.18512E-02
   2  alpha         1.4627        2.6291        .51843E-03   -.12709E-05
   3  Normalizat    1.1686        .22013E-01    .52395E-05    .27869E-04
   4  Prefactor     1.0036        .86937E-02    .83865E-06    .90943E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   8078.065     FROM MIGRAD    STATUS=FAILED       117 CALLS      488 TOTAL
                     EDM=   .46E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .63620E-01    367.73        .50226E-01    .57273E-03
   2  alpha         1.4780        4.1880        .27537E-03   -.23945E-06
   3  Normalizat    1.1690        .10526        .33679E-05   -.33756E-05
   4  Prefactor     1.0034        .44937E-01    .70605E-05   -.54746E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0636196
  alpha      = 1.47796
  Normalizat = 1.16897
  Prefactor  = 1.00344
 **********
 **   18 **HESSE 
 **********

 FCN=   8078.065     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      521 TOTAL
                     EDM=   .47E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .63620E-01    366.68        .50267E-01   -1.5658    
   2  alpha         1.4780        4.1956        .55075E-04   -.42116    
   3  Normalizat    1.1690        .10446        .67359E-06   -.87567    
   4  Prefactor     1.0034        .44925E-01    .14121E-05   -.92615    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.65606e-08
Minuit parameter uncertainties:
  1  9.71221
  2  53.538
  3  0.104477
  4  0.0449262
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/104201': 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): 1
logL (Free Index) = 8078.06480338
delta logL = 0.000223088411985

Extracting fit parameters...

4FGL J2039.0-1046
   Spectrum: LogParabola
308         norm:  6.362e-02  9.712e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  1.478e+00  5.354e+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:  1.003e+00  4.493e-02  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.169e+00  1.045e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/104201/cmap_HighResolution_609984001_610243201_4FGL_J2039.0-1046_daily_bin1430.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.93e-05', job_status='DONE', photon_flux_upper_limit='7.54e-08', time_completed='2021-09-25 15:45:39.411689', job_id='104201', GAL2='1.00', fit_tolerance='1e-08', EG2='1.17', EG='1.17', time_epoch_completed='1632609939.41', return_code2='1', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='2.23e-04', ts2='0.00', photon_index_error='0.00', photon_index='1.96' WHERE bin_id='1430' AND source_name='4FGL J2039.0-1046' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 25 15:45:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0194>
Subject: Job 104201: <4FGL_J2039.0-1046_daily_bin1430> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2039.0-1046_daily_bin1430 309.758 -10.7731 609984001 610243201 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 :                                   863.13 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             345.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   911 sec.
    Turnaround time :                            921 sec.

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

