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


Performing analysis on: 4FGL_J0049.7+0237_daily_bin1742
RA = 12.4377, Dec = 2.6273
tmin = 690854401, tmax = 691113601
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='217239', job_status='RUN', time_executed='2022-11-26 00:09:39.543035', time_epoch_executed='1669450179.54' WHERE source_name='4FGL J0049.7+0237' and cadence='daily' and bin_id='1742'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/217239

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/217239/ft1_4FGL_J0049.7+0237_daily_bin1742.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/217239/ft2_4FGL_J0049.7+0237_daily_bin1742.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/217239/ft1_4FGL_J0049.7+0237_daily_bin1742.fits outfile=/scratch/kocevski/217239/ft1_filteredMKT_4FGL_J0049.7+0237_daily_bin1742.fits ra=12.4377 dec=2.6273 rad=12.0 tmin=690854401.0 tmax=691113601.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.00
user 2.73
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/217239/ft2_4FGL_J0049.7+0237_daily_bin1742.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/217239/ft2_4FGL_J0049.7+0237_daily_bin1742.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/217239/ft1_filteredMKT_4FGL_J0049.7+0237_daily_bin1742.fits evtable="EVENTS" outfile="/scratch/kocevski/217239/ft1_filtered_4FGL_J0049.7+0237_daily_bin1742.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.53
user 0.34
sys 0.17

Number of photons that the gtmktime cut: 485

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/217239/ft1_filtered_4FGL_J0049.7+0237_daily_bin1742.fits" evtable="EVENTS" scfile=/scratch/kocevski/217239/ft2_4FGL_J0049.7+0237_daily_bin1742.fits sctable="SC_DATA" outfile=/scratch/kocevski/217239/ltcube_690854401_691113601_4FGL_J0049.7+0237_daily_bin1742.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/217239/ft2_4FGL_J0049.7+0237_daily_bin1742.fits
.....................!
real 17.84
user 17.37
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/217239/ft1_filtered_4FGL_J0049.7+0237_daily_bin1742.fits evtable="EVENTS" scfile=/scratch/kocevski/217239/ft2_4FGL_J0049.7+0237_daily_bin1742.fits sctable="SC_DATA" expcube=/scratch/kocevski/217239/ltcube_690854401_691113601_4FGL_J0049.7+0237_daily_bin1742.fits outfile=/scratch/kocevski/217239/expmap_690854401_691113601_4FGL_J0049.7+0237_daily_bin1742.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/217239/ltcube_690854401_691113601_4FGL_J0049.7+0237_daily_bin1742.fits
.....................!
real 194.78
user 189.62
sys 4.57

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
Added 169 point sources and 0 extended sources

Setting source of interest to:
4FGL J0049.7+0237 @ 12.4377 2.6273

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/217239/ft1_filtered_4FGL_J0049.7+0237_daily_bin1742.fits scfile=/scratch/kocevski/217239/ft2_4FGL_J0049.7+0237_daily_bin1742.fits outfile=/scratch/kocevski/217239/cmap_690854401_691113601_4FGL_J0049.7+0237_daily_bin1742.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=12.4377 yref=2.6273 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/217239/ft1_filtered_4FGL_J0049.7+0237_daily_bin1742.fits scfile=/scratch/kocevski/217239/ft2_4FGL_J0049.7+0237_daily_bin1742.fits outfile=/scratch/kocevski/217239/cmap_HighResolution_690854401_691113601_4FGL_J0049.7+0237_daily_bin1742.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=12.4377 yref=2.6273 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.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/217239/ft1_filtered_4FGL_J0049.7+0237_daily_bin1742.fits evtable="EVENTS" scfile=/scratch/kocevski/217239/ft2_4FGL_J0049.7+0237_daily_bin1742.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/217239/Model_4FGL_J0049.7+0237_daily_bin1742.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 EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/217239/ft1_filtered_4FGL_J0049.7+0237_daily_bin1742.fits.....................!
real 64.15
user 61.90
sys 1.35

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/217239/ft1_filtered_4FGL_J0049.7+0237_daily_bin1742.fits', '/scratch/kocevski/217239/ft2_4FGL_J0049.7+0237_daily_bin1742.fits', expMap='/scratch/kocevski/217239/expmap_690854401_691113601_4FGL_J0049.7+0237_daily_bin1742.fits', expCube='/scratch/kocevski/217239/ltcube_690854401_691113601_4FGL_J0049.7+0237_daily_bin1742.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/217239/Model_4FGL_J0049.7+0237_daily_bin1742.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0049.7+0237'

4FGL J0049.7+0237
   Spectrum: PowerLaw
197    Prefactor:  1.528e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
198        Index:  2.211e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
199        Scale:  1.014e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/217239/ft1_filtered_4FGL_J0049.7+0237_daily_bin1742.fits
Spacecraft file(s): /scratch/kocevski/217239/ft2_4FGL_J0049.7+0237_daily_bin1742.fits
Exposure map: /scratch/kocevski/217239/expmap_690854401_691113601_4FGL_J0049.7+0237_daily_bin1742.fits
Exposure cube: /scratch/kocevski/217239/ltcube_690854401_691113601_4FGL_J0049.7+0237_daily_bin1742.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/217239/Model_4FGL_J0049.7+0237_daily_bin1742.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) = 5369.13748231

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11348E-01   1.0000          .0000       .10000E+07
     2 'Prefactor '    .65123E-05   1.0000          .0000       .10000E+07
     3 'norm      '    .10163E-03   1.0000          .0000       .10000E+07
     4 'norm      '    .52572E-05   1.0000          .0000       .10000E+07
     5 'norm      '    .16263E-04   1.0000          .0000       .10000E+07
     6 'Prefactor '    .24322E-05   1.0000          .0000       .10000E+07
     7 'norm      '    5.6713       1.0000          .0000       .10000E+07
     8 'Prefactor '    .11725E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    .61421       1.0000          .0000       .10000E+07
    10 'Prefactor '    .32234E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    4.6039       1.0000          .0000       .10000E+07
    12 'norm      '    .12943E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    .14133E-01   1.0000          .0000       .10000E+07
    14 'norm      '    9.9853       1.0000          .0000       .10000E+07
    15 'Prefactor '    .72883       1.0000          .0000       .10000E+07
    16 'Prefactor '    195.49       1.0000          .0000       .10000E+07
    17 'norm      '    22.564       1.0000          .0000       .10000E+07
    18 'Prefactor '    5.5368       1.0000          .0000       .10000E+07
    19 'Prefactor '    .51316E-02   1.0000          .0000       .10000E+07
    20 'Normalizat'    1.4410       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .72237       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5410E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5369.137     FROM MIGRAD    STATUS=CONVERGED    160 CALLS     1718 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11102E-09    12.629       -.86609E-07** at limit **
   2  Prefactor      .0000        2.5608       -.21645E-07** at limit **
   3  norm           .0000        2.1155       -.11639E-06** at limit **
   4  norm           .0000        1.2582       -.35548E-07** at limit **
   5  norm           .0000        1.4730       -.97974E-08** at limit **
   6  Prefactor      .0000        3.8354        .23040E-06** at limit **
   7  norm          5.6692        10.585        .68560E-06    .21110E-02
   8  Prefactor      .0000        6.1451       -.45304E-07** at limit **
   9  Prefactor     .61464        16.747       -.58161E-06   -.78258E-02
  10  Prefactor      .0000        3.3062       -.17667E-08** at limit **
  11  Prefactor     4.6017        3.8439       -.22929E-06   -.54956E-03
  12  norm           .0000        2.1878       -.63504E-07** at limit **
  13  Prefactor     .83267E-09    31.106       -.37064E-06** at limit **
  14  norm          9.9808        4.7889        .11097E-06   -.40944E-01
  15  Prefactor     .47740E-08    348.43       -.92020E-05** at limit **
  16  Prefactor     195.46        1.7810       -.26981E-07    .79973E-01
  17  norm          22.563        3.9472       -.29597E-07   -.51545E-04
  18  Prefactor     5.5350        8.8390        .15310E-06   -.16637E-02
  19  Prefactor     .19429E-08    27.688       -.62607E-06** at limit **
  20  Normalizat    1.4410        .27632       -.30528E-05    .78585E-04
  21  Prefactor     .72259        .20281        .65634E-05    .73420E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.11022e-10
  Prefactor  = 0
  norm       = 0
  norm       = 0
  norm       = 0
  Prefactor  = 0
  norm       = 5.66921
  Prefactor  = 0
  Prefactor  = 0.61464
  Prefactor  = 0
  Prefactor  = 4.60168
  norm       = 0
  Prefactor  = 8.32667e-10
  norm       = 9.98079
  Prefactor  = 4.77396e-09
  Prefactor  = 195.463
  norm       = 22.5629
  Prefactor  = 5.53502
  Prefactor  = 1.94289e-09
  Normalizat = 1.44103
  Prefactor  = 0.722594
 **********
 **   18 **HESSE 
 **********

 FCN=   5369.137     FROM HESSE     STATUS=OK           353 CALLS     2071 TOTAL
                     EDM=   .11E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11102E-09    12.596        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor      .0000        2.5596        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm           .0000        2.0854        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm           .0000        1.2572        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm           .0000        1.4730        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        3.8339        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          5.6692        10.594        .42157E-03   -1.5660    
   8  Prefactor      .0000        6.1373        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .61464        17.930        .67964E-03   -1.5692    
  10  Prefactor      .0000        3.2714        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.6017        3.8526        .46886E-03   -1.5665    
  12  norm           .0000        2.1865        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .83267E-09    31.107        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          9.9808        17.423        .31686E-03   -1.5645    
  15  Prefactor     .47740E-08    347.81        .58398E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     195.46        172.97        .71528E-04   -1.5428    
  17  norm          22.563        4.3513        .21057E-03   -1.5613    
  18  Prefactor     5.5350        8.8578        .42674E-03   -1.5661    
  19  Prefactor     .19429E-08    27.702        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.4410        .23204        .61047E-01   -.79449    
  21  Prefactor     .72259        .17150        .61739E-01   -1.0265    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.06072e-06
Minuit parameter uncertainties:
  1  7.39145e-05
  2  2.73283e-06
  3  1.72805e-06
  4  3.65293e-07
  5  3.01403e-06
  6  4.31423e-06
  7  10.594
  8  1.28379e-05
  9  6.63942
  10  2.75048e-06
  11  3.85258
  12  2.52805e-06
  13  0.000324489
  14  17.423
  15  0.00257266
  16  172.972
  17  4.35132
  18  8.85783
  19  0.000460986
  20  0.23221
  21  0.171624
Done.

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

Extracting fit parameters...

4FGL J0049.7+0237
   Spectrum: PowerLaw
197    Prefactor:  0.000e+00  2.750e-06  0.000e+00  1.000e+06 ( 1.000e-12)
198        Index:  2.211e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
199        Scale:  1.014e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
538    Prefactor:  7.226e-01  1.716e-01  0.000e+00  1.000e+01 ( 1.000e+00)
539        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
540        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
537   Normalization:  1.441e+00  2.322e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 12.438 2.627
Photon Flux Upper Limit: 9.99e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.62e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/217239/likelihoodResults_690854401_691113601_4FGL_J0049.7+0237_daily_bin1742.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) = 5369.1384901
delta logL = -0.00169192769044

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5369.13679876
delta logL = -5.86440364714e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .94369E-09   1.0000          .0000       .10000E+07
     2 'Index     '    1.3132       1.0000          .0000       10.000    
     3 'Normalizat'    1.4408       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72281       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5410E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5369.137     FROM MIGRAD    STATUS=CONVERGED     29 CALLS      252 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11102E-08    6.5772       -.20827E-05** at limit **
   2  Index         1.6343        .98328        .12155E-04    .50914E-09
   3  Normalizat    1.4410        .26496        .12734E-04    .28674E-03
   4  Prefactor     .72259        .20002       -.76288E-05    .21727E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.11022e-09
  Index      = 1.63433
  Normalizat = 1.44103
  Prefactor  = 0.722593
 **********
 **   18 **HESSE 
 **********

 FCN=   5369.137     FROM HESSE     STATUS=NOT POSDEF    41 CALLS      293 TOTAL
                     EDM=   .24E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11102E-08    .58626        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.6343        5.0137        .50000       -.73844    
   3  Normalizat    1.4410        .17808E-02    .61047E-01   -.79449    
   4  Prefactor     .72259        .13327E-02    .61739E-01   -1.0265    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.35154e-11
Minuit parameter uncertainties:
  1  5.11201e-05
  2  7370.89
  3  0.00178082
  4  0.00133268
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/217239': 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): 102
logL (Free Index) = 5369.13679817
delta logL = -1.40062184073e-10

Extracting fit parameters...

4FGL J0049.7+0237
   Spectrum: PowerLaw
197    Prefactor:  1.110e-09  5.112e-05  0.000e+00  1.000e+06 ( 1.000e-12)
198        Index:  1.634e+00  7.371e+03  0.000e+00  1.000e+01 (-1.000e+00)
199        Scale:  1.014e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
538    Prefactor:  7.226e-01  1.333e-03  0.000e+00  1.000e+01 ( 1.000e+00)
539        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
540        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
537   Normalization:  1.441e+00  1.781e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 12.438 2.627

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/217239/cmap_HighResolution_690854401_691113601_4FGL_J0049.7+0237_daily_bin1742.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.62e-03', job_status='DONE', photon_flux_upper_limit='9.99e-08', time_completed='2022-11-26 00:18:55.763968', job_id='217239', GAL2='0.72', fit_tolerance='1e-08', EG2='1.44', EG='1.44', time_epoch_completed='1669450735.76', return_code2='102', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.72', dlogl='-1.40e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.21' WHERE bin_id='1742' AND source_name='4FGL J0049.7+0237' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Nov 26 00:18:55 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0036>
Subject: Job 217239: <4FGL_J0049.7+0237_daily_bin1742> in cluster <slac> Done

Job <4FGL_J0049.7+0237_daily_bin1742> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Nov 26 00:04:42 2022
Job was executed on host(s) <bullet0036>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Nov 26 00:08:41 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Nov 26 00:08:41 2022
Terminated at Sat Nov 26 00:18:56 2022
Results reported at Sat Nov 26 00:18:56 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0049.7+0237_daily_bin1742 12.4377 2.6273 690854401 691113601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0049.7+0237 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   552.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             326.09 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   615 sec.
    Turnaround time :                            854 sec.

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

