/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 127 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_J1647.5+4950_daily_bin1179
RA = 251.892, Dec = 49.8336
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='974076', job_status='RUN', time_executed='2021-09-15 15:03:44.639046', time_epoch_executed='1631743424.64' WHERE source_name='4FGL J1647.5+4950' and cadence='daily' and bin_id='1179'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/974076

Creating custom pfile directory:
/scratch/kocevski/974076/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/974076/ft1_4FGL_J1647.5+4950_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/974076/ft2_4FGL_J1647.5+4950_daily_bin1179.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/974076/ft1_4FGL_J1647.5+4950_daily_bin1179.fits outfile=/scratch/kocevski/974076/ft1_filteredMKT_4FGL_J1647.5+4950_daily_bin1179.fits ra=251.892 dec=49.8336 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 3.42
user 3.20
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/974076/ft2_4FGL_J1647.5+4950_daily_bin1179.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/974076/ft2_4FGL_J1647.5+4950_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/974076/ft1_filteredMKT_4FGL_J1647.5+4950_daily_bin1179.fits evtable="EVENTS" outfile="/scratch/kocevski/974076/ft1_filtered_4FGL_J1647.5+4950_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.45
user 0.30
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/974076/ft1_filtered_4FGL_J1647.5+4950_daily_bin1179.fits" evtable="EVENTS" scfile=/scratch/kocevski/974076/ft2_4FGL_J1647.5+4950_daily_bin1179.fits sctable="SC_DATA" outfile=/scratch/kocevski/974076/ltcube_544924801_545184001_4FGL_J1647.5+4950_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/974076/ft2_4FGL_J1647.5+4950_daily_bin1179.fits
.....................!
real 12.45
user 12.03
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/974076/ft1_filtered_4FGL_J1647.5+4950_daily_bin1179.fits evtable="EVENTS" scfile=/scratch/kocevski/974076/ft2_4FGL_J1647.5+4950_daily_bin1179.fits sctable="SC_DATA" expcube=/scratch/kocevski/974076/ltcube_544924801_545184001_4FGL_J1647.5+4950_daily_bin1179.fits outfile=/scratch/kocevski/974076/expmap_544924801_545184001_4FGL_J1647.5+4950_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/974076/ltcube_544924801_545184001_4FGL_J1647.5+4950_daily_bin1179.fits
.....................!
real 157.60
user 153.12
sys 4.10

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

Setting source of interest to:
4FGL J1647.5+4950 @ 251.892 49.8336

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/974076/ft1_filtered_4FGL_J1647.5+4950_daily_bin1179.fits scfile=/scratch/kocevski/974076/ft2_4FGL_J1647.5+4950_daily_bin1179.fits outfile=/scratch/kocevski/974076/cmap_544924801_545184001_4FGL_J1647.5+4950_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=251.892 yref=49.8336 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.50
user 0.32
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/974076/ft1_filtered_4FGL_J1647.5+4950_daily_bin1179.fits scfile=/scratch/kocevski/974076/ft2_4FGL_J1647.5+4950_daily_bin1179.fits outfile=/scratch/kocevski/974076/cmap_HighResolution_544924801_545184001_4FGL_J1647.5+4950_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=251.892 yref=49.8336 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.48
user 0.34
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/974076/ft1_filtered_4FGL_J1647.5+4950_daily_bin1179.fits evtable="EVENTS" scfile=/scratch/kocevski/974076/ft2_4FGL_J1647.5+4950_daily_bin1179.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/974076/Model_4FGL_J1647.5+4950_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/974076/ft1_filtered_4FGL_J1647.5+4950_daily_bin1179.fits......................!
real 14.21
user 13.05
sys 1.08

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/974076/ft1_filtered_4FGL_J1647.5+4950_daily_bin1179.fits', '/scratch/kocevski/974076/ft2_4FGL_J1647.5+4950_daily_bin1179.fits', expMap='/scratch/kocevski/974076/expmap_544924801_545184001_4FGL_J1647.5+4950_daily_bin1179.fits', expCube='/scratch/kocevski/974076/ltcube_544924801_545184001_4FGL_J1647.5+4950_daily_bin1179.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/974076/Model_4FGL_J1647.5+4950_daily_bin1179.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1647.5+4950'

4FGL J1647.5+4950
   Spectrum: PowerLaw
362    Prefactor:  2.441e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
363        Index:  2.386e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
364        Scale:  8.183e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/974076/ft1_filtered_4FGL_J1647.5+4950_daily_bin1179.fits
Spacecraft file(s): /scratch/kocevski/974076/ft2_4FGL_J1647.5+4950_daily_bin1179.fits
Exposure map: /scratch/kocevski/974076/expmap_544924801_545184001_4FGL_J1647.5+4950_daily_bin1179.fits
Exposure cube: /scratch/kocevski/974076/ltcube_544924801_545184001_4FGL_J1647.5+4950_daily_bin1179.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/974076/Model_4FGL_J1647.5+4950_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) = 554.763959092

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.8854       1.0000         .10000E-03   10000.    
     2 'norm      '    8.9958       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.1971       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .33811       1.0000         .10000E-03   10000.    
     5 'Prefactor '    79.948       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.3998       1.0000         .10000E-03   10000.    
     7 'Prefactor '    32.601       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    38.429       1.0000         .10000E-03   10000.    
    10 'norm      '    .90979       1.0000         .10000E-03   10000.    
    11 'norm      '    .93346E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    14.025       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.7785       1.0000         .10000E-03   10000.    
    14 'norm      '    176.60       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10097E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.0987       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .33098E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11013       1.0000         .10000E-03   10000.    
    20 'norm      '    .31136       1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.3178       1.0000         .10000E-03   10000.    
    22 'norm      '    .10062E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    43.456       1.0000         .10000E-03   10000.    
    24 'norm      '    1.2814       1.0000         .10000E-03   10000.    
    25 'norm      '    24.348       1.0000         .10000E-03   10000.    
    26 'Prefactor '    2.2423       1.0000         .10000E-03   10000.    
    27 'norm      '    .25769E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .41629E-01   1.0000         .10000E-03   10000.    
    29 'norm      '    .18257       1.0000         .10000E-03   10000.    
    30 'Prefactor '    27.509       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .46830E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    8.6567       1.0000         .10000E-03   10000.    
    33 'Prefactor '    8.3904       1.0000         .10000E-03   10000.    
    34 'Prefactor '    379.69       1.0000         .10000E-03   10000.    
    35 'Prefactor '    3.4067       1.0000         .10000E-03   10000.    
    36 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    37 'Prefactor '    .68990       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7070E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   550.5107     FROM MIGRAD    STATUS=CONVERGED    328 CALLS      677 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.8854        1.0085         .0000         .0000    
   2  norm          8.9958        1.0016         .0000         .0000    
   3  Prefactor     2.1971        1.0286         .0000         .0000    
   4  Prefactor     .10014E-03    471.95        .43092E-04** at limit **
   5  Prefactor     81.949        54.684        .47607E-04   -.74998E-03
   6  Prefactor     .60165        471.97        .94633E-04   -.41080E-03
   7  Prefactor     .10044E-03    285.98       -.50883E-04** at limit **
   8  Prefactor     .10000E-03    7.5718       -.75504E-05** at limit **
   9  norm          215.30        384.01        .70838E-04   -.30036E-02
  10  norm          .91605        .54418        .33990E-07   -.20585E-03
  11  norm          .10027E-03    482.26       -.87452E-04** at limit **
  12  Prefactor     14.033        15.861       -.19125E-05    .10370E-03
  13  Prefactor     2.7785        1.0172         .0000         .0000    
  14  norm          175.93        176.41       -.44515E-05   -.73960E-02
  15  Prefactor     .10000E-03    2.7532       -.27329E-06** at limit **
  16  Prefactor     2.1777        5.4468        .43171E-05   -.24512E-03
  17  Prefactor     .10000E-03    13.830       -.75074E-05** at limit **
  18  Prefactor     .10000E-03    4.5497        .26144E-06** at limit **
  19  Prefactor     .10000E-03    219.73        .36817E-04** at limit **
  20  norm          .33853        8.5603       -.76585E-05    .20111E-03
  21  Prefactor     3.3178        1.0118         .0000         .0000    
  22  norm          .10000E-03    2.9212        .34092E-06** at limit **
  23  Prefactor     44.386        55.850        .17425E-04    .16230E-03
  24  norm          1.3362        3.8604       -.57439E-05   -.46872E-05
  25  norm          24.944        33.637       -.65442E-05   -.23106E-03
  26  Prefactor     2.2423        1.0273         .0000         .0000    
  27  norm          .10000E-03    11.203       -.30320E-05** at limit **
  28  Prefactor     .10000E-03    56.892        .51318E-05** at limit **
  29  norm          .10000E-03    69.294        .20428E-04** at limit **
  30  Prefactor     .27103E-01    631.73       -.25153E-03   -.62012E-02
  31  Prefactor     .10000E-03    260.72        .31687E-05** at limit **
  32  Prefactor     8.6567        1.0017         .0000         .0000    
  33  Prefactor     8.3904        1.0018         .0000         .0000    
  34  Prefactor     399.17        330.78        .75776E-04   -.17125E-01
  35  Prefactor     3.4067        1.0112         .0000         .0000    
  36  Normalizat    .10000E-01    .37965       -.49198E-04** at limit **
  37  Prefactor     .66440        .36773        .11877E-04   -.44014E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.88545
  norm       = 8.9958
  Prefactor  = 2.19707
  Prefactor  = 0.000100143
  Prefactor  = 81.9489
  Prefactor  = 0.601652
  Prefactor  = 0.00010044
  Prefactor  = 0.0001
  norm       = 215.298
  norm       = 0.916046
  norm       = 0.00010027
  Prefactor  = 14.0334
  Prefactor  = 2.77851
  norm       = 175.928
  Prefactor  = 0.0001
  Prefactor  = 2.17768
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  norm       = 0.338535
  Prefactor  = 3.31778
  norm       = 0.0001
  Prefactor  = 44.3855
  norm       = 1.33619
  norm       = 24.9443
  Prefactor  = 2.24233
  norm       = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.0271034
  Prefactor  = 0.0001
  Prefactor  = 8.65668
  Prefactor  = 8.39043
  Prefactor  = 399.168
  Prefactor  = 3.40672
  Normalizat = 0.01
  Prefactor  = 0.664398
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   550.5107     FROM HESSE     STATUS=FAILED         9 CALLS      686 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     543.46        539.51         .0000       -1.5314    
   2  norm          8.9958        1.0016         .0000       -1.5108    
   3  Prefactor     2.1971        1.0286         .0000       -1.5412    
   4  Prefactor     .10014E-03    .28042        .43092E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     81.949        1.0124        .47607E-04   -1.3895    
   6  Prefactor     .60165        .42543        .94633E-04   -1.5863    
   7  Prefactor     .10044E-03    .76954E-02   -.50883E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    .20571       -.75504E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          215.30        2.3460        .70838E-04   -1.2763    
  10  norm          .91605        1.2291        .33990E-07   -1.5517    
  11  norm          .10027E-03    .27058       -.87452E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     14.033        1.0009       -.19125E-05   -1.4959    
  13  Prefactor     2.7785        1.0172         .0000       -1.5375    
  14  norm          175.93        .99814       -.44515E-05   -1.3047    
  15  Prefactor     .10000E-03    .20571       -.27329E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.1777        1.0509        .43171E-05   -1.5413    
  17  Prefactor     .10000E-03    .28483       -.75074E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    .20571        .26144E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    .22846        .36817E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .33853        .60935       -.76585E-05   -1.5824    
  21  Prefactor     3.3178        1.0118         .0000       -1.5344    
  22  norm          .10000E-03    .20571        .34092E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     44.386        1.0107        .17425E-04   -1.4375    
  24  norm          1.3362        1.1328       -.57439E-05   -1.5477    
  25  norm          24.944        1.0124       -.65442E-05   -1.4709    
  26  Prefactor     2.2423        1.0273         .0000       -1.5408    
  27  norm          .10000E-03    .28763       -.30320E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    .21294        .51318E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    .24491        .20428E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .27103E-01    .31379E-01   -.25153E-03   -1.5741    
  31  Prefactor     .10000E-03    .28062        .31687E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     8.6567        1.0017         .0000       -1.5119    
  33  Prefactor     8.3904        1.0018         .0000       -1.5129    
  34  Prefactor     399.17        1.0243        .75776E-04   -1.1685    
  35  Prefactor     3.4067        1.0112         .0000       -1.5339    
  36  Normalizat    .10000E-01    .25505       -.49198E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  37  Prefactor     .66440        1.0216        .11877E-04   -1.0494    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.10863e-09
Minuit parameter uncertainties:
  1  1.00853
  2  1.00155
  3  1.02858
  4  0.000399851
  5  1.01235
  6  0.425437
  7  0.000116439
  8  1.93984e-06
  9  2.34604
  10  1.22909
  11  0.000541051
  12  1.00095
  13  1.01718
  14  0.998142
  15  4.42813e-06
  16  1.05087
  17  5.21048e-05
  18  3.17227e-07
  19  5.08032e-05
  20  0.609357
  21  1.01183
  22  3.04063e-07
  23  1.01066
  24  1.13277
  25  1.01236
  26  1.02732
  27  1.1921e-05
  28  3.95408e-05
  29  8.08158e-06
  30  0.0313791
  31  2.12627e-05
  32  1.00168
  33  1.00179
  34  1.02429
  35  1.0112
  36  2.68027e-06
  37  1.05265
Done.

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

Extracting fit parameters...

4FGL J1647.5+4950
   Spectrum: PowerLaw
362    Prefactor:  1.000e-04  5.210e-05  1.000e-04  1.000e+04 ( 1.000e-12)
363        Index:  2.386e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
364        Scale:  8.183e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
704    Prefactor:  6.644e-01  1.053e+00  0.000e+00  1.000e+01 ( 1.000e+00)
705        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
706        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
703   Normalization:  1.000e-02  2.680e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 251.892 49.834
Photon Flux Upper Limit: 8.82e-07 ph cm-2 s-1
Energy Flux Upper Limit: 6.81e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/974076/likelihoodResults_544924801_545184001_4FGL_J1647.5+4950_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) = 550.510990072
delta logL = -0.00032607163871

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 550.510664999
delta logL = -9.98989776235e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3705       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .66402       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7070E+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=   550.5107     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      256 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    183.59        .86043E-02** at limit **
   2  Index         1.7471        6.3170        .50000        .22931E-06
   3  Normalizat    .10000E-01    .82543E-02    .79502E-02** at limit **
   4  Prefactor     .66442        .39304E-01    .24799E-03    .83676E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 1.74713
  Normalizat = 0.01
  Prefactor  = 0.664424
 **********
 **   18 **HESSE 
 **********

 FCN=   550.5107     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      285 TOTAL
                     EDM=   .81E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1349.1        .96405E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7471        6.4754        .50000       -.70834    
   3  Normalizat    .10000E-01    .73517E-01    .15900E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .66442        .11736        .49599E-04   -1.0494    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.11311e-09
Minuit parameter uncertainties:
  1  0.00252655
  2  2502.69
  3  1.03358e-05
  4  0.117405
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/974076': 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) = 550.510663208
delta logL = 7.92007085693e-07

Extracting fit parameters...

4FGL J1647.5+4950
   Spectrum: PowerLaw
362    Prefactor:  1.000e-04  2.527e-03  1.000e-04  1.000e+04 ( 1.000e-12)
363        Index:  1.747e+00  2.503e+03  0.000e+00  1.000e+01 (-1.000e+00)
364        Scale:  8.183e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
704    Prefactor:  6.644e-01  1.174e-01  0.000e+00  1.000e+01 ( 1.000e+00)
705        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
706        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
703   Normalization:  1.000e-02  1.034e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 251.892 49.834

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/974076/cmap_HighResolution_544924801_545184001_4FGL_J1647.5+4950_daily_bin1179.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.81e-02', job_status='DONE', photon_flux_upper_limit='8.82e-07', time_completed='2021-09-15 15:08:49.653909', job_id='974076', GAL2='0.66', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1631743729.65', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.66', dlogl='7.92e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='1179' AND source_name='4FGL J1647.5+4950' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 15 15:08:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0086>
Subject: Job 974076: <4FGL_J1647.5+4950_daily_bin1179> in cluster <slac> Done

Job <4FGL_J1647.5+4950_daily_bin1179> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Wed Sep 15 15:00:29 2021
Job was executed on host(s) <bullet0086>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 15 15:01:28 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 15 15:01:28 2021
Terminated at Wed Sep 15 15:08:50 2021
Results reported at Wed Sep 15 15:08:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1647.5+4950_daily_bin1179 251.892 49.8336 544924801 545184001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1647.5+4950 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   290.04 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             176.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   441 sec.
    Turnaround time :                            501 sec.

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

