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


Performing analysis on: 4FGL_J0939.3-1732_daily_bin1591
RA = 144.836, Dec = -17.5418
tmin = 651715201, tmax = 651974401
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='385509', job_status='RUN', time_executed='2021-08-31 20:01:40.790510', time_epoch_executed='1630465300.79' WHERE source_name='4FGL J0939.3-1732' and cadence='daily' and bin_id='1591'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/385509

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/385509/ft1_4FGL_J0939.3-1732_daily_bin1591.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/385509/ft2_4FGL_J0939.3-1732_daily_bin1591.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/385509/ft1_4FGL_J0939.3-1732_daily_bin1591.fits outfile=/scratch/kocevski/385509/ft1_filteredMKT_4FGL_J0939.3-1732_daily_bin1591.fits ra=144.836 dec=-17.5418 rad=12.0 tmin=651715201.0 tmax=651974401.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.46
user 3.25
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/385509/ft1_filtered_4FGL_J0939.3-1732_daily_bin1591.fits" evtable="EVENTS" scfile=/scratch/kocevski/385509/ft2_4FGL_J0939.3-1732_daily_bin1591.fits sctable="SC_DATA" outfile=/scratch/kocevski/385509/ltcube_651715201_651974401_4FGL_J0939.3-1732_daily_bin1591.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/385509/ft2_4FGL_J0939.3-1732_daily_bin1591.fits
.....................!
real 15.27
user 14.89
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/385509/ft1_filtered_4FGL_J0939.3-1732_daily_bin1591.fits evtable="EVENTS" scfile=/scratch/kocevski/385509/ft2_4FGL_J0939.3-1732_daily_bin1591.fits sctable="SC_DATA" expcube=/scratch/kocevski/385509/ltcube_651715201_651974401_4FGL_J0939.3-1732_daily_bin1591.fits outfile=/scratch/kocevski/385509/expmap_651715201_651974401_4FGL_J0939.3-1732_daily_bin1591.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/385509/ltcube_651715201_651974401_4FGL_J0939.3-1732_daily_bin1591.fits
.....................!
real 189.57
user 184.81
sys 4.28

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/385509/ft1_filtered_4FGL_J0939.3-1732_daily_bin1591.fits scfile=/scratch/kocevski/385509/ft2_4FGL_J0939.3-1732_daily_bin1591.fits outfile=/scratch/kocevski/385509/cmap_651715201_651974401_4FGL_J0939.3-1732_daily_bin1591.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.61
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/385509/ft1_filtered_4FGL_J0939.3-1732_daily_bin1591.fits scfile=/scratch/kocevski/385509/ft2_4FGL_J0939.3-1732_daily_bin1591.fits outfile=/scratch/kocevski/385509/cmap_HighResolution_651715201_651974401_4FGL_J0939.3-1732_daily_bin1591.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.67
user 0.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/385509/ft1_filtered_4FGL_J0939.3-1732_daily_bin1591.fits evtable="EVENTS" scfile=/scratch/kocevski/385509/ft2_4FGL_J0939.3-1732_daily_bin1591.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/385509/Model_4FGL_J0939.3-1732_daily_bin1591.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/385509/ft1_filtered_4FGL_J0939.3-1732_daily_bin1591.fits.....................!
real 88.39
user 86.68
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.9252       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .18038E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.8154       1.0000         .10000E-03   10000.    
     4 'Prefactor '    19.575       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.3254       1.0000         .10000E-03   10000.    
     9 'norm      '    10.493       1.0000         .10000E-03   10000.    
    10 'norm      '    .14770E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    7.8304       1.0000         .10000E-03   10000.    
    12 'norm      '    .82481       1.0000         .10000E-03   10000.    
    13 'norm      '    5.4913       1.0000         .10000E-03   10000.    
    14 'norm      '    3.0205       1.0000         .10000E-03   10000.    
    15 'Prefactor '    14.665       1.0000         .10000E-03   10000.    
    16 'Normalizat'    .99842       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.0313       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=   8580.048     FROM MIGRAD    STATUS=CONVERGED    326 CALLS     1415 TOTAL
                     EDM=   .98E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.9251        3.5126       -.27806E-08    .38325E-04
   2  Prefactor     .10007E-03    3.0806        .99241E-08** at limit **
   3  Prefactor     2.8153        1.6650       -.59467E-07   -.26833E-03
   4  Prefactor     19.575        29.669        .68156E-08   -.27880E-03
   5  Prefactor     .10000E-03    11.050       -.70025E-08** at limit **
   6  Prefactor     .10000E-03    8.4358        .18854E-08** at limit **
   7  Prefactor     .10000E-03    4.1121       -.50160E-09** at limit **
   8  norm          3.3254        4.9960       -.69656E-08    .24307E-03
   9  norm          10.493        6.2083       -.78655E-08   -.63558E-04
  10  norm          .10006E-03    2.3665       -.62567E-08** at limit **
  11  norm          7.8304        6.2338       -.37691E-09    .72782E-04
  12  norm          .82493        1.7352       -.65729E-08    .21021E-03
  13  norm          5.4915        6.0020       -.14093E-08    .12696E-03
  14  norm          3.0206        1.3174       -.47229E-08   -.37824E-03
  15  Prefactor     14.665        7.7467       -.18576E-08   -.25922E-04
  16  Normalizat    .99838        .18087        .99620E-08    .47940E-04
  17  Prefactor     1.0314        .10180        .28134E-08    .55029E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.92514
  Prefactor  = 0.00010007
  Prefactor  = 2.81527
  Prefactor  = 19.5754
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.32544
  norm       = 10.4929
  norm       = 0.000100062
  norm       = 7.83037
  norm       = 0.824934
  norm       = 5.4915
  norm       = 3.02061
  Prefactor  = 14.6647
  Normalizat = 0.998381
  Prefactor  = 1.03135
 **********
 **   18 **HESSE 
 **********

 FCN=   8580.048     FROM HESSE     STATUS=OK           231 CALLS     1646 TOTAL
                     EDM=   .85E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.9251        3.5112        .18357E-03   -1.5366    
   2  Prefactor     .10007E-03    15.737        .31668E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.8153        4.6868        .12121E-02   -1.5372    
   4  Prefactor     19.575        29.733        .90527E-04   -1.4823    
   5  Prefactor     .10000E-03    11.061        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    8.4390        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.1186        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.3254        5.0083        .22197E-03   -1.5343    
   9  norm          10.493        6.3180        .61845E-03   -1.5060    
  10  norm          .10006E-03    16.424        .27565E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          7.8304        6.2338        .14330E-03   -1.5148    
  12  norm          .82493        1.7116        .17193E-03   -1.5526    
  13  norm          5.4915        5.9997        .17146E-03   -1.5239    
  14  norm          3.0206        1.3687        .34697E-03   -1.5360    
  15  Prefactor     14.665        7.7545        .52296E-03   -1.4942    
  16  Normalizat    .99838        .20963        .31840E-03   -.93085    
  17  Prefactor     1.0314        .11819        .17923E-03   -.91692    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.49845e-09
Minuit parameter uncertainties:
  1  3.5114
  2  0.00210555
  3  4.68743
  4  29.7555
  5  0.00024993
  6  5.23572e-05
  7  8.95655e-06
  8  5.00892
  9  6.31841
  10  0.00202382
  11  6.23436
  12  1.71174
  13  6.0004
  14  1.36875
  15  7.75502
  16  0.209808
  17  0.118221
Done.

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

Extracting fit parameters...

4FGL J0939.3-1732
   Spectrum: PowerLaw
260    Prefactor:  1.000e-04  8.957e-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.031e+00  1.182e-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:  9.984e-01  2.098e-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: 5.03e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.85e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/385509/likelihoodResults_651715201_651974401_4FGL_J0939.3-1732_daily_bin1591.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) = 8580.04902672
delta logL = -0.00115587844994

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8580.04787077
delta logL = 7.17391230864e-08

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.2511       1.0000          .0000       10.000    
     3 'Normalizat'    .99838       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0314       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=   8580.048     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      238 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    144.56        .18142E-01** at limit **
   2  Index         1.8400        5.2011        .98079E-01   -.78357E-07
   3  Normalizat    .99838        .27189E-01    .31840E-03    .58914E-04
   4  Prefactor     1.0314        .15628E-01    .17923E-03    .11090E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.84
  Normalizat = 0.998381
  Prefactor  = 1.03135
 **********
 **   18 **HESSE 
 **********

 FCN=   8580.048     FROM HESSE     STATUS=OK            23 CALLS      261 TOTAL
                     EDM=   .31E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.6376        .19431E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8400        5.1078        .39232E-02   -.68413    
   3  Normalizat    .99838        .20266        .12736E-04   -.93085    
   4  Prefactor     1.0314        .11655        .35846E-04   -.91692    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.13041e-11
Minuit parameter uncertainties:
  1  1.43172e-05
  2  243.685
  3  0.202812
  4  0.116577
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/385509': 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) = 8580.04786951
delta logL = 1.32484456117e-06

Extracting fit parameters...

4FGL J0939.3-1732
   Spectrum: PowerLaw
260    Prefactor:  1.000e-04  1.432e-05  1.000e-04  1.000e+04 ( 1.000e-13)
261        Index:  1.840e+00  2.437e+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.031e+00  1.166e-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:  9.984e-01  2.028e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/385509/cmap_HighResolution_651715201_651974401_4FGL_J0939.3-1732_daily_bin1591.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.85e-03', job_status='DONE', photon_flux_upper_limit='5.03e-08', time_completed='2021-08-31 20:12:10.221033', job_id='385509', GAL2='1.03', fit_tolerance='1e-08', EG2='1.00', EG='1.00', time_epoch_completed='1630465930.22', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='1.32e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.26' WHERE bin_id='1591' AND source_name='4FGL J0939.3-1732' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 20:12:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0188>
Subject: Job 385509: <4FGL_J0939.3-1732_daily_bin1591> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0939.3-1732_daily_bin1591 144.836 -17.5418 651715201 651974401 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 :                                   619.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             321.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   676 sec.
    Turnaround time :                            679 sec.

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

