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


Performing analysis on: 4FGL_J0939.3-1732_daily_bin1535
RA = 144.836, Dec = -17.5418
tmin = 637200001, tmax = 637459201
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='385428', job_status='RUN', time_executed='2021-08-31 20:02:09.389429', time_epoch_executed='1630465329.39' WHERE source_name='4FGL J0939.3-1732' and cadence='daily' and bin_id='1535'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/385428

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/385428/ft1_4FGL_J0939.3-1732_daily_bin1535.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/385428/ft2_4FGL_J0939.3-1732_daily_bin1535.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/385428/ft1_4FGL_J0939.3-1732_daily_bin1535.fits outfile=/scratch/kocevski/385428/ft1_filteredMKT_4FGL_J0939.3-1732_daily_bin1535.fits ra=144.836 dec=-17.5418 rad=12.0 tmin=637200001.0 tmax=637459201.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.36
user 5.12
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/385428/ft1_filtered_4FGL_J0939.3-1732_daily_bin1535.fits" evtable="EVENTS" scfile=/scratch/kocevski/385428/ft2_4FGL_J0939.3-1732_daily_bin1535.fits sctable="SC_DATA" outfile=/scratch/kocevski/385428/ltcube_637200001_637459201_4FGL_J0939.3-1732_daily_bin1535.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/385428/ft2_4FGL_J0939.3-1732_daily_bin1535.fits
.....................!
real 11.61
user 11.27
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/385428/ft1_filtered_4FGL_J0939.3-1732_daily_bin1535.fits evtable="EVENTS" scfile=/scratch/kocevski/385428/ft2_4FGL_J0939.3-1732_daily_bin1535.fits sctable="SC_DATA" expcube=/scratch/kocevski/385428/ltcube_637200001_637459201_4FGL_J0939.3-1732_daily_bin1535.fits outfile=/scratch/kocevski/385428/expmap_637200001_637459201_4FGL_J0939.3-1732_daily_bin1535.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/385428/ltcube_637200001_637459201_4FGL_J0939.3-1732_daily_bin1535.fits
.....................!
real 191.28
user 186.44
sys 4.48

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 169 point sources and 0 extended sources

Setting source of interest to:
4FGL J0939.3-1732 @ 144.836 -17.5418

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/385428/ft1_filtered_4FGL_J0939.3-1732_daily_bin1535.fits scfile=/scratch/kocevski/385428/ft2_4FGL_J0939.3-1732_daily_bin1535.fits outfile=/scratch/kocevski/385428/cmap_637200001_637459201_4FGL_J0939.3-1732_daily_bin1535.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.54
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/385428/ft1_filtered_4FGL_J0939.3-1732_daily_bin1535.fits scfile=/scratch/kocevski/385428/ft2_4FGL_J0939.3-1732_daily_bin1535.fits outfile=/scratch/kocevski/385428/cmap_HighResolution_637200001_637459201_4FGL_J0939.3-1732_daily_bin1535.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.55
user 0.40
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/385428/ft1_filtered_4FGL_J0939.3-1732_daily_bin1535.fits evtable="EVENTS" scfile=/scratch/kocevski/385428/ft2_4FGL_J0939.3-1732_daily_bin1535.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/385428/Model_4FGL_J0939.3-1732_daily_bin1535.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/385428/ft1_filtered_4FGL_J0939.3-1732_daily_bin1535.fits.....................!
real 95.59
user 93.88
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.1651       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    18.579       1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.9303       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    7.1822       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .62534       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .18333E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    .93388       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .97638       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=   9562.214     FROM MIGRAD    STATUS=CONVERGED    313 CALLS     1348 TOTAL
                     EDM=   .34E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.1656        4.5287       -.15978E-06   -.37167E-03
   2  Prefactor     .10000E-03    4.0929        .28830E-05** at limit **
   3  Prefactor     .10000E-03    3.4579       -.21606E-05** at limit **
   4  Prefactor     18.580        21.982        .36633E-06   -.94015E-05
   5  Prefactor     8.9295        17.587       -.14982E-05   -.23867E-04
   6  Prefactor     .10000E-03    13.522       -.50184E-06** at limit **
   7  Prefactor     .10000E-03    3.6220        .19099E-05** at limit **
   8  norm          .10000E-03    4.6411       -.39951E-05** at limit **
   9  norm          7.1821        5.0430       -.61192E-07   -.11423E-03
  10  norm          .10000E-03    .92964       -.39560E-07** at limit **
  11  norm          .10000E-03    2.0621        .20582E-08** at limit **
  12  norm          .10000E-03    .36808        .21995E-08** at limit **
  13  norm          .10000E-03    1.6170       -.25171E-07** at limit **
  14  norm          .62535        .87077       -.25365E-06   -.20767E-02
  15  Prefactor     .10000E-03    5.9903        .16455E-05** at limit **
  16  Normalizat    .93399        .15100        .22538E-06    .47146E-04
  17  Prefactor     .97630        .86551E-01    .12043E-06    .14729E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.16563
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.5796
  Prefactor  = 8.92955
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 7.18209
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.625347
  Prefactor  = 0.0001
  Normalizat = 0.93399
  Prefactor  = 0.976302
 **********
 **   18 **HESSE 
 **********

 FCN=   9562.214     FROM HESSE     STATUS=OK           217 CALLS     1565 TOTAL
                     EDM=   .64E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.1656        4.5529        .14986E-03   -1.5173    
   2  Prefactor     .10000E-03    4.0754        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.4612        .17700E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     18.580        21.979        .92920E-04   -1.4846    
   5  Prefactor     8.9295        17.630        .13412E-03   -1.5110    
   6  Prefactor     .10000E-03    13.634        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.6100        .18124E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    4.6479        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          7.1821        5.0504        .14968E-03   -1.5172    
  10  norm          .10000E-03    .93570        .92062E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    2.0651        .13714E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .36962        .57931E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.6190        .12143E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .62535        .87384        .10594E-03   -1.5550    
  15  Prefactor     .10000E-03    6.1803        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    .93399        .17568        .29701E-03   -.95276    
  17  Prefactor     .97630        .10139        .16903E-03   -.93524    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.37167e-10
Minuit parameter uncertainties:
  1  4.55314
  2  5.78036e-06
  3  2.08575e-06
  4  21.9883
  5  17.6405
  6  9.91735e-07
  7  1.73219e-06
  8  3.26984e-05
  9  5.05074
  10  4.49228e-08
  11  1.23448e-07
  12  7.40474e-08
  13  2.01041e-07
  14  0.873855
  15  1.88752e-05
  16  0.175791
  17  0.10141
Done.

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

Extracting fit parameters...

4FGL J0939.3-1732
   Spectrum: PowerLaw
260    Prefactor:  1.000e-04  1.732e-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:  9.763e-01  1.014e-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.340e-01  1.758e-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: 4.30e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.29e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/385428/likelihoodResults_637200001_637459201_4FGL_J0939.3-1732_daily_bin1535.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) = 9562.21524079
delta logL = -0.00131971402516

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9562.21392109
delta logL = -1.3653334463e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2586       1.0000          .0000       10.000    
     3 'Normalizat'    .93397       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97631       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5570E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9562.214     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      207 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.832        .90712E-02** at limit **
   2  Index         2.2540        5.2549        .50000        .10496E-04
   3  Normalizat    .93399        .14712        .67142E-01    .26448E-04
   4  Prefactor     .97630        .85902E-01    .45970E-01    .11837E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.25402
  Normalizat = 0.933991
  Prefactor  = 0.976301
 **********
 **   18 **HESSE 
 **********

 FCN=   9562.214     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      238 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    541.84        .18140E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2540        5.4517        .50000       -.58140    
   3  Normalizat    .93399        .64193E-01    .29701E-03   -.95276    
   4  Prefactor     .97630        .37517E-01    .16903E-03   -.93524    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.61698e-08
Minuit parameter uncertainties:
  1  1.88094e-05
  2  51.6558
  3  0.0641987
  4  0.0375177
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/385428': 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) = 9562.21392105
delta logL = 2.34776962316e-08

Extracting fit parameters...

4FGL J0939.3-1732
   Spectrum: PowerLaw
260    Prefactor:  1.000e-04  1.881e-05  1.000e-04  1.000e+04 ( 1.000e-13)
261        Index:  2.254e+00  5.166e+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:  9.763e-01  3.752e-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:  9.340e-01  6.420e-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/385428/cmap_HighResolution_637200001_637459201_4FGL_J0939.3-1732_daily_bin1535.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.29e-03', job_status='DONE', photon_flux_upper_limit='4.30e-08', time_completed='2021-08-31 20:13:29.583285', job_id='385428', GAL2='0.98', fit_tolerance='1e-08', EG2='0.93', EG='0.93', time_epoch_completed='1630466009.58', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='2.35e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.26' WHERE bin_id='1535' AND source_name='4FGL J0939.3-1732' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 20:13:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0124>
Subject: Job 385428: <4FGL_J0939.3-1732_daily_bin1535> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0939.3-1732_daily_bin1535 144.836 -17.5418 637200001 637459201 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 :                                   648.13 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             282.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   763 sec.
    Turnaround time :                            765 sec.

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

