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


Performing analysis on: 4FGL_J0939.3-1732_daily_bin630
RA = 144.836, Dec = -17.5418
tmin = 402624001, tmax = 402883201
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='381735', job_status='RUN', time_executed='2021-08-31 19:52:50.462065', time_epoch_executed='1630464770.46' WHERE source_name='4FGL J0939.3-1732' and cadence='daily' and bin_id='630'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/381735

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

Retrieving the FT1 file...

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

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

Retrieving 51 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/381735/ft1_4FGL_J0939.3-1732_daily_bin630.fits


Retrieving the FT1 file...

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

Retrieving 51 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/381735/ft2_4FGL_J0939.3-1732_daily_bin630.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/381735/ft1_4FGL_J0939.3-1732_daily_bin630.fits outfile=/scratch/kocevski/381735/ft1_filteredMKT_4FGL_J0939.3-1732_daily_bin630.fits ra=144.836 dec=-17.5418 rad=12.0 tmin=402624001.0 tmax=402883201.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.88
user 3.42
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/381735/ft1_filtered_4FGL_J0939.3-1732_daily_bin630.fits" evtable="EVENTS" scfile=/scratch/kocevski/381735/ft2_4FGL_J0939.3-1732_daily_bin630.fits sctable="SC_DATA" outfile=/scratch/kocevski/381735/ltcube_402624001_402883201_4FGL_J0939.3-1732_daily_bin630.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/381735/ft2_4FGL_J0939.3-1732_daily_bin630.fits
.....................!
real 12.10
user 11.74
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/381735/ft1_filtered_4FGL_J0939.3-1732_daily_bin630.fits evtable="EVENTS" scfile=/scratch/kocevski/381735/ft2_4FGL_J0939.3-1732_daily_bin630.fits sctable="SC_DATA" expcube=/scratch/kocevski/381735/ltcube_402624001_402883201_4FGL_J0939.3-1732_daily_bin630.fits outfile=/scratch/kocevski/381735/expmap_402624001_402883201_4FGL_J0939.3-1732_daily_bin630.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/381735/ltcube_402624001_402883201_4FGL_J0939.3-1732_daily_bin630.fits
.....................!
real 191.62
user 185.75
sys 5.48

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/381735/ft1_filtered_4FGL_J0939.3-1732_daily_bin630.fits scfile=/scratch/kocevski/381735/ft2_4FGL_J0939.3-1732_daily_bin630.fits outfile=/scratch/kocevski/381735/cmap_402624001_402883201_4FGL_J0939.3-1732_daily_bin630.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/381735/ft1_filtered_4FGL_J0939.3-1732_daily_bin630.fits scfile=/scratch/kocevski/381735/ft2_4FGL_J0939.3-1732_daily_bin630.fits outfile=/scratch/kocevski/381735/cmap_HighResolution_402624001_402883201_4FGL_J0939.3-1732_daily_bin630.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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/381735/ft1_filtered_4FGL_J0939.3-1732_daily_bin630.fits evtable="EVENTS" scfile=/scratch/kocevski/381735/ft2_4FGL_J0939.3-1732_daily_bin630.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/381735/Model_4FGL_J0939.3-1732_daily_bin630.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/381735/ft1_filtered_4FGL_J0939.3-1732_daily_bin630.fits.....................!
real 68.93
user 67.51
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    5.1318       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    29.976       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    7.1470       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.9084       1.0000         .10000E-03   10000.    
    13 'norm      '    13.637       1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .28809       1.0000         .10000E-03   10000.    
    16 'Normalizat'    .83810       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.1291       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=   6582.801     FROM MIGRAD    STATUS=CONVERGED    332 CALLS     1590 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.4237        .21622E-07** at limit **
   2  Prefactor     5.1335        14.095        .32878E-05   -.75771E-04
   3  Prefactor     .10000E-03    4.3130       -.12658E-07** at limit **
   4  Prefactor     30.016        47.758        .60481E-04   -.11831E-04
   5  Prefactor     .10000E-03    35.874        .12617E-05** at limit **
   6  Prefactor     .10000E-03    14.064        .27164E-06** at limit **
   7  Prefactor     .10000E-03    22.722       -.19908E-05** at limit **
   8  norm          .10000E-03    3.9555        .71080E-06** at limit **
   9  norm          7.1478        7.5270        .10013E-05   -.15194E-03
  10  norm          .10000E-03    1.1119        .48358E-07** at limit **
  11  norm          .10000E-03    3.9581       -.57638E-06** at limit **
  12  norm          2.9086        2.2428        .27608E-06   -.20773E-03
  13  norm          13.639        15.404        .29782E-05   -.69085E-04
  14  norm          .10000E-03    .51561        .13083E-06** at limit **
  15  Prefactor     .33102        6.4057        .12228E-06    .10240E-04
  16  Normalizat    .83816        .21597       -.99017E-05    .72691E-05
  17  Prefactor     1.1290        .11803       -.48584E-06   -.24499E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 5.13353
  Prefactor  = 0.0001
  Prefactor  = 30.0156
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 7.14782
  norm       = 0.0001
  norm       = 0.0001
  norm       = 2.90861
  norm       = 13.6391
  norm       = 0.0001
  Prefactor  = 0.33102
  Normalizat = 0.838159
  Prefactor  = 1.129
 **********
 **   18 **HESSE 
 **********

 FCN=   6582.801     FROM HESSE     STATUS=OK           221 CALLS     1811 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.4354        .12333E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     5.1335        14.078        .17747E-03   -1.5255    
   3  Prefactor     .10000E-03    4.3608        .16456E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     30.016        47.746        .73179E-04   -1.4612    
   5  Prefactor     .10000E-03    36.166        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    14.071        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    22.973        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    3.9881        .15757E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          7.1478        7.5223        .15005E-03   -1.5173    
  10  norm          .10000E-03    1.1141        .83546E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    3.9682        .15764E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.9086        2.2397        .10323E-03   -1.5367    
  13  norm          13.639        15.411        .10847E-03   -1.4969    
  14  norm          .10000E-03    .52978        .11365E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .33102        43.227        .39508E-02   -1.5593    
  16  Normalizat    .83816        .24444        .34901E-03   -.98668    
  17  Prefactor     1.1290        .13535        .17281E-03   -.88545    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.20495e-10
Minuit parameter uncertainties:
  1  1.01464e-06
  2  14.0874
  3  1.41815e-05
  4  47.8063
  5  0.000205455
  6  1.02623e-05
  7  0.000352232
  8  2.21588e-05
  9  7.5233
  10  3.66406e-06
  11  6.31468e-06
  12  2.23972
  13  15.4159
  14  8.12212e-06
  15  7.5699
  16  0.244766
  17  0.135387
Done.

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

Extracting fit parameters...

4FGL J0939.3-1732
   Spectrum: PowerLaw
260    Prefactor:  1.000e-04  3.522e-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.129e+00  1.354e-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:  8.382e-01  2.448e-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: 9.95e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.61e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/381735/likelihoodResults_402624001_402883201_4FGL_J0939.3-1732_daily_bin630.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) = 6582.8009128
delta logL = -0.000207413750104

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6582.80070536
delta logL = 2.42707756115e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10313E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3484       1.0000          .0000       10.000    
     3 'Normalizat'    .83816       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1290       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=   6582.801     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      245 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    987.36        .90712E-02** at limit **
   2  Index         2.3618        5.5716        .50000       -.50605E-05
   3  Normalizat    .83816        .37521E-01    .78840E-01    .52098E-04
   4  Prefactor     1.1290        .21341E-01    .36576E-01    .40764E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.36179
  Normalizat = 0.838157
  Prefactor  = 1.12901
 **********
 **   18 **HESSE 
 **********

 FCN=   6582.801     FROM HESSE     STATUS=OK            33 CALLS      278 TOTAL
                     EDM=   .29E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    37.809        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3618        6.1074        .50000       -.55582    
   3  Normalizat    .83816        .23467        .34901E-03   -.98669    
   4  Prefactor     1.1290        .13401        .17281E-03   -.88545    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.90954e-11
Minuit parameter uncertainties:
  1  0.000119726
  2  5.34316
  3  0.234951
  4  0.134047
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/381735': 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) = 6582.80070528
delta logL = 1.05003891804e-07

Extracting fit parameters...

4FGL J0939.3-1732
   Spectrum: PowerLaw
260    Prefactor:  1.000e-04  1.197e-04  1.000e-04  1.000e+04 ( 1.000e-13)
261        Index:  2.362e+00  5.343e+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.129e+00  1.340e-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:  8.382e-01  2.350e-01  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/381735/cmap_HighResolution_402624001_402883201_4FGL_J0939.3-1732_daily_bin630.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.61e-03', job_status='DONE', photon_flux_upper_limit='9.95e-08', time_completed='2021-08-31 20:02:03.605285', job_id='381735', GAL2='1.13', fit_tolerance='1e-08', EG2='0.84', EG='0.84', time_epoch_completed='1630465323.61', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.13', dlogl='1.05e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.26' WHERE bin_id='630' AND source_name='4FGL J0939.3-1732' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 20:02:03 PDT 2021


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

Job <4FGL_J0939.3-1732_daily_bin630> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Aug 31 19:50:18 2021
Job was executed on host(s) <bullet0299>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 19:50:21 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:50:21 2021
Terminated at Tue Aug 31 20:02:05 2021
Results reported at Tue Aug 31 20:02:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0939.3-1732_daily_bin630 144.836 -17.5418 402624001 402883201 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 :                                   548.45 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             316.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   702 sec.
    Turnaround time :                            707 sec.

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

