/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 139 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 = 7484
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1839.6-7107_daily_bin99
RA = 279.914, Dec = -71.1243
tmin = 264988801, tmax = 265248001
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='219305', job_status='RUN', time_executed='2021-09-21 06:18:04.261195', time_epoch_executed='1632230284.26' WHERE source_name='4FGL J1839.6-7107' and cadence='daily' and bin_id='99'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/219305

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/219305/ft1_4FGL_J1839.6-7107_daily_bin99.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/219305/ft2_4FGL_J1839.6-7107_daily_bin99.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/219305/ft1_4FGL_J1839.6-7107_daily_bin99.fits outfile=/scratch/kocevski/219305/ft1_filteredMKT_4FGL_J1839.6-7107_daily_bin99.fits ra=279.914 dec=-71.1243 rad=12.0 tmin=264988801.0 tmax=265248001.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 1.59
user 1.26
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/219305/ft2_4FGL_J1839.6-7107_daily_bin99.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/219305/ft1_filteredMKT_4FGL_J1839.6-7107_daily_bin99.fits evtable="EVENTS" outfile="/scratch/kocevski/219305/ft1_filtered_4FGL_J1839.6-7107_daily_bin99.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.50
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/219305/ft1_filtered_4FGL_J1839.6-7107_daily_bin99.fits" evtable="EVENTS" scfile=/scratch/kocevski/219305/ft2_4FGL_J1839.6-7107_daily_bin99.fits sctable="SC_DATA" outfile=/scratch/kocevski/219305/ltcube_264988801_265248001_4FGL_J1839.6-7107_daily_bin99.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/219305/ft2_4FGL_J1839.6-7107_daily_bin99.fits
.....................!
real 12.82
user 12.46
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/219305/ft1_filtered_4FGL_J1839.6-7107_daily_bin99.fits evtable="EVENTS" scfile=/scratch/kocevski/219305/ft2_4FGL_J1839.6-7107_daily_bin99.fits sctable="SC_DATA" expcube=/scratch/kocevski/219305/ltcube_264988801_265248001_4FGL_J1839.6-7107_daily_bin99.fits outfile=/scratch/kocevski/219305/expmap_264988801_265248001_4FGL_J1839.6-7107_daily_bin99.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/219305/ltcube_264988801_265248001_4FGL_J1839.6-7107_daily_bin99.fits
.....................!
real 192.74
user 185.18
sys 4.26

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/219305/ft1_filtered_4FGL_J1839.6-7107_daily_bin99.fits scfile=/scratch/kocevski/219305/ft2_4FGL_J1839.6-7107_daily_bin99.fits outfile=/scratch/kocevski/219305/cmap_264988801_265248001_4FGL_J1839.6-7107_daily_bin99.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.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/219305/ft1_filtered_4FGL_J1839.6-7107_daily_bin99.fits scfile=/scratch/kocevski/219305/ft2_4FGL_J1839.6-7107_daily_bin99.fits outfile=/scratch/kocevski/219305/cmap_HighResolution_264988801_265248001_4FGL_J1839.6-7107_daily_bin99.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.55
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/219305/ft1_filtered_4FGL_J1839.6-7107_daily_bin99.fits evtable="EVENTS" scfile=/scratch/kocevski/219305/ft2_4FGL_J1839.6-7107_daily_bin99.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/219305/Model_4FGL_J1839.6-7107_daily_bin99.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/219305/ft1_filtered_4FGL_J1839.6-7107_daily_bin99.fits.....................!
real 89.76
user 88.25
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.8392       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    13.127       1.0000         .10000E-03   10000.    
     5 'norm      '    .13186E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .32471E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    12.884       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .59962E-01   1.0000         .10000E-03   10000.    
    14 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    20.115       1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.2371       1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.5390       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .86107       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=   9136.658     FROM MIGRAD    STATUS=CONVERGED    402 CALLS     1584 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.8391        1.4592        .83067E-07   -.29981E-03
   2  Prefactor     .10000E-03    13.490        .42701E-07** at limit **
   3  Prefactor     .10000E-03    45.452        .80830E-06** at limit **
   4  norm          13.128        8.4306       -.64995E-06   -.16360E-02
   5  norm          .10000E-03    78.689       -.99006E-06** at limit **
   6  Prefactor     .10000E-03    6.6366        .64887E-07** at limit **
   7  Prefactor     .10000E-03    3.9537        .18988E-07** at limit **
   8  Prefactor     .10000E-03    36.684       -.32384E-06** at limit **
   9  norm          .10000E-03    11.923        .54940E-07** at limit **
  10  norm          .10000E-03    4.1995        .24675E-06** at limit **
  11  norm          12.885        8.4974       -.39850E-06   -.61289E-04
  12  Prefactor     .10000E-03    3.4126        .11172E-07** at limit **
  13  Prefactor     .18817E-03    24.752       -.36449E-05** at limit **
  14  norm          .10000E-03    .60299        .87984E-07** at limit **
  15  norm          20.100        44.119        .77437E-04    .14919E-04
  16  Prefactor     9.2300        18.301       -.20803E-05   -.31357E-04
  17  Normalizat    1.5393        .25427        .45707E-06   -.14411E-04
  18  Prefactor     .86098        .85640E-01   -.12883E-05    .44752E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.83909
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 13.1277
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 12.8845
  Prefactor  = 0.0001
  Prefactor  = 0.000188167
  norm       = 0.0001
  norm       = 20.0997
  Prefactor  = 9.23001
  Normalizat = 1.53934
  Prefactor  = 0.860984
 **********
 **   18 **HESSE 
 **********

 FCN=   9136.658     FROM HESSE     STATUS=OK           252 CALLS     1836 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.8391        1.4550        .79275E-04   -1.5371    
   2  Prefactor     .10000E-03    13.497        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    45.465        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          13.128        8.4491        .55278E-03   -1.4983    
   5  norm          .10000E-03    78.953        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.6508        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.9596        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    36.688        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    11.953        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    20.577        .37948E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          12.885        8.5013        .11159E-03   -1.4990    
  12  Prefactor     .10000E-03    3.4165        .17244E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .18817E-03    24.931        .13910       -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    1.0713        .14402E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          20.100        43.986        .89304E-04   -1.4811    
  16  Prefactor     9.2300        18.370        .13187E-03   -1.5100    
  17  Normalizat    1.5393        .30886        .37564E-03   -.76679    
  18  Prefactor     .86098        .10485        .16382E-03   -.97518    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.17281e-09
Minuit parameter uncertainties:
  1  1.45506
  2  5.22094e-06
  3  2.43483e-05
  4  8.44989
  5  0.000120048
  6  7.43416e-06
  7  4.52777e-06
  8  8.99655e-06
  9  1.33968e-05
  10  9.52839e-05
  11  8.50206
  12  1.96949e-06
  13  0.0938072
  14  8.57275e-06
  15  44.0565
  16  18.381
  17  0.309236
  18  0.104874
Done.

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

Extracting fit parameters...

4FGL J1839.6-7107
   Spectrum: LogParabola
454         norm:  1.000e-04  1.340e-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:  8.610e-01  1.049e-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.539e+00  3.092e-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: 8.93e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.14e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/219305/likelihoodResults_264988801_265248001_4FGL_J1839.6-7107_daily_bin99.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) = 9136.65875595
delta logL = -0.000398710963054

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9136.65835723
delta logL = 2.39015207626e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6834       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5393       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86098       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=   9136.658     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      192 TOTAL
                     EDM=   .23E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    12.133        .90712E-02** at limit **
   2  alpha         2.6945        3.5981        .41292       -.46372E-05
   3  Normalizat    1.5393        .24833        .84854E-01    .17699E-04
   4  Prefactor     .86098        .84556E-01    .44506E-01    .14418E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.69449
  Normalizat = 1.53934
  Prefactor  = 0.860982
 **********
 **   18 **HESSE 
 **********

 FCN=   9136.658     FROM HESSE     STATUS=OK            27 CALLS      219 TOTAL
                     EDM=   .22E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    12.016        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.6945        3.5934        .16517E-01    .77873E-01
   3  Normalizat    1.5393        .30229        .37564E-03   -.76679    
   4  Prefactor     .86098        .10310        .16382E-03   -.97518    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.15191e-11
Minuit parameter uncertainties:
  1  7.23353e-07
  2  2.49269
  3  0.302647
  4  0.103125
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/219305': 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) = 9136.6583572
delta logL = 4.09181666328e-08

Extracting fit parameters...

4FGL J1839.6-7107
   Spectrum: LogParabola
454         norm:  1.000e-04  7.234e-07  1.000e-04  1.000e+04 ( 1.000e-12)
455        alpha:  2.694e+00  2.493e+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:  8.610e-01  1.031e-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.539e+00  3.026e-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/219305/cmap_HighResolution_264988801_265248001_4FGL_J1839.6-7107_daily_bin99.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.14e-05', job_status='DONE', photon_flux_upper_limit='8.93e-08', time_completed='2021-09-21 06:31:03.498003', job_id='219305', GAL2='0.86', fit_tolerance='1e-08', EG2='1.54', EG='1.54', time_epoch_completed='1632231063.5', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='4.09e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.67' WHERE bin_id='99' AND source_name='4FGL J1839.6-7107' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 21 06:31:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0152>
Subject: Job 219305: <4FGL_J1839.6-7107_daily_bin99> in cluster <slac> Done

Job <4FGL_J1839.6-7107_daily_bin99> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Tue Sep 21 06:15:33 2021
Job was executed on host(s) <bullet0152>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 21 06:15:34 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:15:34 2021
Terminated at Tue Sep 21 06:31:04 2021
Results reported at Tue Sep 21 06:31:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1839.6-7107_daily_bin99 279.914 -71.1243 264988801 265248001 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 :                                   774.27 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             318.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   929 sec.
    Turnaround time :                            931 sec.

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

