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


Performing analysis on: 4FGL_J1047.7+7238_daily_bin1753
RA = 161.939, Dec = 72.642
tmin = 693705601, tmax = 693964801
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='452549', job_status='RUN', time_executed='2022-12-29 00:46:53.714810', time_epoch_executed='1672303613.71' WHERE source_name='4FGL J1047.7+7238' and cadence='daily' and bin_id='1753'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/452549

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/452549/ft1_4FGL_J1047.7+7238_daily_bin1753.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/452549/ft2_4FGL_J1047.7+7238_daily_bin1753.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/452549/ft1_4FGL_J1047.7+7238_daily_bin1753.fits outfile=/scratch/kocevski/452549/ft1_filteredMKT_4FGL_J1047.7+7238_daily_bin1753.fits ra=161.939 dec=72.642 rad=12.0 tmin=693705601.0 tmax=693964801.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.81
user 3.58
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/452549/ft2_4FGL_J1047.7+7238_daily_bin1753.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/452549/ft2_4FGL_J1047.7+7238_daily_bin1753.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/452549/ft1_filteredMKT_4FGL_J1047.7+7238_daily_bin1753.fits evtable="EVENTS" outfile="/scratch/kocevski/452549/ft1_filtered_4FGL_J1047.7+7238_daily_bin1753.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.45
user 0.29
sys 0.15

Number of photons that the gtmktime cut: 774

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/452549/ft1_filtered_4FGL_J1047.7+7238_daily_bin1753.fits" evtable="EVENTS" scfile=/scratch/kocevski/452549/ft2_4FGL_J1047.7+7238_daily_bin1753.fits sctable="SC_DATA" outfile=/scratch/kocevski/452549/ltcube_693705601_693964801_4FGL_J1047.7+7238_daily_bin1753.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/452549/ft2_4FGL_J1047.7+7238_daily_bin1753.fits
.....................!
real 13.01
user 12.65
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/452549/ft1_filtered_4FGL_J1047.7+7238_daily_bin1753.fits evtable="EVENTS" scfile=/scratch/kocevski/452549/ft2_4FGL_J1047.7+7238_daily_bin1753.fits sctable="SC_DATA" expcube=/scratch/kocevski/452549/ltcube_693705601_693964801_4FGL_J1047.7+7238_daily_bin1753.fits outfile=/scratch/kocevski/452549/expmap_693705601_693964801_4FGL_J1047.7+7238_daily_bin1753.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/452549/ltcube_693705601_693964801_4FGL_J1047.7+7238_daily_bin1753.fits
.....................!
real 156.91
user 152.48
sys 4.04

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

Setting source of interest to:
4FGL J1047.7+7238 @ 161.939 72.642

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/452549/ft1_filtered_4FGL_J1047.7+7238_daily_bin1753.fits scfile=/scratch/kocevski/452549/ft2_4FGL_J1047.7+7238_daily_bin1753.fits outfile=/scratch/kocevski/452549/cmap_693705601_693964801_4FGL_J1047.7+7238_daily_bin1753.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=161.939 yref=72.642 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.48
user 0.31
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/452549/ft1_filtered_4FGL_J1047.7+7238_daily_bin1753.fits scfile=/scratch/kocevski/452549/ft2_4FGL_J1047.7+7238_daily_bin1753.fits outfile=/scratch/kocevski/452549/cmap_HighResolution_693705601_693964801_4FGL_J1047.7+7238_daily_bin1753.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=161.939 yref=72.642 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/452549/ft1_filtered_4FGL_J1047.7+7238_daily_bin1753.fits evtable="EVENTS" scfile=/scratch/kocevski/452549/ft2_4FGL_J1047.7+7238_daily_bin1753.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/452549/Model_4FGL_J1047.7+7238_daily_bin1753.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/452549/ft1_filtered_4FGL_J1047.7+7238_daily_bin1753.fits.....................!
real 76.75
user 75.56
sys 1.01

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/452549/ft1_filtered_4FGL_J1047.7+7238_daily_bin1753.fits', '/scratch/kocevski/452549/ft2_4FGL_J1047.7+7238_daily_bin1753.fits', expMap='/scratch/kocevski/452549/expmap_693705601_693964801_4FGL_J1047.7+7238_daily_bin1753.fits', expCube='/scratch/kocevski/452549/ltcube_693705601_693964801_4FGL_J1047.7+7238_daily_bin1753.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/452549/Model_4FGL_J1047.7+7238_daily_bin1753.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1047.7+7238'

4FGL J1047.7+7238
   Spectrum: PowerLaw
374    Prefactor:  1.026e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
375        Index:  2.234e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
376        Scale:  2.160e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/452549/ft1_filtered_4FGL_J1047.7+7238_daily_bin1753.fits
Spacecraft file(s): /scratch/kocevski/452549/ft2_4FGL_J1047.7+7238_daily_bin1753.fits
Exposure map: /scratch/kocevski/452549/expmap_693705601_693964801_4FGL_J1047.7+7238_daily_bin1753.fits
Exposure cube: /scratch/kocevski/452549/ltcube_693705601_693964801_4FGL_J1047.7+7238_daily_bin1753.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/452549/Model_4FGL_J1047.7+7238_daily_bin1753.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) = 8166.96967653

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.2882       1.0000          .0000       .10000E+07
     2 'Prefactor '    2.0355       1.0000          .0000       .10000E+07
     3 'norm      '    3.5851       1.0000          .0000       .10000E+07
     4 'Prefactor '    .41720E-02   1.0000          .0000       .10000E+07
     5 'Prefactor '    7.8792       1.0000          .0000       .10000E+07
     6 'norm      '    .24480E-07   1.0000          .0000       .10000E+07
     7 'norm      '    7.0147       1.0000          .0000       .10000E+07
     8 'Prefactor '    .10702E-01   1.0000          .0000       .10000E+07
     9 'Prefactor '    .23513E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    21.525       1.0000          .0000       .10000E+07
    11 'norm      '    5.2877       1.0000          .0000       .10000E+07
    12 'norm      '    12.713       1.0000          .0000       .10000E+07
    13 'Prefactor '    .34451       1.0000          .0000       .10000E+07
    14 'Prefactor '    .12000E-03   1.0000          .0000       .10000E+07
    15 'norm      '    3.5798       1.0000          .0000       .10000E+07
    16 'norm      '    2.1962       1.0000          .0000       .10000E+07
    17 'Prefactor '    7.0031       1.0000          .0000       .10000E+07
    18 'Prefactor '    2.7933       1.0000          .0000       .10000E+07
    19 'Prefactor '    .22760E-08   1.0000          .0000       .10000E+07
    20 'Prefactor '    8.0269       1.0000          .0000       .10000E+07
    21 'Prefactor '    .26981E-03   1.0000          .0000       .10000E+07
    22 'Prefactor '    10.794       1.0000          .0000       .10000E+07
    23 'norm      '    .33995E-06   1.0000          .0000       .10000E+07
    24 'norm      '    2.9432       1.0000          .0000       .10000E+07
    25 'Prefactor '    .74585E-05   1.0000          .0000       .10000E+07
    26 'Normalizat'    .97339       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .92057       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7030E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8166.872     FROM MIGRAD    STATUS=CONVERGED    164 CALLS     1902 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.9178        5.0451        .47599E-06   -.14356E-02
   2  Prefactor     2.0444        2.2248        .12425E-06    .13706E-02
   3  norm          3.5808        1.9169       -.19112E-07   -.10247E-02
   4  Prefactor     .35305E-07    11.019       -.27107E-06** at limit **
   5  Prefactor     7.8037        9.0121        .12134E-08   -.45130E-02
   6  norm           .0000        .39830       -.10179E-06** at limit **
   7  norm          7.0012        8.6735       -.44702E-07   -.77716E-01
   8  Prefactor     .34917E-07    13.138       -.23138E-05** at limit **
   9  Prefactor     .64487E-06    73.771        .36439E-05** at limit **
  10  Prefactor     21.629        11.923        .50847E-06   -.53968E-01
  11  norm          5.2849        3.1395        .22140E-06    .79873E-03
  12  norm          12.712        5.8690       -.77906E-07    .30855E-01
  13  Prefactor     .11187E-05    3.2529        .40515E-06** at limit **
  14  Prefactor      .0000        3.1316        .35319E-06** at limit **
  15  norm          3.5793        .86159        .28873E-07   -.20753E-02
  16  norm          2.1900        2.2591        .92090E-07   -.76468E-03
  17  Prefactor     6.9983        8.3982       -.40101E-06   -.61403E-01
  18  Prefactor     2.7966        2.3570       -.24675E-06   -.80600E-02
  19  Prefactor      .0000        1.4836        .66309E-07** at limit **
  20  Prefactor     8.0073        8.1243        .12849E-06    .81572E-02
  21  Prefactor     .15737E-05    8.2757       -.96858E-06** at limit **
  22  Prefactor     10.036        22.808        .14199E-05   -.55440E-01
  23  norm           .0000        1.7797       -.10733E-06** at limit **
  24  norm          2.9391        2.2139       -.44939E-07   -.69101E-03
  25  Prefactor     .12909E-05    8.2979        .51216E-06** at limit **
  26  Normalizat    .97488        .17482       -.56265E-05   -.57310E-04
  27  Prefactor     .92004        .15481       -.13845E-05   -.70941E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.91783
  Prefactor  = 2.04437
  norm       = 3.58083
  Prefactor  = 3.53051e-08
  Prefactor  = 7.80367
  norm       = 0
  norm       = 7.00121
  Prefactor  = 3.49165e-08
  Prefactor  = 6.44873e-07
  Prefactor  = 21.6294
  norm       = 5.28485
  norm       = 12.712
  Prefactor  = 1.11866e-06
  Prefactor  = 0
  norm       = 3.57935
  norm       = 2.19002
  Prefactor  = 6.99835
  Prefactor  = 2.79664
  Prefactor  = 0
  Prefactor  = 8.00725
  Prefactor  = 1.57369e-06
  Prefactor  = 10.0359
  norm       = 0
  norm       = 2.93907
  Prefactor  = 1.29091e-06
  Normalizat = 0.974878
  Prefactor  = 0.92004
 **********
 **   18 **HESSE 
 **********

 FCN=   8166.872     FROM HESSE     STATUS=OK           550 CALLS     2452 TOTAL
                     EDM=   .77E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.9178        81.364        .48627E-03   -1.5668    
   2  Prefactor     2.0444        2.2314        .72468E-03   -1.5679    
   3  norm          3.5808        1.9206        .53346E-03   -1.5670    
   4  Prefactor     .35305E-07    11.582        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7.8037        9.0307        .35698E-03   -1.5652    
   6  norm           .0000        .22347        .16458E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          7.0012        11.691        .37854E-03   -1.5655    
   8  Prefactor     .34917E-07    18.626        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .64487E-06    75.168        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     21.629        20.644        .21560E-03   -1.5615    
  11  norm          5.2849        3.1449        .43685E-03   -1.5662    
  12  norm          12.712        6.6589        .28068E-03   -1.5637    
  13  Prefactor     .11187E-05    62.847        .96219E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor      .0000        3.1265        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.5793        .86627        .53387E-03   -1.5670    
  16  norm          2.1900        2.2786        .69408E-03   -1.5678    
  17  Prefactor     6.9983        11.388        .37885E-03   -1.5655    
  18  Prefactor     2.7966        29.162        .60850E-03   -1.5675    
  19  Prefactor      .0000        1.4818        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     8.0073        8.2110        .35365E-03   -1.5651    
  21  Prefactor     .15737E-05    14.400        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     10.036        27.971        .30471E-03   -1.5645    
  23  norm           .0000        1.7783        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          2.9391        2.2199        .59176E-03   -1.5674    
  25  Prefactor     .12909E-05    13.256        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .97488        .15762        .45833E-01   -.93877    
  27  Prefactor     .92004        .13530        .45267E-01   -.95444    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.68024e-07
Minuit parameter uncertainties:
  1  35.7088
  2  2.2314
  3  1.92058
  4  0.0012785
  5  9.03072
  6  4.98069e-07
  7  11.6913
  8  0.0016129
  9  0.013925
  10  20.6442
  11  3.14492
  12  6.65893
  13  0.0167698
  14  8.24658e-06
  15  0.866273
  16  2.27855
  17  11.3879
  18  18.0616
  19  4.73668e-07
  20  8.21105
  21  0.00952073
  22  27.9714
  23  4.01474e-06
  24  2.21986
  25  0.00827344
  26  0.157692
  27  0.135345
Done.

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

Extracting fit parameters...

4FGL J1047.7+7238
   Spectrum: PowerLaw
374    Prefactor:  0.000e+00  8.247e-06  0.000e+00  1.000e+06 ( 1.000e-13)
375        Index:  2.234e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
376        Scale:  2.160e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
700    Prefactor:  9.200e-01  1.353e-01  0.000e+00  1.000e+01 ( 1.000e+00)
701        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
702        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
699   Normalization:  9.749e-01  1.577e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 161.939 72.642
Photon Flux Upper Limit: 6.91e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.28e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/452549/likelihoodResults_693705601_693964801_4FGL_J1047.7+7238_daily_bin1753.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) = 8167.03778016
delta logL = -0.165406249725

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8166.22783077
delta logL = 0.644543148855

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .41556E-02   1.0000          .0000       .10000E+07
     2 'Index     '    5.0735       1.0000          .0000       10.000    
     3 'Normalizat'    .91676       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94946       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7030E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   8166.872     FROM MIGRAD    STATUS=CONVERGED     41 CALLS      279 TOTAL
                     EDM=   .40E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        .14385        .42118E-03** at limit **
   2  Index         .70240E-01    .16705        .72544E-06     .0000    
   3  Normalizat    .97488        1.2866       -.41468E-05    .25643E-04
   4  Prefactor     .92004        1.2736        .33776E-05   -.55852E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 0.0702395
  Normalizat = 0.974878
  Prefactor  = 0.92004
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   8166.872     FROM HESSE     STATUS=FAILED         9 CALLS      288 TOTAL
                     EDM=   .40E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        .14385        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .28988        .16705        .72544E-06   -1.4030    
   3  Normalizat    .97488        1.2866       -.41468E-05   -.93877    
   4  Prefactor     .92004        1.2736        .33776E-05   -.95444    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 3.97666e-12
Minuit parameter uncertainties:
  1  7.66819e-08
  2  0.168182
  3  1.33134
  4  1.31892
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/452549': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 8166.87237391
delta logL = 0.0

Extracting fit parameters...

4FGL J1047.7+7238
   Spectrum: PowerLaw
374    Prefactor:  0.000e+00  7.668e-08  0.000e+00  1.000e+06 ( 1.000e-13)
375        Index:  7.024e-02  1.682e-01  0.000e+00  1.000e+01 (-1.000e+00)
376        Scale:  2.160e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
700    Prefactor:  9.200e-01  1.319e+00  0.000e+00  1.000e+01 ( 1.000e+00)
701        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
702        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
699   Normalization:  9.749e-01  1.331e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 161.939 72.642

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/452549/cmap_HighResolution_693705601_693964801_4FGL_J1047.7+7238_daily_bin1753.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.28e-03', job_status='DONE', photon_flux_upper_limit='6.91e-08', time_completed='2022-12-29 00:59:02.232786', job_id='452549', GAL2='0.92', fit_tolerance='1e-08', EG2='0.97', EG='0.97', time_epoch_completed='1672304342.23', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='0.00e+00', ts2='0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='1753' AND source_name='4FGL J1047.7+7238' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Dec 29 00:59:02 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0086>
Subject: Job 452549: <4FGL_J1047.7+7238_daily_bin1753> in cluster <slac> Done

Job <4FGL_J1047.7+7238_daily_bin1753> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Dec 29 00:45:13 2022
Job was executed on host(s) <bullet0086>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Dec 29 00:46:00 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Dec 29 00:46:00 2022
Terminated at Thu Dec 29 00:59:02 2022
Results reported at Thu Dec 29 00:59:02 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1047.7+7238_daily_bin1753 161.939 72.642 693705601 693964801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1047.7+7238 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   729.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             328.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   782 sec.
    Turnaround time :                            829 sec.

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

