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


Performing analysis on: 4FGL_J2049.9+1002_daily_bin1761
RA = 312.478, Dec = 10.0407
tmin = 695779201, tmax = 696038401
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='931998', job_status='RUN', time_executed='2023-01-22 01:32:29.160308', time_epoch_executed='1674379949.16' WHERE source_name='4FGL J2049.9+1002' and cadence='daily' and bin_id='1761'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/931998

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/931998/ft1_4FGL_J2049.9+1002_daily_bin1761.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/931998/ft2_4FGL_J2049.9+1002_daily_bin1761.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/931998/ft1_4FGL_J2049.9+1002_daily_bin1761.fits outfile=/scratch/kocevski/931998/ft1_filteredMKT_4FGL_J2049.9+1002_daily_bin1761.fits ra=312.478 dec=10.0407 rad=12.0 tmin=695779201.0 tmax=696038401.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 5.06
user 4.82
sys 0.21

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

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

Number of photons that the gtmktime cut: 801

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/931998/ft1_filtered_4FGL_J2049.9+1002_daily_bin1761.fits" evtable="EVENTS" scfile=/scratch/kocevski/931998/ft2_4FGL_J2049.9+1002_daily_bin1761.fits sctable="SC_DATA" outfile=/scratch/kocevski/931998/ltcube_695779201_696038401_4FGL_J2049.9+1002_daily_bin1761.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/931998/ft2_4FGL_J2049.9+1002_daily_bin1761.fits
.....................!
real 14.11
user 13.70
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/931998/ft1_filtered_4FGL_J2049.9+1002_daily_bin1761.fits evtable="EVENTS" scfile=/scratch/kocevski/931998/ft2_4FGL_J2049.9+1002_daily_bin1761.fits sctable="SC_DATA" expcube=/scratch/kocevski/931998/ltcube_695779201_696038401_4FGL_J2049.9+1002_daily_bin1761.fits outfile=/scratch/kocevski/931998/expmap_695779201_696038401_4FGL_J2049.9+1002_daily_bin1761.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/931998/ltcube_695779201_696038401_4FGL_J2049.9+1002_daily_bin1761.fits
.....................!
real 193.65
user 186.18
sys 5.97

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/931998/ft1_filtered_4FGL_J2049.9+1002_daily_bin1761.fits scfile=/scratch/kocevski/931998/ft2_4FGL_J2049.9+1002_daily_bin1761.fits outfile=/scratch/kocevski/931998/cmap_695779201_696038401_4FGL_J2049.9+1002_daily_bin1761.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.56
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/931998/ft1_filtered_4FGL_J2049.9+1002_daily_bin1761.fits scfile=/scratch/kocevski/931998/ft2_4FGL_J2049.9+1002_daily_bin1761.fits outfile=/scratch/kocevski/931998/cmap_HighResolution_695779201_696038401_4FGL_J2049.9+1002_daily_bin1761.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.56
user 0.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .20833E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    3.5297       1.0000          .0000       .10000E+07
     3 'Prefactor '    .75332E-03   1.0000          .0000       .10000E+07
     4 'norm      '    .32034E-05   1.0000          .0000       .10000E+07
     5 'Prefactor '    46.551       1.0000          .0000       .10000E+07
     6 'norm      '    2.0698       1.0000          .0000       .10000E+07
     7 'Prefactor '    .26557E-06   1.0000          .0000       .10000E+07
     8 'Prefactor '    1.3839       1.0000          .0000       .10000E+07
     9 'Prefactor '    41.091       1.0000          .0000       .10000E+07
    10 'Prefactor '    .42037       1.0000          .0000       .10000E+07
    11 'Prefactor '    100.86       1.0000          .0000       .10000E+07
    12 'norm      '    4.8516       1.0000          .0000       .10000E+07
    13 'Prefactor '    50.708       1.0000          .0000       .10000E+07
    14 'Prefactor '    7.4135       1.0000          .0000       .10000E+07
    15 'Normalizat'    .38589       1.0000         .10000E-01   10.000    
    16 'Prefactor '    1.1188       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=   8650.498     FROM MIGRAD    STATUS=CONVERGED    172 CALLS     1233 TOTAL
                     EDM=   .87E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        11.171       -.57142E-07** at limit **
   2  Prefactor     3.5099        11.573        .22809E-06   -.21439E-04
   3  Prefactor      .0000        18.587        .10760E-06** at limit **
   4  norm           .0000        .70615       -.37622E-08** at limit **
   5  Prefactor     48.640        69.629       -.19909E-06    .38080E-04
   6  norm          1.8981        19.656        .47395E-06    .12708E-03
   7  Prefactor      .0000        4.4535       -.10054E-07** at limit **
   8  Prefactor     1.4127        29.306        .14327E-06    .16545E-04
   9  Prefactor     41.754        30.213       -.49679E-07   -.12305E-04
  10  Prefactor      .0000        53.010        .28237E-06** at limit **
  11  Prefactor     104.70        102.44       -.22458E-06   -.12036E-04
  12  norm          4.8605        4.3944        .51780E-08   -.41848E-04
  13  Prefactor     50.683        30.428        .68635E-07   -.21167E-05
  14  Prefactor     7.5189        6.8360        .46696E-07   -.56713E-04
  15  Normalizat    .38081        .32098        .14944E-05    .13399E-05
  16  Prefactor     1.1197        .10263       -.70282E-06    .17057E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Prefactor  = 3.50987
  Prefactor  = 0
  norm       = 0
  Prefactor  = 48.6402
  norm       = 1.89814
  Prefactor  = 0
  Prefactor  = 1.41265
  Prefactor  = 41.7541
  Prefactor  = 0
  Prefactor  = 104.696
  norm       = 4.86048
  Prefactor  = 50.6835
  Prefactor  = 7.51893
  Normalizat = 0.380812
  Prefactor  = 1.11973
 **********
 **   18 **HESSE 
 **********

 FCN=   8650.498     FROM HESSE     STATUS=OK           243 CALLS     1476 TOTAL
                     EDM=   .81E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        11.145        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.5099        11.868        .53780E-03   -1.5670    
   3  Prefactor      .0000        18.577        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm           .0000        .34265        .18882E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     48.640        75.089        .14658E-03   -1.5568    
   6  norm          1.8981        22.297        .71778E-03   -1.5680    
   7  Prefactor      .0000        4.4655        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.4127        30.594        .92440E-03   -1.5684    
   9  Prefactor     41.754        30.994        .15602E-03   -1.5579    
  10  Prefactor      .0000        53.406        .87163E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     104.70        103.86        .99581E-04   -1.5503    
  12  norm          4.8605        4.4182        .45646E-03   -1.5664    
  13  Prefactor     50.683        30.975        .14044E-03   -1.5566    
  14  Prefactor     7.5189        7.1227        .36812E-03   -1.5653    
  15  Normalizat    .38081        .40600        .15214       -1.1830    
  16  Prefactor     1.1197        .12206        .36912E-01   -.88838    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.08337e-08
Minuit parameter uncertainties:
  1  2.47237e-06
  2  11.8685
  3  4.48016e-06
  4  2.87662e-07
  5  75.0909
  6  13.0111
  7  1.03027e-06
  8  13.1482
  9  30.9944
  10  7.22633e-05
  11  103.858
  12  4.41823
  13  30.9755
  14  7.1227
  15  0.409197
  16  0.122094
Done.

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

Extracting fit parameters...

4FGL J2049.9+1002
   Spectrum: LogParabola
407         norm:  1.898e+00  1.301e+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.120e+00  1.221e-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:  3.808e-01  4.092e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/931998/likelihoodResults_695779201_696038401_4FGL_J2049.9+1002_daily_bin1761.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) = 8649.88067345
delta logL = 0.61706579802

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8649.85129805
delta logL = 0.646441198343

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .48909       1.0000          .0000       .10000E+07
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    .26709       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1442       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=   8649.851     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      284 TOTAL
                     EDM=   .93E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .48927        18.421        .79815E-03    .20485E-01
   2  alpha         5.0000        2.5003        .46437    ** at limit **
   3  Normalizat    .26678        .22594        .18158        .93126E-04
   4  Prefactor     1.1442        .53810E-01    .36108E-01   -.14457E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.489274
  alpha      = 5
  Normalizat = 0.266777
  Prefactor  = 1.14425
 **********
 **   18 **HESSE 
 **********

 FCN=   8649.851     FROM HESSE     STATUS=OK            35 CALLS      319 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .48927        .52039        .57749E-05   -1.5694    
   2  alpha         5.0000        3.1601        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .26678        .30558        .79533E-03   -1.2488    
   4  Prefactor     1.1442        .10262        .13915E-03   -.88065    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.92125e-10
Minuit parameter uncertainties:
  1  0.52039
  2  0.000109652
  3  0.307512
  4  0.102641
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/931998': 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) = 8649.85129751
delta logL = 0.646441742929

Extracting fit parameters...

4FGL J2049.9+1002
   Spectrum: LogParabola
407         norm:  4.893e-01  5.204e-01  0.000e+00  1.000e+06 ( 1.000e-12)
408        alpha:  5.000e+00  1.097e-04  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.144e+00  1.026e-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:  2.668e-01  3.075e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.53
Ra Dec: 312.478 10.041
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 9.04e-08 +/- 9.57e-08
Energy Flux (Free Index): 1.24e-05 +/- 1.32e-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/931998/cmap_HighResolution_695779201_696038401_4FGL_J2049.9+1002_daily_bin1761.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.81e-05', comment='SUCCESS', energy_flux2='1.24e-05', dlogl='6.46e-01', photon_flux2='9.04e-08', job_status='DONE', time_completed='2023-01-22 01:45:36.319594', photon_index_error2='0.00', photon_index2='5.00', ts='0.04', fit_tolerance='1e-08', GAL='1.12', photon_index_error='0.00', photon_flux_upper_limit='1.20e-07', energy_flux_error2='1.32e-05', EG='0.38', time_epoch_completed='1674380736.32', return_code='0', job_id='931998', GAL2='1.14', EG2='0.27', return_code2='0', photon_flux_error2='9.57e-08', ts2='1.53', photon_index='2.39' WHERE bin_id='1761' AND source_name='4FGL J2049.9+1002' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Jan 22 01:45:36 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0252>
Subject: Job 931998: <4FGL_J2049.9+1002_daily_bin1761> in cluster <slac> Done

Job <4FGL_J2049.9+1002_daily_bin1761> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sun Jan 22 01:30:28 2023
Job was executed on host(s) <bullet0252>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jan 22 01:31:50 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Jan 22 01:31:50 2023
Terminated at Sun Jan 22 01:45:37 2023
Results reported at Sun Jan 22 01:45:37 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2049.9+1002_daily_bin1761 312.478 10.0407 695779201 696038401 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 :                                   788.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             397.66 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   826 sec.
    Turnaround time :                            909 sec.

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

