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


Performing analysis on: 4FGL_J2049.9+1002_daily_bin1759
RA = 312.478, Dec = 10.0407
tmin = 695260801, tmax = 695520001
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='571749', job_status='RUN', time_executed='2023-01-16 01:56:48.775248', time_epoch_executed='1673863008.78' WHERE source_name='4FGL J2049.9+1002' and cadence='daily' and bin_id='1759'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/571749

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/571749/ft1_4FGL_J2049.9+1002_daily_bin1759.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/571749/ft2_4FGL_J2049.9+1002_daily_bin1759.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/571749/ft1_4FGL_J2049.9+1002_daily_bin1759.fits outfile=/scratch/kocevski/571749/ft1_filteredMKT_4FGL_J2049.9+1002_daily_bin1759.fits ra=312.478 dec=10.0407 rad=12.0 tmin=695260801.0 tmax=695520001.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.78
user 2.54
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/571749/ft2_4FGL_J2049.9+1002_daily_bin1759.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/571749/ft1_filteredMKT_4FGL_J2049.9+1002_daily_bin1759.fits evtable="EVENTS" outfile="/scratch/kocevski/571749/ft1_filtered_4FGL_J2049.9+1002_daily_bin1759.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.50
user 0.35
sys 0.14

Number of photons that the gtmktime cut: 1086

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/571749/ft1_filtered_4FGL_J2049.9+1002_daily_bin1759.fits" evtable="EVENTS" scfile=/scratch/kocevski/571749/ft2_4FGL_J2049.9+1002_daily_bin1759.fits sctable="SC_DATA" outfile=/scratch/kocevski/571749/ltcube_695260801_695520001_4FGL_J2049.9+1002_daily_bin1759.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/571749/ft2_4FGL_J2049.9+1002_daily_bin1759.fits
.....................!
real 16.52
user 16.01
sys 0.42

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/571749/ft1_filtered_4FGL_J2049.9+1002_daily_bin1759.fits evtable="EVENTS" scfile=/scratch/kocevski/571749/ft2_4FGL_J2049.9+1002_daily_bin1759.fits sctable="SC_DATA" expcube=/scratch/kocevski/571749/ltcube_695260801_695520001_4FGL_J2049.9+1002_daily_bin1759.fits outfile=/scratch/kocevski/571749/expmap_695260801_695520001_4FGL_J2049.9+1002_daily_bin1759.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/571749/ltcube_695260801_695520001_4FGL_J2049.9+1002_daily_bin1759.fits
.....................!
real 194.99
user 188.38
sys 5.74

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/571749/ft1_filtered_4FGL_J2049.9+1002_daily_bin1759.fits scfile=/scratch/kocevski/571749/ft2_4FGL_J2049.9+1002_daily_bin1759.fits outfile=/scratch/kocevski/571749/cmap_695260801_695520001_4FGL_J2049.9+1002_daily_bin1759.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.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/571749/ft1_filtered_4FGL_J2049.9+1002_daily_bin1759.fits scfile=/scratch/kocevski/571749/ft2_4FGL_J2049.9+1002_daily_bin1759.fits outfile=/scratch/kocevski/571749/cmap_HighResolution_695260801_695520001_4FGL_J2049.9+1002_daily_bin1759.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.57
user 0.39
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.9038       1.0000          .0000       .10000E+07
     2 'Prefactor '    .40588E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    .23714E-06   1.0000          .0000       .10000E+07
     4 'norm      '     .0000       1.0000          .0000       .10000E+07
     5 'Prefactor '    .16800E-01   1.0000          .0000       .10000E+07
     6 'norm      '    10.925       1.0000          .0000       .10000E+07
     7 'Prefactor '    .11467E-01   1.0000          .0000       .10000E+07
     8 'Prefactor '    23.745       1.0000          .0000       .10000E+07
     9 'Prefactor '    .25791E-04   1.0000          .0000       .10000E+07
    10 'Prefactor '    22.980       1.0000          .0000       .10000E+07
    11 'Prefactor '    .16552E-01   1.0000          .0000       .10000E+07
    12 'norm      '    6.4339       1.0000          .0000       .10000E+07
    13 'Prefactor '    .79232E-01   1.0000          .0000       .10000E+07
    14 'Prefactor '    3.3520       1.0000          .0000       .10000E+07
    15 'Normalizat'    .81551       1.0000         .10000E-01   10.000    
    16 'Prefactor '    1.1043       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=   11949.32     FROM MIGRAD    STATUS=CONVERGED    110 CALLS      905 TOTAL
                     EDM=   .96E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.9303        2.0106        .58260E-07    .67646E-03
   2  Prefactor      .0000        3.1523       -.80731E-07** at limit **
   3  Prefactor     .16653E-09    7.7930        .22700E-06** at limit **
   4  norm           .0000        .25029        .20578E-08** at limit **
   5  Prefactor     .27756E-09    37.863        .41012E-06** at limit **
   6  norm          11.137        7.9629       -.13229E-06    .37368E-02
   7  Prefactor     .16542E-07    26.073       -.48004E-06** at limit **
   8  Prefactor     23.669        3.7341       -.63210E-07    .10324E-01
   9  Prefactor     .10658E-07    16.954        .47975E-06** at limit **
  10  Prefactor     22.683        5.1971       -.32289E-07    .52929E-01
  11  Prefactor     .55511E-10    37.097       -.15166E-06** at limit **
  12  norm          6.4346        3.6501        .12355E-06   -.18291E-02
  13  Prefactor     .35277E-06    105.75       -.19780E-05** at limit **
  14  Prefactor     3.3496        4.8237        .15745E-07    .46172E-04
  15  Normalizat    .81569        .27156        .30189E-05    .87176E-05
  16  Prefactor     1.1042        .90861E-01   -.85316E-06    .60388E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.93025
  Prefactor  = 0
  Prefactor  = 1.66533e-10
  norm       = 0
  Prefactor  = 2.77556e-10
  norm       = 11.137
  Prefactor  = 1.65423e-08
  Prefactor  = 23.6686
  Prefactor  = 1.06581e-08
  Prefactor  = 22.6827
  Prefactor  = 5.55112e-11
  norm       = 6.43462
  Prefactor  = 3.52773e-07
  Prefactor  = 3.34958
  Normalizat = 0.815691
  Prefactor  = 1.10417
 **********
 **   18 **HESSE 
 **********

 FCN=   11949.32     FROM HESSE     STATUS=OK           235 CALLS     1140 TOTAL
                     EDM=   .53E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.9303        15.836        .33566E-03   -1.5648    
   2  Prefactor      .0000        3.1646        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .16653E-09    7.7959        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm           .0000        .24691        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .27756E-09    37.513        .17257E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          11.137        7.9823        .30286E-03   -1.5641    
   7  Prefactor     .16542E-07    26.240        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     23.669        15.940        .20527E-03   -1.5611    
   9  Prefactor     .10658E-07    17.128        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     22.683        19.529        .20866E-03   -1.5613    
  11  Prefactor     .55511E-10    37.141        .17275E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          6.4346        3.6566        .39545E-03   -1.5657    
  13  Prefactor     .35277E-06    7.9850        .14525E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.3496        4.8382        .55252E-03   -1.5671    
  15  Normalizat    .81569        .25544        .11682       -.99489    
  16  Prefactor     1.1042        .82082E-01    .37427E-01   -.89334    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.30754e-08
Minuit parameter uncertainties:
  1  15.8361
  2  8.04524e-06
  3  6.81498e-05
  4  8.96811e-08
  5  0.000199786
  6  7.98229
  7  0.00131805
  8  15.9396
  9  0.000853512
  10  19.529
  11  9.22556e-05
  12  3.65656
  13  0.00335671
  14  4.83824
  15  0.255818
  16  0.0820913
Done.

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

Extracting fit parameters...

4FGL J2049.9+1002
   Spectrum: LogParabola
407         norm:  1.114e+01  7.982e+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:  1.104e+00  8.209e-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.157e-01  2.558e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.98
Ra Dec: 312.478 10.041
Photon Index (Fixed Index): 2.39 +/- 0.00
Photon Flux (Fixed Index): 5.30e-08 +/- 3.80e-08
Energy Flux (Fixed Index): 1.68e-05 +/- 1.20e-05

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

Saving results to:
/scratch/kocevski/571749/likelihoodResults_695260801_695520001_4FGL_J2049.9+1002_daily_bin1759.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) = 11949.3112876
delta logL = 0.00968931640637

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11949.3100504
delta logL = 0.0109264651328

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.494       1.0000          .0000       .10000E+07
     2 'alpha     '    2.2921       1.0000          .0000       5.0000    
     3 'Normalizat'    .82134       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1029       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=   11949.31     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      237 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.494        8.5403        .11809E-04    .13612E-01
   2  alpha         2.2922        .68150        .24067E-01    .14058E-03
   3  Normalizat    .82092        .26882        .51655E-03   -.10494E-03
   4  Prefactor     1.1030        .90939E-01    .15256E-03   -.43125E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 11.4939
  alpha      = 2.29221
  Normalizat = 0.820916
  Prefactor  = 1.10304
 **********
 **   18 **HESSE 
 **********

 FCN=   11949.31     FROM HESSE     STATUS=OK            23 CALLS      260 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.494        8.4390        .23619E-05   -1.5640    
   2  alpha         2.2922        .67320        .96269E-03   -.83210E-01
   3  Normalizat    .82092        .26878        .20662E-04   -.99297    
   4  Prefactor     1.1030        .90941E-01    .30513E-04   -.89369    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.1284e-09
Minuit parameter uncertainties:
  1  8.43897
  2  0.681676
  3  0.269219
  4  0.0909538
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/571749': 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) = 11949.3100492
delta logL = 0.01092768538

Extracting fit parameters...

4FGL J2049.9+1002
   Spectrum: LogParabola
407         norm:  1.149e+01  8.439e+00  0.000e+00  1.000e+06 ( 1.000e-12)
408        alpha:  2.292e+00  6.817e-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:  1.103e+00  9.095e-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.209e-01  2.692e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.00
Ra Dec: 312.478 10.041
Photon Index (Free Index): 2.29 +/- 0.68
Photon Flux (Free Index): 4.92e-08 +/- 4.37e-08
Energy Flux (Free Index): 1.71e-05 +/- 1.25e-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/571749/cmap_HighResolution_695260801_695520001_4FGL_J2049.9+1002_daily_bin1759.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.25e-05', comment='SUCCESS', photon_flux='5.30e-08', energy_flux2='1.71e-05', photon_flux_error='3.80e-08', dlogl='1.09e-02', energy_flux='1.68e-05', photon_flux2='4.92e-08', job_status='DONE', time_completed='2023-01-16 02:11:03.014747', photon_index_error2='0.68', photon_index2='2.29', ts='2.98', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', photon_flux_upper_limit='1.34e-07', energy_flux_error2='1.25e-05', EG='0.82', time_epoch_completed='1673863863.01', return_code='0', job_id='571749', GAL2='1.10', EG2='0.82', return_code2='0', energy_flux_error='1.20e-05', photon_flux_error2='4.37e-08', ts2='3.00', photon_index='2.39' WHERE bin_id='1759' AND source_name='4FGL J2049.9+1002' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Jan 16 02:11:03 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0258>
Subject: Job 571749: <4FGL_J2049.9+1002_daily_bin1759> in cluster <slac> Done

Job <4FGL_J2049.9+1002_daily_bin1759> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Jan 16 01:55:16 2023
Job was executed on host(s) <bullet0258>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Jan 16 01:55:58 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Jan 16 01:55:58 2023
Terminated at Mon Jan 16 02:11:03 2023
Results reported at Mon Jan 16 02:11:03 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2049.9+1002_daily_bin1759 312.478 10.0407 695260801 695520001 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 :                                   854.09 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             367.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   905 sec.
    Turnaround time :                            947 sec.

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

