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


Performing analysis on: 4FGL_J2016.3-0903_daily_bin1349
RA = 304.098, Dec = -9.0622
tmin = 588988801, tmax = 589248001
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='821348', job_status='RUN', time_executed='2021-09-24 23:05:37.242354', time_epoch_executed='1632549937.24' WHERE source_name='4FGL J2016.3-0903' and cadence='daily' and bin_id='1349'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/821348

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/821348/ft1_4FGL_J2016.3-0903_daily_bin1349.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/821348/ft2_4FGL_J2016.3-0903_daily_bin1349.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/821348/ft1_4FGL_J2016.3-0903_daily_bin1349.fits outfile=/scratch/kocevski/821348/ft1_filteredMKT_4FGL_J2016.3-0903_daily_bin1349.fits ra=304.098 dec=-9.0622 rad=12.0 tmin=588988801.0 tmax=589248001.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.15
user 2.92
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/821348/ft2_4FGL_J2016.3-0903_daily_bin1349.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/821348/ft2_4FGL_J2016.3-0903_daily_bin1349.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/821348/ft1_filteredMKT_4FGL_J2016.3-0903_daily_bin1349.fits evtable="EVENTS" outfile="/scratch/kocevski/821348/ft1_filtered_4FGL_J2016.3-0903_daily_bin1349.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.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/821348/ft1_filtered_4FGL_J2016.3-0903_daily_bin1349.fits" evtable="EVENTS" scfile=/scratch/kocevski/821348/ft2_4FGL_J2016.3-0903_daily_bin1349.fits sctable="SC_DATA" outfile=/scratch/kocevski/821348/ltcube_588988801_589248001_4FGL_J2016.3-0903_daily_bin1349.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/821348/ft2_4FGL_J2016.3-0903_daily_bin1349.fits
.....................!
real 14.66
user 14.24
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/821348/ft1_filtered_4FGL_J2016.3-0903_daily_bin1349.fits evtable="EVENTS" scfile=/scratch/kocevski/821348/ft2_4FGL_J2016.3-0903_daily_bin1349.fits sctable="SC_DATA" expcube=/scratch/kocevski/821348/ltcube_588988801_589248001_4FGL_J2016.3-0903_daily_bin1349.fits outfile=/scratch/kocevski/821348/expmap_588988801_589248001_4FGL_J2016.3-0903_daily_bin1349.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/821348/ltcube_588988801_589248001_4FGL_J2016.3-0903_daily_bin1349.fits
.....................!
real 193.88
user 187.50
sys 5.44

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 202 point sources and 0 extended sources

Setting source of interest to:
4FGL J2016.3-0903 @ 304.098 -9.0622

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/821348/ft1_filtered_4FGL_J2016.3-0903_daily_bin1349.fits scfile=/scratch/kocevski/821348/ft2_4FGL_J2016.3-0903_daily_bin1349.fits outfile=/scratch/kocevski/821348/cmap_588988801_589248001_4FGL_J2016.3-0903_daily_bin1349.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=304.098 yref=-9.0622 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.64
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/821348/ft1_filtered_4FGL_J2016.3-0903_daily_bin1349.fits scfile=/scratch/kocevski/821348/ft2_4FGL_J2016.3-0903_daily_bin1349.fits outfile=/scratch/kocevski/821348/cmap_HighResolution_588988801_589248001_4FGL_J2016.3-0903_daily_bin1349.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=304.098 yref=-9.0622 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.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/821348/ft1_filtered_4FGL_J2016.3-0903_daily_bin1349.fits evtable="EVENTS" scfile=/scratch/kocevski/821348/ft2_4FGL_J2016.3-0903_daily_bin1349.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/821348/Model_4FGL_J2016.3-0903_daily_bin1349.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/821348/ft1_filtered_4FGL_J2016.3-0903_daily_bin1349.fits.....................!
real 53.09
user 51.63
sys 1.13

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/821348/ft1_filtered_4FGL_J2016.3-0903_daily_bin1349.fits', '/scratch/kocevski/821348/ft2_4FGL_J2016.3-0903_daily_bin1349.fits', expMap='/scratch/kocevski/821348/expmap_588988801_589248001_4FGL_J2016.3-0903_daily_bin1349.fits', expCube='/scratch/kocevski/821348/ltcube_588988801_589248001_4FGL_J2016.3-0903_daily_bin1349.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/821348/Model_4FGL_J2016.3-0903_daily_bin1349.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2016.3-0903'

4FGL J2016.3-0903
   Spectrum: LogParabola
386         norm:  4.568e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
387        alpha:  1.858e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
388         beta:  8.465e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
389           Eb:  1.677e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/821348/ft1_filtered_4FGL_J2016.3-0903_daily_bin1349.fits
Spacecraft file(s): /scratch/kocevski/821348/ft2_4FGL_J2016.3-0903_daily_bin1349.fits
Exposure map: /scratch/kocevski/821348/expmap_588988801_589248001_4FGL_J2016.3-0903_daily_bin1349.fits
Exposure cube: /scratch/kocevski/821348/ltcube_588988801_589248001_4FGL_J2016.3-0903_daily_bin1349.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/821348/Model_4FGL_J2016.3-0903_daily_bin1349.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) = 4027.05150134

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    34.884       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10109E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    83.370       1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.1067       1.0000         .10000E-03   10000.    
     8 'Prefactor '    81.643       1.0000         .10000E-03   10000.    
     9 'Prefactor '    70.769       1.0000         .10000E-03   10000.    
    10 'norm      '    .10479E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    10.114       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    53.035       1.0000         .10000E-03   10000.    
    17 'norm      '    .10035E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    14.950       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.0819       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .88388       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6840E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4026.988     FROM MIGRAD    STATUS=CONVERGED    443 CALLS     2280 TOTAL
                     EDM=   .39E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.034       -.15809E-07** at limit **
   2  Prefactor     34.883        29.552       -.18087E-06   -.20325E-03
   3  Prefactor     .10000E-03    17.719        .13481E-05** at limit **
   4  Prefactor     .10000E-03    38.440        .32257E-04** at limit **
   5  Prefactor     .10000E-03    146.07        .12506E-03** at limit **
   6  Prefactor     83.383        114.43        .11883E-04   -.16792E-04
   7  Prefactor     6.1065        6.8517        .78319E-06   -.63462E-04
   8  Prefactor     81.652        129.36        .88131E-05   -.16825E-03
   9  Prefactor     70.763        69.082       -.38199E-05    .89097E-04
  10  norm          .10000E-03    62.779       -.15208E-04** at limit **
  11  Prefactor     .10000E-03    17.190       -.15078E-05** at limit **
  12  Prefactor     .10000E-03    254.45       -.19801E-03** at limit **
  13  norm          10.116        38.072        .27123E-06   -.12915E-04
  14  norm          .10000E-03    47.381       -.97360E-05** at limit **
  15  norm          .10000E-03    3.3211       -.24703E-06** at limit **
  16  Prefactor     53.043        59.913        .66953E-05    .29390E-04
  17  norm          .10000E-03    47.758       -.14577E-04** at limit **
  18  Prefactor     14.952        22.262        .72589E-06    .32624E-04
  19  Prefactor     .10000E-03    30.433       -.10887E-04** at limit **
  20  Normalizat    1.0816        .61195       -.94689E-05   -.42309E-04
  21  Prefactor     .88396        .12249        .49483E-06   -.29534E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 34.8828
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 83.3826
  Prefactor  = 6.10655
  Prefactor  = 81.6517
  Prefactor  = 70.7629
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.1162
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 53.0433
  norm       = 0.0001
  Prefactor  = 14.9522
  Prefactor  = 0.0001
  Normalizat = 1.08162
  Prefactor  = 0.883956
 **********
 **   18 **HESSE 
 **********

 FCN=   4026.988     FROM HESSE     STATUS=OK           303 CALLS     2583 TOTAL
                     EDM=   .82E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.042        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     34.883        29.556        .67850E-04   -1.4526    
   3  Prefactor     .10000E-03    18.009        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    38.473        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    146.05        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     83.383        114.18        .43993E-04   -1.3879    
   7  Prefactor     6.1065        6.8397        .13086E-03   -1.5214    
   8  Prefactor     81.652        128.91        .44452E-04   -1.3898    
   9  Prefactor     70.763        69.031        .47719E-04   -1.4024    
  10  norm          .10000E-03    63.274        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    17.194        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    255.09        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          10.116        38.023        .12600E-03   -1.5072    
  14  norm          .10000E-03    47.390        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    3.3488        .11230E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     53.043        60.372        .55075E-04   -1.4250    
  17  norm          .10000E-03    48.671        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     14.952        22.367        .10359E-03   -1.4934    
  19  Prefactor     .10000E-03    30.435        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.0816        .67830        .59704E-03   -.90344    
  21  Prefactor     .88396        .13799        .14561E-03   -.96704    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.18932e-10
Minuit parameter uncertainties:
  1  7.5416e-07
  2  29.5687
  3  0.000333166
  4  3.92066e-05
  5  0.00131717
  6  114.484
  7  6.84062
  8  129.359
  9  69.109
  10  0.000494306
  11  7.71414e-06
  12  3.07512e-05
  13  38.1139
  14  1.47996e-06
  15  4.03924e-05
  16  60.442
  17  0.000165844
  18  22.3794
  19  4.73844e-07
  20  0.683859
  21  0.13804
Done.

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

Extracting fit parameters...

4FGL J2016.3-0903
   Spectrum: LogParabola
386         norm:  1.012e+01  3.811e+01  1.000e-04  1.000e+04 ( 1.000e-13)
387        alpha:  1.858e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
388         beta:  8.465e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
389           Eb:  1.677e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
681    Prefactor:  8.840e-01  1.380e-01  0.000e+00  1.000e+01 ( 1.000e+00)
682        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
683        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
680   Normalization:  1.082e+00  6.839e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.09
Ra Dec: 304.098 -9.062
Photon Flux Upper Limit: 2.00e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.93e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/821348/likelihoodResults_588988801_589248001_4FGL_J2016.3-0903_daily_bin1349.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) = 4026.01338635
delta logL = 0.974857781285

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4025.86344449
delta logL = 1.12479964338

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4025.863     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      272 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.3072        30.986        .66047E-03   -.21625E-03
   2  alpha         3.4133        1.6143        .82795E-02   -.22895E-04
   3  Normalizat    .78935        .62930        .68654E-03   -.10201E-03
   4  Prefactor     .91980        .13735        .14276E-03   -.62604E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 8.30717
  alpha      = 3.41329
  Normalizat = 0.789349
  Prefactor  = 0.919796
 **********
 **   18 **HESSE 
 **********

 FCN=   4025.863     FROM HESSE     STATUS=OK            25 CALLS      297 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.3072        15.714        .26419E-04   -1.5131    
   2  alpha         3.4133        .87944        .33118E-03    .37397    
   3  Normalizat    .78935        .62425        .27462E-04   -1.0046    
   4  Prefactor     .91980        .13618        .28553E-04   -.95453    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.22306e-10
Minuit parameter uncertainties:
  1  15.7217
  2  0.901841
  3  0.630038
  4  0.13623
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/821348': 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) = 4025.8634435
delta logL = 1.12480063116

Extracting fit parameters...

4FGL J2016.3-0903
   Spectrum: LogParabola
386         norm:  8.307e+00  1.572e+01  1.000e-04  1.000e+04 ( 1.000e-13)
387        alpha:  3.413e+00  9.018e-01  0.000e+00  5.000e+00 ( 1.000e+00)
388         beta:  8.465e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
389           Eb:  1.677e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
681    Prefactor:  9.198e-01  1.362e-01  0.000e+00  1.000e+01 ( 1.000e+00)
682        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
683        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
680   Normalization:  7.893e-01  6.300e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.58
Ra Dec: 304.098 -9.062
Photon Index (Free Index): 3.41 +/- 0.90
Photon Flux (Free Index): 3.18e-07 +/- 2.83e-07
Energy Flux (Free Index): 5.95e-05 +/- 4.77e-05

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/821348/cmap_HighResolution_588988801_589248001_4FGL_J2016.3-0903_daily_bin1349.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.93e-04', comment='SUCCESS', energy_flux2='5.95e-05', dlogl='1.12e+00', photon_flux2='3.18e-07', job_status='DONE', time_completed='2021-09-24 23:15:06.483822', photon_index_error2='0.90', photon_index2='3.41', ts='0.09', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', photon_flux_upper_limit='2.00e-07', energy_flux_error2='4.77e-05', EG='1.08', time_epoch_completed='1632550506.48', return_code='0', job_id='821348', GAL2='0.92', EG2='0.79', return_code2='0', photon_flux_error2='2.83e-07', ts2='2.58', photon_index='1.86' WHERE bin_id='1349' AND source_name='4FGL J2016.3-0903' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 24 23:15:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0108>
Subject: Job 821348: <4FGL_J2016.3-0903_daily_bin1349> in cluster <slac> Done

Job <4FGL_J2016.3-0903_daily_bin1349> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Fri Sep 24 23:01:15 2021
Job was executed on host(s) <bullet0108>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 24 23:02:45 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 24 23:02:45 2021
Terminated at Fri Sep 24 23:15:07 2021
Results reported at Fri Sep 24 23:15:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2016.3-0903_daily_bin1349 304.098 -9.0622 588988801 589248001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2016.3-0903 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   558.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             304.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   741 sec.
    Turnaround time :                            832 sec.

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

