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


Performing analysis on: 4FGL_J1917.7-6930_daily_bin1332
RA = 289.442, Dec = -69.5061
tmin = 584582401, tmax = 584841601
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='783324', job_status='RUN', time_executed='2021-09-22 15:48:13.586371', time_epoch_executed='1632350893.59' WHERE source_name='4FGL J1917.7-6930' and cadence='daily' and bin_id='1332'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/783324

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/783324/ft1_4FGL_J1917.7-6930_daily_bin1332.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/783324/ft2_4FGL_J1917.7-6930_daily_bin1332.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/783324/ft1_4FGL_J1917.7-6930_daily_bin1332.fits outfile=/scratch/kocevski/783324/ft1_filteredMKT_4FGL_J1917.7-6930_daily_bin1332.fits ra=289.442 dec=-69.5061 rad=12.0 tmin=584582401.0 tmax=584841601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 2.85
user 2.65
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/783324/ft2_4FGL_J1917.7-6930_daily_bin1332.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/783324/ft1_filteredMKT_4FGL_J1917.7-6930_daily_bin1332.fits evtable="EVENTS" outfile="/scratch/kocevski/783324/ft1_filtered_4FGL_J1917.7-6930_daily_bin1332.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/783324/ft1_filtered_4FGL_J1917.7-6930_daily_bin1332.fits" evtable="EVENTS" scfile=/scratch/kocevski/783324/ft2_4FGL_J1917.7-6930_daily_bin1332.fits sctable="SC_DATA" outfile=/scratch/kocevski/783324/ltcube_584582401_584841601_4FGL_J1917.7-6930_daily_bin1332.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/783324/ft2_4FGL_J1917.7-6930_daily_bin1332.fits
.....................!
real 13.65
user 13.30
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/783324/ft1_filtered_4FGL_J1917.7-6930_daily_bin1332.fits evtable="EVENTS" scfile=/scratch/kocevski/783324/ft2_4FGL_J1917.7-6930_daily_bin1332.fits sctable="SC_DATA" expcube=/scratch/kocevski/783324/ltcube_584582401_584841601_4FGL_J1917.7-6930_daily_bin1332.fits outfile=/scratch/kocevski/783324/expmap_584582401_584841601_4FGL_J1917.7-6930_daily_bin1332.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/783324/ltcube_584582401_584841601_4FGL_J1917.7-6930_daily_bin1332.fits
.....................!
real 191.55
user 186.03
sys 5.16

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/783324/ft1_filtered_4FGL_J1917.7-6930_daily_bin1332.fits scfile=/scratch/kocevski/783324/ft2_4FGL_J1917.7-6930_daily_bin1332.fits outfile=/scratch/kocevski/783324/cmap_584582401_584841601_4FGL_J1917.7-6930_daily_bin1332.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.54
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/783324/ft1_filtered_4FGL_J1917.7-6930_daily_bin1332.fits scfile=/scratch/kocevski/783324/ft2_4FGL_J1917.7-6930_daily_bin1332.fits outfile=/scratch/kocevski/783324/cmap_HighResolution_584582401_584841601_4FGL_J1917.7-6930_daily_bin1332.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/783324/ft1_filtered_4FGL_J1917.7-6930_daily_bin1332.fits evtable="EVENTS" scfile=/scratch/kocevski/783324/ft2_4FGL_J1917.7-6930_daily_bin1332.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/783324/Model_4FGL_J1917.7-6930_daily_bin1332.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/783324/ft1_filtered_4FGL_J1917.7-6930_daily_bin1332.fits.....................!
real 52.18
user 50.87
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/783324/ft1_filtered_4FGL_J1917.7-6930_daily_bin1332.fits', '/scratch/kocevski/783324/ft2_4FGL_J1917.7-6930_daily_bin1332.fits', expMap='/scratch/kocevski/783324/expmap_584582401_584841601_4FGL_J1917.7-6930_daily_bin1332.fits', expCube='/scratch/kocevski/783324/ltcube_584582401_584841601_4FGL_J1917.7-6930_daily_bin1332.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/783324/Model_4FGL_J1917.7-6930_daily_bin1332.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/783324/ft1_filtered_4FGL_J1917.7-6930_daily_bin1332.fits
Spacecraft file(s): /scratch/kocevski/783324/ft2_4FGL_J1917.7-6930_daily_bin1332.fits
Exposure map: /scratch/kocevski/783324/expmap_584582401_584841601_4FGL_J1917.7-6930_daily_bin1332.fits
Exposure cube: /scratch/kocevski/783324/ltcube_584582401_584841601_4FGL_J1917.7-6930_daily_bin1332.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/783324/Model_4FGL_J1917.7-6930_daily_bin1332.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) = 4184.05838991

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    83.185       1.0000         .10000E-03   10000.    
     2 'norm      '    2.9225       1.0000         .10000E-03   10000.    
     3 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.5596       1.0000         .10000E-03   10000.    
     5 'Prefactor '    30.285       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .13207E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10257E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11284E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10064E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    4.9301       1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.2694       1.0000         .10000E-03   10000.    
    13 'Prefactor '    33.296       1.0000         .10000E-03   10000.    
    14 'norm      '    3.7533       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.1615       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.1461       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=   4184.052     FROM MIGRAD    STATUS=CONVERGED    346 CALLS     1716 TOTAL
                     EDM=   .43E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     83.184        119.42       -.27579E-06    .14915E-05
   2  norm          2.9215        8.2513        .10275E-05   -.30807E-03
   3  norm          .10000E-03    30.905       -.68998E-05** at limit **
   4  Prefactor     3.5687        320.54        .19868E-04    .33799E-04
   5  Prefactor     30.286        57.789       -.64091E-05    .64537E-04
   6  Prefactor     .10018E-03    1609.4       -.15801E-02** at limit **
   7  Prefactor     .10000E-03    162.77        .11233E-03** at limit **
   8  norm          .10000E-03    18.433        .10323E-06** at limit **
   9  Prefactor     .10000E-03    213.24       -.99050E-04** at limit **
  10  norm          .10000E-03    9.4685        .90792E-07** at limit **
  11  norm          4.9298        7.6896        .12968E-05   -.15970E-03
  12  Prefactor     8.2654        21.188        .83431E-06   -.11360E-04
  13  Prefactor     33.296        42.235        .99123E-07    .46266E-06
  14  norm          3.7533        4.0452        .63340E-07    .16199E-03
  15  norm          .10000E-03    68.912       -.97624E-05** at limit **
  16  Prefactor     .10000E-03    30.633        .73272E-05** at limit **
  17  Normalizat    1.1614        .44170        .21258E-06    .18674E-03
  18  Prefactor     1.1462        .15623        .67636E-07    .59270E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 83.1844
  norm       = 2.92146
  norm       = 0.0001
  Prefactor  = 3.56873
  Prefactor  = 30.2858
  Prefactor  = 0.000100175
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 4.92981
  Prefactor  = 8.26536
  Prefactor  = 33.2964
  norm       = 3.75333
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.16135
  Prefactor  = 1.14621
 **********
 **   18 **HESSE 
 **********

 FCN=   4184.052     FROM HESSE     STATUS=OK           242 CALLS     1958 TOTAL
                     EDM=   .85E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     83.184        119.44        .44041E-04   -1.3881    
   2  norm          2.9215        8.2414        .23763E-03   -1.5366    
   3  norm          .10000E-03    30.911        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.5687        268.35        .21422E-03   -1.5330    
   5  Prefactor     30.286        52.912        .72805E-04   -1.4607    
   6  Prefactor     .10018E-03    1610.0        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    162.84        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    18.455        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    213.23        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    9.4942        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          4.9298        7.7019        .18114E-03   -1.5264    
  12  Prefactor     8.2654        21.189        .13941E-03   -1.5133    
  13  Prefactor     33.296        42.244        .69444E-04   -1.4553    
  14  norm          3.7533        4.0479        .13173E-03   -1.5320    
  15  norm          .10000E-03    68.993        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    30.642        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.1614        .51096        .47326E-03   -.87806    
  18  Prefactor     1.1462        .18278        .16730E-03   -.88003    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.52438e-10
Minuit parameter uncertainties:
  1  119.792
  2  8.24459
  3  6.67623e-06
  4  62.1837
  5  52.9946
  6  0.0345444
  7  0.000242291
  8  5.62022e-06
  9  0.000740941
  10  1.7118e-06
  11  7.70344
  12  21.2082
  13  42.2823
  14  4.04818
  15  1.30467e-05
  16  1.13311e-06
  17  0.51317
  18  0.182882
Done.

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

Extracting fit parameters...

4FGL J1917.7-6930
   Spectrum: PowerLaw
423    Prefactor:  8.265e+00  2.121e+01  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:  1.146e+00  1.829e-01  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.161e+00  5.132e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.19
Ra Dec: 289.442 -69.506
Photon Flux Upper Limit: 2.17e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.66e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/783324/likelihoodResults_584582401_584841601_4FGL_J1917.7-6930_daily_bin1332.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) = 4183.88541446
delta logL = 0.166553663278

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4183.86294837
delta logL = 0.189019756901

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.9535       1.0000         .10000E-03   10000.    
     2 'Index     '    3.4152       1.0000          .0000       10.000    
     3 'Normalizat'    1.0876       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1616       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   4183.863     FROM MIGRAD    STATUS=FAILED        86 CALLS      288 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.9532        301.44        .15583E-03   -.97299E-03
   2  Index         3.4157        5.6888        .59890E-02   -.22313E-03
   3  Normalizat    1.0881        .59638        .48705E-03   -.16839E-03
   4  Prefactor     1.1615        .19633        .16631E-03   -.38455E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4183.863     FROM SIMPLEX   STATUS=UNCHANGED     91 CALLS      379 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.9532        301.44        .34353E-03   -.97299E-03
   2  Index         3.4157        5.6888        .24381E-02   -.22313E-03
   3  Normalizat    1.0881        .59638        .26568E-03   -.16839E-03
   4  Prefactor     1.1615        .19633        .80381E-04   -.38455E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4183.863     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      410 TOTAL
                     EDM=   .16E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.9529        11.991        .62334E-05   -.50338E-04
   2  Index         3.4158        1.9907        .23956E-03   -.79252E-05
   3  Normalizat    1.0881        .52728        .19482E-04   -.17506E-05
   4  Prefactor     1.1615        .18232        .33263E-04   -.34179E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.95285
  Index      = 3.41578
  Normalizat = 1.08809
  Prefactor  = 1.16152
 **********
 **   18 **HESSE 
 **********

 FCN=   4183.863     FROM HESSE     STATUS=OK            23 CALLS      433 TOTAL
                     EDM=   .16E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.9529        11.643        .12467E-05   -1.5364    
   2  Index         3.4158        1.9511        .95824E-05   -.32240    
   3  Normalizat    1.0881        .52679        .38964E-05   -.90135    
   4  Prefactor     1.1615        .18220        .66525E-05   -.87524    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.586e-12
Minuit parameter uncertainties:
  1  11.6519
  2  2.01086
  3  0.529362
  4  0.182303
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/783324': 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) = 4183.86294753
delta logL = 0.189020592185

Extracting fit parameters...

4FGL J1917.7-6930
   Spectrum: PowerLaw
423    Prefactor:  2.953e+00  1.165e+01  1.000e-04  1.000e+04 ( 1.000e-13)
424        Index:  3.416e+00  2.011e+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:  1.162e+00  1.823e-01  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.088e+00  5.294e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

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/783324/cmap_HighResolution_584582401_584841601_4FGL_J1917.7-6930_daily_bin1332.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.66e-02', job_status='DONE', photon_flux_upper_limit='2.17e-07', time_completed='2021-09-22 15:57:04.045196', job_id='783324', GAL2='1.16', fit_tolerance='1e-08', EG2='1.09', EG='1.16', time_epoch_completed='1632351424.05', return_code2='0', ts='0.19', comment='SUCCESS', return_code='0', GAL='1.15', dlogl='1.89e-01', ts2='0.60', photon_index_error='0.00', photon_index='2.31' WHERE bin_id='1332' AND source_name='4FGL J1917.7-6930' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 22 15:57:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0030>
Subject: Job 783324: <4FGL_J1917.7-6930_daily_bin1332> in cluster <slac> Done

Job <4FGL_J1917.7-6930_daily_bin1332> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep 22 15:45:48 2021
Job was executed on host(s) <bullet0030>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 22 15:48:00 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:48:00 2021
Terminated at Wed Sep 22 15:57:04 2021
Results reported at Wed Sep 22 15:57:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1917.7-6930_daily_bin1332 289.442 -69.5061 584582401 584841601 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 :                                   525.07 sec.
    Max Memory :                                 1129 MB
    Average Memory :                             340.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   544 sec.
    Turnaround time :                            676 sec.

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

