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


Performing analysis on: 4FGL_J2049.9+1002_daily_bin1751
RA = 312.478, Dec = 10.0407
tmin = 693187201, tmax = 693446401
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='86550', job_status='RUN', time_executed='2022-12-23 01:17:21.946389', time_epoch_executed='1671787041.95' WHERE source_name='4FGL J2049.9+1002' and cadence='daily' and bin_id='1751'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/86550

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/86550/ft1_4FGL_J2049.9+1002_daily_bin1751.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/86550/ft2_4FGL_J2049.9+1002_daily_bin1751.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/86550/ft1_4FGL_J2049.9+1002_daily_bin1751.fits outfile=/scratch/kocevski/86550/ft1_filteredMKT_4FGL_J2049.9+1002_daily_bin1751.fits ra=312.478 dec=10.0407 rad=12.0 tmin=693187201.0 tmax=693446401.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.66
user 3.43
sys 0.22

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

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

Number of photons that the gtmktime cut: 871

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/86550/ft1_filtered_4FGL_J2049.9+1002_daily_bin1751.fits" evtable="EVENTS" scfile=/scratch/kocevski/86550/ft2_4FGL_J2049.9+1002_daily_bin1751.fits sctable="SC_DATA" outfile=/scratch/kocevski/86550/ltcube_693187201_693446401_4FGL_J2049.9+1002_daily_bin1751.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/86550/ft2_4FGL_J2049.9+1002_daily_bin1751.fits
.....................!
real 12.03
user 11.63
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/86550/ft1_filtered_4FGL_J2049.9+1002_daily_bin1751.fits evtable="EVENTS" scfile=/scratch/kocevski/86550/ft2_4FGL_J2049.9+1002_daily_bin1751.fits sctable="SC_DATA" expcube=/scratch/kocevski/86550/ltcube_693187201_693446401_4FGL_J2049.9+1002_daily_bin1751.fits outfile=/scratch/kocevski/86550/expmap_693187201_693446401_4FGL_J2049.9+1002_daily_bin1751.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/86550/ltcube_693187201_693446401_4FGL_J2049.9+1002_daily_bin1751.fits
.....................!
real 190.68
user 184.62
sys 5.75

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/86550/ft1_filtered_4FGL_J2049.9+1002_daily_bin1751.fits scfile=/scratch/kocevski/86550/ft2_4FGL_J2049.9+1002_daily_bin1751.fits outfile=/scratch/kocevski/86550/cmap_693187201_693446401_4FGL_J2049.9+1002_daily_bin1751.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/86550/ft1_filtered_4FGL_J2049.9+1002_daily_bin1751.fits scfile=/scratch/kocevski/86550/ft2_4FGL_J2049.9+1002_daily_bin1751.fits outfile=/scratch/kocevski/86550/cmap_HighResolution_693187201_693446401_4FGL_J2049.9+1002_daily_bin1751.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.55
user 0.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.050       1.0000          .0000       .10000E+07
     2 'Prefactor '    10.826       1.0000          .0000       .10000E+07
     3 'Prefactor '    .93934E-02   1.0000          .0000       .10000E+07
     4 'norm      '    .23981E-07   1.0000          .0000       .10000E+07
     5 'Prefactor '    .24116E-02   1.0000          .0000       .10000E+07
     6 'norm      '    3.6322       1.0000          .0000       .10000E+07
     7 'Prefactor '    19.878       1.0000          .0000       .10000E+07
     8 'Prefactor '    10.017       1.0000          .0000       .10000E+07
     9 'Prefactor '    .19869E-01   1.0000          .0000       .10000E+07
    10 'Prefactor '    4.4229       1.0000          .0000       .10000E+07
    11 'Prefactor '    .67938E-03   1.0000          .0000       .10000E+07
    12 'norm      '    .33085E-07   1.0000          .0000       .10000E+07
    13 'Prefactor '    3.2447       1.0000          .0000       .10000E+07
    14 'Prefactor '    .96090E-07   1.0000          .0000       .10000E+07
    15 'Normalizat'    .89235       1.0000         .10000E-01   10.000    
    16 'Prefactor '    1.0021       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=   9393.540     FROM MIGRAD    STATUS=CONVERGED    116 CALLS     1127 TOTAL
                     EDM=   .32E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.9525        9.9983        .55045E-07   -.15078E-01
   2  Prefactor     10.634        9.7291       -.14701E-06   -.37217E-02
   3  Prefactor     .18319E-08    12.285        .53443E-06** at limit **
   4  norm           .0000        1.1454       -.42136E-06** at limit **
   5  Prefactor     .22204E-08    14.910       -.44836E-06** at limit **
   6  norm          3.6138        8.6302       -.19323E-06   -.68931E-03
   7  Prefactor     19.878        1.2061       -.14869E-07   -.71533E-01
   8  Prefactor     10.101        9.0441       -.42061E-07   -.22358E-01
   9  Prefactor      .0000        17.386       -.11636E-05** at limit **
  10  Prefactor     4.5640        1.3317        .20268E-07    .20879E-01
  11  Prefactor     .81046E-08    108.15       -.64424E-05** at limit **
  12  norm          .55511E-10    1.5490       -.64840E-06** at limit **
  13  Prefactor     3.3148        1.1954       -.26703E-08   -.18808E-01
  14  Prefactor      .0000        2.0646        .64798E-06** at limit **
  15  Normalizat    .89238        .28156       -.36963E-05    .27681E-04
  16  Prefactor     1.0022        .96556E-01    .53824E-05    .40132E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.95246
  Prefactor  = 10.6339
  Prefactor  = 1.83187e-09
  norm       = 0
  Prefactor  = 2.22045e-09
  norm       = 3.61381
  Prefactor  = 19.8781
  Prefactor  = 10.1015
  Prefactor  = 0
  Prefactor  = 4.56404
  Prefactor  = 8.10463e-09
  norm       = 5.55112e-11
  Prefactor  = 3.31478
  Prefactor  = 0
  Normalizat = 0.892378
  Prefactor  = 1.00219
 **********
 **   18 **HESSE 
 **********

 FCN=   9393.540     FROM HESSE     STATUS=OK           243 CALLS     1370 TOTAL
                     EDM=   .29E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.9525        13.711        .31583E-03   -1.5645    
   2  Prefactor     10.634        9.9371        .30425E-03   -1.5643    
   3  Prefactor     .18319E-08    12.282        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm           .0000        .30307        .27575E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .22204E-08    14.932        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          3.6138        8.6604        .52985E-03   -1.5670    
   7  Prefactor     19.878        20.316        .22436E-03   -1.5619    
   8  Prefactor     10.101        13.715        .31635E-03   -1.5644    
   9  Prefactor      .0000        17.320        .17045E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.5640        22.997        .47861E-03   -1.5665    
  11  Prefactor     .81046E-08    108.80        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .55511E-10    1.5542        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.3148        37.833        .56204E-03   -1.5672    
  14  Prefactor      .0000        2.0661        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Normalizat    .89238        .25945        .10289       -.96728    
  16  Prefactor     1.0022        .85074E-01    .33488E-01   -.92657    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.86189e-07
Minuit parameter uncertainties:
  1  13.7114
  2  9.93713
  3  0.000298194
  4  2.14482e-06
  5  0.000363392
  6  8.66048
  7  20.3158
  8  13.715
  9  3.36059e-06
  10  20.49
  11  0.00187547
  12  1.37632e-05
  13  22.3972
  14  1.169e-05
  15  0.259812
  16  0.0850854
Done.

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

Extracting fit parameters...

4FGL J2049.9+1002
   Spectrum: LogParabola
407         norm:  3.614e+00  8.660e+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.002e+00  8.509e-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.924e-01  2.598e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/86550/likelihoodResults_693187201_693446401_4FGL_J2049.9+1002_daily_bin1751.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) = 9393.35353154
delta logL = 0.186806377933

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9393.34735063
delta logL = 0.192987282147

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.9209       1.0000          .0000       .10000E+07
     2 'alpha     '    3.3977       1.0000          .0000       5.0000    
     3 'Normalizat'    .85320       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0095       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=   9393.347     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      224 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.9094        121.84        .59417E-03    .92478E-02
   2  alpha         3.3999        3.0709        .45142        .61061E-04
   3  Normalizat    .85276        .72751E-01    .10503        .37924E-04
   4  Prefactor     1.0097        .23388E-01    .33372E-01   -.25311E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.90936
  alpha      = 3.39991
  Normalizat = 0.852759
  Prefactor  = 1.00967
 **********
 **   18 **HESSE 
 **********

 FCN=   9393.347     FROM HESSE     STATUS=OK            33 CALLS      257 TOTAL
                     EDM=   .79E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.9094        9.7913        .21526E-04   -1.5674    
   2  alpha         3.3999        3.7738        .33221E-01    .36823    
   3  Normalizat    .85276        .29243        .46552E-03   -.98141    
   4  Prefactor     1.0097        .98058E-01    .14747E-03   -.92408    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.90497e-08
Minuit parameter uncertainties:
  1  9.79139
  2  2.53735
  3  0.292972
  4  0.098075
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/86550': 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) = 9393.34734739
delta logL = 0.192990523825

Extracting fit parameters...

4FGL J2049.9+1002
   Spectrum: LogParabola
407         norm:  2.909e+00  9.791e+00  0.000e+00  1.000e+06 ( 1.000e-12)
408        alpha:  3.400e+00  2.537e+00  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.010e+00  9.807e-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.528e-01  2.930e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.20
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/86550/cmap_HighResolution_693187201_693446401_4FGL_J2049.9+1002_daily_bin1751.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.56e-05', job_status='DONE', photon_flux_upper_limit='1.12e-07', time_completed='2022-12-23 01:29:58.728188', job_id='86550', GAL2='1.01', fit_tolerance='1e-08', EG2='0.85', EG='0.89', time_epoch_completed='1671787798.73', return_code2='0', ts='0.20', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='1.93e-01', ts2='0.61', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='1751' AND source_name='4FGL J2049.9+1002' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Dec 23 01:29:58 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0149>
Subject: Job 86550: <4FGL_J2049.9+1002_daily_bin1751> in cluster <slac> Done

Job <4FGL_J2049.9+1002_daily_bin1751> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Fri Dec 23 01:15:23 2022
Job was executed on host(s) <bullet0149>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Dec 23 01:15:25 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Dec 23 01:15:25 2022
Terminated at Fri Dec 23 01:29:59 2022
Results reported at Fri Dec 23 01:29:59 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2049.9+1002_daily_bin1751 312.478 10.0407 693187201 693446401 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 :                                   759.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             304.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   874 sec.
    Turnaround time :                            876 sec.

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

