/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 62 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 = 7413
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1839.6-7107_daily_bin265
RA = 279.914, Dec = -71.1243
tmin = 308016001, tmax = 308275201
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='222448', job_status='RUN', time_executed='2021-09-21 06:26:36.612318', time_epoch_executed='1632230796.61' WHERE source_name='4FGL J1839.6-7107' and cadence='daily' and bin_id='265'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/222448

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/222448/ft1_4FGL_J1839.6-7107_daily_bin265.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/222448/ft2_4FGL_J1839.6-7107_daily_bin265.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/222448/ft1_4FGL_J1839.6-7107_daily_bin265.fits outfile=/scratch/kocevski/222448/ft1_filteredMKT_4FGL_J1839.6-7107_daily_bin265.fits ra=279.914 dec=-71.1243 rad=12.0 tmin=308016001.0 tmax=308275201.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.64
user 3.19
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/222448/ft2_4FGL_J1839.6-7107_daily_bin265.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/222448/ft1_filteredMKT_4FGL_J1839.6-7107_daily_bin265.fits evtable="EVENTS" outfile="/scratch/kocevski/222448/ft1_filtered_4FGL_J1839.6-7107_daily_bin265.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/222448/ft1_filtered_4FGL_J1839.6-7107_daily_bin265.fits" evtable="EVENTS" scfile=/scratch/kocevski/222448/ft2_4FGL_J1839.6-7107_daily_bin265.fits sctable="SC_DATA" outfile=/scratch/kocevski/222448/ltcube_308016001_308275201_4FGL_J1839.6-7107_daily_bin265.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/222448/ft2_4FGL_J1839.6-7107_daily_bin265.fits
.....................!
real 14.17
user 12.42
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/222448/ft1_filtered_4FGL_J1839.6-7107_daily_bin265.fits evtable="EVENTS" scfile=/scratch/kocevski/222448/ft2_4FGL_J1839.6-7107_daily_bin265.fits sctable="SC_DATA" expcube=/scratch/kocevski/222448/ltcube_308016001_308275201_4FGL_J1839.6-7107_daily_bin265.fits outfile=/scratch/kocevski/222448/expmap_308016001_308275201_4FGL_J1839.6-7107_daily_bin265.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/222448/ltcube_308016001_308275201_4FGL_J1839.6-7107_daily_bin265.fits
.....................!
real 190.90
user 185.44
sys 4.66

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/222448/ft1_filtered_4FGL_J1839.6-7107_daily_bin265.fits scfile=/scratch/kocevski/222448/ft2_4FGL_J1839.6-7107_daily_bin265.fits outfile=/scratch/kocevski/222448/cmap_308016001_308275201_4FGL_J1839.6-7107_daily_bin265.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/222448/ft1_filtered_4FGL_J1839.6-7107_daily_bin265.fits scfile=/scratch/kocevski/222448/ft2_4FGL_J1839.6-7107_daily_bin265.fits outfile=/scratch/kocevski/222448/cmap_HighResolution_308016001_308275201_4FGL_J1839.6-7107_daily_bin265.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.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/222448/ft1_filtered_4FGL_J1839.6-7107_daily_bin265.fits evtable="EVENTS" scfile=/scratch/kocevski/222448/ft2_4FGL_J1839.6-7107_daily_bin265.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/222448/Model_4FGL_J1839.6-7107_daily_bin265.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/222448/ft1_filtered_4FGL_J1839.6-7107_daily_bin265.fits.....................!
real 95.52
user 92.43
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10782E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    9.6796       1.0000         .10000E-03   10000.    
     5 'norm      '    16.718       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.6132       1.0000         .10000E-03   10000.    
     9 'norm      '    25.216       1.0000         .10000E-03   10000.    
    10 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    10.836       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    26.821       1.0000         .10000E-03   10000.    
    14 'norm      '    .10278E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.4177       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .98253       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=   10056.02     FROM MIGRAD    STATUS=CONVERGED    377 CALLS     1758 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10630E-03    .35237       -.33250E-06** at limit **
   2  Prefactor     .10000E-03    11.798       -.26538E-06** at limit **
   3  Prefactor     .10000E-03    40.672        .11397E-04** at limit **
   4  norm          9.6798        6.2014        .55518E-06    .59424E-04
   5  norm          16.549        55.448       -.11382E-04    .28685E-05
   6  Prefactor     .10000E-03    7.2969       -.83152E-05** at limit **
   7  Prefactor     .10000E-03    7.6795        .79863E-06** at limit **
   8  Prefactor     6.6116        208.05       -.72451E-05   -.18499E-05
   9  norm          25.214        25.814        .49661E-05    .82079E-05
  10  norm          .10000E-03    2.6109       -.18317E-06** at limit **
  11  norm          10.835        7.0163       -.10780E-05   -.22617E-02
  12  Prefactor     .10000E-03    6.8278       -.14128E-05** at limit **
  13  Prefactor     26.820        22.169        .17118E-05    .23387E-05
  14  norm          .10000E-03    .66240       -.64807E-07** at limit **
  15  norm          .10000E-03    22.083        .34856E-06** at limit **
  16  Prefactor     .10000E-03    7.2249        .86197E-05** at limit **
  17  Normalizat    1.4178        .24609       -.14594E-05    .15149E-03
  18  Prefactor     .98254        .84140E-01    .50034E-06    .13115E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000106295
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.67985
  norm       = 16.5489
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.61159
  norm       = 25.2137
  norm       = 0.0001
  norm       = 10.8348
  Prefactor  = 0.0001
  Prefactor  = 26.8197
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.41778
  Prefactor  = 0.982537
 **********
 **   18 **HESSE 
 **********

 FCN=   10056.02     FROM HESSE     STATUS=OK           250 CALLS     2008 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10630E-03    1.1333        .20565E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    11.806        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    40.495        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          9.6798        6.1952        .12880E-03   -1.5086    
   5  norm          16.549        55.394        .97956E-04   -1.4894    
   6  Prefactor     .10000E-03    7.1893        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7.7061        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     6.6116        208.43        .15605E-03   -1.5194    
   9  norm          25.214        25.744        .79773E-04   -1.4703    
  10  norm          .10000E-03    2.6143        .15824E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          10.835        7.3320        .60855E-03   -1.5050    
  12  Prefactor     .10000E-03    6.8826        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     26.820        22.163        .77354E-04   -1.4672    
  14  norm          .10000E-03    1.2780        .15818E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    22.095        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    7.1049        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.4178        .29434        .39907E-03   -.80116    
  18  Prefactor     .98254        .10157        .16150E-03   -.93314    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.4115e-09
Minuit parameter uncertainties:
  1  0.00534217
  2  1.26673e-05
  3  1.36526e-05
  4  6.19557
  5  55.5672
  6  1.24579e-06
  7  2.52795e-06
  8  74.5293
  9  25.7558
  10  3.59702e-06
  11  7.33265
  12  1.3305e-05
  13  22.1695
  14  1.04423e-05
  15  1.75468e-06
  16  1.54811e-06
  17  0.294689
  18  0.101587
Done.

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

Extracting fit parameters...

4FGL J1839.6-7107
   Spectrum: LogParabola
454         norm:  2.521e+01  2.576e+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.825e-01  1.016e-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.418e+00  2.947e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.22
Ra Dec: 279.914 -71.124
Photon Index (Fixed Index): 2.67 +/- 0.00
Photon Flux (Fixed Index): 5.31e-08 +/- 5.42e-08
Energy Flux (Fixed Index): 1.27e-05 +/- 1.30e-05

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

Saving results to:
/scratch/kocevski/222448/likelihoodResults_308016001_308275201_4FGL_J1839.6-7107_daily_bin265.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) = 10055.6983202
delta logL = 0.321573193154

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10055.5894314
delta logL = 0.430462011676

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    13.018       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.9376       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3607       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99631       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   10055.59     FROM MIGRAD    STATUS=FAILED        89 CALLS      256 TOTAL
                     EDM=   .48E-06    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          13.006        130.35        .11102E-03   -.42190E-04
   2  alpha         3.9385        4.1102        .35168E-01    .23201E-03
   3  Normalizat    1.3607        .31036        .40593E-03   -.51588E-04
   4  Prefactor     .99630        .10756        .16048E-03   -.20476E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   10055.59     FROM SIMPLEX   STATUS=UNCHANGED     81 CALLS      337 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          13.006        130.35        .28795E-03   -1.4987    
   2  alpha         3.9385        4.1102        .24730E-02    .61308    
   3  Normalizat    1.3607        .31036        .40611E-03   -.81771    
   4  Prefactor     .99630        .10756        .11926E-03   -.92853    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10055.59     FROM MIGRAD    STATUS=CONVERGED     28 CALLS      365 TOTAL
                     EDM=   .32E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          13.006        25.541        .44408E-05   -.12288E-04
   2  alpha         3.9385        1.6209        .70335E-02    .10506E-05
   3  Normalizat    1.3607        .30113        .16237E-04   -.28006E-06
   4  Prefactor     .99630        .10231        .32097E-04   -.56672E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 13.0061
  alpha      = 3.93847
  Normalizat = 1.36073
  Prefactor  = 0.996296
 **********
 **   18 **HESSE 
 **********

 FCN=   10055.59     FROM HESSE     STATUS=OK            25 CALLS      390 TOTAL
                     EDM=   .15E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          13.006        23.316        .88815E-06   -1.4987    
   2  alpha         3.9385        1.5169        .28134E-03    .61308    
   3  Normalizat    1.3607        .30122        .32475E-05   -.81771    
   4  Prefactor     .99630        .10229        .64193E-05   -.92853    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.52548e-12
Minuit parameter uncertainties:
  1  23.3324
  2  1.70913
  3  0.301607
  4  0.102309
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/222448': 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) = 10055.5894313
delta logL = 0.430462180406

Extracting fit parameters...

4FGL J1839.6-7107
   Spectrum: LogParabola
454         norm:  1.301e+01  2.333e+01  1.000e-04  1.000e+04 ( 1.000e-12)
455        alpha:  3.938e+00  1.709e+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.963e-01  1.023e-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.361e+00  3.016e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.17
Ra Dec: 279.914 -71.124
Photon Index (Free Index): 3.94 +/- 1.71
Photon Flux (Free Index): 8.87e-08 +/- 7.07e-08
Energy Flux (Free Index): 1.43e-05 +/- 1.14e-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/222448/cmap_HighResolution_308016001_308275201_4FGL_J1839.6-7107_daily_bin265.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.92e-05', comment='SUCCESS', photon_flux='5.31e-08', energy_flux2='1.43e-05', photon_flux_error='5.42e-08', dlogl='4.30e-01', energy_flux='1.27e-05', photon_flux2='8.87e-08', job_status='DONE', time_completed='2021-09-21 06:41:35.063599', photon_index_error2='1.71', photon_index2='3.94', ts='1.22', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='1.64e-07', energy_flux_error2='1.14e-05', EG='1.42', time_epoch_completed='1632231695.06', return_code='0', job_id='222448', GAL2='1.00', EG2='1.36', return_code2='0', energy_flux_error='1.30e-05', photon_flux_error2='7.07e-08', ts2='2.17', photon_index='2.67' WHERE bin_id='265' AND source_name='4FGL J1839.6-7107' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 21 06:41:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0238>
Subject: Job 222448: <4FGL_J1839.6-7107_daily_bin265> in cluster <slac> Done

Job <4FGL_J1839.6-7107_daily_bin265> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep 21 06:25:21 2021
Job was executed on host(s) <bullet0238>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 21 06:25: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:25:23 2021
Terminated at Tue Sep 21 06:41:35 2021
Results reported at Tue Sep 21 06:41:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1839.6-7107_daily_bin265 279.914 -71.1243 308016001 308275201 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 :                                   890.34 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             336.66 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   984 sec.
    Turnaround time :                            974 sec.

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

