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


Performing analysis on: 4FGL_J2049.9+1002_daily_bin1702
RA = 312.478, Dec = 10.0407
tmin = 680486401, tmax = 680745601
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='257578', job_status='RUN', time_executed='2022-07-29 01:33:12.013877', time_epoch_executed='1659083592.01' WHERE source_name='4FGL J2049.9+1002' and cadence='daily' and bin_id='1702'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/257578

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/257578/ft1_4FGL_J2049.9+1002_daily_bin1702.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/257578/ft2_4FGL_J2049.9+1002_daily_bin1702.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/257578/ft1_4FGL_J2049.9+1002_daily_bin1702.fits outfile=/scratch/kocevski/257578/ft1_filteredMKT_4FGL_J2049.9+1002_daily_bin1702.fits ra=312.478 dec=10.0407 rad=12.0 tmin=680486401.0 tmax=680745601.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.95
user 2.74
sys 0.19

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

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

Number of photons that the gtmktime cut: 482

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/257578/ft1_filtered_4FGL_J2049.9+1002_daily_bin1702.fits evtable="EVENTS" scfile=/scratch/kocevski/257578/ft2_4FGL_J2049.9+1002_daily_bin1702.fits sctable="SC_DATA" expcube=/scratch/kocevski/257578/ltcube_680486401_680745601_4FGL_J2049.9+1002_daily_bin1702.fits outfile=/scratch/kocevski/257578/expmap_680486401_680745601_4FGL_J2049.9+1002_daily_bin1702.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/257578/ltcube_680486401_680745601_4FGL_J2049.9+1002_daily_bin1702.fits
.....................!
real 192.27
user 186.39
sys 5.51

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/257578/ft1_filtered_4FGL_J2049.9+1002_daily_bin1702.fits scfile=/scratch/kocevski/257578/ft2_4FGL_J2049.9+1002_daily_bin1702.fits outfile=/scratch/kocevski/257578/cmap_680486401_680745601_4FGL_J2049.9+1002_daily_bin1702.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=312.478 yref=10.0407 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/257578/ft1_filtered_4FGL_J2049.9+1002_daily_bin1702.fits scfile=/scratch/kocevski/257578/ft2_4FGL_J2049.9+1002_daily_bin1702.fits outfile=/scratch/kocevski/257578/cmap_HighResolution_680486401_680745601_4FGL_J2049.9+1002_daily_bin1702.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.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    25.664       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11588E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    104.23       1.0000         .10000E-03   10000.    
     7 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.1737       1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.729       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    8.3867       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .14025E-01   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .32826E-01   1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.2165       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=   5595.006     FROM MIGRAD    STATUS=CONVERGED    904 CALLS     3211 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     25.664        31.550        .79075E-04   -.71914E-04
   2  norm          .10000E-03    4.5672        .15577E-02** at limit **
   3  Prefactor     .10002E-03    19.314        .82736E-01** at limit **
   4  Prefactor     .10000E-03    16.224        .18142E-02** at limit **
   5  norm          .10000E-03    .75914        .10292E-02** at limit **
   6  Prefactor     104.27        109.18        .39387E-04   -.49877E-04
   7  norm          .10000E-03    16.057        .18142E-02** at limit **
   8  norm          .10000E-03    53.416        .18142E-02** at limit **
   9  Prefactor     9.1759        50.293        .13232E-03   -.90126E-04
  10  Prefactor     13.733        26.414        .10810E-03    .10517E-06
  11  Prefactor     .10000E-03    58.266        .18142E-02** at limit **
  12  Prefactor     .10000E-03    10.740        .18142E-02** at limit **
  13  Prefactor     .10006E-03    147.99        .18142E-02** at limit **
  14  Prefactor     .10000E-03    39.282        .18142E-02** at limit **
  15  Prefactor     .10000E-03    48.024        .18142E-02** at limit **
  16  Prefactor     .10002E-03    238.64        .18142E-02** at limit **
  17  norm          8.3872        5.8208        .13843E-03   -.83934E-04
  18  Prefactor     .10002E-03    86.291        .18674    ** at limit **
  19  Prefactor     .10000E-03    5.7645        .17465E-02** at limit **
  20  Prefactor     .10000E-03    5.1365        .16537E-02** at limit **
  21  Normalizat    .31994E-01    9.0350        .16035E-01    .15268E-04
  22  Prefactor     1.2167        .29713        .13617E-03    .99350E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 25.6639
  norm       = 0.0001
  Prefactor  = 0.000100021
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 104.269
  norm       = 0.0001
  norm       = 0.000100005
  Prefactor  = 9.1759
  Prefactor  = 13.733
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100059
  Prefactor  = 0.000100003
  Prefactor  = 0.000100001
  Prefactor  = 0.000100024
  norm       = 8.38723
  Prefactor  = 0.000100023
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.0319943
  Prefactor  = 1.21665
 **********
 **   18 **HESSE 
 **********

 FCN=   5595.006     FROM HESSE     STATUS=OK           342 CALLS     3553 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     25.664        31.512        .15815E-04   -1.4694    
   2  norm          .10000E-03    4.5677        .31155E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10002E-03    18.370        .85265E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    16.225        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    .75950        .20584E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     104.27        102.98        .78774E-05   -1.3662    
   7  norm          .10000E-03    16.059        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    53.417        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     9.1759        34.146        .52929E-05   -1.5102    
  10  Prefactor     13.733        24.547        .43240E-05   -1.4967    
  11  Prefactor     .10000E-03    58.266        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    10.740        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10006E-03    148.03        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    39.284        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    48.030        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10002E-03    238.64        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          8.3872        5.6596        .55371E-05   -1.5129    
  18  Prefactor     .10002E-03    81.389        .17764       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.7652        .34930E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    5.1367        .33075E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .31994E-01    6.0101        .64140E-03   -1.4769    
  22  Prefactor     1.2167        .13848        .54469E-05   -.85820    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.02445e-09
Minuit parameter uncertainties:
  1  31.5328
  2  2.31125e-05
  3  0.00125408
  4  1.9988e-05
  5  5.77089e-06
  6  103.155
  7  0.000131765
  8  0.00100509
  9  34.2192
  10  24.5652
  11  0.000147462
  12  0.000235078
  13  0.00594078
  14  0.000690678
  15  0.000459235
  16  0.00479092
  17  5.65992
  18  0.00273567
  19  1.22375e-05
  20  2.68351e-06
  21  0.484465
  22  0.138524
Done.

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

Extracting fit parameters...

4FGL J2049.9+1002
   Spectrum: LogParabola
407         norm:  1.000e-04  1.318e-04  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:  1.217e+00  1.385e-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.199e-02  4.845e-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: 1.77e-07 ph cm-2 s-1
Energy Flux Upper Limit: 5.61e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/257578/likelihoodResults_680486401_680745601_4FGL_J2049.9+1002_daily_bin1702.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) = 5595.00659429
delta logL = -0.000296829480249

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5595.00629784
delta logL = -3.81502104574e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11059E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4525       1.0000          .0000       5.0000    
     3 'Normalizat'    .31549E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2168       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=   5595.006     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      250 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10002E-03    23.645        .18142E-02** at limit **
   2  alpha         2.5234        3.5607        .16464       -.19924E-04
   3  Normalizat    .31995E-01    1.6250        .16043E-01    .20418E-04
   4  Prefactor     1.2167        .13204        .13617E-03    .20196E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100017
  alpha      = 2.52336
  Normalizat = 0.0319946
  Prefactor  = 1.21665
 **********
 **   18 **HESSE 
 **********

 FCN=   5595.006     FROM HESSE     STATUS=OK            25 CALLS      275 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10002E-03    23.421        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.5234        3.5573        .65858E-02    .93451E-02
   3  Normalizat    .31995E-01    1.1081        .64171E-03   -1.4769    
   4  Prefactor     1.2167        .10769        .54469E-05   -.85820    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.13565e-09
Minuit parameter uncertainties:
  1  0.00125691
  2  2.50026
  3  0.318698
  4  0.107711
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/257578': 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) = 5595.00629647
delta logL = 9.9774570117e-07

Extracting fit parameters...

4FGL J2049.9+1002
   Spectrum: LogParabola
407         norm:  1.000e-04  1.257e-03  1.000e-04  1.000e+04 ( 1.000e-12)
408        alpha:  2.523e+00  2.500e+00  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:  1.217e+00  1.077e-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.199e-02  3.187e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/257578/cmap_HighResolution_680486401_680745601_4FGL_J2049.9+1002_daily_bin1702.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.61e-05', job_status='DONE', photon_flux_upper_limit='1.77e-07', time_completed='2022-07-29 01:46:49.162192', job_id='257578', GAL2='1.22', fit_tolerance='1e-08', EG2='0.03', EG='0.03', time_epoch_completed='1659084409.16', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.22', dlogl='9.98e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='1702' AND source_name='4FGL J2049.9+1002' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Jul 29 01:46:49 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0171>
Subject: Job 257578: <4FGL_J2049.9+1002_daily_bin1702> in cluster <slac> Done

Job <4FGL_J2049.9+1002_daily_bin1702> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Jul 29 01:30:26 2022
Job was executed on host(s) <bullet0171>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Jul 29 01:31:46 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Jul 29 01:31:46 2022
Terminated at Fri Jul 29 01:46:49 2022
Results reported at Fri Jul 29 01:46:49 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2049.9+1002_daily_bin1702 312.478 10.0407 680486401 680745601 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 :                                   818.34 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             310.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   904 sec.
    Turnaround time :                            983 sec.

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

