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


Performing analysis on: 4FGL_J1917.7-1921_daily_bin1457
RA = 289.438, Dec = -19.3628
tmin = 616982401, tmax = 617241601
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='765811', job_status='RUN', time_executed='2021-09-22 14:50:13.468104', time_epoch_executed='1632347413.47' WHERE source_name='4FGL J1917.7-1921' and cadence='daily' and bin_id='1457'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/765811

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/765811/ft1_4FGL_J1917.7-1921_daily_bin1457.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/765811/ft2_4FGL_J1917.7-1921_daily_bin1457.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/765811/ft1_4FGL_J1917.7-1921_daily_bin1457.fits outfile=/scratch/kocevski/765811/ft1_filteredMKT_4FGL_J1917.7-1921_daily_bin1457.fits ra=289.438 dec=-19.3628 rad=12.0 tmin=616982401.0 tmax=617241601.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.98
user 2.79
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/765811/ft2_4FGL_J1917.7-1921_daily_bin1457.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/765811/ft2_4FGL_J1917.7-1921_daily_bin1457.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/765811/ft1_filteredMKT_4FGL_J1917.7-1921_daily_bin1457.fits evtable="EVENTS" outfile="/scratch/kocevski/765811/ft1_filtered_4FGL_J1917.7-1921_daily_bin1457.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.31
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/765811/ft1_filtered_4FGL_J1917.7-1921_daily_bin1457.fits" evtable="EVENTS" scfile=/scratch/kocevski/765811/ft2_4FGL_J1917.7-1921_daily_bin1457.fits sctable="SC_DATA" outfile=/scratch/kocevski/765811/ltcube_616982401_617241601_4FGL_J1917.7-1921_daily_bin1457.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/765811/ft2_4FGL_J1917.7-1921_daily_bin1457.fits
.....................!
real 12.57
user 12.19
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/765811/ft1_filtered_4FGL_J1917.7-1921_daily_bin1457.fits evtable="EVENTS" scfile=/scratch/kocevski/765811/ft2_4FGL_J1917.7-1921_daily_bin1457.fits sctable="SC_DATA" expcube=/scratch/kocevski/765811/ltcube_616982401_617241601_4FGL_J1917.7-1921_daily_bin1457.fits outfile=/scratch/kocevski/765811/expmap_616982401_617241601_4FGL_J1917.7-1921_daily_bin1457.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/765811/ltcube_616982401_617241601_4FGL_J1917.7-1921_daily_bin1457.fits
.....................!
real 191.10
user 185.87
sys 4.90

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
Extended source HESS J1804-216 in ROI with RadialDisk spatial model.
Extended source W 30 in ROI with RadialDisk spatial model.
Extended source HESS J1808-204 in ROI with RadialDisk spatial model.
Extended source HESS J1809-193 in ROI with RadialDisk spatial model.
Extended source HESS J1813-178 in ROI with RadialDisk spatial model.
Extended source HESS J1825-137 in ROI with RadialGaussian spatial model.
Extended source G24.7+0.6 in ROI with RadialDisk spatial model.
Extended source W 41 in ROI with RadialGaussian spatial model.
Extended source FGES J1836.5-0651 in ROI with RadialDisk spatial model.
Extended source FGES J1838.9-0704 in ROI with RadialDisk spatial model.
Extended source Kes 73 in ROI with RadialDisk spatial model.
Extended source HESS J1841-055 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/HESSJ1841-055.fits is the correct path to the extended template.
Extended source W 28 in ROI with RadialDisk spatial model.
Extended source Kes 79 in ROI with RadialDisk spatial model.
Extended source W 44 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/W44.fits is the correct path to the extended template.
Added 403 point sources and 15 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J1917.7-1921 @ 289.438 -19.3628

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/765811/ft1_filtered_4FGL_J1917.7-1921_daily_bin1457.fits scfile=/scratch/kocevski/765811/ft2_4FGL_J1917.7-1921_daily_bin1457.fits outfile=/scratch/kocevski/765811/cmap_616982401_617241601_4FGL_J1917.7-1921_daily_bin1457.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.438 yref=-19.3628 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/765811/ft1_filtered_4FGL_J1917.7-1921_daily_bin1457.fits scfile=/scratch/kocevski/765811/ft2_4FGL_J1917.7-1921_daily_bin1457.fits outfile=/scratch/kocevski/765811/cmap_HighResolution_616982401_617241601_4FGL_J1917.7-1921_daily_bin1457.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.438 yref=-19.3628 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.56
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/765811/ft1_filtered_4FGL_J1917.7-1921_daily_bin1457.fits evtable="EVENTS" scfile=/scratch/kocevski/765811/ft2_4FGL_J1917.7-1921_daily_bin1457.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/765811/Model_4FGL_J1917.7-1921_daily_bin1457.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 FGES J1836.5-0651
adding source FGES J1838.9-0704
adding source G24.7+0.6
adding source GAL_V02
adding source HESS J1804-216
adding source HESS J1808-204
adding source HESS J1809-193
adding source HESS J1813-178
adding source HESS J1825-137
adding source HESS J1841-055
adding source Kes 73
adding source Kes 79
adding source W 28
adding source W 30
adding source W 41
adding source W 44
Working on...
/scratch/kocevski/765811/ft1_filtered_4FGL_J1917.7-1921_daily_bin1457.fits.....................!
real 61.38
user 60.05
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/765811/ft1_filtered_4FGL_J1917.7-1921_daily_bin1457.fits', '/scratch/kocevski/765811/ft2_4FGL_J1917.7-1921_daily_bin1457.fits', expMap='/scratch/kocevski/765811/expmap_616982401_617241601_4FGL_J1917.7-1921_daily_bin1457.fits', expCube='/scratch/kocevski/765811/ltcube_616982401_617241601_4FGL_J1917.7-1921_daily_bin1457.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/765811/Model_4FGL_J1917.7-1921_daily_bin1457.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1917.7-1921'

4FGL J1917.7-1921
   Spectrum: PowerLaw
1170    Prefactor:  6.790e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
1171        Index:  1.939e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
1172        Scale:  2.256e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/765811/ft1_filtered_4FGL_J1917.7-1921_daily_bin1457.fits
Spacecraft file(s): /scratch/kocevski/765811/ft2_4FGL_J1917.7-1921_daily_bin1457.fits
Exposure map: /scratch/kocevski/765811/expmap_616982401_617241601_4FGL_J1917.7-1921_daily_bin1457.fits
Exposure cube: /scratch/kocevski/765811/ltcube_616982401_617241601_4FGL_J1917.7-1921_daily_bin1457.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/765811/Model_4FGL_J1917.7-1921_daily_bin1457.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 1871.05571526

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 1866.83376309

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    25.565       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.9337       1.0000         .10000E-03   10000.    
     3 'norm      '    49.841       1.0000         .10000E-03   10000.    
     4 'norm      '    7.2046       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .46305E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.5355       1.0000         .10000E-03   10000.    
     7 'norm      '    1.8137       1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.5402       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .16775E-01   1.0000         .10000E-03   10000.    
    10 'norm      '    7.1762       1.0000         .10000E-03   10000.    
    11 'norm      '    .46613       1.0000         .10000E-03   10000.    
    12 'Prefactor '    112.65       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .54215E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.4433       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .98856       1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.8228       1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.1626       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.0720       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.9053       1.0000         .10000E-03   10000.    
    20 'norm      '    6.5441       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2562       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .79902       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1513E+06   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   1866.819     FROM MIGRAD    STATUS=CONVERGED    288 CALLS      601 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          25.609        8.7342        .19807E-02    .19143E-01
   2  Prefactor     .13244        8021.9        .59288E-02   -.22810E-02
   3  norm          49.905        34.163        .14201E-02    .12143E-02
   4  norm          7.1538        7.5142        .37360E-02    .11781E-01
   5  Prefactor     .10000E-03    153.40        .96532E-02** at limit **
   6  Prefactor     6.6139        26.408        .39245E-02    .10936E-01
   7  norm          .10000E-03    178.49        .77546E-02** at limit **
   8  Prefactor     .86708E-02    7116.4        .36512E-02   -.92488E-03
   9  Prefactor     .10000E-03    83.482        .91066E-02** at limit **
  10  norm          14.510        182.60        .37435E-02    .10759E-02
  11  norm          .10000E-03    61.922        .11132E-01** at limit **
  12  Prefactor     113.12        84.108        .94755E-03    .36247E-03
  13  Prefactor     .10000E-03    297.27        .95443E-02** at limit **
  14  Prefactor     .61515E-03    1675.4        .39528E-02** at limit **
  15  Prefactor     .10000E-03    959.10        .13125E-01** at limit **
  16  Prefactor     .55375        8676.4        .41608E-02    .34541E-02
  17  Prefactor     9.1626        1.0015         .0000         .0000    
  18  Prefactor     1.0720        1.2126         .0000         .0000    
  19  Prefactor     1.9053        1.0394         .0000         .0000    
  20  norm          6.5441        1.0029         .0000         .0000    
  21  Normalizat    1.2552        1.0892       -.31323E-04    .99652E-07
  22  Prefactor     .79848        1.1473        .18516E-05    .56565E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 25.6091
  Prefactor  = 0.132437
  norm       = 49.905
  norm       = 7.15385
  Prefactor  = 0.0001
  Prefactor  = 6.61395
  norm       = 0.0001
  Prefactor  = 0.00867084
  Prefactor  = 0.0001
  norm       = 14.5101
  norm       = 0.0001
  Prefactor  = 113.124
  Prefactor  = 0.000100001
  Prefactor  = 0.000615154
  Prefactor  = 0.000100001
  Prefactor  = 0.55375
  Prefactor  = 9.16265
  Prefactor  = 1.07204
  Prefactor  = 1.90534
  norm       = 6.54408
  Normalizat = 1.25516
  Prefactor  = 0.798484
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   1866.819     FROM HESSE     STATUS=FAILED        43 CALLS      644 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          25.609        8.7342        .19807E-02   -1.4695    
   2  Prefactor     .13244        8021.9        .59288E-02   -1.5781    
   3  norm          49.905        34.163        .14201E-02   -1.4294    
   4  norm          7.1538        7.5142        .37360E-02   -1.5173    
   5  Prefactor     .10000E-03    153.40        .96532E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.6139        26.408        .39245E-02   -1.5194    
   7  norm          .10000E-03    178.49        .77546E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .86708E-02    7116.4        .36512E-02   -1.5726    
   9  Prefactor     .10000E-03    83.482        .91066E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          14.510        182.60        .37435E-02   -1.4946    
  11  norm          .10000E-03    61.922        .11132E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     113.12        84.108        .94755E-03   -1.3577    
  13  Prefactor     .10000E-03    297.27        .95443E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .61515E-03    1675.4        .39528E-02   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    959.10        .13125E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .55375        8676.4        .41608E-02   -1.5559    
  17  Prefactor     496.57        487.38         .0000       -1.5102    
  18  Prefactor     1.0720        1.2126         .0000       -1.5501    
  19  Prefactor     1.9053        1.0394         .0000       -1.5432    
  20  norm          6.5441        1.0029         .0000       -1.5196    
  21  Normalizat    1.2552        1.0892       -.31323E-04   -.84915    
  22  Prefactor     .79848        1.1473        .18516E-05   -.99784    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.66744e-10
Minuit parameter uncertainties:
  1  8.73462
  2  64.5289
  3  34.1768
  4  7.51515
  5  0.000203103
  6  26.4523
  7  1.19343e-05
  8  13.0989
  9  8.5788e-05
  10  103.34
  11  6.14393e-05
  12  84.1971
  13  0.00121459
  14  1.9143
  15  0.00175378
  16  154.447
  17  1.0015
  18  1.21259
  19  1.03941
  20  1.00295
  21  1.11002
  22  1.18465
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 1866.81925519

Extracting fit parameters...

4FGL J1917.7-1921
   Spectrum: PowerLaw
1170    Prefactor:  1.000e-04  8.579e-05  1.000e-04  1.000e+04 ( 1.000e-13)
1171        Index:  1.939e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
1172        Scale:  2.256e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
1466    Prefactor:  7.985e-01  1.185e+00  0.000e+00  1.000e+01 ( 1.000e+00)
1467        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
1468        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
1455   Normalization:  1.255e+00  1.110e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 289.438 -19.363
Photon Flux Upper Limit: 1.13e-06 ph cm-2 s-1
Energy Flux Upper Limit: 8.45e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/765811/likelihoodResults_616982401_617241601_4FGL_J1917.7-1921_daily_bin1457.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) = 1866.81931207
delta logL = -5.68882555854e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1866.81925537
delta logL = -1.88405920198e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10434E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2272       1.0000          .0000       10.000    
     3 'Normalizat'    1.2551       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79848       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1513E+06   .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=   1866.819     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      277 TOTAL
                     EDM=   .55E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10129E-03    411.76        .18142E-02** at limit **
   2  Index         2.1724        6.3571        .50000        .30844E-05
   3  Normalizat    1.2552        .13219        .15708E-02    .10290E-04
   4  Prefactor     .79848        .99923E-02    .14230E-03    .87529E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101294
  Index      = 2.17239
  Normalizat = 1.25516
  Prefactor  = 0.798483
 **********
 **   18 **HESSE 
 **********

 FCN=   1866.819     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      306 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10129E-03    1744.7        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1724        8.3593        .50000       -.60107    
   3  Normalizat    1.2552        .28469        .62830E-04   -.84915    
   4  Prefactor     .79848        .21541E-01    .28460E-04   -.99784    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.46944e-09
Minuit parameter uncertainties:
  1  0.0980304
  2  978.415
  3  0.285049
  4  0.0215412
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/765811': 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) = 1866.81925531
delta logL = -1.20955746752e-07

Extracting fit parameters...

4FGL J1917.7-1921
   Spectrum: PowerLaw
1170    Prefactor:  1.013e-04  9.803e-02  1.000e-04  1.000e+04 ( 1.000e-13)
1171        Index:  2.172e+00  9.784e+02  0.000e+00  1.000e+01 (-1.000e+00)
1172        Scale:  2.256e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
1466    Prefactor:  7.985e-01  2.154e-02  0.000e+00  1.000e+01 ( 1.000e+00)
1467        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
1468        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
1455   Normalization:  1.255e+00  2.850e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 289.438 -19.363

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/765811/cmap_HighResolution_616982401_617241601_4FGL_J1917.7-1921_daily_bin1457.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.45e-02', job_status='DONE', photon_flux_upper_limit='1.13e-06', time_completed='2021-09-22 14:58:40.479609', job_id='765811', GAL2='0.80', fit_tolerance='1e-08', EG2='1.26', EG='1.26', time_epoch_completed='1632347920.48', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.80', dlogl='-1.21e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.94' WHERE bin_id='1457' AND source_name='4FGL J1917.7-1921' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 22 14:58:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0276>
Subject: Job 765811: <4FGL_J1917.7-1921_daily_bin1457> in cluster <slac> Done

Job <4FGL_J1917.7-1921_daily_bin1457> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 22 14:46:37 2021
Job was executed on host(s) <bullet0276>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 22 14:49:41 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 22 14:49:41 2021
Terminated at Wed Sep 22 14:58:41 2021
Results reported at Wed Sep 22 14:58:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1917.7-1921_daily_bin1457 289.438 -19.3628 616982401 617241601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1917.7-1921 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   500.39 sec.
    Max Memory :                                 1100 MB
    Average Memory :                             355.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   539 sec.
    Turnaround time :                            724 sec.

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

