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


Performing analysis on: 4FGL_J1917.7-6930_daily_bin1329
RA = 289.442, Dec = -69.5061
tmin = 583804801, tmax = 584064001
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='783320', job_status='RUN', time_executed='2021-09-22 15:48:18.351287', time_epoch_executed='1632350898.35' WHERE source_name='4FGL J1917.7-6930' and cadence='daily' and bin_id='1329'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/783320

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/783320/ft1_4FGL_J1917.7-6930_daily_bin1329.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/783320/ft2_4FGL_J1917.7-6930_daily_bin1329.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/783320/ft1_4FGL_J1917.7-6930_daily_bin1329.fits outfile=/scratch/kocevski/783320/ft1_filteredMKT_4FGL_J1917.7-6930_daily_bin1329.fits ra=289.442 dec=-69.5061 rad=12.0 tmin=583804801.0 tmax=584064001.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 3.47
user 3.27
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/783320/ft1_filtered_4FGL_J1917.7-6930_daily_bin1329.fits" evtable="EVENTS" scfile=/scratch/kocevski/783320/ft2_4FGL_J1917.7-6930_daily_bin1329.fits sctable="SC_DATA" outfile=/scratch/kocevski/783320/ltcube_583804801_584064001_4FGL_J1917.7-6930_daily_bin1329.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/783320/ft2_4FGL_J1917.7-6930_daily_bin1329.fits
.....................!
real 16.39
user 16.02
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/783320/ft1_filtered_4FGL_J1917.7-6930_daily_bin1329.fits evtable="EVENTS" scfile=/scratch/kocevski/783320/ft2_4FGL_J1917.7-6930_daily_bin1329.fits sctable="SC_DATA" expcube=/scratch/kocevski/783320/ltcube_583804801_584064001_4FGL_J1917.7-6930_daily_bin1329.fits outfile=/scratch/kocevski/783320/expmap_583804801_584064001_4FGL_J1917.7-6930_daily_bin1329.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/783320/ltcube_583804801_584064001_4FGL_J1917.7-6930_daily_bin1329.fits
.....................!
real 190.08
user 185.01
sys 4.74

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/783320/ft1_filtered_4FGL_J1917.7-6930_daily_bin1329.fits scfile=/scratch/kocevski/783320/ft2_4FGL_J1917.7-6930_daily_bin1329.fits outfile=/scratch/kocevski/783320/cmap_583804801_584064001_4FGL_J1917.7-6930_daily_bin1329.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/783320/ft1_filtered_4FGL_J1917.7-6930_daily_bin1329.fits scfile=/scratch/kocevski/783320/ft2_4FGL_J1917.7-6930_daily_bin1329.fits outfile=/scratch/kocevski/783320/cmap_HighResolution_583804801_584064001_4FGL_J1917.7-6930_daily_bin1329.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.40
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/783320/ft1_filtered_4FGL_J1917.7-6930_daily_bin1329.fits evtable="EVENTS" scfile=/scratch/kocevski/783320/ft2_4FGL_J1917.7-6930_daily_bin1329.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/783320/Model_4FGL_J1917.7-6930_daily_bin1329.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/783320/ft1_filtered_4FGL_J1917.7-6930_daily_bin1329.fits.....................!
real 89.17
user 87.78
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    47.901       1.0000         .10000E-03   10000.    
     2 'norm      '    .10281E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    9.4533       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.4076       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10092E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    46.676       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .17301E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    14.407       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .18549E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    4.5557       1.0000         .10000E-03   10000.    
    11 'norm      '    33.570       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .15629E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11968E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    6.3372       1.0000         .10000E-03   10000.    
    15 'norm      '    .10268E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .95656E-03   1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.2362       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .94445       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=   10093.25     FROM MIGRAD    STATUS=CONVERGED    357 CALLS     1736 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     47.981        97.698        .15295E-05    .70413E-04
   2  norm          .10000E-03    2.7455       -.16470E-06** at limit **
   3  norm          9.4226        65.102        .44595E-06   -.25125E-04
   4  Prefactor     5.4066        13.293        .72748E-05    .45158E-03
   5  Prefactor     .10000E-03    3.1142       -.18292E-06** at limit **
   6  Prefactor     46.725        74.594        .10056E-05    .75630E-04
   7  Prefactor     .10000E-03    45.861        .38534E-06** at limit **
   8  norm          14.415        22.250        .15487E-06    .28045E-04
   9  Prefactor     .10000E-03    38.514        .65847E-06** at limit **
  10  norm          4.5624        7.6908        .40278E-06    .72527E-04
  11  norm          33.572        8.8746        .48977E-07    .11730E-04
  12  Prefactor     .10000E-03    11.774       -.13548E-06** at limit **
  13  Prefactor     .10000E-03    18.093        .32770E-07** at limit **
  14  norm          6.3362        1.8813        .41871E-07    .51916E-03
  15  norm          .10000E-03    23.134       -.24774E-06** at limit **
  16  Prefactor     .10149E-03    14.442       -.42670E-05** at limit **
  17  Normalizat    1.2354        .22646        .82210E-07    .30650E-03
  18  Prefactor     .94453        .86972E-01   -.34031E-06    .58993E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 47.9811
  norm       = 0.0001
  norm       = 9.42264
  Prefactor  = 5.40659
  Prefactor  = 0.0001
  Prefactor  = 46.7251
  Prefactor  = 0.0001
  norm       = 14.415
  Prefactor  = 0.0001
  norm       = 4.5624
  norm       = 33.5721
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.33622
  norm       = 0.0001
  Prefactor  = 0.000101487
  Normalizat = 1.23539
  Prefactor  = 0.94453
 **********
 **   18 **HESSE 
 **********

 FCN=   10093.25     FROM HESSE     STATUS=OK           246 CALLS     1982 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     47.981        97.666        .57937E-04   -1.4321    
   2  norm          .10000E-03    10.385        .32169E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          9.4226        64.984        .13034E-03   -1.5094    
   4  Prefactor     5.4066        13.483        .86403E-03   -1.5243    
   5  Prefactor     .10000E-03    3.1216        .17326E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     46.725        74.588        .58689E-04   -1.4340    
   7  Prefactor     .10000E-03    45.868        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          14.415        22.234        .10552E-03   -1.4948    
   9  Prefactor     .10000E-03    38.520        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          4.5624        7.6780        .18860E-03   -1.5281    
  11  norm          33.572        8.8788        .69161E-04   -1.4548    
  12  Prefactor     .10000E-03    11.991        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    18.216        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          6.3362        1.8843        .71523E-04   -1.5204    
  15  norm          .10000E-03    23.153        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10149E-03    74.661        .59364E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.2354        .26710        .38146E-03   -.85516    
  18  Prefactor     .94453        .10417        .16675E-03   -.94602    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.94551e-08
Minuit parameter uncertainties:
  1  97.994
  2  0.000141091
  3  49.5671
  4  13.491
  5  2.01694e-05
  6  74.738
  7  1.94644e-06
  8  22.2466
  9  0.000222912
  10  7.67963
  11  8.87911
  12  1.22665e-05
  13  3.5673e-05
  14  1.88436
  15  8.81264e-05
  16  0.0210996
  17  0.267392
  18  0.104187
Done.

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

Extracting fit parameters...

4FGL J1917.7-6930
   Spectrum: PowerLaw
423    Prefactor:  1.000e-04  1.227e-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:  9.445e-01  1.042e-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.235e+00  2.674e-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.17e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.51e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/783320/likelihoodResults_583804801_584064001_4FGL_J1917.7-6930_daily_bin1329.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) = 10093.2484683
delta logL = -0.000397553618313

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10093.2480715
delta logL = -7.2518014349e-07

Fit tolerance = 1e-08

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

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

 FCN=   10093.25     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      246 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10051E-03    69.400        .18142E-02** at limit **
   2  Index         2.2480        8.7854        .50000        .12011E-04
   3  Normalizat    1.2354        .13410E-01    .38146E-03   -.79872E-05
   4  Prefactor     .94453        .52403E-02    .16675E-03   -.24953E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010051
  Index      = 2.24797
  Normalizat = 1.23539
  Prefactor  = 0.94453
 **********
 **   18 **HESSE 
 **********

 FCN=   10093.25     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      275 TOTAL
                     EDM=   .58E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10051E-03    322.09        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2480        5.1189        .50000       -.58285    
   3  Normalizat    1.2354        .29647E-01    .15258E-04   -.85516    
   4  Prefactor     .94453        .11585E-01    .66701E-05   -.94602    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.82224e-09
Minuit parameter uncertainties:
  1  0.0257826
  2  375.213
  3  0.0296478
  4  0.0115854
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/783320': 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) = 10093.2480705
delta logL = 1.87194018508e-07

Extracting fit parameters...

4FGL J1917.7-6930
   Spectrum: PowerLaw
423    Prefactor:  1.005e-04  2.578e-02  1.000e-04  1.000e+04 ( 1.000e-13)
424        Index:  2.248e+00  3.752e+02  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:  9.445e-01  1.159e-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.235e+00  2.965e-02  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/783320/cmap_HighResolution_583804801_584064001_4FGL_J1917.7-6930_daily_bin1329.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.51e-03', job_status='DONE', photon_flux_upper_limit='7.17e-08', time_completed='2021-09-22 16:01:52.459252', job_id='783320', GAL2='0.94', fit_tolerance='1e-08', EG2='1.24', EG='1.24', time_epoch_completed='1632351712.46', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='1.87e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.31' WHERE bin_id='1329' AND source_name='4FGL J1917.7-6930' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 22 16:01:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0152>
Subject: Job 783320: <4FGL_J1917.7-6930_daily_bin1329> in cluster <slac> Done

Job <4FGL_J1917.7-6930_daily_bin1329> 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) <bullet0152>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 22 15:47:57 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:47:57 2021
Terminated at Wed Sep 22 16:01:53 2021
Results reported at Wed Sep 22 16:01:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1917.7-6930_daily_bin1329 289.442 -69.5061 583804801 584064001 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 :                                   810.26 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             339.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   835 sec.
    Turnaround time :                            965 sec.

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

