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


Performing analysis on: 4FGL_J1917.7-6930_daily_bin1640
RA = 289.442, Dec = -69.5061
tmin = 664416001, tmax = 664675201
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='283488', job_status='RUN', time_executed='2022-01-24 00:36:40.981275', time_epoch_executed='1643013400.98' WHERE source_name='4FGL J1917.7-6930' and cadence='daily' and bin_id='1640'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/283488

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/283488/ft1_4FGL_J1917.7-6930_daily_bin1640.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/283488/ft2_4FGL_J1917.7-6930_daily_bin1640.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/283488/ft1_4FGL_J1917.7-6930_daily_bin1640.fits outfile=/scratch/kocevski/283488/ft1_filteredMKT_4FGL_J1917.7-6930_daily_bin1640.fits ra=289.442 dec=-69.5061 rad=12.0 tmin=664416001.0 tmax=664675201.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.64
user 3.41
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/283488/ft1_filtered_4FGL_J1917.7-6930_daily_bin1640.fits" evtable="EVENTS" scfile=/scratch/kocevski/283488/ft2_4FGL_J1917.7-6930_daily_bin1640.fits sctable="SC_DATA" outfile=/scratch/kocevski/283488/ltcube_664416001_664675201_4FGL_J1917.7-6930_daily_bin1640.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/283488/ft2_4FGL_J1917.7-6930_daily_bin1640.fits
.....................!
real 11.78
user 11.44
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/283488/ft1_filtered_4FGL_J1917.7-6930_daily_bin1640.fits evtable="EVENTS" scfile=/scratch/kocevski/283488/ft2_4FGL_J1917.7-6930_daily_bin1640.fits sctable="SC_DATA" expcube=/scratch/kocevski/283488/ltcube_664416001_664675201_4FGL_J1917.7-6930_daily_bin1640.fits outfile=/scratch/kocevski/283488/expmap_664416001_664675201_4FGL_J1917.7-6930_daily_bin1640.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/283488/ltcube_664416001_664675201_4FGL_J1917.7-6930_daily_bin1640.fits
.....................!
real 191.23
user 185.54
sys 5.36

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/283488/ft1_filtered_4FGL_J1917.7-6930_daily_bin1640.fits scfile=/scratch/kocevski/283488/ft2_4FGL_J1917.7-6930_daily_bin1640.fits outfile=/scratch/kocevski/283488/cmap_664416001_664675201_4FGL_J1917.7-6930_daily_bin1640.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.38
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/283488/ft1_filtered_4FGL_J1917.7-6930_daily_bin1640.fits evtable="EVENTS" scfile=/scratch/kocevski/283488/ft2_4FGL_J1917.7-6930_daily_bin1640.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/283488/Model_4FGL_J1917.7-6930_daily_bin1640.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/283488/ft1_filtered_4FGL_J1917.7-6930_daily_bin1640.fits.....................!
real 89.02
user 87.58
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    4.5021       1.0000         .10000E-03   10000.    
     3 'norm      '    102.63       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.0255       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.2334       1.0000         .10000E-03   10000.    
     7 'Prefactor '    19.765       1.0000         .10000E-03   10000.    
     8 'norm      '    17.847       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    14.301       1.0000         .10000E-03   10000.    
    11 'norm      '    1.9330       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.6511       1.0000         .10000E-03   10000.    
    15 'norm      '    25.897       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.5357       1.0000         .10000E-03   10000.    
    17 'Normalizat'    .79846       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.0848       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=   10021.56     FROM MIGRAD    STATUS=CONVERGED    355 CALLS     1719 TOTAL
                     EDM=   .65E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    131.90       -.62433E-05** at limit **
   2  norm          4.5020        5.9117        .15092E-06   -.74927E-05
   3  norm          102.62        59.077        .14031E-05    .24893E-05
   4  Prefactor     .10000E-03    14.028        .12075E-05** at limit **
   5  Prefactor     1.0255        14.268        .39944E-04    .49104E-04
   6  Prefactor     5.0303        235.67        .72333E-04   -.10055E-03
   7  Prefactor     19.988        107.61       -.59528E-04   -.92867E-04
   8  norm          17.849        21.048        .57375E-06   -.48810E-05
   9  Prefactor     .10000E-03    52.785       -.13025E-05** at limit **
  10  norm          14.303        10.505       -.34741E-06   -.81973E-05
  11  norm          1.9334        3.6629        .29603E-06   -.12694E-04
  12  Prefactor     .10000E-03    6.6738        .71464E-07** at limit **
  13  Prefactor     .10000E-03    12.245       -.43490E-07** at limit **
  14  norm          1.6511        1.0702        .45902E-07   -.45615E-04
  15  norm          25.903        51.003        .26366E-06    .71178E-06
  16  Prefactor     3.5358        9.2805        .37581E-06   -.56224E-05
  17  Normalizat    .79860        .22651        .12169E-05   -.12061E-03
  18  Prefactor     1.0847        .89581E-01   -.14305E-05   -.27695E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 4.502
  norm       = 102.619
  Prefactor  = 0.0001
  Prefactor  = 1.02555
  Prefactor  = 5.03034
  Prefactor  = 19.9878
  norm       = 17.8491
  Prefactor  = 0.000100002
  norm       = 14.3025
  norm       = 1.93338
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.65111
  norm       = 25.9035
  Prefactor  = 3.53577
  Normalizat = 0.798601
  Prefactor  = 1.08469
 **********
 **   18 **HESSE 
 **********

 FCN=   10021.56     FROM HESSE     STATUS=OK           246 CALLS     1965 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    132.22        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.5020        5.9129        .18975E-03   -1.5284    
   3  norm          102.62        59.084        .19844E-03   -1.3678    
   4  Prefactor     .10000E-03    14.157        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.0255        14.247        .25275E-02   -1.5505    
   6  Prefactor     5.0303        239.01        .17571E-03   -1.5259    
   7  Prefactor     19.988        108.72        .90092E-04   -1.4814    
   8  norm          17.849        21.040        .94806E-04   -1.4863    
   9  Prefactor     .10000E-03    52.831        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          14.303        10.495        .10591E-03   -1.4951    
  11  norm          1.9334        3.6372        .25608E-03   -1.5430    
  12  Prefactor     .10000E-03    6.7175        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    12.268        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.6511        1.0701        .32857E-04   -1.5451    
  15  norm          25.903        51.063        .78718E-04   -1.4690    
  16  Prefactor     3.5358        9.2637        .21497E-03   -1.5332    
  17  Normalizat    .79860        .25734        .44182E-03   -1.0012    
  18  Prefactor     1.0847        .10317        .15157E-03   -.89957    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.16784e-09
Minuit parameter uncertainties:
  1  3.41135e-05
  2  5.91368
  3  59.1179
  4  5.59749e-05
  5  7.64683
  6  69.6444
  7  93.4984
  8  21.0491
  9  0.000563655
  10  10.4959
  11  3.63763
  12  7.9226e-06
  13  8.60816e-06
  14  1.07008
  15  51.1496
  16  9.26741
  17  0.257737
  18  0.103184
Done.

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

Extracting fit parameters...

4FGL J1917.7-6930
   Spectrum: PowerLaw
423    Prefactor:  1.000e-04  7.923e-06  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.085e+00  1.032e-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:  7.986e-01  2.577e-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: 6.71e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.16e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/283488/likelihoodResults_664416001_664675201_4FGL_J1917.7-6930_daily_bin1640.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) = 10021.5600063
delta logL = -0.000709564956196

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10021.5592967
delta logL = -1.31021806737e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3039       1.0000          .0000       10.000    
     3 'Normalizat'    .79859       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0847       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=   10021.56     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      208 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.1306        .90712E-02** at limit **
   2  Index         2.3000        5.6267        .50000        .48754E-05
   3  Normalizat    .79860        .56283E-02    .99706E-01    .17887E-04
   4  Prefactor     1.0847        .22291E-02    .38200E-01   -.83704E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.30001
  Normalizat = 0.798602
  Prefactor  = 1.08469
 **********
 **   18 **HESSE 
 **********

 FCN=   10021.56     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      241 TOTAL
                     EDM=   .83E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    57.870        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3000        5.5454        .50000       -.57043    
   3  Normalizat    .79860        .16059E-01    .44182E-03   -1.0012    
   4  Prefactor     1.0847        .63799E-02    .15157E-03   -.89957    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.25616e-08
Minuit parameter uncertainties:
  1  4.44283e-05
  2  245.175
  3  0.0160593
  4  0.00637992
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/283488': 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) = 10021.5592967
delta logL = 9.46238287725e-09

Extracting fit parameters...

4FGL J1917.7-6930
   Spectrum: PowerLaw
423    Prefactor:  1.000e-04  4.443e-05  1.000e-04  1.000e+04 ( 1.000e-13)
424        Index:  2.300e+00  2.452e+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:  1.085e+00  6.380e-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:  7.986e-01  1.606e-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/283488/cmap_HighResolution_664416001_664675201_4FGL_J1917.7-6930_daily_bin1640.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.16e-03', job_status='DONE', photon_flux_upper_limit='6.71e-08', time_completed='2022-01-24 00:49:53.076992', job_id='283488', GAL2='1.08', fit_tolerance='1e-08', EG2='0.80', EG='0.80', time_epoch_completed='1643014193.08', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='9.46e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.31' WHERE bin_id='1640' AND source_name='4FGL J1917.7-6930' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Jan 24 00:49:53 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0197>
Subject: Job 283488: <4FGL_J1917.7-6930_daily_bin1640> in cluster <slac> Done

Job <4FGL_J1917.7-6930_daily_bin1640> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Mon Jan 24 00:35:29 2022
Job was executed on host(s) <bullet0197>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Jan 24 00:35:31 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Jan 24 00:35:31 2022
Terminated at Mon Jan 24 00:49:53 2022
Results reported at Mon Jan 24 00:49:53 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1917.7-6930_daily_bin1640 289.442 -69.5061 664416001 664675201 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 :                                   793.51 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             324.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   862 sec.
    Turnaround time :                            864 sec.

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

