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


Performing analysis on: 4FGL_J1649.6+0411_daily_bin478
RA = 252.406, Dec = 4.1926
tmin = 363225601, tmax = 363484801
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='30598', job_status='RUN', time_executed='2021-09-15 17:52:25.804537', time_epoch_executed='1631753545.8' WHERE source_name='4FGL J1649.6+0411' and cadence='daily' and bin_id='478'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/30598

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/30598/ft1_4FGL_J1649.6+0411_daily_bin478.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/30598/ft2_4FGL_J1649.6+0411_daily_bin478.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/30598/ft1_4FGL_J1649.6+0411_daily_bin478.fits outfile=/scratch/kocevski/30598/ft1_filteredMKT_4FGL_J1649.6+0411_daily_bin478.fits ra=252.406 dec=4.1926 rad=12.0 tmin=363225601.0 tmax=363484801.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 7.03
user 6.72
sys 0.27

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/30598/ft2_4FGL_J1649.6+0411_daily_bin478.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/30598/ft2_4FGL_J1649.6+0411_daily_bin478.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/30598/ft1_filteredMKT_4FGL_J1649.6+0411_daily_bin478.fits evtable="EVENTS" outfile="/scratch/kocevski/30598/ft1_filtered_4FGL_J1649.6+0411_daily_bin478.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.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/30598/ft1_filtered_4FGL_J1649.6+0411_daily_bin478.fits" evtable="EVENTS" scfile=/scratch/kocevski/30598/ft2_4FGL_J1649.6+0411_daily_bin478.fits sctable="SC_DATA" outfile=/scratch/kocevski/30598/ltcube_363225601_363484801_4FGL_J1649.6+0411_daily_bin478.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/30598/ft2_4FGL_J1649.6+0411_daily_bin478.fits
.....................!
real 13.31
user 12.94
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/30598/ft1_filtered_4FGL_J1649.6+0411_daily_bin478.fits evtable="EVENTS" scfile=/scratch/kocevski/30598/ft2_4FGL_J1649.6+0411_daily_bin478.fits sctable="SC_DATA" expcube=/scratch/kocevski/30598/ltcube_363225601_363484801_4FGL_J1649.6+0411_daily_bin478.fits outfile=/scratch/kocevski/30598/expmap_363225601_363484801_4FGL_J1649.6+0411_daily_bin478.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/30598/ltcube_363225601_363484801_4FGL_J1649.6+0411_daily_bin478.fits
.....................!
real 191.26
user 185.25
sys 5.47

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
Extended source FHES J1723.5-0501 in ROI with RadialGaussian spatial model.
Added 163 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J1649.6+0411 @ 252.406 4.1926

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/30598/ft1_filtered_4FGL_J1649.6+0411_daily_bin478.fits scfile=/scratch/kocevski/30598/ft2_4FGL_J1649.6+0411_daily_bin478.fits outfile=/scratch/kocevski/30598/cmap_363225601_363484801_4FGL_J1649.6+0411_daily_bin478.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=252.406 yref=4.1926 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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/30598/ft1_filtered_4FGL_J1649.6+0411_daily_bin478.fits scfile=/scratch/kocevski/30598/ft2_4FGL_J1649.6+0411_daily_bin478.fits outfile=/scratch/kocevski/30598/cmap_HighResolution_363225601_363484801_4FGL_J1649.6+0411_daily_bin478.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=252.406 yref=4.1926 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/30598/ft1_filtered_4FGL_J1649.6+0411_daily_bin478.fits evtable="EVENTS" scfile=/scratch/kocevski/30598/ft2_4FGL_J1649.6+0411_daily_bin478.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/30598/Model_4FGL_J1649.6+0411_daily_bin478.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 FHES J1723.5-0501
adding source GAL_V02
Working on...
/scratch/kocevski/30598/ft1_filtered_4FGL_J1649.6+0411_daily_bin478.fits.....................!
real 70.71
user 69.26
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/30598/ft1_filtered_4FGL_J1649.6+0411_daily_bin478.fits', '/scratch/kocevski/30598/ft2_4FGL_J1649.6+0411_daily_bin478.fits', expMap='/scratch/kocevski/30598/expmap_363225601_363484801_4FGL_J1649.6+0411_daily_bin478.fits', expCube='/scratch/kocevski/30598/ltcube_363225601_363484801_4FGL_J1649.6+0411_daily_bin478.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/30598/Model_4FGL_J1649.6+0411_daily_bin478.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1649.6+0411'

4FGL J1649.6+0411
   Spectrum: PowerLaw
267    Prefactor:  1.027e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  2.594e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
269        Scale:  7.155e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/30598/ft1_filtered_4FGL_J1649.6+0411_daily_bin478.fits
Spacecraft file(s): /scratch/kocevski/30598/ft2_4FGL_J1649.6+0411_daily_bin478.fits
Exposure map: /scratch/kocevski/30598/expmap_363225601_363484801_4FGL_J1649.6+0411_daily_bin478.fits
Exposure cube: /scratch/kocevski/30598/ltcube_363225601_363484801_4FGL_J1649.6+0411_daily_bin478.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/30598/Model_4FGL_J1649.6+0411_daily_bin478.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) = 8053.02690733

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10685E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10163E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10313E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.389       1.0000         .10000E-03   10000.    
     8 'Prefactor '    18.508       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.8524       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    49.681       1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.2708       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    23.352       1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    3.9878       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.8807       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .77540       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5570E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8052.988     FROM MIGRAD    STATUS=CONVERGED    120 CALLS     2061 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    28.702       -.87565E-05** at limit **
   2  norm          .10001E-03    27.120       -.25207E-04** at limit **
   3  Prefactor     .10031E-03    25.632        .41464E-04** at limit **
   4  Prefactor     .10000E-03    12.712        .15489E-07** at limit **
   5  Prefactor     .10000E-03    7.6411       -.27307E-06** at limit **
   6  Prefactor     .10000E-03    3.7084       -.28352E-09** at limit **
   7  Prefactor     14.572        29.798       -.18525E-04    .45939E-02
   8  Prefactor     18.117        65.433       -.35188E-04    .20720E-02
   9  Prefactor     2.8529        6.0957        .26528E-05    .38664E-03
  10  Prefactor     .10000E-03    4.5808       -.24125E-06** at limit **
  11  Prefactor     .10070E-03    24.061       -.29969E-04** at limit **
  12  Prefactor     .10018E-03    31.417        .12833E-04** at limit **
  13  Prefactor     .10000E-03    5.7866        .35899E-06** at limit **
  14  Prefactor     49.669        2.2905       -.11394E-05    .12598E-02
  15  Prefactor     6.2700        3.9569       -.12491E-04   -.73222E-02
  16  norm          .10000E-03    4.2872       -.30919E-06** at limit **
  17  Prefactor     23.314        6.1636       -.38188E-06   -.11200E-02
  18  norm          .10000E-03    3.9661       -.18204E-06** at limit **
  19  norm          3.9880        3.7274       -.61257E-06   -.40255E-04
  20  norm          .10000E-03    21.556       -.12169E-06** at limit **
  21  Normalizat    1.8803        .32649       -.57081E-05    .25215E-03
  22  Prefactor     .77552        .85744E-01    .54407E-05    .93415E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.000100013
  Prefactor  = 0.000100314
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.5721
  Prefactor  = 18.1175
  Prefactor  = 2.85293
  Prefactor  = 0.0001
  Prefactor  = 0.000100695
  Prefactor  = 0.000100177
  Prefactor  = 0.0001
  Prefactor  = 49.6689
  Prefactor  = 6.26999
  norm       = 0.0001
  Prefactor  = 23.3139
  norm       = 0.0001
  norm       = 3.98797
  norm       = 0.000100002
  Normalizat = 1.88025
  Prefactor  = 0.775521
 **********
 **   18 **HESSE 
 **********

 FCN=   8052.988     FROM HESSE     STATUS=OK           382 CALLS     2443 TOTAL
                     EDM=   .31E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    28.651        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10001E-03    55.320        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10031E-03    37.831        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    12.702        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.5872        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.6962        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     14.572        32.649        .26398E-02   -1.4944    
   8  Prefactor     18.117        67.961        .23274E-02   -1.4856    
   9  Prefactor     2.8529        6.1153        .60182E-02   -1.5370    
  10  Prefactor     .10000E-03    4.5278        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10070E-03    41.184        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10018E-03    56.855        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    5.7133        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     49.669        200.05        .14224E-02   -1.4297    
  15  Prefactor     6.2700        8.8012        .40075E-02   -1.5207    
  16  norm          .10000E-03    4.2818        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     23.314        59.872        .20723E-02   -1.4742    
  18  norm          .10000E-03    3.9501        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          3.9880        3.7264        .50492E-02   -1.5309    
  20  norm          .10000E-03    20.789        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.8803        .28238        .90128E-01   -.67587    
  22  Prefactor     .77552        .74350E-01    .43396E-01   -1.0064    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.11375e-07
Minuit parameter uncertainties:
  1  0.000198681
  2  0.00169235
  3  0.00689487
  4  1.19554e-06
  5  2.23335e-05
  6  1.64111e-05
  7  32.6888
  8  68.2535
  9  6.11664
  10  3.21148e-05
  11  0.0107103
  12  0.00635744
  13  3.19769e-05
  14  200.538
  15  8.80301
  16  1.09167e-05
  17  60.0271
  18  7.93734e-06
  19  3.72659
  20  0.000399365
  21  0.282633
  22  0.0743592
Done.

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

Extracting fit parameters...

4FGL J1649.6+0411
   Spectrum: PowerLaw
267    Prefactor:  2.853e+00  6.117e+00  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  2.594e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
269        Scale:  7.155e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
554    Prefactor:  7.755e-01  7.436e-02  0.000e+00  1.000e+01 ( 1.000e+00)
555        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
556        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
550   Normalization:  1.880e+00  2.826e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.27
Ra Dec: 252.406 4.193
Photon Flux Upper Limit: 1.82e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.43e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/30598/likelihoodResults_363225601_363484801_4FGL_J1649.6+0411_daily_bin478.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): 0
logL (Free Index) = 8052.97614968
delta logL = 0.0114515504365

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8052.97373504
delta logL = 0.0138661929068

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.3101       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3852       1.0000          .0000       10.000    
     3 'Normalizat'    1.8850       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77468       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5570E+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=   8052.974     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      256 TOTAL
                     EDM=   .54E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.3098        7.1036        .22251E-03    .33874E-04
   2  Index         2.3861        1.1863        .11061E-01    .36606E-04
   3  Normalizat    1.8850        .32556        .39859E-03   -.40324E-03
   4  Prefactor     .77467        .84174E-01    .15170E-03   -.11157E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.30977
  Index      = 2.38606
  Normalizat = 1.88504
  Prefactor  = 0.774674
 **********
 **   18 **HESSE 
 **********

 FCN=   8052.974     FROM HESSE     STATUS=OK            23 CALLS      279 TOTAL
                     EDM=   .54E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.3098        7.0023        .89005E-05   -1.5344    
   2  Index         2.3861        1.1695        .44246E-03   -.55012    
   3  Normalizat    1.8850        .32579        .79717E-04   -.67464    
   4  Prefactor     .77467        .84214E-01    .30340E-04   -1.0067    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.35332e-10
Minuit parameter uncertainties:
  1  7.00401
  2  1.18472
  3  0.326169
  4  0.0842274
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/30598': 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): 0
logL (Free Index) = 8052.97373476
delta logL = 0.0138664704073

Extracting fit parameters...

4FGL J1649.6+0411
   Spectrum: PowerLaw
267    Prefactor:  3.310e+00  7.004e+00  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  2.386e+00  1.185e+00  0.000e+00  1.000e+01 (-1.000e+00)
269        Scale:  7.155e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
554    Prefactor:  7.747e-01  8.423e-02  0.000e+00  1.000e+01 ( 1.000e+00)
555        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
556        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
550   Normalization:  1.885e+00  3.262e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.27
Ra Dec: 252.406 4.193

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/30598/cmap_HighResolution_363225601_363484801_4FGL_J1649.6+0411_daily_bin478.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.43e-02', job_status='DONE', photon_flux_upper_limit='1.82e-07', time_completed='2021-09-15 18:04:29.867733', job_id='30598', GAL2='0.77', fit_tolerance='1e-08', EG2='1.89', EG='1.88', time_epoch_completed='1631754269.87', return_code2='0', ts='0.27', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='1.39e-02', ts2='0.29', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='478' AND source_name='4FGL J1649.6+0411' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 15 18:04:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0163>
Subject: Job 30598: <4FGL_J1649.6+0411_daily_bin478> in cluster <slac> Done

Job <4FGL_J1649.6+0411_daily_bin478> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep 15 17:50:37 2021
Job was executed on host(s) <bullet0163>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 15 17:52:08 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 15 17:52:08 2021
Terminated at Wed Sep 15 18:04:30 2021
Results reported at Wed Sep 15 18:04:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1649.6+0411_daily_bin478 252.406 4.1926 363225601 363484801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1649.6+0411 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   721.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             377.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   742 sec.
    Turnaround time :                            833 sec.

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

