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


Performing analysis on: 4FGL_J0939.3-1732_daily_bin1170
RA = 144.836, Dec = -17.5418
tmin = 542592001, tmax = 542851201
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='383723', job_status='RUN', time_executed='2021-08-31 19:58:38.398998', time_epoch_executed='1630465118.4' WHERE source_name='4FGL J0939.3-1732' and cadence='daily' and bin_id='1170'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/383723

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/383723/ft1_4FGL_J0939.3-1732_daily_bin1170.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/383723/ft2_4FGL_J0939.3-1732_daily_bin1170.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/383723/ft1_4FGL_J0939.3-1732_daily_bin1170.fits outfile=/scratch/kocevski/383723/ft1_filteredMKT_4FGL_J0939.3-1732_daily_bin1170.fits ra=144.836 dec=-17.5418 rad=12.0 tmin=542592001.0 tmax=542851201.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 6.70
user 6.46
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/383723/ft1_filtered_4FGL_J0939.3-1732_daily_bin1170.fits" evtable="EVENTS" scfile=/scratch/kocevski/383723/ft2_4FGL_J0939.3-1732_daily_bin1170.fits sctable="SC_DATA" outfile=/scratch/kocevski/383723/ltcube_542592001_542851201_4FGL_J0939.3-1732_daily_bin1170.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/383723/ft2_4FGL_J0939.3-1732_daily_bin1170.fits
.....................!
real 11.71
user 11.37
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/383723/ft1_filtered_4FGL_J0939.3-1732_daily_bin1170.fits evtable="EVENTS" scfile=/scratch/kocevski/383723/ft2_4FGL_J0939.3-1732_daily_bin1170.fits sctable="SC_DATA" expcube=/scratch/kocevski/383723/ltcube_542592001_542851201_4FGL_J0939.3-1732_daily_bin1170.fits outfile=/scratch/kocevski/383723/expmap_542592001_542851201_4FGL_J0939.3-1732_daily_bin1170.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/383723/ltcube_542592001_542851201_4FGL_J0939.3-1732_daily_bin1170.fits
.....................!
real 190.45
user 185.24
sys 4.84

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/383723/ft1_filtered_4FGL_J0939.3-1732_daily_bin1170.fits scfile=/scratch/kocevski/383723/ft2_4FGL_J0939.3-1732_daily_bin1170.fits outfile=/scratch/kocevski/383723/cmap_542592001_542851201_4FGL_J0939.3-1732_daily_bin1170.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.55
user 0.38
sys 0.14

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/383723/ft1_filtered_4FGL_J0939.3-1732_daily_bin1170.fits evtable="EVENTS" scfile=/scratch/kocevski/383723/ft2_4FGL_J0939.3-1732_daily_bin1170.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/383723/Model_4FGL_J0939.3-1732_daily_bin1170.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/383723/ft1_filtered_4FGL_J0939.3-1732_daily_bin1170.fits.....................!
real 45.26
user 43.06
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.8917       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    81.556       1.0000         .10000E-03   10000.    
     5 'Prefactor '    135.33       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10873E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    5.7497       1.0000         .10000E-03   10000.    
    10 'norm      '    .19627E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    23.015       1.0000         .10000E-03   10000.    
    12 'norm      '    1.9871       1.0000         .10000E-03   10000.    
    13 'norm      '    3.7312       1.0000         .10000E-03   10000.    
    14 'norm      '    8.9956       1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.8216       1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.0795       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .65833       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=   3236.163     FROM MIGRAD    STATUS=CONVERGED    325 CALLS     1574 TOTAL
                     EDM=   .41E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.8860        5.8349       -.80195E-06   -.45685E-03
   2  Prefactor     .10000E-03    4.5685        .49344E-08** at limit **
   3  Prefactor     .10000E-03    2.3455       -.18773E-07** at limit **
   4  Prefactor     81.572        66.296        .16173E-04    .36491E-05
   5  Prefactor     135.35        65.664        .15673E-04    .68586E-04
   6  Prefactor     .10000E-03    41.013        .43494E-05** at limit **
   7  Prefactor     .10000E-03    6.4853       -.16037E-06** at limit **
   8  norm          .10000E-03    8.5926        .36956E-06** at limit **
   9  norm          5.7524        15.482        .73126E-05    .65062E-04
  10  norm          .10000E-03    5.8303       -.15398E-05** at limit **
  11  norm          23.016        18.128        .11324E-07   -.30179E-06
  12  norm          1.9877        2.5163       -.98815E-08   -.45113E-03
  13  norm          3.7031        33.822       -.57215E-04   -.46362E-04
  14  norm          8.9967        3.5826        .19714E-06    .39896E-04
  15  Prefactor     8.8215        9.7935        .31179E-06    .32022E-04
  16  Normalizat    1.0790        .28133       -.16563E-05    .19088E-03
  17  Prefactor     .65867        .13654        .15128E-06    .15560E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.88604
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 81.5725
  Prefactor  = 135.349
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 5.75244
  norm       = 0.000100001
  norm       = 23.0156
  norm       = 1.98769
  norm       = 3.70305
  norm       = 8.99673
  Prefactor  = 8.82151
  Normalizat = 1.07902
  Prefactor  = 0.658671
 **********
 **   18 **HESSE 
 **********

 FCN=   3236.163     FROM HESSE     STATUS=OK           223 CALLS     1797 TOTAL
                     EDM=   .83E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.8860        5.8220        .22600E-03   -1.5433    
   2  Prefactor     .10000E-03    4.5773        .11875E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.3461        .85089E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     81.572        66.288        .44475E-04   -1.3899    
   5  Prefactor     135.35        65.768        .17310E-03   -1.3376    
   6  Prefactor     .10000E-03    41.028        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    6.4861        .14150E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    8.7248        .16284E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          5.7524        15.414        .16750E-03   -1.5228    
  10  norm          .10000E-03    13.767        .26463E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          23.016        18.128        .83494E-04   -1.4748    
  12  norm          1.9877        2.5040        .49311E-03   -1.5426    
  13  norm          3.7031        34.443        .20904E-03   -1.5323    
  14  norm          8.9967        3.5947        .64601E-04   -1.5108    
  15  Prefactor     8.8215        9.7942        .13495E-03   -1.5114    
  16  Normalizat    1.0790        .32400        .29042E-03   -.90428    
  17  Prefactor     .65867        .15701        .18569E-03   -1.0517    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.29723e-10
Minuit parameter uncertainties:
  1  5.82372
  2  2.88232e-06
  3  2.99232e-06
  4  66.348
  5  65.8033
  6  0.000219753
  7  2.00341e-06
  8  1.95647e-06
  9  15.4244
  10  0.000232022
  11  18.1324
  12  2.50415
  13  22.604
  14  3.59482
  15  9.79601
  16  0.324599
  17  0.157117
Done.

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

Extracting fit parameters...

4FGL J0939.3-1732
   Spectrum: PowerLaw
260    Prefactor:  1.000e-04  2.003e-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:  6.587e-01  1.571e-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.079e+00  3.246e-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: 9.29e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.11e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/383723/likelihoodResults_542592001_542851201_4FGL_J0939.3-1732_daily_bin1170.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) = 3236.16351888
delta logL = -0.000724123487089

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3236.16279472
delta logL = 3.69627741748e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10159E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2397       1.0000          .0000       10.000    
     3 'Normalizat'    1.0790       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .65870       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=   3236.163     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      243 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10340E-03    9.6952        .14477E-01** at limit **
   2  Index         2.1428        5.1912        .50000        .25102E-04
   3  Normalizat    1.0790        .83425E-02    .29042E-03   -.36483E-04
   4  Prefactor     .65867        .42877E-02    .18569E-03    .15673E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001034
  Index      = 2.14276
  Normalizat = 1.07902
  Prefactor  = 0.658673
 **********
 **   18 **HESSE 
 **********

 FCN=   3236.163     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      272 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10340E-03    99.188        .14959E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1428        5.6783        .50000       -.60827    
   3  Normalizat    1.0790        .27063E-01    .11617E-04   -.90428    
   4  Prefactor     .65867        .13909E-01    .74276E-05   -1.0517    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.32083e-08
Minuit parameter uncertainties:
  1  0.0367883
  2  414.115
  3  0.0270633
  4  0.0139095
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/383723': 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) = 3236.16279417
delta logL = 5.78419076191e-07

Extracting fit parameters...

4FGL J0939.3-1732
   Spectrum: PowerLaw
260    Prefactor:  1.034e-04  3.679e-02  1.000e-04  1.000e+04 ( 1.000e-13)
261        Index:  2.143e+00  4.141e+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:  6.587e-01  1.391e-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:  1.079e+00  2.706e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/383723/cmap_HighResolution_542592001_542851201_4FGL_J0939.3-1732_daily_bin1170.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.11e-03', job_status='DONE', photon_flux_upper_limit='9.29e-08', time_completed='2021-08-31 20:08:44.936601', job_id='383723', GAL2='0.66', fit_tolerance='1e-08', EG2='1.08', EG='1.08', time_epoch_completed='1630465724.94', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.66', dlogl='5.78e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.26' WHERE bin_id='1170' AND source_name='4FGL J0939.3-1732' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 20:08:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0182>
Subject: Job 383723: <4FGL_J0939.3-1732_daily_bin1170> in cluster <slac> Done

Job <4FGL_J0939.3-1732_daily_bin1170> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Aug 31 19:55:56 2021
Job was executed on host(s) <bullet0182>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 19:55:57 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug 31 19:55:57 2021
Terminated at Tue Aug 31 20:08:45 2021
Results reported at Tue Aug 31 20:08:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0939.3-1732_daily_bin1170 144.836 -17.5418 542592001 542851201 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 :                                   444.26 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             259.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   768 sec.
    Turnaround time :                            769 sec.

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

