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


Performing analysis on: 4FGL_J0939.3-1732_daily_bin1587
RA = 144.836, Dec = -17.5418
tmin = 650678401, tmax = 650937601
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='385503', job_status='RUN', time_executed='2021-08-31 20:02:35.139946', time_epoch_executed='1630465355.14' WHERE source_name='4FGL J0939.3-1732' and cadence='daily' and bin_id='1587'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/385503

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/385503/ft1_4FGL_J0939.3-1732_daily_bin1587.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/385503/ft2_4FGL_J0939.3-1732_daily_bin1587.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/385503/ft1_4FGL_J0939.3-1732_daily_bin1587.fits outfile=/scratch/kocevski/385503/ft1_filteredMKT_4FGL_J0939.3-1732_daily_bin1587.fits ra=144.836 dec=-17.5418 rad=12.0 tmin=650678401.0 tmax=650937601.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.73
user 3.48
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/385503/ft2_4FGL_J0939.3-1732_daily_bin1587.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/385503/ft2_4FGL_J0939.3-1732_daily_bin1587.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/385503/ft1_filteredMKT_4FGL_J0939.3-1732_daily_bin1587.fits evtable="EVENTS" outfile="/scratch/kocevski/385503/ft1_filtered_4FGL_J0939.3-1732_daily_bin1587.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.51
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/385503/ft1_filtered_4FGL_J0939.3-1732_daily_bin1587.fits" evtable="EVENTS" scfile=/scratch/kocevski/385503/ft2_4FGL_J0939.3-1732_daily_bin1587.fits sctable="SC_DATA" outfile=/scratch/kocevski/385503/ltcube_650678401_650937601_4FGL_J0939.3-1732_daily_bin1587.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/385503/ft2_4FGL_J0939.3-1732_daily_bin1587.fits
.....................!
real 11.65
user 11.29
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/385503/ft1_filtered_4FGL_J0939.3-1732_daily_bin1587.fits evtable="EVENTS" scfile=/scratch/kocevski/385503/ft2_4FGL_J0939.3-1732_daily_bin1587.fits sctable="SC_DATA" expcube=/scratch/kocevski/385503/ltcube_650678401_650937601_4FGL_J0939.3-1732_daily_bin1587.fits outfile=/scratch/kocevski/385503/expmap_650678401_650937601_4FGL_J0939.3-1732_daily_bin1587.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/385503/ltcube_650678401_650937601_4FGL_J0939.3-1732_daily_bin1587.fits
.....................!
real 191.00
user 186.56
sys 4.05

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
Added 169 point sources and 0 extended sources

Setting source of interest to:
4FGL J0939.3-1732 @ 144.836 -17.5418

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/385503/ft1_filtered_4FGL_J0939.3-1732_daily_bin1587.fits scfile=/scratch/kocevski/385503/ft2_4FGL_J0939.3-1732_daily_bin1587.fits outfile=/scratch/kocevski/385503/cmap_650678401_650937601_4FGL_J0939.3-1732_daily_bin1587.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=144.836 yref=-17.5418 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.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/385503/ft1_filtered_4FGL_J0939.3-1732_daily_bin1587.fits scfile=/scratch/kocevski/385503/ft2_4FGL_J0939.3-1732_daily_bin1587.fits outfile=/scratch/kocevski/385503/cmap_HighResolution_650678401_650937601_4FGL_J0939.3-1732_daily_bin1587.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=144.836 yref=-17.5418 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.57
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/385503/ft1_filtered_4FGL_J0939.3-1732_daily_bin1587.fits evtable="EVENTS" scfile=/scratch/kocevski/385503/ft2_4FGL_J0939.3-1732_daily_bin1587.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/385503/Model_4FGL_J0939.3-1732_daily_bin1587.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 GAL_V02
Working on...
/scratch/kocevski/385503/ft1_filtered_4FGL_J0939.3-1732_daily_bin1587.fits.....................!
real 91.78
user 90.24
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/385503/ft1_filtered_4FGL_J0939.3-1732_daily_bin1587.fits', '/scratch/kocevski/385503/ft2_4FGL_J0939.3-1732_daily_bin1587.fits', expMap='/scratch/kocevski/385503/expmap_650678401_650937601_4FGL_J0939.3-1732_daily_bin1587.fits', expCube='/scratch/kocevski/385503/ltcube_650678401_650937601_4FGL_J0939.3-1732_daily_bin1587.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/385503/Model_4FGL_J0939.3-1732_daily_bin1587.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0939.3-1732'

4FGL J0939.3-1732
   Spectrum: PowerLaw
260    Prefactor:  3.013e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
261        Index:  2.263e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
262        Scale:  1.278e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/385503/ft1_filtered_4FGL_J0939.3-1732_daily_bin1587.fits
Spacecraft file(s): /scratch/kocevski/385503/ft2_4FGL_J0939.3-1732_daily_bin1587.fits
Exposure map: /scratch/kocevski/385503/expmap_650678401_650937601_4FGL_J0939.3-1732_daily_bin1587.fits
Exposure cube: /scratch/kocevski/385503/ltcube_650678401_650937601_4FGL_J0939.3-1732_daily_bin1587.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/385503/Model_4FGL_J0939.3-1732_daily_bin1587.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) = 8985.40014765

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .19353E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.1280       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10957E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    13.878       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10285E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.3401       1.0000         .10000E-03   10000.    
     8 'norm      '    3.3105       1.0000         .10000E-03   10000.    
     9 'norm      '    10.008       1.0000         .10000E-03   10000.    
    10 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10114E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .96817       1.0000         .10000E-03   10000.    
    13 'norm      '    3.3972       1.0000         .10000E-03   10000.    
    14 'norm      '    1.7216       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.7688       1.0000         .10000E-03   10000.    
    16 'Normalizat'    .94556       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.0027       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5570E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8985.370     FROM MIGRAD    STATUS=CONVERGED    329 CALLS     1631 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10031E-03    3.6342       -.24138E-05** at limit **
   2  Prefactor     8.1162        11.336       -.13958E-06    .35421E-04
   3  Prefactor     .10035E-03    3.9317       -.14623E-05** at limit **
   4  Prefactor     .10000E-03    8.5246       -.11033E-06** at limit **
   5  Prefactor     13.869        27.337       -.14183E-04    .73725E-05
   6  Prefactor     .10000E-03    27.973        .24501E-04** at limit **
   7  Prefactor     5.3380        14.381       -.23672E-05   -.10443E-03
   8  norm          3.3124        4.4464       -.77434E-06   -.62619E-03
   9  norm          10.009        6.1128       -.24821E-06   -.37594E-03
  10  norm          .10000E-03    1.3349        .73816E-07** at limit **
  11  norm          .10000E-03    4.8247       -.21726E-07** at limit **
  12  norm          .96635        1.2763       -.65758E-07   -.43942E-03
  13  norm          3.3965        6.5854       -.23288E-05   -.32440E-03
  14  norm          1.7212        1.0364       -.14910E-06   -.56765E-03
  15  Prefactor     3.7686        4.8871        .29682E-06   -.33548E-03
  16  Normalizat    .94616        .16980        .32586E-05    .33286E-03
  17  Prefactor     1.0024        .93644E-01   -.78625E-07    .97564E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010031
  Prefactor  = 8.11619
  Prefactor  = 0.000100353
  Prefactor  = 0.0001
  Prefactor  = 13.8693
  Prefactor  = 0.0001
  Prefactor  = 5.338
  norm       = 3.31242
  norm       = 10.0094
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.966345
  norm       = 3.39646
  norm       = 1.72118
  Prefactor  = 3.76857
  Normalizat = 0.946162
  Prefactor  = 1.00242
 **********
 **   18 **HESSE 
 **********

 FCN=   8985.370     FROM HESSE     STATUS=OK           233 CALLS     1864 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10031E-03    23.578        .33843E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     8.1162        11.321        .14063E-03   -1.5138    
   3  Prefactor     .10035E-03    36.301        .36187E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.5334        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     13.869        27.396        .10752E-03   -1.4963    
   6  Prefactor     .10000E-03    27.795        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.3380        14.414        .17391E-03   -1.5246    
   8  norm          3.3124        4.4670        .22249E-03   -1.5344    
   9  norm          10.009        6.1162        .12666E-03   -1.5075    
  10  norm          .10000E-03    1.3436        .10693E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    4.9206        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .96635        1.0672        .11957E-02   -1.5511    
  13  norm          3.3965        6.6233        .21951E-03   -1.5339    
  14  norm          1.7212        1.0307        .71498E-04   -1.5446    
  15  Prefactor     3.7686        4.8753        .20796E-03   -1.5320    
  16  Normalizat    .94616        .19605        .30742E-03   -.94857    
  17  Prefactor     1.0024        .10895        .17330E-03   -.92649    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.2663e-08
Minuit parameter uncertainties:
  1  0.00540663
  2  11.3243
  3  0.00716006
  4  6.59932e-06
  5  27.4213
  6  4.42273e-05
  7  14.4234
  8  4.46743
  9  6.11657
  10  3.61079e-06
  11  7.96622e-06
  12  1.06724
  13  6.62476
  14  1.03075
  15  4.87582
  16  0.196198
  17  0.108973
Done.

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

Extracting fit parameters...

4FGL J0939.3-1732
   Spectrum: PowerLaw
260    Prefactor:  5.338e+00  1.442e+01  1.000e-04  1.000e+04 ( 1.000e-13)
261        Index:  2.263e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
262        Scale:  1.278e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
554    Prefactor:  1.002e+00  1.090e-01  0.000e+00  1.000e+01 ( 1.000e+00)
555        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
556        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
553   Normalization:  9.462e-01  1.962e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.16
Ra Dec: 144.836 -17.542
Photon Flux Upper Limit: 9.20e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.04e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/385503/likelihoodResults_650678401_650937601_4FGL_J0939.3-1732_daily_bin1587.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) = 8984.95590745
delta logL = 0.413703791506

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8984.94263077
delta logL = 0.426980471768

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.0830       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1685       1.0000          .0000       10.000    
     3 'Normalizat'    .90749       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0135       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5570E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8984.943     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      263 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.0800        58.274        .57748E-02    .89997E-03
   2  Index         3.1689        2.4300        .16908        .14913E-03
   3  Normalizat    .90749        .41308E-01    .70790E-01    .37949E-04
   4  Prefactor     1.0135        .23552E-01    .42864E-01    .82343E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.08003
  Index      = 3.1689
  Normalizat = 0.907489
  Prefactor  = 1.01346
 **********
 **   18 **HESSE 
 **********

 FCN=   8984.943     FROM HESSE     STATUS=OK            33 CALLS      296 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.0800        16.222        .16587E-03   -1.5357    
   2  Index         3.1689        2.0435        .59591E-02   -.37494    
   3  Normalizat    .90749        .19305        .31321E-03   -.96197    
   4  Prefactor     1.0135        .10972        .17242E-03   -.92282    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.08414e-10
Minuit parameter uncertainties:
  1  14.1428
  2  2.11571
  3  0.193195
  4  0.109745
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/385503': 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) = 8984.94263068
delta logL = 0.426980568254

Extracting fit parameters...

4FGL J0939.3-1732
   Spectrum: PowerLaw
260    Prefactor:  3.080e+00  1.414e+01  1.000e-04  1.000e+04 ( 1.000e-13)
261        Index:  3.169e+00  2.116e+00  0.000e+00  1.000e+01 (-1.000e+00)
262        Scale:  1.278e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
554    Prefactor:  1.013e+00  1.097e-01  0.000e+00  1.000e+01 ( 1.000e+00)
555        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
556        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
553   Normalization:  9.075e-01  1.932e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.06
Ra Dec: 144.836 -17.542
Photon Index (Free Index): 3.17 +/- 2.12
Photon Flux (Free Index): 4.56e-08 +/- 4.93e-08
Energy Flux (Free Index): 8.46e-06 +/- 1.18e-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/385503/cmap_HighResolution_650678401_650937601_4FGL_J0939.3-1732_daily_bin1587.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.04e-03', comment='SUCCESS', energy_flux2='8.46e-06', dlogl='4.27e-01', photon_flux2='4.56e-08', job_status='DONE', time_completed='2021-08-31 20:13:46.619922', photon_index_error2='2.12', photon_index2='3.17', ts='0.16', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', photon_flux_upper_limit='9.20e-08', energy_flux_error2='1.18e-05', EG='0.95', time_epoch_completed='1630466026.62', return_code='0', job_id='385503', GAL2='1.01', EG2='0.91', return_code2='0', photon_flux_error2='4.93e-08', ts2='1.06', photon_index='2.26' WHERE bin_id='1587' AND source_name='4FGL J0939.3-1732' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 20:13:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0090>
Subject: Job 385503: <4FGL_J0939.3-1732_daily_bin1587> in cluster <slac> Done

Job <4FGL_J0939.3-1732_daily_bin1587> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Aug 31 20:00:51 2021
Job was executed on host(s) <bullet0090>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 20:00:52 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug 31 20:00:52 2021
Terminated at Tue Aug 31 20:13:47 2021
Results reported at Tue Aug 31 20:13:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0939.3-1732_daily_bin1587 144.836 -17.5418 650678401 650937601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0939.3-1732 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   661.28 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             342.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   774 sec.
    Turnaround time :                            776 sec.

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

