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


Performing analysis on: 4FGL_J0939.3-1732_daily_bin1574
RA = 144.836, Dec = -17.5418
tmin = 647308801, tmax = 647568001
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='385485', job_status='RUN', time_executed='2021-08-31 20:04:54.418263', time_epoch_executed='1630465494.42' WHERE source_name='4FGL J0939.3-1732' and cadence='daily' and bin_id='1574'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/385485

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/385485/ft1_4FGL_J0939.3-1732_daily_bin1574.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/385485/ft2_4FGL_J0939.3-1732_daily_bin1574.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/385485/ft1_4FGL_J0939.3-1732_daily_bin1574.fits outfile=/scratch/kocevski/385485/ft1_filteredMKT_4FGL_J0939.3-1732_daily_bin1574.fits ra=144.836 dec=-17.5418 rad=12.0 tmin=647308801.0 tmax=647568001.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.53
user 3.30
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/385485/ft2_4FGL_J0939.3-1732_daily_bin1574.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/385485/ft1_filteredMKT_4FGL_J0939.3-1732_daily_bin1574.fits evtable="EVENTS" outfile="/scratch/kocevski/385485/ft1_filtered_4FGL_J0939.3-1732_daily_bin1574.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/385485/ft1_filtered_4FGL_J0939.3-1732_daily_bin1574.fits" evtable="EVENTS" scfile=/scratch/kocevski/385485/ft2_4FGL_J0939.3-1732_daily_bin1574.fits sctable="SC_DATA" outfile=/scratch/kocevski/385485/ltcube_647308801_647568001_4FGL_J0939.3-1732_daily_bin1574.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/385485/ft2_4FGL_J0939.3-1732_daily_bin1574.fits
.....................!
real 12.41
user 11.91
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/385485/ft1_filtered_4FGL_J0939.3-1732_daily_bin1574.fits evtable="EVENTS" scfile=/scratch/kocevski/385485/ft2_4FGL_J0939.3-1732_daily_bin1574.fits sctable="SC_DATA" expcube=/scratch/kocevski/385485/ltcube_647308801_647568001_4FGL_J0939.3-1732_daily_bin1574.fits outfile=/scratch/kocevski/385485/expmap_647308801_647568001_4FGL_J0939.3-1732_daily_bin1574.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/385485/ltcube_647308801_647568001_4FGL_J0939.3-1732_daily_bin1574.fits
.....................!
real 194.26
user 185.19
sys 4.57

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/385485/ft1_filtered_4FGL_J0939.3-1732_daily_bin1574.fits scfile=/scratch/kocevski/385485/ft2_4FGL_J0939.3-1732_daily_bin1574.fits outfile=/scratch/kocevski/385485/cmap_647308801_647568001_4FGL_J0939.3-1732_daily_bin1574.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.36
sys 0.16

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/385485/ft1_filtered_4FGL_J0939.3-1732_daily_bin1574.fits evtable="EVENTS" scfile=/scratch/kocevski/385485/ft2_4FGL_J0939.3-1732_daily_bin1574.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/385485/Model_4FGL_J0939.3-1732_daily_bin1574.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/385485/ft1_filtered_4FGL_J0939.3-1732_daily_bin1574.fits.....................!
real 77.53
user 76.07
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/385485/ft1_filtered_4FGL_J0939.3-1732_daily_bin1574.fits', '/scratch/kocevski/385485/ft2_4FGL_J0939.3-1732_daily_bin1574.fits', expMap='/scratch/kocevski/385485/expmap_647308801_647568001_4FGL_J0939.3-1732_daily_bin1574.fits', expCube='/scratch/kocevski/385485/ltcube_647308801_647568001_4FGL_J0939.3-1732_daily_bin1574.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/385485/Model_4FGL_J0939.3-1732_daily_bin1574.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/385485/ft1_filtered_4FGL_J0939.3-1732_daily_bin1574.fits
Spacecraft file(s): /scratch/kocevski/385485/ft2_4FGL_J0939.3-1732_daily_bin1574.fits
Exposure map: /scratch/kocevski/385485/expmap_647308801_647568001_4FGL_J0939.3-1732_daily_bin1574.fits
Exposure cube: /scratch/kocevski/385485/ltcube_647308801_647568001_4FGL_J0939.3-1732_daily_bin1574.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/385485/Model_4FGL_J0939.3-1732_daily_bin1574.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 7579.88050532

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.2467       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.0213       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    28.636       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10150E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    12.951       1.0000         .10000E-03   10000.    
     9 'norm      '    7.9442       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .63806       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    4.0909       1.0000         .10000E-03   10000.    
    15 'Prefactor '    10.098       1.0000         .10000E-03   10000.    
    16 'Normalizat'    .75805       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.0672       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=   7579.699     FROM MIGRAD    STATUS=CONVERGED    324 CALLS     1571 TOTAL
                     EDM=   .73E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.2465        4.9903        .32949E-02    .33003E-03
   2  Prefactor     .10000E-03    5.8560        .90712E-02** at limit **
   3  Prefactor     7.0214        9.1755        .37849E-02    .13961E-03
   4  Prefactor     .10000E-03    10.528        .90712E-02** at limit **
   5  Prefactor     .10000E-03    8.4152        .90712E-02** at limit **
   6  Prefactor     28.630        23.929        .18717E-02    .17402E-02
   7  Prefactor     .10000E-03    9.8512        .90712E-01** at limit **
   8  norm          12.950        7.0166        .27827E-02   -.65883E-04
   9  norm          7.9449        6.0328        .35564E-02    .16779E-02
  10  norm          .10000E-03    1.8517        .90712E-02** at limit **
  11  norm          .10000E-03    5.9916        .90712E-02** at limit **
  12  norm          .63813        1.4952        .34532E-01    .15670E-02
  13  norm          .10000E-03    3.0241        .90712E-02** at limit **
  14  norm          4.0909        1.4511        .49832E-02   -.32497E-04
  15  Prefactor     10.097        9.0067        .31525E-02   -.52689E-03
  16  Normalizat    .75783        .19023        .78367E-01   -.31696E-04
  17  Prefactor     1.0673        .10706        .38994E-01   -.13167E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.24645
  Prefactor  = 0.0001
  Prefactor  = 7.02138
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 28.6303
  Prefactor  = 0.000100001
  norm       = 12.95
  norm       = 7.94488
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.638134
  norm       = 0.0001
  norm       = 4.09093
  Prefactor  = 10.0968
  Normalizat = 0.75783
  Prefactor  = 1.06729
 **********
 **   18 **HESSE 
 **********

 FCN=   7579.699     FROM HESSE     STATUS=OK           227 CALLS     1798 TOTAL
                     EDM=   .65E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.2465        4.9939        .13180E-03   -1.5100    
   2  Prefactor     .10000E-03    5.9305        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     7.0214        9.1713        .15140E-03   -1.5178    
   4  Prefactor     .10000E-03    10.535        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    8.4199        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     28.630        23.905        .74868E-04   -1.4637    
   7  Prefactor     .10000E-03    68.172        .52110E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          12.950        7.0151        .11131E-03   -1.4988    
   9  norm          7.9449        6.0334        .71129E-03   -1.5144    
  10  norm          .10000E-03    1.8718        .11566E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    6.0353        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .63813        1.3908        .15698E-02   -1.5548    
  13  norm          .10000E-03    3.0322        .14785E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          4.0909        1.4506        .59920E-04   -1.5303    
  15  Prefactor     10.097        9.0017        .12610E-03   -1.5072    
  16  Normalizat    .75783        .21379        .34694E-03   -1.0165    
  17  Prefactor     1.0673        .12261        .17060E-03   -.90519    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.47051e-09
Minuit parameter uncertainties:
  1  4.99408
  2  1.3853e-05
  3  9.17314
  4  4.9191e-05
  5  1.60903e-05
  6  23.9129
  7  0.000593753
  8  7.01557
  9  6.03384
  10  4.98533e-06
  11  2.83254e-06
  12  1.3909
  13  2.63534e-07
  14  1.45064
  15  9.00295
  16  0.214031
  17  0.122641
Done.

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

Extracting fit parameters...

4FGL J0939.3-1732
   Spectrum: PowerLaw
260    Prefactor:  1.000e-04  5.938e-04  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.067e+00  1.226e-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:  7.578e-01  2.140e-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: 8.03e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.15e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/385485/likelihoodResults_647308801_647568001_4FGL_J0939.3-1732_daily_bin1574.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) = 7579.69941415
delta logL = -6.81360643284e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7579.69941408
delta logL = -6.80599650877e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96222E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2633       1.0000          .0000       10.000    
     3 'Normalizat'    .75774       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0673       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=   7579.699     FROM MIGRAD    STATUS=CONVERGED     71 CALLS      236 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10225E-03    .28982E-01    .90726E-01** at limit **
   2  Index         2.3933        6.0792        .50000       -.19061E-04
   3  Normalizat    .75783        .29311E-03    .78367E-01    .57869E-05
   4  Prefactor     1.0673        .16928E-03    .38986E-01   -.19771E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102254
  Index      = 2.39332
  Normalizat = 0.75783
  Prefactor  = 1.06729
 **********
 **   18 **HESSE 
 **********

 FCN=   7579.699     FROM HESSE     STATUS=NOT POSDEF    43 CALLS      279 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10225E-03    .47267E-01    .71368E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3933        6.1537        .50000       -.54841    
   3  Normalizat    .75783        .31300E-03    .34694E-03   -1.0165    
   4  Prefactor     1.0673        .18116E-03    .17060E-03   -.90519    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.00334e-08
Minuit parameter uncertainties:
  1  0.00065274
  2  31.963
  3  0.000312995
  4  0.000181161
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/385485': 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) = 7579.6993455
delta logL = 5.16081854585e-07

Extracting fit parameters...

4FGL J0939.3-1732
   Spectrum: PowerLaw
260    Prefactor:  1.023e-04  6.527e-04  1.000e-04  1.000e+04 ( 1.000e-13)
261        Index:  2.393e+00  3.196e+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:  1.067e+00  1.812e-04  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:  7.578e-01  3.130e-04  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/385485/cmap_HighResolution_647308801_647568001_4FGL_J0939.3-1732_daily_bin1574.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.15e-03', job_status='DONE', photon_flux_upper_limit='8.03e-08', time_completed='2021-08-31 20:14:56.265768', job_id='385485', GAL2='1.07', fit_tolerance='1e-08', EG2='0.76', EG='0.76', time_epoch_completed='1630466096.27', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='5.16e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.26' WHERE bin_id='1574' AND source_name='4FGL J0939.3-1732' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 20:14:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0299>
Subject: Job 385485: <4FGL_J0939.3-1732_daily_bin1574> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0939.3-1732_daily_bin1574 144.836 -17.5418 647308801 647568001 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 :                                   592.23 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             274.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   845 sec.
    Turnaround time :                            847 sec.

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

