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


Performing analysis on: 4FGL_J1649.6+0411_daily_bin1318
RA = 252.406, Dec = 4.1926
tmin = 580953601, tmax = 581212801
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='35583', job_status='RUN', time_executed='2021-09-15 18:07:43.424172', time_epoch_executed='1631754463.42' WHERE source_name='4FGL J1649.6+0411' and cadence='daily' and bin_id='1318'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/35583

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/35583/ft1_4FGL_J1649.6+0411_daily_bin1318.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/35583/ft2_4FGL_J1649.6+0411_daily_bin1318.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/35583/ft1_4FGL_J1649.6+0411_daily_bin1318.fits outfile=/scratch/kocevski/35583/ft1_filteredMKT_4FGL_J1649.6+0411_daily_bin1318.fits ra=252.406 dec=4.1926 rad=12.0 tmin=580953601.0 tmax=581212801.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.00
user 2.76
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/35583/ft2_4FGL_J1649.6+0411_daily_bin1318.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/35583/ft1_filteredMKT_4FGL_J1649.6+0411_daily_bin1318.fits evtable="EVENTS" outfile="/scratch/kocevski/35583/ft1_filtered_4FGL_J1649.6+0411_daily_bin1318.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/35583/ft1_filtered_4FGL_J1649.6+0411_daily_bin1318.fits" evtable="EVENTS" scfile=/scratch/kocevski/35583/ft2_4FGL_J1649.6+0411_daily_bin1318.fits sctable="SC_DATA" outfile=/scratch/kocevski/35583/ltcube_580953601_581212801_4FGL_J1649.6+0411_daily_bin1318.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/35583/ft2_4FGL_J1649.6+0411_daily_bin1318.fits
.....................!
real 14.79
user 14.44
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/35583/ft1_filtered_4FGL_J1649.6+0411_daily_bin1318.fits evtable="EVENTS" scfile=/scratch/kocevski/35583/ft2_4FGL_J1649.6+0411_daily_bin1318.fits sctable="SC_DATA" expcube=/scratch/kocevski/35583/ltcube_580953601_581212801_4FGL_J1649.6+0411_daily_bin1318.fits outfile=/scratch/kocevski/35583/expmap_580953601_581212801_4FGL_J1649.6+0411_daily_bin1318.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/35583/ltcube_580953601_581212801_4FGL_J1649.6+0411_daily_bin1318.fits
.....................!
real 192.03
user 186.38
sys 5.15

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/35583/ft1_filtered_4FGL_J1649.6+0411_daily_bin1318.fits scfile=/scratch/kocevski/35583/ft2_4FGL_J1649.6+0411_daily_bin1318.fits outfile=/scratch/kocevski/35583/cmap_580953601_581212801_4FGL_J1649.6+0411_daily_bin1318.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/35583/ft1_filtered_4FGL_J1649.6+0411_daily_bin1318.fits scfile=/scratch/kocevski/35583/ft2_4FGL_J1649.6+0411_daily_bin1318.fits outfile=/scratch/kocevski/35583/cmap_HighResolution_580953601_581212801_4FGL_J1649.6+0411_daily_bin1318.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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/35583/ft1_filtered_4FGL_J1649.6+0411_daily_bin1318.fits evtable="EVENTS" scfile=/scratch/kocevski/35583/ft2_4FGL_J1649.6+0411_daily_bin1318.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/35583/Model_4FGL_J1649.6+0411_daily_bin1318.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/35583/ft1_filtered_4FGL_J1649.6+0411_daily_bin1318.fits......................!
real 32.56
user 31.13
sys 1.31

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/35583/ft1_filtered_4FGL_J1649.6+0411_daily_bin1318.fits', '/scratch/kocevski/35583/ft2_4FGL_J1649.6+0411_daily_bin1318.fits', expMap='/scratch/kocevski/35583/expmap_580953601_581212801_4FGL_J1649.6+0411_daily_bin1318.fits', expCube='/scratch/kocevski/35583/ltcube_580953601_581212801_4FGL_J1649.6+0411_daily_bin1318.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/35583/Model_4FGL_J1649.6+0411_daily_bin1318.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/35583/ft1_filtered_4FGL_J1649.6+0411_daily_bin1318.fits
Spacecraft file(s): /scratch/kocevski/35583/ft2_4FGL_J1649.6+0411_daily_bin1318.fits
Exposure map: /scratch/kocevski/35583/expmap_580953601_581212801_4FGL_J1649.6+0411_daily_bin1318.fits
Exposure cube: /scratch/kocevski/35583/ltcube_580953601_581212801_4FGL_J1649.6+0411_daily_bin1318.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/35583/Model_4FGL_J1649.6+0411_daily_bin1318.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) = 2649.31950687

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    35.004       1.0000         .10000E-03   10000.    
     2 'norm      '    .56342E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    59.873       1.0000         .10000E-03   10000.    
     4 'Prefactor '    132.45       1.0000         .10000E-03   10000.    
     5 'Prefactor '    21.633       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10795E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .33597E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .75845E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    238.80       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10246E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.9454       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .19573E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    19.987       1.0000         .10000E-03   10000.    
    16 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    373.79       1.0000         .10000E-03   10000.    
    18 'norm      '    .10345E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .11086E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10212E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .10003E-01   1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0133       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.

 FCN=   2649.196     FROM MIGRAD    STATUS=CONVERGED    473 CALLS     2754 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          34.982        41.828        .33771E-06   -.76410E-05
   2  norm          .10000E-03    596.72       -.28026E-06** at limit **
   3  Prefactor     59.750        765.52       -.11891E-04   -.28746E-04
   4  Prefactor     132.56        103.37       -.38766E-06   -.70933E-04
   5  Prefactor     21.645        28.483       -.16017E-06   -.10209E-03
   6  Prefactor     .10002E-03    66.570       -.42468E-05** at limit **
   7  Prefactor     .10000E-03    1943.2        .81438E-06** at limit **
   8  Prefactor     .10000E-03    6543.8        .21660E-05** at limit **
   9  Prefactor     .10000E-03    11.709       -.40562E-06** at limit **
  10  Prefactor     .10000E-03    11.603        .73043E-07** at limit **
  11  Prefactor     238.74        152.06       -.18259E-05    .21163E-05
  12  Prefactor     .10000E-03    232.80       -.39045E-06** at limit **
  13  Prefactor     9.9393        17.995        .38966E-05    .70635E-03
  14  Prefactor     .10000E-03    865.70        .13711E-05** at limit **
  15  Prefactor     19.999        21.722       -.31484E-06   -.13664E-04
  16  norm          .10000E-03    7.9675       -.70487E-07** at limit **
  17  Prefactor     373.68        215.69       -.96668E-06   -.25787E-04
  18  norm          .10001E-03    31.175       -.22819E-05** at limit **
  19  norm          .10010E-03    29.855        .10435E-04** at limit **
  20  norm          .10001E-03    20.428       -.25829E-05** at limit **
  21  Normalizat    .10000E-01    .39087       -.85132E-05** at limit **
  22  Prefactor     1.0134        .11184        .84526E-06    .97012E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 34.9817
  norm       = 0.000100001
  Prefactor  = 59.7504
  Prefactor  = 132.559
  Prefactor  = 21.6454
  Prefactor  = 0.000100016
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 238.738
  Prefactor  = 0.0001
  Prefactor  = 9.93926
  Prefactor  = 0.0001
  Prefactor  = 19.9987
  norm       = 0.0001
  Prefactor  = 373.682
  norm       = 0.000100006
  norm       = 0.000100101
  norm       = 0.000100007
  Normalizat = 0.01
  Prefactor  = 1.01336
 **********
 **   18 **HESSE 
 **********

 FCN=   2649.196     FROM HESSE     STATUS=OK           336 CALLS     3090 TOTAL
                     EDM=   .56E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          34.982        41.964        .67734E-04   -1.4524    
   2  norm          .10000E-03    597.23        .19033E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     59.750        792.04        .25926E-03   -1.4160    
   4  Prefactor     132.56        104.10        .17494E-03   -1.3400    
   5  Prefactor     21.645        28.413        .86117E-04   -1.4777    
   6  Prefactor     .10002E-03    68.489        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1943.4        .19702E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6543.9        .18568E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    11.748        .17208E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    11.650        .17115E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     238.74        153.76        .13100E-03   -1.2605    
  12  Prefactor     .10000E-03    232.81        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     9.9393        19.188        .63531E-03   -1.5077    
  14  Prefactor     .10000E-03    865.91        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     19.999        21.778        .89589E-04   -1.4813    
  16  norm          .10000E-03    7.9773        .14191E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     373.68        216.53        .10544E-03   -1.1817    
  18  norm          .10001E-03    31.716        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10010E-03    35.705        .30366E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10001E-03    20.925        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .10000E-01    1.4561        .16940E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     1.0134        .11720        .14809E-03   -.92285    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.63176e-09
Minuit parameter uncertainties:
  1  41.9999
  2  0.00178065
  3  442.45
  4  104.249
  5  28.4308
  6  0.0021069
  7  0.00249925
  8  0.00307514
  9  8.85148e-05
  10  9.62055e-06
  11  154.019
  12  0.000140392
  13  19.1997
  14  0.00128733
  15  21.7863
  16  1.28215e-05
  17  217.005
  18  0.000850071
  19  0.00380927
  20  0.000757892
  21  1.6807e-05
  22  0.117233
Done.

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

Extracting fit parameters...

4FGL J1649.6+0411
   Spectrum: PowerLaw
267    Prefactor:  1.000e-04  8.851e-05  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:  1.013e+00  1.172e-01  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.000e-02  1.681e-05  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/35583/likelihoodResults_580953601_581212801_4FGL_J1649.6+0411_daily_bin1318.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) = 2649.19594775
delta logL = -0.000408631178743

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2649.19553914
delta logL = -1.53090695676e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6023       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0134       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=   2649.196     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      249 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10102E-03    268.23        .17252E-02** at limit **
   2  Index         2.6772        5.2229        .50000       -.53453E-05
   3  Normalizat    .10000E-01    .70965E-01    .16971E-01** at limit **
   4  Prefactor     1.0134        .19255E-01    .14809E-03   -.34309E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101021
  Index      = 2.67722
  Normalizat = 0.01
  Prefactor  = 1.01336
 **********
 **   18 **HESSE 
 **********

 FCN=   2649.196     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      278 TOTAL
                     EDM=   .91E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10102E-03    1199.7        .34504E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6772        5.3541        .50000       -.48313    
   3  Normalizat    .10000E-01    .39564        .33942E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.0134        .45432E-01    .29617E-04   -.92285    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.0894e-08
Minuit parameter uncertainties:
  1  0.0714953
  2  2234.5
  3  9.55019e-06
  4  0.0454333
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/35583': 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) = 2649.19553905
delta logL = 6.6659595177e-08

Extracting fit parameters...

4FGL J1649.6+0411
   Spectrum: PowerLaw
267    Prefactor:  1.010e-04  7.150e-02  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  2.677e+00  2.235e+03  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:  1.013e+00  4.543e-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.000e-02  9.550e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 252.406 4.193

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/35583/cmap_HighResolution_580953601_581212801_4FGL_J1649.6+0411_daily_bin1318.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.41e-02', job_status='DONE', photon_flux_upper_limit='4.36e-07', time_completed='2021-09-15 18:15:13.012812', job_id='35583', GAL2='1.01', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1631754913.01', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='6.67e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='1318' AND source_name='4FGL J1649.6+0411' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 15 18:15:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0260>
Subject: Job 35583: <4FGL_J1649.6+0411_daily_bin1318> in cluster <slac> Done

Job <4FGL_J1649.6+0411_daily_bin1318> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep 15 18:05:41 2021
Job was executed on host(s) <bullet0260>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 15 18:07:35 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 15 18:07:35 2021
Terminated at Wed Sep 15 18:15:14 2021
Results reported at Wed Sep 15 18:15:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1649.6+0411_daily_bin1318 252.406 4.1926 580953601 581212801 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 :                                   447.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             320.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   458 sec.
    Turnaround time :                            573 sec.

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

