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


Performing analysis on: 4FGL_J1839.6-7107_daily_bin936
RA = 279.914, Dec = -71.1243
tmin = 481939201, tmax = 482198401
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='228896', job_status='RUN', time_executed='2021-09-21 06:51:16.018883', time_epoch_executed='1632232276.02' WHERE source_name='4FGL J1839.6-7107' and cadence='daily' and bin_id='936'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/228896

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/228896/ft1_4FGL_J1839.6-7107_daily_bin936.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/228896/ft2_4FGL_J1839.6-7107_daily_bin936.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/228896/ft1_4FGL_J1839.6-7107_daily_bin936.fits outfile=/scratch/kocevski/228896/ft1_filteredMKT_4FGL_J1839.6-7107_daily_bin936.fits ra=279.914 dec=-71.1243 rad=12.0 tmin=481939201.0 tmax=482198401.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.58
user 3.35
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/228896/ft2_4FGL_J1839.6-7107_daily_bin936.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/228896/ft2_4FGL_J1839.6-7107_daily_bin936.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/228896/ft1_filteredMKT_4FGL_J1839.6-7107_daily_bin936.fits evtable="EVENTS" outfile="/scratch/kocevski/228896/ft1_filtered_4FGL_J1839.6-7107_daily_bin936.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.52
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/228896/ft1_filtered_4FGL_J1839.6-7107_daily_bin936.fits" evtable="EVENTS" scfile=/scratch/kocevski/228896/ft2_4FGL_J1839.6-7107_daily_bin936.fits sctable="SC_DATA" outfile=/scratch/kocevski/228896/ltcube_481939201_482198401_4FGL_J1839.6-7107_daily_bin936.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/228896/ft2_4FGL_J1839.6-7107_daily_bin936.fits
.....................!
real 11.82
user 11.49
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/228896/ft1_filtered_4FGL_J1839.6-7107_daily_bin936.fits evtable="EVENTS" scfile=/scratch/kocevski/228896/ft2_4FGL_J1839.6-7107_daily_bin936.fits sctable="SC_DATA" expcube=/scratch/kocevski/228896/ltcube_481939201_482198401_4FGL_J1839.6-7107_daily_bin936.fits outfile=/scratch/kocevski/228896/expmap_481939201_482198401_4FGL_J1839.6-7107_daily_bin936.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/228896/ltcube_481939201_482198401_4FGL_J1839.6-7107_daily_bin936.fits
.....................!
real 189.40
user 184.74
sys 4.31

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
Extended source FHES J1501.0-6310 in ROI with RadialGaussian spatial model.
Extended source HESS J1507-622 in ROI with RadialDisk spatial model.
Extended source FHES J1642.1-5428 in ROI with RadialDisk spatial model.
Added 221 point sources and 3 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J1839.6-7107 @ 279.914 -71.1243

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/228896/ft1_filtered_4FGL_J1839.6-7107_daily_bin936.fits scfile=/scratch/kocevski/228896/ft2_4FGL_J1839.6-7107_daily_bin936.fits outfile=/scratch/kocevski/228896/cmap_481939201_482198401_4FGL_J1839.6-7107_daily_bin936.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=279.914 yref=-71.1243 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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/228896/ft1_filtered_4FGL_J1839.6-7107_daily_bin936.fits scfile=/scratch/kocevski/228896/ft2_4FGL_J1839.6-7107_daily_bin936.fits outfile=/scratch/kocevski/228896/cmap_HighResolution_481939201_482198401_4FGL_J1839.6-7107_daily_bin936.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=279.914 yref=-71.1243 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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/228896/ft1_filtered_4FGL_J1839.6-7107_daily_bin936.fits evtable="EVENTS" scfile=/scratch/kocevski/228896/ft2_4FGL_J1839.6-7107_daily_bin936.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/228896/Model_4FGL_J1839.6-7107_daily_bin936.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 FHES J1501.0-6310
adding source FHES J1642.1-5428
adding source GAL_V02
adding source HESS J1507-622
Working on...
/scratch/kocevski/228896/ft1_filtered_4FGL_J1839.6-7107_daily_bin936.fits.....................!
real 97.68
user 96.24
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/228896/ft1_filtered_4FGL_J1839.6-7107_daily_bin936.fits', '/scratch/kocevski/228896/ft2_4FGL_J1839.6-7107_daily_bin936.fits', expMap='/scratch/kocevski/228896/expmap_481939201_482198401_4FGL_J1839.6-7107_daily_bin936.fits', expCube='/scratch/kocevski/228896/ltcube_481939201_482198401_4FGL_J1839.6-7107_daily_bin936.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/228896/Model_4FGL_J1839.6-7107_daily_bin936.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1839.6-7107'

4FGL J1839.6-7107
   Spectrum: LogParabola
454         norm:  5.930e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
455        alpha:  2.672e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
456         beta:  2.724e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
457           Eb:  4.191e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/228896/ft1_filtered_4FGL_J1839.6-7107_daily_bin936.fits
Spacecraft file(s): /scratch/kocevski/228896/ft2_4FGL_J1839.6-7107_daily_bin936.fits
Exposure map: /scratch/kocevski/228896/expmap_481939201_482198401_4FGL_J1839.6-7107_daily_bin936.fits
Exposure cube: /scratch/kocevski/228896/ltcube_481939201_482198401_4FGL_J1839.6-7107_daily_bin936.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/228896/Model_4FGL_J1839.6-7107_daily_bin936.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) = 10747.8745038

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .66658       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.7696       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    27.428       1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.598       1.0000         .10000E-03   10000.    
     8 'Prefactor '    17.611       1.0000         .10000E-03   10000.    
     9 'norm      '    36.013       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    10.769       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    5.1637       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .16644E-02   1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.2397       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .91367       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7590E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10747.87     FROM MIGRAD    STATUS=CONVERGED    353 CALLS     1786 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .66680        .85665        .48671E-06    .19534E-02
   2  Prefactor     .10000E-03    13.443       -.94742E-06** at limit **
   3  Prefactor     .10000E-03    16.934        .86012E-06** at limit **
   4  norm          1.7699        4.5789        .77146E-05    .36571E-03
   5  norm          .10000E-03    17.710        .85682E-06** at limit **
   6  Prefactor     27.421        27.271        .91873E-06    .58567E-06
   7  Prefactor     10.600        20.065       -.50495E-06   -.23878E-04
   8  Prefactor     17.383        85.734        .45769E-04    .13906E-04
   9  norm          36.013        23.043        .39301E-06   -.15309E-04
  10  norm          .10000E-03    9.8714       -.79360E-08** at limit **
  11  norm          10.769        8.0537        .51189E-06    .99515E-05
  12  Prefactor     .10000E-03    8.0195       -.11448E-06** at limit **
  13  Prefactor     .10000E-03    10.072        .68509E-07** at limit **
  14  norm          5.1635        1.8783        .84770E-07   -.22102E-03
  15  norm          .10000E-03    19.511       -.38064E-06** at limit **
  16  Prefactor     .10106E-03    6.2218        .43193E-05** at limit **
  17  Normalizat    1.2399        .23578       -.25864E-05   -.18054E-03
  18  Prefactor     .91360        .78600E-01   -.14236E-07   -.14040E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.666803
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.76986
  norm       = 0.0001
  Prefactor  = 27.4215
  Prefactor  = 10.6002
  Prefactor  = 17.3833
  norm       = 36.0128
  norm       = 0.0001
  norm       = 10.7693
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.1635
  norm       = 0.0001
  Prefactor  = 0.000101063
  Normalizat = 1.23987
  Prefactor  = 0.913602
 **********
 **   18 **HESSE 
 **********

 FCN=   10747.87     FROM HESSE     STATUS=OK           250 CALLS     2036 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .66680        .77002        .10519E-02   -1.5545    
   2  Prefactor     .10000E-03    13.466        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    16.935        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.7699        4.5981        .15741E-02   -1.5442    
   5  norm          .10000E-03    17.715        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     27.421        27.009        .76495E-04   -1.4660    
   7  Prefactor     10.600        19.855        .12308E-03   -1.5057    
   8  Prefactor     17.383        85.337        .47720E-03   -1.4874    
   9  norm          36.013        23.072        .66782E-04   -1.4507    
  10  norm          .10000E-03    10.064        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          10.769        8.0549        .61044E-03   -1.5052    
  12  Prefactor     .10000E-03    8.0810        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    10.079        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          5.1635        1.8810        .82202E-04   -1.5253    
  15  norm          .10000E-03    19.519        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10106E-03    43.636        .47685E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.2399        .28284        .40287E-03   -.85380    
  18  Prefactor     .91360        .95360E-01    .15703E-03   -.95667    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.30019e-08
Minuit parameter uncertainties:
  1  0.770031
  2  5.63594e-05
  3  1.17352e-05
  4  4.59902
  5  1.30875e-05
  6  27.0211
  7  19.867
  8  77.2084
  9  23.0776
  10  1.06873e-05
  11  8.05566
  12  6.16015e-06
  13  4.21664e-06
  14  1.88106
  15  1.76052e-06
  16  0.0136286
  17  0.28319
  18  0.0953779
Done.

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

Extracting fit parameters...

4FGL J1839.6-7107
   Spectrum: LogParabola
454         norm:  3.601e+01  2.308e+01  1.000e-04  1.000e+04 ( 1.000e-12)
455        alpha:  2.672e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
456         beta:  2.724e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
457           Eb:  4.191e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
753    Prefactor:  9.136e-01  9.538e-02  0.000e+00  1.000e+01 ( 1.000e+00)
754        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
755        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
745   Normalization:  1.240e+00  2.832e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.79
Ra Dec: 279.914 -71.124
Photon Index (Fixed Index): 2.67 +/- 0.00
Photon Flux (Fixed Index): 7.58e-08 +/- 4.86e-08
Energy Flux (Fixed Index): 1.82e-05 +/- 1.16e-05

TS (Fixed Index): 3.79
Ra Dec: 279.914 -71.124
Photon Flux Upper Limit: 1.73e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.15e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/228896/likelihoodResults_481939201_482198401_4FGL_J1839.6-7107_daily_bin936.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) = 10747.6577855
delta logL = 0.213805645964

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10747.6148044
delta logL = 0.256786755128

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    43.613       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0501       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2775       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90276       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7590E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10747.61     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      213 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          43.613        42.735        .15176E-02    .16876E-02
   2  alpha         2.0501        .98969        .42027       -.31127E-04
   3  Normalizat    1.2775        .23217        .89804E-01    .26884E-04
   4  Prefactor     .90276        .79183E-01    .45040E-01   -.20746E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 43.6132
  alpha      = 2.05005
  Normalizat = 1.27747
  Prefactor  = 0.902763
 **********
 **   18 **HESSE 
 **********

 FCN=   10747.61     FROM HESSE     STATUS=OK            31 CALLS      244 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          43.613        26.640        .60706E-04   -1.4386    
   2  alpha         2.0501        .73947        .25597E-01   -.18096    
   3  Normalizat    1.2775        .27994        .39771E-03   -.84241    
   4  Prefactor     .90276        .95146E-01    .15782E-03   -.96045    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.6404e-09
Minuit parameter uncertainties:
  1  26.6475
  2  0.751089
  3  0.280268
  4  0.0951637
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/228896': 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) = 10747.6148044
delta logL = 0.256786755222

Extracting fit parameters...

4FGL J1839.6-7107
   Spectrum: LogParabola
454         norm:  4.361e+01  2.665e+01  1.000e-04  1.000e+04 ( 1.000e-12)
455        alpha:  2.050e+00  7.511e-01  0.000e+00  5.000e+00 ( 1.000e+00)
456         beta:  2.724e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
457           Eb:  4.191e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
753    Prefactor:  9.028e-01  9.516e-02  0.000e+00  1.000e+01 ( 1.000e+00)
754        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
755        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
745   Normalization:  1.277e+00  2.803e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.27
Ra Dec: 279.914 -71.124
Photon Index (Free Index): 2.05 +/- 0.75
Photon Flux (Free Index): 6.11e-08 +/- 4.44e-08
Energy Flux (Free Index): 2.19e-05 +/- 1.42e-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/228896/cmap_HighResolution_481939201_482198401_4FGL_J1839.6-7107_daily_bin936.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.15e-05', comment='SUCCESS', photon_flux='7.58e-08', energy_flux2='2.19e-05', photon_flux_error='4.86e-08', dlogl='2.57e-01', energy_flux='1.82e-05', photon_flux2='6.11e-08', job_status='DONE', time_completed='2021-09-21 07:06:29.173043', photon_index_error2='0.75', photon_index2='2.05', ts='3.79', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', photon_flux_upper_limit='1.73e-07', energy_flux_error2='1.42e-05', EG='1.24', time_epoch_completed='1632233189.17', return_code='0', job_id='228896', GAL2='0.90', EG2='1.28', return_code2='0', energy_flux_error='1.16e-05', photon_flux_error2='4.44e-08', ts2='4.27', photon_index='2.67' WHERE bin_id='936' AND source_name='4FGL J1839.6-7107' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 21 07:06:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0278>
Subject: Job 228896: <4FGL_J1839.6-7107_daily_bin936> in cluster <slac> Done

Job <4FGL_J1839.6-7107_daily_bin936> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Tue Sep 21 06:50:37 2021
Job was executed on host(s) <bullet0278>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 21 06:50:39 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 21 06:50:39 2021
Terminated at Tue Sep 21 07:06:30 2021
Results reported at Tue Sep 21 07:06:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1839.6-7107_daily_bin936 279.914 -71.1243 481939201 482198401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1839.6-7107 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   908.23 sec.
    Max Memory :                                 1259 MB
    Average Memory :                             353.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   950 sec.
    Turnaround time :                            953 sec.

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

