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


Performing analysis on: 4FGL_J0939.3-1732_daily_bin1351
RA = 144.836, Dec = -17.5418
tmin = 589507201, tmax = 589766401
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='385157', job_status='RUN', time_executed='2021-08-31 20:00:57.824927', time_epoch_executed='1630465257.82' WHERE source_name='4FGL J0939.3-1732' and cadence='daily' and bin_id='1351'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/385157

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/385157/ft1_4FGL_J0939.3-1732_daily_bin1351.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/385157/ft2_4FGL_J0939.3-1732_daily_bin1351.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/385157/ft1_4FGL_J0939.3-1732_daily_bin1351.fits outfile=/scratch/kocevski/385157/ft1_filteredMKT_4FGL_J0939.3-1732_daily_bin1351.fits ra=144.836 dec=-17.5418 rad=12.0 tmin=589507201.0 tmax=589766401.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 2.94
user 2.70
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/385157/ft1_filtered_4FGL_J0939.3-1732_daily_bin1351.fits" evtable="EVENTS" scfile=/scratch/kocevski/385157/ft2_4FGL_J0939.3-1732_daily_bin1351.fits sctable="SC_DATA" outfile=/scratch/kocevski/385157/ltcube_589507201_589766401_4FGL_J0939.3-1732_daily_bin1351.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/385157/ft2_4FGL_J0939.3-1732_daily_bin1351.fits
.....................!
real 12.33
user 11.94
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/385157/ft1_filtered_4FGL_J0939.3-1732_daily_bin1351.fits evtable="EVENTS" scfile=/scratch/kocevski/385157/ft2_4FGL_J0939.3-1732_daily_bin1351.fits sctable="SC_DATA" expcube=/scratch/kocevski/385157/ltcube_589507201_589766401_4FGL_J0939.3-1732_daily_bin1351.fits outfile=/scratch/kocevski/385157/expmap_589507201_589766401_4FGL_J0939.3-1732_daily_bin1351.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/385157/ltcube_589507201_589766401_4FGL_J0939.3-1732_daily_bin1351.fits
.....................!
real 190.33
user 185.03
sys 4.92

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/385157/ft1_filtered_4FGL_J0939.3-1732_daily_bin1351.fits scfile=/scratch/kocevski/385157/ft2_4FGL_J0939.3-1732_daily_bin1351.fits outfile=/scratch/kocevski/385157/cmap_589507201_589766401_4FGL_J0939.3-1732_daily_bin1351.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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/385157/ft1_filtered_4FGL_J0939.3-1732_daily_bin1351.fits scfile=/scratch/kocevski/385157/ft2_4FGL_J0939.3-1732_daily_bin1351.fits outfile=/scratch/kocevski/385157/cmap_HighResolution_589507201_589766401_4FGL_J0939.3-1732_daily_bin1351.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/385157/ft1_filtered_4FGL_J0939.3-1732_daily_bin1351.fits evtable="EVENTS" scfile=/scratch/kocevski/385157/ft2_4FGL_J0939.3-1732_daily_bin1351.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/385157/Model_4FGL_J0939.3-1732_daily_bin1351.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/385157/ft1_filtered_4FGL_J0939.3-1732_daily_bin1351.fits.....................!
real 67.42
user 65.68
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    18.287       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .15701E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .28428E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.8574       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.3017       1.0000         .10000E-03   10000.    
     8 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .26203E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.8552       1.0000         .10000E-03   10000.    
    11 'norm      '    10.598       1.0000         .10000E-03   10000.    
    12 'norm      '    2.0218       1.0000         .10000E-03   10000.    
    13 'norm      '    .13551E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .98502       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.1752       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.0815       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6094.919     FROM MIGRAD    STATUS=CONVERGED    414 CALLS     1488 TOTAL
                     EDM=   .29E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.1041         .0000    ** at limit **
   2  Prefactor     .10000E-03    8.6299         .0000    ** at limit **
   3  Prefactor     18.296        12.710         .0000       -.95068E-05
   4  Prefactor     .10000E-03    22.082         .0000    ** at limit **
   5  Prefactor     .10000E-03    48.767         .0000    ** at limit **
   6  Prefactor     5.9965        81.058         .0000        .22813E-04
   7  Prefactor     4.2945        23.357         .0000        .58202E-04
   8  norm          .10000E-03    2.1583         .0000    ** at limit **
   9  norm          .46922        7.8349         .0000        .22287E-03
  10  norm          1.8516        6.5457         .0000        .15686E-01
  11  norm          10.602        8.4507         .0000        .85406E-04
  12  norm          2.0199        3.0932         .0000        .18747E-03
  13  norm          .10000E-03    34.682         .0000    ** at limit **
  14  norm          .98753        1.4986         .0000        .11134E-02
  15  Prefactor     .10000E-03    3.2703         .0000    ** at limit **
  16  Normalizat    1.1732        .25257         .0000       -.18323E-04
  17  Prefactor     1.0820        .12752         .0000       -.72072E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.2962
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.99649
  Prefactor  = 4.2945
  norm       = 0.0001
  norm       = 0.469217
  norm       = 1.85165
  norm       = 10.6018
  norm       = 2.01986
  norm       = 0.0001
  norm       = 0.987529
  Prefactor  = 0.0001
  Normalizat = 1.17318
  Prefactor  = 1.08195
 **********
 **   18 **HESSE 
 **********

 FCN=   6094.919     FROM HESSE     STATUS=OK           227 CALLS     1715 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.1977        .17215E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    8.6627        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     18.296        12.711        .93659E-04   -1.4852    
   4  Prefactor     .10000E-03    22.107        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    49.071        .21412E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.9965        86.293        .15321E-03   -1.5218    
   7  Prefactor     4.2945        23.202        .19424E-03   -1.5293    
   8  norm          .10000E-03    2.1666        .11200E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .46922        74.890        .37826E-02   -1.5571    
  10  norm          1.8516        6.5312        .15301E-02   -1.5436    
  11  norm          10.602        8.4525        .12308E-03   -1.5057    
  12  norm          2.0199        3.0654        .16326E-03   -1.5424    
  13  norm          .10000E-03    35.232        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .98753        1.3910        .11007E-02   -1.5509    
  15  Prefactor     .10000E-03    3.2751        .13788E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.1732        .29205        .33950E-03   -.87436    
  17  Prefactor     1.0820        .14892        .18555E-03   -.90046    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.51026e-08
Minuit parameter uncertainties:
  1  1.01618e-05
  2  5.38462e-05
  3  12.7133
  4  2.77561e-05
  5  0.000312293
  6  45.5745
  7  19.9759
  8  7.73328e-06
  9  11.8696
  10  6.53376
  11  8.45341
  12  3.06562
  13  1.85499e-05
  14  1.39109
  15  1.04903e-05
  16  0.292453
  17  0.148981
Done.

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

Extracting fit parameters...

4FGL J0939.3-1732
   Spectrum: PowerLaw
260    Prefactor:  4.294e+00  1.998e+01  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.082e+00  1.490e-01  0.000e+00  1.000e+01 ( 1.000e+00)
555        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
556        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
553   Normalization:  1.173e+00  2.925e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.05
Ra Dec: 144.836 -17.542
Photon Flux Upper Limit: 1.34e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.02e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/385157/likelihoodResults_589507201_589766401_4FGL_J0939.3-1732_daily_bin1351.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) = 6094.86869447
delta logL = 0.0499182703643

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6094.86268534
delta logL = 0.0559273933341

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.2488       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9798       1.0000          .0000       10.000    
     3 'Normalizat'    1.1470       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0893       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=   6094.863     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      259 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.2447        51.506        .22470E-03   -.42145E-04
   2  Index         2.9802        3.5683        .92363E-02   -.13601E-04
   3  Normalizat    1.1471        .30123        .34291E-03    .70384E-04
   4  Prefactor     1.0893        .15371        .18500E-03   -.49945E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.24466
  Index      = 2.98016
  Normalizat = 1.14711
  Prefactor  = 1.08931
 **********
 **   18 **HESSE 
 **********

 FCN=   6094.863     FROM HESSE     STATUS=OK            25 CALLS      284 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.2447        15.454        .89882E-05   -1.5348    
   2  Index         2.9802        2.1416        .36945E-03   -.41585    
   3  Normalizat    1.1471        .29644        .13717E-04   -.88253    
   4  Prefactor     1.0893        .15096        .36999E-04   -.89809    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.0619e-09
Minuit parameter uncertainties:
  1  14.1683
  2  2.22877
  3  0.29687
  4  0.151019
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/385157': 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) = 6094.86268525
delta logL = 0.0559274911029

Extracting fit parameters...

4FGL J0939.3-1732
   Spectrum: PowerLaw
260    Prefactor:  3.245e+00  1.417e+01  1.000e-04  1.000e+04 ( 1.000e-13)
261        Index:  2.980e+00  2.229e+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.089e+00  1.510e-01  0.000e+00  1.000e+01 ( 1.000e+00)
555        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
556        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
553   Normalization:  1.147e+00  2.969e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.05
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/385157/cmap_HighResolution_589507201_589766401_4FGL_J0939.3-1732_daily_bin1351.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.02e-02', job_status='DONE', photon_flux_upper_limit='1.34e-07', time_completed='2021-08-31 20:10:14.922474', job_id='385157', GAL2='1.09', fit_tolerance='1e-08', EG2='1.15', EG='1.17', time_epoch_completed='1630465814.92', return_code2='0', ts='0.05', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='5.59e-02', ts2='0.18', photon_index_error='0.00', photon_index='2.26' WHERE bin_id='1351' AND source_name='4FGL J0939.3-1732' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 20:10:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0251>
Subject: Job 385157: <4FGL_J0939.3-1732_daily_bin1351> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0939.3-1732_daily_bin1351 144.836 -17.5418 589507201 589766401 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 :                                   526.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             352.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   589 sec.
    Turnaround time :                            591 sec.

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

