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


Performing analysis on: 4FGL_J1647.5+4950_daily_bin676
RA = 251.892, Dec = 49.8336
tmin = 414547201, tmax = 414806401
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='969654', job_status='RUN', time_executed='2021-09-15 14:47:43.550649', time_epoch_executed='1631742463.55' WHERE source_name='4FGL J1647.5+4950' and cadence='daily' and bin_id='676'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/969654

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/969654/ft1_4FGL_J1647.5+4950_daily_bin676.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/969654/ft2_4FGL_J1647.5+4950_daily_bin676.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/969654/ft1_4FGL_J1647.5+4950_daily_bin676.fits outfile=/scratch/kocevski/969654/ft1_filteredMKT_4FGL_J1647.5+4950_daily_bin676.fits ra=251.892 dec=49.8336 rad=12.0 tmin=414547201.0 tmax=414806401.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.93
user 5.65
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/969654/ft2_4FGL_J1647.5+4950_daily_bin676.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/969654/ft1_filteredMKT_4FGL_J1647.5+4950_daily_bin676.fits evtable="EVENTS" outfile="/scratch/kocevski/969654/ft1_filtered_4FGL_J1647.5+4950_daily_bin676.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.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/969654/ft1_filtered_4FGL_J1647.5+4950_daily_bin676.fits" evtable="EVENTS" scfile=/scratch/kocevski/969654/ft2_4FGL_J1647.5+4950_daily_bin676.fits sctable="SC_DATA" outfile=/scratch/kocevski/969654/ltcube_414547201_414806401_4FGL_J1647.5+4950_daily_bin676.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/969654/ft2_4FGL_J1647.5+4950_daily_bin676.fits
.....................!
real 14.38
user 14.00
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/969654/ft1_filtered_4FGL_J1647.5+4950_daily_bin676.fits evtable="EVENTS" scfile=/scratch/kocevski/969654/ft2_4FGL_J1647.5+4950_daily_bin676.fits sctable="SC_DATA" expcube=/scratch/kocevski/969654/ltcube_414547201_414806401_4FGL_J1647.5+4950_daily_bin676.fits outfile=/scratch/kocevski/969654/expmap_414547201_414806401_4FGL_J1647.5+4950_daily_bin676.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/969654/ltcube_414547201_414806401_4FGL_J1647.5+4950_daily_bin676.fits
.....................!
real 194.00
user 188.43
sys 4.95

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/969654/ft1_filtered_4FGL_J1647.5+4950_daily_bin676.fits scfile=/scratch/kocevski/969654/ft2_4FGL_J1647.5+4950_daily_bin676.fits outfile=/scratch/kocevski/969654/cmap_414547201_414806401_4FGL_J1647.5+4950_daily_bin676.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.55
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/969654/ft1_filtered_4FGL_J1647.5+4950_daily_bin676.fits scfile=/scratch/kocevski/969654/ft2_4FGL_J1647.5+4950_daily_bin676.fits outfile=/scratch/kocevski/969654/cmap_HighResolution_414547201_414806401_4FGL_J1647.5+4950_daily_bin676.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.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/969654/ft1_filtered_4FGL_J1647.5+4950_daily_bin676.fits evtable="EVENTS" scfile=/scratch/kocevski/969654/ft2_4FGL_J1647.5+4950_daily_bin676.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/969654/Model_4FGL_J1647.5+4950_daily_bin676.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/969654/ft1_filtered_4FGL_J1647.5+4950_daily_bin676.fits......................!
real 35.04
user 33.64
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/969654/ft1_filtered_4FGL_J1647.5+4950_daily_bin676.fits', '/scratch/kocevski/969654/ft2_4FGL_J1647.5+4950_daily_bin676.fits', expMap='/scratch/kocevski/969654/expmap_414547201_414806401_4FGL_J1647.5+4950_daily_bin676.fits', expCube='/scratch/kocevski/969654/ltcube_414547201_414806401_4FGL_J1647.5+4950_daily_bin676.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/969654/Model_4FGL_J1647.5+4950_daily_bin676.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/969654/ft1_filtered_4FGL_J1647.5+4950_daily_bin676.fits
Spacecraft file(s): /scratch/kocevski/969654/ft2_4FGL_J1647.5+4950_daily_bin676.fits
Exposure map: /scratch/kocevski/969654/expmap_414547201_414806401_4FGL_J1647.5+4950_daily_bin676.fits
Exposure cube: /scratch/kocevski/969654/ltcube_414547201_414806401_4FGL_J1647.5+4950_daily_bin676.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/969654/Model_4FGL_J1647.5+4950_daily_bin676.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) = 3234.0425687

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .33271E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    22.919       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10906E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.3316       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    52.437       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.5322       1.0000         .10000E-03   10000.    
     9 'norm      '    14.722       1.0000         .10000E-03   10000.    
    10 'norm      '    .82548       1.0000         .10000E-03   10000.    
    11 'norm      '    7.5791       1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.0487       1.0000         .10000E-03   10000.    
    13 'Prefactor '    15.232       1.0000         .10000E-03   10000.    
    14 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.0597       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .44959E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    3.6574       1.0000         .10000E-03   10000.    
    21 'Prefactor '    35.335       1.0000         .10000E-03   10000.    
    22 'norm      '    3.1630       1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.1944       1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    28.411       1.0000         .10000E-03   10000.    
    26 'Prefactor '    2.1197       1.0000         .10000E-03   10000.    
    27 'norm      '    .44487       1.0000         .10000E-03   10000.    
    28 'Prefactor '    3.9586       1.0000         .10000E-03   10000.    
    29 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    8.2175       1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10131E-03   1.0000         .10000E-03   10000.    
    33 'Prefactor '    .10200E-03   1.0000         .10000E-03   10000.    
    34 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    35 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    36 'Normalizat'    .49539       1.0000         .10000E-01   10.000    
    37 'Prefactor '    .97163       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=   3234.015     FROM MIGRAD    STATUS=CONVERGED    116 CALLS     4641 TOTAL
                     EDM=   .91E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 11.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    .69149       -.55790E-05** at limit **
   2  norm          22.897        3.3137       -.43894E-05    .16926E-02
   3  Prefactor     .10010E-03    30.623        .57027E-04** at limit **
   4  Prefactor     .11074E-03    83.354       -.96667E-04** at limit **
   5  Prefactor     4.3319        1.0827       -.60757E-06   -.46072E-04
   6  Prefactor     .10018E-03    18.834       -.43651E-04** at limit **
   7  Prefactor     52.411        2.7131       -.18457E-05    .10226E-02
   8  Prefactor     2.5295        4.6787       -.34567E-05   -.94655E-03
   9  norm          14.707        1.8719       -.22995E-05    .39127E-03
  10  norm          .82535        .36570        .85466E-07   -.25734E-02
  11  norm          7.5791        1.0309       -.24236E-06   -.50936E-04
  12  Prefactor     7.0379        1.6896        .36426E-05    .22892E-02
  13  Prefactor     15.232        1.0298        .27097E-06   -.16404E-03
  14  norm          .10118E-03    27.931        .44263E-04** at limit **
  15  Prefactor     .10000E-03    2.3538       -.12199E-06** at limit **
  16  Prefactor     4.0566        2.1810        .10999E-06    .99710E-03
  17  Prefactor     .10000E-03    10.368        .44929E-06** at limit **
  18  Prefactor     .10000E-03    1.0979        .40796E-06** at limit **
  19  Prefactor     .10000E-03    15.027        .36464E-05** at limit **
  20  norm          3.6572        1.9344        .84579E-09    .28793E-03
  21  Prefactor     35.333        1.1644       -.76380E-06    .57171E-03
  22  norm          3.1593        1.8265       -.20660E-06    .64952E-03
  23  Prefactor     2.1923        1.0718       -.10714E-05   -.60011E-04
  24  norm          .10000E-03    .34422        .34099E-07** at limit **
  25  norm          28.410        1.0416       -.22564E-06    .19553E-04
  26  Prefactor     2.1119        1.1065       -.16897E-05    .14456E-06
  27  norm          .44451        2.5290        .13816E-05    .47738E-03
  28  Prefactor     3.9600        3.1901        .32478E-06    .16692E-02
  29  norm          .10000E-03    6.0774       -.19097E-06** at limit **
  30  Prefactor     .10000E-03    20.117       -.42219E-04** at limit **
  31  Prefactor     8.2168        1.0308       -.18965E-06    .29440E-03
  32  Prefactor     .10288E-03    35.831       -.15924E-04** at limit **
  33  Prefactor     .10411E-03    29.607        .73578E-05** at limit **
  34  Prefactor     .10004E-03    29.646        .42698E-04** at limit **
  35  Prefactor     .10000E-03    16.922       -.77792E-05** at limit **
  36  Normalizat    .49538        .33498        .50574E-05    .27927E-04
  37  Prefactor     .97173        .27443       -.17102E-05    .99511E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100011
  norm       = 22.8971
  Prefactor  = 0.000100097
  Prefactor  = 0.000110743
  Prefactor  = 4.33192
  Prefactor  = 0.000100183
  Prefactor  = 52.4107
  Prefactor  = 2.52954
  norm       = 14.7068
  norm       = 0.825346
  norm       = 7.5791
  Prefactor  = 7.03794
  Prefactor  = 15.232
  norm       = 0.000101184
  Prefactor  = 0.0001
  Prefactor  = 4.05658
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.65722
  Prefactor  = 35.3327
  norm       = 3.15925
  Prefactor  = 2.19227
  norm       = 0.0001
  norm       = 28.4098
  Prefactor  = 2.11194
  norm       = 0.444514
  Prefactor  = 3.95998
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 8.21683
  Prefactor  = 0.000102881
  Prefactor  = 0.000104106
  Prefactor  = 0.000100044
  Prefactor  = 0.0001
  Normalizat = 0.49538
  Prefactor  = 0.971727
 **********
 **   18 **HESSE 
 **********

 FCN=   3234.015     FROM HESSE     STATUS=OK           941 CALLS     5582 TOTAL
                     EDM=   .56E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    49.897        .10673E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          22.897        33.652        .20917E-02   -1.4751    
   3  Prefactor     .10010E-03    69.366        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .11074E-03    159.05        .90712E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.3319        10.148        .48387E-02   -1.5292    
   6  Prefactor     .10018E-03    38.466        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     52.411        31.811        .13847E-02   -1.4259    
   8  Prefactor     2.5295        5.7907        .64168E-02   -1.5390    
   9  norm          14.707        37.684        .26097E-02   -1.4941    
  10  norm          .82535        .36936        .42254E-02   -1.5526    
  11  norm          7.5791        19.678        .36417E-02   -1.5157    
  12  Prefactor     7.0379        8.6819        .37775E-02   -1.5177    
  13  Prefactor     15.232        14.720        .25656E-02   -1.4927    
  14  norm          .10118E-03    61.557        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1.9220        .23048E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.0566        2.4128        .50029E-02   -1.5305    
  17  Prefactor     .10000E-03    5.7301        .44784E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    1.0964        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    15.118        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          3.6572        1.9370        .52805E-02   -1.5325    
  21  Prefactor     35.333        36.497        .16854E-02   -1.4518    
  22  norm          3.1593        1.9600        .56973E-02   -1.5352    
  23  Prefactor     2.1923        9.8086        .69449E-02   -1.5412    
  24  norm          .10000E-03    .33925        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          28.410        16.767        .18791E-02   -1.4641    
  26  Prefactor     2.1119        28.731        .70820E-02   -1.5417    
  27  norm          .44451        2.6641        .11044E-01   -1.5575    
  28  Prefactor     3.9600        5.5548        .50684E-02   -1.5310    
  29  norm          .10000E-03    6.0611        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    41.268        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     8.2168        10.936        .34964E-02   -1.5135    
  32  Prefactor     .10288E-03    114.84        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     .10411E-03    104.72        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Prefactor     .10004E-03    30.302        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  35  Prefactor     .10000E-03    16.995        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  36  Normalizat    .49538        .34112        .87215E-01   -1.1263    
  37  Prefactor     .97173        .25059        .45911E-01   -.93678    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.55712e-07
Minuit parameter uncertainties:
  1  0.0014923
  2  33.6798
  3  0.0051909
  4  0.0828931
  5  10.1522
  6  0.00530876
  7  31.8216
  8  5.79197
  9  37.7453
  10  0.369366
  11  19.695
  12  8.68346
  13  14.7236
  14  0.0170948
  15  5.85849e-05
  16  2.41286
  17  6.83413e-05
  18  1.19987e-05
  19  0.000165045
  20  1.93699
  21  36.5202
  22  1.96001
  23  9.27662
  24  5.44726e-06
  25  16.7701
  26  15.588
  27  2.17635
  28  5.55554
  29  3.44288e-06
  30  0.000426501
  31  10.9386
  32  0.0364491
  33  0.0415457
  34  0.00231998
  35  0.000173016
  36  0.342572
  37  0.250893
Done.

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

Extracting fit parameters...

4FGL J1647.5+4950
   Spectrum: PowerLaw
362    Prefactor:  1.000e-04  6.834e-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:  9.717e-01  2.509e-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:  4.954e-01  3.426e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/969654/likelihoodResults_414547201_414806401_4FGL_J1647.5+4950_daily_bin676.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) = 3234.01585301
delta logL = -0.000460579356059

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3234.01539235
delta logL = 8.3117356553e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4064       1.0000          .0000       10.000    
     3 'Normalizat'    .49539       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97172       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.

 FCN=   3234.015     FROM MIGRAD    STATUS=CONVERGED     62 CALLS      233 TOTAL
                     EDM=   .98E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    20.922        .43426E-01** at limit **
   2  Index         2.4272        5.0734        .50000       -.17539E-04
   3  Normalizat    .49538        .13558E-01    .87215E-01    .19784E-04
   4  Prefactor     .97173        .11241E-01    .45913E-01   -.26464E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.42718
  Normalizat = 0.495381
  Prefactor  = 0.971725
 **********
 **   18 **HESSE 
 **********

 FCN=   3234.015     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      268 TOTAL
                     EDM=   .82E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1937.6        .25113E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4272        6.0480        .50000       -.54050    
   3  Normalizat    .49538        .14443        .38641E-03   -1.1263    
   4  Prefactor     .97173        .11976        .23198E-03   -.93678    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.24602e-08
Minuit parameter uncertainties:
  1  0.000910454
  2  59.8618
  3  0.144539
  4  0.119794
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/969654': 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) = 3234.01539226
delta logL = 1.6887588572e-07

Extracting fit parameters...

4FGL J1647.5+4950
   Spectrum: PowerLaw
362    Prefactor:  1.000e-04  9.105e-04  1.000e-04  1.000e+04 ( 1.000e-12)
363        Index:  2.427e+00  5.986e+01  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:  9.717e-01  1.198e-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:  4.954e-01  1.445e-01  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/969654/cmap_HighResolution_414547201_414806401_4FGL_J1647.5+4950_daily_bin676.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.27e-02', job_status='DONE', photon_flux_upper_limit='1.65e-07', time_completed='2021-09-15 15:00:34.472045', job_id='969654', GAL2='0.97', fit_tolerance='1e-08', EG2='0.50', EG='0.50', time_epoch_completed='1631743234.47', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='1.69e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='676' AND source_name='4FGL J1647.5+4950' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 15 15:00:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0142>
Subject: Job 969654: <4FGL_J1647.5+4950_daily_bin676> in cluster <slac> Done

Job <4FGL_J1647.5+4950_daily_bin676> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep 15 14:45:21 2021
Job was executed on host(s) <bullet0142>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 15 14:47:31 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 15 14:47:31 2021
Terminated at Wed Sep 15 15:00:35 2021
Results reported at Wed Sep 15 15:00:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1647.5+4950_daily_bin676 251.892 49.8336 414547201 414806401 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 :                                   767.19 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             349.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   783 sec.
    Turnaround time :                            914 sec.

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

