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


Performing analysis on: 4FGL_J1839.6-7107_daily_bin785
RA = 279.914, Dec = -71.1243
tmin = 442800001, tmax = 443059201
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='227460', job_status='RUN', time_executed='2021-09-21 06:45:53.045559', time_epoch_executed='1632231953.05' WHERE source_name='4FGL J1839.6-7107' and cadence='daily' and bin_id='785'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/227460

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/227460/ft1_4FGL_J1839.6-7107_daily_bin785.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/227460/ft2_4FGL_J1839.6-7107_daily_bin785.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/227460/ft1_4FGL_J1839.6-7107_daily_bin785.fits outfile=/scratch/kocevski/227460/ft1_filteredMKT_4FGL_J1839.6-7107_daily_bin785.fits ra=279.914 dec=-71.1243 rad=12.0 tmin=442800001.0 tmax=443059201.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.48
user 3.26
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/227460/ft2_4FGL_J1839.6-7107_daily_bin785.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/227460/ft1_filteredMKT_4FGL_J1839.6-7107_daily_bin785.fits evtable="EVENTS" outfile="/scratch/kocevski/227460/ft1_filtered_4FGL_J1839.6-7107_daily_bin785.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.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/227460/ft1_filtered_4FGL_J1839.6-7107_daily_bin785.fits" evtable="EVENTS" scfile=/scratch/kocevski/227460/ft2_4FGL_J1839.6-7107_daily_bin785.fits sctable="SC_DATA" outfile=/scratch/kocevski/227460/ltcube_442800001_443059201_4FGL_J1839.6-7107_daily_bin785.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/227460/ft2_4FGL_J1839.6-7107_daily_bin785.fits
.....................!
real 12.26
user 11.87
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/227460/ft1_filtered_4FGL_J1839.6-7107_daily_bin785.fits evtable="EVENTS" scfile=/scratch/kocevski/227460/ft2_4FGL_J1839.6-7107_daily_bin785.fits sctable="SC_DATA" expcube=/scratch/kocevski/227460/ltcube_442800001_443059201_4FGL_J1839.6-7107_daily_bin785.fits outfile=/scratch/kocevski/227460/expmap_442800001_443059201_4FGL_J1839.6-7107_daily_bin785.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/227460/ltcube_442800001_443059201_4FGL_J1839.6-7107_daily_bin785.fits
.....................!
real 192.28
user 185.91
sys 5.88

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/227460/ft1_filtered_4FGL_J1839.6-7107_daily_bin785.fits scfile=/scratch/kocevski/227460/ft2_4FGL_J1839.6-7107_daily_bin785.fits outfile=/scratch/kocevski/227460/cmap_442800001_443059201_4FGL_J1839.6-7107_daily_bin785.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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/227460/ft1_filtered_4FGL_J1839.6-7107_daily_bin785.fits scfile=/scratch/kocevski/227460/ft2_4FGL_J1839.6-7107_daily_bin785.fits outfile=/scratch/kocevski/227460/cmap_HighResolution_442800001_443059201_4FGL_J1839.6-7107_daily_bin785.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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/227460/ft1_filtered_4FGL_J1839.6-7107_daily_bin785.fits evtable="EVENTS" scfile=/scratch/kocevski/227460/ft2_4FGL_J1839.6-7107_daily_bin785.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/227460/Model_4FGL_J1839.6-7107_daily_bin785.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/227460/ft1_filtered_4FGL_J1839.6-7107_daily_bin785.fits.....................!
real 101.23
user 99.80
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/227460/ft1_filtered_4FGL_J1839.6-7107_daily_bin785.fits', '/scratch/kocevski/227460/ft2_4FGL_J1839.6-7107_daily_bin785.fits', expMap='/scratch/kocevski/227460/expmap_442800001_443059201_4FGL_J1839.6-7107_daily_bin785.fits', expCube='/scratch/kocevski/227460/ltcube_442800001_443059201_4FGL_J1839.6-7107_daily_bin785.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/227460/Model_4FGL_J1839.6-7107_daily_bin785.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/227460/ft1_filtered_4FGL_J1839.6-7107_daily_bin785.fits
Spacecraft file(s): /scratch/kocevski/227460/ft2_4FGL_J1839.6-7107_daily_bin785.fits
Exposure map: /scratch/kocevski/227460/expmap_442800001_443059201_4FGL_J1839.6-7107_daily_bin785.fits
Exposure cube: /scratch/kocevski/227460/ltcube_442800001_443059201_4FGL_J1839.6-7107_daily_bin785.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/227460/Model_4FGL_J1839.6-7107_daily_bin785.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) = 10690.7668338

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.8463       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .17643E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    107.23       1.0000         .10000E-03   10000.    
     4 'norm      '    2.8375       1.0000         .10000E-03   10000.    
     5 'norm      '    .82555E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .12470E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .13744E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    190.58       1.0000         .10000E-03   10000.    
     9 'norm      '    30.038       1.0000         .10000E-03   10000.    
    10 'norm      '    2.6320       1.0000         .10000E-03   10000.    
    11 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.2134       1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.787       1.0000         .10000E-03   10000.    
    14 'norm      '    1.7169       1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.9264       1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.1219       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .93305       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=   10690.74     FROM MIGRAD    STATUS=CONVERGED    358 CALLS     1751 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.8477        1.0362        .14741E-06   -.33733E-04
   2  Prefactor     .10000E-03    80.964        .76479E-06** at limit **
   3  Prefactor     106.94        92.703       -.40326E-05   -.53610E-03
   4  norm          2.8358        4.1283        .38625E-06   -.33537E-05
   5  norm          .10000E-03    139.66       -.54094E-05** at limit **
   6  Prefactor     .10000E-03    46.425        .10245E-05** at limit **
   7  Prefactor     .10000E-03    38.161        .28349E-05** at limit **
   8  Prefactor     190.57        109.16        .69505E-07    .50260E-05
   9  norm          30.036        23.325       -.35480E-06   -.44586E-04
  10  norm          2.6324        6.2007        .13866E-04   -.47192E-03
  11  norm          .10000E-03    2.1643        .22687E-06** at limit **
  12  Prefactor     7.2131        11.109       -.23038E-05   -.15967E-03
  13  Prefactor     10.784        25.454        .49997E-06   -.53241E-05
  14  norm          1.7171        1.2145        .68076E-07   -.11318E-03
  15  norm          .10000E-03    16.099        .14732E-06** at limit **
  16  Prefactor     9.9258        14.154        .21623E-06   -.10012E-04
  17  Normalizat    1.1216        .23812       -.43795E-05   -.21639E-04
  18  Prefactor     .93314        .80426E-01    .85701E-06   -.55290E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.84768
  Prefactor  = 0.000100001
  Prefactor  = 106.944
  norm       = 2.83581
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 190.575
  norm       = 30.0363
  norm       = 2.63242
  norm       = 0.0001
  Prefactor  = 7.21313
  Prefactor  = 10.7843
  norm       = 1.71707
  norm       = 0.0001
  Prefactor  = 9.92577
  Normalizat = 1.12161
  Prefactor  = 0.933144
 **********
 **   18 **HESSE 
 **********

 FCN=   10690.74     FROM HESSE     STATUS=OK           244 CALLS     1995 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.8477        1.0256        .75761E-04   -1.5436    
   2  Prefactor     .10000E-03    82.425        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     106.94        92.722        .19419E-03   -1.3636    
   4  norm          2.8358        4.1138        .24140E-03   -1.5371    
   5  norm          .10000E-03    141.83        .20883E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    47.696        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    39.525        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     190.57        109.18        .14628E-03   -1.2938    
   9  norm          30.036        23.346        .73104E-04   -1.4611    
  10  norm          2.6324        6.2089        .12567E-02   -1.5383    
  11  norm          .10000E-03    2.1749        .14854E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     7.2131        11.124        .14935E-03   -1.5171    
  13  Prefactor     10.784        25.456        .12199E-03   -1.5051    
  14  norm          1.7171        1.2076        .92398E-04   -1.5446    
  15  norm          .10000E-03    16.104        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     9.9258        14.156        .12718E-03   -1.5078    
  17  Normalizat    1.1216        .27829        .40648E-03   -.89061    
  18  Prefactor     .93314        .94802E-01    .15273E-03   -.94992    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.90206e-09
Minuit parameter uncertainties:
  1  1.02556
  2  0.000480746
  3  92.8479
  4  4.11419
  5  0.000421443
  6  0.000450439
  7  0.000128249
  8  109.296
  9  23.3531
  10  6.21043
  11  1.68497e-06
  12  11.1276
  13  25.4816
  14  1.20762
  15  3.28313e-06
  16  14.1611
  17  0.27865
  18  0.0948184
Done.

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

Extracting fit parameters...

4FGL J1839.6-7107
   Spectrum: LogParabola
454         norm:  3.004e+01  2.335e+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.331e-01  9.482e-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.122e+00  2.787e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.26
Ra Dec: 279.914 -71.124
Photon Index (Fixed Index): 2.67 +/- 0.00
Photon Flux (Fixed Index): 6.32e-08 +/- 4.91e-08
Energy Flux (Fixed Index): 1.51e-05 +/- 1.18e-05

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

Saving results to:
/scratch/kocevski/227460/likelihoodResults_442800001_443059201_4FGL_J1839.6-7107_daily_bin785.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) = 10690.5772285
delta logL = 0.160401109899

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10690.5657384
delta logL = 0.171891223255

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    32.818       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1749       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1458       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92709       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=   10690.57     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      222 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          32.785        33.563        .17487E-02    .12607E-03
   2  alpha         2.1753        .92690        .41600       -.30789E-04
   3  Normalizat    1.1469        .23206        .90880E-01   -.26611E-04
   4  Prefactor     .92690        .80248E-01    .34665E-01   -.13938E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 32.7847
  alpha      = 2.17526
  Normalizat = 1.14685
  Prefactor  = 0.926898
 **********
 **   18 **HESSE 
 **********

 FCN=   10690.57     FROM HESSE     STATUS=OK            31 CALLS      253 TOTAL
                     EDM=   .73E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          32.785        25.167        .34974E-03   -1.4562    
   2  alpha         2.1753        .77140        .28197E-01   -.13026    
   3  Normalizat    1.1469        .27295        .40251E-03   -.88261    
   4  Prefactor     .92690        .94343E-01    .15317E-03   -.95207    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.31301e-12
Minuit parameter uncertainties:
  1  25.175
  2  0.784425
  3  0.273286
  4  0.0943598
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/227460': 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) = 10690.5657262
delta logL = 0.171903473776

Extracting fit parameters...

4FGL J1839.6-7107
   Spectrum: LogParabola
454         norm:  3.278e+01  2.517e+01  1.000e-04  1.000e+04 ( 1.000e-12)
455        alpha:  2.175e+00  7.844e-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.269e-01  9.436e-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.147e+00  2.733e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.59
Ra Dec: 279.914 -71.124
Photon Index (Free Index): 2.18 +/- 0.78
Photon Flux (Free Index): 4.91e-08 +/- 4.60e-08
Energy Flux (Free Index): 1.60e-05 +/- 1.22e-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/227460/cmap_HighResolution_442800001_443059201_4FGL_J1839.6-7107_daily_bin785.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.88e-05', comment='SUCCESS', photon_flux='6.32e-08', energy_flux2='1.60e-05', photon_flux_error='4.91e-08', dlogl='1.72e-01', energy_flux='1.51e-05', photon_flux2='4.91e-08', job_status='DONE', time_completed='2021-09-21 07:01:06.690549', photon_index_error2='0.78', photon_index2='2.18', ts='2.26', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', photon_flux_upper_limit='1.62e-07', energy_flux_error2='1.22e-05', EG='1.12', time_epoch_completed='1632232866.69', return_code='0', job_id='227460', GAL2='0.93', EG2='1.15', return_code2='0', energy_flux_error='1.18e-05', photon_flux_error2='4.60e-08', ts2='2.59', photon_index='2.67' WHERE bin_id='785' AND source_name='4FGL J1839.6-7107' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 21 07:01:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0098>
Subject: Job 227460: <4FGL_J1839.6-7107_daily_bin785> in cluster <slac> Done

Job <4FGL_J1839.6-7107_daily_bin785> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 21 06:45:28 2021
Job was executed on host(s) <bullet0098>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 21 06:45:30 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:45:30 2021
Terminated at Tue Sep 21 07:01:07 2021
Results reported at Tue Sep 21 07:01:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1839.6-7107_daily_bin785 279.914 -71.1243 442800001 443059201 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 :                                   911.12 sec.
    Max Memory :                                 1259 MB
    Average Memory :                             378.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   938 sec.
    Turnaround time :                            939 sec.

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

