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


Performing analysis on: 4FGL_J0939.3-1732_daily_bin1542
RA = 144.836, Dec = -17.5418
tmin = 639014401, tmax = 639273601
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='385438', job_status='RUN', time_executed='2021-08-31 20:02:27.066714', time_epoch_executed='1630465347.07' WHERE source_name='4FGL J0939.3-1732' and cadence='daily' and bin_id='1542'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/385438

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/385438/ft1_4FGL_J0939.3-1732_daily_bin1542.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/385438/ft2_4FGL_J0939.3-1732_daily_bin1542.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/385438/ft1_4FGL_J0939.3-1732_daily_bin1542.fits outfile=/scratch/kocevski/385438/ft1_filteredMKT_4FGL_J0939.3-1732_daily_bin1542.fits ra=144.836 dec=-17.5418 rad=12.0 tmin=639014401.0 tmax=639273601.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 5.26
user 5.02
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/385438/ft2_4FGL_J0939.3-1732_daily_bin1542.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/385438/ft1_filteredMKT_4FGL_J0939.3-1732_daily_bin1542.fits evtable="EVENTS" outfile="/scratch/kocevski/385438/ft1_filtered_4FGL_J0939.3-1732_daily_bin1542.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/385438/ft1_filtered_4FGL_J0939.3-1732_daily_bin1542.fits" evtable="EVENTS" scfile=/scratch/kocevski/385438/ft2_4FGL_J0939.3-1732_daily_bin1542.fits sctable="SC_DATA" outfile=/scratch/kocevski/385438/ltcube_639014401_639273601_4FGL_J0939.3-1732_daily_bin1542.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/385438/ft2_4FGL_J0939.3-1732_daily_bin1542.fits
.....................!
real 11.45
user 11.12
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/385438/ft1_filtered_4FGL_J0939.3-1732_daily_bin1542.fits evtable="EVENTS" scfile=/scratch/kocevski/385438/ft2_4FGL_J0939.3-1732_daily_bin1542.fits sctable="SC_DATA" expcube=/scratch/kocevski/385438/ltcube_639014401_639273601_4FGL_J0939.3-1732_daily_bin1542.fits outfile=/scratch/kocevski/385438/expmap_639014401_639273601_4FGL_J0939.3-1732_daily_bin1542.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/385438/ltcube_639014401_639273601_4FGL_J0939.3-1732_daily_bin1542.fits
.....................!
real 190.25
user 185.76
sys 4.09

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/385438/ft1_filtered_4FGL_J0939.3-1732_daily_bin1542.fits scfile=/scratch/kocevski/385438/ft2_4FGL_J0939.3-1732_daily_bin1542.fits outfile=/scratch/kocevski/385438/cmap_639014401_639273601_4FGL_J0939.3-1732_daily_bin1542.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.51
user 0.36
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/385438/ft1_filtered_4FGL_J0939.3-1732_daily_bin1542.fits scfile=/scratch/kocevski/385438/ft2_4FGL_J0939.3-1732_daily_bin1542.fits outfile=/scratch/kocevski/385438/cmap_HighResolution_639014401_639273601_4FGL_J0939.3-1732_daily_bin1542.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.53
user 0.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/385438/ft1_filtered_4FGL_J0939.3-1732_daily_bin1542.fits evtable="EVENTS" scfile=/scratch/kocevski/385438/ft2_4FGL_J0939.3-1732_daily_bin1542.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/385438/Model_4FGL_J0939.3-1732_daily_bin1542.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/385438/ft1_filtered_4FGL_J0939.3-1732_daily_bin1542.fits.....................!
real 49.13
user 47.72
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.627       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.1639       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    35.237       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.963       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .18375E-02   1.0000         .10000E-03   10000.    
    10 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    7.7803       1.0000         .10000E-03   10000.    
    14 'norm      '    .34051       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    .78639       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.0062       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=   4231.313     FROM MIGRAD    STATUS=CONVERGED    340 CALLS     1626 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.627        10.970       -.27800E-08   -.81218E-04
   2  Prefactor     2.1613        2.2496       -.51996E-06   -.10406E-03
   3  Prefactor     .10000E-03    12.597        .56757E-09** at limit **
   4  Prefactor     35.238        48.513        .37260E-07   -.43078E-03
   5  Prefactor     .10004E-03    52.879       -.70155E-07** at limit **
   6  Prefactor     .10000E-03    22.407       -.34905E-08** at limit **
   7  Prefactor     12.962        20.973       -.33512E-07    .30271E-03
   8  norm          .10000E-03    2.0931       -.68230E-09** at limit **
   9  norm          .10038E-03    9.2366        .23358E-07** at limit **
  10  norm          .10000E-03    3.1605       -.72366E-09** at limit **
  11  norm          .10000E-03    14.206        .79480E-09** at limit **
  12  norm          .10000E-03    .80401       -.44698E-09** at limit **
  13  norm          7.7822        14.615       -.19808E-07    .86370E-04
  14  norm          .33894        2.4116       -.26483E-07    .57844E-05
  15  Prefactor     .10000E-03    3.5109        .20717E-09** at limit **
  16  Normalizat    .78639        .25704        .71614E-07    .81582E-05
  17  Prefactor     1.0062        .13570        .21493E-08    .10100E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.627
  Prefactor  = 2.16131
  Prefactor  = 0.0001
  Prefactor  = 35.2378
  Prefactor  = 0.000100038
  Prefactor  = 0.0001
  Prefactor  = 12.9619
  norm       = 0.0001
  norm       = 0.000100375
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 7.78219
  norm       = 0.338945
  Prefactor  = 0.0001
  Normalizat = 0.786393
  Prefactor  = 1.00617
 **********
 **   18 **HESSE 
 **********

 FCN=   4231.313     FROM HESSE     STATUS=OK           225 CALLS     1851 TOTAL
                     EDM=   .85E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.627        10.962        .95395E-04   -1.4868    
   2  Prefactor     2.1613        25.384        .14000E-02   -1.5414    
   3  Prefactor     .10000E-03    12.730        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     35.238        48.508        .67510E-04   -1.4520    
   5  Prefactor     .10004E-03    53.033        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    22.419        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     12.962        20.939        .11125E-03   -1.4988    
   8  norm          .10000E-03    2.0967        .91911E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10038E-03    60.008        .37547E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    3.1818        .11290E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    14.526        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .81098        .56955E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          7.7822        14.585        .14376E-03   -1.5150    
  14  norm          .33894        4.5679        .17964E-02   -1.5592    
  15  Prefactor     .10000E-03    3.5132        .11904E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    .78639        .29208        .34549E-03   -1.0058    
  17  Prefactor     1.0062        .15763        .16984E-03   -.92524    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.50887e-09
Minuit parameter uncertainties:
  1  10.9633
  2  14.8215
  3  3.39028e-05
  4  48.5623
  5  0.00284377
  6  6.51787e-05
  7  20.9507
  8  3.8986e-06
  9  0.00950189
  10  4.18278e-06
  11  4.20413e-05
  12  4.91165e-07
  13  14.5914
  14  2.48846
  15  4.33536e-06
  16  0.29266
  17  0.157699
Done.

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

Extracting fit parameters...

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

EG_v02
   Spectrum: FileFunction
553   Normalization:  7.864e-01  2.927e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/385438/likelihoodResults_639014401_639273601_4FGL_J0939.3-1732_daily_bin1542.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) = 4231.30907366
delta logL = 0.00436957948841

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4231.30813983
delta logL = 0.00530340216937

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.095       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3508       1.0000          .0000       10.000    
     3 'Normalizat'    .78368       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0069       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=   4231.308     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      260 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.095        22.708        .57593E-03   -.49803E-04
   2  Index         2.3508        .89596        .90603E-02    .21715E-03
   3  Normalizat    .78379        .28358        .34601E-03   -.94627E-05
   4  Prefactor     1.0069        .15637        .16978E-03   -.16205E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.0946
  Index      = 2.35084
  Normalizat = 0.783785
  Prefactor  = 1.00687
 **********
 **   18 **HESSE 
 **********

 FCN=   4231.308     FROM HESSE     STATUS=OK            25 CALLS      285 TOTAL
                     EDM=   .95E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.095        21.767        .23037E-04   -1.5012    
   2  Index         2.3508        .85916        .18121E-02   -.55840    
   3  Normalizat    .78379        .28377        .13840E-04   -1.0067    
   4  Prefactor     1.0069        .15645        .67912E-05   -.92501    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.53467e-12
Minuit parameter uncertainties:
  1  21.7814
  2  0.865145
  3  0.284302
  4  0.156522
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/385438': 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) = 4231.30813975
delta logL = 0.00530348386019

Extracting fit parameters...

4FGL J0939.3-1732
   Spectrum: PowerLaw
260    Prefactor:  1.209e+01  2.178e+01  1.000e-04  1.000e+04 ( 1.000e-13)
261        Index:  2.351e+00  8.651e-01  0.000e+00  1.000e+01 (-1.000e+00)
262        Scale:  1.278e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
554    Prefactor:  1.007e+00  1.565e-01  0.000e+00  1.000e+01 ( 1.000e+00)
555        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
556        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
553   Normalization:  7.838e-01  2.843e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.48
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/385438/cmap_HighResolution_639014401_639273601_4FGL_J0939.3-1732_daily_bin1542.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.22e-02', job_status='DONE', photon_flux_upper_limit='1.59e-07', time_completed='2021-08-31 20:10:46.335536', job_id='385438', GAL2='1.01', fit_tolerance='1e-08', EG2='0.78', EG='0.79', time_epoch_completed='1630465846.34', return_code2='0', ts='0.48', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='5.30e-03', ts2='0.49', photon_index_error='0.00', photon_index='2.26' WHERE bin_id='1542' AND source_name='4FGL J0939.3-1732' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 20:10:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0075>
Subject: Job 385438: <4FGL_J0939.3-1732_daily_bin1542> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0939.3-1732_daily_bin1542 144.836 -17.5418 639014401 639273601 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 :                                   467.27 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             287.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   599 sec.
    Turnaround time :                            601 sec.

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

