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 50 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 = 17252
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0849.1+6607_weekly_bin715
RA = 132.275, Dec = 66.1204
tmin = 671414401, tmax = 672019201
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='934331', job_status='RUN', time_executed='2022-04-19 02:26:22.956999', time_epoch_executed='1650360382.96' WHERE source_name='4FGL J0849.1+6607' and cadence='weekly' and bin_id='715'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/934331

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/934331/ft1_4FGL_J0849.1+6607_weekly_bin715.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/934331/ft2_4FGL_J0849.1+6607_weekly_bin715.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/934331/ft1_4FGL_J0849.1+6607_weekly_bin715.fits outfile=/scratch/kocevski/934331/ft1_filteredMKT_4FGL_J0849.1+6607_weekly_bin715.fits ra=132.275 dec=66.1204 rad=12.0 tmin=671414401.0 tmax=672019201.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.59
user 7.25
sys 0.30

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/934331/ft2_4FGL_J0849.1+6607_weekly_bin715.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/934331/ft2_4FGL_J0849.1+6607_weekly_bin715.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/934331/ft1_filteredMKT_4FGL_J0849.1+6607_weekly_bin715.fits evtable="EVENTS" outfile="/scratch/kocevski/934331/ft1_filtered_4FGL_J0849.1+6607_weekly_bin715.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.56
user 0.40
sys 0.13

Number of photons that the gtmktime cut: 1860

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/934331/ft1_filtered_4FGL_J0849.1+6607_weekly_bin715.fits" evtable="EVENTS" scfile=/scratch/kocevski/934331/ft2_4FGL_J0849.1+6607_weekly_bin715.fits sctable="SC_DATA" outfile=/scratch/kocevski/934331/ltcube_671414401_672019201_4FGL_J0849.1+6607_weekly_bin715.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/934331/ft2_4FGL_J0849.1+6607_weekly_bin715.fits
.....................!
real 28.69
user 28.15
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/934331/ft1_filtered_4FGL_J0849.1+6607_weekly_bin715.fits evtable="EVENTS" scfile=/scratch/kocevski/934331/ft2_4FGL_J0849.1+6607_weekly_bin715.fits sctable="SC_DATA" expcube=/scratch/kocevski/934331/ltcube_671414401_672019201_4FGL_J0849.1+6607_weekly_bin715.fits outfile=/scratch/kocevski/934331/expmap_671414401_672019201_4FGL_J0849.1+6607_weekly_bin715.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/934331/ltcube_671414401_672019201_4FGL_J0849.1+6607_weekly_bin715.fits
.....................!
real 190.56
user 184.83
sys 5.34

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

Setting source of interest to:
4FGL J0849.1+6607 @ 132.275 66.1204

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/934331/ft1_filtered_4FGL_J0849.1+6607_weekly_bin715.fits scfile=/scratch/kocevski/934331/ft2_4FGL_J0849.1+6607_weekly_bin715.fits outfile=/scratch/kocevski/934331/cmap_671414401_672019201_4FGL_J0849.1+6607_weekly_bin715.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=132.275 yref=66.1204 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.57
user 0.40
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/934331/ft1_filtered_4FGL_J0849.1+6607_weekly_bin715.fits scfile=/scratch/kocevski/934331/ft2_4FGL_J0849.1+6607_weekly_bin715.fits outfile=/scratch/kocevski/934331/cmap_HighResolution_671414401_672019201_4FGL_J0849.1+6607_weekly_bin715.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=132.275 yref=66.1204 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.58
user 0.42
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/934331/ft1_filtered_4FGL_J0849.1+6607_weekly_bin715.fits evtable="EVENTS" scfile=/scratch/kocevski/934331/ft2_4FGL_J0849.1+6607_weekly_bin715.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/934331/Model_4FGL_J0849.1+6607_weekly_bin715.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/934331/ft1_filtered_4FGL_J0849.1+6607_weekly_bin715.fits....................!
real 200.95
user 198.99
sys 1.37

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/934331/ft1_filtered_4FGL_J0849.1+6607_weekly_bin715.fits', '/scratch/kocevski/934331/ft2_4FGL_J0849.1+6607_weekly_bin715.fits', expMap='/scratch/kocevski/934331/expmap_671414401_672019201_4FGL_J0849.1+6607_weekly_bin715.fits', expCube='/scratch/kocevski/934331/ltcube_671414401_672019201_4FGL_J0849.1+6607_weekly_bin715.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/934331/Model_4FGL_J0849.1+6607_weekly_bin715.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0849.1+6607'

4FGL J0849.1+6607
   Spectrum: PowerLaw
320    Prefactor:  7.311e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
321        Index:  1.974e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
322        Scale:  2.593e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/934331/ft1_filtered_4FGL_J0849.1+6607_weekly_bin715.fits
Spacecraft file(s): /scratch/kocevski/934331/ft2_4FGL_J0849.1+6607_weekly_bin715.fits
Exposure map: /scratch/kocevski/934331/expmap_671414401_672019201_4FGL_J0849.1+6607_weekly_bin715.fits
Exposure cube: /scratch/kocevski/934331/ltcube_671414401_672019201_4FGL_J0849.1+6607_weekly_bin715.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/934331/Model_4FGL_J0849.1+6607_weekly_bin715.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) = 19544.5440488

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.3343       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10702E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.6301       1.0000         .10000E-03   10000.    
     4 'Prefactor '    30.101       1.0000         .10000E-03   10000.    
     5 'norm      '    .19552E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10607E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.5575       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .75991       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.0689       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.9978       1.0000         .10000E-03   10000.    
    11 'norm      '    .99072       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.7696       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10216E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.7671       1.0000         .10000E-03   10000.    
    16 'norm      '    .20300E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    11.370       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .18848E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    2.0837       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    7.2415       1.0000         .10000E-03   10000.    
    23 'norm      '    21.677       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    1.4838       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .12012E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    1.7020       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.1955       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .95005       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7610E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   19544.44     FROM MIGRAD    STATUS=CONVERGED    785 CALLS     3466 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.3342        .36875        .86777E-08   -.28181E-03
   2  Prefactor     .10000E-03    37.726       -.88322E-06** at limit **
   3  Prefactor     7.6208        17.356        .10257E-05    .34220E-04
   4  Prefactor     30.102        18.916       -.18681E-06   -.65306E-04
   5  norm          .10001E-03    .47402       -.42451E-07** at limit **
   6  Prefactor     .10000E-03    .91836        .13382E-06** at limit **
   7  Prefactor     2.5516        17.238        .65644E-06   -.14197E-04
   8  Prefactor     .75941        .81652        .16559E-06    .53160E-04
   9  Prefactor     4.0688        3.8957       -.35940E-06   -.11106E-03
  10  Prefactor     4.9971        3.2699        .26428E-05   -.17801E-02
  11  norm          .99046        1.2153        .57513E-06   -.22644E-03
  12  Prefactor     .10000E-03    7.1316       -.15136E-06** at limit **
  13  Prefactor     5.7683        4.9946       -.11501E-06   -.42998E-04
  14  Prefactor     .10000E-03    10.959        .10339E-06** at limit **
  15  Prefactor     6.7697        4.2911       -.10464E-07   -.21715E-03
  16  norm          .10859E-03    .15905        .12287E-06** at limit **
  17  Prefactor     11.371        7.4137        .85593E-06   -.30295E-03
  18  Prefactor     .10000E-03    2.8735        .18503E-07** at limit **
  19  Prefactor     .10000E-03    2.0110        .30250E-06** at limit **
  20  norm          2.0828        3.2378        .33956E-06   -.10285E-03
  21  Prefactor     .10000E-03    7.5804        .17245E-06** at limit **
  22  norm          7.2416        .83531       -.94871E-09   -.68078E-03
  23  norm          21.676        13.539        .14637E-06   -.92442E-06
  24  Prefactor     .10000E-03    2.7039       -.79743E-06** at limit **
  25  Prefactor     .10000E-03    7.2264       -.45993E-06** at limit **
  26  Prefactor     1.3994        210.31       -.33315E-04   -.12723E-03
  27  Prefactor     .10000E-03    111.00        .34238E-05** at limit **
  28  norm          1.7028        .65481        .28543E-07    .22521E-02
  29  Normalizat    1.1956        .11994       -.10336E-05   -.10899E-03
  30  Prefactor     .95005        .89469E-01   -.33941E-06   -.14714E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.33421
  Prefactor  = 0.0001
  Prefactor  = 7.62081
  Prefactor  = 30.1016
  norm       = 0.000100011
  Prefactor  = 0.0001
  Prefactor  = 2.5516
  Prefactor  = 0.759405
  Prefactor  = 4.06876
  Prefactor  = 4.99711
  norm       = 0.990465
  Prefactor  = 0.0001
  Prefactor  = 5.76833
  Prefactor  = 0.0001
  Prefactor  = 6.76969
  norm       = 0.000108589
  Prefactor  = 11.3713
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 2.08279
  Prefactor  = 0.0001
  norm       = 7.2416
  norm       = 21.6764
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.39937
  Prefactor  = 0.000100004
  norm       = 1.70284
  Normalizat = 1.19561
  Prefactor  = 0.950051
 **********
 **   18 **HESSE 
 **********

 FCN=   19544.44     FROM HESSE     STATUS=OK           612 CALLS     4078 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.3342        .36706        .42538E-04   -1.5477    
   2  Prefactor     .10000E-03    37.772        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     7.6208        17.322        .14518E-03   -1.5156    
   4  Prefactor     30.102        18.575        .73027E-04   -1.4610    
   5  norm          .10001E-03    9.9561        .17893E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.7974        .25982E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.5516        16.905        .25529E-03   -1.5388    
   8  Prefactor     .75941        .77879        .11918E-03   -1.5534    
   9  Prefactor     4.0688        3.8933        .19988E-03   -1.5305    
  10  Prefactor     4.9971        3.3570        .89942E-03   -1.5261    
  11  norm          .99046        1.1910        .16049E-03   -1.5509    
  12  Prefactor     .10000E-03    7.1408        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.7683        4.9956        .16721E-03   -1.5228    
  14  Prefactor     .10000E-03    11.025        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.7697        4.2883        .15424E-03   -1.5188    
  16  norm          .10859E-03    .27980        .19316E-01   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     11.371        7.4197        .59403E-03   -1.5033    
  18  Prefactor     .10000E-03    2.8782        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    11.250        .37103E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          2.0828        3.2178        .28605E-03   -1.5419    
  21  Prefactor     .10000E-03    7.5947        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          7.2416        .83410        .41083E-04   -1.5170    
  23  norm          21.676        13.537        .86030E-04   -1.4776    
  24  Prefactor     .10000E-03    2.7014        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    7.2311        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     1.3994        245.75        .35222E-02   -1.5471    
  27  Prefactor     .10000E-03    111.41        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          1.7028        .65506        .63914E-04   -1.5447    
  29  Normalizat    1.1956        .13713        .27643E-03   -.86739    
  30  Prefactor     .95005        .10395        .24138E-03   -.94413    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.22011e-09
Minuit parameter uncertainties:
  1  0.367061
  2  0.000204533
  3  17.3337
  4  18.5782
  5  0.000674395
  6  2.10977e-05
  7  13.1406
  8  0.778797
  9  3.89352
  10  3.35712
  11  1.19106
  12  1.72888e-05
  13  4.99598
  14  3.77944e-06
  15  4.28847
  16  0.00310048
  17  7.42028
  18  4.78612e-07
  19  0.000159013
  20  3.21807
  21  1.35676e-05
  22  0.8341
  23  13.5392
  24  4.53237e-05
  25  7.02193e-05
  26  37.2435
  27  0.00129899
  28  0.655067
  29  0.137172
  30  0.103974
Done.

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

Extracting fit parameters...

4FGL J0849.1+6607
   Spectrum: PowerLaw
320    Prefactor:  1.000e-04  1.729e-05  1.000e-04  1.000e+04 ( 1.000e-14)
321        Index:  1.974e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
322        Scale:  2.593e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
758    Prefactor:  9.501e-01  1.040e-01  0.000e+00  1.000e+01 ( 1.000e+00)
759        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
760        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
757   Normalization:  1.196e+00  1.372e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 132.275 66.120
Photon Flux Upper Limit: 2.13e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.60e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/934331/likelihoodResults_671414401_672019201_4FGL_J0849.1+6607_weekly_bin715.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) = 19544.4384859
delta logL = -0.000667403404805

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 19544.4378185
delta logL = -5.75892045163e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10131E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9562       1.0000          .0000       10.000    
     3 'Normalizat'    1.1956       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95006       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7610E+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=   19544.44     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      243 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10067E-03    55.427        .18142E-02** at limit **
   2  Index         1.9168        5.3753        .50000        .16498E-04
   3  Normalizat    1.1956        .80482E-02    .27643E-03    .12766E-03
   4  Prefactor     .95005        .63816E-02    .24138E-03    .27317E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100666
  Index      = 1.9168
  Normalizat = 1.19561
  Prefactor  = 0.950051
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10067E-03    252.96        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9168        7.5722        .50000       -.66447    
   3  Normalizat    1.1956        .17777E-01    .11057E-04   -.86739    
   4  Prefactor     .95005        .14095E-01    .96553E-05   -.94413    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.52687e-08
Minuit parameter uncertainties:
  1  0.0260725
  2  440.889
  3  0.0177767
  4  0.0140948
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/934331': 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) = 19544.4378183
delta logL = 2.17001797864e-07

Extracting fit parameters...

4FGL J0849.1+6607
   Spectrum: PowerLaw
320    Prefactor:  1.007e-04  2.607e-02  1.000e-04  1.000e+04 ( 1.000e-14)
321        Index:  1.917e+00  4.409e+02  0.000e+00  1.000e+01 (-1.000e+00)
322        Scale:  2.593e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
758    Prefactor:  9.501e-01  1.409e-02  0.000e+00  1.000e+01 ( 1.000e+00)
759        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
760        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
757   Normalization:  1.196e+00  1.778e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 132.275 66.120

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/934331/cmap_HighResolution_671414401_672019201_4FGL_J0849.1+6607_weekly_bin715.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.60e-03', job_status='DONE', photon_flux_upper_limit='2.13e-08', time_completed='2022-04-19 03:09:51.971638', job_id='934331', GAL2='0.95', fit_tolerance='1e-08', EG2='1.20', EG='1.20', time_epoch_completed='1650362991.97', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='2.17e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.97' WHERE bin_id='715' AND source_name='4FGL J0849.1+6607' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Apr 19 03:09:52 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0029>
Subject: Job 930600: <4FGL_J0849.1+6607_weekly_bin715> in cluster <slac> Done

Job <4FGL_J0849.1+6607_weekly_bin715> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Apr 19 00:06:20 2022
Job was executed on host(s) <bullet0029>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Apr 19 02:12:47 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Apr 19 02:12:47 2022
Terminated at Tue Apr 19 02:57:49 2022
Results reported at Tue Apr 19 02:57:49 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0849.1+6607_weekly_bin715 132.275 66.1204 671414401 672019201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0849.1+6607 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   2581.00 sec.
    Max Memory :                                 1259 MB
    Average Memory :                             334.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   2701 sec.
    Turnaround time :                            10289 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0234>
Subject: Job 934331: <4FGL_J0849.1+6607_weekly_bin715> in cluster <slac> Done

Job <4FGL_J0849.1+6607_weekly_bin715> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Apr 19 00:17:24 2022
Job was executed on host(s) <bullet0234>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Apr 19 02:25:24 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Apr 19 02:25:24 2022
Terminated at Tue Apr 19 03:09:52 2022
Results reported at Tue Apr 19 03:09:52 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0849.1+6607_weekly_bin715 132.275 66.1204 671414401 672019201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0849.1+6607 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   2601.00 sec.
    Max Memory :                                 1004 MB
    Average Memory :                             346.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   2668 sec.
    Turnaround time :                            10348 sec.

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

