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


Performing analysis on: 4FGL_J0047.9+2233_daily_bin1774
RA = 11.9981, Dec = 22.5632
tmin = 699148801, tmax = 699408001
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='672319', job_status='RUN', time_executed='2023-03-02 00:07:49.105371', time_epoch_executed='1677744469.11' WHERE source_name='4FGL J0047.9+2233' and cadence='daily' and bin_id='1774'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/672319

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/672319/ft1_4FGL_J0047.9+2233_daily_bin1774.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/672319/ft2_4FGL_J0047.9+2233_daily_bin1774.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/672319/ft1_4FGL_J0047.9+2233_daily_bin1774.fits outfile=/scratch/kocevski/672319/ft1_filteredMKT_4FGL_J0047.9+2233_daily_bin1774.fits ra=11.9981 dec=22.5632 rad=12.0 tmin=699148801.0 tmax=699408001.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.85
user 2.61
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/672319/ft2_4FGL_J0047.9+2233_daily_bin1774.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/672319/ft2_4FGL_J0047.9+2233_daily_bin1774.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/672319/ft1_filteredMKT_4FGL_J0047.9+2233_daily_bin1774.fits evtable="EVENTS" outfile="/scratch/kocevski/672319/ft1_filtered_4FGL_J0047.9+2233_daily_bin1774.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.61
user 0.32
sys 0.16

Number of photons that the gtmktime cut: 1089

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/672319/ft1_filtered_4FGL_J0047.9+2233_daily_bin1774.fits" evtable="EVENTS" scfile=/scratch/kocevski/672319/ft2_4FGL_J0047.9+2233_daily_bin1774.fits sctable="SC_DATA" outfile=/scratch/kocevski/672319/ltcube_699148801_699408001_4FGL_J0047.9+2233_daily_bin1774.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/672319/ft2_4FGL_J0047.9+2233_daily_bin1774.fits
.....................!
real 12.43
user 12.01
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/672319/ft1_filtered_4FGL_J0047.9+2233_daily_bin1774.fits evtable="EVENTS" scfile=/scratch/kocevski/672319/ft2_4FGL_J0047.9+2233_daily_bin1774.fits sctable="SC_DATA" expcube=/scratch/kocevski/672319/ltcube_699148801_699408001_4FGL_J0047.9+2233_daily_bin1774.fits outfile=/scratch/kocevski/672319/expmap_699148801_699408001_4FGL_J0047.9+2233_daily_bin1774.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/672319/ltcube_699148801_699408001_4FGL_J0047.9+2233_daily_bin1774.fits
.....................!
real 190.76
user 185.74
sys 4.56

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

Setting source of interest to:
4FGL J0047.9+2233 @ 11.9981 22.5632

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/672319/ft1_filtered_4FGL_J0047.9+2233_daily_bin1774.fits scfile=/scratch/kocevski/672319/ft2_4FGL_J0047.9+2233_daily_bin1774.fits outfile=/scratch/kocevski/672319/cmap_699148801_699408001_4FGL_J0047.9+2233_daily_bin1774.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=11.9981 yref=22.5632 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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/672319/ft1_filtered_4FGL_J0047.9+2233_daily_bin1774.fits scfile=/scratch/kocevski/672319/ft2_4FGL_J0047.9+2233_daily_bin1774.fits outfile=/scratch/kocevski/672319/cmap_HighResolution_699148801_699408001_4FGL_J0047.9+2233_daily_bin1774.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=11.9981 yref=22.5632 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/672319/ft1_filtered_4FGL_J0047.9+2233_daily_bin1774.fits evtable="EVENTS" scfile=/scratch/kocevski/672319/ft2_4FGL_J0047.9+2233_daily_bin1774.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/672319/Model_4FGL_J0047.9+2233_daily_bin1774.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/672319/ft1_filtered_4FGL_J0047.9+2233_daily_bin1774.fits.....................!
real 110.07
user 108.65
sys 1.15

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/672319/ft1_filtered_4FGL_J0047.9+2233_daily_bin1774.fits', '/scratch/kocevski/672319/ft2_4FGL_J0047.9+2233_daily_bin1774.fits', expMap='/scratch/kocevski/672319/expmap_699148801_699408001_4FGL_J0047.9+2233_daily_bin1774.fits', expCube='/scratch/kocevski/672319/ltcube_699148801_699408001_4FGL_J0047.9+2233_daily_bin1774.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/672319/Model_4FGL_J0047.9+2233_daily_bin1774.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0047.9+2233'

4FGL J0047.9+2233
   Spectrum: PowerLaw
177    Prefactor:  3.900e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
178        Index:  2.509e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
179        Scale:  1.177e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/672319/ft1_filtered_4FGL_J0047.9+2233_daily_bin1774.fits
Spacecraft file(s): /scratch/kocevski/672319/ft2_4FGL_J0047.9+2233_daily_bin1774.fits
Exposure map: /scratch/kocevski/672319/expmap_699148801_699408001_4FGL_J0047.9+2233_daily_bin1774.fits
Exposure cube: /scratch/kocevski/672319/ltcube_699148801_699408001_4FGL_J0047.9+2233_daily_bin1774.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/672319/Model_4FGL_J0047.9+2233_daily_bin1774.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) = 11891.437433

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.9618       1.0000          .0000       .10000E+07
     2 'Prefactor '    14.807       1.0000          .0000       .10000E+07
     3 'Prefactor '    .56066       1.0000          .0000       .10000E+07
     4 'Prefactor '    16.268       1.0000          .0000       .10000E+07
     5 'norm      '    9.5138       1.0000          .0000       .10000E+07
     6 'Prefactor '    .20380E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    7.6286       1.0000          .0000       .10000E+07
     8 'norm      '    3.7835       1.0000          .0000       .10000E+07
     9 'norm      '    4.9716       1.0000          .0000       .10000E+07
    10 'Prefactor '    6.7594       1.0000          .0000       .10000E+07
    11 'Prefactor '    11.512       1.0000          .0000       .10000E+07
    12 'Prefactor '    .12225E-02   1.0000          .0000       .10000E+07
    13 'Prefactor '    .13122E-03   1.0000          .0000       .10000E+07
    14 'norm      '    1.1709       1.0000          .0000       .10000E+07
    15 'norm      '    2.8652       1.0000          .0000       .10000E+07
    16 'Prefactor '    14.829       1.0000          .0000       .10000E+07
    17 'Prefactor '    .28010E-05   1.0000          .0000       .10000E+07
    18 'Prefactor '    .37781E-06   1.0000          .0000       .10000E+07
    19 'Prefactor '    .12956E-05   1.0000          .0000       .10000E+07
    20 'Prefactor '    11.930       1.0000          .0000       .10000E+07
    21 'Normalizat'    .94744       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0801       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4950E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   11891.38     FROM MIGRAD    STATUS=CONVERGED    117 CALLS     1360 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.9634        2.6786       -.22421E-06   -.20356E-02
   2  Prefactor     14.773        4.7945        .11867E-05    .13902    
   3  Prefactor     .52880        1.1702        .13736E-05    .24104E-01
   4  Prefactor     16.310        4.1451       -.45929E-07   -.28689E-02
   5  norm          9.5697        7.2752       -.61427E-06   -.13142E-01
   6  Prefactor     .29976E-08    24.884       -.31298E-05** at limit **
   7  Prefactor     7.5993        1.3457       -.25149E-06   -.10046E-01
   8  norm          3.7822        1.8640       -.10416E-06    .36319E-02
   9  norm          4.9900        5.9336        .25873E-08    .13694E-02
  10  Prefactor     6.7808        5.1334        .82138E-07    .45693E-02
  11  Prefactor     11.401        1.6030       -.16321E-06   -.10945E-01
  12  Prefactor     .41439E-06    13.587       -.46910E-05** at limit **
  13  Prefactor     .26507E-06    13.258        .44949E-05** at limit **
  14  norm          1.1708        .52448        .34839E-07   -.21766E-01
  15  norm          2.8645        1.1500       -.70817E-07    .14119E-02
  16  Prefactor     14.676        9.5086       -.35953E-06   -.40213E-02
  17  Prefactor     .11435E-07    8.6123        .38788E-06** at limit **
  18  Prefactor      .0000        1.2032        .16438E-06** at limit **
  19  Prefactor      .0000        1.7483        .68622E-07** at limit **
  20  Prefactor     11.196        6.2161       -.15471E-05    .27329E-01
  21  Normalizat    .94813        .17637        .41592E-05    .19554E-03
  22  Prefactor     1.0800        .11968        .10636E-07    .52861E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.96335
  Prefactor  = 14.7733
  Prefactor  = 0.528803
  Prefactor  = 16.3101
  norm       = 9.56968
  Prefactor  = 2.9976e-09
  Prefactor  = 7.59934
  norm       = 3.7822
  norm       = 4.98998
  Prefactor  = 6.78084
  Prefactor  = 11.401
  Prefactor  = 4.14391e-07
  Prefactor  = 2.65066e-07
  norm       = 1.17085
  norm       = 2.86445
  Prefactor  = 14.6757
  Prefactor  = 1.14353e-08
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 11.196
  Normalizat = 0.948132
  Prefactor  = 1.08001
 **********
 **   18 **HESSE 
 **********

 FCN=   11891.38     FROM HESSE     STATUS=OK           394 CALLS     1754 TOTAL
                     EDM=   .25E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.9634        2.8031        .58978E-03   -1.5674    
   2  Prefactor     14.773        10.944        .26003E-03   -1.5631    
   3  Prefactor     .52880        21.697        .72828E-03   -1.5693    
   4  Prefactor     16.310        4.1734        .24805E-03   -1.5627    
   5  norm          9.5697        7.3157        .32466E-03   -1.5646    
   6  Prefactor     .29976E-08    26.085        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     7.5993        11.217        .36284E-03   -1.5653    
   8  norm          3.7822        1.8620        .51874E-03   -1.5669    
   9  norm          4.9900        6.2853        .45080E-03   -1.5663    
  10  Prefactor     6.7808        5.2354        .38570E-03   -1.5656    
  11  Prefactor     11.401        12.270        .29501E-03   -1.5640    
  12  Prefactor     .41439E-06    15.902        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .26507E-06    15.039        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.1708        .53245        .10600E-02   -1.5686    
  15  norm          2.8645        1.1548        .60028E-03   -1.5674    
  16  Prefactor     14.676        9.5324        .25983E-03   -1.5631    
  17  Prefactor     .11435E-07    8.6867        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor      .0000        1.2027        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor      .0000        1.7526        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     11.196        24.136        .28978E-03   -1.5641    
  21  Normalizat    .94813        .15802        .71475E-01   -.94789    
  22  Prefactor     1.0800        .10445        .38397E-01   -.90108    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.49729e-07
Minuit parameter uncertainties:
  1  2.80311
  2  10.9445
  3  6.77451
  4  4.17337
  5  7.31567
  6  0.000559569
  7  11.2171
  8  1.86198
  9  6.28533
  10  5.23544
  11  12.2702
  12  0.00513421
  13  0.00399327
  14  0.532447
  15  1.15477
  16  9.53237
  17  0.00062987
  18  7.09713e-06
  19  4.12706e-06
  20  24.1361
  21  0.158101
  22  0.104471
Done.

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

Extracting fit parameters...

4FGL J0047.9+2233
   Spectrum: PowerLaw
177    Prefactor:  1.140e+01  1.227e+01  0.000e+00  1.000e+06 ( 1.000e-13)
178        Index:  2.509e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
179        Scale:  1.177e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
492    Prefactor:  1.080e+00  1.045e-01  0.000e+00  1.000e+01 ( 1.000e+00)
493        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
494        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
491   Normalization:  9.481e-01  1.581e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.10
Ra Dec: 11.998 22.563
Photon Index (Fixed Index): 2.51 +/- 0.00
Photon Flux (Fixed Index): 3.67e-08 +/- 3.95e-08
Energy Flux (Fixed Index): 1.06e-05 +/- 1.14e-05

TS (Fixed Index): 1.10
Ra Dec: 11.998 22.563
Photon Flux Upper Limit: 1.10e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.58e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/672319/likelihoodResults_699148801_699408001_4FGL_J0047.9+2233_daily_bin1774.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11890.5246143
delta logL = 0.853559181844

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 11890.4930401
delta logL = 0.88513344712

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.6018       1.0000          .0000       .10000E+07
     2 'Index     '    3.6056       1.0000          .0000       10.000    
     3 'Normalizat'    .89541       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1045       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4950E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   11890.49     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      264 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.5951        27.476        .63222E-03    .93027E-02
   2  Index         3.6065        2.4150        .10649        .30398E-03
   3  Normalizat    .89544        .48033E-01    .73296E-01    .28190E-04
   4  Prefactor     1.1045        .32420E-01    .37418E-01   -.17384E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.59514
  Index      = 3.60649
  Normalizat = 0.895435
  Prefactor  = 1.10451
 **********
 **   18 **HESSE 
 **********

 FCN=   11890.49     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      297 TOTAL
                     EDM=   .13E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.5951        52.298        .10771E-04   -1.5676    
   2  Index         3.6065        3.6978        .54098E-02   -.28244    
   3  Normalizat    .89544        .16534        .32435E-03   -.96621    
   4  Prefactor     1.1045        .11281        .20206E-03   -.89323    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.29893e-06
Minuit parameter uncertainties:
  1  23.3001
  2  4.22064
  3  0.16543
  4  0.112837
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/672319': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 11890.4930391
delta logL = 0.885134429775

Extracting fit parameters...

4FGL J0047.9+2233
   Spectrum: PowerLaw
177    Prefactor:  2.595e+00  2.330e+01  0.000e+00  1.000e+06 ( 1.000e-13)
178        Index:  3.606e+00  4.221e+00  0.000e+00  1.000e+01 (-1.000e+00)
179        Scale:  1.177e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
492    Prefactor:  1.105e+00  1.128e-01  0.000e+00  1.000e+01 ( 1.000e+00)
493        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
494        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
491   Normalization:  8.954e-01  1.654e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.06
Ra Dec: 11.998 22.563
Photon Index (Free Index): 3.61 +/- 4.22
Photon Flux (Free Index): 7.25e-08 +/- 4.87e-08
Energy Flux (Free Index): 1.17e-05 +/- 1.58e-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/672319/cmap_HighResolution_699148801_699408001_4FGL_J0047.9+2233_daily_bin1774.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.58e-03', comment='SUCCESS', photon_flux='3.67e-08', energy_flux2='1.17e-05', photon_flux_error='3.95e-08', dlogl='8.85e-01', energy_flux='1.06e-05', photon_flux2='7.25e-08', job_status='DONE', time_completed='2023-03-02 00:19:55.068175', photon_index_error2='4.22', photon_index2='3.61', ts='1.10', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', photon_flux_upper_limit='1.10e-07', energy_flux_error2='1.58e-05', EG='0.95', time_epoch_completed='1677745195.07', return_code='0', job_id='672319', GAL2='1.10', EG2='0.90', return_code2='102', energy_flux_error='1.14e-05', photon_flux_error2='4.87e-08', ts2='3.06', photon_index='2.51' WHERE bin_id='1774' AND source_name='4FGL J0047.9+2233' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Mar  2 00:19:55 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0024>
Subject: Job 672319: <4FGL_J0047.9+2233_daily_bin1774> in cluster <slac> Done

Job <4FGL_J0047.9+2233_daily_bin1774> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Thu Mar  2 00:04:51 2023
Job was executed on host(s) <bullet0024>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Mar  2 00:04:52 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Mar  2 00:04:52 2023
Terminated at Thu Mar  2 00:19:55 2023
Results reported at Thu Mar  2 00:19:55 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0047.9+2233_daily_bin1774 11.9981 22.5632 699148801 699408001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0047.9+2233 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   727.30 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             332.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   903 sec.
    Turnaround time :                            904 sec.

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

