/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 209 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_bin728
RA = 244.16, Dec = 46.5099
tmin = 428025601, tmax = 428284801
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='215029', job_status='RUN', time_executed='2021-09-13 19:14:15.460765', time_epoch_executed='1631585655.46' WHERE source_name='4FGL J1616.6+4630' and cadence='daily' and bin_id='728'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/215029

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/215029/ft1_4FGL_J1616.6+4630_daily_bin728.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/215029/ft2_4FGL_J1616.6+4630_daily_bin728.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/215029/ft1_4FGL_J1616.6+4630_daily_bin728.fits outfile=/scratch/kocevski/215029/ft1_filteredMKT_4FGL_J1616.6+4630_daily_bin728.fits ra=244.16 dec=46.5099 rad=12.0 tmin=428025601.0 tmax=428284801.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.67
user 5.38
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/215029/ft2_4FGL_J1616.6+4630_daily_bin728.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/215029/ft1_filteredMKT_4FGL_J1616.6+4630_daily_bin728.fits evtable="EVENTS" outfile="/scratch/kocevski/215029/ft1_filtered_4FGL_J1616.6+4630_daily_bin728.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.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/215029/ft1_filtered_4FGL_J1616.6+4630_daily_bin728.fits" evtable="EVENTS" scfile=/scratch/kocevski/215029/ft2_4FGL_J1616.6+4630_daily_bin728.fits sctable="SC_DATA" outfile=/scratch/kocevski/215029/ltcube_428025601_428284801_4FGL_J1616.6+4630_daily_bin728.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/215029/ft2_4FGL_J1616.6+4630_daily_bin728.fits
.....................!
real 15.11
user 14.70
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/215029/ft1_filtered_4FGL_J1616.6+4630_daily_bin728.fits evtable="EVENTS" scfile=/scratch/kocevski/215029/ft2_4FGL_J1616.6+4630_daily_bin728.fits sctable="SC_DATA" expcube=/scratch/kocevski/215029/ltcube_428025601_428284801_4FGL_J1616.6+4630_daily_bin728.fits outfile=/scratch/kocevski/215029/expmap_428025601_428284801_4FGL_J1616.6+4630_daily_bin728.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/215029/ltcube_428025601_428284801_4FGL_J1616.6+4630_daily_bin728.fits
.....................!
real 194.00
user 186.73
sys 5.79

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/215029/ft1_filtered_4FGL_J1616.6+4630_daily_bin728.fits scfile=/scratch/kocevski/215029/ft2_4FGL_J1616.6+4630_daily_bin728.fits outfile=/scratch/kocevski/215029/cmap_428025601_428284801_4FGL_J1616.6+4630_daily_bin728.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.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/215029/ft1_filtered_4FGL_J1616.6+4630_daily_bin728.fits scfile=/scratch/kocevski/215029/ft2_4FGL_J1616.6+4630_daily_bin728.fits outfile=/scratch/kocevski/215029/cmap_HighResolution_428025601_428284801_4FGL_J1616.6+4630_daily_bin728.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.56
user 0.40
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/215029/ft1_filtered_4FGL_J1616.6+4630_daily_bin728.fits', '/scratch/kocevski/215029/ft2_4FGL_J1616.6+4630_daily_bin728.fits', expMap='/scratch/kocevski/215029/expmap_428025601_428284801_4FGL_J1616.6+4630_daily_bin728.fits', expCube='/scratch/kocevski/215029/ltcube_428025601_428284801_4FGL_J1616.6+4630_daily_bin728.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/215029/Model_4FGL_J1616.6+4630_daily_bin728.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/215029/ft1_filtered_4FGL_J1616.6+4630_daily_bin728.fits
Spacecraft file(s): /scratch/kocevski/215029/ft2_4FGL_J1616.6+4630_daily_bin728.fits
Exposure map: /scratch/kocevski/215029/expmap_428025601_428284801_4FGL_J1616.6+4630_daily_bin728.fits
Exposure cube: /scratch/kocevski/215029/ltcube_428025601_428284801_4FGL_J1616.6+4630_daily_bin728.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/215029/Model_4FGL_J1616.6+4630_daily_bin728.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) = 3613.05041065

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.5202       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.9241       1.0000         .10000E-03   10000.    
     5 'norm      '    5.7461       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .50214E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.1482       1.0000         .10000E-03   10000.    
     8 'norm      '    18.454       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10219E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10197E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11988E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.3744       1.0000         .10000E-03   10000.    
    14 'norm      '    11.411       1.0000         .10000E-03   10000.    
    15 'norm      '    .40151E-01   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    44.386       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.9036       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10138E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .14549E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.0160       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .20275E-02   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10108E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    6.4630       1.0000         .10000E-03   10000.    
    27 'norm      '    3.4737       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .51001       1.0000         .10000E-03   10000.    
    30 'Normalizat'    .75772       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .94350       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=   3612.972     FROM MIGRAD    STATUS=CONVERGED    842 CALLS     3624 TOTAL
                     EDM=   .53E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.5212        5.5138        .35254E-05   -.11919E-03
   2  Prefactor     .10000E-03    8.9229       -.28398E-05** at limit **
   3  Prefactor     .10000E-03    7.9011        .34243E-05** at limit **
   4  Prefactor     2.9203        15.398       -.11578E-06   -.15267E-03
   5  norm          5.7474        14.760       -.48510E-06   -.44232E-04
   6  Prefactor     .10002E-03    34.373       -.98735E-06** at limit **
   7  Prefactor     3.1490        10.374       -.76904E-06   -.18411E-03
   8  norm          18.455        14.946        .15141E-08   -.12941E-04
   9  Prefactor     .10000E-03    39.728       -.10868E-05** at limit **
  10  Prefactor     .10000E-03    14.095       -.45748E-05** at limit **
  11  Prefactor     .10000E-03    55.636        .48248E-05** at limit **
  12  Prefactor     .10000E-03    4.0668        .15707E-07** at limit **
  13  Prefactor     3.3741        3.3384        .96162E-07   -.16018E-03
  14  norm          11.413        18.812       -.45541E-06   -.97335E-05
  15  norm          .40380E-01    .10334        .12572E-06    .84787E-03
  16  norm          .10000E-03    6.2127        .69574E-07** at limit **
  17  Prefactor     44.403        24.311       -.48281E-05   -.99601E-04
  18  Prefactor     2.9039        5.9129       -.89537E-06   -.30189E-03
  19  Prefactor     .10000E-03    6.1961        .25588E-06** at limit **
  20  norm          .10000E-03    19.274        .20623E-05** at limit **
  21  Prefactor     .10000E-03    1.1756        .18274E-06** at limit **
  22  Prefactor     3.0152        1.7167        .73026E-07   -.77148E-03
  23  Prefactor     .10000E-03    4.5517       -.56450E-07** at limit **
  24  Prefactor     .10024E-03    2.1856       -.20922E-06** at limit **
  25  Prefactor     .10000E-03    12.756        .40733E-05** at limit **
  26  norm          6.4632        2.6120        .44658E-07   -.16043E-04
  27  norm          3.4742        1.7590        .62234E-07    .11612E-03
  28  Prefactor     .10000E-03    7.2665       -.20613E-05** at limit **
  29  norm          .51060        1.2506       -.22885E-06   -.81846E-03
  30  Normalizat    .75759        .23458        .61737E-06    .42833E-04
  31  Prefactor     .94346        .22398       -.26228E-06    .94368E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.52123
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.9203
  norm       = 5.74737
  Prefactor  = 0.00010002
  Prefactor  = 3.14901
  norm       = 18.4552
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.37405
  norm       = 11.4127
  norm       = 0.0403802
  norm       = 0.0001
  Prefactor  = 44.403
  Prefactor  = 2.90394
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.01522
  Prefactor  = 0.0001
  Prefactor  = 0.000100239
  Prefactor  = 0.0001
  norm       = 6.46317
  norm       = 3.47416
  Prefactor  = 0.0001
  norm       = 0.510596
  Normalizat = 0.757593
  Prefactor  = 0.94346
 **********
 **   18 **HESSE 
 **********

 FCN=   3612.972     FROM HESSE     STATUS=OK           638 CALLS     4262 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.5212        5.4028        .15445E-03   -1.5333    
   2  Prefactor     .10000E-03    9.0185        .17548E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    7.8700        .16464E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.9203        14.954        .23757E-03   -1.5366    
   5  norm          5.7474        14.770        .16756E-03   -1.5228    
   6  Prefactor     .10002E-03    256.17        .66818E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.1490        10.333        .22845E-03   -1.5353    
   8  norm          18.455        14.889        .93235E-04   -1.4849    
   9  Prefactor     .10000E-03    39.747        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    14.487        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    56.508        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.1012        .11835E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.3741        3.3225        .10455E-03   -1.5341    
  14  norm          11.413        18.813        .11859E-03   -1.5032    
  15  norm          .40380E-01    .86094E-01    .27707E-03   -1.5668    
  16  norm          .10000E-03    6.2128        .14633E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     44.403        23.969        .60177E-04   -1.4374    
  18  Prefactor     2.9039        5.9252        .19736E-03   -1.5367    
  19  Prefactor     .10000E-03    6.2145        .14612E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    19.271        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    4.0476        .10404E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     3.0152        1.4627        .47011E-04   -1.5361    
  23  Prefactor     .10000E-03    4.6117        .12498E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10024E-03    4.4231        .31364E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    12.759        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          6.4632        2.6108        .59166E-04   -1.5199    
  27  norm          3.4742        1.7528        .53785E-04   -1.5335    
  28  Prefactor     .10000E-03    7.2774        .15785E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .51060        1.2440        .97714E-04   -1.5565    
  30  Normalizat    .75759        .27600        .26722E-03   -1.0166    
  31  Prefactor     .94346        .26580        .23521E-03   -.94639    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.23764e-09
Minuit parameter uncertainties:
  1  5.40355
  2  0.000122212
  3  1.66944e-05
  4  13.2216
  5  14.7794
  6  0.00452058
  7  10.3389
  8  14.8923
  9  3.35153e-06
  10  5.68113e-05
  11  0.000150496
  12  1.62862e-06
  13  3.32272
  14  18.8229
  15  0.086094
  16  3.20181e-07
  17  23.9741
  18  5.92643
  19  5.71746e-07
  20  2.63362e-06
  21  3.03789e-05
  22  1.46276
  23  5.67408e-06
  24  0.00205712
  25  3.01646e-06
  26  2.61081
  27  1.75286
  28  1.21562e-05
  29  1.2441
  30  0.276513
  31  0.266164
Done.

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

Extracting fit parameters...

4FGL J1616.6+4630
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  1.505e-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.435e-01  2.662e-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:  7.576e-01  2.765e-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.05e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.25e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/215029/likelihoodResults_428025601_428284801_4FGL_J1616.6+4630_daily_bin728.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) = 3612.97239679
delta logL = -8.42300555632e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3612.97231276
delta logL = -1.95434495254e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10580E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6423       1.0000          .0000       10.000    
     3 'Normalizat'    .75759       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94346       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=   3612.972     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      294 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .12204E-03    1.9968        .10525    ** at limit **
   2  Index         2.4691        7.7653        .50000        .11571E-04
   3  Normalizat    .75760        .14367E-02    .26722E-03    .54888E-03
   4  Prefactor     .94346        .14065E-02    .23521E-03    .42007E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000122043
  Index      = 2.46909
  Normalizat = 0.7576
  Prefactor  = 0.943456
 **********
 **   18 **HESSE 
 **********

 FCN=   3612.972     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      325 TOTAL
                     EDM=   .94E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .12204E-03    137.00        .61700E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4691        5.9863        .50000       -.53075    
   3  Normalizat    .75760        .65718E-02    .53444E-04   -1.0166    
   4  Prefactor     .94346        .64336E-02    .47042E-04   -.94639    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.39824e-09
Minuit parameter uncertainties:
  1  0.110161
  2  187.851
  3  0.00657183
  4  0.00643358
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/215029': 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) = 3612.97231234
delta logL = 2.20479250856e-07

Extracting fit parameters...

4FGL J1616.6+4630
   Spectrum: PowerLaw
300    Prefactor:  1.220e-04  1.102e-01  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  2.469e+00  1.879e+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.435e-01  6.434e-03  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:  7.576e-01  6.572e-03  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/215029/cmap_HighResolution_428025601_428284801_4FGL_J1616.6+4630_daily_bin728.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.25e-03', job_status='DONE', photon_flux_upper_limit='1.05e-07', time_completed='2021-09-13 19:26:01.965477', job_id='215029', GAL2='0.94', fit_tolerance='1e-08', EG2='0.76', EG='0.76', time_epoch_completed='1631586361.97', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='2.20e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.60' WHERE bin_id='728' AND source_name='4FGL J1616.6+4630' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 13 19:26:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0161>
Subject: Job 215029: <4FGL_J1616.6+4630_daily_bin728> in cluster <slac> Done

Job <4FGL_J1616.6+4630_daily_bin728> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Sep 13 19:10:21 2021
Job was executed on host(s) <bullet0161>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 13 19:10:36 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:36 2021
Terminated at Mon Sep 13 19:26:02 2021
Results reported at Mon Sep 13 19:26:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1616.6+4630_daily_bin728 244.16 46.5099 428025601 428284801 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 :                                   703.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             267.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   926 sec.
    Turnaround time :                            941 sec.

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

