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 48 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 make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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


Performing analysis on: 4FGL_J1047.7+7238_monthly_bin168
RA = 161.939, Dec = 72.642
tmin = 672451201, tmax = 675043201
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='630684', job_status='RUN', time_executed='2022-05-24 02:57:02.287293', time_epoch_executed='1653386222.29' WHERE source_name='4FGL J1047.7+7238' and cadence='monthly' and bin_id='168'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/630684

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

Retrieving the FT1 file...

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

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

Retrieving 455 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/630684/ft1_4FGL_J1047.7+7238_monthly_bin168.fits


Retrieving the FT1 file...

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

Retrieving 455 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/630684/ft2_4FGL_J1047.7+7238_monthly_bin168.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/630684/ft1_4FGL_J1047.7+7238_monthly_bin168.fits outfile=/scratch/kocevski/630684/ft1_filteredMKT_4FGL_J1047.7+7238_monthly_bin168.fits ra=161.939 dec=72.642 rad=12.0 tmin=672451201.0 tmax=675043201.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 28.70
user 27.83
sys 0.75

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/630684/ft2_4FGL_J1047.7+7238_monthly_bin168.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/630684/ft1_filteredMKT_4FGL_J1047.7+7238_monthly_bin168.fits evtable="EVENTS" outfile="/scratch/kocevski/630684/ft1_filtered_4FGL_J1047.7+7238_monthly_bin168.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.85
user 0.64
sys 0.20

Number of photons that the gtmktime cut: 11911

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/630684/ft1_filtered_4FGL_J1047.7+7238_monthly_bin168.fits" evtable="EVENTS" scfile=/scratch/kocevski/630684/ft2_4FGL_J1047.7+7238_monthly_bin168.fits sctable="SC_DATA" outfile=/scratch/kocevski/630684/ltcube_672451201_675043201_4FGL_J1047.7+7238_monthly_bin168.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/630684/ft2_4FGL_J1047.7+7238_monthly_bin168.fits
.....................!
real 125.15
user 124.33
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/630684/ft1_filtered_4FGL_J1047.7+7238_monthly_bin168.fits evtable="EVENTS" scfile=/scratch/kocevski/630684/ft2_4FGL_J1047.7+7238_monthly_bin168.fits sctable="SC_DATA" expcube=/scratch/kocevski/630684/ltcube_672451201_675043201_4FGL_J1047.7+7238_monthly_bin168.fits outfile=/scratch/kocevski/630684/expmap_672451201_675043201_4FGL_J1047.7+7238_monthly_bin168.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/630684/ltcube_672451201_675043201_4FGL_J1047.7+7238_monthly_bin168.fits
.....................!
real 193.36
user 186.39
sys 6.13

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/630684/ft1_filtered_4FGL_J1047.7+7238_monthly_bin168.fits scfile=/scratch/kocevski/630684/ft2_4FGL_J1047.7+7238_monthly_bin168.fits outfile=/scratch/kocevski/630684/cmap_672451201_675043201_4FGL_J1047.7+7238_monthly_bin168.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.81
user 0.63
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/630684/ft1_filtered_4FGL_J1047.7+7238_monthly_bin168.fits scfile=/scratch/kocevski/630684/ft2_4FGL_J1047.7+7238_monthly_bin168.fits outfile=/scratch/kocevski/630684/cmap_HighResolution_672451201_675043201_4FGL_J1047.7+7238_monthly_bin168.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.83
user 0.64
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/630684/ft1_filtered_4FGL_J1047.7+7238_monthly_bin168.fits evtable="EVENTS" scfile=/scratch/kocevski/630684/ft2_4FGL_J1047.7+7238_monthly_bin168.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/630684/Model_4FGL_J1047.7+7238_monthly_bin168.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/630684/ft1_filtered_4FGL_J1047.7+7238_monthly_bin168.fits.....................!
real 1276.76
user 1268.98
sys 2.34

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/630684/ft1_filtered_4FGL_J1047.7+7238_monthly_bin168.fits', '/scratch/kocevski/630684/ft2_4FGL_J1047.7+7238_monthly_bin168.fits', expMap='/scratch/kocevski/630684/expmap_672451201_675043201_4FGL_J1047.7+7238_monthly_bin168.fits', expCube='/scratch/kocevski/630684/ltcube_672451201_675043201_4FGL_J1047.7+7238_monthly_bin168.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/630684/Model_4FGL_J1047.7+7238_monthly_bin168.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  1.000e-04  1.000e+04 ( 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/630684/ft1_filtered_4FGL_J1047.7+7238_monthly_bin168.fits
Spacecraft file(s): /scratch/kocevski/630684/ft2_4FGL_J1047.7+7238_monthly_bin168.fits
Exposure map: /scratch/kocevski/630684/expmap_672451201_675043201_4FGL_J1047.7+7238_monthly_bin168.fits
Exposure cube: /scratch/kocevski/630684/ltcube_672451201_675043201_4FGL_J1047.7+7238_monthly_bin168.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/630684/Model_4FGL_J1047.7+7238_monthly_bin168.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) = 125107.461453

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.2058       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.3096       1.0000         .10000E-03   10000.    
     3 'norm      '    .60875       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.0627       1.0000         .10000E-03   10000.    
     6 'norm      '    9.2040       1.0000         .10000E-03   10000.    
     7 'norm      '    22.063       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .32165       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.8041       1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.0677       1.0000         .10000E-03   10000.    
    11 'norm      '    2.0865       1.0000         .10000E-03   10000.    
    12 'Prefactor '    29.833       1.0000         .10000E-03   10000.    
    13 'norm      '    7.8995       1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.815       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .24135E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.4656       1.0000         .10000E-03   10000.    
    17 'norm      '    .40415       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.9165       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.1458       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.0447       1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.0257       1.0000         .10000E-03   10000.    
    22 'Prefactor '    10.233       1.0000         .10000E-03   10000.    
    23 'Prefactor '    9.4813       1.0000         .10000E-03   10000.    
    24 'Prefactor '    4.2693       1.0000         .10000E-03   10000.    
    25 'norm      '    1.4269       1.0000         .10000E-03   10000.    
    26 'norm      '    .65648       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10185E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .92742       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0641       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   125106.5     FROM MIGRAD    STATUS=CONVERGED    764 CALLS     3295 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.2420        7.4876        .25116E-05   -.78615E-04
   2  Prefactor     2.3095        .83692       -.44433E-07   -.21328E-03
   3  norm          .60908        .42377       -.26654E-07   -.28676E-03
   4  Prefactor     .10000E-03    1.3359        .70640E-08** at limit **
   5  Prefactor     1.0665        .15459        .75772E-08   -.22381E-03
   6  norm          9.2041        .33296       -.29282E-08   -.64375E-03
   7  norm          22.070        4.6573       -.50940E-07    .19141E-04
   8  Prefactor     .32755        .73886        .34096E-06   -.82504E-03
   9  Prefactor     1.8049        1.7627       -.20902E-07   -.34601E-04
  10  Prefactor     8.0658        5.1325       -.62421E-06   -.52110E-03
  11  norm          2.0863        .59768       -.64213E-09   -.24524E-04
  12  Prefactor     29.818        10.244       -.11857E-05   -.69321E-03
  13  norm          7.8996        1.4076       -.13008E-07   -.34285E-03
  14  Prefactor     10.870        17.541        .76111E-06   -.22262E-04
  15  Prefactor     .10000E-03    .15625        .14639E-06** at limit **
  16  norm          1.4658        .19179        .88533E-08   -.86300E-02
  17  norm          .40439        .82662       -.18153E-07   -.80357E-03
  18  Prefactor     1.9125        2.0101       -.31941E-08   -.71227E-04
  19  Prefactor     3.1461        2.3539        .75982E-08   -.84359E-03
  20  Prefactor     1.0475        3.1803       -.42604E-06    .27861E-04
  21  Prefactor     2.0268        .68123       -.15811E-08   -.96745E-04
  22  Prefactor     10.234        2.5478       -.14460E-08   -.14444E-03
  23  Prefactor     9.5550        8.2428       -.41334E-06    .65916E-05
  24  Prefactor     4.2706        3.4438       -.14899E-05    .31077E-03
  25  norm          1.4257        .70747        .18791E-09   -.37002E-04
  26  norm          .65653        .50460       -.44225E-08   -.11948E-03
  27  Prefactor     .10000E-03    2.5669       -.28961E-07** at limit **
  28  Normalizat    .92734        .41873E-01    .71970E-07   -.10465E-02
  29  Prefactor     1.0641        .37224E-01    .42366E-07   -.10591E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.242
  Prefactor  = 2.30953
  norm       = 0.609075
  Prefactor  = 0.0001
  Prefactor  = 1.06646
  norm       = 9.20409
  norm       = 22.0701
  Prefactor  = 0.327553
  Prefactor  = 1.80487
  Prefactor  = 8.0658
  norm       = 2.08627
  Prefactor  = 29.8181
  norm       = 7.89956
  Prefactor  = 10.8698
  Prefactor  = 0.000100001
  norm       = 1.46585
  norm       = 0.404388
  Prefactor  = 1.91255
  Prefactor  = 3.14612
  Prefactor  = 1.04748
  Prefactor  = 2.02676
  Prefactor  = 10.2345
  Prefactor  = 9.55503
  Prefactor  = 4.27058
  norm       = 1.4257
  norm       = 0.656535
  Prefactor  = 0.0001
  Normalizat = 0.92734
  Prefactor  = 1.06405
 **********
 **   18 **HESSE 
 **********

 FCN=   125106.5     FROM HESSE     STATUS=OK           589 CALLS     3884 TOTAL
                     EDM=   .14E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.2420        7.4526        .27699E-03   -1.5408    
   2  Prefactor     2.3095        .83499        .18832E-03   -1.5404    
   3  norm          .60908        .41708        .18223E-03   -1.5552    
   4  Prefactor     .10000E-03    1.3471        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.0665        1.7603        .23719E-02   -1.5501    
   6  norm          9.2041        .33371        .37111E-04   -1.5101    
   7  norm          22.070        4.6559        .85276E-04   -1.4768    
   8  Prefactor     .32755        8.2889        .37377E-02   -1.5594    
   9  Prefactor     1.8049        1.7482        .31117E-03   -1.5439    
  10  Prefactor     8.0658        7.3171        .14116E-03   -1.5140    
  11  norm          2.0863        .59632        .14205E-03   -1.5419    
  12  Prefactor     29.818        10.720        .73354E-04   -1.4615    
  13  norm          7.8996        1.3704        .14187E-03   -1.5146    
  14  Prefactor     10.870        17.525        .12183E-03   -1.5048    
  15  Prefactor     .10000E-03    .33542        .41064E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.4658        .19187        .46994E-04   -1.5466    
  17  norm          .40439        .57036        .21668E-03   -1.5581    
  18  Prefactor     1.9125        1.9407        .30021E-03   -1.5431    
  19  Prefactor     3.1461        1.6926        .22093E-03   -1.5353    
  20  Prefactor     1.0475        3.1993        .48754E-03   -1.5503    
  21  Prefactor     2.0268        .68180        .16383E-03   -1.5423    
  22  Prefactor     10.234        2.4498        .62629E-03   -1.5068    
  23  Prefactor     9.5550        8.2370        .13015E-03   -1.5090    
  24  Prefactor     4.2706        3.3780        .19499E-03   -1.5295    
  25  norm          1.4257        .70507        .20280E-03   -1.5469    
  26  norm          .65653        .45624        .20014E-02   -1.5546    
  27  Prefactor     .10000E-03    2.5828        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .92734        .46404E-01    .27631E-03   -.95506    
  29  Prefactor     1.0641        .41710E-01    .23993E-03   -.90624    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.41117e-06
Minuit parameter uncertainties:
  1  7.45568
  2  0.834997
  3  0.417078
  4  4.5818e-07
  5  1.7604
  6  0.333707
  7  4.65596
  8  3.29549
  9  1.74825
  10  7.31794
  11  0.59632
  12  10.7205
  13  1.37037
  14  17.533
  15  3.27714e-05
  16  0.191872
  17  0.570365
  18  1.94079
  19  1.69262
  20  3.19983
  21  0.681802
  22  2.44987
  23  8.23799
  24  3.37814
  25  0.705076
  26  0.456242
  27  2.27726e-07
  28  0.0464064
  29  0.0417116
Done.

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

Extracting fit parameters...

4FGL J1047.7+7238
   Spectrum: PowerLaw
374    Prefactor:  1.000e-04  3.277e-05  1.000e-04  1.000e+04 ( 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:  1.064e+00  4.171e-02  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.273e-01  4.641e-02  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/630684/likelihoodResults_672451201_675043201_4FGL_J1047.7+7238_monthly_bin168.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 125106.522363
delta logL = -0.00050811903202

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 125106.090883
delta logL = 0.430971739159

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15126       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1235       1.0000          .0000       10.000    
     3 'Normalizat'    .92008       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0657       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   125106.1     FROM MIGRAD    STATUS=FAILED        98 CALLS      363 TOTAL
                     EDM=   .71E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .15127        7.9799        .10492E-02    .63782E-02
   2  Index         3.1235        6.5618        .92615E-02    .25551E-02
   3  Normalizat    .92011        .24992E-01    .27717E-03   -.16407E-04
   4  Prefactor     1.0657        .23665E-01    .23968E-03    .15179E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   125106.1     FROM SIMPLEX   STATUS=UNCHANGED     96 CALLS      459 TOTAL
                     EDM=   .16E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .15127        7.9799        .55593E-04    .63782E-02
   2  Index         3.1235        6.5618        .88014E-03    .25551E-02
   3  Normalizat    .92011        .24992E-01    .23739E-04   -.16407E-04
   4  Prefactor     1.0657        .23665E-01    .13916E-04    .15179E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   125106.1     FROM MIGRAD    STATUS=CONVERGED     37 CALLS      496 TOTAL
                     EDM=   .30E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .15127        .44194        .41967E-04    .23752E-03
   2  Index         3.1236        1.0978        .18523E-02    .46155E-05
   3  Normalizat    .92011        .45022E-01    .11087E-04   -.13125E-04
   4  Prefactor     1.0657        .41141E-01    .95871E-05   -.75893E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.15127
  Index      = 3.12355
  Normalizat = 0.920106
  Prefactor  = 1.06566
 **********
 **   18 **HESSE 
 **********

 FCN=   125106.1     FROM HESSE     STATUS=OK            25 CALLS      521 TOTAL
                     EDM=   .26E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .15127        .35761        .83934E-05   -1.5630    
   2  Index         3.1236        .89073        .74092E-04   -.38471    
   3  Normalizat    .92011        .44963E-01    .22174E-05   -.95757    
   4  Prefactor     1.0657        .41071E-01    .19174E-05   -.90572    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.56077e-14
Minuit parameter uncertainties:
  1  0.357611
  2  0.896305
  3  0.0449649
  4  0.0410722
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/630684': 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) = 125106.090883
delta logL = 0.430971989132

Extracting fit parameters...

4FGL J1047.7+7238
   Spectrum: PowerLaw
374    Prefactor:  1.513e-01  3.576e-01  1.000e-04  1.000e+04 ( 1.000e-13)
375        Index:  3.124e+00  8.963e-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:  1.066e+00  4.107e-02  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.201e-01  4.496e-02  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 -2.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  2.220e+00 [aplpy.core]
Saving /scratch/kocevski/630684/cmap_HighResolution_672451201_675043201_4FGL_J1047.7+7238_monthly_bin168.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.09e-03', job_status='DONE', photon_flux_upper_limit='1.43e-08', time_completed='2022-05-24 06:47:44.746043', job_id='630684', GAL2='1.07', fit_tolerance='1e-08', EG2='0.92', EG='0.93', time_epoch_completed='1653400064.75', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='4.31e-01', ts2='0.90', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='168' AND source_name='4FGL J1047.7+7238' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Tue May 24 06:47:44 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0157>
Subject: Job 630684: <4FGL_J1047.7+7238_monthly_bin168> in cluster <slac> Done

Job <4FGL_J1047.7+7238_monthly_bin168> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue May 24 02:55:25 2022
Job was executed on host(s) <bullet0157>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue May 24 02:56:06 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue May 24 02:56:06 2022
Terminated at Tue May 24 06:47:45 2022
Results reported at Tue May 24 06:47:45 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1047.7+7238_monthly_bin168 161.939 72.642 672451201 675043201 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 :                                   13707.06 sec.
    Max Memory :                                 1105 MB
    Average Memory :                             515.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   3418 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   13899 sec.
    Turnaround time :                            13940 sec.

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

