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


Performing analysis on: 4FGL_J1047.7+7238_daily_bin1748
RA = 161.939, Dec = 72.642
tmin = 692409601, tmax = 692668801
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='883161', job_status='RUN', time_executed='2022-12-14 00:30:37.866053', time_epoch_executed='1671006637.87' WHERE source_name='4FGL J1047.7+7238' and cadence='daily' and bin_id='1748'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/883161

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/883161/ft1_4FGL_J1047.7+7238_daily_bin1748.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/883161/ft2_4FGL_J1047.7+7238_daily_bin1748.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/883161/ft1_4FGL_J1047.7+7238_daily_bin1748.fits outfile=/scratch/kocevski/883161/ft1_filteredMKT_4FGL_J1047.7+7238_daily_bin1748.fits ra=161.939 dec=72.642 rad=12.0 tmin=692409601.0 tmax=692668801.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.56
user 3.33
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/883161/ft2_4FGL_J1047.7+7238_daily_bin1748.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/883161/ft1_filteredMKT_4FGL_J1047.7+7238_daily_bin1748.fits evtable="EVENTS" outfile="/scratch/kocevski/883161/ft1_filtered_4FGL_J1047.7+7238_daily_bin1748.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.49
user 0.32
sys 0.16

Number of photons that the gtmktime cut: 852

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/883161/ft1_filtered_4FGL_J1047.7+7238_daily_bin1748.fits" evtable="EVENTS" scfile=/scratch/kocevski/883161/ft2_4FGL_J1047.7+7238_daily_bin1748.fits sctable="SC_DATA" outfile=/scratch/kocevski/883161/ltcube_692409601_692668801_4FGL_J1047.7+7238_daily_bin1748.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/883161/ft2_4FGL_J1047.7+7238_daily_bin1748.fits
.....................!
real 12.27
user 11.94
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/883161/ft1_filtered_4FGL_J1047.7+7238_daily_bin1748.fits evtable="EVENTS" scfile=/scratch/kocevski/883161/ft2_4FGL_J1047.7+7238_daily_bin1748.fits sctable="SC_DATA" expcube=/scratch/kocevski/883161/ltcube_692409601_692668801_4FGL_J1047.7+7238_daily_bin1748.fits outfile=/scratch/kocevski/883161/expmap_692409601_692668801_4FGL_J1047.7+7238_daily_bin1748.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/883161/ltcube_692409601_692668801_4FGL_J1047.7+7238_daily_bin1748.fits
.....................!
real 191.53
user 186.51
sys 4.70

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/883161/ft1_filtered_4FGL_J1047.7+7238_daily_bin1748.fits scfile=/scratch/kocevski/883161/ft2_4FGL_J1047.7+7238_daily_bin1748.fits outfile=/scratch/kocevski/883161/cmap_692409601_692668801_4FGL_J1047.7+7238_daily_bin1748.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/883161/ft1_filtered_4FGL_J1047.7+7238_daily_bin1748.fits scfile=/scratch/kocevski/883161/ft2_4FGL_J1047.7+7238_daily_bin1748.fits outfile=/scratch/kocevski/883161/cmap_HighResolution_692409601_692668801_4FGL_J1047.7+7238_daily_bin1748.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.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/883161/ft1_filtered_4FGL_J1047.7+7238_daily_bin1748.fits evtable="EVENTS" scfile=/scratch/kocevski/883161/ft2_4FGL_J1047.7+7238_daily_bin1748.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/883161/Model_4FGL_J1047.7+7238_daily_bin1748.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/883161/ft1_filtered_4FGL_J1047.7+7238_daily_bin1748.fits.....................!
real 102.98
user 101.59
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/883161/ft1_filtered_4FGL_J1047.7+7238_daily_bin1748.fits', '/scratch/kocevski/883161/ft2_4FGL_J1047.7+7238_daily_bin1748.fits', expMap='/scratch/kocevski/883161/expmap_692409601_692668801_4FGL_J1047.7+7238_daily_bin1748.fits', expCube='/scratch/kocevski/883161/ltcube_692409601_692668801_4FGL_J1047.7+7238_daily_bin1748.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/883161/Model_4FGL_J1047.7+7238_daily_bin1748.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/883161/ft1_filtered_4FGL_J1047.7+7238_daily_bin1748.fits
Spacecraft file(s): /scratch/kocevski/883161/ft2_4FGL_J1047.7+7238_daily_bin1748.fits
Exposure map: /scratch/kocevski/883161/expmap_692409601_692668801_4FGL_J1047.7+7238_daily_bin1748.fits
Exposure cube: /scratch/kocevski/883161/ltcube_692409601_692668801_4FGL_J1047.7+7238_daily_bin1748.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/883161/Model_4FGL_J1047.7+7238_daily_bin1748.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) = 9024.2379252

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .28052E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    .15841E-03   1.0000          .0000       .10000E+07
     3 'norm      '    2.6422       1.0000          .0000       .10000E+07
     4 'Prefactor '    20.249       1.0000          .0000       .10000E+07
     5 'Prefactor '    7.2333       1.0000          .0000       .10000E+07
     6 'norm      '    1.4141       1.0000          .0000       .10000E+07
     7 'norm      '    4.1109       1.0000          .0000       .10000E+07
     8 'Prefactor '    .10524       1.0000          .0000       .10000E+07
     9 'Prefactor '    .53178E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    .29257       1.0000          .0000       .10000E+07
    11 'norm      '    5.8270       1.0000          .0000       .10000E+07
    12 'norm      '    .82957       1.0000          .0000       .10000E+07
    13 'Prefactor '    7.8355       1.0000          .0000       .10000E+07
    14 'Prefactor '    6.2502       1.0000          .0000       .10000E+07
    15 'norm      '    4.7817       1.0000          .0000       .10000E+07
    16 'norm      '    2.2870       1.0000          .0000       .10000E+07
    17 'Prefactor '    15.670       1.0000          .0000       .10000E+07
    18 'Prefactor '    9.6179       1.0000          .0000       .10000E+07
    19 'Prefactor '    .75415       1.0000          .0000       .10000E+07
    20 'Prefactor '    .94144       1.0000          .0000       .10000E+07
    21 'Prefactor '    .55923       1.0000          .0000       .10000E+07
    22 'Prefactor '    .41808E-02   1.0000          .0000       .10000E+07
    23 'norm      '    4.5868       1.0000          .0000       .10000E+07
    24 'norm      '    5.9573       1.0000          .0000       .10000E+07
    25 'Prefactor '    3.6913       1.0000          .0000       .10000E+07
    26 'Normalizat'    1.1105       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .85332       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=   9024.179     FROM MIGRAD    STATUS=CONVERGED    161 CALLS     1887 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .55511E-10    18.110        .62675E-07** at limit **
   2  Prefactor      .0000        2.5633       -.38399E-07** at limit **
   3  norm          2.6379        2.1395       -.24182E-07   -.10668E-02
   4  Prefactor     20.312        2.9211       -.33928E-10    .33290E-01
   5  Prefactor     7.2283        6.9447       -.27884E-07   -.16774E-03
   6  norm          1.4136        .59588       -.54231E-08   -.74332E-03
   7  norm          4.1071        10.655        .28596E-07   -.26393E-02
   8  Prefactor     .60384E-01    1.9130       -.47833E-08** at limit **
   9  Prefactor      .0000        3.0402        .47509E-07** at limit **
  10  Prefactor     .17764E-08    56.364        .24570E-06** at limit **
  11  norm          5.8260        2.9681       -.25362E-07   -.79997E-03
  12  norm          .84384        3.9687        .36758E-07   -.45208E-02
  13  Prefactor     7.9270        5.4930       -.36882E-07   -.39308E-01
  14  Prefactor     6.2925        7.0909        .30844E-07    .11456E-02
  15  norm          4.7788        1.2893        .37467E-08    .47300E-02
  16  norm          2.2869        2.2193        .39868E-08    .91985E-03
  17  Prefactor     15.612        10.424       -.35421E-07    .14744E-01
  18  Prefactor     9.5652        1.9906        .99097E-08    .44664E-02
  19  Prefactor     .73971        2.2324        .41399E-08    .18868E-03
  20  Prefactor     .95838        .92532       -.13664E-07    .32588E-02
  21  Prefactor     .64332E-06    332.84        .58588E-06** at limit **
  22  Prefactor      .0000        7.9595        .57357E-07** at limit **
  23  norm          4.6089        3.5815        .16149E-08    .34583E-03
  24  norm          5.9772        3.1801       -.43951E-08   -.23626E-03
  25  Prefactor     3.1082        83.568       -.16989E-06    .20429E-02
  26  Normalizat    1.1106        .16596        .93476E-06    .10364E-03
  27  Prefactor     .85371        .14793        .36447E-06    .93823E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.55112e-11
  Prefactor  = 0
  norm       = 2.63793
  Prefactor  = 20.3118
  Prefactor  = 7.22828
  norm       = 1.41364
  norm       = 4.10709
  Prefactor  = 0.0603844
  Prefactor  = 0
  Prefactor  = 1.77636e-09
  norm       = 5.82604
  norm       = 0.843844
  Prefactor  = 7.92704
  Prefactor  = 6.29249
  norm       = 4.77877
  norm       = 2.28686
  Prefactor  = 15.6115
  Prefactor  = 9.5652
  Prefactor  = 0.739708
  Prefactor  = 0.958381
  Prefactor  = 6.43319e-07
  Prefactor  = 0
  norm       = 4.60885
  norm       = 5.9772
  Prefactor  = 3.10822
  Normalizat = 1.11056
  Prefactor  = 0.853712
 **********
 **   18 **HESSE 
 **********

 FCN=   9024.179     FROM HESSE     STATUS=OK           560 CALLS     2447 TOTAL
                     EDM=   .59E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .55511E-10    18.076        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor      .0000        2.5639        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.6379        2.3505        .62697E-03   -1.5675    
   4  Prefactor     20.312        20.080        .22230E-03   -1.5618    
   5  Prefactor     7.2283        6.9584        .37272E-03   -1.5654    
   6  norm          1.4136        .59960        .91025E-03   -1.5684    
   7  norm          4.1071        10.637        .49696E-03   -1.5667    
   8  Prefactor     .60384E-01    4.9769        .11431E-01   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor      .0000        3.0382        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .17764E-08    55.769        .10317E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          5.8260        2.9702        .41581E-03   -1.5660    
  12  norm          .84384        4.4718        .50756E-03   -1.5690    
  13  Prefactor     7.9270        831.01        .35798E-03   -1.5652    
  14  Prefactor     6.2925        7.1761        .40129E-03   -1.5658    
  15  norm          4.7788        1.2636        .45986E-03   -1.5664    
  16  norm          2.2869        2.2501        .67854E-03   -1.5678    
  17  Prefactor     15.612        11.424        .25275E-03   -1.5629    
  18  Prefactor     9.5652        14.451        .32289E-03   -1.5646    
  19  Prefactor     .73971        2.2574        .56417E-03   -1.5691    
  20  Prefactor     .95838        13.269        .42936E-03   -1.5688    
  21  Prefactor     .64332E-06    328.20        .72962E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor      .0000        7.9616        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          4.6089        3.5813        .46976E-03   -1.5665    
  24  norm          5.9772        3.3116        .41117E-03   -1.5659    
  25  Prefactor     3.1082        81.472        .52543E-03   -1.5673    
  26  Normalizat    1.1106        .14777        .57570E-01   -.89413    
  27  Prefactor     .85371        .13069        .44407E-01   -.97778    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.85018e-06
Minuit parameter uncertainties:
  1  5.10279e-05
  2  5.28125e-06
  3  2.35048
  4  20.0798
  5  6.95837
  6  0.599596
  7  10.637
  8  1.09641
  9  4.17723e-06
  10  0.000633053
  11  2.9702
  12  3.88511
  13  162.349
  14  7.17611
  15  1.26358
  16  2.25008
  17  11.4242
  18  14.4508
  19  2.25737
  20  7.13201
  21  0.0290625
  22  7.52025e-06
  23  3.58132
  24  3.31163
  25  31.827
  26  0.147828
  27  0.130741
Done.

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

Extracting fit parameters...

4FGL J1047.7+7238
   Spectrum: PowerLaw
374    Prefactor:  6.292e+00  7.176e+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

GAL_V02
   Spectrum: PowerLaw
700    Prefactor:  8.537e-01  1.307e-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:  1.111e+00  1.478e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.53
Ra Dec: 161.939 72.642
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 4.88e-08 +/- 5.57e-08
Energy Flux (Fixed Index): 2.06e-05 +/- 2.35e-05

TS (Fixed Index): 1.53
Ra Dec: 161.939 72.642
Photon Flux Upper Limit: 1.33e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.02e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/883161/likelihoodResults_692409601_692668801_4FGL_J1047.7+7238_daily_bin1748.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) = 9023.68987717
delta logL = 0.489305578223

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9023.67314666
delta logL = 0.506036089444

Fit tolerance = 1e-08

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

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

 FCN=   9023.673     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      261 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.4085        26.881        .65913E-03    .97288E-02
   2  Index         2.8530        2.1424        .85427E-01    .29450E-03
   3  Normalizat    1.0814        .49228E-01    .58150E-01    .14009E-04
   4  Prefactor     .86770        .41745E-01    .44592E-01    .17648E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.40853
  Index      = 2.85303
  Normalizat = 1.08137
  Prefactor  = 0.867704
 **********
 **   18 **HESSE 
 **********

 FCN=   9023.673     FROM HESSE     STATUS=OK            33 CALLS      294 TOTAL
                     EDM=   .58E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.4085        19.184        .93543E-05   -1.5677    
   2  Index         2.8530        2.2150        .44515E-02   -.44382    
   3  Normalizat    1.0814        .17695        .25715E-03   -.90352    
   4  Prefactor     .86770        .15563        .25510E-03   -.97279    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.75807e-10
Minuit parameter uncertainties:
  1  13.5951
  2  2.3151
  3  0.177051
  4  0.155712
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/883161': 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) = 9023.67314652
delta logL = 0.506036228409

Extracting fit parameters...

4FGL J1047.7+7238
   Spectrum: PowerLaw
374    Prefactor:  2.409e+00  1.360e+01  0.000e+00  1.000e+06 ( 1.000e-13)
375        Index:  2.853e+00  2.315e+00  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:  8.677e-01  1.557e-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:  1.081e+00  1.771e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.71
Ra Dec: 161.939 72.642
Photon Index (Free Index): 2.85 +/- 2.32
Photon Flux (Free Index): 8.35e-08 +/- 6.02e-08
Energy Flux (Free Index): 1.81e-05 +/- 2.42e-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/883161/cmap_HighResolution_692409601_692668801_4FGL_J1047.7+7238_daily_bin1748.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.02e-02', comment='SUCCESS', photon_flux='4.88e-08', energy_flux2='1.81e-05', photon_flux_error='5.57e-08', dlogl='5.06e-01', energy_flux='2.06e-05', photon_flux2='8.35e-08', job_status='DONE', time_completed='2022-12-14 00:45:53.896914', photon_index_error2='2.32', photon_index2='2.85', ts='1.53', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', photon_flux_upper_limit='1.33e-07', energy_flux_error2='2.42e-05', EG='1.11', time_epoch_completed='1671007553.9', return_code='0', job_id='883161', GAL2='0.87', EG2='1.08', return_code2='0', energy_flux_error='2.35e-05', photon_flux_error2='6.02e-08', ts2='2.71', photon_index='2.23' WHERE bin_id='1748' AND source_name='4FGL J1047.7+7238' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Dec 14 00:45:53 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0161>
Subject: Job 883161: <4FGL_J1047.7+7238_daily_bin1748> in cluster <slac> Done

Job <4FGL_J1047.7+7238_daily_bin1748> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Dec 14 00:30:14 2022
Job was executed on host(s) <bullet0161>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec 14 00:30:15 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Dec 14 00:30:15 2022
Terminated at Wed Dec 14 00:45:54 2022
Results reported at Wed Dec 14 00:45:54 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1047.7+7238_daily_bin1748 161.939 72.642 692409601 692668801 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 :                                   918.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             346.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   939 sec.
    Turnaround time :                            940 sec.

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

