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


Performing analysis on: 4FGL_J0939.3-1732_daily_bin1206
RA = 144.836, Dec = -17.5418
tmin = 551923201, tmax = 552182401
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='383759', job_status='RUN', time_executed='2021-08-31 19:56:56.936036', time_epoch_executed='1630465016.94' WHERE source_name='4FGL J0939.3-1732' and cadence='daily' and bin_id='1206'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/383759

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/383759/ft1_4FGL_J0939.3-1732_daily_bin1206.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/383759/ft2_4FGL_J0939.3-1732_daily_bin1206.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/383759/ft1_4FGL_J0939.3-1732_daily_bin1206.fits outfile=/scratch/kocevski/383759/ft1_filteredMKT_4FGL_J0939.3-1732_daily_bin1206.fits ra=144.836 dec=-17.5418 rad=12.0 tmin=551923201.0 tmax=552182401.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.69
user 3.44
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/383759/ft2_4FGL_J0939.3-1732_daily_bin1206.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/383759/ft1_filteredMKT_4FGL_J0939.3-1732_daily_bin1206.fits evtable="EVENTS" outfile="/scratch/kocevski/383759/ft1_filtered_4FGL_J0939.3-1732_daily_bin1206.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.61
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/383759/ft1_filtered_4FGL_J0939.3-1732_daily_bin1206.fits" evtable="EVENTS" scfile=/scratch/kocevski/383759/ft2_4FGL_J0939.3-1732_daily_bin1206.fits sctable="SC_DATA" outfile=/scratch/kocevski/383759/ltcube_551923201_552182401_4FGL_J0939.3-1732_daily_bin1206.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/383759/ft2_4FGL_J0939.3-1732_daily_bin1206.fits
.....................!
real 11.71
user 11.25
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/383759/ft1_filtered_4FGL_J0939.3-1732_daily_bin1206.fits evtable="EVENTS" scfile=/scratch/kocevski/383759/ft2_4FGL_J0939.3-1732_daily_bin1206.fits sctable="SC_DATA" expcube=/scratch/kocevski/383759/ltcube_551923201_552182401_4FGL_J0939.3-1732_daily_bin1206.fits outfile=/scratch/kocevski/383759/expmap_551923201_552182401_4FGL_J0939.3-1732_daily_bin1206.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/383759/ltcube_551923201_552182401_4FGL_J0939.3-1732_daily_bin1206.fits
.....................!
real 191.64
user 186.04
sys 4.11

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/383759/ft1_filtered_4FGL_J0939.3-1732_daily_bin1206.fits scfile=/scratch/kocevski/383759/ft2_4FGL_J0939.3-1732_daily_bin1206.fits outfile=/scratch/kocevski/383759/cmap_551923201_552182401_4FGL_J0939.3-1732_daily_bin1206.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.55
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/383759/ft1_filtered_4FGL_J0939.3-1732_daily_bin1206.fits scfile=/scratch/kocevski/383759/ft2_4FGL_J0939.3-1732_daily_bin1206.fits outfile=/scratch/kocevski/383759/cmap_HighResolution_551923201_552182401_4FGL_J0939.3-1732_daily_bin1206.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.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/383759/ft1_filtered_4FGL_J0939.3-1732_daily_bin1206.fits evtable="EVENTS" scfile=/scratch/kocevski/383759/ft2_4FGL_J0939.3-1732_daily_bin1206.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/383759/Model_4FGL_J0939.3-1732_daily_bin1206.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/383759/ft1_filtered_4FGL_J0939.3-1732_daily_bin1206.fits.....................!
real 95.11
user 93.61
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/383759/ft1_filtered_4FGL_J0939.3-1732_daily_bin1206.fits', '/scratch/kocevski/383759/ft2_4FGL_J0939.3-1732_daily_bin1206.fits', expMap='/scratch/kocevski/383759/expmap_551923201_552182401_4FGL_J0939.3-1732_daily_bin1206.fits', expCube='/scratch/kocevski/383759/ltcube_551923201_552182401_4FGL_J0939.3-1732_daily_bin1206.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/383759/Model_4FGL_J0939.3-1732_daily_bin1206.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/383759/ft1_filtered_4FGL_J0939.3-1732_daily_bin1206.fits
Spacecraft file(s): /scratch/kocevski/383759/ft2_4FGL_J0939.3-1732_daily_bin1206.fits
Exposure map: /scratch/kocevski/383759/expmap_551923201_552182401_4FGL_J0939.3-1732_daily_bin1206.fits
Exposure cube: /scratch/kocevski/383759/ltcube_551923201_552182401_4FGL_J0939.3-1732_daily_bin1206.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/383759/Model_4FGL_J0939.3-1732_daily_bin1206.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) = 9169.43342817

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .16862       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.6201       1.0000         .10000E-03   10000.    
     4 'Prefactor '    57.306       1.0000         .10000E-03   10000.    
     5 'Prefactor '    24.370       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.2463       1.0000         .10000E-03   10000.    
     8 'norm      '    2.6318       1.0000         .10000E-03   10000.    
     9 'norm      '    4.0757       1.0000         .10000E-03   10000.    
    10 'norm      '    2.8633       1.0000         .10000E-03   10000.    
    11 'norm      '    .42756E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    9.2948       1.0000         .10000E-03   10000.    
    14 'norm      '    .84283       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.1618       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .95947       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=   9169.427     FROM MIGRAD    STATUS=CONVERGED    329 CALLS     1610 TOTAL
                     EDM=   .75E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .17003        1.6616       -.12092E-06    .16181E-03
   2  Prefactor     .10000E-03    4.9702       -.62076E-07** at limit **
   3  Prefactor     9.6196        11.398        .22594E-06   -.25692E-05
   4  Prefactor     57.292        32.929        .15590E-05   -.24276E-04
   5  Prefactor     24.369        23.192        .10117E-06   -.79436E-05
   6  Prefactor     .10000E-03    15.391       -.64728E-07** at limit **
   7  Prefactor     1.2282        43.863        .47306E-05   -.15679E-04
   8  norm          2.6327        3.9120        .90387E-07    .25697E-04
   9  norm          4.0725        6.2795        .18000E-05    .15011E-03
  10  norm          2.8632        3.3766       -.14896E-06   -.22735E-04
  11  norm          .10000E-03    3.7045       -.11315E-05** at limit **
  12  norm          .10000E-03    .63601        .11266E-07** at limit **
  13  norm          9.2942        10.206       -.47687E-07   -.29065E-04
  14  norm          .84297        1.1497        .52060E-07   -.43471E-04
  15  Prefactor     .10000E-03    1.9801       -.19262E-07** at limit **
  16  Normalizat    1.1619        .19107       -.40850E-06   -.64350E-04
  17  Prefactor     .95944        .96138E-01   -.54507E-06   -.17802E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.170028
  Prefactor  = 0.0001
  Prefactor  = 9.61957
  Prefactor  = 57.2916
  Prefactor  = 24.3689
  Prefactor  = 0.0001
  Prefactor  = 1.22819
  norm       = 2.63268
  norm       = 4.07255
  norm       = 2.86317
  norm       = 0.000100001
  norm       = 0.0001
  norm       = 9.29425
  norm       = 0.842974
  Prefactor  = 0.0001
  Normalizat = 1.16187
  Prefactor  = 0.959442
 **********
 **   18 **HESSE 
 **********

 FCN=   9169.427     FROM HESSE     STATUS=OK           233 CALLS     1843 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .17003        15.160        .23437E-02   -1.5626    
   2  Prefactor     .10000E-03    4.9855        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     9.6196        11.401        .12920E-03   -1.5088    
   4  Prefactor     57.292        32.869        .52994E-04   -1.4193    
   5  Prefactor     24.369        23.206        .81143E-04   -1.4720    
   6  Prefactor     .10000E-03    15.430        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.2282        43.849        .40103E-03   -1.5486    
   8  norm          2.6327        3.9013        .22275E-03   -1.5383    
   9  norm          4.0725        6.4198        .99854E-03   -1.5304    
  10  norm          2.8632        3.3677        .18581E-03   -1.5370    
  11  norm          .10000E-03    7.4953        .33193E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .64182        .74572E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          9.2942        10.204        .13145E-03   -1.5098    
  14  norm          .84297        1.0341        .11309E-02   -1.5524    
  15  Prefactor     .10000E-03    1.9828        .13159E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.1619        .22180        .31668E-03   -.87789    
  17  Prefactor     .95944        .11363        .18220E-03   -.94094    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.56019e-09
Minuit parameter uncertainties:
  1  3.21092
  2  2.54788e-06
  3  11.4036
  4  32.8796
  5  23.2142
  6  2.00468e-05
  7  14.6882
  8  3.90166
  9  6.42087
  10  3.36796
  11  0.000193316
  12  6.56906e-07
  13  10.2055
  14  1.03408
  15  6.34721e-07
  16  0.221976
  17  0.113654
Done.

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

Extracting fit parameters...

4FGL J0939.3-1732
   Spectrum: PowerLaw
260    Prefactor:  1.228e+00  1.469e+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:  9.594e-01  1.137e-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:  1.162e+00  2.220e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/383759/likelihoodResults_551923201_552182401_4FGL_J0939.3-1732_daily_bin1206.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): 102
logL (Free Index) = 9168.25703088
delta logL = 1.16990076774

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9168.23265706
delta logL = 1.1942745963

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .67510       1.0000         .10000E-03   10000.    
     2 'Index     '    4.2126       1.0000          .0000       10.000    
     3 'Normalizat'    1.0398       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99773       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=   9168.233     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      241 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .67391        5.8113        .11593E-01    .17296E-02
   2  Index         4.2134        2.0802        .95764E-01    .27754E-03
   3  Normalizat    1.0399        .45538E-01    .75084E-01    .61255E-05
   4  Prefactor     .99778        .24126E-01    .46239E-01   -.23900E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.67391
  Index      = 4.21344
  Normalizat = 1.03985
  Prefactor  = 0.997784
 **********
 **   18 **HESSE 
 **********

 FCN=   9168.233     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      274 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .67391        14.919        .52698E-03   -1.5544    
   2  Index         4.2134        3.7368        .47516E-02   -.15797    
   3  Normalizat    1.0399        .16915        .33229E-03   -.91707    
   4  Prefactor     .99778        .87937E-01    .17901E-03   -.92803    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.86916e-10
Minuit parameter uncertainties:
  1  6.34301
  2  4.23842
  3  0.16924
  4  0.0879497
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/383759': 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): 102
logL (Free Index) = 9168.23265572
delta logL = 1.19427593625

Extracting fit parameters...

4FGL J0939.3-1732
   Spectrum: PowerLaw
260    Prefactor:  6.739e-01  6.343e+00  1.000e-04  1.000e+04 ( 1.000e-13)
261        Index:  4.213e+00  4.238e+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:  9.978e-01  8.795e-02  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:  1.040e+00  1.692e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.67
Ra Dec: 144.836 -17.542
Photon Index (Free Index): 4.21 +/- 4.24
Photon Flux (Free Index): 9.67e-08 +/- 6.48e-08
Energy Flux (Free Index): 1.40e-05 +/- 1.17e-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/383759/cmap_HighResolution_551923201_552182401_4FGL_J0939.3-1732_daily_bin1206.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.03e-03', comment='SUCCESS', energy_flux2='1.40e-05', dlogl='1.19e+00', photon_flux2='9.67e-08', job_status='DONE', time_completed='2021-08-31 20:08:35.062986', photon_index_error2='4.24', photon_index2='4.21', ts='0.01', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', photon_flux_upper_limit='9.19e-08', energy_flux_error2='1.17e-05', EG='1.16', time_epoch_completed='1630465715.06', return_code='0', job_id='383759', GAL2='1.00', EG2='1.04', return_code2='102', photon_flux_error2='6.48e-08', ts2='2.67', photon_index='2.26' WHERE bin_id='1206' AND source_name='4FGL J0939.3-1732' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 20:08:35 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0939.3-1732_daily_bin1206 144.836 -17.5418 551923201 552182401 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 :                                   651.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             356.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   754 sec.
    Turnaround time :                            755 sec.

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

