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


Performing analysis on: 4FGL_J1839.6-7107_daily_bin695
RA = 279.914, Dec = -71.1243
tmin = 419472001, tmax = 419731201
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='227316', job_status='RUN', time_executed='2021-09-21 06:45:30.666524', time_epoch_executed='1632231930.67' WHERE source_name='4FGL J1839.6-7107' and cadence='daily' and bin_id='695'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/227316

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/227316/ft1_4FGL_J1839.6-7107_daily_bin695.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/227316/ft2_4FGL_J1839.6-7107_daily_bin695.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/227316/ft1_4FGL_J1839.6-7107_daily_bin695.fits outfile=/scratch/kocevski/227316/ft1_filteredMKT_4FGL_J1839.6-7107_daily_bin695.fits ra=279.914 dec=-71.1243 rad=12.0 tmin=419472001.0 tmax=419731201.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.74
user 5.47
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/227316/ft2_4FGL_J1839.6-7107_daily_bin695.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/227316/ft1_filteredMKT_4FGL_J1839.6-7107_daily_bin695.fits evtable="EVENTS" outfile="/scratch/kocevski/227316/ft1_filtered_4FGL_J1839.6-7107_daily_bin695.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/227316/ft1_filtered_4FGL_J1839.6-7107_daily_bin695.fits" evtable="EVENTS" scfile=/scratch/kocevski/227316/ft2_4FGL_J1839.6-7107_daily_bin695.fits sctable="SC_DATA" outfile=/scratch/kocevski/227316/ltcube_419472001_419731201_4FGL_J1839.6-7107_daily_bin695.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/227316/ft2_4FGL_J1839.6-7107_daily_bin695.fits
.....................!
real 12.04
user 11.70
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/227316/ft1_filtered_4FGL_J1839.6-7107_daily_bin695.fits evtable="EVENTS" scfile=/scratch/kocevski/227316/ft2_4FGL_J1839.6-7107_daily_bin695.fits sctable="SC_DATA" expcube=/scratch/kocevski/227316/ltcube_419472001_419731201_4FGL_J1839.6-7107_daily_bin695.fits outfile=/scratch/kocevski/227316/expmap_419472001_419731201_4FGL_J1839.6-7107_daily_bin695.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/227316/ltcube_419472001_419731201_4FGL_J1839.6-7107_daily_bin695.fits
.....................!
real 190.04
user 185.33
sys 4.37

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/227316/ft1_filtered_4FGL_J1839.6-7107_daily_bin695.fits scfile=/scratch/kocevski/227316/ft2_4FGL_J1839.6-7107_daily_bin695.fits outfile=/scratch/kocevski/227316/cmap_419472001_419731201_4FGL_J1839.6-7107_daily_bin695.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/227316/ft1_filtered_4FGL_J1839.6-7107_daily_bin695.fits scfile=/scratch/kocevski/227316/ft2_4FGL_J1839.6-7107_daily_bin695.fits outfile=/scratch/kocevski/227316/cmap_HighResolution_419472001_419731201_4FGL_J1839.6-7107_daily_bin695.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.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/227316/ft1_filtered_4FGL_J1839.6-7107_daily_bin695.fits evtable="EVENTS" scfile=/scratch/kocevski/227316/ft2_4FGL_J1839.6-7107_daily_bin695.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/227316/Model_4FGL_J1839.6-7107_daily_bin695.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/227316/ft1_filtered_4FGL_J1839.6-7107_daily_bin695.fits.....................!
real 116.06
user 114.63
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    29.744       1.0000         .10000E-03   10000.    
     4 'norm      '    54.278       1.0000         .10000E-03   10000.    
     5 'norm      '    .10093E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10202E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .22111E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10364E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    26.590       1.0000         .10000E-03   10000.    
    11 'norm      '    .10177E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .16696E-01   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10152E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    5.3898       1.0000         .10000E-03   10000.    
    15 'norm      '    104.51       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.2108       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .95941       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=   12232.95     FROM MIGRAD    STATUS=CONVERGED    381 CALLS     1758 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .47009        .38950E-07** at limit **
   2  Prefactor     .10000E-03    9.3164        .37933E-07** at limit **
   3  Prefactor     29.715        80.507       -.39346E-04    .25382E-05
   4  norm          54.274        12.378       -.44524E-06    .38656E-04
   5  norm          .10000E-03    37.644        .42315E-05** at limit **
   6  Prefactor     .10000E-03    6.4014       -.27949E-07** at limit **
   7  Prefactor     .10000E-03    6.4971       -.84854E-06** at limit **
   8  Prefactor     .10000E-03    61.552        .27266E-05** at limit **
   9  norm          .10000E-03    17.646       -.58410E-07** at limit **
  10  norm          26.609        12.514        .22077E-05    .72507E-03
  11  norm          .10000E-03    7.3946       -.68752E-09** at limit **
  12  Prefactor     .10003E-03    12.484       -.28112E-05** at limit **
  13  Prefactor     .10000E-03    43.537       -.45419E-05** at limit **
  14  norm          5.3900        1.6436       -.73105E-07    .10796E-03
  15  norm          104.50        75.912       -.79123E-05    .10386E-04
  16  Prefactor     .10000E-03    3.3244       -.11456E-07** at limit **
  17  Normalizat    1.2106        .25025        .11089E-05    .35216E-03
  18  Prefactor     .95950        .79175E-01    .42288E-06    .75776E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 29.7153
  norm       = 54.2745
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 26.6087
  norm       = 0.0001
  Prefactor  = 0.000100025
  Prefactor  = 0.0001
  norm       = 5.38997
  norm       = 104.498
  Prefactor  = 0.0001
  Normalizat = 1.21056
  Prefactor  = 0.959504
 **********
 **   18 **HESSE 
 **********

 FCN=   12232.95     FROM HESSE     STATUS=OK           246 CALLS     2004 TOTAL
                     EDM=   .63E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .48494        .14797E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    9.3195        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     29.715        80.074        .73463E-04   -1.4617    
   4  norm          54.274        12.367        .54444E-04   -1.4233    
   5  norm          .10000E-03    37.678        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.4113        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    52.293        .53516E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    61.607        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    17.715        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          26.609        12.725        .77689E-04   -1.4676    
  11  norm          .10000E-03    7.4848        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10003E-03    15.323        .98453E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    43.688        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          5.3900        1.6456        .75297E-04   -1.5244    
  15  norm          104.50        75.837        .39334E-04   -1.3660    
  16  Prefactor     .10000E-03    3.3249        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.2106        .30115        .45250E-03   -.86277    
  18  Prefactor     .95950        .96172E-01    .16285E-03   -.94092    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.33187e-10
Minuit parameter uncertainties:
  1  3.19529e-06
  2  1.00292e-05
  3  80.366
  4  12.3675
  5  9.6837e-05
  6  3.90698e-06
  7  0.000924463
  8  3.59345e-05
  9  3.40179e-05
  10  12.7267
  11  4.63783e-06
  12  0.00124295
  13  1.59598e-05
  14  1.64564
  15  75.9078
  16  9.55066e-07
  17  0.301579
  18  0.0961891
Done.

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

Extracting fit parameters...

4FGL J1839.6-7107
   Spectrum: LogParabola
454         norm:  1.000e-04  3.402e-05  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.595e-01  9.619e-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.211e+00  3.016e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 279.914 -71.124
Photon Flux Upper Limit: 9.96e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.39e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/227316/likelihoodResults_419472001_419731201_4FGL_J1839.6-7107_daily_bin695.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) = 12232.9496772
delta logL = -0.000269012834906

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 12232.9494082
delta logL = -1.64982338902e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6777       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2105       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95952       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=   12232.95     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      228 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10023E-03    6783.6        .18142E-02** at limit **
   2  alpha         2.7510        2.7552        .16513       -.62288E-06
   3  Normalizat    1.2106        .18537        .45250E-03    .39897E-04
   4  Prefactor     .95950        .60645E-01    .16285E-03   -.67835E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100232
  alpha      = 2.75101
  Normalizat = 1.21056
  Prefactor  = 0.959502
 **********
 **   18 **HESSE 
 **********

 FCN=   12232.95     FROM HESSE     STATUS=OK            23 CALLS      251 TOTAL
                     EDM=   .29E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10023E-03    17.938        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.7510        3.2610        .33027E-01    .10057    
   3  Normalizat    1.2106        .29189        .18100E-04   -.86277    
   4  Prefactor     .95950        .95602E-01    .32569E-04   -.94092    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.86568e-08
Minuit parameter uncertainties:
  1  0.00408419
  2  478.883
  3  0.292283
  4  0.0956187
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/227316': 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) = 12232.9494081
delta logL = 2.62953108177e-08

Extracting fit parameters...

4FGL J1839.6-7107
   Spectrum: LogParabola
454         norm:  1.002e-04  4.084e-03  1.000e-04  1.000e+04 ( 1.000e-12)
455        alpha:  2.751e+00  4.789e+02  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.595e-01  9.562e-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.211e+00  2.923e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

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/227316/cmap_HighResolution_419472001_419731201_4FGL_J1839.6-7107_daily_bin695.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.39e-05', job_status='DONE', photon_flux_upper_limit='9.96e-08', time_completed='2021-09-21 07:01:53.985193', job_id='227316', GAL2='0.96', fit_tolerance='1e-08', EG2='1.21', EG='1.21', time_epoch_completed='1632232913.99', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='2.63e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.67' WHERE bin_id='695' AND source_name='4FGL J1839.6-7107' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 21 07:01:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0280>
Subject: Job 227316: <4FGL_J1839.6-7107_daily_bin695> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1839.6-7107_daily_bin695 279.914 -71.1243 419472001 419731201 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 :                                   981.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             345.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   997 sec.
    Turnaround time :                            999 sec.

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

