/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: Dan/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 179 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 = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1617.9-7718_daily_bin1642
RA = 244.481, Dec = -77.304
tmin = 664934401, tmax = 665193601
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='436634', job_status='RUN', time_executed='2022-01-30 03:15:12.423911', time_epoch_executed='1643541312.42' WHERE source_name='4FGL J1617.9-7718' and cadence='daily' and bin_id='1642'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/436634

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/436634/ft1_4FGL_J1617.9-7718_daily_bin1642.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/436634/ft2_4FGL_J1617.9-7718_daily_bin1642.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/436634/ft1_4FGL_J1617.9-7718_daily_bin1642.fits outfile=/scratch/kocevski/436634/ft1_filteredMKT_4FGL_J1617.9-7718_daily_bin1642.fits ra=244.481 dec=-77.304 rad=12.0 tmin=664934401.0 tmax=665193601.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.66
user 3.42
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/436634/ft2_4FGL_J1617.9-7718_daily_bin1642.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/436634/ft2_4FGL_J1617.9-7718_daily_bin1642.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/436634/ft1_filteredMKT_4FGL_J1617.9-7718_daily_bin1642.fits evtable="EVENTS" outfile="/scratch/kocevski/436634/ft1_filtered_4FGL_J1617.9-7718_daily_bin1642.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.31
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/436634/ft1_filtered_4FGL_J1617.9-7718_daily_bin1642.fits" evtable="EVENTS" scfile=/scratch/kocevski/436634/ft2_4FGL_J1617.9-7718_daily_bin1642.fits sctable="SC_DATA" outfile=/scratch/kocevski/436634/ltcube_664934401_665193601_4FGL_J1617.9-7718_daily_bin1642.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/436634/ft2_4FGL_J1617.9-7718_daily_bin1642.fits
.....................!
real 11.84
user 11.48
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/436634/ft1_filtered_4FGL_J1617.9-7718_daily_bin1642.fits evtable="EVENTS" scfile=/scratch/kocevski/436634/ft2_4FGL_J1617.9-7718_daily_bin1642.fits sctable="SC_DATA" expcube=/scratch/kocevski/436634/ltcube_664934401_665193601_4FGL_J1617.9-7718_daily_bin1642.fits outfile=/scratch/kocevski/436634/expmap_664934401_665193601_4FGL_J1617.9-7718_daily_bin1642.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/436634/ltcube_664934401_665193601_4FGL_J1617.9-7718_daily_bin1642.fits
.....................!
real 190.91
user 186.10
sys 4.49

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 J1356-645 in ROI with RadialDisk spatial model.
Extended source RCW 86 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/RCW86.fits is the correct path to the extended template.
Extended source FHES J1501.0-6310 in ROI with RadialGaussian spatial model.
Extended source HESS J1507-622 in ROI with RadialDisk spatial model.
Extended source HESS J1303-631 in ROI with RadialGaussian spatial model.
Extended source FGES J1409.1-6121 in ROI with RadialDisk spatial model.
Extended source HESS J1420-607 in ROI with RadialDisk spatial model.
Extended source MSH 15-52 in ROI with RadialDisk spatial model.
Extended source HESS J1534-571 in ROI with RadialDisk spatial model.
Extended source MSH 15-56 PWN in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/MSH15-56_PWN.fits is the correct path to the extended template.
Extended source MSH 15-56 SNR in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/MSH15-56_SNRmask.fits is the correct path to the extended template.
Added 273 point sources and 11 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 J1617.9-7718 @ 244.481 -77.304

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/436634/ft1_filtered_4FGL_J1617.9-7718_daily_bin1642.fits scfile=/scratch/kocevski/436634/ft2_4FGL_J1617.9-7718_daily_bin1642.fits outfile=/scratch/kocevski/436634/cmap_664934401_665193601_4FGL_J1617.9-7718_daily_bin1642.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=244.481 yref=-77.304 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/436634/ft1_filtered_4FGL_J1617.9-7718_daily_bin1642.fits scfile=/scratch/kocevski/436634/ft2_4FGL_J1617.9-7718_daily_bin1642.fits outfile=/scratch/kocevski/436634/cmap_HighResolution_664934401_665193601_4FGL_J1617.9-7718_daily_bin1642.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=244.481 yref=-77.304 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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/436634/ft1_filtered_4FGL_J1617.9-7718_daily_bin1642.fits evtable="EVENTS" scfile=/scratch/kocevski/436634/ft2_4FGL_J1617.9-7718_daily_bin1642.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/436634/Model_4FGL_J1617.9-7718_daily_bin1642.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 J1409.1-6121
adding source FHES J1501.0-6310
adding source GAL_V02
adding source HESS J1303-631
adding source HESS J1356-645
adding source HESS J1420-607
adding source HESS J1507-622
adding source HESS J1534-571
adding source MSH 15-52
adding source MSH 15-56 PWN
adding source MSH 15-56 SNR
adding source RCW 86
Working on...
/scratch/kocevski/436634/ft1_filtered_4FGL_J1617.9-7718_daily_bin1642.fits.....................!
real 524.22
user 521.78
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/436634/ft1_filtered_4FGL_J1617.9-7718_daily_bin1642.fits', '/scratch/kocevski/436634/ft2_4FGL_J1617.9-7718_daily_bin1642.fits', expMap='/scratch/kocevski/436634/expmap_664934401_665193601_4FGL_J1617.9-7718_daily_bin1642.fits', expCube='/scratch/kocevski/436634/ltcube_664934401_665193601_4FGL_J1617.9-7718_daily_bin1642.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/436634/Model_4FGL_J1617.9-7718_daily_bin1642.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1617.9-7718'

4FGL J1617.9-7718
   Spectrum: LogParabola
625         norm:  1.084e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
626        alpha:  2.564e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
627         beta:  1.122e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
628           Eb:  5.935e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/436634/ft1_filtered_4FGL_J1617.9-7718_daily_bin1642.fits
Spacecraft file(s): /scratch/kocevski/436634/ft2_4FGL_J1617.9-7718_daily_bin1642.fits
Exposure map: /scratch/kocevski/436634/expmap_664934401_665193601_4FGL_J1617.9-7718_daily_bin1642.fits
Exposure cube: /scratch/kocevski/436634/ltcube_664934401_665193601_4FGL_J1617.9-7718_daily_bin1642.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/436634/Model_4FGL_J1617.9-7718_daily_bin1642.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) = 12380.5798553

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.3098       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    28.608       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.5336       1.0000         .10000E-03   10000.    
     5 'norm      '    3.3391       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.0513       1.0000         .10000E-03   10000.    
     7 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.1933       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    21.190       1.0000         .10000E-03   10000.    
    11 'norm      '    16.249       1.0000         .10000E-03   10000.    
    12 'norm      '    65.463       1.0000         .10000E-03   10000.    
    13 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    8.1590       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    .71603       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.1288       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .9870E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   12380.58     FROM MIGRAD    STATUS=CONVERGED    309 CALLS     1561 TOTAL
                     EDM=   .86E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.3096        5.5321       -.20743E-05   -.72979E-03
   2  Prefactor     .10000E-03    14.486       -.86814E-05** at limit **
   3  norm          28.608        31.179        .30204E-06   -.29824E-05
   4  Prefactor     2.5335        3.1282       -.24438E-06   -.45703E-03
   5  norm          3.3391        13.643       -.78572E-06   -.98735E-04
   6  Prefactor     4.0512        7.4027       -.48913E-06   -.19314E-03
   7  norm          .10000E-03    11.773        .23117E-05** at limit **
   8  norm          1.1930        .94970       -.13090E-08    .30072E-04
   9  Prefactor     .10000E-03    25.996       -.20470E-04** at limit **
  10  Prefactor     21.179        58.409       -.22316E-04    .21007E-05
  11  norm          16.249        7.9709       -.41913E-06   -.13970E-02
  12  norm          65.461        58.370       -.31002E-05    .53134E-05
  13  norm          .10000E-03    24.597       -.34146E-05** at limit **
  14  norm          8.1590        7.1111       -.44052E-06   -.19013E-03
  15  Prefactor     .10000E-03    21.898        .29120E-04** at limit **
  16  Normalizat    .71605        .30497        .25862E-05   -.15742E-04
  17  Prefactor     1.1288        .78700E-01   -.10432E-07    .49286E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.30963
  Prefactor  = 0.0001
  norm       = 28.6082
  Prefactor  = 2.53346
  norm       = 3.33911
  Prefactor  = 4.05122
  norm       = 0.0001
  norm       = 1.19299
  Prefactor  = 0.0001
  Prefactor  = 21.1789
  norm       = 16.2486
  norm       = 65.4605
  norm       = 0.0001
  norm       = 8.15899
  Prefactor  = 0.0001
  Normalizat = 0.716049
  Prefactor  = 1.12883
 **********
 **   18 **HESSE 
 **********

 FCN=   12380.58     FROM HESSE     STATUS=OK           227 CALLS     1788 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.3096        5.5610        .26996E-03   -1.5404    
   2  Prefactor     .10000E-03    14.482        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          28.608        31.199        .74904E-04   -1.4638    
   4  Prefactor     2.5335        3.1104        .20907E-03   -1.5390    
   5  norm          3.3391        13.677        .22150E-03   -1.5342    
   6  Prefactor     4.0512        7.3859        .20033E-03   -1.5305    
   7  norm          .10000E-03    12.111        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.1930        .92799        .91264E-04   -1.5490    
   9  Prefactor     .10000E-03    25.906        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     21.179        58.298        .87012E-04   -1.4787    
  11  norm          16.249        7.9930        .49680E-03   -1.4902    
  12  norm          65.461        58.314        .49602E-04   -1.4088    
  13  norm          .10000E-03    24.756        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          8.1590        7.0956        .14036E-03   -1.5137    
  15  Prefactor     .10000E-03    21.679        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    .71605        .31500        .63514E-03   -1.0326    
  17  Prefactor     1.1288        .83139E-01    .13797E-03   -.88550    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.71335e-09
Minuit parameter uncertainties:
  1  5.5622
  2  5.7759e-06
  3  31.2164
  4  3.11063
  5  13.5209
  6  7.38757
  7  3.3668e-05
  8  0.928003
  9  6.17601e-05
  10  58.4557
  11  7.99357
  12  58.3646
  13  1.48574e-05
  14  7.0963
  15  4.0249e-05
  16  0.3158
  17  0.0831486
Done.

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

Extracting fit parameters...

4FGL J1617.9-7718
   Spectrum: LogParabola
625         norm:  1.193e+00  9.280e-01  1.000e-04  1.000e+04 ( 1.000e-11)
626        alpha:  2.564e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
627         beta:  1.122e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
628           Eb:  5.935e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
955    Prefactor:  1.129e+00  8.315e-02  0.000e+00  1.000e+01 ( 1.000e+00)
956        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
957        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
946   Normalization:  7.160e-01  3.158e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.78
Ra Dec: 244.481 -77.304
Photon Index (Fixed Index): 2.56 +/- 0.00
Photon Flux (Fixed Index): 6.10e-08 +/- 4.74e-08
Energy Flux (Fixed Index): 1.65e-05 +/- 1.28e-05

TS (Fixed Index): 2.78
Ra Dec: 244.481 -77.304
Photon Flux Upper Limit: 1.62e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.37e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/436634/likelihoodResults_664934401_665193601_4FGL_J1617.9-7718_daily_bin1642.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): 0
logL (Free Index) = 12380.504221
delta logL = 0.0744203277336

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 12380.5015844
delta logL = 0.0770569949691

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.3557       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2923       1.0000          .0000       5.0000    
     3 'Normalizat'    .72988       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1263       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .9870E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   12380.50     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      234 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.3555        29.345        .93851E-02    .91017E-03
   2  alpha         2.2923        2.9356        .41332        .24471E-04
   3  Normalizat    .72985        .11175        .14186        .74105E-04
   4  Prefactor     1.1263        .28753E-01    .36662E-01   -.18394E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.35555
  alpha      = 2.2923
  Normalizat = 0.729852
  Prefactor  = 1.12633
 **********
 **   18 **HESSE 
 **********

 FCN=   12380.50     FROM HESSE     STATUS=OK            33 CALLS      267 TOTAL
                     EDM=   .11E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.3555        1.0845        .97362E-04   -1.5475    
   2  alpha         2.2923        .67395        .23432E-01   -.83178E-01
   3  Normalizat    .72985        .30825        .62956E-03   -1.0273    
   4  Prefactor     1.1263        .82570E-01    .13810E-03   -.88629    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.10899e-12
Minuit parameter uncertainties:
  1  1.08454
  2  0.682456
  3  0.308986
  4  0.0825797
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/436634': 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): 0
logL (Free Index) = 12380.5015843
delta logL = 0.0770570230852

Extracting fit parameters...

4FGL J1617.9-7718
   Spectrum: LogParabola
625         norm:  1.356e+00  1.085e+00  1.000e-04  1.000e+04 ( 1.000e-11)
626        alpha:  2.292e+00  6.825e-01  0.000e+00  5.000e+00 ( 1.000e+00)
627         beta:  1.122e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
628           Eb:  5.935e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
955    Prefactor:  1.126e+00  8.258e-02  0.000e+00  1.000e+01 ( 1.000e+00)
956        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
957        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
946   Normalization:  7.299e-01  3.090e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.92
Ra Dec: 244.481 -77.304
Photon Index (Free Index): 2.29 +/- 0.68
Photon Flux (Free Index): 5.23e-08 +/- 4.69e-08
Energy Flux (Free Index): 1.80e-05 +/- 1.47e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/436634/cmap_HighResolution_664934401_665193601_4FGL_J1617.9-7718_daily_bin1642.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.37e-05', comment='SUCCESS', photon_flux='6.10e-08', energy_flux2='1.80e-05', photon_flux_error='4.74e-08', dlogl='7.71e-02', energy_flux='1.65e-05', photon_flux2='5.23e-08', job_status='DONE', time_completed='2022-01-30 03:40:56.618560', photon_index_error2='0.68', photon_index2='2.29', ts='2.78', fit_tolerance='1e-08', GAL='1.13', photon_index_error='0.00', photon_flux_upper_limit='1.62e-07', energy_flux_error2='1.47e-05', EG='0.72', time_epoch_completed='1643542856.62', return_code='0', job_id='436634', GAL2='1.13', EG2='0.73', return_code2='0', energy_flux_error='1.28e-05', photon_flux_error2='4.69e-08', ts2='2.92', photon_index='2.56' WHERE bin_id='1642' AND source_name='4FGL J1617.9-7718' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Jan 30 03:40:56 PST 2022

r <slac> at Sun Jan 30 00:35:24 2022
Job was executed on host(s) <bullet0056>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jan 30 00:35:25 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Jan 30 00:35:25 2022
Terminated at Sun Jan 30 01:04:15 2022
Results reported at Sun Jan 30 01:04:15 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1617.9-7718_daily_bin1642 244.481 -77.304 664934401 665193601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1617.9-7718 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   1548.00 sec.
    Max Memory :                                 1261 MB
    Average Memory :                             380.40 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1737 sec.
    Turnaround time :                            1731 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0226>
Subject: Job 436634: <4FGL_J1617.9-7718_daily_bin1642> in cluster <slac> Done

Job <4FGL_J1617.9-7718_daily_bin1642> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Jan 30 00:07:47 2022
Job was executed on host(s) <bullet0226>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jan 30 00:07:51 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Jan 30 00:07:51 2022
Terminated at Sun Jan 30 03:40:57 2022
Results reported at Sun Jan 30 03:40:57 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1617.9-7718_daily_bin1642 244.481 -77.304 664934401 665193601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1617.9-7718 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   1549.00 sec.
    Max Memory :                                 1261 MB
    Average Memory :                             95.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   12786 sec.
    Turnaround time :                            12790 sec.

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

