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


Performing analysis on: 4FGL_J1616.6+4630_daily_bin713
RA = 244.16, Dec = 46.5099
tmin = 424137601, tmax = 424396801
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='215004', job_status='RUN', time_executed='2021-09-13 19:12:48.821783', time_epoch_executed='1631585568.82' WHERE source_name='4FGL J1616.6+4630' and cadence='daily' and bin_id='713'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/215004

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/215004/ft1_4FGL_J1616.6+4630_daily_bin713.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/215004/ft2_4FGL_J1616.6+4630_daily_bin713.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/215004/ft1_4FGL_J1616.6+4630_daily_bin713.fits outfile=/scratch/kocevski/215004/ft1_filteredMKT_4FGL_J1616.6+4630_daily_bin713.fits ra=244.16 dec=46.5099 rad=12.0 tmin=424137601.0 tmax=424396801.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 5.40
user 4.99
sys 0.24

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/215004/ft2_4FGL_J1616.6+4630_daily_bin713.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/215004/ft2_4FGL_J1616.6+4630_daily_bin713.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/215004/ft1_filteredMKT_4FGL_J1616.6+4630_daily_bin713.fits evtable="EVENTS" outfile="/scratch/kocevski/215004/ft1_filtered_4FGL_J1616.6+4630_daily_bin713.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.52
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/215004/ft1_filtered_4FGL_J1616.6+4630_daily_bin713.fits" evtable="EVENTS" scfile=/scratch/kocevski/215004/ft2_4FGL_J1616.6+4630_daily_bin713.fits sctable="SC_DATA" outfile=/scratch/kocevski/215004/ltcube_424137601_424396801_4FGL_J1616.6+4630_daily_bin713.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/215004/ft2_4FGL_J1616.6+4630_daily_bin713.fits
.....................!
real 14.16
user 13.76
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/215004/ft1_filtered_4FGL_J1616.6+4630_daily_bin713.fits evtable="EVENTS" scfile=/scratch/kocevski/215004/ft2_4FGL_J1616.6+4630_daily_bin713.fits sctable="SC_DATA" expcube=/scratch/kocevski/215004/ltcube_424137601_424396801_4FGL_J1616.6+4630_daily_bin713.fits outfile=/scratch/kocevski/215004/expmap_424137601_424396801_4FGL_J1616.6+4630_daily_bin713.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/215004/ltcube_424137601_424396801_4FGL_J1616.6+4630_daily_bin713.fits
.....................!
real 190.31
user 184.92
sys 4.92

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

Setting source of interest to:
4FGL J1616.6+4630 @ 244.16 46.5099

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/215004/ft1_filtered_4FGL_J1616.6+4630_daily_bin713.fits scfile=/scratch/kocevski/215004/ft2_4FGL_J1616.6+4630_daily_bin713.fits outfile=/scratch/kocevski/215004/cmap_424137601_424396801_4FGL_J1616.6+4630_daily_bin713.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.16 yref=46.5099 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/215004/ft1_filtered_4FGL_J1616.6+4630_daily_bin713.fits scfile=/scratch/kocevski/215004/ft2_4FGL_J1616.6+4630_daily_bin713.fits outfile=/scratch/kocevski/215004/cmap_HighResolution_424137601_424396801_4FGL_J1616.6+4630_daily_bin713.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.16 yref=46.5099 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.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/215004/ft1_filtered_4FGL_J1616.6+4630_daily_bin713.fits evtable="EVENTS" scfile=/scratch/kocevski/215004/ft2_4FGL_J1616.6+4630_daily_bin713.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/215004/Model_4FGL_J1616.6+4630_daily_bin713.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/215004/ft1_filtered_4FGL_J1616.6+4630_daily_bin713.fits.....................!
real 33.80
user 32.51
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/215004/ft1_filtered_4FGL_J1616.6+4630_daily_bin713.fits', '/scratch/kocevski/215004/ft2_4FGL_J1616.6+4630_daily_bin713.fits', expMap='/scratch/kocevski/215004/expmap_424137601_424396801_4FGL_J1616.6+4630_daily_bin713.fits', expCube='/scratch/kocevski/215004/ltcube_424137601_424396801_4FGL_J1616.6+4630_daily_bin713.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/215004/Model_4FGL_J1616.6+4630_daily_bin713.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1616.6+4630'

4FGL J1616.6+4630
   Spectrum: PowerLaw
300    Prefactor:  3.213e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  2.600e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
302        Scale:  8.481e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/215004/ft1_filtered_4FGL_J1616.6+4630_daily_bin713.fits
Spacecraft file(s): /scratch/kocevski/215004/ft2_4FGL_J1616.6+4630_daily_bin713.fits
Exposure map: /scratch/kocevski/215004/expmap_424137601_424396801_4FGL_J1616.6+4630_daily_bin713.fits
Exposure cube: /scratch/kocevski/215004/ltcube_424137601_424396801_4FGL_J1616.6+4630_daily_bin713.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/215004/Model_4FGL_J1616.6+4630_daily_bin713.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) = 3534.85626772

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.3366       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11164E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    57.408       1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.0957       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    17.527       1.0000         .10000E-03   10000.    
     9 'Prefactor '    122.82       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10437E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10206E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    45.140       1.0000         .10000E-03   10000.    
    15 'norm      '    .13342       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    19.468       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .37830E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10140E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.2182       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    6.9331       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10452E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    6.9738       1.0000         .10000E-03   10000.    
    27 'norm      '    1.4027       1.0000         .10000E-03   10000.    
    28 'Prefactor '    9.9803       1.0000         .10000E-03   10000.    
    29 'norm      '    .10231E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .89654       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .92905       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6800E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3534.793     FROM MIGRAD    STATUS=CONVERGED    818 CALLS     3581 TOTAL
                     EDM=   .58E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.3364        5.5220        .29485E-06   -.53941E-03
   2  Prefactor     .10005E-03    12.009        .10553E-05** at limit **
   3  Prefactor     .10000E-03    10.848        .32992E-06** at limit **
   4  Prefactor     .10000E-03    5.2126        .57534E-07** at limit **
   5  norm          57.405        34.784        .11438E-06   -.46519E-05
   6  Prefactor     9.0950        25.138        .35982E-06   -.12568E-04
   7  Prefactor     .10000E-03    6.0843        .18993E-06** at limit **
   8  norm          17.527        9.8607       -.33240E-08    .94098E-05
   9  Prefactor     122.86        101.89       -.11779E-05   -.44701E-04
  10  Prefactor     .10000E-03    17.939       -.19028E-05** at limit **
  11  Prefactor     .10000E-03    49.236       -.50946E-07** at limit **
  12  Prefactor     .10000E-03    22.314       -.22186E-05** at limit **
  13  Prefactor     .10000E-03    1.3017        .45877E-07** at limit **
  14  norm          45.148        30.849       -.84386E-06    .43830E-04
  15  norm          .13338        .17562        .11704E-06    .11519E-03
  16  norm          .10000E-03    11.873       -.33978E-06** at limit **
  17  Prefactor     19.467        21.082       -.19083E-06   -.24465E-04
  18  Prefactor     .10001E-03    90.524       -.55889E-05** at limit **
  19  Prefactor     .10000E-03    5.8469        .16678E-07** at limit **
  20  norm          .10000E-03    27.462       -.26680E-06** at limit **
  21  Prefactor     1.2182        1.0901       -.34784E-07   -.10324E-03
  22  Prefactor     .10000E-03    .56424       -.39821E-07** at limit **
  23  Prefactor     .10000E-03    3.7059        .26510E-06** at limit **
  24  Prefactor     6.9336        4.5411        .66415E-08   -.26264E-03
  25  Prefactor     .10000E-03    24.817        .85210E-06** at limit **
  26  norm          6.9735        3.0126        .22343E-07   -.12926E-03
  27  norm          1.4029        1.4309       -.17058E-07   -.42738E-03
  28  Prefactor     9.9814        10.702       -.14471E-07   -.21813E-03
  29  norm          .10000E-03    .56626        .25675E-06** at limit **
  30  Normalizat    .89658        .24668       -.16114E-05   -.21556E-03
  31  Prefactor     .92915        .23413       -.17110E-05   -.20410E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.33641
  Prefactor  = 0.000100054
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 57.4049
  Prefactor  = 9.09504
  Prefactor  = 0.0001
  norm       = 17.5266
  Prefactor  = 122.858
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 45.1478
  norm       = 0.133384
  norm       = 0.0001
  Prefactor  = 19.4672
  Prefactor  = 0.000100012
  Prefactor  = 0.000100004
  norm       = 0.0001
  Prefactor  = 1.21816
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.93362
  Prefactor  = 0.0001
  norm       = 6.97354
  norm       = 1.40293
  Prefactor  = 9.98142
  norm       = 0.0001
  Normalizat = 0.896578
  Prefactor  = 0.929149
 **********
 **   18 **HESSE 
 **********

 FCN=   3534.793     FROM HESSE     STATUS=OK           624 CALLS     4205 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.3364        5.0945        .14108E-03   -1.5291    
   2  Prefactor     .10005E-03    29.751        .34362E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    10.863        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.2156        .13258E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          57.405        34.797        .26474E-03   -1.4191    
   6  Prefactor     9.0950        25.141        .13289E-03   -1.5105    
   7  Prefactor     .10000E-03    6.1213        .14322E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          17.527        9.8676        .95667E-04   -1.4870    
   9  Prefactor     122.86        101.72        .18159E-03   -1.3487    
  10  Prefactor     .10000E-03    18.213        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    49.549        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    22.818        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.3093        .66246E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          45.148        30.780        .59674E-04   -1.4363    
  15  norm          .13338        .16724        .26066E-03   -1.5635    
  16  norm          .10000E-03    11.904        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     19.467        20.938        .90776E-04   -1.4825    
  18  Prefactor     .10001E-03    91.094        .22461E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    14.006        .27733E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    27.486        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     1.2182        1.0788        .54421E-04   -1.5487    
  22  Prefactor     .10000E-03    .57556        .86713E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    3.8067        .22340E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     6.9336        4.5165        .96427E-04   -1.5181    
  25  Prefactor     .10000E-03    25.472        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          6.9735        3.0081        .65234E-04   -1.5180    
  27  norm          1.4029        1.3831        .63824E-04   -1.5471    
  28  Prefactor     9.9814        10.532        .12684E-03   -1.5076    
  29  norm          .10000E-03    .89799        .86071E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .89658        .28823        .25972E-03   -.96580    
  31  Prefactor     .92915        .27388        .24903E-03   -.95130    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.53344e-09
Minuit parameter uncertainties:
  1  5.09502
  2  0.00254176
  3  1.0834e-05
  4  2.55315e-06
  5  34.8097
  6  25.1701
  7  1.63705e-05
  8  9.86847
  9  101.865
  10  0.000124678
  11  0.000271508
  12  3.48694e-06
  13  2.9917e-06
  14  30.7907
  15  0.16724
  16  3.40704e-05
  17  20.9463
  18  0.00213143
  19  0.000483711
  20  4.42249e-05
  21  1.07883
  22  1.17241e-06
  23  2.0185e-05
  24  4.51668
  25  0.000221346
  26  3.00821
  27  1.38317
  28  10.5341
  29  5.17425e-06
  30  0.288731
  31  0.274286
Done.

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

Extracting fit parameters...

4FGL J1616.6+4630
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  2.715e-04  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  2.600e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
302        Scale:  8.481e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
677    Prefactor:  9.291e-01  2.743e-01  0.000e+00  1.000e+01 ( 1.000e+00)
678        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
679        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
676   Normalization:  8.966e-01  2.887e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 244.160 46.510
Photon Flux Upper Limit: 1.13e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.85e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/215004/likelihoodResults_424137601_424396801_4FGL_J1616.6+4630_daily_bin713.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) = 3534.79332351
delta logL = -9.60794500315e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3534.7933235
delta logL = -9.60711217886e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96351E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6000       1.0000          .0000       10.000    
     3 'Normalizat'    .89658       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92915       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6800E+05   .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=   3534.793     FROM MIGRAD    STATUS=CONVERGED    105 CALLS      246 TOTAL
                     EDM=   .62E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .21179E-03    5.8359        .18143    ** at limit **
   2  Index         1.7033        5.7691        .50000        .68881E-06
   3  Normalizat    .89658        .24072E-02    .25972E-03   -.84810E-04
   4  Prefactor     .92915        .23589E-02    .24903E-03   -.52340E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000211789
  Index      = 1.70331
  Normalizat = 0.896578
  Prefactor  = 0.929149
 **********
 **   18 **HESSE 
 **********

 FCN=   3534.793     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      279 TOTAL
                     EDM=   .22E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .21179E-03    8593.8        .66145E-02   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7033        5.8554        .50000       -.71994    
   3  Normalizat    .89658        .23208E-01    .10389E-04   -.96580    
   4  Prefactor     .92915        .22746E-01    .99612E-05   -.95130    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.18226e-06
Minuit parameter uncertainties:
  1  2.13979
  2  692.868
  3  0.023208
  4  0.0227464
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/215004': 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) = 3534.79322658
delta logL = 8.48381660035e-07

Extracting fit parameters...

4FGL J1616.6+4630
   Spectrum: PowerLaw
300    Prefactor:  2.118e-04  2.140e+00  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  1.703e+00  6.929e+02  0.000e+00  1.000e+01 (-1.000e+00)
302        Scale:  8.481e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
677    Prefactor:  9.291e-01  2.275e-02  0.000e+00  1.000e+01 ( 1.000e+00)
678        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
679        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
676   Normalization:  8.966e-01  2.321e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 244.160 46.510

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/215004/cmap_HighResolution_424137601_424396801_4FGL_J1616.6+4630_daily_bin713.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.85e-03', job_status='DONE', photon_flux_upper_limit='1.13e-07', time_completed='2021-09-13 19:24:30.432794', job_id='215004', GAL2='0.93', fit_tolerance='1e-08', EG2='0.90', EG='0.90', time_epoch_completed='1631586270.43', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='8.48e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.60' WHERE bin_id='713' AND source_name='4FGL J1616.6+4630' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 13 19:24:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0169>
Subject: Job 215004: <4FGL_J1616.6+4630_daily_bin713> in cluster <slac> Done

Job <4FGL_J1616.6+4630_daily_bin713> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Sep 13 19:10:19 2021
Job was executed on host(s) <bullet0169>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 13 19:10:28 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep 13 19:10:28 2021
Terminated at Mon Sep 13 19:24:31 2021
Results reported at Mon Sep 13 19:24:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1616.6+4630_daily_bin713 244.16 46.5099 424137601 424396801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1616.6+4630 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   699.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             277.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   842 sec.
    Turnaround time :                            852 sec.

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

