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


Performing analysis on: 4FGL_J0049.7+0237_daily_bin1752
RA = 12.4377, Dec = 2.6273
tmin = 693446401, tmax = 693705601
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='248218', job_status='RUN', time_executed='2022-12-26 00:10:12.439489', time_epoch_executed='1672042212.44' WHERE source_name='4FGL J0049.7+0237' and cadence='daily' and bin_id='1752'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/248218

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/248218/ft1_4FGL_J0049.7+0237_daily_bin1752.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/248218/ft2_4FGL_J0049.7+0237_daily_bin1752.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/248218/ft1_4FGL_J0049.7+0237_daily_bin1752.fits outfile=/scratch/kocevski/248218/ft1_filteredMKT_4FGL_J0049.7+0237_daily_bin1752.fits ra=12.4377 dec=2.6273 rad=12.0 tmin=693446401.0 tmax=693705601.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 4.73
user 3.20
sys 0.24

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

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

Number of photons that the gtmktime cut: 835

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/248218/ft1_filtered_4FGL_J0049.7+0237_daily_bin1752.fits" evtable="EVENTS" scfile=/scratch/kocevski/248218/ft2_4FGL_J0049.7+0237_daily_bin1752.fits sctable="SC_DATA" outfile=/scratch/kocevski/248218/ltcube_693446401_693705601_4FGL_J0049.7+0237_daily_bin1752.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/248218/ft2_4FGL_J0049.7+0237_daily_bin1752.fits
.....................!
real 13.66
user 13.26
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/248218/ft1_filtered_4FGL_J0049.7+0237_daily_bin1752.fits evtable="EVENTS" scfile=/scratch/kocevski/248218/ft2_4FGL_J0049.7+0237_daily_bin1752.fits sctable="SC_DATA" expcube=/scratch/kocevski/248218/ltcube_693446401_693705601_4FGL_J0049.7+0237_daily_bin1752.fits outfile=/scratch/kocevski/248218/expmap_693446401_693705601_4FGL_J0049.7+0237_daily_bin1752.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/248218/ltcube_693446401_693705601_4FGL_J0049.7+0237_daily_bin1752.fits
.....................!
real 193.84
user 188.01
sys 5.16

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/248218/ft1_filtered_4FGL_J0049.7+0237_daily_bin1752.fits scfile=/scratch/kocevski/248218/ft2_4FGL_J0049.7+0237_daily_bin1752.fits outfile=/scratch/kocevski/248218/cmap_693446401_693705601_4FGL_J0049.7+0237_daily_bin1752.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.57
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/248218/ft1_filtered_4FGL_J0049.7+0237_daily_bin1752.fits scfile=/scratch/kocevski/248218/ft2_4FGL_J0049.7+0237_daily_bin1752.fits outfile=/scratch/kocevski/248218/cmap_HighResolution_693446401_693705601_4FGL_J0049.7+0237_daily_bin1752.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.61
user 0.38
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/248218/ft1_filtered_4FGL_J0049.7+0237_daily_bin1752.fits evtable="EVENTS" scfile=/scratch/kocevski/248218/ft2_4FGL_J0049.7+0237_daily_bin1752.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/248218/Model_4FGL_J0049.7+0237_daily_bin1752.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/248218/ft1_filtered_4FGL_J0049.7+0237_daily_bin1752.fits.....................!
real 93.43
user 90.87
sys 1.39

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/248218/ft1_filtered_4FGL_J0049.7+0237_daily_bin1752.fits', '/scratch/kocevski/248218/ft2_4FGL_J0049.7+0237_daily_bin1752.fits', expMap='/scratch/kocevski/248218/expmap_693446401_693705601_4FGL_J0049.7+0237_daily_bin1752.fits', expCube='/scratch/kocevski/248218/ltcube_693446401_693705601_4FGL_J0049.7+0237_daily_bin1752.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/248218/Model_4FGL_J0049.7+0237_daily_bin1752.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/248218/ft1_filtered_4FGL_J0049.7+0237_daily_bin1752.fits
Spacecraft file(s): /scratch/kocevski/248218/ft2_4FGL_J0049.7+0237_daily_bin1752.fits
Exposure map: /scratch/kocevski/248218/expmap_693446401_693705601_4FGL_J0049.7+0237_daily_bin1752.fits
Exposure cube: /scratch/kocevski/248218/ltcube_693446401_693705601_4FGL_J0049.7+0237_daily_bin1752.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/248218/Model_4FGL_J0049.7+0237_daily_bin1752.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) = 8678.2859341

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.765       1.0000          .0000       .10000E+07
     2 'Prefactor '    .21005E-06   1.0000          .0000       .10000E+07
     3 'norm      '    1.1001       1.0000          .0000       .10000E+07
     4 'norm      '    17.992       1.0000          .0000       .10000E+07
     5 'norm      '    .62995E-04   1.0000          .0000       .10000E+07
     6 'Prefactor '    9.1330       1.0000          .0000       .10000E+07
     7 'norm      '    30.956       1.0000          .0000       .10000E+07
     8 'Prefactor '    8.3389       1.0000          .0000       .10000E+07
     9 'Prefactor '    .99416E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    .17913E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    1.3071       1.0000          .0000       .10000E+07
    12 'norm      '    .20945E-04   1.0000          .0000       .10000E+07
    13 'Prefactor '    .83879E-03   1.0000          .0000       .10000E+07
    14 'norm      '    .64515E-06   1.0000          .0000       .10000E+07
    15 'Prefactor '    .26366E-05   1.0000          .0000       .10000E+07
    16 'Prefactor '    .27027E-03   1.0000          .0000       .10000E+07
    17 'norm      '    43.719       1.0000          .0000       .10000E+07
    18 'Prefactor '    .19649E-04   1.0000          .0000       .10000E+07
    19 'Prefactor '    .84164       1.0000          .0000       .10000E+07
    20 'Normalizat'    1.1272       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .89148       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=   8678.164     FROM MIGRAD    STATUS=CONVERGED    168 CALLS     1324 TOTAL
                     EDM=   .99E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.503        18.534       -.19223E-05   -.42777E-01
   2  Prefactor     .45562E-05    34.369        .25056E-05** at limit **
   3  norm          1.1231        3.0867        .42766E-06   -.80904E-03
   4  norm          18.006        5.2720        .39721E-06    .39916E-03
   5  norm           .0000        1.3405        .40867E-06** at limit **
   6  Prefactor     9.1294        7.8855       -.12280E-05    .46849E-03
   7  norm          30.887        10.991        .28934E-06   -.18550E-02
   8  Prefactor     8.5015        15.721       -.90869E-06   -.48834E-02
   9  Prefactor     .10078E-02    57.089       -.11462E-04** at limit **
  10  Prefactor      .0000        1.4208        .78116E-06** at limit **
  11  Prefactor     1.3046        2.1643       -.20433E-06    .80074E-03
  12  norm           .0000        1.0799       -.30295E-06** at limit **
  13  Prefactor     .75495E-08    10.487        .95821E-07** at limit **
  14  norm          .10167E-05    23.200       -.29804E-06** at limit **
  15  Prefactor     .56374E-05    21.029       -.34324E-05** at limit **
  16  Prefactor     .50775E-05    20.690       -.22720E-05** at limit **
  17  norm          43.717        3.6383        .88988E-07    .38084E-02
  18  Prefactor      .0000        2.1052        .82077E-06** at limit **
  19  Prefactor     .11223E-03    245.03       -.20799E-04** at limit **
  20  Normalizat    1.1281        .22950       -.12935E-04    .66036E-04
  21  Prefactor     .89104        .16786        .88224E-05    .16023E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.503
  Prefactor  = 4.55619e-06
  norm       = 1.12313
  norm       = 18.0064
  norm       = 0
  Prefactor  = 9.12937
  norm       = 30.8868
  Prefactor  = 8.50151
  Prefactor  = 0.00100782
  Prefactor  = 0
  Prefactor  = 1.30455
  norm       = 0
  Prefactor  = 7.54952e-09
  norm       = 1.01674e-06
  Prefactor  = 5.63738e-06
  Prefactor  = 5.07755e-06
  norm       = 43.7174
  Prefactor  = 0
  Prefactor  = 0.00011223
  Normalizat = 1.12808
  Prefactor  = 0.891038
 **********
 **   18 **HESSE 
 **********

 FCN=   8678.164     FROM HESSE     STATUS=OK           365 CALLS     1689 TOTAL
                     EDM=   .98E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.503        20.039        .24434E-03   -1.5627    
   2  Prefactor     .45562E-05    43.703        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.1231        3.2943        .11328E-02   -1.5687    
   4  norm          18.006        5.3091        .23585E-03   -1.5623    
   5  norm           .0000        1.3409        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     9.1294        7.8969        .33140E-03   -1.5648    
   7  norm          30.887        11.000        .17976E-03   -1.5597    
   8  Prefactor     8.5015        16.522        .34692E-03   -1.5650    
   9  Prefactor     .10078E-02    8.2699        .61811E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor      .0000        1.4152        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.3046        2.1966        .96474E-03   -1.5685    
  12  norm           .0000        1.0816        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .75495E-08    10.507        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10167E-05    25.143        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .56374E-05    28.199        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .50775E-05    35.306        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          43.717        3.6252        .15125E-03   -1.5576    
  18  Prefactor      .0000        2.1029        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .11223E-03    279.39        .49882E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.1281        .19716        .72330E-01   -.88855    
  21  Prefactor     .89104        .14505        .44896E-01   -.96455    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.79857e-07
Minuit parameter uncertainties:
  1  20.0389
  2  0.0282223
  3  3.29429
  4  5.30909
  5  2.37168e-06
  6  7.89695
  7  10.9995
  8  16.5217
  9  0.182589
  10  4.10716e-06
  11  2.19663
  12  3.05428e-07
  13  0.000563333
  14  0.0101121
  15  0.0252166
  16  0.0267785
  17  3.6252
  18  8.34679e-06
  19  0.354171
  20  0.197285
  21  0.145108DDone.

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

Extracting fit parameters...

4FGL J0049.7+0237
   Spectrum: PowerLaw
197    Prefactor:  0.000e+00  4.107e-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:  8.910e-01  1.451e-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.128e+00  1.973e-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: 6.61e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.04e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/248218/likelihoodResults_693446401_693705601_4FGL_J0049.7+0237_daily_bin1752.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): 102
logL (Free Index) = 8678.16750234
delta logL = -0.00358731532651

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8678.16391516
delta logL = -1.33446519612e-07

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   8678.164     FROM MIGRAD    STATUS=CONVERGED     37 CALLS      242 TOTAL
                     EDM=   .54E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        1.3260        .42118E-03** at limit **
   2  Index         2.3834        1.3280        .11056E-04     .0000    
   3  Normalizat    1.1281        1.1377        .58265E-05    .14545E-06
   4  Prefactor     .89104        1.2364       -.38582E-05    .13697E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.38337
  Normalizat = 1.12808
  Prefactor  = 0.891037
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   8678.164     FROM HESSE     STATUS=FAILED         9 CALLS      251 TOTAL
                     EDM=   .54E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        1.3260        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .63639        1.8773        .11056E-04   -.55075    
   3  Normalizat    1.1281        1.1377        .58265E-05   -.88855    
   4  Prefactor     .89104        1.2364       -.38582E-05   -.96455    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 5.42805e-13
Minuit parameter uncertainties:
  1  1.36108e-06
  2  1.35049
  3  1.16404
  4  1.2789
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/248218': 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): 101
logL (Free Index) = 8678.16391503
delta logL = 1.81898940355e-11

Extracting fit parameters...

4FGL J0049.7+0237
   Spectrum: PowerLaw
197    Prefactor:  0.000e+00  1.361e-06  0.000e+00  1.000e+06 ( 1.000e-12)
198        Index:  2.383e+00  1.350e+00  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:  8.910e-01  1.279e+00  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.128e+00  1.164e+00  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/248218/cmap_HighResolution_693446401_693705601_4FGL_J0049.7+0237_daily_bin1752.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.04e-03', job_status='DONE', photon_flux_upper_limit='6.61e-08', time_completed='2022-12-26 00:21:17.726687', job_id='248218', GAL2='0.89', fit_tolerance='1e-08', EG2='1.13', EG='1.13', time_epoch_completed='1672042877.73', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='1.82e-11', ts2='0.00', photon_index_error='0.00', photon_index='2.21' WHERE bin_id='1752' AND source_name='4FGL J0049.7+0237' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Dec 26 00:21:17 PST 2022

------------------------------------------------------------
Sender: LSF System <lsf@bullet0155>
Subject: Job 248217: <4FGL_J0049.7+0237_daily_bin1752> in cluster <slac> Done

Job <4FGL_J0049.7+0237_daily_bin1752> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Dec 26 00:06:12 2022
Job was executed on host(s) <bullet0155>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Dec 26 00:07:53 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Dec 26 00:07:53 2022
Terminated at Mon Dec 26 00:20:38 2022
Results reported at Mon Dec 26 00:20:38 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0049.7+0237_daily_bin1752 12.4377 2.6273 693446401 693705601 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 :                                   658.28 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             333.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   765 sec.
    Turnaround time :                            866 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0221>
Subject: Job 248218: <4FGL_J0049.7+0237_daily_bin1752> in cluster <slac> Done

Job <4FGL_J0049.7+0237_daily_bin1752> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Dec 26 00:06:12 2022
Job was executed on host(s) <bullet0221>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Dec 26 00:07:54 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Dec 26 00:07:54 2022
Terminated at Mon Dec 26 00:21:18 2022
Results reported at Mon Dec 26 00:21:18 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0049.7+0237_daily_bin1752 12.4377 2.6273 693446401 693705601 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 :                                   660.48 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             310.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   804 sec.
    Turnaround time :                            906 sec.

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

