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


Performing analysis on: 4FGL_J0049.7+0237_daily_bin1755
RA = 12.4377, Dec = 2.6273
tmin = 694224001, tmax = 694483201
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='807261', job_status='RUN', time_executed='2023-01-04 00:08:40.770339', time_epoch_executed='1672819720.77' WHERE source_name='4FGL J0049.7+0237' and cadence='daily' and bin_id='1755'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/807261

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/807261/ft1_4FGL_J0049.7+0237_daily_bin1755.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/807261/ft2_4FGL_J0049.7+0237_daily_bin1755.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/807261/ft1_4FGL_J0049.7+0237_daily_bin1755.fits outfile=/scratch/kocevski/807261/ft1_filteredMKT_4FGL_J0049.7+0237_daily_bin1755.fits ra=12.4377 dec=2.6273 rad=12.0 tmin=694224001.0 tmax=694483201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 2.55
user 2.30
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/807261/ft2_4FGL_J0049.7+0237_daily_bin1755.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/807261/ft1_filteredMKT_4FGL_J0049.7+0237_daily_bin1755.fits evtable="EVENTS" outfile="/scratch/kocevski/807261/ft1_filtered_4FGL_J0049.7+0237_daily_bin1755.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.46
user 0.28
sys 0.16

Number of photons that the gtmktime cut: 1101

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/807261/ft1_filtered_4FGL_J0049.7+0237_daily_bin1755.fits" evtable="EVENTS" scfile=/scratch/kocevski/807261/ft2_4FGL_J0049.7+0237_daily_bin1755.fits sctable="SC_DATA" outfile=/scratch/kocevski/807261/ltcube_694224001_694483201_4FGL_J0049.7+0237_daily_bin1755.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/807261/ft2_4FGL_J0049.7+0237_daily_bin1755.fits
.....................!
real 13.53
user 13.18
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/807261/ft1_filtered_4FGL_J0049.7+0237_daily_bin1755.fits evtable="EVENTS" scfile=/scratch/kocevski/807261/ft2_4FGL_J0049.7+0237_daily_bin1755.fits sctable="SC_DATA" expcube=/scratch/kocevski/807261/ltcube_694224001_694483201_4FGL_J0049.7+0237_daily_bin1755.fits outfile=/scratch/kocevski/807261/expmap_694224001_694483201_4FGL_J0049.7+0237_daily_bin1755.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/807261/ltcube_694224001_694483201_4FGL_J0049.7+0237_daily_bin1755.fits
.....................!
real 157.98
user 152.73
sys 4.43

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/807261/ft1_filtered_4FGL_J0049.7+0237_daily_bin1755.fits scfile=/scratch/kocevski/807261/ft2_4FGL_J0049.7+0237_daily_bin1755.fits outfile=/scratch/kocevski/807261/cmap_694224001_694483201_4FGL_J0049.7+0237_daily_bin1755.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.51
user 0.32
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/807261/ft1_filtered_4FGL_J0049.7+0237_daily_bin1755.fits scfile=/scratch/kocevski/807261/ft2_4FGL_J0049.7+0237_daily_bin1755.fits outfile=/scratch/kocevski/807261/cmap_HighResolution_694224001_694483201_4FGL_J0049.7+0237_daily_bin1755.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.33
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/807261/ft1_filtered_4FGL_J0049.7+0237_daily_bin1755.fits evtable="EVENTS" scfile=/scratch/kocevski/807261/ft2_4FGL_J0049.7+0237_daily_bin1755.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/807261/Model_4FGL_J0049.7+0237_daily_bin1755.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/807261/ft1_filtered_4FGL_J0049.7+0237_daily_bin1755.fits.....................!
real 95.47
user 93.58
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.810       1.0000          .0000       .10000E+07
     2 'Prefactor '    .63649E-03   1.0000          .0000       .10000E+07
     3 'norm      '    .23487E-05   1.0000          .0000       .10000E+07
     4 'norm      '    3.7025       1.0000          .0000       .10000E+07
     5 'norm      '    3.9380       1.0000          .0000       .10000E+07
     6 'Prefactor '    8.7719       1.0000          .0000       .10000E+07
     7 'norm      '    1.4695       1.0000          .0000       .10000E+07
     8 'Prefactor '    .12526E-04   1.0000          .0000       .10000E+07
     9 'Prefactor '    4.5424       1.0000          .0000       .10000E+07
    10 'Prefactor '    2.8977       1.0000          .0000       .10000E+07
    11 'Prefactor '    4.5498       1.0000          .0000       .10000E+07
    12 'norm      '    5.9092       1.0000          .0000       .10000E+07
    13 'Prefactor '    18.729       1.0000          .0000       .10000E+07
    14 'norm      '    .19867E-03   1.0000          .0000       .10000E+07
    15 'Prefactor '    .31325E-02   1.0000          .0000       .10000E+07
    16 'Prefactor '    .11729E-02   1.0000          .0000       .10000E+07
    17 'norm      '    32.745       1.0000          .0000       .10000E+07
    18 'Prefactor '    .23807E-03   1.0000          .0000       .10000E+07
    19 'Prefactor '    .19104E-02   1.0000          .0000       .10000E+07
    20 'Normalizat'    1.1579       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .82921       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=   11439.95     FROM MIGRAD    STATUS=CONVERGED    152 CALLS     1320 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.769        9.8455        .14861E-06    .17255    
   2  Prefactor     .56902E-05    12.122        .10177E-05** at limit **
   3  norm          .61062E-09    2.2291        .25297E-06** at limit **
   4  norm          3.6960        2.6334        .57118E-07   -.47098E-02
   5  norm          3.9359        2.8105        .17174E-06   -.35211E-04
   6  Prefactor     8.7979        6.8875        .55602E-07   -.30470E-02
   7  norm          1.4414        5.9982        .26115E-06    .69308E-04
   8  Prefactor     .16098E-08    4.3830        .31576E-06** at limit **
   9  Prefactor     4.5679        4.3937        .17050E-06    .12958E-02
  10  Prefactor     2.8973        1.5750       -.54698E-07    .28871E-03
  11  Prefactor     4.5807        2.6306        .34232E-07    .44882E-03
  12  norm          5.9308        4.0076       -.38777E-07   -.52933E-03
  13  Prefactor     17.817        13.580       -.15902E-06    .13492    
  14  norm          .85487E-08    5.0688        .14265E-07** at limit **
  15  Prefactor     .33284E-06    28.354        .15215E-05** at limit **
  16  Prefactor     .88946E-06    23.104        .77071E-06** at limit **
  17  norm          32.748        2.6937        .21200E-07    .53661E-02
  18  Prefactor     .12929E-06    5.6417       -.17906E-06** at limit **
  19  Prefactor     .96478E-07    7.6117       -.41425E-06** at limit **
  20  Normalizat    1.1584        .18607       -.89129E-05    .26628E-04
  21  Prefactor     .82922        .13974        .40981E-05    .14892E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.769
  Prefactor  = 5.69023e-06
  norm       = 6.10623e-10
  norm       = 3.69603
  norm       = 3.93591
  Prefactor  = 8.79785
  norm       = 1.44138
  Prefactor  = 1.60982e-09
  Prefactor  = 4.56786
  Prefactor  = 2.89726
  Prefactor  = 4.5807
  norm       = 5.93079
  Prefactor  = 17.8169
  norm       = 8.54872e-09
  Prefactor  = 3.32845e-07
  Prefactor  = 8.89455e-07
  norm       = 32.7485
  Prefactor  = 1.29285e-07
  Prefactor  = 9.64784e-08
  Normalizat = 1.15839
  Prefactor  = 0.829224
 **********
 **   18 **HESSE 
 **********

 FCN=   11439.95     FROM HESSE     STATUS=OK           369 CALLS     1689 TOTAL
                     EDM=   .23E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.769        14.069        .26927E-03   -1.5634    
   2  Prefactor     .56902E-05    5.2226        .63717E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .61062E-09    2.1989        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.6960        3.0318        .52460E-03   -1.5670    
   5  norm          3.9359        2.8100        .50810E-03   -1.5668    
   6  Prefactor     8.7979        6.8845        .33819E-03   -1.5649    
   7  norm          1.4414        6.0054        .88626E-03   -1.5684    
   8  Prefactor     .16098E-08    4.3901        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.5679        4.4106        .47211E-03   -1.5665    
  10  Prefactor     2.8973        1.5770        .59669E-03   -1.5674    
  11  Prefactor     4.5807        2.6438        .47171E-03   -1.5665    
  12  norm          5.9308        4.0206        .41286E-03   -1.5659    
  13  Prefactor     17.817        18.012        .23115E-03   -1.5624    
  14  norm          .85487E-08    5.0835        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .33284E-06    36.971        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .88946E-06    24.008        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          32.748        2.6886        .17478E-03   -1.5594    
  18  Prefactor     .12929E-06    5.7644        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .96478E-07    7.7599        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.1584        .16100        .66260E-01   -.87898    
  21  Prefactor     .82922        .11992        .44096E-01   -.98660    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.31427e-06
Minuit parameter uncertainties:
  1  14.0688
  2  0.0109029
  3  7.17503e-05
  4  3.03181
  5  2.81
  6  6.88454
  7  5.88425
  8  0.000167885
  9  4.41062
  10  1.57702
  11  2.64376
  12  4.02064
  13  18.0121
  14  0.000417056
  15  0.00701612
  16  0.00924209
  17  2.6886
  18  0.00172639
  19  0.0017306
  20  0.161065
  21  0.119954
Done.

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

Extracting fit parameters...

4FGL J0049.7+0237
   Spectrum: PowerLaw
197    Prefactor:  2.897e+00  1.577e+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

GAL_V02
   Spectrum: PowerLaw
538    Prefactor:  8.292e-01  1.200e-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.158e+00  1.611e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.85
Ra Dec: 12.438 2.627
Photon Index (Fixed Index): 2.21 +/- 0.00
Photon Flux (Fixed Index): 4.01e-08 +/- 2.18e-08
Energy Flux (Fixed Index): 1.77e-05 +/- 9.62e-06

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) = 11439.475058
delta logL = 0.472838190743

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11439.4716673
delta logL = 0.476228987034

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.1496       1.0000          .0000       .10000E+07
     2 'Index     '    1.7875       1.0000          .0000       10.000    
     3 'Normalizat'    1.1749       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82206       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   11439.47     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      264 TOTAL
                     EDM=   .78E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.1497        1.8215        .10538E-04   -.13473E-01
   2  Index         1.7875        .41550        .87847E-02   -.15782E-03
   3  Normalizat    1.1749        .17768        .29143E-03    .27674E-03
   4  Prefactor     .82207        .13786        .26469E-03    .74563E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.1497
  Index      = 1.78748
  Normalizat = 1.17486
  Prefactor  = 0.822073
 **********
 **   18 **HESSE 
 **********

 FCN=   11439.47     FROM HESSE     STATUS=OK            23 CALLS      287 TOTAL
                     EDM=   .78E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.1497        1.8309        .21076E-05   -1.5672    
   2  Index         1.7875        .41767        .35139E-03   -.69776    
   3  Normalizat    1.1749        .17785        .11657E-04   -.87383    
   4  Prefactor     .82207        .13799        .10588E-04   -.98920    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.76854e-10
Minuit parameter uncertainties:
  1  1.83094
  2  0.418497
  3  0.177938
  4  0.13805
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/807261': 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) = 11439.4716672
delta logL = 0.476229065915

Extracting fit parameters...

4FGL J0049.7+0237
   Spectrum: PowerLaw
197    Prefactor:  3.150e+00  1.831e+00  0.000e+00  1.000e+06 ( 1.000e-12)
198        Index:  1.787e+00  4.185e-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:  8.221e-01  1.380e-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.175e+00  1.779e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.78
Ra Dec: 12.438 2.627
Photon Index (Free Index): 1.79 +/- 0.42
Photon Flux (Free Index): 2.50e-08 +/- 2.01e-08
Energy Flux (Free Index): 3.11e-05 +/- 2.82e-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/807261/cmap_HighResolution_694224001_694483201_4FGL_J0049.7+0237_daily_bin1755.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.01e-08', energy_flux2='3.11e-05', photon_flux_error='2.18e-08', dlogl='4.76e-01', energy_flux='1.77e-05', photon_flux2='2.50e-08', job_status='DONE', time_completed='2023-01-04 00:18:23.647446', photon_index_error2='0.42', photon_index2='1.79', ts='8.85', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', energy_flux_error2='2.82e-05', EG='1.16', time_epoch_completed='1672820303.65', return_code='0', job_id='807261', GAL2='0.82', EG2='1.17', return_code2='0', energy_flux_error='9.62e-06', photon_flux_error2='2.01e-08', ts2='9.78', photon_index='2.21' WHERE bin_id='1755' AND source_name='4FGL J0049.7+0237' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Jan  4 00:18:23 PST 2023


------------------------------------------------------------
Sender: LSF System <scs@bullet0168>
Subject: Job 807261: <4FGL_J0049.7+0237_daily_bin1755> in cluster <slac> Done

Job <4FGL_J0049.7+0237_daily_bin1755> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Wed Jan  4 00:04:52 2023
Job was executed on host(s) <bullet0168>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Jan  4 00:08:12 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Jan  4 00:08:12 2023
Terminated at Wed Jan  4 00:18:24 2023
Results reported at Wed Jan  4 00:18:24 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0049.7+0237_daily_bin1755 12.4377 2.6273 694224001 694483201 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 :                                   577.12 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             375.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   611 sec.
    Turnaround time :                            812 sec.

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

