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


Performing analysis on: 4FGL_J1917.7-6930_daily_bin1141
RA = 289.442, Dec = -69.5061
tmin = 535075201, tmax = 535334401
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='779839', job_status='RUN', time_executed='2021-09-22 15:36:28.531300', time_epoch_executed='1632350188.53' WHERE source_name='4FGL J1917.7-6930' and cadence='daily' and bin_id='1141'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/779839

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/779839/ft1_4FGL_J1917.7-6930_daily_bin1141.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/779839/ft2_4FGL_J1917.7-6930_daily_bin1141.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/779839/ft1_4FGL_J1917.7-6930_daily_bin1141.fits outfile=/scratch/kocevski/779839/ft1_filteredMKT_4FGL_J1917.7-6930_daily_bin1141.fits ra=289.442 dec=-69.5061 rad=12.0 tmin=535075201.0 tmax=535334401.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.00
user 4.76
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/779839/ft2_4FGL_J1917.7-6930_daily_bin1141.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/779839/ft2_4FGL_J1917.7-6930_daily_bin1141.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/779839/ft1_filteredMKT_4FGL_J1917.7-6930_daily_bin1141.fits evtable="EVENTS" outfile="/scratch/kocevski/779839/ft1_filtered_4FGL_J1917.7-6930_daily_bin1141.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.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/779839/ft1_filtered_4FGL_J1917.7-6930_daily_bin1141.fits" evtable="EVENTS" scfile=/scratch/kocevski/779839/ft2_4FGL_J1917.7-6930_daily_bin1141.fits sctable="SC_DATA" outfile=/scratch/kocevski/779839/ltcube_535075201_535334401_4FGL_J1917.7-6930_daily_bin1141.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/779839/ft2_4FGL_J1917.7-6930_daily_bin1141.fits
.....................!
real 12.11
user 11.77
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/779839/ft1_filtered_4FGL_J1917.7-6930_daily_bin1141.fits evtable="EVENTS" scfile=/scratch/kocevski/779839/ft2_4FGL_J1917.7-6930_daily_bin1141.fits sctable="SC_DATA" expcube=/scratch/kocevski/779839/ltcube_535075201_535334401_4FGL_J1917.7-6930_daily_bin1141.fits outfile=/scratch/kocevski/779839/expmap_535075201_535334401_4FGL_J1917.7-6930_daily_bin1141.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/779839/ltcube_535075201_535334401_4FGL_J1917.7-6930_daily_bin1141.fits
.....................!
real 190.86
user 184.91
sys 5.61

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 203 point sources and 0 extended sources

Setting source of interest to:
4FGL J1917.7-6930 @ 289.442 -69.5061

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/779839/ft1_filtered_4FGL_J1917.7-6930_daily_bin1141.fits scfile=/scratch/kocevski/779839/ft2_4FGL_J1917.7-6930_daily_bin1141.fits outfile=/scratch/kocevski/779839/cmap_535075201_535334401_4FGL_J1917.7-6930_daily_bin1141.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=289.442 yref=-69.5061 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.56
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/779839/ft1_filtered_4FGL_J1917.7-6930_daily_bin1141.fits scfile=/scratch/kocevski/779839/ft2_4FGL_J1917.7-6930_daily_bin1141.fits outfile=/scratch/kocevski/779839/cmap_HighResolution_535075201_535334401_4FGL_J1917.7-6930_daily_bin1141.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=289.442 yref=-69.5061 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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/779839/ft1_filtered_4FGL_J1917.7-6930_daily_bin1141.fits evtable="EVENTS" scfile=/scratch/kocevski/779839/ft2_4FGL_J1917.7-6930_daily_bin1141.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/779839/Model_4FGL_J1917.7-6930_daily_bin1141.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/779839/ft1_filtered_4FGL_J1917.7-6930_daily_bin1141.fits.....................!
real 93.92
user 92.46
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/779839/ft1_filtered_4FGL_J1917.7-6930_daily_bin1141.fits', '/scratch/kocevski/779839/ft2_4FGL_J1917.7-6930_daily_bin1141.fits', expMap='/scratch/kocevski/779839/expmap_535075201_535334401_4FGL_J1917.7-6930_daily_bin1141.fits', expCube='/scratch/kocevski/779839/ltcube_535075201_535334401_4FGL_J1917.7-6930_daily_bin1141.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/779839/Model_4FGL_J1917.7-6930_daily_bin1141.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1917.7-6930'

4FGL J1917.7-6930
   Spectrum: PowerLaw
423    Prefactor:  2.026e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
424        Index:  2.308e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
425        Scale:  1.347e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/779839/ft1_filtered_4FGL_J1917.7-6930_daily_bin1141.fits
Spacecraft file(s): /scratch/kocevski/779839/ft2_4FGL_J1917.7-6930_daily_bin1141.fits
Exposure map: /scratch/kocevski/779839/expmap_535075201_535334401_4FGL_J1917.7-6930_daily_bin1141.fits
Exposure cube: /scratch/kocevski/779839/ltcube_535075201_535334401_4FGL_J1917.7-6930_daily_bin1141.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/779839/Model_4FGL_J1917.7-6930_daily_bin1141.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) = 10284.3562458

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'norm      '    6.7175       1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.3793       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    64.279       1.0000         .10000E-03   10000.    
     8 'norm      '    38.114       1.0000         .10000E-03   10000.    
     9 'Prefactor '    94.820       1.0000         .10000E-03   10000.    
    10 'norm      '    24.326       1.0000         .10000E-03   10000.    
    11 'norm      '    7.2691       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    4.7405       1.0000         .10000E-03   10000.    
    15 'norm      '    89.279       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.7531       1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.5445       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .75266       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6830E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10284.35     FROM MIGRAD    STATUS=CONVERGED    344 CALLS     1696 TOTAL
                     EDM=   .90E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    65.446        .54126E-05** at limit **
   2  norm          6.7175        5.7146        .18738E-07   -.10155E-04
   3  norm          .10000E-03    32.702        .15818E-05** at limit **
   4  Prefactor     .10000E-03    6.7881       -.20636E-07** at limit **
   5  Prefactor     6.3799        7.9032        .73813E-07    .21982E-05
   6  Prefactor     .10000E-03    46.781       -.57453E-05** at limit **
   7  Prefactor     64.279        82.619        .37171E-06    .75583E-05
   8  norm          38.111        25.203        .19896E-06   -.98285E-06
   9  Prefactor     94.819        74.861        .34152E-06    .10707E-04
  10  norm          24.325        10.806        .39219E-07    .12035E-05
  11  norm          7.2700        8.4066        .74434E-06   -.15707E-05
  12  Prefactor     .10000E-03    6.5132       -.34940E-07** at limit **
  13  Prefactor     .10000E-03    13.917       -.49427E-07** at limit **
  14  norm          4.7406        1.5520        .17821E-07    .51620E-05
  15  norm          89.278        53.820        .33789E-07    .58767E-07
  16  Prefactor     3.7534        10.766        .21084E-05   -.77346E-06
  17  Normalizat    1.5445        .21636       -.35363E-06    .71892E-05
  18  Prefactor     .75266        .81424E-01   -.40860E-07   -.40826E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 6.7175
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.37992
  Prefactor  = 0.0001
  Prefactor  = 64.2785
  norm       = 38.111
  Prefactor  = 94.8188
  norm       = 24.3248
  norm       = 7.26995
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.74062
  norm       = 89.2782
  Prefactor  = 3.75336
  Normalizat = 1.54449
  Prefactor  = 0.752658
 **********
 **   18 **HESSE 
 **********

 FCN=   10284.35     FROM HESSE     STATUS=OK           244 CALLS     1940 TOTAL
                     EDM=   .94E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    65.454        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          6.7175        5.7155        .15482E-03   -1.5190    
   3  norm          .10000E-03    32.732        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.8277        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     6.3799        7.9002        .15891E-03   -1.5203    
   6  Prefactor     .10000E-03    46.826        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     64.279        82.706        .50054E-04   -1.4103    
   8  norm          38.111        25.231        .64921E-04   -1.4472    
   9  Prefactor     94.819        74.908        .41275E-04   -1.3757    
  10  norm          24.325        10.810        .81217E-04   -1.4721    
  11  norm          7.2700        8.4094        .74385E-03   -1.5169    
  12  Prefactor     .10000E-03    6.5502        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    13.948        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          4.7406        1.5541        .68584E-04   -1.5272    
  15  norm          89.278        53.867        .42525E-04   -1.3815    
  16  Prefactor     3.7534        10.772        .10420E-02   -1.5320    
  17  Normalizat    1.5445        .26009        .33490E-03   -.76536    
  18  Prefactor     .75266        .98125E-01    .17426E-03   -1.0150    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.43401e-11
Minuit parameter uncertainties:
  1  7.69506e-06
  2  5.716
  3  2.88256e-06
  4  3.66448e-07
  5  7.90148
  6  3.1388e-06
  7  82.8545
  8  25.2382
  9  74.9824
  10  10.8107
  11  8.41073
  12  8.1114e-07
  13  3.90318e-07
  14  1.55414
  15  53.8964
  16  10.7774
  17  0.260312
  18  0.098148
Done.

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

Extracting fit parameters...

4FGL J1917.7-6930
   Spectrum: PowerLaw
423    Prefactor:  1.000e-04  8.111e-07  1.000e-04  1.000e+04 ( 1.000e-13)
424        Index:  2.308e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
425        Scale:  1.347e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
680    Prefactor:  7.527e-01  9.815e-02  0.000e+00  1.000e+01 ( 1.000e+00)
681        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
682        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
679   Normalization:  1.544e+00  2.603e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 289.442 -69.506
Photon Flux Upper Limit: 7.02e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.39e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/779839/likelihoodResults_535075201_535334401_4FGL_J1917.7-6930_daily_bin1141.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) = 10284.353245
delta logL = -0.000727571576135

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10284.3525175
delta logL = 1.8057107809e-08

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10284.35     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      211 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    229.22        .90712E-02** at limit **
   2  Index         2.3236        5.7627        .50000       -.10433E-04
   3  Normalizat    1.5445        .33655E-01    .75681E-01   -.11854E-04
   4  Prefactor     .75266        .12830E-01    .43098E-01   -.10991E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.32362
  Normalizat = 1.54448
  Prefactor  = 0.752658
 **********
 **   18 **HESSE 
 **********

 FCN=   10284.35     FROM HESSE     STATUS=OK            33 CALLS      244 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.0961        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3236        6.1253        .50000       -.56483    
   3  Normalizat    1.5445        .25219        .33490E-03   -.76536    
   4  Prefactor     .75266        .96286E-01    .17426E-03   -1.0150    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.77636e-10
Minuit parameter uncertainties:
  1  2.31039e-05
  2  4.97128
  3  0.252401
  4  0.0963075
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/779839': 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) = 10284.3525174
delta logL = 3.81496647606e-08

Extracting fit parameters...

4FGL J1917.7-6930
   Spectrum: PowerLaw
423    Prefactor:  1.000e-04  2.310e-05  1.000e-04  1.000e+04 ( 1.000e-13)
424        Index:  2.324e+00  4.971e+00  0.000e+00  1.000e+01 (-1.000e+00)
425        Scale:  1.347e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
680    Prefactor:  7.527e-01  9.631e-02  0.000e+00  1.000e+01 ( 1.000e+00)
681        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
682        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
679   Normalization:  1.544e+00  2.524e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 289.442 -69.506

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/779839/cmap_HighResolution_535075201_535334401_4FGL_J1917.7-6930_daily_bin1141.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.39e-03', job_status='DONE', photon_flux_upper_limit='7.02e-08', time_completed='2021-09-22 15:51:35.015942', job_id='779839', GAL2='0.75', fit_tolerance='1e-08', EG2='1.54', EG='1.54', time_epoch_completed='1632351095.02', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.75', dlogl='3.81e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.31' WHERE bin_id='1141' AND source_name='4FGL J1917.7-6930' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 22 15:51:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0051>
Subject: Job 779839: <4FGL_J1917.7-6930_daily_bin1141> in cluster <slac> Done

Job <4FGL_J1917.7-6930_daily_bin1141> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Sep 22 15:35:52 2021
Job was executed on host(s) <bullet0051>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 22 15:36:11 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 22 15:36:11 2021
Terminated at Wed Sep 22 15:51:35 2021
Results reported at Wed Sep 22 15:51:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1917.7-6930_daily_bin1141 289.442 -69.5061 535075201 535334401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1917.7-6930 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   823.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             308.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   924 sec.
    Turnaround time :                            943 sec.

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

