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


Performing analysis on: 4FGL_J1616.6+4630_daily_bin1179
RA = 244.16, Dec = 46.5099
tmin = 544924801, tmax = 545184001
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='217993', job_status='RUN', time_executed='2021-09-13 19:22:05.569104', time_epoch_executed='1631586125.57' WHERE source_name='4FGL J1616.6+4630' and cadence='daily' and bin_id='1179'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/217993

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/217993/ft1_4FGL_J1616.6+4630_daily_bin1179.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/217993/ft2_4FGL_J1616.6+4630_daily_bin1179.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/217993/ft1_4FGL_J1616.6+4630_daily_bin1179.fits outfile=/scratch/kocevski/217993/ft1_filteredMKT_4FGL_J1616.6+4630_daily_bin1179.fits ra=244.16 dec=46.5099 rad=12.0 tmin=544924801.0 tmax=545184001.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 4.14
user 3.91
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/217993/ft1_filtered_4FGL_J1616.6+4630_daily_bin1179.fits evtable="EVENTS" scfile=/scratch/kocevski/217993/ft2_4FGL_J1616.6+4630_daily_bin1179.fits sctable="SC_DATA" expcube=/scratch/kocevski/217993/ltcube_544924801_545184001_4FGL_J1616.6+4630_daily_bin1179.fits outfile=/scratch/kocevski/217993/expmap_544924801_545184001_4FGL_J1616.6+4630_daily_bin1179.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/217993/ltcube_544924801_545184001_4FGL_J1616.6+4630_daily_bin1179.fits
.....................!
real 193.66
user 188.40
sys 4.67

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/217993/ft1_filtered_4FGL_J1616.6+4630_daily_bin1179.fits scfile=/scratch/kocevski/217993/ft2_4FGL_J1616.6+4630_daily_bin1179.fits outfile=/scratch/kocevski/217993/cmap_544924801_545184001_4FGL_J1616.6+4630_daily_bin1179.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.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/217993/ft1_filtered_4FGL_J1616.6+4630_daily_bin1179.fits scfile=/scratch/kocevski/217993/ft2_4FGL_J1616.6+4630_daily_bin1179.fits outfile=/scratch/kocevski/217993/cmap_HighResolution_544924801_545184001_4FGL_J1616.6+4630_daily_bin1179.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.39
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/217993/ft1_filtered_4FGL_J1616.6+4630_daily_bin1179.fits', '/scratch/kocevski/217993/ft2_4FGL_J1616.6+4630_daily_bin1179.fits', expMap='/scratch/kocevski/217993/expmap_544924801_545184001_4FGL_J1616.6+4630_daily_bin1179.fits', expCube='/scratch/kocevski/217993/ltcube_544924801_545184001_4FGL_J1616.6+4630_daily_bin1179.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/217993/Model_4FGL_J1616.6+4630_daily_bin1179.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/217993/ft1_filtered_4FGL_J1616.6+4630_daily_bin1179.fits
Spacecraft file(s): /scratch/kocevski/217993/ft2_4FGL_J1616.6+4630_daily_bin1179.fits
Exposure map: /scratch/kocevski/217993/expmap_544924801_545184001_4FGL_J1616.6+4630_daily_bin1179.fits
Exposure cube: /scratch/kocevski/217993/ltcube_544924801_545184001_4FGL_J1616.6+4630_daily_bin1179.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/217993/Model_4FGL_J1616.6+4630_daily_bin1179.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 1072.93501205

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 1070.48716428

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.8997       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .64903E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .22941E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.6414       1.0000         .10000E-03   10000.    
     5 'norm      '    .50765E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    34.506       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.8854       1.0000         .10000E-03   10000.    
     8 'norm      '    8.9958       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .42239       1.0000         .10000E-03   10000.    
    10 'Prefactor '    44.828       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .61688       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .56056       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10177E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    12.610       1.0000         .10000E-03   10000.    
    15 'norm      '    .90934       1.0000         .10000E-03   10000.    
    16 'norm      '    .80524E-01   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .87791E-01   1.0000         .10000E-03   10000.    
    18 'Prefactor '    12.356       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.7785       1.0000         .10000E-03   10000.    
    20 'norm      '    125.04       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10541E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .60679       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .23541E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .12742E-01   1.0000         .10000E-03   10000.    
    26 'norm      '    .11410E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10133E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    27.443       1.0000         .10000E-03   10000.    
    29 'norm      '    .13832E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.5420       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6800E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1070.470     FROM MIGRAD    STATUS=CONVERGED    265 CALLS      654 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.8522        14.594       -.42755E-05   -.28730E-03
   2  Prefactor     .10000E-03    113.16       -.43029E-06** at limit **
   3  Prefactor     .10000E-03    46.803       -.71154E-05** at limit **
   4  Prefactor     10.008        34.442       -.38443E-06    .19517E-02
   5  norm          .10000E-03    16.519       -.26663E-05** at limit **
   6  Prefactor     35.742        77.025        .47031E-05    .81013E-03
   7  Prefactor     3.8854        1.0085         .0000         .0000    
   8  norm          8.9958        1.0016         .0000         .0000    
   9  Prefactor     .15964E-03    216.37        .16285E-06** at limit **
  10  Prefactor     45.068        44.302        .27567E-05    .13878E-02
  11  Prefactor     .11035E-03    584.91        .40348E-05** at limit **
  12  Prefactor     .10016E-03    244.93        .14327E-04** at limit **
  13  Prefactor     .10000E-03    5.8512       -.61219E-06** at limit **
  14  norm          72.949        530.93        .23894E-04   -.18642E-04
  15  norm          .91288        .41249        .13382E-06    .53833E-05
  16  norm          .10000E-03    58.534        .33632E-05** at limit **
  17  Prefactor     .10000E-03    46.792        .24435E-05** at limit **
  18  Prefactor     12.358        16.015       -.80800E-07    .22520E-03
  19  Prefactor     2.7785        1.0172         .0000         .0000    
  20  norm          125.76        3.9749        .18520E-06    .28967E-02
  21  Prefactor     .10000E-03    3.0240        .17079E-05** at limit **
  22  Prefactor     .62859        5.7527       -.19727E-05    .16561E-04
  23  Prefactor     .10000E-03    14.549        .29217E-05** at limit **
  24  Prefactor     .10000E-03    4.2359       -.11451E-05** at limit **
  25  Prefactor     .11164E-03    199.23        .35945E-05** at limit **
  26  norm          .10000E-03    4.7529       -.33621E-06** at limit **
  27  norm          .10000E-03    3.0619       -.71335E-07** at limit **
  28  Prefactor     28.006        27.175        .28742E-05   -.31048E-02
  29  norm          .10000E-03    21.320       -.21820E-05** at limit **
  30  Normalizat    .10000E-01    2.0337        .10266E-03** at limit **
  31  Prefactor     1.5312        .30904       -.96064E-06   -.38233E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 7.85216
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.0079
  norm       = 0.0001
  Prefactor  = 35.7417
  Prefactor  = 3.88545
  norm       = 8.9958
  Prefactor  = 0.000159639
  Prefactor  = 45.0677
  Prefactor  = 0.000110351
  Prefactor  = 0.000100156
  Prefactor  = 0.0001
  norm       = 72.9486
  norm       = 0.912881
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.3576
  Prefactor  = 2.77851
  norm       = 125.758
  Prefactor  = 0.0001
  Prefactor  = 0.62859
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000111641
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 28.0056
  norm       = 0.0001
  Normalizat = 0.01
  Prefactor  = 1.53116
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   1070.470     FROM HESSE     STATUS=FAILED        33 CALLS      687 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.8522        13.843        .35665E-02   -1.5147    
   2  Prefactor     .10000E-03    110.60        .93425E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    46.613        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     10.008        35.829        .34090E-02   -1.5075    
   5  norm          .10000E-03    16.543        .95907E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     35.742        71.694        .17055E-02   -1.4512    
   7  Prefactor     543.46        539.51         .0000       -1.5314    
   8  norm          8.9958        1.0016         .0000       -1.5108    
   9  Prefactor     .15964E-03    .29974        .16285E-06   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     45.068        1.0027        .27567E-05   -1.4364    
  11  Prefactor     .11035E-03    .34451        .40348E-05   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10016E-03    .33152        .14327E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    .20571       -.61219E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          72.949        2.3998        .23894E-04   -1.3998    
  15  norm          .91288        1.2268        .13382E-06   -1.5517    
  16  norm          .10000E-03    .22174        .33632E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    .22339        .24435E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     12.358        1.0009       -.80800E-07   -1.5005    
  19  Prefactor     2.7785        1.0172         .0000       -1.5375    
  20  norm          125.76        1.0028        .18520E-06   -1.3460    
  21  Prefactor     .10000E-03    .20571        .17079E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .62859        .92744       -.19727E-05   -1.5549    
  23  Prefactor     .10000E-03    .20571        .29217E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    .20571       -.11451E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .11164E-03    .20642        .35945E-05   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    .20571       -.33621E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    .20571       -.71335E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     28.006        1.0103        .28742E-05   -1.4649    
  29  norm          .10000E-03    .20571       -.21820E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .10000E-01    .25747        .10266E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     1.5312        1.0417       -.96064E-06   -.76671    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.40439e-10
Minuit parameter uncertainties:
  1  13.8483
  2  0.000233236
  3  7.52211e-05
  4  35.906
  5  4.25628e-06
  6  71.8676
  7  1.00853
  8  1.00155
  9  0.00845603
  10  1.00271
  11  0.00377685
  12  0.000454177
  13  2.97721e-07
  14  2.3998
  15  1.22681
  16  4.15821e-07
  17  5.15561e-06
  18  1.00087
  19  1.01718
  20  1.00285
  21  1.16262e-07
  22  0.927461
  23  5.06375e-07
  24  3.92815e-07
  25  0.00310028
  26  6.22748e-07
  27  4.11128e-07
  28  1.01033
  29  1.40992e-06
  30  2.21548e-07
  31  1.05679
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 1070.46992078

Extracting fit parameters...

4FGL J1616.6+4630
   Spectrum: PowerLaw
300    Prefactor:  1.104e-04  3.777e-03  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:  1.531e+00  1.057e+00  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:  1.000e-02  2.215e-07  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/217993/likelihoodResults_544924801_545184001_4FGL_J1616.6+4630_daily_bin1179.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) = 1070.46993015
delta logL = -9.36763217396e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1070.46993
delta logL = -9.21684909372e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96329E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6000       1.0000          .0000       10.000    
     3 'Normalizat'    .10008E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.5312       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.

 FCN=   1070.470     FROM MIGRAD    STATUS=CONVERGED     68 CALLS      223 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    830.77        .90715E-02** at limit **
   2  Index         2.5052        6.4088        .50000        .93380E-06
   3  Normalizat    .10000E-01    .77738E-03    .23346    ** at limit **
   4  Prefactor     1.5312        .10203E-01    .48119E-01    .98296E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.50523
  Normalizat = 0.01
  Prefactor  = 1.53116
 **********
 **   18 **HESSE 
 **********

 FCN=   1070.470     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      254 TOTAL
                     EDM=   .50E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6858.5        .18143E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5052        7.9442        .50000       -.52239    
   3  Normalizat    .10000E-01    .19647E-01    .13243E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.5312        .22890E-01    .21268E-03   -.76671    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.99421e-08
Minuit parameter uncertainties:
  1  0.00324054
  2  1029.09
  3  1.36759e-06
  4  0.0228905
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/217993': 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) = 1070.46992075
delta logL = 3.24123448081e-08

Extracting fit parameters...

4FGL J1616.6+4630
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  3.241e-03  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  2.505e+00  1.029e+03  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:  1.531e+00  2.289e-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:  1.000e-02  1.368e-06  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/217993/cmap_HighResolution_544924801_545184001_4FGL_J1616.6+4630_daily_bin1179.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.34e-02', job_status='DONE', photon_flux_upper_limit='6.82e-07', time_completed='2021-09-13 19:28:15.981102', job_id='217993', GAL2='1.53', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1631586495.98', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='101', GAL='1.53', dlogl='3.24e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.60' WHERE bin_id='1179' AND source_name='4FGL J1616.6+4630' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 13 19:28:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0049>
Subject: Job 217993: <4FGL_J1616.6+4630_daily_bin1179> in cluster <slac> Done

Job <4FGL_J1616.6+4630_daily_bin1179> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Mon Sep 13 19:20:44 2021
Job was executed on host(s) <bullet0049>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 13 19:21:51 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:21:51 2021
Terminated at Mon Sep 13 19:28:16 2021
Results reported at Mon Sep 13 19:28:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1616.6+4630_daily_bin1179 244.16 46.5099 544924801 545184001 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 :                                   363.16 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             311.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   385 sec.
    Turnaround time :                            452 sec.

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

