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 50 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_J0049.7+0237_daily_bin1663
RA = 12.4377, Dec = 2.6273
tmin = 670377601, tmax = 670636801
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='252194', job_status='RUN', time_executed='2022-04-03 00:06:12.410325', time_epoch_executed='1648969572.41' WHERE source_name='4FGL J0049.7+0237' and cadence='daily' and bin_id='1663'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/252194

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/252194/ft1_4FGL_J0049.7+0237_daily_bin1663.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/252194/ft2_4FGL_J0049.7+0237_daily_bin1663.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/252194/ft1_4FGL_J0049.7+0237_daily_bin1663.fits outfile=/scratch/kocevski/252194/ft1_filteredMKT_4FGL_J0049.7+0237_daily_bin1663.fits ra=12.4377 dec=2.6273 rad=12.0 tmin=670377601.0 tmax=670636801.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.93
user 3.59
sys 0.22

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

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

Number of photons that the gtmktime cut: 1094

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/252194/ft1_filtered_4FGL_J0049.7+0237_daily_bin1663.fits" evtable="EVENTS" scfile=/scratch/kocevski/252194/ft2_4FGL_J0049.7+0237_daily_bin1663.fits sctable="SC_DATA" outfile=/scratch/kocevski/252194/ltcube_670377601_670636801_4FGL_J0049.7+0237_daily_bin1663.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/252194/ft2_4FGL_J0049.7+0237_daily_bin1663.fits
.....................!
real 18.53
user 18.05
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/252194/ft1_filtered_4FGL_J0049.7+0237_daily_bin1663.fits evtable="EVENTS" scfile=/scratch/kocevski/252194/ft2_4FGL_J0049.7+0237_daily_bin1663.fits sctable="SC_DATA" expcube=/scratch/kocevski/252194/ltcube_670377601_670636801_4FGL_J0049.7+0237_daily_bin1663.fits outfile=/scratch/kocevski/252194/expmap_670377601_670636801_4FGL_J0049.7+0237_daily_bin1663.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/252194/ltcube_670377601_670636801_4FGL_J0049.7+0237_daily_bin1663.fits
.....................!
real 191.77
user 185.83
sys 5.34

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/252194/ft1_filtered_4FGL_J0049.7+0237_daily_bin1663.fits scfile=/scratch/kocevski/252194/ft2_4FGL_J0049.7+0237_daily_bin1663.fits outfile=/scratch/kocevski/252194/cmap_670377601_670636801_4FGL_J0049.7+0237_daily_bin1663.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 1.43
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/252194/ft1_filtered_4FGL_J0049.7+0237_daily_bin1663.fits scfile=/scratch/kocevski/252194/ft2_4FGL_J0049.7+0237_daily_bin1663.fits outfile=/scratch/kocevski/252194/cmap_HighResolution_670377601_670636801_4FGL_J0049.7+0237_daily_bin1663.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 1.10
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/252194/ft1_filtered_4FGL_J0049.7+0237_daily_bin1663.fits evtable="EVENTS" scfile=/scratch/kocevski/252194/ft2_4FGL_J0049.7+0237_daily_bin1663.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/252194/Model_4FGL_J0049.7+0237_daily_bin1663.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/252194/ft1_filtered_4FGL_J0049.7+0237_daily_bin1663.fits.....................!
real 161.97
user 121.23
sys 1.33

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/252194/ft1_filtered_4FGL_J0049.7+0237_daily_bin1663.fits', '/scratch/kocevski/252194/ft2_4FGL_J0049.7+0237_daily_bin1663.fits', expMap='/scratch/kocevski/252194/expmap_670377601_670636801_4FGL_J0049.7+0237_daily_bin1663.fits', expCube='/scratch/kocevski/252194/ltcube_670377601_670636801_4FGL_J0049.7+0237_daily_bin1663.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/252194/Model_4FGL_J0049.7+0237_daily_bin1663.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  1.000e-04  1.000e+04 ( 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/252194/ft1_filtered_4FGL_J0049.7+0237_daily_bin1663.fits
Spacecraft file(s): /scratch/kocevski/252194/ft2_4FGL_J0049.7+0237_daily_bin1663.fits
Exposure map: /scratch/kocevski/252194/expmap_670377601_670636801_4FGL_J0049.7+0237_daily_bin1663.fits
Exposure cube: /scratch/kocevski/252194/ltcube_670377601_670636801_4FGL_J0049.7+0237_daily_bin1663.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/252194/Model_4FGL_J0049.7+0237_daily_bin1663.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) = 11227.4852784

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.6867       1.0000         .10000E-03   10000.    
     3 'norm      '    3.4587       1.0000         .10000E-03   10000.    
     4 'norm      '    2.3516       1.0000         .10000E-03   10000.    
     5 'norm      '    3.9652       1.0000         .10000E-03   10000.    
     6 'Prefactor '    13.933       1.0000         .10000E-03   10000.    
     7 'norm      '    26.431       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.7239       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.2486       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.2415       1.0000         .10000E-03   10000.    
    12 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.4885       1.0000         .10000E-03   10000.    
    14 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    43.163       1.0000         .10000E-03   10000.    
    16 'Prefactor '    229.35       1.0000         .10000E-03   10000.    
    17 'norm      '    56.548       1.0000         .10000E-03   10000.    
    18 'Prefactor '    35.679       1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.755       1.0000         .10000E-03   10000.    
    20 'Prefactor '    54.197       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.9953       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .94329       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   11227.42     FROM MIGRAD    STATUS=CONVERGED    463 CALLS     2039 TOTAL
                     EDM=   .24E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.570       -.26342E-06** at limit **
   2  Prefactor     7.6757        11.771       -.14370E-05   -.19091E-04
   3  norm          3.4585        3.8725        .23169E-06   -.54523E-04
   4  norm          2.3555        5.8969        .19720E-05   -.30862E-04
   5  norm          3.9650        3.4368       -.10923E-06   -.13054E-04
   6  Prefactor     13.931        13.816       -.97932E-07    .42840E-05
   7  norm          26.428        12.688       -.81600E-07    .91204E-05
   8  Prefactor     .10000E-03    5.1280       -.20696E-07** at limit **
   9  Prefactor     2.7250        5.3554        .38945E-06   -.32985E-04
  10  Prefactor     6.2477        3.9691        .10613E-06    .34948E-05
  11  Prefactor     3.2408        3.0185        .34370E-07    .10936E-04
  12  norm          .10000E-03    1.5937       -.21932E-07** at limit **
  13  Prefactor     5.4564        23.039       -.13744E-05   -.12911E-04
  14  norm          .10000E-03    11.908        .21539E-06** at limit **
  15  Prefactor     43.142        56.992       -.21159E-05   -.15722E-04
  16  Prefactor     229.28        128.32       -.31986E-05   -.26574E-04
  17  norm          56.548        4.8785        .42930E-07   -.24999E-04
  18  Prefactor     35.668        51.399       -.11532E-05   -.61647E-05
  19  Prefactor     10.753        11.371        .25598E-06    .14849E-04
  20  Prefactor     54.193        42.800       -.25903E-06   -.36427E-05
  21  Normalizat    1.9956        .25233        .80767E-06   -.70857E-04
  22  Prefactor     .94314        .17016       -.93198E-06    .38471E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 7.67568
  norm       = 3.45852
  norm       = 2.35554
  norm       = 3.96496
  Prefactor  = 13.931
  norm       = 26.4276
  Prefactor  = 0.0001
  Prefactor  = 2.72496
  Prefactor  = 6.24767
  Prefactor  = 3.24077
  norm       = 0.0001
  Prefactor  = 5.45635
  norm       = 0.0001
  Prefactor  = 43.1415
  Prefactor  = 229.284
  norm       = 56.5482
  Prefactor  = 35.6677
  Prefactor  = 10.7531
  Prefactor  = 54.1934
  Normalizat = 1.99559
  Prefactor  = 0.943135
 **********
 **   18 **HESSE 
 **********

 FCN=   11227.42     FROM HESSE     STATUS=OK           350 CALLS     2389 TOTAL
                     EDM=   .65E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.612        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     7.6757        11.791        .14464E-03   -1.5154    
   3  norm          3.4585        3.8945        .20305E-03   -1.5336    
   4  norm          2.3555        5.9616        .26730E-03   -1.5401    
   5  norm          3.9650        3.4373        .17678E-03   -1.5310    
   6  Prefactor     13.931        13.833        .10731E-03   -1.4961    
   7  norm          26.428        12.710        .77921E-04   -1.4679    
   8  Prefactor     .10000E-03    5.1359        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.7250        5.3492        .24674E-03   -1.5378    
  10  Prefactor     6.2477        3.9809        .15950E-03   -1.5208    
  11  Prefactor     3.2408        3.0169        .16933E-03   -1.5348    
  12  norm          .10000E-03    1.5961        .13060E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.4564        23.113        .17151E-03   -1.5241    
  14  norm          .10000E-03    11.983        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     43.142        57.239        .61020E-04   -1.4393    
  16  Prefactor     229.28        129.51        .13360E-03   -1.2668    
  17  norm          56.548        4.8972        .53346E-04   -1.4203    
  18  Prefactor     35.668        51.393        .67092E-04   -1.4513    
  19  Prefactor     10.753        11.369        .12217E-03   -1.5052    
  20  Prefactor     54.193        42.816        .27242E-03   -1.4234    
  21  Normalizat    1.9956        .30092        .35935E-03   -.64661    
  22  Prefactor     .94314        .19936        .35842E-03   -.94650    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.46897e-11
Minuit parameter uncertainties:
  1  1.68482e-05
  2  11.795
  3  3.89482
  4  5.96306
  5  3.43743
  6  13.8363
  7  12.7118
  8  7.62227e-07
  9  5.35017
  10  3.98103
  11  3.01702
  12  1.1467e-06
  13  22.4744
  14  9.43411e-06
  15  57.3118
  16  129.668
  17  4.89727
  18  51.4572
  19  11.3718
  20  42.8404
  21  0.301203
  22  0.199518
Done.

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

Extracting fit parameters...

4FGL J0049.7+0237
   Spectrum: PowerLaw
197    Prefactor:  6.248e+00  3.981e+00  1.000e-04  1.000e+04 ( 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:  9.431e-01  1.995e-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.996e+00  3.012e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.16
Ra Dec: 12.438 2.627
Photon Index (Fixed Index): 2.21 +/- 0.00
Photon Flux (Fixed Index): 8.65e-08 +/- 5.51e-08
Energy Flux (Fixed Index): 3.81e-05 +/- 2.43e-05

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) = 11226.4454056
delta logL = 0.974426757766

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11226.4345208
delta logL = 0.985311510647

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.0354       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1246       1.0000          .0000       10.000    
     3 'Normalizat'    1.8692       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0070       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.

 FCN=   11226.43     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      258 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.0343        15.765        .58225E-02    .75386E-03
   2  Index         3.1252        2.1033        .13322        .25208E-03
   3  Normalizat    1.8695        .80892E-01    .83002E-01    .58532E-05
   4  Prefactor     1.0069        .56304E-01    .78730E-01    .22962E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.03431
  Index      = 3.12518
  Normalizat = 1.86953
  Prefactor  = 1.0069
 **********
 **   18 **HESSE 
 **********

 FCN=   11226.43     FROM HESSE     STATUS=OK            33 CALLS      291 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.0343        6.2905        .78242E-04   -1.5360    
   2  Index         3.1252        1.2791        .46312E-02   -.38436    
   3  Normalizat    1.8695        .29588        .36733E-03   -.67862    
   4  Prefactor     1.0069        .21017        .34844E-03   -.92500    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.29423e-10
Minuit parameter uncertainties:
  1  6.29183
  2  1.29589
  3  0.296162
  4  0.210342
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/252194': 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) = 11226.434518
delta logL = 0.985314291915

Extracting fit parameters...

4FGL J0049.7+0237
   Spectrum: PowerLaw
197    Prefactor:  3.034e+00  6.292e+00  1.000e-04  1.000e+04 ( 1.000e-12)
198        Index:  3.125e+00  1.296e+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:  1.007e+00  2.103e-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.870e+00  2.962e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.38
Ra Dec: 12.438 2.627
Photon Index (Free Index): 3.13 +/- 1.30
Photon Flux (Free Index): 1.99e-07 +/- 1.17e-07
Energy Flux (Free Index): 3.76e-05 +/- 1.83e-05

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/252194/cmap_HighResolution_670377601_670636801_4FGL_J0049.7+0237_daily_bin1663.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.65e-08', energy_flux2='3.76e-05', photon_flux_error='5.51e-08', dlogl='9.85e-01', energy_flux='3.81e-05', photon_flux2='1.99e-07', job_status='DONE', time_completed='2022-04-03 00:20:32.376042', photon_index_error2='1.30', photon_index2='3.13', ts='5.16', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', energy_flux_error2='1.83e-05', EG='2.00', time_epoch_completed='1648970432.38', return_code='0', job_id='252194', GAL2='1.01', EG2='1.87', return_code2='0', energy_flux_error='2.43e-05', photon_flux_error2='1.17e-07', ts2='7.38', photon_index='2.21' WHERE bin_id='1663' AND source_name='4FGL J0049.7+0237' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Apr  3 00:20:32 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0038>
Subject: Job 252194: <4FGL_J0049.7+0237_daily_bin1663> in cluster <slac> Done

Job <4FGL_J0049.7+0237_daily_bin1663> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Apr  3 00:05:07 2022
Job was executed on host(s) <bullet0038>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Apr  3 00:05:09 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Apr  3 00:05:09 2022
Terminated at Sun Apr  3 00:20:33 2022
Results reported at Sun Apr  3 00:20:33 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0049.7+0237_daily_bin1663 12.4377 2.6273 670377601 670636801 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 :                                   796.27 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             330.66 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   923 sec.
    Turnaround time :                            926 sec.

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

