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


Performing analysis on: 4FGL_J1647.5+4950_daily_bin1205
RA = 251.892, Dec = 49.8336
tmin = 551664001, tmax = 551923201
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='974113', job_status='RUN', time_executed='2021-09-15 15:05:52.364591', time_epoch_executed='1631743552.36' WHERE source_name='4FGL J1647.5+4950' and cadence='daily' and bin_id='1205'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/974113

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/974113/ft1_4FGL_J1647.5+4950_daily_bin1205.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/974113/ft2_4FGL_J1647.5+4950_daily_bin1205.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/974113/ft1_4FGL_J1647.5+4950_daily_bin1205.fits outfile=/scratch/kocevski/974113/ft1_filteredMKT_4FGL_J1647.5+4950_daily_bin1205.fits ra=251.892 dec=49.8336 rad=12.0 tmin=551664001.0 tmax=551923201.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.83
user 3.59
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/974113/ft2_4FGL_J1647.5+4950_daily_bin1205.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/974113/ft1_filteredMKT_4FGL_J1647.5+4950_daily_bin1205.fits evtable="EVENTS" outfile="/scratch/kocevski/974113/ft1_filtered_4FGL_J1647.5+4950_daily_bin1205.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.52
user 0.34
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/974113/ft1_filtered_4FGL_J1647.5+4950_daily_bin1205.fits" evtable="EVENTS" scfile=/scratch/kocevski/974113/ft2_4FGL_J1647.5+4950_daily_bin1205.fits sctable="SC_DATA" outfile=/scratch/kocevski/974113/ltcube_551664001_551923201_4FGL_J1647.5+4950_daily_bin1205.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/974113/ft2_4FGL_J1647.5+4950_daily_bin1205.fits
.....................!
real 15.36
user 14.93
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/974113/ft1_filtered_4FGL_J1647.5+4950_daily_bin1205.fits evtable="EVENTS" scfile=/scratch/kocevski/974113/ft2_4FGL_J1647.5+4950_daily_bin1205.fits sctable="SC_DATA" expcube=/scratch/kocevski/974113/ltcube_551664001_551923201_4FGL_J1647.5+4950_daily_bin1205.fits outfile=/scratch/kocevski/974113/expmap_551664001_551923201_4FGL_J1647.5+4950_daily_bin1205.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/974113/ltcube_551664001_551923201_4FGL_J1647.5+4950_daily_bin1205.fits
.....................!
real 193.22
user 187.09
sys 4.45

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/974113/ft1_filtered_4FGL_J1647.5+4950_daily_bin1205.fits scfile=/scratch/kocevski/974113/ft2_4FGL_J1647.5+4950_daily_bin1205.fits outfile=/scratch/kocevski/974113/cmap_551664001_551923201_4FGL_J1647.5+4950_daily_bin1205.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.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/974113/ft1_filtered_4FGL_J1647.5+4950_daily_bin1205.fits scfile=/scratch/kocevski/974113/ft2_4FGL_J1647.5+4950_daily_bin1205.fits outfile=/scratch/kocevski/974113/cmap_HighResolution_551664001_551923201_4FGL_J1647.5+4950_daily_bin1205.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.56
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8014.8       1.0000         .10000E-03   10000.    
     2 'norm      '    6136.5       1.0000         .10000E-03   10000.    
     3 'Prefactor '    9998.7       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3320.1       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .27884E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .34980E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .31257       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .94779E-02   1.0000         .10000E-03   10000.    
     9 'norm      '    .10124E-02   1.0000         .10000E-03   10000.    
    10 'norm      '    4.3047       1.0000         .10000E-03   10000.    
    11 'norm      '    .16927E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .26041E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.7788       1.0000         .10000E-03   10000.    
    14 'norm      '    .14612E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .26546E-01   1.0000         .10000E-03   10000.    
    16 'Prefactor '    18.116       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .27880E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    17.660       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .20836E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .12053E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .30414       1.0000         .10000E-03   10000.    
    22 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    43.079       1.0000         .10000E-03   10000.    
    24 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .18979E-01   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .65345E-02   1.0000         .10000E-03   10000.    
    27 'norm      '    34.358       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .77811E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .21016E-02   1.0000         .10000E-03   10000.    
    30 'Prefactor '    4.6599       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .14271E-01   1.0000         .10000E-03   10000.    
    32 'Prefactor '    1.7171       1.0000         .10000E-03   10000.    
    33 'Prefactor '    5.4776       1.0000         .10000E-03   10000.    
    34 'Prefactor '    2.5112       1.0000         .10000E-03   10000.    
    35 'Prefactor '    .22684       1.0000         .10000E-03   10000.    
    36 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    37 'Prefactor '    .13380E-07   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=   133.3366     FROM MIGRAD    STATUS=CONVERGED    346 CALLS     4928 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8014.8        1.0015        .26749E-09   -.65272E-04
   2  norm          6136.5        1.0019        .24592E-09   -.89417E-04
   3  Prefactor     9998.7        1.1031        .16440E-08   -.27038E-06
   4  Prefactor     3318.8        19.592       -.80141E-07    .26849E-01
   5  Prefactor     .10000E-03    84.815       -.10851E-05** at limit **
   6  Prefactor     .10012E-03    182.94        .54631E-06** at limit **
   7  Prefactor     .10000E-03    175.34       -.35729E-06** at limit **
   8  Prefactor     .10000E-03    19.646       -.21283E-07** at limit **
   9  norm          .16892E-03    385.03       -.28693E-05** at limit **
  10  norm          4.3287        2.8888        .13544E-06    .16343E-04
  11  norm          .10010E-03    159.41       -.12730E-05** at limit **
  12  Prefactor     .10000E-03    32.354        .51515E-07** at limit **
  13  Prefactor     2.7890        1.0317        .18529E-07   -.76343E-05
  14  norm          .34071E-03    164.55       -.65464E-05** at limit **
  15  Prefactor     .10000E-03    74.362       -.17219E-05** at limit **
  16  Prefactor     17.857        17.428        .31756E-06    .23670E-03
  17  Prefactor     .10000E-03    36.661       -.70075E-07** at limit **
  18  Prefactor     17.583        27.580       -.73477E-06   -.10839E-02
  19  Prefactor     .10000E-03    244.05        .74705E-06** at limit **
  20  norm          .10000E-03    29.853       -.11807E-06** at limit **
  21  Prefactor     .11718E-03    1057.3       -.22082E-04** at limit **
  22  norm          .10000E-03    6.7254        .16458E-07** at limit **
  23  Prefactor     45.964        79.942       -.25489E-05    .17503E-03
  24  norm          .10000E-03    4.4356        .13010E-06** at limit **
  25  norm          .10000E-03    51.321        .10183E-06** at limit **
  26  Prefactor     .11468E-03    422.72        .11007E-05** at limit **
  27  norm          33.060        33.448        .49362E-05    .71476E-04
  28  Prefactor     .10000E-03    43.735       -.21164E-06** at limit **
  29  norm          .10000E-03    70.570       -.13653E-05** at limit **
  30  Prefactor     .14729E-01    904.06       -.72331E-05    .14542E-02
  31  Prefactor     .10000E-03    76.882        .37227E-06** at limit **
  32  Prefactor     .10011E-03    1306.6       -.27296E-05** at limit **
  33  Prefactor     .41311E-02    6528.2       -.74184E-05   -.73509E-03
  34  Prefactor     42.027        6206.7        .14482E-04    .30395E-03
  35  Prefactor     .11317E-03    944.70        .13423E-04** at limit **
  36  Normalizat    .10000E-01    .53402       -.50244E-06** at limit **
  37  Prefactor     .18319E-13    .50545       -.48874E-05** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8014.82
  norm       = 6136.54
  Prefactor  = 9998.69
  Prefactor  = 3318.82
  Prefactor  = 0.0001
  Prefactor  = 0.00010012
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.00016892
  norm       = 4.32869
  norm       = 0.0001001
  Prefactor  = 0.0001
  Prefactor  = 2.78896
  norm       = 0.000340708
  Prefactor  = 0.0001
  Prefactor  = 17.8573
  Prefactor  = 0.0001
  Prefactor  = 17.5832
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000117181
  norm       = 0.0001
  Prefactor  = 45.9638
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000114683
  norm       = 33.0596
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0147293
  Prefactor  = 0.0001
  Prefactor  = 0.000100106
  Prefactor  = 0.00413111
  Prefactor  = 42.0273
  Prefactor  = 0.000113173
  Normalizat = 0.01
  Prefactor  = 1.83187e-14
 **********
 **   18 **HESSE 
 **********

 FCN=   133.3366     FROM HESSE     STATUS=OK           907 CALLS     5835 TOTAL
                     EDM=   .24E-03    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8014.8        3356.2        .25070E-02    .64721    
   2  norm          6136.5        4096.9        .20538E-02    .22931    
   3  Prefactor     9998.7        2297.4        .96563E-02    1.5479    
   4  Prefactor     3318.8        2564.6        .21234E-03   -.34292    
   5  Prefactor     .10000E-03    81.647        .91616E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10012E-03    170.42        .98279E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    163.81        .10480E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    19.505        .90867E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .16892E-03    398.88        .10377E-01   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          4.3287        2.8488        .30859E-02   -1.5292    
  11  norm          .10010E-03    149.75        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    31.925        .99884E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.7890        2297.2        .61029E-02   -1.5374    
  14  norm          .34071E-03    409.79        .10246E-01   -1.5711    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    71.602        .91550E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     17.857        17.306        .23525E-02   -1.4863    
  17  Prefactor     .10000E-03    36.113        .99532E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     17.583        27.681        .23827E-02   -1.4869    
  19  Prefactor     .10000E-03    221.74        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    29.349        .10317E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .11718E-03    767.96        .10443E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    6.6951        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     45.964        78.481        .15270E-02   -1.4351    
  24  norm          .10000E-03    4.3982        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    50.225        .91176E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .11468E-03    375.66        .94045E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          33.060        29.128        .17092E-02   -1.4557    
  28  Prefactor     .10000E-03    42.820        .10459E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    68.098        .10092E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .14729E-01    1481.7        .46608E-02   -1.5684    
  31  Prefactor     .10000E-03    73.603        .90942E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     .10011E-03    856.78        .80165E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     .41311E-02    1501.4        .42920E-02   -1.5721    
  34  Prefactor     42.027        1352.2        .64460E-02   -1.4410    
  35  Prefactor     .11317E-03    705.47        .10099E-01   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  36  Normalizat    .10000E-01    .43472        .11862       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  37  Prefactor     .18319E-13    .41341        .11491       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 0.000241418
Minuit parameter uncertainties:
  1  3988.29
  2  4868.51
  3  114.218
  4  2712.08
  5  1.60968e-06
  6  0.00905662
  7  8.61732e-06
  8  3.60389e-07
  9  0.333852
  10  2.84893
  11  0.00774672
  12  1.62228e-07
  13  166.976
  14  0.632509
  15  2.85584e-05
  16  17.311
  17  6.21977e-07
  18  27.701
  19  0.000541493
  20  1.5787e-06
  21  0.232778
  22  6.71018e-08
  23  78.6583
  24  4.54966e-07
  25  3.03808e-06
  26  0.149484
  27  29.1406
  28  4.36701e-07
  29  2.67543e-05
  30  9.55847
  31  1.56421e-05
  32  0.0193288
  33  5.05247
  34  489.369
  35  0.195142
  36  1.98846e-08
  37  1.75949e-07
Done.

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

Extracting fit parameters...

4FGL J1647.5+4950
   Spectrum: PowerLaw
362    Prefactor:  1.000e-04  6.220e-07  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.832e-14  1.759e-07  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.988e-08  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 251.892 49.834
Photon Flux Upper Limit: 2.39e-06 ph cm-2 s-1
Energy Flux Upper Limit: 1.84e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/974113/likelihoodResults_551664001_551923201_4FGL_J1647.5+4950_daily_bin1205.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) = 133.33675351
delta logL = -0.000126919661056

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 133.33662798
delta logL = -1.38956704632e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10394E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.0176       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .11105E-06   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=   133.3366     FROM MIGRAD    STATUS=CONVERGED    104 CALLS      280 TOTAL
                     EDM=   .68E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    705.53        .51042E-02** at limit **
   2  Index         1.7363        8.1387        .50000        .54946E-07
   3  Normalizat    .10000E-01    .16453E-01    .26100E-02** at limit **
   4  Prefactor     .22203E-09    .15463E-01    .25210E-02** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100008
  Index      = 1.73633
  Normalizat = 0.01
  Prefactor  = 2.2203e-10
 **********
 **   18 **HESSE 
 **********

 FCN=   133.3366     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      309 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    6752.6        .78780E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7363        7.3530        .50000       -.71119    
   3  Normalizat    .10000E-01    .10585        .52200E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .22203E-09    .99501E-01    .50420E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.8069e-09
Minuit parameter uncertainties:
  1  0.0115524
  2  4066.05
  3  1.2089e-05
  4  9.41612e-06
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/974113': 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) = 133.336626257
delta logL = 3.33965516575e-07

Extracting fit parameters...

4FGL J1647.5+4950
   Spectrum: PowerLaw
362    Prefactor:  1.000e-04  1.155e-02  1.000e-04  1.000e+04 ( 1.000e-12)
363        Index:  1.736e+00  4.066e+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:  2.220e-10  9.416e-06  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.209e-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/974113/cmap_HighResolution_551664001_551923201_4FGL_J1647.5+4950_daily_bin1205.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.84e-01', job_status='DONE', photon_flux_upper_limit='2.39e-06', time_completed='2021-09-15 15:12:02.280919', job_id='974113', GAL2='0.00', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1631743922.28', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.00', dlogl='3.34e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='1205' AND source_name='4FGL J1647.5+4950' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 15 15:12:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0028>
Subject: Job 974113: <4FGL_J1647.5+4950_daily_bin1205> in cluster <slac> Done

Job <4FGL_J1647.5+4950_daily_bin1205> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Wed Sep 15 15:00:32 2021
Job was executed on host(s) <bullet0028>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 15 15:01:49 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:49 2021
Terminated at Wed Sep 15 15:12:03 2021
Results reported at Wed Sep 15 15:12:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1647.5+4950_daily_bin1205 251.892 49.8336 551664001 551923201 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 :                                   367.32 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             234.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   613 sec.
    Turnaround time :                            691 sec.

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

