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


Performing analysis on: 4FGL_J1917.7-6930_daily_bin1214
RA = 289.442, Dec = -69.5061
tmin = 553996801, tmax = 554256001
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='781256', job_status='RUN', time_executed='2021-09-22 15:49:03.566187', time_epoch_executed='1632350943.57' WHERE source_name='4FGL J1917.7-6930' and cadence='daily' and bin_id='1214'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/781256

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/781256/ft1_4FGL_J1917.7-6930_daily_bin1214.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/781256/ft2_4FGL_J1917.7-6930_daily_bin1214.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/781256/ft1_4FGL_J1917.7-6930_daily_bin1214.fits outfile=/scratch/kocevski/781256/ft1_filteredMKT_4FGL_J1917.7-6930_daily_bin1214.fits ra=289.442 dec=-69.5061 rad=12.0 tmin=553996801.0 tmax=554256001.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.63
user 2.42
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/781256/ft1_filtered_4FGL_J1917.7-6930_daily_bin1214.fits" evtable="EVENTS" scfile=/scratch/kocevski/781256/ft2_4FGL_J1917.7-6930_daily_bin1214.fits sctable="SC_DATA" outfile=/scratch/kocevski/781256/ltcube_553996801_554256001_4FGL_J1917.7-6930_daily_bin1214.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/781256/ft2_4FGL_J1917.7-6930_daily_bin1214.fits
.....................!
real 13.53
user 13.10
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/781256/ft1_filtered_4FGL_J1917.7-6930_daily_bin1214.fits evtable="EVENTS" scfile=/scratch/kocevski/781256/ft2_4FGL_J1917.7-6930_daily_bin1214.fits sctable="SC_DATA" expcube=/scratch/kocevski/781256/ltcube_553996801_554256001_4FGL_J1917.7-6930_daily_bin1214.fits outfile=/scratch/kocevski/781256/expmap_553996801_554256001_4FGL_J1917.7-6930_daily_bin1214.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/781256/ltcube_553996801_554256001_4FGL_J1917.7-6930_daily_bin1214.fits
.....................!
real 191.41
user 185.65
sys 5.32

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/781256/ft1_filtered_4FGL_J1917.7-6930_daily_bin1214.fits scfile=/scratch/kocevski/781256/ft2_4FGL_J1917.7-6930_daily_bin1214.fits outfile=/scratch/kocevski/781256/cmap_553996801_554256001_4FGL_J1917.7-6930_daily_bin1214.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/781256/ft1_filtered_4FGL_J1917.7-6930_daily_bin1214.fits scfile=/scratch/kocevski/781256/ft2_4FGL_J1917.7-6930_daily_bin1214.fits outfile=/scratch/kocevski/781256/cmap_HighResolution_553996801_554256001_4FGL_J1917.7-6930_daily_bin1214.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.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/781256/ft1_filtered_4FGL_J1917.7-6930_daily_bin1214.fits evtable="EVENTS" scfile=/scratch/kocevski/781256/ft2_4FGL_J1917.7-6930_daily_bin1214.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/781256/Model_4FGL_J1917.7-6930_daily_bin1214.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/781256/ft1_filtered_4FGL_J1917.7-6930_daily_bin1214.fits.....................!
real 33.25
user 31.85
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10211E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10090E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .13917E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10784E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1524.4       1.0000         .10000E-03   10000.    
     6 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .54843E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .12759E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    9999.9       1.0000         .10000E-03   10000.    
    10 'norm      '    .10319E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.9705       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .13368E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.1562       1.0000         .10000E-03   10000.    
    14 'norm      '    3.9940       1.0000         .10000E-03   10000.    
    15 'norm      '    254.00       1.0000         .10000E-03   10000.    
    16 'Prefactor '    70.708       1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.6521       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .63885       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=   2197.854     FROM MIGRAD    STATUS=CONVERGED    356 CALLS     2086 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    66.129       -.78495E-05** at limit **
   2  norm          .10000E-03    4.8836       -.16387E-06** at limit **
   3  norm          .10000E-03    84.533       -.32940E-05** at limit **
   4  Prefactor     .10006E-03    666.47       -.83948E-05** at limit **
   5  Prefactor     1524.0        717.64       -.11145E-03   -.44411E-06
   6  Prefactor    10000.0        7602.4        .12841E-02** at limit **
   7  Prefactor     .10000E-03    7176.7       -.32531E-03** at limit **
   8  norm          .10000E-03    43.304        .33818E-05** at limit **
   9  Prefactor    10000.0        9802.1        .72156E-02** at limit **
  10  norm          .10000E-03    23.219       -.42780E-07** at limit **
  11  norm          1.9704        15.957        .21388E-04   -.24727E-03
  12  Prefactor     .10000E-03    86.008        .11619E-04** at limit **
  13  Prefactor     9.2387        80.055       -.19487E-04   -.11590E-04
  14  norm          4.0164        12.285        .22027E-05   -.98636E-04
  15  norm          253.96        153.30       -.23008E-04   -.42223E-04
  16  Prefactor     70.750        70.817        .14029E-04   -.74244E-06
  17  Normalizat    1.6522        .51333        .10637E-05   -.10178E-03
  18  Prefactor     .63878        .17868        .27258E-05   -.28091E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100057
  Prefactor  = 1524.04
  Prefactor  = 10000
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 10000
  norm       = 0.0001
  norm       = 1.97044
  Prefactor  = 0.000100002
  Prefactor  = 9.23869
  norm       = 4.01638
  norm       = 253.962
  Prefactor  = 70.7498
  Normalizat = 1.65222
  Prefactor  = 0.638781
 **********
 **   18 **HESSE 
 **********

 FCN=   2197.854     FROM HESSE     STATUS=OK           234 CALLS     2320 TOTAL
                     EDM=   .56E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    66.134        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    16.258        .20134E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    84.719        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10006E-03    667.05        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1524.0        717.85        .55640E-04   -.76869    
   6  Prefactor    10000.0        7603.9        .18980E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7176.8        .21111E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    43.351        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor    10000.0        9800.8        .19319E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    23.240        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.9704        15.575        .29539E-03   -1.5427    
  12  Prefactor     .10000E-03    86.647        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     9.2387        80.115        .13245E-03   -1.5100    
  14  norm          4.0164        12.272        .20181E-03   -1.5307    
  15  norm          253.96        153.48        .12712E-03   -1.2507    
  16  Prefactor     70.750        71.406        .47739E-04   -1.4024    
  17  Normalizat    1.6522        .61391        .35271E-03   -.73586    
  18  Prefactor     .63878        .21295        .18629E-03   -1.0598    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.63442e-10
Minuit parameter uncertainties:
  1  4.56977e-05
  2  0.000142377
  3  3.82971e-05
  4  0.0124203
  5  722.709
  6  0.00211332
  7  0.0020477
  8  0.000373818
  9  0.0793788
  10  0.000152518
  11  11.0833
  12  0.000779283
  13  54.5096
  14  12.2801
  15  153.727
  16  71.4924
  17  0.616756
  18  0.213225
Done.

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

Extracting fit parameters...

4FGL J1917.7-6930
   Spectrum: PowerLaw
423    Prefactor:  1.000e-04  7.793e-04  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:  6.388e-01  2.132e-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.652e+00  6.168e-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: 3.46e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.66e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/781256/likelihoodResults_553996801_554256001_4FGL_J1917.7-6930_daily_bin1214.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) = 2197.85436627
delta logL = -5.48723041902e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2197.8543113
delta logL = 1.00868874142e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10470E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4717       1.0000          .0000       10.000    
     3 'Normalizat'    1.6522       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .63878       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=   2197.854     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      246 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    56.013        .90712E-02** at limit **
   2  Index         2.5025        6.0448        .50000       -.20824E-05
   3  Normalizat    1.6522        .90114E-02    .79695E-01    .16960E-04
   4  Prefactor     .63878        .31434E-02    .41580E-01    .28388E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100005
  Index      = 2.5025
  Normalizat = 1.65222
  Prefactor  = 0.638783
 **********
 **   18 **HESSE 
 **********

 FCN=   2197.854     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      279 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    323.82        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5025        6.3520        .50000       -.52302    
   3  Normalizat    1.6522        .21584E-01    .35271E-03   -.73586    
   4  Prefactor     .63878        .75350E-02    .18629E-03   -1.0598    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.18319e-08
Minuit parameter uncertainties:
  1  0.00266966
  2  202.034
  3  0.0215839
  4  0.00753504
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/781256': 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) = 2197.85431126
delta logL = 1.38717041409e-07

Extracting fit parameters...

4FGL J1917.7-6930
   Spectrum: PowerLaw
423    Prefactor:  1.000e-04  2.670e-03  1.000e-04  1.000e+04 ( 1.000e-13)
424        Index:  2.502e+00  2.020e+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:  6.388e-01  7.535e-03  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.652e+00  2.158e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/781256/cmap_HighResolution_553996801_554256001_4FGL_J1917.7-6930_daily_bin1214.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.66e-02', job_status='DONE', photon_flux_upper_limit='3.46e-07', time_completed='2021-09-22 15:56:28.197214', job_id='781256', GAL2='0.64', fit_tolerance='1e-08', EG2='1.65', EG='1.65', time_epoch_completed='1632351388.2', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.64', dlogl='1.39e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.31' WHERE bin_id='1214' AND source_name='4FGL J1917.7-6930' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 22 15:56:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0274>
Subject: Job 781256: <4FGL_J1917.7-6930_daily_bin1214> in cluster <slac> Done

Job <4FGL_J1917.7-6930_daily_bin1214> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep 22 15:40:49 2021
Job was executed on host(s) <bullet0274>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 22 15:46:55 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:46:55 2021
Terminated at Wed Sep 22 15:56:28 2021
Results reported at Wed Sep 22 15:56:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1917.7-6930_daily_bin1214 289.442 -69.5061 553996801 554256001 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 :                                   435.28 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             310.40 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   573 sec.
    Turnaround time :                            939 sec.

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

