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


Performing analysis on: 4FGL_J1839.6-7107_daily_bin737
RA = 279.914, Dec = -71.1243
tmin = 430358401, tmax = 430617601
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='227383', job_status='RUN', time_executed='2021-09-21 06:48:49.735542', time_epoch_executed='1632232129.74' WHERE source_name='4FGL J1839.6-7107' and cadence='daily' and bin_id='737'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/227383

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/227383/ft1_4FGL_J1839.6-7107_daily_bin737.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/227383/ft2_4FGL_J1839.6-7107_daily_bin737.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/227383/ft1_4FGL_J1839.6-7107_daily_bin737.fits outfile=/scratch/kocevski/227383/ft1_filteredMKT_4FGL_J1839.6-7107_daily_bin737.fits ra=279.914 dec=-71.1243 rad=12.0 tmin=430358401.0 tmax=430617601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 5.98
user 5.71
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/227383/ft1_filtered_4FGL_J1839.6-7107_daily_bin737.fits" evtable="EVENTS" scfile=/scratch/kocevski/227383/ft2_4FGL_J1839.6-7107_daily_bin737.fits sctable="SC_DATA" outfile=/scratch/kocevski/227383/ltcube_430358401_430617601_4FGL_J1839.6-7107_daily_bin737.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/227383/ft2_4FGL_J1839.6-7107_daily_bin737.fits
.....................!
real 12.17
user 11.79
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/227383/ft1_filtered_4FGL_J1839.6-7107_daily_bin737.fits evtable="EVENTS" scfile=/scratch/kocevski/227383/ft2_4FGL_J1839.6-7107_daily_bin737.fits sctable="SC_DATA" expcube=/scratch/kocevski/227383/ltcube_430358401_430617601_4FGL_J1839.6-7107_daily_bin737.fits outfile=/scratch/kocevski/227383/expmap_430358401_430617601_4FGL_J1839.6-7107_daily_bin737.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/227383/ltcube_430358401_430617601_4FGL_J1839.6-7107_daily_bin737.fits
.....................!
real 191.32
user 185.60
sys 5.36

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/227383/ft1_filtered_4FGL_J1839.6-7107_daily_bin737.fits scfile=/scratch/kocevski/227383/ft2_4FGL_J1839.6-7107_daily_bin737.fits outfile=/scratch/kocevski/227383/cmap_430358401_430617601_4FGL_J1839.6-7107_daily_bin737.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.56
user 0.36
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/227383/ft1_filtered_4FGL_J1839.6-7107_daily_bin737.fits scfile=/scratch/kocevski/227383/ft2_4FGL_J1839.6-7107_daily_bin737.fits outfile=/scratch/kocevski/227383/cmap_HighResolution_430358401_430617601_4FGL_J1839.6-7107_daily_bin737.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/227383/ft1_filtered_4FGL_J1839.6-7107_daily_bin737.fits evtable="EVENTS" scfile=/scratch/kocevski/227383/ft2_4FGL_J1839.6-7107_daily_bin737.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/227383/Model_4FGL_J1839.6-7107_daily_bin737.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/227383/ft1_filtered_4FGL_J1839.6-7107_daily_bin737.fits.....................!
real 62.57
user 61.20
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10028E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    48.981       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    15.765       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.954       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    27.644       1.0000         .10000E-03   10000.    
    10 'norm      '    3.2376       1.0000         .10000E-03   10000.    
    11 'norm      '    12.724       1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.0232       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.0973       1.0000         .10000E-03   10000.    
    15 'norm      '    .10072E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.2808       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .91085       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=   5892.452     FROM MIGRAD    STATUS=CONVERGED    346 CALLS     1694 TOTAL
                     EDM=   .55E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .40083        .17053E-06** at limit **
   2  Prefactor     48.977        36.743       -.23147E-05   -.12921E-04
   3  Prefactor     .10000E-03    116.84       -.27201E-04** at limit **
   4  norm          15.765        9.3848        .22349E-06   -.24889E-04
   5  norm          .10000E-03    37.276        .11159E-05** at limit **
   6  Prefactor     10.951        21.056        .10182E-06   -.15328E-04
   7  Prefactor     .10000E-03    8.7130       -.65710E-07** at limit **
   8  Prefactor     .10000E-03    58.551       -.23726E-04** at limit **
   9  norm          27.646        35.374        .14621E-05   -.16788E-04
  10  norm          3.2384        7.8993        .50723E-05   -.20559E-03
  11  norm          12.724        9.0094       -.70838E-06   -.67187E-04
  12  Prefactor     6.0235        7.1856        .22888E-05    .69542E-05
  13  Prefactor     .10000E-03    14.372       -.16806E-06** at limit **
  14  norm          2.0973        1.6215        .19350E-06   -.24412E-03
  15  norm          .10000E-03    72.402        .41524E-04** at limit **
  16  Prefactor     .10000E-03    7.5863       -.22969E-06** at limit **
  17  Normalizat    1.2808        .31893       -.11745E-05   -.85028E-05
  18  Prefactor     .91080        .10798        .37539E-06   -.98840E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 48.9766
  Prefactor  = 0.0001
  norm       = 15.7647
  norm       = 0.0001
  Prefactor  = 10.9513
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 27.6463
  norm       = 3.23835
  norm       = 12.7245
  Prefactor  = 6.02352
  Prefactor  = 0.0001
  norm       = 2.09733
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.28077
  Prefactor  = 0.910805
 **********
 **   18 **HESSE 
 **********

 FCN=   5892.452     FROM HESSE     STATUS=OK           242 CALLS     1936 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .40328        .47371E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     48.977        36.687        .57297E-04   -1.4307    
   3  Prefactor     .10000E-03    117.01        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          15.765        9.3871        .10087E-03   -1.4914    
   5  norm          .10000E-03    37.299        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     10.951        21.047        .12105E-03   -1.5046    
   7  Prefactor     .10000E-03    8.7244        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    58.650        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          27.646        35.443        .76196E-04   -1.4656    
  10  norm          3.2384        7.8154        .22511E-03   -1.5348    
  11  norm          12.724        9.0139        .11230E-03   -1.4994    
  12  Prefactor     6.0235        7.1882        .16360E-03   -1.5217    
  13  Prefactor     .10000E-03    14.377        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.0973        1.6177        .82959E-04   -1.5418    
  15  norm          .10000E-03    72.710        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    7.5921        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.2808        .38926        .39675E-03   -.84142    
  18  Prefactor     .91080        .13250        .15882E-03   -.95765    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.15189e-10
Minuit parameter uncertainties:
  1  2.21933e-06
  2  36.7044
  3  3.19071e-05
  4  9.38799
  5  2.45931e-07
  6  21.0616
  7  3.39646e-06
  8  4.93369e-07
  9  35.47
  10  7.81791
  11  9.01481
  12  7.18926
  13  2.60627e-06
  14  1.61772
  15  4.71514e-05
  16  4.42703e-07
  17  0.390152
  18  0.132543
Done.

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

Extracting fit parameters...

4FGL J1839.6-7107
   Spectrum: LogParabola
454         norm:  2.765e+01  3.547e+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.108e-01  1.325e-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:  1.281e+00  3.902e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/227383/likelihoodResults_430358401_430617601_4FGL_J1839.6-7107_daily_bin737.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) = 5892.45203083
delta logL = 7.49865284888e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5892.4520259
delta logL = 1.24268608488e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    27.571       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6804       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2803       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91088       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5892.452     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      268 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          27.578        39.647        .76296E-04    .14454E-04
   2  alpha         2.6810        1.6242        .37689E-01    .71016E-04
   3  Normalizat    1.2803        .39533        .39681E-03    .66181E-05
   4  Prefactor     .91092        .13415        .15881E-03   -.11659E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 27.5781
  alpha      = 2.68096
  Normalizat = 1.28032
  Prefactor  = 0.910922
 **********
 **   18 **HESSE 
 **********

 FCN=   5892.452     FROM HESSE     STATUS=OK            25 CALLS      293 TOTAL
                     EDM=   .46E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          27.578        38.135        .30519E-05   -1.4657    
   2  alpha         2.6810        1.5699        .75378E-02    .72445E-01
   3  Normalizat    1.2803        .39517        .15873E-04   -.84156    
   4  Prefactor     .91092        .13404        .31762E-04   -.95760    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.55846e-11
Minuit parameter uncertainties:
  1  38.1685
  2  1.6982
  3  0.396108
  4  0.13409
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/227383': 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) = 5892.45202561
delta logL = 1.27131042973e-05

Extracting fit parameters...

4FGL J1839.6-7107
   Spectrum: LogParabola
454         norm:  2.758e+01  3.817e+01  1.000e-04  1.000e+04 ( 1.000e-12)
455        alpha:  2.681e+00  1.698e+00  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.109e-01  1.341e-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:  1.280e+00  3.961e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.77
Ra Dec: 279.914 -71.124

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/227383/cmap_HighResolution_430358401_430617601_4FGL_J1839.6-7107_daily_bin737.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.17e-05', job_status='DONE', photon_flux_upper_limit='2.16e-07', time_completed='2021-09-21 06:59:45.465843', job_id='227383', GAL2='0.91', fit_tolerance='1e-08', EG2='1.28', EG='1.28', time_epoch_completed='1632232785.47', return_code2='0', ts='0.77', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='1.27e-05', ts2='0.76', photon_index_error='0.00', photon_index='2.67' WHERE bin_id='737' AND source_name='4FGL J1839.6-7107' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 21 06:59:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0091>
Subject: Job 227383: <4FGL_J1839.6-7107_daily_bin737> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1839.6-7107_daily_bin737 279.914 -71.1243 430358401 430617601 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 :                                   656.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             268.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   862 sec.
    Turnaround time :                            865 sec.

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

