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 33 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 make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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


Performing analysis on: 4FGL_J2049.9+1002_daily_bin1680
RA = 312.478, Dec = 10.0407
tmin = 674784001, tmax = 675043201
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='598492', job_status='RUN', time_executed='2022-05-24 01:07:30.982853', time_epoch_executed='1653379650.98' WHERE source_name='4FGL J2049.9+1002' and cadence='daily' and bin_id='1680'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/598492

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/598492/ft1_4FGL_J2049.9+1002_daily_bin1680.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/598492/ft2_4FGL_J2049.9+1002_daily_bin1680.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/598492/ft1_4FGL_J2049.9+1002_daily_bin1680.fits outfile=/scratch/kocevski/598492/ft1_filteredMKT_4FGL_J2049.9+1002_daily_bin1680.fits ra=312.478 dec=10.0407 rad=12.0 tmin=674784001.0 tmax=675043201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.53
user 3.32
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/598492/ft1_filtered_4FGL_J2049.9+1002_daily_bin1680.fits" evtable="EVENTS" scfile=/scratch/kocevski/598492/ft2_4FGL_J2049.9+1002_daily_bin1680.fits sctable="SC_DATA" outfile=/scratch/kocevski/598492/ltcube_674784001_675043201_4FGL_J2049.9+1002_daily_bin1680.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/598492/ft2_4FGL_J2049.9+1002_daily_bin1680.fits
.....................!
real 13.51
user 13.14
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/598492/ft1_filtered_4FGL_J2049.9+1002_daily_bin1680.fits evtable="EVENTS" scfile=/scratch/kocevski/598492/ft2_4FGL_J2049.9+1002_daily_bin1680.fits sctable="SC_DATA" expcube=/scratch/kocevski/598492/ltcube_674784001_675043201_4FGL_J2049.9+1002_daily_bin1680.fits outfile=/scratch/kocevski/598492/expmap_674784001_675043201_4FGL_J2049.9+1002_daily_bin1680.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/598492/ltcube_674784001_675043201_4FGL_J2049.9+1002_daily_bin1680.fits
.....................!
real 193.17
user 185.16
sys 5.87

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_archive_v18/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_archive_v18/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/598492/ft1_filtered_4FGL_J2049.9+1002_daily_bin1680.fits scfile=/scratch/kocevski/598492/ft2_4FGL_J2049.9+1002_daily_bin1680.fits outfile=/scratch/kocevski/598492/cmap_674784001_675043201_4FGL_J2049.9+1002_daily_bin1680.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 4.30
user 0.38
sys 0.19

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/598492/ft1_filtered_4FGL_J2049.9+1002_daily_bin1680.fits scfile=/scratch/kocevski/598492/ft2_4FGL_J2049.9+1002_daily_bin1680.fits outfile=/scratch/kocevski/598492/cmap_HighResolution_674784001_675043201_4FGL_J2049.9+1002_daily_bin1680.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.77
user 0.39
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/598492/ft1_filtered_4FGL_J2049.9+1002_daily_bin1680.fits', '/scratch/kocevski/598492/ft2_4FGL_J2049.9+1002_daily_bin1680.fits', expMap='/scratch/kocevski/598492/expmap_674784001_675043201_4FGL_J2049.9+1002_daily_bin1680.fits', expCube='/scratch/kocevski/598492/ltcube_674784001_675043201_4FGL_J2049.9+1002_daily_bin1680.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/598492/Model_4FGL_J2049.9+1002_daily_bin1680.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  1.000e-04  1.000e+04 ( 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  0.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/598492/ft1_filtered_4FGL_J2049.9+1002_daily_bin1680.fits
Spacecraft file(s): /scratch/kocevski/598492/ft2_4FGL_J2049.9+1002_daily_bin1680.fits
Exposure map: /scratch/kocevski/598492/expmap_674784001_675043201_4FGL_J2049.9+1002_daily_bin1680.fits
Exposure cube: /scratch/kocevski/598492/ltcube_674784001_675043201_4FGL_J2049.9+1002_daily_bin1680.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/598492/Model_4FGL_J2049.9+1002_daily_bin1680.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) = 9798.22518962

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    4.4091       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10580E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.2274       1.0000         .10000E-03   10000.    
     5 'norm      '    .81554E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.961       1.0000         .10000E-03   10000.    
     7 'norm      '    .10038E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    44.104       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11874E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.4806       1.0000         .10000E-03   10000.    
    18 'Prefactor '    11.412       1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.5268       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .98821       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .92025       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.

 FCN=   9798.224     FROM MIGRAD    STATUS=CONVERGED    488 CALLS     3116 TOTAL
                     EDM=   .12E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.7144       -.92609E-08** at limit **
   2  norm          4.4091        4.5861       -.22050E-06    .29946E-05
   3  Prefactor     .10000E-03    15.947        .25137E-06** at limit **
   4  Prefactor     5.2093        12.414        .23502E-06   -.26859E-04
   5  norm          .81753E-01    .35033        .11279E-06   -.27963E-03
   6  Prefactor     11.963        26.540        .13961E-07    .45658E-05
   7  norm          .10000E-03    6.0309       -.32658E-06** at limit **
   8  norm          44.070        45.704        .33332E-05    .37778E-05
   9  Prefactor     .10000E-03    38.512       -.13793E-05** at limit **
  10  Prefactor     .10000E-03    13.980       -.80513E-06** at limit **
  11  Prefactor     .10000E-03    15.465        .55185E-07** at limit **
  12  Prefactor     .10000E-03    11.909       -.23538E-06** at limit **
  13  Prefactor     .10000E-03    8.7144        .17058E-06** at limit **
  14  Prefactor     .10000E-03    11.147        .39850E-06** at limit **
  15  Prefactor     .10000E-03    6.2390        .44901E-06** at limit **
  16  Prefactor     .10000E-03    70.074        .14704E-06** at limit **
  17  norm          1.4811        4.1842        .40919E-06    .10688E-04
  18  Prefactor     11.417        22.487        .38435E-07   -.12763E-05
  19  Prefactor     5.5301        5.6770        .11466E-05    .27460E-04
  20  Prefactor     .10000E-03    7.5508        .75893E-07** at limit **
  21  Normalizat    .98799        .23707       -.11568E-05    .22629E-04
  22  Prefactor     .92026        .78908E-01    .23189E-06    .98874E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 4.40913
  Prefactor  = 0.0001
  Prefactor  = 5.20926
  norm       = 0.0817533
  Prefactor  = 11.9629
  norm       = 0.0001
  norm       = 44.0701
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.48107
  Prefactor  = 11.4169
  Prefactor  = 5.5301
  Prefactor  = 0.0001
  Normalizat = 0.987992
  Prefactor  = 0.920265
 **********
 **   18 **HESSE 
 **********

 FCN=   9798.224     FROM HESSE     STATUS=OK           342 CALLS     3458 TOTAL
                     EDM=   .48E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.7178        .15927E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.4091        4.5901        .19179E-03   -1.5288    
   3  Prefactor     .10000E-03    16.119        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     5.2093        11.882        .17581E-03   -1.5251    
   5  norm          .81753E-01    .51139        .10121E-02   -1.5651    
   6  Prefactor     11.963        26.442        .11583E-03   -1.5016    
   7  norm          .10000E-03    6.1324        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          44.070        45.828        .30184E-03   -1.4379    
   9  Prefactor     .10000E-03    39.883        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    14.062        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    15.474        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    12.038        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    8.7288        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    11.185        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    6.2397        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    70.173        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.4811        4.1685        .32888E-03   -1.5465    
  18  Prefactor     11.417        22.542        .11859E-03   -1.5032    
  19  Prefactor     5.5301        5.6949        .85450E-03   -1.5238    
  20  Prefactor     .10000E-03    7.7501        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .98799        .27241        .41036E-03   -.93434    
  22  Prefactor     .92026        .91825E-01    .14595E-03   -.95437    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.75934e-08
Minuit parameter uncertainties:
  1  3.2185e-08
  2  4.59047
  3  6.40808e-05
  4  11.8874
  5  0.408696
  6  26.4678
  7  3.39747e-06
  8  45.8648
  9  0.000198477
  10  2.83088e-06
  11  6.76969e-07
  12  4.4749e-07
  13  4.4331e-07
  14  1.01575e-06
  15  2.46227e-07
  16  4.84657e-06
  17  4.16932
  18  22.5588
  19  5.69544
  20  2.17987e-06
  21  0.272789
  22  0.0918404
Done.

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

Extracting fit parameters...

4FGL J2049.9+1002
   Spectrum: LogParabola
407         norm:  1.000e-04  3.397e-06  1.000e-04  1.000e+04 ( 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  0.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.203e-01  9.184e-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:  9.880e-01  2.728e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 312.478 10.041
Photon Flux Upper Limit: 7.28e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.30e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/598492/likelihoodResults_674784001_675043201_4FGL_J2049.9+1002_daily_bin1680.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) = 9798.22460893
delta logL = -0.000777469562308

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9798.22383145
delta logL = 1.26656232169e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3879       1.0000          .0000       5.0000    
     3 'Normalizat'    .98799       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92026       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=   9798.224     FROM MIGRAD    STATUS=CONVERGED    105 CALLS      257 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1300.7        .18142E-02** at limit **
   2  alpha         2.1916        3.0889        .16482       -.10347E-07
   3  Normalizat    .98799        .14600        .41036E-03    .10178E-03
   4  Prefactor     .92026        .50711E-01    .14595E-03    .30654E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.19161
  Normalizat = 0.987992
  Prefactor  = 0.920265
 **********
 **   18 **HESSE 
 **********

 FCN=   9798.224     FROM HESSE     STATUS=OK            23 CALLS      280 TOTAL
                     EDM=   .23E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    6.3128        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.1916        3.3664        .65926E-02   -.12367    
   3  Normalizat    .98799        .26041        .16415E-04   -.93434    
   4  Prefactor     .92026        .90519E-01    .29189E-04   -.95437    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.26599e-11
Minuit parameter uncertainties:
  1  2.61288e-06
  2  285.701
  3  0.260748
  4  0.0905339
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/598492': 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) = 9798.22383123
delta logL = 2.26082192967e-07

Extracting fit parameters...

4FGL J2049.9+1002
   Spectrum: LogParabola
407         norm:  1.000e-04  2.613e-06  1.000e-04  1.000e+04 ( 1.000e-12)
408        alpha:  2.192e+00  2.857e+02  0.000e+00  5.000e+00 ( 1.000e+00)
409         beta:  1.463e-01  0.000e+00  0.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.203e-01  9.053e-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:  9.880e-01  2.607e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/598492/cmap_HighResolution_674784001_675043201_4FGL_J2049.9+1002_daily_bin1680.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.30e-05', job_status='DONE', photon_flux_upper_limit='7.28e-08', time_completed='2022-05-24 01:27:37.741459', job_id='598492', GAL2='0.92', fit_tolerance='1e-08', EG2='0.99', EG='0.99', time_epoch_completed='1653380857.74', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='2.26e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='1680' AND source_name='4FGL J2049.9+1002' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue May 24 01:27:37 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0039>
Subject: Job 598492: <4FGL_J2049.9+1002_daily_bin1680> in cluster <slac> Done

Job <4FGL_J2049.9+1002_daily_bin1680> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue May 24 01:05:33 2022
Job was executed on host(s) <bullet0039>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue May 24 01:06:47 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue May 24 01:06:47 2022
Terminated at Tue May 24 01:27:38 2022
Results reported at Tue May 24 01:27:38 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2049.9+1002_daily_bin1680 312.478 10.0407 674784001 675043201 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 :                                   1184.05 sec.
    Max Memory :                                 628 MB
    Average Memory :                             349.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   2931 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   1251 sec.
    Turnaround time :                            1325 sec.

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

