aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 48 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 = 74146
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1649.4+5235_monthly_bin168
RA = 252.364, Dec = 52.5901
tmin = 672451201, tmax = 675043201
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='640976', job_status='RUN', time_executed='2022-05-24 03:31:25.755329', time_epoch_executed='1653388285.76' WHERE source_name='4FGL J1649.4+5235' and cadence='monthly' and bin_id='168'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/640976

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

Retrieving the FT1 file...

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

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

Retrieving 455 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/640976/ft1_4FGL_J1649.4+5235_monthly_bin168.fits


Retrieving the FT1 file...

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

Retrieving 455 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/640976/ft2_4FGL_J1649.4+5235_monthly_bin168.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/640976/ft1_4FGL_J1649.4+5235_monthly_bin168.fits outfile=/scratch/kocevski/640976/ft1_filteredMKT_4FGL_J1649.4+5235_monthly_bin168.fits ra=252.364 dec=52.5901 rad=12.0 tmin=672451201.0 tmax=675043201.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 28.62
user 27.83
sys 0.68

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

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

Number of photons that the gtmktime cut: 9958

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/640976/ft1_filtered_4FGL_J1649.4+5235_monthly_bin168.fits" evtable="EVENTS" scfile=/scratch/kocevski/640976/ft2_4FGL_J1649.4+5235_monthly_bin168.fits sctable="SC_DATA" outfile=/scratch/kocevski/640976/ltcube_672451201_675043201_4FGL_J1649.4+5235_monthly_bin168.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/640976/ft2_4FGL_J1649.4+5235_monthly_bin168.fits
.....................!
real 130.91
user 130.09
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/640976/ft1_filtered_4FGL_J1649.4+5235_monthly_bin168.fits evtable="EVENTS" scfile=/scratch/kocevski/640976/ft2_4FGL_J1649.4+5235_monthly_bin168.fits sctable="SC_DATA" expcube=/scratch/kocevski/640976/ltcube_672451201_675043201_4FGL_J1649.4+5235_monthly_bin168.fits outfile=/scratch/kocevski/640976/expmap_672451201_675043201_4FGL_J1649.4+5235_monthly_bin168.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/640976/ltcube_672451201_675043201_4FGL_J1649.4+5235_monthly_bin168.fits
.....................!
real 191.92
user 186.64
sys 4.69

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/640976/ft1_filtered_4FGL_J1649.4+5235_monthly_bin168.fits scfile=/scratch/kocevski/640976/ft2_4FGL_J1649.4+5235_monthly_bin168.fits outfile=/scratch/kocevski/640976/cmap_672451201_675043201_4FGL_J1649.4+5235_monthly_bin168.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 0.79
user 0.63
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/640976/ft1_filtered_4FGL_J1649.4+5235_monthly_bin168.fits scfile=/scratch/kocevski/640976/ft2_4FGL_J1649.4+5235_monthly_bin168.fits outfile=/scratch/kocevski/640976/cmap_HighResolution_672451201_675043201_4FGL_J1649.4+5235_monthly_bin168.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 0.80
user 0.63
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/640976/ft1_filtered_4FGL_J1649.4+5235_monthly_bin168.fits evtable="EVENTS" scfile=/scratch/kocevski/640976/ft2_4FGL_J1649.4+5235_monthly_bin168.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/640976/Model_4FGL_J1649.4+5235_monthly_bin168.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/640976/ft1_filtered_4FGL_J1649.4+5235_monthly_bin168.fits.....................!
real 682.33
user 679.65
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/640976/ft1_filtered_4FGL_J1649.4+5235_monthly_bin168.fits', '/scratch/kocevski/640976/ft2_4FGL_J1649.4+5235_monthly_bin168.fits', expMap='/scratch/kocevski/640976/expmap_672451201_675043201_4FGL_J1649.4+5235_monthly_bin168.fits', expCube='/scratch/kocevski/640976/ltcube_672451201_675043201_4FGL_J1649.4+5235_monthly_bin168.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/640976/Model_4FGL_J1649.4+5235_monthly_bin168.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/640976/ft1_filtered_4FGL_J1649.4+5235_monthly_bin168.fits
Spacecraft file(s): /scratch/kocevski/640976/ft2_4FGL_J1649.4+5235_monthly_bin168.fits
Exposure map: /scratch/kocevski/640976/expmap_672451201_675043201_4FGL_J1649.4+5235_monthly_bin168.fits
Exposure cube: /scratch/kocevski/640976/ltcube_672451201_675043201_4FGL_J1649.4+5235_monthly_bin168.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/640976/Model_4FGL_J1649.4+5235_monthly_bin168.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) = 107066.367403

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.0396       1.0000         .10000E-03   10000.    
     2 'norm      '    .21994       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .12200E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .19507E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.6385       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .38333       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.0288       1.0000         .10000E-03   10000.    
     9 'norm      '    27.389       1.0000         .10000E-03   10000.    
    10 'norm      '    1.3039       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .75078       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.1033       1.0000         .10000E-03   10000.    
    13 'norm      '    12.010       1.0000         .10000E-03   10000.    
    14 'norm      '    1.4045       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .86540       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10763E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .17757E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .20689       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11511       1.0000         .10000E-03   10000.    
    21 'norm      '    .29339       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10931E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    4.3016       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .82639       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .19543E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    1.6247       1.0000         .10000E-03   10000.    
    28 'Prefactor '    11.874       1.0000         .10000E-03   10000.    
    29 'Prefactor '    3.3001       1.0000         .10000E-03   10000.    
    30 'Prefactor '    14.265       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .54512E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10632E-03   1.0000         .10000E-03   10000.    
    33 'Prefactor '    .14006E-03   1.0000         .10000E-03   10000.    
    34 'Prefactor '    1.3351       1.0000         .10000E-03   10000.    
    35 'Normalizat'    .98311       1.0000         .10000E-01   10.000    
    36 'Prefactor '    1.0917       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=   107066.3     FROM MIGRAD    STATUS=CONVERGED   1064 CALLS     4715 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.0437        1.3322       -.44455E-07   -.37014E-03
   2  norm          .21500        .55884        .13176E-06   -.75395E-03
   3  Prefactor     .10000E-03    2.7316        .15121E-05** at limit **
   4  Prefactor     .10004E-03    2.2281       -.21176E-06** at limit **
   5  Prefactor     .10000E-03    .25020       -.37819E-07** at limit **
   6  Prefactor     2.6424        4.1518        .65288E-07   -.24350E-04
   7  Prefactor     .38335        .54229       -.19134E-08    .22295E-03
   8  Prefactor     1.0288        .72654       -.89061E-07   -.23881E-03
   9  norm          27.390        5.0497        .29640E-07   -.20925E-05
  10  norm          1.3038        1.4081        .11398E-07   -.20915E-03
  11  Prefactor     .75082        .61397        .90202E-08    .12250E-03
  12  Prefactor     2.1027        1.4179       -.10631E-07   -.55760E-04
  13  norm          11.977        8.4417        .27730E-05    .32505E-04
  14  norm          1.4052        .42258        .16281E-07   -.70490E-03
  15  Prefactor     .86531        .54551       -.33250E-08    .26314E-04
  16  Prefactor     .10002E-03    .86238E-01   -.22913E-07** at limit **
  17  Prefactor     .10000E-03    .45059        .12298E-06** at limit **
  18  Prefactor     .10000E-03    .56976       -.12103E-06** at limit **
  19  norm          .20695        .15157       -.39437E-08    .38396E-04
  20  Prefactor     .11593        .39868        .19842E-07   -.16147E-04
  21  norm          .29333        .16767       -.75896E-08   -.25060E-03
  22  Prefactor     .10000E-03    .40993        .57675E-07** at limit **
  23  Prefactor     .10000E-03    .28017        .78085E-07** at limit **
  24  norm          4.3017        .49206       -.27421E-08    .27938E-03
  25  Prefactor     .82666        .62036        .20712E-07    .43323E-03
  26  Prefactor     .10000E-03    3.4356       -.82700E-06** at limit **
  27  norm          1.6244        .98853       -.55984E-07    .93074E-04
  28  Prefactor     11.888        6.7099        .50790E-06    .11282E-03
  29  Prefactor     3.3009        1.0926       -.18316E-07    .22137E-03
  30  Prefactor     14.249        7.8177        .63500E-06    .40868E-04
  31  Prefactor     .10000E-03    11.826       -.40810E-05** at limit **
  32  Prefactor     .10000E-03    3.1685       -.24887E-05** at limit **
  33  Prefactor     .10000E-03    1.1123        .56659E-07** at limit **
  34  Prefactor     1.3332        2.4975       -.17744E-05   -.43327E-04
  35  Normalizat    .98310        .48446E-01   -.14001E-06    .31009E-03
  36  Prefactor     1.0917        .41049E-01    .66354E-07    .24139E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.04369
  norm       = 0.215004
  Prefactor  = 0.0001
  Prefactor  = 0.000100041
  Prefactor  = 0.0001
  Prefactor  = 2.64237
  Prefactor  = 0.383353
  Prefactor  = 1.02878
  norm       = 27.3898
  norm       = 1.30383
  Prefactor  = 0.750823
  Prefactor  = 2.10274
  norm       = 11.9771
  norm       = 1.4052
  Prefactor  = 0.865308
  Prefactor  = 0.000100017
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.206951
  Prefactor  = 0.115926
  norm       = 0.293333
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.30168
  Prefactor  = 0.826665
  Prefactor  = 0.0001
  norm       = 1.62442
  Prefactor  = 11.888
  Prefactor  = 3.3009
  Prefactor  = 14.2492
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.33324
  Normalizat = 0.983103
  Prefactor  = 1.09169
 **********
 **   18 **HESSE 
 **********

 FCN=   107066.3     FROM HESSE     STATUS=OK           863 CALLS     5578 TOTAL
                     EDM=   .11E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.0437        1.3279        .27569E-03   -1.5422    
   2  norm          .21500        2.0743        .34886E-02   -1.5615    
   3  Prefactor     .10000E-03    2.7633        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10004E-03    2.2471        .17582       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    .25214        .15917E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.6424        4.2109        .12551E-02   -1.5383    
   7  Prefactor     .38335        1.1938        .26216E-02   -1.5584    
   8  Prefactor     1.0288        .71590        .22587E-03   -1.5505    
   9  norm          27.390        5.0399        .76549E-04   -1.4661    
  10  norm          1.3038        1.4308        .19334E-02   -1.5480    
  11  Prefactor     .75082        .53620        .21561E-02   -1.5535    
  12  Prefactor     2.1027        1.4124        .28453E-03   -1.5418    
  13  norm          11.977        8.4839        .11559E-03   -1.5016    
  14  norm          1.4052        1.3822        .18295E-02   -1.5471    
  15  Prefactor     .86531        .53318        .17794E-03   -1.5522    
  16  Prefactor     .10002E-03    .18569        .32957E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    .45610        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.3290        .47339E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .20695        .14351        .98183E-04   -1.5617    
  20  Prefactor     .11593        .40471        .52308E-01   -1.5640    
  21  norm          .29333        .15062        .93378E-03   -1.5600    
  22  Prefactor     .10000E-03    .42780        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    .77406        .33383E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          4.3017        .49043        .73520E-04   -1.5293    
  25  Prefactor     .82666        .48053        .21229E-02   -1.5526    
  26  Prefactor     .10000E-03    3.4504        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          1.6244        .97412        .23944E-03   -1.5453    
  28  Prefactor     11.888        6.7112        .11626E-03   -1.5018    
  29  Prefactor     3.3009        1.0826        .18282E-03   -1.5345    
  30  Prefactor     14.249        7.8096        .10605E-03   -1.4953    
  31  Prefactor     .10000E-03    11.892        .21114E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     .10000E-03    3.1870        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     .10000E-03    1.1208        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Prefactor     1.3332        2.4853        .37973E-03   -1.5477    
  35  Normalizat    .98310        .55473E-01    .26005E-03   -.93599    
  36  Prefactor     1.0917        .47857E-01    .22594E-03   -.89733    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.11092e-06
Minuit parameter uncertainties:
  1  1.32794
  2  1.33539
  3  4.24597e-06
  4  0.000609596
  5  5.55518e-08
  6  4.21141
  7  1.19385
  8  0.715906
  9  5.03999
  10  1.43086
  11  0.536208
  12  1.41245
  13  8.48473
  14  1.38224
  15  0.533188
  16  0.000110973
  17  3.92966e-09
  18  7.03818e-05
  19  0.143505
  20  0.404721
  21  0.150619
  22  3.98233e-07
  23  6.11581e-06
  24  0.490426
  25  0.480531
  26  1.0899e-06
  27  0.974133
  28  6.71161
  29  1.08263
  30  7.81014
  31  1.85455e-05
  32  1.78835e-07
  33  1.6841e-06
  34  2.48554
  35  0.0554758
  36  0.0478585
Done.

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

Extracting fit parameters...

4FGL J1649.4+5235
   Spectrum: PowerLaw
368    Prefactor:  1.000e-04  3.930e-09  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:  1.092e+00  4.786e-02  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:  9.831e-01  5.548e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 252.364 52.590
Photon Flux Upper Limit: 5.61e-09 ph cm-2 s-1
Energy Flux Upper Limit: 4.24e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/640976/likelihoodResults_672451201_675043201_4FGL_J1649.4+5235_monthly_bin168.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) = 107066.289257
delta logL = -0.010452033297

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 107066.278805
delta logL = 1.00320903584e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0790       1.0000          .0000       10.000    
     3 'Normalizat'    .98310       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0917       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   107066.3     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      239 TOTAL
                     EDM=   .56E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10008E-03    5.2211        .18142E-02** at limit **
   2  Index         2.0635        7.2915        .50000        .67690E-04
   3  Normalizat    .98310        .36788E-02    .26005E-03    .13850E-03
   4  Prefactor     1.0917        .33662E-02    .22594E-03    .16987E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100082
  Index      = 2.06346
  Normalizat = 0.983103
  Prefactor  = 1.09169
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10008E-03    25.116        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0635        8.6955        .50000       -.62773    
   3  Normalizat    .98310        .85050E-02    .10402E-04   -.93599    
   4  Prefactor     1.0917        .77803E-02    .90377E-05   -.89733    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.8813e-08
Minuit parameter uncertainties:
  1  0.00287938
  2  192.61
  3  0.00850497
  4  0.00778031
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/640976': 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) = 107066.278805
delta logL = 2.94952769764e-07

Extracting fit parameters...

4FGL J1649.4+5235
   Spectrum: PowerLaw
368    Prefactor:  1.001e-04  2.879e-03  1.000e-04  1.000e+04 ( 1.000e-13)
369        Index:  2.063e+00  1.926e+02  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:  1.092e+00  7.780e-03  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:  9.831e-01  8.505e-03  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 -2.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  2.220e+00 [aplpy.core]
Saving /scratch/kocevski/640976/cmap_HighResolution_672451201_675043201_4FGL_J1649.4+5235_monthly_bin168.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.24e-04', job_status='DONE', photon_flux_upper_limit='5.61e-09', time_completed='2022-05-24 07:48:42.042758', job_id='640976', GAL2='1.09', fit_tolerance='1e-08', EG2='0.98', EG='0.98', time_epoch_completed='1653403722.04', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.09', dlogl='2.95e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.08' WHERE bin_id='168' AND source_name='4FGL J1649.4+5235' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Tue May 24 07:48:42 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0098>
Subject: Job 640976: <4FGL_J1649.4+5235_monthly_bin168> in cluster <slac> Done

Job <4FGL_J1649.4+5235_monthly_bin168> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue May 24 03:30:24 2022
Job was executed on host(s) <bullet0098>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue May 24 03:30:28 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue May 24 03:30:28 2022
Terminated at Tue May 24 07:48:43 2022
Results reported at Tue May 24 07:48:43 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1649.4+5235_monthly_bin168 252.364 52.5901 672451201 675043201 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 :                                   15388.00 sec.
    Max Memory :                                 633 MB
    Average Memory :                             473.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   15494 sec.
    Turnaround time :                            15499 sec.

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

