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


Performing analysis on: 4FGL_J1839.6-7107_daily_bin480
RA = 279.914, Dec = -71.1243
tmin = 363744001, tmax = 364003201
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='224767', job_status='RUN', time_executed='2021-09-21 06:37:31.009079', time_epoch_executed='1632231451.01' WHERE source_name='4FGL J1839.6-7107' and cadence='daily' and bin_id='480'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/224767

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/224767/ft1_4FGL_J1839.6-7107_daily_bin480.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/224767/ft2_4FGL_J1839.6-7107_daily_bin480.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/224767/ft1_4FGL_J1839.6-7107_daily_bin480.fits outfile=/scratch/kocevski/224767/ft1_filteredMKT_4FGL_J1839.6-7107_daily_bin480.fits ra=279.914 dec=-71.1243 rad=12.0 tmin=363744001.0 tmax=364003201.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.29
user 3.07
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/224767/ft2_4FGL_J1839.6-7107_daily_bin480.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/224767/ft1_filteredMKT_4FGL_J1839.6-7107_daily_bin480.fits evtable="EVENTS" outfile="/scratch/kocevski/224767/ft1_filtered_4FGL_J1839.6-7107_daily_bin480.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.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/224767/ft1_filtered_4FGL_J1839.6-7107_daily_bin480.fits" evtable="EVENTS" scfile=/scratch/kocevski/224767/ft2_4FGL_J1839.6-7107_daily_bin480.fits sctable="SC_DATA" outfile=/scratch/kocevski/224767/ltcube_363744001_364003201_4FGL_J1839.6-7107_daily_bin480.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/224767/ft2_4FGL_J1839.6-7107_daily_bin480.fits
.....................!
real 11.88
user 11.53
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/224767/ft1_filtered_4FGL_J1839.6-7107_daily_bin480.fits evtable="EVENTS" scfile=/scratch/kocevski/224767/ft2_4FGL_J1839.6-7107_daily_bin480.fits sctable="SC_DATA" expcube=/scratch/kocevski/224767/ltcube_363744001_364003201_4FGL_J1839.6-7107_daily_bin480.fits outfile=/scratch/kocevski/224767/expmap_363744001_364003201_4FGL_J1839.6-7107_daily_bin480.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/224767/ltcube_363744001_364003201_4FGL_J1839.6-7107_daily_bin480.fits
.....................!
real 192.28
user 186.87
sys 4.84

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/224767/ft1_filtered_4FGL_J1839.6-7107_daily_bin480.fits scfile=/scratch/kocevski/224767/ft2_4FGL_J1839.6-7107_daily_bin480.fits outfile=/scratch/kocevski/224767/cmap_363744001_364003201_4FGL_J1839.6-7107_daily_bin480.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/224767/ft1_filtered_4FGL_J1839.6-7107_daily_bin480.fits scfile=/scratch/kocevski/224767/ft2_4FGL_J1839.6-7107_daily_bin480.fits outfile=/scratch/kocevski/224767/cmap_HighResolution_363744001_364003201_4FGL_J1839.6-7107_daily_bin480.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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/224767/ft1_filtered_4FGL_J1839.6-7107_daily_bin480.fits evtable="EVENTS" scfile=/scratch/kocevski/224767/ft2_4FGL_J1839.6-7107_daily_bin480.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/224767/Model_4FGL_J1839.6-7107_daily_bin480.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/224767/ft1_filtered_4FGL_J1839.6-7107_daily_bin480.fits.....................!
real 102.90
user 101.40
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10131E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .14464E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .20844E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    4.3180       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.4993       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    74.693       1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    17.587       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.2609       1.0000         .10000E-03   10000.    
    15 'norm      '    38.049       1.0000         .10000E-03   10000.    
    16 'Prefactor '    12.891       1.0000         .10000E-03   10000.    
    17 'Normalizat'    .88627       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.1564       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=   11010.77     FROM MIGRAD    STATUS=CONVERGED    368 CALLS     1534 TOTAL
                     EDM=   .62E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .42635       -.31056E-08** at limit **
   2  Prefactor     .10000E-03    8.8916        .18698E-07** at limit **
   3  Prefactor     .10000E-03    120.92        .35359E-04** at limit **
   4  norm          .10001E-03    2.6369        .18380E-05** at limit **
   5  norm          4.2327        118.17       -.22355E-03    .10190E-04
   6  Prefactor     5.4983        10.440       -.33423E-06   -.79763E-04
   7  Prefactor     .10000E-03    3.1283       -.32745E-07** at limit **
   8  Prefactor     .10000E-03    39.817       -.44931E-05** at limit **
   9  norm          74.691        27.907       -.10035E-05    .23084E-04
  10  norm          .10000E-03    4.3392       -.77129E-07** at limit **
  11  norm          17.586        8.3253        .90138E-06   -.68028E-04
  12  Prefactor     .10000E-03    3.6633       -.31566E-07** at limit **
  13  Prefactor     .10000E-03    29.202        .14976E-05** at limit **
  14  norm          1.2612        1.4745       -.59192E-06   -.17020E-02
  15  norm          38.010        41.053       -.30272E-04    .25272E-05
  16  Prefactor     12.890        12.461       -.53865E-06    .30233E-05
  17  Normalizat    .88606        .25552        .27078E-05    .24433E-04
  18  Prefactor     1.1565        .89110E-01    .16954E-05   -.48670E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.000100008
  norm       = 4.2327
  Prefactor  = 5.49828
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 74.6909
  norm       = 0.0001
  norm       = 17.5864
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.26115
  norm       = 38.0099
  Prefactor  = 12.8903
  Normalizat = 0.886061
  Prefactor  = 1.15651
 **********
 **   18 **HESSE 
 **********

 FCN=   11010.77     FROM HESSE     STATUS=OK           242 CALLS     1776 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .79128        .13264E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    8.8952        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    121.54        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10001E-03    7.0502        .32903E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          4.2327        119.43        .19386E-03   -1.5296    
   6  Prefactor     5.4983        10.430        .17134E-03   -1.5239    
   7  Prefactor     .10000E-03    3.1309        .18124E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    39.826        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          74.691        27.888        .46458E-04   -1.3977    
  10  norm          .10000E-03    4.3922        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          17.586        8.3208        .95505E-04   -1.4869    
  12  Prefactor     .10000E-03    3.6702        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    29.356        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.2612        1.4546        .13161E-03   -1.5483    
  15  norm          38.010        41.051        .64976E-04   -1.4474    
  16  Prefactor     12.890        12.467        .11157E-03   -1.4990    
  17  Normalizat    .88606        .28540        .48711E-03   -.96952    
  18  Prefactor     1.1565        .10080        .15378E-03   -.87680    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.052e-09
Minuit parameter uncertainties:
  1  1.20363e-06
  2  3.4042e-06
  3  0.000905252
  4  0.000487264
  5  45.067
  6  10.4338
  7  6.86162e-06
  8  2.40185e-05
  9  27.8933
  10  1.86869e-05
  11  8.32136
  12  8.17893e-06
  13  3.17883e-05
  14  1.45465
  15  41.0818
  16  12.4695
  17  0.285885
  18  0.100815
Done.

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

Extracting fit parameters...

4FGL J1839.6-7107
   Spectrum: LogParabola
454         norm:  7.469e+01  2.789e+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.157e+00  1.008e-01  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:  8.861e-01  2.859e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 13.36
Ra Dec: 279.914 -71.124
Photon Index (Fixed Index): 2.67 +/- 0.00
Photon Flux (Fixed Index): 1.57e-07 +/- 5.87e-08
Energy Flux (Fixed Index): 3.77e-05 +/- 1.41e-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) = 11010.1685786
delta logL = 0.602686587448

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11010.0854086
delta logL = 0.685856568472

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    87.481       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1150       1.0000          .0000       5.0000    
     3 'Normalizat'    .94048       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1421       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=   11010.09     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      216 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          87.481        53.617        .10739E-02   -.12875E-02
   2  alpha         2.1150        .65044        .41037       -.80686E-05
   3  Normalizat    .94050        .25127        .10699        .45314E-04
   4  Prefactor     1.1421        .89034E-01    .36169E-01   -.12174E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 87.4809
  alpha      = 2.11501
  Normalizat = 0.940501
  Prefactor  = 1.14211
 **********
 **   18 **HESSE 
 **********

 FCN=   11010.09     FROM HESSE     STATUS=OK            31 CALLS      247 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          87.481        32.441        .42955E-04   -1.3835    
   2  alpha         2.1150        .44298        .16076E-01   -.15461    
   3  Normalizat    .94050        .28326        .47419E-03   -.95051    
   4  Prefactor     1.1421        .10054        .15457E-03   -.88132    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.03958e-09
Minuit parameter uncertainties:
  1  32.448
  2  0.445386
  3  0.28371
  4  0.100554
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/224767': 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) = 11010.0854086
delta logL = 0.685856579303

Extracting fit parameters...

4FGL J1839.6-7107
   Spectrum: LogParabola
454         norm:  8.748e+01  3.245e+01  1.000e-04  1.000e+04 ( 1.000e-12)
455        alpha:  2.115e+00  4.454e-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.142e+00  1.006e-01  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.405e-01  2.837e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 14.64
Ra Dec: 279.914 -71.124
Photon Index (Free Index): 2.12 +/- 0.45
Photon Flux (Free Index): 1.27e-07 +/- 5.58e-08
Energy Flux (Free Index): 4.31e-05 +/- 1.67e-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/224767/cmap_HighResolution_363744001_364003201_4FGL_J1839.6-7107_daily_bin480.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.57e-07', energy_flux2='4.31e-05', photon_flux_error='5.87e-08', dlogl='6.86e-01', energy_flux='3.77e-05', photon_flux2='1.27e-07', job_status='DONE', time_completed='2021-09-21 06:50:33.893892', photon_index_error2='0.45', photon_index2='2.12', ts='13.36', fit_tolerance='1e-08', GAL='1.16', photon_index_error='0.00', energy_flux_error2='1.67e-05', EG='0.89', time_epoch_completed='1632232233.89', return_code='0', job_id='224767', GAL2='1.14', EG2='0.94', return_code2='0', energy_flux_error='1.41e-05', photon_flux_error2='5.58e-08', ts2='14.64', photon_index='2.67' WHERE bin_id='480' AND source_name='4FGL J1839.6-7107' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 21 06:50:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0110>
Subject: Job 224767: <4FGL_J1839.6-7107_daily_bin480> in cluster <slac> Done

Job <4FGL_J1839.6-7107_daily_bin480> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Tue Sep 21 06:35:29 2021
Job was executed on host(s) <bullet0110>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 21 06:35: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:35:30 2021
Terminated at Tue Sep 21 06:50:34 2021
Results reported at Tue Sep 21 06:50:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1839.6-7107_daily_bin480 279.914 -71.1243 363744001 364003201 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 :                                   782.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             326.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   904 sec.
    Turnaround time :                            905 sec.

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

