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


Performing analysis on: 4FGL_J0049.7+0237_daily_bin1738
RA = 12.4377, Dec = 2.6273
tmin = 689817601, tmax = 690076801
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='398069', job_status='RUN', time_executed='2022-11-14 00:08:44.075704', time_epoch_executed='1668413324.08' WHERE source_name='4FGL J0049.7+0237' and cadence='daily' and bin_id='1738'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/398069

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/398069/ft1_4FGL_J0049.7+0237_daily_bin1738.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/398069/ft2_4FGL_J0049.7+0237_daily_bin1738.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/398069/ft1_4FGL_J0049.7+0237_daily_bin1738.fits outfile=/scratch/kocevski/398069/ft1_filteredMKT_4FGL_J0049.7+0237_daily_bin1738.fits ra=12.4377 dec=2.6273 rad=12.0 tmin=689817601.0 tmax=690076801.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.57
user 3.35
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/398069/ft2_4FGL_J0049.7+0237_daily_bin1738.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/398069/ft1_filteredMKT_4FGL_J0049.7+0237_daily_bin1738.fits evtable="EVENTS" outfile="/scratch/kocevski/398069/ft1_filtered_4FGL_J0049.7+0237_daily_bin1738.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.32
sys 0.19

Number of photons that the gtmktime cut: 644

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/398069/ft1_filtered_4FGL_J0049.7+0237_daily_bin1738.fits" evtable="EVENTS" scfile=/scratch/kocevski/398069/ft2_4FGL_J0049.7+0237_daily_bin1738.fits sctable="SC_DATA" outfile=/scratch/kocevski/398069/ltcube_689817601_690076801_4FGL_J0049.7+0237_daily_bin1738.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/398069/ft2_4FGL_J0049.7+0237_daily_bin1738.fits
.....................!
real 12.40
user 12.04
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/398069/ft1_filtered_4FGL_J0049.7+0237_daily_bin1738.fits evtable="EVENTS" scfile=/scratch/kocevski/398069/ft2_4FGL_J0049.7+0237_daily_bin1738.fits sctable="SC_DATA" expcube=/scratch/kocevski/398069/ltcube_689817601_690076801_4FGL_J0049.7+0237_daily_bin1738.fits outfile=/scratch/kocevski/398069/expmap_689817601_690076801_4FGL_J0049.7+0237_daily_bin1738.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/398069/ltcube_689817601_690076801_4FGL_J0049.7+0237_daily_bin1738.fits
.....................!
real 160.46
user 155.62
sys 4.49

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/398069/ft1_filtered_4FGL_J0049.7+0237_daily_bin1738.fits scfile=/scratch/kocevski/398069/ft2_4FGL_J0049.7+0237_daily_bin1738.fits outfile=/scratch/kocevski/398069/cmap_689817601_690076801_4FGL_J0049.7+0237_daily_bin1738.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.50
user 0.32
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/398069/ft1_filtered_4FGL_J0049.7+0237_daily_bin1738.fits scfile=/scratch/kocevski/398069/ft2_4FGL_J0049.7+0237_daily_bin1738.fits outfile=/scratch/kocevski/398069/cmap_HighResolution_689817601_690076801_4FGL_J0049.7+0237_daily_bin1738.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.49
user 0.31
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/398069/ft1_filtered_4FGL_J0049.7+0237_daily_bin1738.fits evtable="EVENTS" scfile=/scratch/kocevski/398069/ft2_4FGL_J0049.7+0237_daily_bin1738.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/398069/Model_4FGL_J0049.7+0237_daily_bin1738.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/398069/ft1_filtered_4FGL_J0049.7+0237_daily_bin1738.fits.....................!
real 64.23
user 63.05
sys 1.03

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12120E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    .42853       1.0000          .0000       .10000E+07
     3 'norm      '    .55155       1.0000          .0000       .10000E+07
     4 'norm      '    11.786       1.0000          .0000       .10000E+07
     5 'norm      '    .50631       1.0000          .0000       .10000E+07
     6 'Prefactor '    8.0240       1.0000          .0000       .10000E+07
     7 'norm      '    5.7889       1.0000          .0000       .10000E+07
     8 'Prefactor '    .15686E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    .42966E-07   1.0000          .0000       .10000E+07
    10 'Prefactor '    .42455E-06   1.0000          .0000       .10000E+07
    11 'Prefactor '    5.4872       1.0000          .0000       .10000E+07
    12 'norm      '    6.9181       1.0000          .0000       .10000E+07
    13 'Prefactor '    26.216       1.0000          .0000       .10000E+07
    14 'norm      '    .27709E-03   1.0000          .0000       .10000E+07
    15 'Prefactor '    1.9115       1.0000          .0000       .10000E+07
    16 'Prefactor '    .35946E-02   1.0000          .0000       .10000E+07
    17 'norm      '    27.255       1.0000          .0000       .10000E+07
    18 'Prefactor '    .15079E-03   1.0000          .0000       .10000E+07
    19 'Prefactor '    .79078E-03   1.0000          .0000       .10000E+07
    20 'Normalizat'    .82599       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .93163       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=   7067.526     FROM MIGRAD    STATUS=CONVERGED    172 CALLS     1341 TOTAL
                     EDM=   .76E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        14.763       -.88875E-07** at limit **
   2  Prefactor     .41596        11.288        .39067E-06    .26594E-01
   3  norm          .55306        1.5101        .99947E-08    .47358E-03
   4  norm          11.791        4.5140       -.41494E-07   -.24006E-01
   5  norm          .54806        3.8846       -.48746E-07    .29194E-02
   6  Prefactor     8.0098        8.0813        .12889E-06   -.66715E-01
   7  norm          5.7702        7.8634        .57674E-07    .10280E-02
   8  Prefactor     .44409E-09    5.7868        .12215E-06** at limit **
   9  Prefactor      .0000        3.6961        .20581E-07** at limit **
  10  Prefactor      .0000        1.7920        .19319E-08** at limit **
  11  Prefactor     5.4638        3.2260        .54102E-08   -.60453E-04
  12  norm          7.0037        5.7776       -.15352E-07   -.15400E-02
  13  Prefactor     26.203        1.0715       -.40968E-08    .27371E-01
  14  norm           .0000        4.2220        .12243E-07** at limit **
  15  Prefactor     .55237        1497.6       -.75555E-05    .39230E-03
  16  Prefactor     .99920E-09    114.11        .12549E-06** at limit **
  17  norm          27.271        3.2061        .55459E-09   -.17509E-02
  18  Prefactor     .55511E-10    3.4105       -.31237E-07** at limit **
  19  Prefactor     .55511E-10    20.903        .66647E-07** at limit **
  20  Normalizat    .82611        .21600       -.12221E-05   -.72760E-05
  21  Prefactor     .93162        .16246        .15452E-05    .42136E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Prefactor  = 0.415958
  norm       = 0.553056
  norm       = 11.7913
  norm       = 0.548064
  Prefactor  = 8.00982
  norm       = 5.77023
  Prefactor  = 4.44089e-10
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 5.4638
  norm       = 7.00368
  Prefactor  = 26.2028
  norm       = 0
  Prefactor  = 0.552373
  Prefactor  = 9.99201e-10
  norm       = 27.2707
  Prefactor  = 5.55112e-11
  Prefactor  = 5.55112e-11
  Normalizat = 0.826109
  Prefactor  = 0.931622
 **********
 **   18 **HESSE 
 **********

 FCN=   7067.526     FROM HESSE     STATUS=OK           371 CALLS     1712 TOTAL
                     EDM=   .14E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        14.706        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .41596        5.8273        .64733E-02   -1.5695    
   3  norm          .55306        1.5336        .73684E-03   -1.5693    
   4  norm          11.791        5.0752        .29154E-03   -1.5639    
   5  norm          .54806        4.0817        .78077E-03   -1.5693    
   6  Prefactor     8.0098        11.583        .35372E-03   -1.5651    
   7  norm          5.7702        7.8808        .41720E-03   -1.5660    
   8  Prefactor     .44409E-09    5.8188        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor      .0000        3.6756        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor      .0000        1.7822        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.4638        3.2450        .42870E-03   -1.5661    
  12  norm          7.0037        5.8337        .38120E-03   -1.5655    
  13  Prefactor     26.203        20.382        .19534E-03   -1.5606    
  14  norm           .0000        4.2314        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .55237        76.368        .14854E-01   -1.5693    
  16  Prefactor     .99920E-09    114.44        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          27.271        3.2003        .19158E-03   -1.5604    
  18  Prefactor     .55511E-10    3.4038        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .55511E-10    20.940        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .82611        .19028        .71881E-01   -.99107    
  21  Prefactor     .93162        .14126        .45407E-01   -.95045    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.38632e-07
Minuit parameter uncertainties:
  1  2.26371e-05
  2  3.11378
  3  1.53357
  4  5.07524
  5  2.99135
  6  11.5831
  7  7.88083
  8  0.000102721
  9  1.21784e-05
  10  1.43459e-06
  11  3.24504
  12  5.83369
  13  20.3817
  14  5.33661e-06
  15  12.9899
  16  0.000668044
  17  3.20035
  18  2.2753e-05
  19  7.72765e-05
  20  0.190429
  21  0.141311DDone.

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

Extracting fit parameters...

4FGL J0049.7+0237
   Spectrum: PowerLaw
197    Prefactor:  0.000e+00  1.435e-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:  9.316e-01  1.413e-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:  8.261e-01  1.904e-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.95e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.30e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/398069/likelihoodResults_689817601_690076801_4FGL_J0049.7+0237_daily_bin1738.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) = 7067.53054551
delta logL = -0.00487026428345

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7067.10448218
delta logL = 0.421193067573

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12462E-01   1.0000          .0000       .10000E+07
     2 'Index     '    5.2376       1.0000          .0000       10.000    
     3 'Normalizat'    .76808       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96046       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=   7067.104     FROM MIGRAD    STATUS=CONVERGED     72 CALLS      302 TOTAL
                     EDM=   .34E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .12116E-01    .17991        .13318E-06** at limit **
   2  Index         5.2510        3.2686       -.11091E-03    .24011E-04
   3  Normalizat    .76785        .21631       -.15614E-04    .97801E-04
   4  Prefactor     .96046        .16687        .74018E-05    .22121E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0121159
  Index      = 5.25102
  Normalizat = 0.767851
  Prefactor  = 0.960464
 **********
 **   18 **HESSE 
 **********

 FCN=   7067.104     FROM HESSE     STATUS=OK            39 CALLS      341 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .12116E-01    .14960E-01    .23493E-03   -1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         5.2510        .43432        .11783       -9.4750    
   3  Normalizat    .76785        .27485        .74192E-01   -2.1289    
   4  Prefactor     .96046        .21201        .45771E-01   -2.2010    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.21116e-10
Minuit parameter uncertainties:
  1  0.0149602
  2  0.434874
  3  0.275346
  4  0.212192
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/398069': 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) = 7067.10447214
delta logL = 0.421203102448

Extracting fit parameters...

4FGL J0049.7+0237
   Spectrum: PowerLaw
197    Prefactor:  1.212e-02  1.496e-02  0.000e+00  1.000e+06 ( 1.000e-12)
198        Index:  5.251e+00  4.349e-01  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:  9.605e-01  2.122e-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:  7.679e-01  2.753e-01  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/398069/cmap_HighResolution_689817601_690076801_4FGL_J0049.7+0237_daily_bin1738.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.30e-03', job_status='DONE', photon_flux_upper_limit='6.95e-08', time_completed='2022-11-14 00:16:54.684056', job_id='398069', GAL2='0.96', fit_tolerance='1e-08', EG2='0.77', EG='0.83', time_epoch_completed='1668413814.68', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='4.21e-01', ts2='0.91', photon_index_error='0.00', photon_index='2.21' WHERE bin_id='1738' AND source_name='4FGL J0049.7+0237' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Nov 14 00:16:54 PST 2022

------------------------------------------------------------
Sender: LSF System <lsf@bullet0159>
Subject: Job 398016: <4FGL_J0049.7+0237_daily_bin1738> in cluster <slac> Done

Job <4FGL_J0049.7+0237_daily_bin1738> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Nov 14 00:05:15 2022
Job was executed on host(s) <bullet0159>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Nov 14 00:05:22 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Nov 14 00:05:22 2022
Terminated at Mon Nov 14 00:16:09 2022
Results reported at Mon Nov 14 00:16:09 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0049.7+0237_daily_bin1738 12.4377 2.6273 689817601 690076801 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 :                                   597.39 sec.
    Max Memory :                                 617 MB
    Average Memory :                             285.09 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   646 sec.
    Turnaround time :                            654 sec.

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


------------------------------------------------------------
Sender: LSF System <scs@bullet0175>
Subject: Job 398069: <4FGL_J0049.7+0237_daily_bin1738> in cluster <slac> Done

Job <4FGL_J0049.7+0237_daily_bin1738> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Nov 14 00:05:17 2022
Job was executed on host(s) <bullet0175>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Nov 14 00:05:38 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Nov 14 00:05:38 2022
Terminated at Mon Nov 14 00:16:55 2022
Results reported at Mon Nov 14 00:16:55 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0049.7+0237_daily_bin1738 12.4377 2.6273 689817601 690076801 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 :                                   491.22 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             288.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   676 sec.
    Turnaround time :                            698 sec.

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

