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


Performing analysis on: 4FGL_J1816.9-4942_daily_bin1195
RA = 274.244, Dec = -49.7158
tmin = 549072001, tmax = 549331201
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='760878', job_status='RUN', time_executed='2021-09-20 02:21:25.277315', time_epoch_executed='1632129685.28' WHERE source_name='4FGL J1816.9-4942' and cadence='daily' and bin_id='1195'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/760878

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/760878/ft1_4FGL_J1816.9-4942_daily_bin1195.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/760878/ft2_4FGL_J1816.9-4942_daily_bin1195.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/760878/ft1_4FGL_J1816.9-4942_daily_bin1195.fits outfile=/scratch/kocevski/760878/ft1_filteredMKT_4FGL_J1816.9-4942_daily_bin1195.fits ra=274.244 dec=-49.7158 rad=12.0 tmin=549072001.0 tmax=549331201.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.96
user 2.73
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/760878/ft2_4FGL_J1816.9-4942_daily_bin1195.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/760878/ft2_4FGL_J1816.9-4942_daily_bin1195.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/760878/ft1_filteredMKT_4FGL_J1816.9-4942_daily_bin1195.fits evtable="EVENTS" outfile="/scratch/kocevski/760878/ft1_filtered_4FGL_J1816.9-4942_daily_bin1195.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/760878/ft1_filtered_4FGL_J1816.9-4942_daily_bin1195.fits" evtable="EVENTS" scfile=/scratch/kocevski/760878/ft2_4FGL_J1816.9-4942_daily_bin1195.fits sctable="SC_DATA" outfile=/scratch/kocevski/760878/ltcube_549072001_549331201_4FGL_J1816.9-4942_daily_bin1195.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/760878/ft2_4FGL_J1816.9-4942_daily_bin1195.fits
.....................!
real 12.26
user 11.94
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/760878/ft1_filtered_4FGL_J1816.9-4942_daily_bin1195.fits evtable="EVENTS" scfile=/scratch/kocevski/760878/ft2_4FGL_J1816.9-4942_daily_bin1195.fits sctable="SC_DATA" expcube=/scratch/kocevski/760878/ltcube_549072001_549331201_4FGL_J1816.9-4942_daily_bin1195.fits outfile=/scratch/kocevski/760878/expmap_549072001_549331201_4FGL_J1816.9-4942_daily_bin1195.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/760878/ltcube_549072001_549331201_4FGL_J1816.9-4942_daily_bin1195.fits
.....................!
real 190.89
user 185.21
sys 5.37

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 FHES J1741.6-3917 in ROI with RadialDisk spatial model.
Extended source FGES J1631.6-4756 in ROI with RadialDisk spatial model.
Extended source FGES J1633.0-4746 in ROI with RadialDisk spatial model.
Extended source G337.0-0.1 in ROI with RadialDisk spatial model.
Extended source FHES J1642.1-5428 in ROI with RadialDisk spatial model.
Extended source FGES J1652.2-4633 in ROI with RadialDisk spatial model.
Extended source FGES J1655.5-4737 in ROI with RadialDisk spatial model.
Extended source RX J1713.7-3946 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/RXJ1713_2016_250GeV.fits is the correct path to the extended template.
Extended source HESS J1614-518 in ROI with RadialDisk spatial model.
Extended source HESS J1616-508 in ROI with RadialDisk spatial model.
Extended source FGES J1745.8-3028 in ROI with RadialDisk spatial model.
Added 459 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 J1816.9-4942 @ 274.244 -49.7158

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/760878/ft1_filtered_4FGL_J1816.9-4942_daily_bin1195.fits scfile=/scratch/kocevski/760878/ft2_4FGL_J1816.9-4942_daily_bin1195.fits outfile=/scratch/kocevski/760878/cmap_549072001_549331201_4FGL_J1816.9-4942_daily_bin1195.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=274.244 yref=-49.7158 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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/760878/ft1_filtered_4FGL_J1816.9-4942_daily_bin1195.fits scfile=/scratch/kocevski/760878/ft2_4FGL_J1816.9-4942_daily_bin1195.fits outfile=/scratch/kocevski/760878/cmap_HighResolution_549072001_549331201_4FGL_J1816.9-4942_daily_bin1195.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=274.244 yref=-49.7158 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.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/760878/ft1_filtered_4FGL_J1816.9-4942_daily_bin1195.fits evtable="EVENTS" scfile=/scratch/kocevski/760878/ft2_4FGL_J1816.9-4942_daily_bin1195.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/760878/Model_4FGL_J1816.9-4942_daily_bin1195.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 J1631.6-4756
adding source FGES J1633.0-4746
adding source FGES J1652.2-4633
adding source FGES J1655.5-4737
adding source FGES J1745.8-3028
adding source FHES J1642.1-5428
adding source FHES J1741.6-3917
adding source G337.0-0.1
adding source GAL_V02
adding source HESS J1614-518
adding source HESS J1616-508
adding source RX J1713.7-3946
Working on...
/scratch/kocevski/760878/ft1_filtered_4FGL_J1816.9-4942_daily_bin1195.fits.....................!
real 59.44
user 58.12
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/760878/ft1_filtered_4FGL_J1816.9-4942_daily_bin1195.fits', '/scratch/kocevski/760878/ft2_4FGL_J1816.9-4942_daily_bin1195.fits', expMap='/scratch/kocevski/760878/expmap_549072001_549331201_4FGL_J1816.9-4942_daily_bin1195.fits', expCube='/scratch/kocevski/760878/ltcube_549072001_549331201_4FGL_J1816.9-4942_daily_bin1195.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/760878/Model_4FGL_J1816.9-4942_daily_bin1195.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1816.9-4942'

4FGL J1816.9-4942
   Spectrum: LogParabola
1266         norm:  1.342e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
1267        alpha:  2.245e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
1268         beta:  1.727e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
1269           Eb:  9.507e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/760878/ft1_filtered_4FGL_J1816.9-4942_daily_bin1195.fits
Spacecraft file(s): /scratch/kocevski/760878/ft2_4FGL_J1816.9-4942_daily_bin1195.fits
Exposure map: /scratch/kocevski/760878/expmap_549072001_549331201_4FGL_J1816.9-4942_daily_bin1195.fits
Exposure cube: /scratch/kocevski/760878/ltcube_549072001_549331201_4FGL_J1816.9-4942_daily_bin1195.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/760878/Model_4FGL_J1816.9-4942_daily_bin1195.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) = 2535.3925883

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '   10000.0       1.0000         .10000E-03   10000.    
     2 'Prefactor '    52.522       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .12008E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .13210E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    353.42       1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    224.01       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .43205E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.3033       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .39981E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .12290       1.0000         .10000E-03   10000.    
    14 'norm      '    1.1090       1.0000         .10000E-03   10000.    
    15 'norm      '    19.512       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    17.517       1.0000         .10000E-03   10000.    
    19 'Prefactor '    35.990       1.0000         .10000E-03   10000.    
    20 'norm      '    63.769       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .64756       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .85054       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1693E+06   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2535.260     FROM MIGRAD    STATUS=CONVERGED    474 CALLS     2471 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm         10000.0        232.29        .91871E-07** at limit **
   2  Prefactor     52.510        139.13       -.11310E-05    .42819E-06
   3  Prefactor     .10000E-03    61.987       -.22239E-05** at limit **
   4  norm          .10000E-03    84.270        .35765E-05** at limit **
   5  Prefactor     .10000E-03    37.983       -.14230E-05** at limit **
   6  Prefactor     353.94        406.38        .25281E-04    .12614E-04
   7  norm          .10000E-03    27.690        .13548E-06** at limit **
   8  norm          224.34        620.01       -.87938E-04   -.24209E-04
   9  Prefactor     .10001E-03    1845.7       -.24442E-04** at limit **
  10  norm          1.2969        19.010        .19073E-04   -.11243E-03
  11  Prefactor     .10000E-03    325.17        .79509E-06** at limit **
  12  norm          .10000E-03    8.3952        .10683E-06** at limit **
  13  norm          .16256        7.2714        .61918E-06   -.96828E-04
  14  norm          1.1094        1.5823        .19352E-06    .13650E-03
  15  norm          19.526        44.069       -.30448E-06   -.20488E-04
  16  Prefactor     .10000E-03    56.692       -.10352E-05** at limit **
  17  Prefactor     .10000E-03    41.984        .29787E-05** at limit **
  18  Prefactor     17.459        84.460       -.60084E-05   -.22175E-04
  19  Prefactor     35.989        93.809        .10815E-05   -.40942E-05
  20  norm          63.817        55.045        .28030E-05   -.14526E-04
  21  Normalizat    .64777        .60829        .54746E-05   -.40913E-04
  22  Prefactor     .85046        .18041       -.38058E-05    .56420E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 10000
  Prefactor  = 52.5102
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 353.943
  norm       = 0.0001
  norm       = 224.337
  Prefactor  = 0.000100015
  norm       = 1.29688
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 0.162558
  norm       = 1.10941
  norm       = 19.526
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.4589
  Prefactor  = 35.989
  norm       = 63.8174
  Normalizat = 0.647766
  Prefactor  = 0.850462
 **********
 **   18 **HESSE 
 **********

 FCN=   2535.260     FROM HESSE     STATUS=OK           338 CALLS     2809 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm         10000.0        232.30        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     52.510        139.22        .55342E-04   -1.4257    
   3  Prefactor     .10000E-03    61.996        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    84.180        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    38.005        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     353.94        407.98        .10832E-03   -1.1923    
   7  norm          .10000E-03    27.694        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          224.34        624.46        .13515E-03   -1.2701    
   9  Prefactor     .10001E-03    1866.9        .21228E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.2969        19.408        .25349E-03   -1.5480    
  11  Prefactor     .10000E-03    326.11        .21264E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    8.4074        .14249E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .16256        80.567        .26032E-02   -1.5627    
  14  norm          1.1094        1.5346        .70703E-04   -1.5497    
  15  norm          19.526        44.233        .90672E-04   -1.4824    
  16  Prefactor     .10000E-03    56.721        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    42.000        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     17.459        83.545        .95696E-04   -1.4872    
  19  Prefactor     35.989        93.885        .66803E-04   -1.4507    
  20  norm          63.817        55.048        .25126E-03   -1.4109    
  21  Normalizat    .64777        .64139        .58902E-03   -1.0599    
  22  Prefactor     .85046        .19546        .15036E-03   -.97894    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.23714e-10
Minuit parameter uncertainties:
  1  5.56204e-05
  2  140.098
  3  5.06215e-05
  4  0.00025886
  5  0.00012992
  6  411.367
  7  1.76214e-05
  8  644.621
  9  0.0107761
  10  10.0374
  11  0.000878573
  12  5.28205e-06
  13  7.24549
  14  1.53465
  15  44.307
  16  1.15933e-05
  17  5.0863e-05
  18  76.5572
  19  94.2743
  20  55.0918
  21  0.648999
  22  0.195622
Done.

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

Extracting fit parameters...

4FGL J1816.9-4942
   Spectrum: LogParabola
1266         norm:  1.000e-04  5.282e-06  1.000e-04  1.000e+04 ( 1.000e-12)
1267        alpha:  2.245e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
1268         beta:  1.727e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
1269           Eb:  9.507e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
1679    Prefactor:  8.505e-01  1.956e-01  0.000e+00  1.000e+01 ( 1.000e+00)
1680        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
1681        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
1652   Normalization:  6.478e-01  6.490e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 274.244 -49.716
Photon Flux Upper Limit: 3.00e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.27e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/760878/likelihoodResults_549072001_549331201_4FGL_J1816.9-4942_daily_bin1195.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) = 2535.26069378
delta logL = -0.000565822963836

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2535.26012877
delta logL = -8.08236563898e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2511       1.0000          .0000       5.0000    
     3 'Normalizat'    .64858       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85026       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1693E+06   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2535.260     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      203 TOTAL
                     EDM=   .33E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    9.0775        .90712E-02** at limit **
   2  alpha         2.2577        3.5130        .41412       -.40539E-05
   3  Normalizat    .64777        .56982        .13273        .14894E-04
   4  Prefactor     .85046        .16871        .34029E-01   -.69591E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.25773
  Normalizat = 0.647775
  Prefactor  = 0.85046
 **********
 **   18 **HESSE 
 **********

 FCN=   2535.260     FROM HESSE     STATUS=OK            33 CALLS      236 TOTAL
                     EDM=   .17E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    8.4443        .14274E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.2577        3.4924        .50000       -.97059E-01
   3  Normalizat    .64777        .60293        .58900E-03   -1.0599    
   4  Prefactor     .85046        .17947        .15036E-03   -.97894    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.67812e-11
Minuit parameter uncertainties:
  1  4.21527e-06
  2  2.49343
  3  0.609234
  4  0.179594
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/760878': 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) = 2535.26012794
delta logL = 2.13080966205e-08

Extracting fit parameters...

4FGL J1816.9-4942
   Spectrum: LogParabola
1266         norm:  1.000e-04  4.215e-06  1.000e-04  1.000e+04 ( 1.000e-12)
1267        alpha:  2.258e+00  2.493e+00  0.000e+00  5.000e+00 ( 1.000e+00)
1268         beta:  1.727e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
1269           Eb:  9.507e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
1679    Prefactor:  8.505e-01  1.796e-01  0.000e+00  1.000e+01 ( 1.000e+00)
1680        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
1681        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
1652   Normalization:  6.478e-01  6.092e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 274.244 -49.716

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/760878/cmap_HighResolution_549072001_549331201_4FGL_J1816.9-4942_daily_bin1195.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.27e-04', job_status='DONE', photon_flux_upper_limit='3.00e-07', time_completed='2021-09-20 02:33:59.802880', job_id='760878', GAL2='0.85', fit_tolerance='1e-08', EG2='0.65', EG='0.65', time_epoch_completed='1632130439.8', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='2.13e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.24' WHERE bin_id='1195' AND source_name='4FGL J1816.9-4942' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 20 02:33:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0115>
Subject: Job 760878: <4FGL_J1816.9-4942_daily_bin1195> in cluster <slac> Done

Job <4FGL_J1816.9-4942_daily_bin1195> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep 20 02:20:15 2021
Job was executed on host(s) <bullet0115>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 20 02:20:17 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep 20 02:20:17 2021
Terminated at Mon Sep 20 02:34:00 2021
Results reported at Mon Sep 20 02:34:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1816.9-4942_daily_bin1195 274.244 -49.7158 549072001 549331201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1816.9-4942 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   752.06 sec.
    Max Memory :                                 1263 MB
    Average Memory :                             327.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   823 sec.
    Turnaround time :                            825 sec.

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

