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 92 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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


Performing analysis on: 4FGL_J2049.9+1002_daily_bin1737
RA = 312.478, Dec = 10.0407
tmin = 689558401, tmax = 689817601
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='163026', job_status='RUN', time_executed='2022-11-11 00:58:53.427143', time_epoch_executed='1668157133.43' WHERE source_name='4FGL J2049.9+1002' and cadence='daily' and bin_id='1737'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/163026

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/163026/ft1_4FGL_J2049.9+1002_daily_bin1737.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/163026/ft2_4FGL_J2049.9+1002_daily_bin1737.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/163026/ft1_4FGL_J2049.9+1002_daily_bin1737.fits outfile=/scratch/kocevski/163026/ft1_filteredMKT_4FGL_J2049.9+1002_daily_bin1737.fits ra=312.478 dec=10.0407 rad=12.0 tmin=689558401.0 tmax=689817601.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.05
user 2.82
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/163026/ft2_4FGL_J2049.9+1002_daily_bin1737.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/163026/ft2_4FGL_J2049.9+1002_daily_bin1737.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/163026/ft1_filteredMKT_4FGL_J2049.9+1002_daily_bin1737.fits evtable="EVENTS" outfile="/scratch/kocevski/163026/ft1_filtered_4FGL_J2049.9+1002_daily_bin1737.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.45
user 0.28
sys 0.16

Number of photons that the gtmktime cut: 987

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/163026/ft1_filtered_4FGL_J2049.9+1002_daily_bin1737.fits" evtable="EVENTS" scfile=/scratch/kocevski/163026/ft2_4FGL_J2049.9+1002_daily_bin1737.fits sctable="SC_DATA" outfile=/scratch/kocevski/163026/ltcube_689558401_689817601_4FGL_J2049.9+1002_daily_bin1737.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/163026/ft2_4FGL_J2049.9+1002_daily_bin1737.fits
.....................!
real 11.37
user 10.98
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/163026/ft1_filtered_4FGL_J2049.9+1002_daily_bin1737.fits evtable="EVENTS" scfile=/scratch/kocevski/163026/ft2_4FGL_J2049.9+1002_daily_bin1737.fits sctable="SC_DATA" expcube=/scratch/kocevski/163026/ltcube_689558401_689817601_4FGL_J2049.9+1002_daily_bin1737.fits outfile=/scratch/kocevski/163026/expmap_689558401_689817601_4FGL_J2049.9+1002_daily_bin1737.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/163026/ltcube_689558401_689817601_4FGL_J2049.9+1002_daily_bin1737.fits
.....................!
real 156.50
user 152.14
sys 4.02

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Extended source W 51C in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/W51C.fits is the correct path to the extended template.
Extended source Cygnus Loop in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/CygnusLoop.fits is the correct path to the extended template.
Added 201 point sources and 2 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J2049.9+1002 @ 312.478 10.0407

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/163026/ft1_filtered_4FGL_J2049.9+1002_daily_bin1737.fits scfile=/scratch/kocevski/163026/ft2_4FGL_J2049.9+1002_daily_bin1737.fits outfile=/scratch/kocevski/163026/cmap_689558401_689817601_4FGL_J2049.9+1002_daily_bin1737.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=312.478 yref=10.0407 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.52
user 0.35
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/163026/ft1_filtered_4FGL_J2049.9+1002_daily_bin1737.fits scfile=/scratch/kocevski/163026/ft2_4FGL_J2049.9+1002_daily_bin1737.fits outfile=/scratch/kocevski/163026/cmap_HighResolution_689558401_689817601_4FGL_J2049.9+1002_daily_bin1737.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=312.478 yref=10.0407 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.35
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/163026/ft1_filtered_4FGL_J2049.9+1002_daily_bin1737.fits evtable="EVENTS" scfile=/scratch/kocevski/163026/ft2_4FGL_J2049.9+1002_daily_bin1737.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/163026/Model_4FGL_J2049.9+1002_daily_bin1737.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 Cygnus Loop
adding source EG_v02
adding source GAL_V02
adding source W 51C
Working on...
/scratch/kocevski/163026/ft1_filtered_4FGL_J2049.9+1002_daily_bin1737.fits.....................!
real 175.02
user 173.45
sys 1.09

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/163026/ft1_filtered_4FGL_J2049.9+1002_daily_bin1737.fits', '/scratch/kocevski/163026/ft2_4FGL_J2049.9+1002_daily_bin1737.fits', expMap='/scratch/kocevski/163026/expmap_689558401_689817601_4FGL_J2049.9+1002_daily_bin1737.fits', expCube='/scratch/kocevski/163026/ltcube_689558401_689817601_4FGL_J2049.9+1002_daily_bin1737.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/163026/Model_4FGL_J2049.9+1002_daily_bin1737.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2049.9+1002'

4FGL J2049.9+1002
   Spectrum: LogParabola
407         norm:  4.360e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
408        alpha:  2.394e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
409         beta:  1.463e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
410           Eb:  6.403e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/163026/ft1_filtered_4FGL_J2049.9+1002_daily_bin1737.fits
Spacecraft file(s): /scratch/kocevski/163026/ft2_4FGL_J2049.9+1002_daily_bin1737.fits
Exposure map: /scratch/kocevski/163026/expmap_689558401_689817601_4FGL_J2049.9+1002_daily_bin1737.fits
Exposure cube: /scratch/kocevski/163026/ltcube_689558401_689817601_4FGL_J2049.9+1002_daily_bin1737.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/163026/Model_4FGL_J2049.9+1002_daily_bin1737.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) = 10852.5356022

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 10852.5005998

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.4223       1.0000          .0000       .10000E+07
     2 'Prefactor '    5.9277       1.0000          .0000       .10000E+07
     3 'Prefactor '    .10571E-01   1.0000          .0000       .10000E+07
     4 'norm      '    .36144       1.0000          .0000       .10000E+07
     5 'Prefactor '    .87304E-02   1.0000          .0000       .10000E+07
     6 'norm      '    5.1094       1.0000          .0000       .10000E+07
     7 'Prefactor '    .13454E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    25.237       1.0000          .0000       .10000E+07
     9 'Prefactor '    39.437       1.0000          .0000       .10000E+07
    10 'Prefactor '    .66045E-02   1.0000          .0000       .10000E+07
    11 'Prefactor '    22.433       1.0000          .0000       .10000E+07
    12 'norm      '    1.8411       1.0000          .0000       .10000E+07
    13 'Prefactor '    .81758E-03   1.0000          .0000       .10000E+07
    14 'Prefactor '    .14847       1.0000          .0000       .10000E+07
    15 'Normalizat'    .11479       1.0000         .10000E-01   10.000    
    16 'Prefactor '    1.2560       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6980E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10852.49     FROM MIGRAD    STATUS=CONVERGED    137 CALLS     1182 TOTAL
                     EDM=   .25E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.4222        6.2768       -.10029E-06    .76987E-04
   2  Prefactor     6.0634        13.022       -.48407E-07   -.66532E-03
   3  Prefactor     .24425E-08    27.032        .47610E-06** at limit **
   4  norm          .36191        .69815       -.18141E-07   -.14673E-03
   5  Prefactor     .14544E-07    8.2423        .68715E-07** at limit **
   6  norm          5.0967        7.9908        .43319E-07    .40755E-03
   7  Prefactor     .62617E-07    15.847       -.16203E-06** at limit **
   8  Prefactor     25.356        2.6899       -.24882E-07   -.49821E-02
   9  Prefactor     39.689        12.263        .44457E-07   -.26651E-01
  10  Prefactor     .22204E-09    9.8791        .22941E-07** at limit **
  11  Prefactor     31.019        86.264       -.20049E-07    .31212E-03
  12  norm          1.8419        2.6993        .16734E-07   -.12366E-03
  13  Prefactor     .53846E-08    8.0461        .74105E-07** at limit **
  14  Prefactor     .71468E-01    121.62        .21158E-05** at limit **
  15  Normalizat    .10911        .27383       -.11269E-04   -.12707E-04
  16  Prefactor     1.2568        .95356E-01    .72760E-06   -.15008E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.4222
  Prefactor  = 6.06341
  Prefactor  = 2.44249e-09
  norm       = 0.361909
  Prefactor  = 1.45439e-08
  norm       = 5.0967
  Prefactor  = 6.26166e-08
  Prefactor  = 25.3558
  Prefactor  = 39.6887
  Prefactor  = 2.22045e-10
  Prefactor  = 31.0185
  norm       = 1.84194
  Prefactor  = 5.38458e-09
  Prefactor  = 0.0714678
  Normalizat = 0.109114
  Prefactor  = 1.25679
 **********
 **   18 **HESSE 
 **********

 FCN=   10852.49     FROM HESSE     STATUS=NOT POSDEF   243 CALLS     1425 TOTAL
                     EDM=   .92E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.4222        6.1784        .90653E-03   -1.5684    
   2  Prefactor     6.0634        16.102        .41221E-03   -1.5659    
   3  Prefactor     .24425E-08    24.050        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .36191        .87434        .94097E-03   -1.5696    
   5  Prefactor     .14544E-07    15.506        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          5.0967        12.743        .44456E-03   -1.5663    
   7  Prefactor     .62617E-07    18.163        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     25.356        35.785        .19910E-03   -1.5607    
   9  Prefactor     39.689        33.625        .15926E-03   -1.5582    
  10  Prefactor     .22204E-09    8.8001        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     31.019        286.31        .21119E-03   -1.5597    
  12  norm          1.8419        2.6715        .76844E-03   -1.5681    
  13  Prefactor     .53846E-08    15.855        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .71468E-01    10.773        .97996E-02   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Normalizat    .10911        6.9559        .29213       -1.3713    
  16  Prefactor     1.2568        .54082        .33424E-01   -.84601    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.15004e-07
Minuit parameter uncertainties:
  1  5.92857
  2  16.1021
  3  0.000487428
  4  0.874341
  5  0.000950336
  6  12.7426
  7  0.00213313
  8  35.7857
  9  33.6255
  10  9.05003e-05
  11  188.49
  12  2.67149
  13  0.000583394
  14  1.7549
  15  1.55852
  16  0.543253
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 10852.4944655

Extracting fit parameters...

4FGL J2049.9+1002
   Spectrum: LogParabola
407         norm:  5.097e+00  1.274e+01  0.000e+00  1.000e+06 ( 1.000e-12)
408        alpha:  2.394e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
409         beta:  1.463e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
410           Eb:  6.403e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
691    Prefactor:  1.257e+00  5.433e-01  0.000e+00  1.000e+01 ( 1.000e+00)
692        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
693        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
690   Normalization:  1.091e-01  1.559e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.50
Ra Dec: 312.478 10.041
Photon Flux Upper Limit: 1.11e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.52e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/163026/likelihoodResults_689558401_689817601_4FGL_J2049.9+1002_daily_bin1737.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10852.0705803
delta logL = 0.423885151949

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10852.0464236
delta logL = 0.448041871843

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.1392       1.0000          .0000       .10000E+07
     2 'alpha     '    3.2863       1.0000          .0000       5.0000    
     3 'Normalizat'    .70139E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2637       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6980E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10852.05     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      228 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.1406        99.315        .49521E-03    .74768E-02
   2  alpha         3.2857        3.9414        .44076        .75070E-04
   3  Normalizat    .70055E-01    .56153E-01    .33084        .17454E-03
   4  Prefactor     1.2637        .26029E-01    .33274E-01   -.97535E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 4.14058
  alpha      = 3.28575
  Normalizat = 0.0700547
  Prefactor  = 1.26372
 **********
 **   18 **HESSE 
 **********

 FCN=   10852.05     FROM HESSE     STATUS=OK            35 CALLS      263 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.1406        7.1310        .19230E-04   -1.5667    
   2  alpha         3.2857        1.1294        .23753E-01    .31972    
   3  Normalizat    .70055E-01    .37962        .12182E-01   -1.4156    
   4  Prefactor     1.2637        .10691        .13763E-03   -.84392    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.20963e-08
Minuit parameter uncertainties:
  1  7.13099
  2  1.17712
  3  0.304875
  4  0.106925
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/163026': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10852.0464233
delta logL = 0.448042174463

Extracting fit parameters...

4FGL J2049.9+1002
   Spectrum: LogParabola
407         norm:  4.141e+00  7.131e+00  0.000e+00  1.000e+06 ( 1.000e-12)
408        alpha:  3.286e+00  1.177e+00  0.000e+00  5.000e+00 ( 1.000e+00)
409         beta:  1.463e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
410           Eb:  6.403e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
691    Prefactor:  1.264e+00  1.069e-01  0.000e+00  1.000e+01 ( 1.000e+00)
692        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
693        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
690   Normalization:  7.005e-02  3.049e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.44
Ra Dec: 312.478 10.041
Photon Index (Free Index): 3.29 +/- 1.18
Photon Flux (Free Index): 5.92e-08 +/- 5.84e-08
Energy Flux (Free Index): 1.13e-05 +/- 1.13e-05

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/163026/cmap_HighResolution_689558401_689817601_4FGL_J2049.9+1002_daily_bin1737.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.52e-05', comment='SUCCESS', energy_flux2='1.13e-05', dlogl='4.48e-01', photon_flux2='5.92e-08', job_status='DONE', time_completed='2022-11-11 01:11:07.858369', photon_index_error2='1.18', photon_index2='3.29', ts='0.50', fit_tolerance='1e-08', GAL='1.26', photon_index_error='0.00', photon_flux_upper_limit='1.11e-07', energy_flux_error2='1.13e-05', EG='0.11', time_epoch_completed='1668157867.86', return_code='102', job_id='163026', GAL2='1.26', EG2='0.07', return_code2='0', photon_flux_error2='5.84e-08', ts2='1.44', photon_index='2.39' WHERE bin_id='1737' AND source_name='4FGL J2049.9+1002' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Nov 11 01:11:07 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0247>
Subject: Job 163026: <4FGL_J2049.9+1002_daily_bin1737> in cluster <slac> Done

Job <4FGL_J2049.9+1002_daily_bin1737> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Nov 11 00:55:34 2022
Job was executed on host(s) <bullet0247>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Nov 11 00:57:13 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Nov 11 00:57:13 2022
Terminated at Fri Nov 11 01:11:08 2022
Results reported at Fri Nov 11 01:11:08 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2049.9+1002_daily_bin1737 312.478 10.0407 689558401 689817601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2049.9+1002 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   733.88 sec.
    Max Memory :                                 629 MB
    Average Memory :                             349.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   2931 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   835 sec.
    Turnaround time :                            934 sec.

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

