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


Performing analysis on: 4FGL_J1647.5+4950_daily_bin1229
RA = 251.892, Dec = 49.8336
tmin = 557884801, tmax = 558144001
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='974147', job_status='RUN', time_executed='2021-09-15 15:04:09.279109', time_epoch_executed='1631743449.28' WHERE source_name='4FGL J1647.5+4950' and cadence='daily' and bin_id='1229'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/974147

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/974147/ft1_4FGL_J1647.5+4950_daily_bin1229.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/974147/ft2_4FGL_J1647.5+4950_daily_bin1229.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/974147/ft1_4FGL_J1647.5+4950_daily_bin1229.fits outfile=/scratch/kocevski/974147/ft1_filteredMKT_4FGL_J1647.5+4950_daily_bin1229.fits ra=251.892 dec=49.8336 rad=12.0 tmin=557884801.0 tmax=558144001.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.08
user 3.85
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/974147/ft2_4FGL_J1647.5+4950_daily_bin1229.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/974147/ft1_filteredMKT_4FGL_J1647.5+4950_daily_bin1229.fits evtable="EVENTS" outfile="/scratch/kocevski/974147/ft1_filtered_4FGL_J1647.5+4950_daily_bin1229.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.53
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/974147/ft1_filtered_4FGL_J1647.5+4950_daily_bin1229.fits" evtable="EVENTS" scfile=/scratch/kocevski/974147/ft2_4FGL_J1647.5+4950_daily_bin1229.fits sctable="SC_DATA" outfile=/scratch/kocevski/974147/ltcube_557884801_558144001_4FGL_J1647.5+4950_daily_bin1229.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/974147/ft2_4FGL_J1647.5+4950_daily_bin1229.fits
.....................!
real 13.32
user 12.97
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/974147/ft1_filtered_4FGL_J1647.5+4950_daily_bin1229.fits evtable="EVENTS" scfile=/scratch/kocevski/974147/ft2_4FGL_J1647.5+4950_daily_bin1229.fits sctable="SC_DATA" expcube=/scratch/kocevski/974147/ltcube_557884801_558144001_4FGL_J1647.5+4950_daily_bin1229.fits outfile=/scratch/kocevski/974147/expmap_557884801_558144001_4FGL_J1647.5+4950_daily_bin1229.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/974147/ltcube_557884801_558144001_4FGL_J1647.5+4950_daily_bin1229.fits
.....................!
real 190.72
user 186.13
sys 4.17

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/974147/ft1_filtered_4FGL_J1647.5+4950_daily_bin1229.fits scfile=/scratch/kocevski/974147/ft2_4FGL_J1647.5+4950_daily_bin1229.fits outfile=/scratch/kocevski/974147/cmap_557884801_558144001_4FGL_J1647.5+4950_daily_bin1229.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.54
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/974147/ft1_filtered_4FGL_J1647.5+4950_daily_bin1229.fits scfile=/scratch/kocevski/974147/ft2_4FGL_J1647.5+4950_daily_bin1229.fits outfile=/scratch/kocevski/974147/cmap_HighResolution_557884801_558144001_4FGL_J1647.5+4950_daily_bin1229.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.37
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .31940E-02   1.0000         .10000E-03   10000.    
     2 'norm      '    449.91       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .54522E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .14895E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11686E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11531E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .67539E-02   1.0000         .10000E-03   10000.    
    10 'norm      '    5.4497       1.0000         .10000E-03   10000.    
    11 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .19255E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .13469E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.7652       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11555E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    717.23       1.0000         .10000E-03   10000.    
    20 'norm      '    .50946       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .15830E-02   1.0000         .10000E-03   10000.    
    22 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10282E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    2.1226       1.0000         .10000E-03   10000.    
    25 'norm      '    23.179       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10083E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .11625E-02   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    90.134       1.0000         .10000E-03   10000.    
    32 'Prefactor '    .20420E-02   1.0000         .10000E-03   10000.    
    33 'Prefactor '    .69904E-02   1.0000         .10000E-03   10000.    
    34 'Prefactor '    .10776E-03   1.0000         .10000E-03   10000.    
    35 'Prefactor '    .18637E-03   1.0000         .10000E-03   10000.    
    36 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    37 'Prefactor '    1.2268       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.

 FCN=   717.3701     FROM MIGRAD    STATUS=CONVERGED   1071 CALLS     6367 TOTAL
                     EDM=   .96E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    794.16        .28715E-06** at limit **
   2  norm          449.75        752.56       -.22515E-05    .16683E-05
   3  Prefactor     .10007E-03    6677.7       -.62947E-05** at limit **
   4  Prefactor     .10000E-03    1763.9       -.55594E-06** at limit **
   5  Prefactor     .10000E-03    44.250        .12774E-07** at limit **
   6  Prefactor     .10000E-03    116.64        .27620E-06** at limit **
   7  Prefactor     .10000E-03    362.48        .48516E-10** at limit **
   8  Prefactor     .10000E-03    6.3885        .15883E-07** at limit **
   9  norm          .10000E-03    1293.9        .13690E-06** at limit **
  10  norm          5.4494        1.3431       -.35254E-08    .24606E-03
  11  norm          .10000E-03    32.614        .50169E-08** at limit **
  12  Prefactor     .10000E-03    13.785       -.28417E-07** at limit **
  13  Prefactor     .10000E-03    362.68       -.40386E-06** at limit **
  14  norm          .10000E-03    104.50       -.21413E-06** at limit **
  15  Prefactor     .10000E-03    5.7821        .40354E-07** at limit **
  16  Prefactor     6.7650        7.8577       -.23778E-06    .60153E-04
  17  Prefactor     .10000E-03    27.161       -.15655E-06** at limit **
  18  Prefactor     .10000E-03    4.6250        .38593E-08** at limit **
  19  Prefactor     717.02        793.93       -.30664E-06   -.17585E-05
  20  norm          .50619        7.7816        .48876E-06   -.14806E-04
  21  Prefactor     .10000E-03    477.85        .45786E-07** at limit **
  22  norm          .10000E-03    3.8362       -.10575E-06** at limit **
  23  Prefactor     .10000E-03    52.656        .40252E-07** at limit **
  24  norm          2.1218        2.8281       -.67953E-07    .98021E-04
  25  norm          23.165        39.962       -.64885E-06    .42876E-04
  26  Prefactor     .10000E-03    226.18       -.34512E-06** at limit **
  27  norm          .10000E-03    5.1069       -.12877E-06** at limit **
  28  Prefactor     .10000E-03    49.157       -.17176E-05** at limit **
  29  norm          .10004E-03    654.40       -.49493E-04** at limit **
  30  Prefactor     .10000E-03    187.47       -.27322E-06** at limit **
  31  Prefactor     89.921        109.99        .74962E-05    .73956E-04
  32  Prefactor     .10000E-03    995.59        .49979E-06** at limit **
  33  Prefactor     .10000E-03    2072.2       -.74421E-06** at limit **
  34  Prefactor     .10000E-03    317.72       -.73970E-06** at limit **
  35  Prefactor     .10000E-03    890.71        .10628E-05** at limit **
  36  Normalizat    .10000E-01    .33172       -.50101E-05** at limit **
  37  Prefactor     1.2269        .45816        .24113E-05    .40458E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  norm       = 449.752
  Prefactor  = 0.000100066
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100001
  norm       = 5.4494
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.76496
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 717.022
  norm       = 0.506192
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.12175
  norm       = 23.1649
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100041
  Prefactor  = 0.0001
  Prefactor  = 89.9205
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Normalizat = 0.01
  Prefactor  = 1.22687
 **********
 **   18 **HESSE 
 **********

 FCN=   717.3701     FROM HESSE     STATUS=OK           825 CALLS     7192 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    794.01        .19759E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          449.75        752.88        .96486E-04   -1.1434    
   3  Prefactor     .10007E-03    6671.6        .18584E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1763.8        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    44.249        .17418E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    116.59        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    362.49        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6.3908        .66138E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    1293.9        .18757E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          5.4494        1.3647        .12811E-04   -1.5241    
  11  norm          .10000E-03    32.614        .14951E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    13.785        .97169E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    362.72        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    104.48        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.7996        .12445E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     6.7650        7.8172        .63705E-04   -1.5188    
  17  Prefactor     .10000E-03    27.162        .13642E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.6265        .56270E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     717.02        793.82        .77511E-04   -1.0286    
  20  norm          .50619        7.5957        .13311E-03   -1.5566    
  21  Prefactor     .10000E-03    477.85        .20428E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    3.8380        .51251E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    52.838        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          2.1218        2.8268        .49016E-04   -1.5417    
  25  norm          23.165        40.605        .83200E-04   -1.4745    
  26  Prefactor     .10000E-03    226.13        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    5.1239        .59118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    49.216        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10004E-03    683.17        .41321E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    187.49        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     89.921        115.62        .21162E-03   -1.3809    
  32  Prefactor     .10000E-03    995.44        .20210E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     .10000E-03    2072.0        .18702E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Prefactor     .10000E-03    317.83        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  35  Prefactor     .10000E-03    890.10        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  36  Normalizat    .10000E-01    .34670        .92475E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  37  Prefactor     1.2269        .45901        .29074E-03   -.85508    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.98607e-10
Minuit parameter uncertainties:
  1  0.00221578
  2  770.506
  3  0.0315973
  4  0.00234402
  5  1.3832e-05
  6  0.000308176
  7  0.000252212
  8  1.02963e-06
  9  0.00164714
  10  1.3647
  11  1.25763e-06
  12  6.4965e-07
  13  0.000403701
  14  0.000221469
  15  7.4006e-06
  16  7.81842
  17  8.43477e-06
  18  9.36075e-07
  19  806.91
  20  3.92188
  21  0.000204574
  22  4.2462e-07
  23  4.65068e-06
  24  2.82696
  25  40.6531
  26  0.00047146
  27  2.14404e-06
  28  1.38744e-05
  29  0.0106484
  30  0.0001046
  31  115.911
  32  0.00171199
  33  0.00340065
  34  0.000368281
  35  0.0032563
  36  2.67373e-06
  37  0.460526
Done.

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

Extracting fit parameters...

4FGL J1647.5+4950
   Spectrum: PowerLaw
362    Prefactor:  1.000e-04  8.435e-06  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:  1.227e+00  4.605e-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  2.674e-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: 1.73e-06 ph cm-2 s-1
Energy Flux Upper Limit: 1.34e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/974147/likelihoodResults_557884801_558144001_4FGL_J1647.5+4950_daily_bin1229.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) = 717.370314679
delta logL = -0.000171588827698

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 717.370143119
delta logL = -2.92928916679e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10064E-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 '    1.2268       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=   717.3701     FROM MIGRAD    STATUS=CONVERGED    106 CALLS      265 TOTAL
                     EDM=   .38E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    183.24        .13776E-01** at limit **
   2  Index         1.7975        9.0484        .50000        .31062E-07
   3  Normalizat    .10000E-01    .38995E-02    .92476E-02** at limit **
   4  Prefactor     1.2269        .38422E-01    .29074E-03   -.39152E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.79753
  Normalizat = 0.01
  Prefactor  = 1.22687
 **********
 **   18 **HESSE 
 **********

 FCN=   717.3701     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      294 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1464.1        .15139E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7975        7.5412        .50000       -.69514    
   3  Normalizat    .10000E-01    .35483E-01    .18495E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.2269        .11593        .11629E-04   -.85509    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.19307e-10
Minuit parameter uncertainties:
  1  0.000265281
  2  2697.99
  3  2.35386e-08
  4  0.115952
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/974147': 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) = 717.370142744
delta logL = 3.45602757079e-07

Extracting fit parameters...

4FGL J1647.5+4950
   Spectrum: PowerLaw
362    Prefactor:  1.000e-04  2.653e-04  1.000e-04  1.000e+04 ( 1.000e-12)
363        Index:  1.798e+00  2.698e+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:  1.227e+00  1.160e-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  2.354e-08  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/974147/cmap_HighResolution_557884801_558144001_4FGL_J1647.5+4950_daily_bin1229.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.34e-01', job_status='DONE', photon_flux_upper_limit='1.73e-06', time_completed='2021-09-15 15:11:53.539854', job_id='974147', GAL2='1.23', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1631743913.54', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.23', dlogl='3.46e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='1229' AND source_name='4FGL J1647.5+4950' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 15 15:11:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0270>
Subject: Job 974147: <4FGL_J1647.5+4950_daily_bin1229> in cluster <slac> Done

Job <4FGL_J1647.5+4950_daily_bin1229> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Wed Sep 15 15:00:34 2021
Job was executed on host(s) <bullet0270>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 15 15:02:07 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:02:07 2021
Terminated at Wed Sep 15 15:11:54 2021
Results reported at Wed Sep 15 15:11:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1647.5+4950_daily_bin1229 251.892 49.8336 557884801 558144001 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 :                                   450.45 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             276.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   586 sec.
    Turnaround time :                            680 sec.

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

