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


Performing analysis on: 4FGL_J0939.3-1732_daily_bin1550
RA = 144.836, Dec = -17.5418
tmin = 641088001, tmax = 641347201
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='385450', job_status='RUN', time_executed='2021-08-31 20:01:38.953272', time_epoch_executed='1630465298.95' WHERE source_name='4FGL J0939.3-1732' and cadence='daily' and bin_id='1550'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/385450

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/385450/ft1_4FGL_J0939.3-1732_daily_bin1550.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/385450/ft2_4FGL_J0939.3-1732_daily_bin1550.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/385450/ft1_4FGL_J0939.3-1732_daily_bin1550.fits outfile=/scratch/kocevski/385450/ft1_filteredMKT_4FGL_J0939.3-1732_daily_bin1550.fits ra=144.836 dec=-17.5418 rad=12.0 tmin=641088001.0 tmax=641347201.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.02
user 2.79
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/385450/ft2_4FGL_J0939.3-1732_daily_bin1550.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/385450/ft1_filteredMKT_4FGL_J0939.3-1732_daily_bin1550.fits evtable="EVENTS" outfile="/scratch/kocevski/385450/ft1_filtered_4FGL_J0939.3-1732_daily_bin1550.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/385450/ft1_filtered_4FGL_J0939.3-1732_daily_bin1550.fits" evtable="EVENTS" scfile=/scratch/kocevski/385450/ft2_4FGL_J0939.3-1732_daily_bin1550.fits sctable="SC_DATA" outfile=/scratch/kocevski/385450/ltcube_641088001_641347201_4FGL_J0939.3-1732_daily_bin1550.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/385450/ft2_4FGL_J0939.3-1732_daily_bin1550.fits
.....................!
real 12.70
user 12.35
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/385450/ft1_filtered_4FGL_J0939.3-1732_daily_bin1550.fits evtable="EVENTS" scfile=/scratch/kocevski/385450/ft2_4FGL_J0939.3-1732_daily_bin1550.fits sctable="SC_DATA" expcube=/scratch/kocevski/385450/ltcube_641088001_641347201_4FGL_J0939.3-1732_daily_bin1550.fits outfile=/scratch/kocevski/385450/expmap_641088001_641347201_4FGL_J0939.3-1732_daily_bin1550.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/385450/ltcube_641088001_641347201_4FGL_J0939.3-1732_daily_bin1550.fits
.....................!
real 190.27
user 184.95
sys 4.84

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/385450/ft1_filtered_4FGL_J0939.3-1732_daily_bin1550.fits scfile=/scratch/kocevski/385450/ft2_4FGL_J0939.3-1732_daily_bin1550.fits outfile=/scratch/kocevski/385450/cmap_641088001_641347201_4FGL_J0939.3-1732_daily_bin1550.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.60
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/385450/ft1_filtered_4FGL_J0939.3-1732_daily_bin1550.fits scfile=/scratch/kocevski/385450/ft2_4FGL_J0939.3-1732_daily_bin1550.fits outfile=/scratch/kocevski/385450/cmap_HighResolution_641088001_641347201_4FGL_J0939.3-1732_daily_bin1550.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.64
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/385450/ft1_filtered_4FGL_J0939.3-1732_daily_bin1550.fits evtable="EVENTS" scfile=/scratch/kocevski/385450/ft2_4FGL_J0939.3-1732_daily_bin1550.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/385450/Model_4FGL_J0939.3-1732_daily_bin1550.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/385450/ft1_filtered_4FGL_J0939.3-1732_daily_bin1550.fits.....................!
real 68.52
user 66.61
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.0237       1.0000         .10000E-03   10000.    
     2 'Prefactor '    19.929       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.5485       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .13139E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    16.256       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11310E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    5.2904       1.0000         .10000E-03   10000.    
     9 'norm      '    2.0869       1.0000         .10000E-03   10000.    
    10 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    13.671       1.0000         .10000E-03   10000.    
    12 'norm      '    2.1090       1.0000         .10000E-03   10000.    
    13 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .19991       1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.2662       1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.3587       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .78977       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=   6217.182     FROM MIGRAD    STATUS=CONVERGED    339 CALLS     1614 TOTAL
                     EDM=   .77E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.0245        4.2584        .60413E-06   -.32695E-03
   2  Prefactor     19.926        12.789        .49515E-06   -.68073E-04
   3  Prefactor     .10000E-03    1.9404        .91866E-08** at limit **
   4  Prefactor     1.4467        80.918       -.57147E-05   -.56020E-04
   5  Prefactor     .10000E-03    8.9584        .28630E-07** at limit **
   6  Prefactor     16.276        24.954        .87755E-05   -.12274E-03
   7  Prefactor     .10000E-03    5.0171       -.33533E-06** at limit **
   8  norm          5.2863        5.8385        .11957E-05   -.24256E-03
   9  norm          2.0912        6.7799       -.43765E-05   -.50999E-03
  10  norm          .10000E-03    1.7932       -.12064E-07** at limit **
  11  norm          13.697        11.864       -.57561E-05    .42693E-03
  12  norm          2.1088        2.0729       -.70989E-07   -.10399E-03
  13  norm          .10000E-03    4.7914        .27743E-06** at limit **
  14  norm          .19892        1.1783       -.50101E-06   -.66683E-03
  15  Prefactor     9.2431        10.375       -.53986E-05    .34283E-03
  16  Normalizat    1.3588        .20926        .65221E-06    .15302E-03
  17  Prefactor     .78966        .11184        .55014E-06    .15080E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.0245
  Prefactor  = 19.9258
  Prefactor  = 0.0001
  Prefactor  = 1.44668
  Prefactor  = 0.0001
  Prefactor  = 16.2762
  Prefactor  = 0.0001
  norm       = 5.28629
  norm       = 2.09118
  norm       = 0.0001
  norm       = 13.6971
  norm       = 2.10883
  norm       = 0.0001
  norm       = 0.198924
  Prefactor  = 9.24308
  Normalizat = 1.35879
  Prefactor  = 0.789657
 **********
 **   18 **HESSE 
 **********

 FCN=   6217.182     FROM HESSE     STATUS=OK           229 CALLS     1843 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.0245        4.2453        .16062E-03   -1.5307    
   2  Prefactor     19.926        12.784        .89719E-04   -1.4815    
   3  Prefactor     .10000E-03    1.9418        .10727E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.4467        82.895        .34236E-03   -1.5467    
   5  Prefactor     .10000E-03    8.9644        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     16.276        24.994        .99336E-04   -1.4901    
   7  Prefactor     .10000E-03    5.0230        .17248E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          5.2863        5.8179        .17474E-03   -1.5248    
   9  norm          2.0912        6.9516        .28580E-03   -1.5419    
  10  norm          .10000E-03    1.8110        .10309E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          13.697        11.775        .10833E-03   -1.4968    
  12  norm          2.1088        2.0711        .10896E-03   -1.5418    
  13  norm          .10000E-03    4.8029        .16855E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .19892        2.5152        .16110E-02   -1.5619    
  15  Prefactor     9.2431        10.327        .13166E-03   -1.5100    
  16  Normalizat    1.3588        .24369        .27583E-03   -.81828    
  17  Prefactor     .78966        .13074        .19165E-03   -1.0011    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.51347e-09
Minuit parameter uncertainties:
  1  4.24557
  2  12.7854
  3  1.05335e-06
  4  21.933
  5  2.3442e-06
  6  25.0103
  7  2.92987e-06
  8  5.81855
  9  6.95426
  10  1.50956e-06
  11  11.7772
  12  2.07112
  13  3.65364e-06
  14  1.41441
  15  10.3288
  16  0.243898
  17  0.130789
Done.

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

Extracting fit parameters...

4FGL J0939.3-1732
   Spectrum: PowerLaw
260    Prefactor:  1.000e-04  2.930e-06  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:  7.897e-01  1.308e-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.359e+00  2.439e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/385450/likelihoodResults_641088001_641347201_4FGL_J0939.3-1732_daily_bin1550.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) = 6217.18301426
delta logL = -0.000946289526837

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6217.18206796
delta logL = 7.8980519902e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2579       1.0000          .0000       10.000    
     3 'Normalizat'    1.3588       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78966       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=   6217.182     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      204 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    310.85        .90712E-02** at limit **
   2  Index         2.2526        5.6326        .50000        .87759E-05
   3  Normalizat    1.3588        .46515E-01    .62364E-01   -.24583E-04
   4  Prefactor     .78966        .25529E-01    .43583E-01   -.43400E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.25262
  Normalizat = 1.35879
  Prefactor  = 0.789658
 **********
 **   18 **HESSE 
 **********

 FCN=   6217.182     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      237 TOTAL
                     EDM=   .65E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    664.19        .17268E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2526        7.2464        .50000       -.58174    
   3  Normalizat    1.3588        .78241E-01    .27583E-03   -.81828    
   4  Prefactor     .78966        .42968E-01    .19165E-03   -1.0011    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.49199e-09
Minuit parameter uncertainties:
  1  0.000216788
  2  48.5767
  3  0.0782481
  4  0.0429695
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/385450': 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) = 6217.18206795
delta logL = 2.25518306252e-08

Extracting fit parameters...

4FGL J0939.3-1732
   Spectrum: PowerLaw
260    Prefactor:  1.000e-04  2.168e-04  1.000e-04  1.000e+04 ( 1.000e-13)
261        Index:  2.253e+00  4.858e+01  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:  7.897e-01  4.297e-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.359e+00  7.825e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 144.836 -17.542

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/385450/cmap_HighResolution_641088001_641347201_4FGL_J0939.3-1732_daily_bin1550.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.78e-03', job_status='DONE', photon_flux_upper_limit='6.25e-08', time_completed='2021-08-31 20:10:46.791508', job_id='385450', GAL2='0.79', fit_tolerance='1e-08', EG2='1.36', EG='1.36', time_epoch_completed='1630465846.79', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.79', dlogl='2.26e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.26' WHERE bin_id='1550' AND source_name='4FGL J0939.3-1732' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 20:10:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0298>
Subject: Job 385450: <4FGL_J0939.3-1732_daily_bin1550> in cluster <slac> Done

Job <4FGL_J0939.3-1732_daily_bin1550> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Aug 31 20:00:47 2021
Job was executed on host(s) <bullet0298>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 20:00:49 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:49 2021
Terminated at Tue Aug 31 20:10:47 2021
Results reported at Tue Aug 31 20:10:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0939.3-1732_daily_bin1550 144.836 -17.5418 641088001 641347201 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 :                                   542.29 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             327.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   598 sec.
    Turnaround time :                            600 sec.

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

