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


Performing analysis on: 4FGL_J2049.9+1002_daily_bin1747
RA = 312.478, Dec = 10.0407
tmin = 692150401, tmax = 692409601
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='812430', job_status='RUN', time_executed='2022-12-11 01:38:23.631733', time_epoch_executed='1670751503.63' WHERE source_name='4FGL J2049.9+1002' and cadence='daily' and bin_id='1747'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/812430

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/812430/ft1_4FGL_J2049.9+1002_daily_bin1747.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/812430/ft2_4FGL_J2049.9+1002_daily_bin1747.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/812430/ft1_4FGL_J2049.9+1002_daily_bin1747.fits outfile=/scratch/kocevski/812430/ft1_filteredMKT_4FGL_J2049.9+1002_daily_bin1747.fits ra=312.478 dec=10.0407 rad=12.0 tmin=692150401.0 tmax=692409601.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 4.00
user 3.77
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/812430/ft2_4FGL_J2049.9+1002_daily_bin1747.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/812430/ft1_filteredMKT_4FGL_J2049.9+1002_daily_bin1747.fits evtable="EVENTS" outfile="/scratch/kocevski/812430/ft1_filtered_4FGL_J2049.9+1002_daily_bin1747.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.49
user 0.31
sys 0.17

Number of photons that the gtmktime cut: 861

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/812430/ft1_filtered_4FGL_J2049.9+1002_daily_bin1747.fits" evtable="EVENTS" scfile=/scratch/kocevski/812430/ft2_4FGL_J2049.9+1002_daily_bin1747.fits sctable="SC_DATA" outfile=/scratch/kocevski/812430/ltcube_692150401_692409601_4FGL_J2049.9+1002_daily_bin1747.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/812430/ft2_4FGL_J2049.9+1002_daily_bin1747.fits
.....................!
real 11.99
user 11.50
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/812430/ft1_filtered_4FGL_J2049.9+1002_daily_bin1747.fits evtable="EVENTS" scfile=/scratch/kocevski/812430/ft2_4FGL_J2049.9+1002_daily_bin1747.fits sctable="SC_DATA" expcube=/scratch/kocevski/812430/ltcube_692150401_692409601_4FGL_J2049.9+1002_daily_bin1747.fits outfile=/scratch/kocevski/812430/expmap_692150401_692409601_4FGL_J2049.9+1002_daily_bin1747.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/812430/ltcube_692150401_692409601_4FGL_J2049.9+1002_daily_bin1747.fits
.....................!
real 190.61
user 185.05
sys 5.24

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/812430/ft1_filtered_4FGL_J2049.9+1002_daily_bin1747.fits scfile=/scratch/kocevski/812430/ft2_4FGL_J2049.9+1002_daily_bin1747.fits outfile=/scratch/kocevski/812430/cmap_692150401_692409601_4FGL_J2049.9+1002_daily_bin1747.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.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/812430/ft1_filtered_4FGL_J2049.9+1002_daily_bin1747.fits scfile=/scratch/kocevski/812430/ft2_4FGL_J2049.9+1002_daily_bin1747.fits outfile=/scratch/kocevski/812430/cmap_HighResolution_692150401_692409601_4FGL_J2049.9+1002_daily_bin1747.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.54
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/812430/ft1_filtered_4FGL_J2049.9+1002_daily_bin1747.fits evtable="EVENTS" scfile=/scratch/kocevski/812430/ft2_4FGL_J2049.9+1002_daily_bin1747.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/812430/Model_4FGL_J2049.9+1002_daily_bin1747.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/812430/ft1_filtered_4FGL_J2049.9+1002_daily_bin1747.fits.....................!
real 188.70
user 187.27
sys 1.11

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/812430/ft1_filtered_4FGL_J2049.9+1002_daily_bin1747.fits', '/scratch/kocevski/812430/ft2_4FGL_J2049.9+1002_daily_bin1747.fits', expMap='/scratch/kocevski/812430/expmap_692150401_692409601_4FGL_J2049.9+1002_daily_bin1747.fits', expCube='/scratch/kocevski/812430/ltcube_692150401_692409601_4FGL_J2049.9+1002_daily_bin1747.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/812430/Model_4FGL_J2049.9+1002_daily_bin1747.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/812430/ft1_filtered_4FGL_J2049.9+1002_daily_bin1747.fits
Spacecraft file(s): /scratch/kocevski/812430/ft2_4FGL_J2049.9+1002_daily_bin1747.fits
Exposure map: /scratch/kocevski/812430/expmap_692150401_692409601_4FGL_J2049.9+1002_daily_bin1747.fits
Exposure cube: /scratch/kocevski/812430/ltcube_692150401_692409601_4FGL_J2049.9+1002_daily_bin1747.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/812430/Model_4FGL_J2049.9+1002_daily_bin1747.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) = 8925.37756751

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .75890E-04   1.0000          .0000       .10000E+07
     2 'Prefactor '    19.520       1.0000          .0000       .10000E+07
     3 'Prefactor '    .15381E-03   1.0000          .0000       .10000E+07
     4 'norm      '    .23531       1.0000          .0000       .10000E+07
     5 'Prefactor '    19.935       1.0000          .0000       .10000E+07
     6 'norm      '    22.823       1.0000          .0000       .10000E+07
     7 'Prefactor '    7.6405       1.0000          .0000       .10000E+07
     8 'Prefactor '    9.9212       1.0000          .0000       .10000E+07
     9 'Prefactor '    .45857E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    .27506E-02   1.0000          .0000       .10000E+07
    11 'Prefactor '    .12747       1.0000          .0000       .10000E+07
    12 'norm      '    4.8006       1.0000          .0000       .10000E+07
    13 'Prefactor '    .14992E-03   1.0000          .0000       .10000E+07
    14 'Prefactor '    .97927       1.0000          .0000       .10000E+07
    15 'Normalizat'    1.2679       1.0000         .10000E-01   10.000    
    16 'Prefactor '    .84843       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=   8925.377     FROM MIGRAD    STATUS=CONVERGED     84 CALLS     1141 TOTAL
                     EDM=   .35E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11102E-08    5.8035        .17236E-06** at limit **
   2  Prefactor     19.704        10.891       -.38279E-07    .21118E-01
   3  Prefactor     .67168E-08    4.1903        .20273E-06** at limit **
   4  norm          .23351        .48617       -.17429E-07** at limit **
   5  Prefactor     19.955        1.8513        .55221E-08   -.63283E-01
   6  norm          22.833        1.7377       -.42567E-08   -.45797E-01
   7  Prefactor     7.6498        1.1995       -.35089E-09    .38174E-02
   8  Prefactor     9.9025        1.5309        .54509E-08    .39365E-02
   9  Prefactor     .99920E-09    12.582        .16087E-06** at limit **
  10  Prefactor     .55511E-10    15.772        .36518E-07** at limit **
  11  Prefactor     .12212E-07    42.325       -.36389E-06** at limit **
  12  norm          4.8004        3.7764       -.57821E-07   -.76631E-03
  13  Prefactor     .16653E-09    4.5007        .20554E-06** at limit **
  14  Prefactor     .94730        1.3442        .21394E-07    .40251E-01
  15  Normalizat    1.2678        .28313        .58258E-05    .92221E-04
  16  Prefactor     .84844        .96816E-01   -.10154E-05    .15933E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.11022e-09
  Prefactor  = 19.7044
  Prefactor  = 6.71685e-09
  norm       = 0.233508
  Prefactor  = 19.9552
  norm       = 22.8332
  Prefactor  = 7.6498
  Prefactor  = 9.90251
  Prefactor  = 9.99201e-10
  Prefactor  = 5.55112e-11
  Prefactor  = 1.22125e-08
  norm       = 4.80042
  Prefactor  = 1.66533e-10
  Prefactor  = 0.947304
  Normalizat = 1.26775
  Prefactor  = 0.84844
 **********
 **   18 **HESSE 
 **********

 FCN=   8925.377     FROM HESSE     STATUS=OK           237 CALLS     1378 TOTAL
                     EDM=   .54E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11102E-08    5.8417        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     19.704        11.794        .22642E-03   -1.5619    
   3  Prefactor     .67168E-08    8.7600        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .23351        .52731        .21705E-02   -1.5698    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     19.955        52.583        .22405E-03   -1.5619    
   6  norm          22.833        12.062        .20937E-03   -1.5612    
   7  Prefactor     7.6498        14.659        .36256E-03   -1.5653    
   8  Prefactor     9.9025        12.589        .31789E-03   -1.5645    
   9  Prefactor     .99920E-09    12.746        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .55511E-10    15.841        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .12212E-07    42.509        .13243E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          4.8004        3.7774        .45893E-03   -1.5664    
  13  Prefactor     .16653E-09    8.6755        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .94730        5.2260        .43030E-03   -1.5688    
  15  Normalizat    1.2678        .24594        .86560E-01   -.84534    
  16  Prefactor     .84844        .80625E-01    .44344E-01   -.97967    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.42366e-07
Minuit parameter uncertainties:
  1  0.000163017
  2  11.7944
  3  0.000484455
  4  0.527307
  5  52.5837
  6  12.0622
  7  14.6587
  8  12.5892
  9  0.000228007
  10  5.86441e-05
  11  0.0014414
  12  3.77739
  13  7.12526e-05
  14  4.45
  15  0.246164
  16  0.0806363
Done.

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

Extracting fit parameters...

4FGL J2049.9+1002
   Spectrum: LogParabola
407         norm:  2.283e+01  1.206e+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:  8.484e-01  8.064e-02  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.268e+00  2.462e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.46
Ra Dec: 312.478 10.041
Photon Index (Fixed Index): 2.39 +/- 0.00
Photon Flux (Fixed Index): 1.09e-07 +/- 5.74e-08
Energy Flux (Fixed Index): 3.44e-05 +/- 1.82e-05

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) = 8924.35629206
delta logL = 1.02076835323

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8924.32129534
delta logL = 1.05576506746

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    15.659       1.0000          .0000       .10000E+07
     2 'alpha     '    3.1193       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1765       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86713       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8924.321     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      276 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          15.658        10.506        .10113E-04    .18008E-01
   2  alpha         3.1195        .55205        .10933E-01    .21501E-03
   3  Normalizat    1.1764        .29324        .39515E-03   -.17349E-03
   4  Prefactor     .86714        .97976E-01    .15394E-03   -.63489E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 15.658
  alpha      = 3.11948
  Normalizat = 1.17644
  Prefactor  = 0.867143
 **********
 **   18 **HESSE 
 **********

 FCN=   8924.321     FROM HESSE     STATUS=OK            25 CALLS      301 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          15.658        9.7097        .40454E-06   -1.5629    
   2  alpha         3.1195        .51037        .43730E-03    .25040    
   3  Normalizat    1.1764        .29313        .15806E-04   -.87334    
   4  Prefactor     .86714        .97963E-01    .30788E-04   -.97299    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04976e-09
Minuit parameter uncertainties:
  1  9.70974
  2  0.514227
  3  0.293544
  4  0.0979823
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/812430': 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) = 8924.32129529
delta logL = 1.05576511464

Extracting fit parameters...

4FGL J2049.9+1002
   Spectrum: LogParabola
407         norm:  1.566e+01  9.710e+00  0.000e+00  1.000e+06 ( 1.000e-12)
408        alpha:  3.119e+00  5.142e-01  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:  8.671e-01  9.798e-02  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.176e+00  2.935e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.84
Ra Dec: 312.478 10.041
Photon Index (Free Index): 3.12 +/- 0.51
Photon Flux (Free Index): 1.79e-07 +/- 7.87e-08
Energy Flux (Free Index): 3.63e-05 +/- 1.42e-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/812430/cmap_HighResolution_692150401_692409601_4FGL_J2049.9+1002_daily_bin1747.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.09e-07', energy_flux2='3.63e-05', photon_flux_error='5.74e-08', dlogl='1.06e+00', energy_flux='3.44e-05', photon_flux2='1.79e-07', job_status='DONE', time_completed='2022-12-11 01:50:17.941488', photon_index_error2='0.51', photon_index2='3.12', ts='8.46', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', energy_flux_error2='1.42e-05', EG='1.27', time_epoch_completed='1670752217.94', return_code='0', job_id='812430', GAL2='0.87', EG2='1.18', return_code2='0', energy_flux_error='1.82e-05', photon_flux_error2='7.87e-08', ts2='10.84', photon_index='2.39' WHERE bin_id='1747' AND source_name='4FGL J2049.9+1002' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Dec 11 01:50:17 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0098>
Subject: Job 812430: <4FGL_J2049.9+1002_daily_bin1747> in cluster <slac> Done

Job <4FGL_J2049.9+1002_daily_bin1747> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Dec 11 01:35:18 2022
Job was executed on host(s) <bullet0098>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Dec 11 01:35:20 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Dec 11 01:35:20 2022
Terminated at Sun Dec 11 01:50:18 2022
Results reported at Sun Dec 11 01:50:18 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2049.9+1002_daily_bin1747 312.478 10.0407 692150401 692409601 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 :                                   716.40 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             337.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   898 sec.
    Turnaround time :                            900 sec.

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

