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


Performing analysis on: 4FGL_J2049.9+1002_daily_bin1727
RA = 312.478, Dec = 10.0407
tmin = 686966401, tmax = 687225601
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='214189', job_status='RUN', time_executed='2022-10-12 00:39:14.986354', time_epoch_executed='1665560354.99' WHERE source_name='4FGL J2049.9+1002' and cadence='daily' and bin_id='1727'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/214189

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/214189/ft1_4FGL_J2049.9+1002_daily_bin1727.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/214189/ft2_4FGL_J2049.9+1002_daily_bin1727.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/214189/ft1_4FGL_J2049.9+1002_daily_bin1727.fits outfile=/scratch/kocevski/214189/ft1_filteredMKT_4FGL_J2049.9+1002_daily_bin1727.fits ra=312.478 dec=10.0407 rad=12.0 tmin=686966401.0 tmax=687225601.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 2.91
user 2.67
sys 0.22

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

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

Number of photons that the gtmktime cut: 889

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/214189/ft1_filtered_4FGL_J2049.9+1002_daily_bin1727.fits evtable="EVENTS" scfile=/scratch/kocevski/214189/ft2_4FGL_J2049.9+1002_daily_bin1727.fits sctable="SC_DATA" expcube=/scratch/kocevski/214189/ltcube_686966401_687225601_4FGL_J2049.9+1002_daily_bin1727.fits outfile=/scratch/kocevski/214189/expmap_686966401_687225601_4FGL_J2049.9+1002_daily_bin1727.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/214189/ltcube_686966401_687225601_4FGL_J2049.9+1002_daily_bin1727.fits
.....................!
real 193.30
user 187.46
sys 5.44

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/214189/ft1_filtered_4FGL_J2049.9+1002_daily_bin1727.fits scfile=/scratch/kocevski/214189/ft2_4FGL_J2049.9+1002_daily_bin1727.fits outfile=/scratch/kocevski/214189/cmap_686966401_687225601_4FGL_J2049.9+1002_daily_bin1727.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/214189/ft1_filtered_4FGL_J2049.9+1002_daily_bin1727.fits scfile=/scratch/kocevski/214189/ft2_4FGL_J2049.9+1002_daily_bin1727.fits outfile=/scratch/kocevski/214189/cmap_HighResolution_686966401_687225601_4FGL_J2049.9+1002_daily_bin1727.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.36
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/214189/ft1_filtered_4FGL_J2049.9+1002_daily_bin1727.fits', '/scratch/kocevski/214189/ft2_4FGL_J2049.9+1002_daily_bin1727.fits', expMap='/scratch/kocevski/214189/expmap_686966401_687225601_4FGL_J2049.9+1002_daily_bin1727.fits', expCube='/scratch/kocevski/214189/ltcube_686966401_687225601_4FGL_J2049.9+1002_daily_bin1727.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/214189/Model_4FGL_J2049.9+1002_daily_bin1727.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/214189/ft1_filtered_4FGL_J2049.9+1002_daily_bin1727.fits
Spacecraft file(s): /scratch/kocevski/214189/ft2_4FGL_J2049.9+1002_daily_bin1727.fits
Exposure map: /scratch/kocevski/214189/expmap_686966401_687225601_4FGL_J2049.9+1002_daily_bin1727.fits
Exposure cube: /scratch/kocevski/214189/ltcube_686966401_687225601_4FGL_J2049.9+1002_daily_bin1727.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/214189/Model_4FGL_J2049.9+1002_daily_bin1727.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11258E-05   1.0000          .0000       .10000E+07
     2 'Prefactor '    .12993E-01   1.0000          .0000       .10000E+07
     3 'Prefactor '    .49632E-01   1.0000          .0000       .10000E+07
     4 'norm      '    .65665       1.0000          .0000       .10000E+07
     5 'Prefactor '    .14286E-03   1.0000          .0000       .10000E+07
     6 'norm      '    5.5159       1.0000          .0000       .10000E+07
     7 'Prefactor '    .15538E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    .73057E-05   1.0000          .0000       .10000E+07
     9 'Prefactor '    .41791E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    .17661E-01   1.0000          .0000       .10000E+07
    11 'Prefactor '    .26888E-02   1.0000          .0000       .10000E+07
    12 'norm      '    1.9790       1.0000          .0000       .10000E+07
    13 'Prefactor '    1.6326       1.0000          .0000       .10000E+07
    14 'Prefactor '    12.054       1.0000          .0000       .10000E+07
    15 'Normalizat'    .87957       1.0000         .10000E-01   10.000    
    16 'Prefactor '    .91536       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=   9483.969     FROM MIGRAD    STATUS=CONVERGED    118 CALLS      911 TOTAL
                     EDM=   .80E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .27756E-09    2.6514        .17042E-05** at limit **
   2  Prefactor     .52839E-05    15.454        .43892E-05** at limit **
   3  Prefactor     .12768E-08    39.858        .45862E-05** at limit **
   4  norm          .65950        .66824       -.66275E-06   -.41617E-02
   5  Prefactor     .45325E-06    16.641       -.44026E-05** at limit **
   6  norm          5.6458        7.0078       -.20333E-06   -.35960E-03
   7  Prefactor     .58601E-05    9.8158        .15449E-05** at limit **
   8  Prefactor      .0000        9.3406        .28112E-05** at limit **
   9  Prefactor     .44409E-09    6.6363        .14329E-05** at limit **
  10  Prefactor     .61062E-09    9.4847       -.50606E-05** at limit **
  11  Prefactor     .24014E-06    38.170       -.33303E-06** at limit **
  12  norm          1.9572        4.2412       -.12275E-06    .14201E-02
  13  Prefactor     1.6427        1.1720       -.21243E-06   -.33473E-02
  14  Prefactor     12.058        8.4709       -.22116E-05   -.93192E-02
  15  Normalizat    .87943        .26938       -.44956E-04   -.16717E-03
  16  Prefactor     .91537        .88661E-01    .10428E-04   -.48003E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.77556e-10
  Prefactor  = 5.28388e-06
  Prefactor  = 1.27676e-09
  norm       = 0.659502
  Prefactor  = 4.53249e-07
  norm       = 5.64582
  Prefactor  = 5.86009e-06
  Prefactor  = 0
  Prefactor  = 4.44089e-10
  Prefactor  = 6.10623e-10
  Prefactor  = 2.40141e-07
  norm       = 1.95723
  Prefactor  = 1.64272
  Prefactor  = 12.0577
  Normalizat = 0.87943
  Prefactor  = 0.915373
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .27756E-09    2.6551        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .52839E-05    25.567        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .12768E-08    15.006        .93792E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .65950        .83766        .64300E-03   -1.5692    
   5  Prefactor     .45325E-06    17.605        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          5.6458        7.0107        .42756E-03   -1.5660    
   7  Prefactor     .58601E-05    21.145        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        9.3372        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .44409E-09    6.6587        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .61062E-09    9.4551        .17196E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .24014E-06    38.617        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.9572        4.2529        .73653E-03   -1.5680    
  13  Prefactor     1.6427        45.455        .82718E-03   -1.5682    
  14  Prefactor     12.058        8.4737        .28828E-03   -1.5639    
  15  Normalizat    .87943        .24074        .98233E-01   -.97187    
  16  Prefactor     .91537        .77715E-01    .32095E-01   -.95606    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.38481e-07
Minuit parameter uncertainties:
  1  5.6354e-05
  2  0.0232462
  3  0.000276706
  4  0.837657
  5  0.00564962
  6  7.01075
  7  0.0222631
  8  2.29535e-05
  9  0.000111131
  10  0.000149061
  11  0.00609061
  12  4.25291
  13  17.2825
  14  8.47368
  15  0.241035
  16  0.0777242
Done.

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

Extracting fit parameters...

4FGL J2049.9+1002
   Spectrum: LogParabola
407         norm:  5.646e+00  7.011e+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

GAL_V02
   Spectrum: PowerLaw
691    Prefactor:  9.154e-01  7.772e-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:  8.794e-01  2.410e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/214189/likelihoodResults_686966401_687225601_4FGL_J2049.9+1002_daily_bin1727.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) = 9483.9334753
delta logL = 0.0353430261694

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9483.92998502
delta logL = 0.038833311346

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.1524       1.0000          .0000       .10000E+07
     2 'alpha     '    2.6623       1.0000          .0000       5.0000    
     3 'Normalizat'    .87134       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91693       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=   9483.930     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      249 TOTAL
                     EDM=   .88E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.1537        7.1370        .17706E-04   -.26714E-01
   2  alpha         2.6624        1.0131        .28719E-01   -.23279E-03
   3  Normalizat    .87126        .26760        .43710E-03    .34930E-03
   4  Prefactor     .91695        .88823E-01    .14170E-03    .11881E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 5.15374
  alpha      = 2.66238
  Normalizat = 0.871259
  Prefactor  = 0.916951
 **********
 **   18 **HESSE 
 **********

 FCN=   9483.930     FROM HESSE     STATUS=OK            23 CALLS      272 TOTAL
                     EDM=   .95E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.1537        6.7921        .70826E-06   -1.5663    
   2  alpha         2.6624        .96616        .11488E-02    .64999E-01
   3  Normalizat    .87126        .26764        .17484E-04   -.97478    
   4  Prefactor     .91695        .88830E-01    .28340E-04   -.95551    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.46389e-09
Minuit parameter uncertainties:
  1  6.79208
  2  0.9921
  3  0.268051
  4  0.0888439
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/214189': 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) = 9483.9299849
delta logL = 0.0388334226081

Extracting fit parameters...

4FGL J2049.9+1002
   Spectrum: LogParabola
407         norm:  5.154e+00  6.792e+00  0.000e+00  1.000e+06 ( 1.000e-12)
408        alpha:  2.662e+00  9.921e-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:  9.170e-01  8.884e-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:  8.713e-01  2.681e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.87
Ra Dec: 312.478 10.041

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/214189/cmap_HighResolution_686966401_687225601_4FGL_J2049.9+1002_daily_bin1727.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.32e-05', job_status='DONE', photon_flux_upper_limit='1.05e-07', time_completed='2022-10-12 00:51:35.190655', job_id='214189', GAL2='0.92', fit_tolerance='1e-08', EG2='0.87', EG='0.88', time_epoch_completed='1665561095.19', return_code2='0', ts='0.87', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='3.88e-02', ts2='0.95', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='1727' AND source_name='4FGL J2049.9+1002' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Oct 12 00:51:35 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0196>
Subject: Job 214189: <4FGL_J2049.9+1002_daily_bin1727> in cluster <slac> Done

Job <4FGL_J2049.9+1002_daily_bin1727> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Oct 12 00:35:41 2022
Job was executed on host(s) <bullet0196>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Oct 12 00:35:42 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Oct 12 00:35:42 2022
Terminated at Wed Oct 12 00:51:36 2022
Results reported at Wed Oct 12 00:51:36 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2049.9+1002_daily_bin1727 312.478 10.0407 686966401 687225601 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 :                                   742.29 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             319.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   953 sec.
    Turnaround time :                            955 sec.

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

