/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 196 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_J1649.4+5235_daily_bin1205
RA = 252.364, Dec = 52.5901
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='22267', job_status='RUN', time_executed='2021-09-15 17:30:08.931013', time_epoch_executed='1631752208.93' WHERE source_name='4FGL J1649.4+5235' and cadence='daily' and bin_id='1205'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/22267

Creating custom pfile directory:
/scratch/kocevski/22267/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/22267/ft1_4FGL_J1649.4+5235_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/22267/ft2_4FGL_J1649.4+5235_daily_bin1205.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/22267/ft1_4FGL_J1649.4+5235_daily_bin1205.fits outfile=/scratch/kocevski/22267/ft1_filteredMKT_4FGL_J1649.4+5235_daily_bin1205.fits ra=252.364 dec=52.5901 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.90
user 3.66
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/22267/ft2_4FGL_J1649.4+5235_daily_bin1205.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/22267/ft2_4FGL_J1649.4+5235_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/22267/ft1_filteredMKT_4FGL_J1649.4+5235_daily_bin1205.fits evtable="EVENTS" outfile="/scratch/kocevski/22267/ft1_filtered_4FGL_J1649.4+5235_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.50
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/22267/ft1_filtered_4FGL_J1649.4+5235_daily_bin1205.fits" evtable="EVENTS" scfile=/scratch/kocevski/22267/ft2_4FGL_J1649.4+5235_daily_bin1205.fits sctable="SC_DATA" outfile=/scratch/kocevski/22267/ltcube_551664001_551923201_4FGL_J1649.4+5235_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/22267/ft2_4FGL_J1649.4+5235_daily_bin1205.fits
.....................!
real 13.56
user 13.18
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/22267/ft1_filtered_4FGL_J1649.4+5235_daily_bin1205.fits evtable="EVENTS" scfile=/scratch/kocevski/22267/ft2_4FGL_J1649.4+5235_daily_bin1205.fits sctable="SC_DATA" expcube=/scratch/kocevski/22267/ltcube_551664001_551923201_4FGL_J1649.4+5235_daily_bin1205.fits outfile=/scratch/kocevski/22267/expmap_551664001_551923201_4FGL_J1649.4+5235_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/22267/ltcube_551664001_551923201_4FGL_J1649.4+5235_daily_bin1205.fits
.....................!
real 191.19
user 185.62
sys 4.64

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 220 point sources and 0 extended sources

Setting source of interest to:
4FGL J1649.4+5235 @ 252.364 52.5901

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/22267/ft1_filtered_4FGL_J1649.4+5235_daily_bin1205.fits scfile=/scratch/kocevski/22267/ft2_4FGL_J1649.4+5235_daily_bin1205.fits outfile=/scratch/kocevski/22267/cmap_551664001_551923201_4FGL_J1649.4+5235_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=252.364 yref=52.5901 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 1.19
user 0.39
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/22267/ft1_filtered_4FGL_J1649.4+5235_daily_bin1205.fits scfile=/scratch/kocevski/22267/ft2_4FGL_J1649.4+5235_daily_bin1205.fits outfile=/scratch/kocevski/22267/cmap_HighResolution_551664001_551923201_4FGL_J1649.4+5235_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=252.364 yref=52.5901 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 1.55
user 0.40
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/22267/ft1_filtered_4FGL_J1649.4+5235_daily_bin1205.fits evtable="EVENTS" scfile=/scratch/kocevski/22267/ft2_4FGL_J1649.4+5235_daily_bin1205.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/22267/Model_4FGL_J1649.4+5235_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/22267/ft1_filtered_4FGL_J1649.4+5235_daily_bin1205.fits.....!
real 15.53
user 12.70
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/22267/ft1_filtered_4FGL_J1649.4+5235_daily_bin1205.fits', '/scratch/kocevski/22267/ft2_4FGL_J1649.4+5235_daily_bin1205.fits', expMap='/scratch/kocevski/22267/expmap_551664001_551923201_4FGL_J1649.4+5235_daily_bin1205.fits', expCube='/scratch/kocevski/22267/ltcube_551664001_551923201_4FGL_J1649.4+5235_daily_bin1205.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/22267/Model_4FGL_J1649.4+5235_daily_bin1205.xml', optimizer='MINUIT')

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

4FGL J1649.4+5235
   Spectrum: PowerLaw
368    Prefactor:  5.175e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
369        Index:  2.084e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
370        Scale:  1.469e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/22267/ft1_filtered_4FGL_J1649.4+5235_daily_bin1205.fits
Spacecraft file(s): /scratch/kocevski/22267/ft2_4FGL_J1649.4+5235_daily_bin1205.fits
Exposure map: /scratch/kocevski/22267/expmap_551664001_551923201_4FGL_J1649.4+5235_daily_bin1205.fits
Exposure cube: /scratch/kocevski/22267/ltcube_551664001_551923201_4FGL_J1649.4+5235_daily_bin1205.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/22267/Model_4FGL_J1649.4+5235_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) = 59.5605149295

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.8881       1.0000         .10000E-03   10000.    
     2 'norm      '    9.0027       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.1973       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3288.9       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10111E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11228E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10680E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.7839       1.0000         .10000E-03   10000.    
    13 'norm      '    .21718E-02   1.0000         .10000E-03   10000.    
    14 'norm      '    .13934E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    22.750       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11891E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    44.535       1.0000         .10000E-03   10000.    
    21 'norm      '    .10326E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .14091E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10352E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    36.920       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .15662E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .16299E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .16609E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .18040E-02   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .13268E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10490E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .24939E-02   1.0000         .10000E-03   10000.    
    32 'Prefactor '    1.5574       1.0000         .10000E-03   10000.    
    33 'Prefactor '    .14070E-03   1.0000         .10000E-03   10000.    
    34 'Prefactor '    .14696E-03   1.0000         .10000E-03   10000.    
    35 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    36 'Prefactor '    .22206E-06   1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7120E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   59.39588     FROM MIGRAD    STATUS=CONVERGED   1101 CALLS     5326 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.8941        6066.1        .53874E-05   -.29514E-05
   2  norm          9.0134        6023.5        .91960E-05   -.50378E-05
   3  Prefactor     2.1980        2297.1        .58555E-06   -.32076E-06
   4  Prefactor     3280.4        2909.0        .56779E-04   -.14815E-04
   5  Prefactor     .10000E-03    83.319        .89541E-07** at limit **
   6  Prefactor     .10000E-03    176.21        .16597E-05** at limit **
   7  Prefactor     .10001E-03    163.87       -.30070E-05** at limit **
   8  Prefactor     .10000E-03    24.040       -.23479E-06** at limit **
   9  norm          .10004E-03    398.14        .72571E-05** at limit **
  10  norm          .10000E-03    147.19        .20994E-05** at limit **
  11  Prefactor     .10000E-03    32.127       -.10889E-06** at limit **
  12  Prefactor     2.7985        6083.5        .12760E-04   -.69910E-05
  13  norm          .10000E-03    317.44       -.89796E-06** at limit **
  14  norm          .10003E-03    429.03        .64462E-05** at limit **
  15  Prefactor     .10000E-03    36.038        .32427E-07** at limit **
  16  Prefactor     22.743        25.992        .20104E-05    .36834E-04
  17  Prefactor     .10000E-03    220.10        .24796E-06** at limit **
  18  Prefactor     .10000E-03    686.70       -.42622E-05** at limit **
  19  norm          .10000E-03    6.6989        .33247E-06** at limit **
  20  Prefactor     44.906        79.375       -.88240E-05   -.11687E-03
  21  norm          .10000E-03    4.5567        .13635E-05** at limit **
  22  Prefactor     .10002E-03    241.58        .41901E-06** at limit **
  23  Prefactor     .10009E-03    331.22       -.68406E-05** at limit **
  24  norm          36.194        30.630       -.27269E-05   -.26396E-03
  25  Prefactor     .10000E-03    42.479        .22948E-06** at limit **
  26  Prefactor     .10049E-03    1788.1        .11115E-03** at limit **
  27  norm          .10000E-03    66.725        .33471E-06** at limit **
  28  Prefactor     .10107E-03    1913.3        .11110E-03** at limit **
  29  Prefactor     .10000E-03    70.613        .67758E-07** at limit **
  30  Prefactor     .10007E-03    881.56        .20700E-04** at limit **
  31  Prefactor     .10031E-03    1782.0        .99894E-04** at limit **
  32  Prefactor     23.841        1929.9        .66814E-04   -.27824E-04
  33  Prefactor     .10021E-03    550.76       -.27181E-04** at limit **
  34  Prefactor     .10002E-03    432.68        .58111E-05** at limit **
  35  Normalizat    .10000E-01    .35986        .35686E-05** at limit **
  36  Prefactor     .24538E-10    .38251        .13893E-04** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.89407
  norm       = 9.01335
  Prefactor  = 2.198
  Prefactor  = 3280.44
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  norm       = 0.000100044
  norm       = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 2.79851
  norm       = 0.0001
  norm       = 0.000100027
  Prefactor  = 0.0001
  Prefactor  = 22.7427
  Prefactor  = 0.000100003
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 44.9063
  norm       = 0.000100001
  Prefactor  = 0.000100019
  Prefactor  = 0.000100087
  norm       = 36.1936
  Prefactor  = 0.0001
  Prefactor  = 0.00010049
  norm       = 0.0001
  Prefactor  = 0.000101068
  Prefactor  = 0.0001
  Prefactor  = 0.000100067
  Prefactor  = 0.000100307
  Prefactor  = 23.841
  Prefactor  = 0.000100211
  Prefactor  = 0.000100021
  Normalizat = 0.01
  Prefactor  = 2.45376e-11
 **********
 **   18 **HESSE 
 **********

 FCN=   59.39588     FROM HESSE     STATUS=OK           775 CALLS     6101 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.8941        2296.4        .10231E-02   -1.5313    
   2  norm          9.0134        2294.1        .66790E-03   -1.5107    
   3  Prefactor     2.1980        2297.1        .13880E-02   -1.5411    
   4  Prefactor     3280.4        2547.4        .42570E-04   -.35108    
   5  Prefactor     .10000E-03    83.332        .70268E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    175.72        .10423E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10001E-03    162.80        .10001E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    24.040        .37252E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10004E-03    396.95        .16549E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    146.80        .94634E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    32.127        .43140E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.7985        2297.2        .12194E-02   -1.5373    
  13  norm          .10000E-03    317.40        .14501E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10003E-03    428.24        .17332E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    36.038        .45729E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     22.743        25.978        .41236E-04   -1.4754    
  17  Prefactor     .10000E-03    219.86        .11782E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    686.07        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    6.7016        .19593E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     44.906        80.112        .30038E-03   -1.4367    
  21  norm          .10000E-03    4.5984        .16216E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10002E-03    240.44        .12382E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10009E-03    328.51        .14793E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          36.194        30.204        .33004E-04   -1.4504    
  25  Prefactor     .10000E-03    42.480        .49719E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10049E-03    1235.1        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    66.728        .62649E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10107E-03    1413.7        .20319E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    70.613        .64505E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10007E-03    827.71        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10031E-03    1374.5        .20020E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     23.841        1705.2        .34108E-03   -1.4731    
  33  Prefactor     .10021E-03    537.21        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Prefactor     .10002E-03    432.04        .17427E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  35  Normalizat    .10000E-01    .35992        .15614E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  36  Prefactor     .24538E-10    .38423        .16199E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.9867e-09
Minuit parameter uncertainties:
  1  197.28
  2  300.067
  3  148.222
  4  2692.61
  5  1.84733e-05
  6  0.00161576
  7  0.00207616
  8  4.14838e-05
  9  0.00842986
  10  0.00107613
  11  2.48058e-05
  12  167.261
  13  0.000715307
  14  0.00688054
  15  4.0254e-06
  16  25.9911
  17  0.00165096
  18  0.00148155
  19  3.1487e-05
  20  80.3049
  21  0.000108104
  22  0.00428281
  23  0.0107663
  24  30.2171
  25  5.19461e-05
  26  0.0502736
  27  6.60502e-05
  28  0.0796741
  29  1.51242e-05
  30  0.0150701
  31  0.0420571
  32  416.26
  33  0.0214987
  34  0.00612773
  35  1.47745e-06
  36  6.18106e-06
Done.

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

Extracting fit parameters...

4FGL J1649.4+5235
   Spectrum: PowerLaw
368    Prefactor:  1.000e-04  1.651e-03  1.000e-04  1.000e+04 ( 1.000e-13)
369        Index:  2.084e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
370        Scale:  1.469e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
709    Prefactor:  2.454e-11  6.181e-06  0.000e+00  1.000e+01 ( 1.000e+00)
710        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
711        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
708   Normalization:  1.000e-02  1.477e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 252.364 52.590
Photon Flux Upper Limit: 3.63e-06 ph cm-2 s-1
Energy Flux Upper Limit: 2.74e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/22267/likelihoodResults_551664001_551923201_4FGL_J1649.4+5235_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) = 59.3958995613
delta logL = -1.95949244386e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 59.3958803209
delta logL = -3.54556966897e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .16508E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4528       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .15201E-07   1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7120E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   59.39588     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      226 TOTAL
                     EDM=   .66E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10947E-03    280.72        .90712E-02** at limit **
   2  Index         2.4210        8.7876        .50000        .19264E-05
   3  Normalizat    .10000E-01    .14867E-02    .70674E-01** at limit **
   4  Prefactor     .26883E-09    .16024E-02    .73419E-01** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000109466
  Index      = 2.42102
  Normalizat = 0.01
  Prefactor  = 2.68828e-10
 **********
 **   18 **HESSE 
 **********

 FCN=   59.39588     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      255 TOTAL
                     EDM=   .54E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10947E-03    2158.9        .96458E-03   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4210        6.5036        .50000       -.54194    
   3  Normalizat    .10000E-01    .12567E-01    .15615E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .26883E-09    .13582E-01    .16203E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.40837e-08
Minuit parameter uncertainties:
  1  0.297343
  2  1518.71
  3  1.89651e-08
  4  3.82253e-06
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/22267': 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) = 59.3958800969
delta logL = -1.30549231869e-07

Extracting fit parameters...

4FGL J1649.4+5235
   Spectrum: PowerLaw
368    Prefactor:  1.095e-04  2.973e-01  1.000e-04  1.000e+04 ( 1.000e-13)
369        Index:  2.421e+00  1.519e+03  0.000e+00  1.000e+01 (-1.000e+00)
370        Scale:  1.469e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
709    Prefactor:  2.688e-10  3.823e-06  0.000e+00  1.000e+01 ( 1.000e+00)
710        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
711        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
708   Normalization:  1.000e-02  1.897e-08  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 252.364 52.590

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/22267/cmap_HighResolution_551664001_551923201_4FGL_J1649.4+5235_daily_bin1205.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.74e-01', job_status='DONE', photon_flux_upper_limit='3.63e-06', time_completed='2021-09-15 17:38:19.705545', job_id='22267', GAL2='0.00', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1631752699.71', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.00', dlogl='-1.31e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.08' WHERE bin_id='1205' AND source_name='4FGL J1649.4+5235' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 15 17:38:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0287>
Subject: Job 22267: <4FGL_J1649.4+5235_daily_bin1205> in cluster <slac> Done

Job <4FGL_J1649.4+5235_daily_bin1205> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep 15 17:25:23 2021
Job was executed on host(s) <bullet0287>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 15 17:26:43 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:26:43 2021
Terminated at Wed Sep 15 17:38:20 2021
Results reported at Wed Sep 15 17:38:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1649.4+5235_daily_bin1205 252.364 52.5901 551664001 551923201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1649.4+5235 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   352.35 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             216.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   697 sec.
    Turnaround time :                            777 sec.

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

