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


Performing analysis on: 4FGL_J1839.6-7107_daily_bin1071
RA = 279.914, Dec = -71.1243
tmin = 516931201, tmax = 517190401
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='230370', job_status='RUN', time_executed='2021-09-21 06:55:58.858335', time_epoch_executed='1632232558.86' WHERE source_name='4FGL J1839.6-7107' and cadence='daily' and bin_id='1071'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/230370

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/230370/ft1_4FGL_J1839.6-7107_daily_bin1071.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/230370/ft2_4FGL_J1839.6-7107_daily_bin1071.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/230370/ft1_4FGL_J1839.6-7107_daily_bin1071.fits outfile=/scratch/kocevski/230370/ft1_filteredMKT_4FGL_J1839.6-7107_daily_bin1071.fits ra=279.914 dec=-71.1243 rad=12.0 tmin=516931201.0 tmax=517190401.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.93
user 3.69
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/230370/ft1_filtered_4FGL_J1839.6-7107_daily_bin1071.fits" evtable="EVENTS" scfile=/scratch/kocevski/230370/ft2_4FGL_J1839.6-7107_daily_bin1071.fits sctable="SC_DATA" outfile=/scratch/kocevski/230370/ltcube_516931201_517190401_4FGL_J1839.6-7107_daily_bin1071.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/230370/ft2_4FGL_J1839.6-7107_daily_bin1071.fits
.....................!
real 11.82
user 11.46
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/230370/ft1_filtered_4FGL_J1839.6-7107_daily_bin1071.fits evtable="EVENTS" scfile=/scratch/kocevski/230370/ft2_4FGL_J1839.6-7107_daily_bin1071.fits sctable="SC_DATA" expcube=/scratch/kocevski/230370/ltcube_516931201_517190401_4FGL_J1839.6-7107_daily_bin1071.fits outfile=/scratch/kocevski/230370/expmap_516931201_517190401_4FGL_J1839.6-7107_daily_bin1071.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/230370/ltcube_516931201_517190401_4FGL_J1839.6-7107_daily_bin1071.fits
.....................!
real 192.77
user 187.20
sys 4.99

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/230370/ft1_filtered_4FGL_J1839.6-7107_daily_bin1071.fits scfile=/scratch/kocevski/230370/ft2_4FGL_J1839.6-7107_daily_bin1071.fits outfile=/scratch/kocevski/230370/cmap_516931201_517190401_4FGL_J1839.6-7107_daily_bin1071.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/230370/ft1_filtered_4FGL_J1839.6-7107_daily_bin1071.fits scfile=/scratch/kocevski/230370/ft2_4FGL_J1839.6-7107_daily_bin1071.fits outfile=/scratch/kocevski/230370/cmap_HighResolution_516931201_517190401_4FGL_J1839.6-7107_daily_bin1071.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.36
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/230370/ft1_filtered_4FGL_J1839.6-7107_daily_bin1071.fits evtable="EVENTS" scfile=/scratch/kocevski/230370/ft2_4FGL_J1839.6-7107_daily_bin1071.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/230370/Model_4FGL_J1839.6-7107_daily_bin1071.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/230370/ft1_filtered_4FGL_J1839.6-7107_daily_bin1071.fits.....................!
real 102.64
user 101.20
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .87686E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    5.3025       1.0000         .10000E-03   10000.    
     5 'norm      '    25.072       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .33957E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    116.71       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.1066       1.0000         .10000E-03   10000.    
    12 'Prefactor '    47.823       1.0000         .10000E-03   10000.    
    13 'Prefactor '    39.993       1.0000         .10000E-03   10000.    
    14 'norm      '    9.1344       1.0000         .10000E-03   10000.    
    15 'norm      '    .10045E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'Normalizat'    .93670       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.0495       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=   11206.39     FROM MIGRAD    STATUS=CONVERGED    377 CALLS     1791 TOTAL
                     EDM=   .62E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .31494       -.30691E-07** at limit **
   2  Prefactor     .10000E-03    28.712       -.56251E-06** at limit **
   3  Prefactor     .10000E-03    44.772        .86655E-05** at limit **
   4  norm          5.3041        5.6140       -.82565E-06    .66314E-04
   5  norm          25.076        55.710       -.82764E-06   -.47280E-05
   6  Prefactor     .10000E-03    122.69        .31249E-04** at limit **
   7  Prefactor     .10000E-03    10.206        .25088E-06** at limit **
   8  Prefactor     .10000E-03    48.161       -.87484E-05** at limit **
   9  norm          116.72        31.923       -.33075E-06    .25642E-04
  10  norm          .10000E-03    3.4167       -.21715E-07** at limit **
  11  norm          2.1085        5.9459       -.30756E-05    .13534E-03
  12  Prefactor     47.817        16.935       -.26741E-06    .13674E-04
  13  Prefactor     40.002        32.466       -.34565E-06    .46211E-05
  14  norm          9.1343        2.1414       -.57983E-07    .77413E-04
  15  norm          .10000E-03    183.73        .78008E-05** at limit **
  16  Prefactor     .10000E-03    5.5783        .11417E-07** at limit **
  17  Normalizat    .93703        .25131        .18989E-05    .16015E-03
  18  Prefactor     1.0493        .83969E-01    .14372E-06    .31020E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.30414
  norm       = 25.0755
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 116.721
  norm       = 0.0001
  norm       = 2.10847
  Prefactor  = 47.8171
  Prefactor  = 40.0023
  norm       = 9.13432
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.937027
  Prefactor  = 1.04932
 **********
 **   18 **HESSE 
 **********

 FCN=   11206.39     FROM HESSE     STATUS=OK           254 CALLS     2045 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .46527        .21993E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    29.298        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    45.493        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          5.3041        5.6062        .17454E-03   -1.5247    
   5  norm          25.076        55.728        .80001E-04   -1.4706    
   6  Prefactor     .10000E-03    118.55        .73082E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    10.254        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    48.970        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          116.72        31.929        .37245E-04   -1.3543    
  10  norm          .10000E-03    3.4298        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.1085        6.0653        .28428E-03   -1.5418    
  12  Prefactor     47.817        16.942        .57984E-04   -1.4324    
  13  Prefactor     40.002        32.461        .63383E-04   -1.4442    
  14  norm          9.1343        2.1420        .72063E-04   -1.5103    
  15  norm          .10000E-03    185.57        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    5.5860        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    .93703        .28518        .47884E-03   -.95171    
  18  Prefactor     1.0493        .96660E-01    .15613E-03   -.91103    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.12765e-10
Minuit parameter uncertainties:
  1  2.77202e-06
  2  1.2751e-05
  3  0.000214564
  4  5.6067
  5  55.8435
  6  0.00032097
  7  1.64418e-05
  8  0.000267902
  9  31.9339
  10  1.9144e-06
  11  6.0671
  12  16.9438
  13  32.4752
  14  2.14202
  15  6.7236e-05
  16  5.41666e-06
  17  0.28564
  18  0.0966762
Done.

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

Extracting fit parameters...

4FGL J1839.6-7107
   Spectrum: LogParabola
454         norm:  1.167e+02  3.193e+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:  1.049e+00  9.668e-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:  9.370e-01  2.856e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 33.96
Ra Dec: 279.914 -71.124
Photon Index (Fixed Index): 2.67 +/- 0.00
Photon Flux (Fixed Index): 2.46e-07 +/- 6.72e-08
Energy Flux (Fixed Index): 5.88e-05 +/- 1.61e-05

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) = 11204.8173913
delta logL = 1.57674712969

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11204.7423668
delta logL = 1.65177160913

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    130.99       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9856       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0335       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0262       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=   11204.74     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      224 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          130.95        39.875        .87952E-03    .11682E-02
   2  alpha         1.9845        .35719        .33682        .34002E-04
   3  Normalizat    1.0333        .24231        .10357        .31282E-03
   4  Prefactor     1.0262        .82503E-01    .41571E-01    .10538E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 130.945
  alpha      = 1.98447
  Normalizat = 1.03333
  Prefactor  = 1.02625
 **********
 **   18 **HESSE 
 **********

 FCN=   11204.74     FROM HESSE     STATUS=OK            29 CALLS      253 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          130.95        37.473        .35181E-04   -1.3414    
   2  alpha         1.9845        .36212        .13734E-01   -.20770    
   3  Normalizat    1.0333        .28227        .45896E-03   -.91922    
   4  Prefactor     1.0262        .96292E-01    .15766E-03   -.91860    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.739e-09
Minuit parameter uncertainties:
  1  37.4794
  2  0.363453
  3  0.282685
  4  0.096308
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/230370': 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) = 11204.7423611
delta logL = 1.6517773069

Extracting fit parameters...

4FGL J1839.6-7107
   Spectrum: LogParabola
454         norm:  1.309e+02  3.748e+01  1.000e-04  1.000e+04 ( 1.000e-12)
455        alpha:  1.984e+00  3.635e-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:  1.026e+00  9.631e-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.033e+00  2.827e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 37.14
Ra Dec: 279.914 -71.124
Photon Index (Free Index): 1.98 +/- 0.36
Photon Flux (Free Index): 1.77e-07 +/- 6.35e-08
Energy Flux (Free Index): 6.71e-05 +/- 1.99e-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/230370/cmap_HighResolution_516931201_517190401_4FGL_J1839.6-7107_daily_bin1071.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.46e-07', energy_flux2='6.71e-05', photon_flux_error='6.72e-08', dlogl='1.65e+00', energy_flux='5.88e-05', photon_flux2='1.77e-07', job_status='DONE', time_completed='2021-09-21 07:10:10.926284', photon_index_error2='0.36', photon_index2='1.98', ts='33.96', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', energy_flux_error2='1.99e-05', EG='0.94', time_epoch_completed='1632233410.93', return_code='0', job_id='230370', GAL2='1.03', EG2='1.03', return_code2='0', energy_flux_error='1.61e-05', photon_flux_error2='6.35e-08', ts2='37.14', photon_index='2.67' WHERE bin_id='1071' AND source_name='4FGL J1839.6-7107' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 21 07:10:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0156>
Subject: Job 230370: <4FGL_J1839.6-7107_daily_bin1071> in cluster <slac> Done

Job <4FGL_J1839.6-7107_daily_bin1071> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 21 06:55:24 2021
Job was executed on host(s) <bullet0156>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 21 06:55:25 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:55:25 2021
Terminated at Tue Sep 21 07:10:11 2021
Results reported at Tue Sep 21 07:10:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1839.6-7107_daily_bin1071 279.914 -71.1243 516931201 517190401 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 :                                   840.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             357.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   886 sec.
    Turnaround time :                            887 sec.

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

