/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 3 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 = 7427
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0939.3-1732_daily_bin389
RA = 144.836, Dec = -17.5418
tmin = 340156801, tmax = 340416001
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='380424', job_status='RUN', time_executed='2021-08-31 19:46:05.614786', time_epoch_executed='1630464365.61' WHERE source_name='4FGL J0939.3-1732' and cadence='daily' and bin_id='389'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/380424

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/380424/ft1_4FGL_J0939.3-1732_daily_bin389.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/380424/ft2_4FGL_J0939.3-1732_daily_bin389.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/380424/ft1_4FGL_J0939.3-1732_daily_bin389.fits outfile=/scratch/kocevski/380424/ft1_filteredMKT_4FGL_J0939.3-1732_daily_bin389.fits ra=144.836 dec=-17.5418 rad=12.0 tmin=340156801.0 tmax=340416001.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.57
user 3.08
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/380424/ft2_4FGL_J0939.3-1732_daily_bin389.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/380424/ft1_filteredMKT_4FGL_J0939.3-1732_daily_bin389.fits evtable="EVENTS" outfile="/scratch/kocevski/380424/ft1_filtered_4FGL_J0939.3-1732_daily_bin389.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.35
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/380424/ft1_filtered_4FGL_J0939.3-1732_daily_bin389.fits" evtable="EVENTS" scfile=/scratch/kocevski/380424/ft2_4FGL_J0939.3-1732_daily_bin389.fits sctable="SC_DATA" outfile=/scratch/kocevski/380424/ltcube_340156801_340416001_4FGL_J0939.3-1732_daily_bin389.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/380424/ft2_4FGL_J0939.3-1732_daily_bin389.fits
.....................!
real 11.72
user 11.34
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/380424/ft1_filtered_4FGL_J0939.3-1732_daily_bin389.fits evtable="EVENTS" scfile=/scratch/kocevski/380424/ft2_4FGL_J0939.3-1732_daily_bin389.fits sctable="SC_DATA" expcube=/scratch/kocevski/380424/ltcube_340156801_340416001_4FGL_J0939.3-1732_daily_bin389.fits outfile=/scratch/kocevski/380424/expmap_340156801_340416001_4FGL_J0939.3-1732_daily_bin389.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/380424/ltcube_340156801_340416001_4FGL_J0939.3-1732_daily_bin389.fits
.....................!
real 190.81
user 185.14
sys 5.30

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/380424/ft1_filtered_4FGL_J0939.3-1732_daily_bin389.fits scfile=/scratch/kocevski/380424/ft2_4FGL_J0939.3-1732_daily_bin389.fits outfile=/scratch/kocevski/380424/cmap_340156801_340416001_4FGL_J0939.3-1732_daily_bin389.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.53
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/380424/ft1_filtered_4FGL_J0939.3-1732_daily_bin389.fits scfile=/scratch/kocevski/380424/ft2_4FGL_J0939.3-1732_daily_bin389.fits outfile=/scratch/kocevski/380424/cmap_HighResolution_340156801_340416001_4FGL_J0939.3-1732_daily_bin389.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.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/380424/ft1_filtered_4FGL_J0939.3-1732_daily_bin389.fits evtable="EVENTS" scfile=/scratch/kocevski/380424/ft2_4FGL_J0939.3-1732_daily_bin389.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/380424/Model_4FGL_J0939.3-1732_daily_bin389.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/380424/ft1_filtered_4FGL_J0939.3-1732_daily_bin389.fits.....................!
real 92.63
user 91.25
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.3525       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.1237       1.0000         .10000E-03   10000.    
     4 'Prefactor '    19.754       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.5483       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10688E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .58373E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .11530E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10436E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.7238       1.0000         .10000E-03   10000.    
    13 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    4.0680       1.0000         .10000E-03   10000.    
    15 'Prefactor '    10.479       1.0000         .10000E-03   10000.    
    16 'Normalizat'    .62839       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.1922       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=   9397.074     FROM MIGRAD    STATUS=CONVERGED    335 CALLS     1381 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.3795        4.6392       -.23233E-05    .26892E-03
   2  Prefactor     .10000E-03    2.1949        .32447E-07** at limit **
   3  Prefactor     2.1275        4.3303       -.16917E-05    .12889E-03
   4  Prefactor     19.782        26.795       -.54893E-05   -.16569E-03
   5  Prefactor     4.6189        27.297       -.15091E-05    .16635E-04
   6  Prefactor     .10000E-03    12.625       -.13003E-05** at limit **
   7  Prefactor     .10000E-03    2.5131       -.12003E-06** at limit **
   8  norm          .10000E-03    15.959       -.75345E-05** at limit **
   9  norm          .10000E-03    5.0581       -.12228E-06** at limit **
  10  norm          .10000E-03    1.1258        .20133E-07** at limit **
  11  norm          .10000E-03    3.6810       -.23026E-06** at limit **
  12  norm          2.7238        1.4567       -.15766E-07   -.81674E-05
  13  norm          .10000E-03    3.9276        .27333E-06** at limit **
  14  norm          4.0684        1.3593       -.71668E-07    .74959E-04
  15  Prefactor     10.480        6.5464       -.26832E-06   -.40544E-04
  16  Normalizat    .62821        .17017        .17692E-05    .10286E-03
  17  Prefactor     1.1922        .98319E-01    .38766E-07    .16741E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.37948
  Prefactor  = 0.0001
  Prefactor  = 2.12752
  Prefactor  = 19.7823
  Prefactor  = 4.61889
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 2.72384
  norm       = 0.0001
  norm       = 4.06841
  Prefactor  = 10.4801
  Normalizat = 0.628207
  Prefactor  = 1.19215
 **********
 **   18 **HESSE 
 **********

 FCN=   9397.074     FROM HESSE     STATUS=OK           225 CALLS     1606 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.3795        4.6847        .26724E-03   -1.5399    
   2  Prefactor     .10000E-03    2.1985        .14025E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.1275        4.3284        .28173E-03   -1.5416    
   4  Prefactor     19.782        27.447        .90117E-04   -1.4818    
   5  Prefactor     4.6189        27.406        .18876E-03   -1.5278    
   6  Prefactor     .10000E-03    12.682        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.5156        .15008E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    15.451        .30010E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    5.1687        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    1.1395        .10042E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    3.7176        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.7238        1.4565        .83261E-04   -1.5378    
  13  norm          .10000E-03    3.9404        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          4.0684        1.3588        .62253E-04   -1.5305    
  15  Prefactor     10.480        6.5471        .12377E-03   -1.5060    
  16  Normalizat    .62821        .18809        .37040E-03   -1.0680    
  17  Prefactor     1.1922        .10919        .16369E-03   -.86573    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.29334e-10
Minuit parameter uncertainties:
  1  4.68542
  2  6.24265e-07
  3  4.32904
  4  27.4647
  5  22.5174
  6  6.42541e-05
  7  1.55937e-06
  8  9.42346e-05
  9  1.94373e-05
  10  2.55226e-06
  11  7.14575e-06
  12  1.45654
  13  4.12139e-06
  14  1.35877
  15  6.54757
  16  0.18828
  17  0.109206
Done.

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

Extracting fit parameters...

4FGL J0939.3-1732
   Spectrum: PowerLaw
260    Prefactor:  1.000e-04  1.559e-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:  1.192e+00  1.092e-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:  6.282e-01  1.883e-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: 3.45e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.64e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/380424/likelihoodResults_340156801_340416001_4FGL_J0939.3-1732_daily_bin389.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) = 9397.07598894
delta logL = -0.0018796256536

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9397.07410913
delta logL = 1.82943040272e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2440       1.0000          .0000       10.000    
     3 'Normalizat'    .62820       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1921       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9397.074     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      254 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.4076        .15232E-01** at limit **
   2  Index         1.6970        5.7794        .50000        .25962E-06
   3  Normalizat    .62821        .71776E-02    .37040E-03    .19287E-03
   4  Prefactor     1.1922        .42821E-02    .16369E-03    .48563E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.69701
  Normalizat = 0.628207
  Prefactor  = 1.19215
 **********
 **   18 **HESSE 
 **********

 FCN=   9397.074     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      283 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    122.93        .17029E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.6970        5.8276        .50000       -.72162    
   3  Normalizat    .62821        .27026E-01    .14816E-04   -1.0680    
   4  Prefactor     1.1922        .16124E-01    .32739E-04   -.86573    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.60038e-09
Minuit parameter uncertainties:
  1  1.11511e-05
  2  711.228
  3  0.0270264
  4  0.0161236
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/380424': 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) = 9397.07410489
delta logL = 4.42843156634e-06

Extracting fit parameters...

4FGL J0939.3-1732
   Spectrum: PowerLaw
260    Prefactor:  1.000e-04  1.115e-05  1.000e-04  1.000e+04 ( 1.000e-13)
261        Index:  1.697e+00  7.112e+02  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.192e+00  1.612e-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:  6.282e-01  2.703e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/380424/cmap_HighResolution_340156801_340416001_4FGL_J0939.3-1732_daily_bin389.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.64e-03', job_status='DONE', photon_flux_upper_limit='3.45e-08', time_completed='2021-08-31 19:56:54.426974', job_id='380424', GAL2='1.19', fit_tolerance='1e-08', EG2='0.63', EG='0.63', time_epoch_completed='1630465014.43', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.19', dlogl='4.43e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.26' WHERE bin_id='389' AND source_name='4FGL J0939.3-1732' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 19:56:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0008>
Subject: Job 380424: <4FGL_J0939.3-1732_daily_bin389> in cluster <slac> Done

Job <4FGL_J0939.3-1732_daily_bin389> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Tue Aug 31 19:45:53 2021
Job was executed on host(s) <bullet0008>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 19:45:54 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:45:54 2021
Terminated at Tue Aug 31 19:56:55 2021
Results reported at Tue Aug 31 19:56:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0939.3-1732_daily_bin389 144.836 -17.5418 340156801 340416001 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 :                                   642.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             338.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   660 sec.
    Turnaround time :                            662 sec.

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

