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


Performing analysis on: 4FGL_J1917.7-6930_daily_bin1133
RA = 289.442, Dec = -69.5061
tmin = 533001601, tmax = 533260801
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='779827', job_status='RUN', time_executed='2021-09-22 15:39:25.658213', time_epoch_executed='1632350365.66' WHERE source_name='4FGL J1917.7-6930' and cadence='daily' and bin_id='1133'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/779827

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/779827/ft1_4FGL_J1917.7-6930_daily_bin1133.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/779827/ft2_4FGL_J1917.7-6930_daily_bin1133.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/779827/ft1_4FGL_J1917.7-6930_daily_bin1133.fits outfile=/scratch/kocevski/779827/ft1_filteredMKT_4FGL_J1917.7-6930_daily_bin1133.fits ra=289.442 dec=-69.5061 rad=12.0 tmin=533001601.0 tmax=533260801.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.93
user 2.71
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/779827/ft2_4FGL_J1917.7-6930_daily_bin1133.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/779827/ft1_filteredMKT_4FGL_J1917.7-6930_daily_bin1133.fits evtable="EVENTS" outfile="/scratch/kocevski/779827/ft1_filtered_4FGL_J1917.7-6930_daily_bin1133.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.44
user 0.28
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/779827/ft1_filtered_4FGL_J1917.7-6930_daily_bin1133.fits" evtable="EVENTS" scfile=/scratch/kocevski/779827/ft2_4FGL_J1917.7-6930_daily_bin1133.fits sctable="SC_DATA" outfile=/scratch/kocevski/779827/ltcube_533001601_533260801_4FGL_J1917.7-6930_daily_bin1133.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/779827/ft2_4FGL_J1917.7-6930_daily_bin1133.fits
.....................!
real 10.31
user 9.99
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/779827/ft1_filtered_4FGL_J1917.7-6930_daily_bin1133.fits evtable="EVENTS" scfile=/scratch/kocevski/779827/ft2_4FGL_J1917.7-6930_daily_bin1133.fits sctable="SC_DATA" expcube=/scratch/kocevski/779827/ltcube_533001601_533260801_4FGL_J1917.7-6930_daily_bin1133.fits outfile=/scratch/kocevski/779827/expmap_533001601_533260801_4FGL_J1917.7-6930_daily_bin1133.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/779827/ltcube_533001601_533260801_4FGL_J1917.7-6930_daily_bin1133.fits
.....................!
real 154.26
user 149.80
sys 4.19

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/779827/ft1_filtered_4FGL_J1917.7-6930_daily_bin1133.fits scfile=/scratch/kocevski/779827/ft2_4FGL_J1917.7-6930_daily_bin1133.fits outfile=/scratch/kocevski/779827/cmap_533001601_533260801_4FGL_J1917.7-6930_daily_bin1133.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.51
user 0.31
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/779827/ft1_filtered_4FGL_J1917.7-6930_daily_bin1133.fits scfile=/scratch/kocevski/779827/ft2_4FGL_J1917.7-6930_daily_bin1133.fits outfile=/scratch/kocevski/779827/cmap_HighResolution_533001601_533260801_4FGL_J1917.7-6930_daily_bin1133.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.48
user 0.31
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/779827/ft1_filtered_4FGL_J1917.7-6930_daily_bin1133.fits evtable="EVENTS" scfile=/scratch/kocevski/779827/ft2_4FGL_J1917.7-6930_daily_bin1133.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/779827/Model_4FGL_J1917.7-6930_daily_bin1133.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/779827/ft1_filtered_4FGL_J1917.7-6930_daily_bin1133.fits.....................!
real 69.66
user 68.50
sys 1.03

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    3.5396       1.0000         .10000E-03   10000.    
     3 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.1001       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    19.619       1.0000         .10000E-03   10000.    
     9 'Prefactor '    54.004       1.0000         .10000E-03   10000.    
    10 'norm      '    14.848       1.0000         .10000E-03   10000.    
    11 'norm      '    2.7819       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.5445       1.0000         .10000E-03   10000.    
    15 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.8031       1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.6266       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .83216       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=   9369.840     FROM MIGRAD    STATUS=CONVERGED    370 CALLS     1719 TOTAL
                     EDM=   .14E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    143.74        .14686E-05** at limit **
   2  norm          3.5389        5.2351        .12352E-06   -.89262E-05
   3  norm          .10000E-03    40.183        .18676E-05** at limit **
   4  Prefactor     3.1027        15.240        .42253E-05   -.74414E-05
   5  Prefactor     .10000E-03    9.8806        .32816E-06** at limit **
   6  Prefactor     .10000E-03    26.893       -.23163E-05** at limit **
   7  Prefactor     .10000E-03    48.919       -.35165E-05** at limit **
   8  norm          19.621        28.248        .55991E-07   -.97845E-05
   9  Prefactor     54.029        55.877       -.24207E-05   -.24412E-05
  10  norm          14.848        10.964       -.11637E-07   -.35787E-04
  11  norm          2.7822        5.9632        .28011E-06   -.36026E-05
  12  Prefactor     .10000E-03    22.312        .71162E-06** at limit **
  13  Prefactor     .10000E-03    12.075       -.33546E-07** at limit **
  14  norm          2.5445        1.7944        .51385E-07   -.18587E-05
  15  norm          .10000E-03    35.694        .22080E-05** at limit **
  16  Prefactor     5.8035        11.129        .10363E-05    .22616E-06
  17  Normalizat    1.6266        .23527       -.28658E-06   -.31746E-04
  18  Prefactor     .83216        .86985E-01   -.14196E-06   -.61848E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 3.53889
  norm       = 0.0001
  Prefactor  = 3.10274
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 19.6205
  Prefactor  = 54.029
  norm       = 14.8483
  norm       = 2.78217
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.54454
  norm       = 0.0001
  Prefactor  = 5.80349
  Normalizat = 1.62655
  Prefactor  = 0.832164
 **********
 **   18 **HESSE 
 **********

 FCN=   9369.840     FROM HESSE     STATUS=OK           244 CALLS     1963 TOTAL
                     EDM=   .70E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    144.08        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.5389        5.2297        .21485E-03   -1.5332    
   3  norm          .10000E-03    40.232        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.1027        15.247        .11516E-02   -1.5356    
   5  Prefactor     .10000E-03    10.053        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    26.886        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    48.936        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          19.621        28.305        .90426E-04   -1.4822    
   9  Prefactor     54.029        55.863        .54581E-04   -1.4237    
  10  norm          14.848        10.964        .10394E-03   -1.4937    
  11  norm          2.7822        5.9596        .24397E-03   -1.5374    
  12  Prefactor     .10000E-03    22.817        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    12.092        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.5445        1.7936        .10293E-03   -1.5389    
  15  norm          .10000E-03    35.740        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     5.8035        11.138        .83360E-03   -1.5226    
  17  Normalizat    1.6266        .28432        .34138E-03   -.74282    
  18  Prefactor     .83216        .10512        .17239E-03   -.98553    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.99929e-11
Minuit parameter uncertainties:
  1  1.82669e-06
  2  5.23035
  3  7.43288e-06
  4  13.7617
  5  3.32352e-06
  6  4.81614e-06
  7  1.54073e-05
  8  28.3239
  9  55.9172
  10  10.966
  11  5.96088
  12  1.74697e-05
  13  4.39763e-07
  14  1.79367
  15  7.73325e-06
  16  11.1422
  17  0.284607
  18  0.105141
Done.

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

Extracting fit parameters...

4FGL J1917.7-6930
   Spectrum: PowerLaw
423    Prefactor:  1.000e-04  1.747e-05  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:  8.322e-01  1.051e-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.627e+00  2.846e-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: 8.96e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.88e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/779827/likelihoodResults_533001601_533260801_4FGL_J1917.7-6930_daily_bin1133.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) = 9369.84034865
delta logL = -0.000209062320209

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9369.84014044
delta logL = -8.49946445669e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .22884E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4264       1.0000          .0000       10.000    
     3 'Normalizat'    1.6270       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83200       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=   9369.101     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      265 TOTAL
                     EDM=   .67E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .25414E-01    .28580        .29731E-02    .78516E-02
   2  Index         5.4501        2.0994        .10076        .25122E-03
   3  Normalizat    1.5182        .47332E-01    .79270E-01    .42684E-04
   4  Prefactor     .85671        .17945E-01    .44132E-01    .13987E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0254143
  Index      = 5.45006
  Normalizat = 1.51824
  Prefactor  = 0.85671
 **********
 **   18 **HESSE 
 **********

 FCN=   9369.101     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      298 TOTAL
                     EDM=   .17E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .25414E-01    .95301        .13555E-03   -1.5676    
   2  Index         5.4501        7.2291        .55173E-02    .90134E-01
   3  Normalizat    1.5182        .18954        .35085E-03   -.77267    
   4  Prefactor     .85671        .70509E-01    .17009E-03   -.97671    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.68583e-07
Minuit parameter uncertainties:
  1  0.310648
  2  5.07992
  3  0.189632
  4  0.070516
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/779827': 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) = 9369.10138124
delta logL = 0.738758348007

Extracting fit parameters...

4FGL J1917.7-6930
   Spectrum: PowerLaw
423    Prefactor:  2.541e-02  3.106e-01  1.000e-04  1.000e+04 ( 1.000e-13)
424        Index:  5.450e+00  5.080e+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:  8.567e-01  7.052e-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.518e+00  1.896e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.60
Ra Dec: 289.442 -69.506
Photon Index (Free Index): 5.45 +/- 5.08
Photon Flux (Free Index): 8.24e-08 +/- 6.87e-08
Energy Flux (Free Index): 1.06e-05 +/- 1.00e-05

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/779827/cmap_HighResolution_533001601_533260801_4FGL_J1917.7-6930_daily_bin1133.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.88e-03', comment='SUCCESS', energy_flux2='1.06e-05', dlogl='7.39e-01', photon_flux2='8.24e-08', job_status='DONE', time_completed='2021-09-22 15:50:02.638500', photon_index_error2='5.08', photon_index2='5.45', ts='-0.00', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', photon_flux_upper_limit='8.96e-08', energy_flux_error2='1.00e-05', EG='1.63', time_epoch_completed='1632351002.64', return_code='0', job_id='779827', GAL2='0.86', EG2='1.52', return_code2='102', photon_flux_error2='6.87e-08', ts2='1.60', photon_index='2.31' WHERE bin_id='1133' AND source_name='4FGL J1917.7-6930' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 22 15:50:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0135>
Subject: Job 779827: <4FGL_J1917.7-6930_daily_bin1133> in cluster <slac> Done

Job <4FGL_J1917.7-6930_daily_bin1133> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Sep 22 15:35:51 2021
Job was executed on host(s) <bullet0135>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 22 15:36:08 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:08 2021
Terminated at Wed Sep 22 15:50:03 2021
Results reported at Wed Sep 22 15:50:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1917.7-6930_daily_bin1133 289.442 -69.5061 533001601 533260801 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 :                                   633.11 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             266.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   834 sec.
    Turnaround time :                            852 sec.

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

