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


Performing analysis on: 4FGL_J1012.7+2439_weekly_bin729
RA = 153.199, Dec = 24.6638
tmin = 679881601, tmax = 680486401
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='197152', job_status='RUN', time_executed='2022-07-26 02:33:59.193303', time_epoch_executed='1658828039.19' WHERE source_name='4FGL J1012.7+2439' and cadence='weekly' and bin_id='729'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/197152

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/197152/ft1_4FGL_J1012.7+2439_weekly_bin729.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/197152/ft2_4FGL_J1012.7+2439_weekly_bin729.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/197152/ft1_4FGL_J1012.7+2439_weekly_bin729.fits outfile=/scratch/kocevski/197152/ft1_filteredMKT_4FGL_J1012.7+2439_weekly_bin729.fits ra=153.199 dec=24.6638 rad=12.0 tmin=679881601.0 tmax=680486401.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 8.33
user 7.94
sys 0.31

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/197152/ft2_4FGL_J1012.7+2439_weekly_bin729.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/197152/ft2_4FGL_J1012.7+2439_weekly_bin729.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/197152/ft1_filteredMKT_4FGL_J1012.7+2439_weekly_bin729.fits evtable="EVENTS" outfile="/scratch/kocevski/197152/ft1_filtered_4FGL_J1012.7+2439_weekly_bin729.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.55
user 0.36
sys 0.17

Number of photons that the gtmktime cut: 740

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/197152/ft1_filtered_4FGL_J1012.7+2439_weekly_bin729.fits" evtable="EVENTS" scfile=/scratch/kocevski/197152/ft2_4FGL_J1012.7+2439_weekly_bin729.fits sctable="SC_DATA" outfile=/scratch/kocevski/197152/ltcube_679881601_680486401_4FGL_J1012.7+2439_weekly_bin729.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/197152/ft2_4FGL_J1012.7+2439_weekly_bin729.fits
.....................!
real 33.12
user 32.41
sys 0.43

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/197152/ft1_filtered_4FGL_J1012.7+2439_weekly_bin729.fits evtable="EVENTS" scfile=/scratch/kocevski/197152/ft2_4FGL_J1012.7+2439_weekly_bin729.fits sctable="SC_DATA" expcube=/scratch/kocevski/197152/ltcube_679881601_680486401_4FGL_J1012.7+2439_weekly_bin729.fits outfile=/scratch/kocevski/197152/expmap_679881601_680486401_4FGL_J1012.7+2439_weekly_bin729.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/197152/ltcube_679881601_680486401_4FGL_J1012.7+2439_weekly_bin729.fits
.....................!
real 192.89
user 186.67
sys 5.24

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

Setting source of interest to:
4FGL J1012.7+2439 @ 153.199 24.6638

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/197152/ft1_filtered_4FGL_J1012.7+2439_weekly_bin729.fits scfile=/scratch/kocevski/197152/ft2_4FGL_J1012.7+2439_weekly_bin729.fits outfile=/scratch/kocevski/197152/cmap_679881601_680486401_4FGL_J1012.7+2439_weekly_bin729.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=153.199 yref=24.6638 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.59
user 0.41
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/197152/ft1_filtered_4FGL_J1012.7+2439_weekly_bin729.fits scfile=/scratch/kocevski/197152/ft2_4FGL_J1012.7+2439_weekly_bin729.fits outfile=/scratch/kocevski/197152/cmap_HighResolution_679881601_680486401_4FGL_J1012.7+2439_weekly_bin729.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=153.199 yref=24.6638 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.58
user 0.42
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/197152/ft1_filtered_4FGL_J1012.7+2439_weekly_bin729.fits evtable="EVENTS" scfile=/scratch/kocevski/197152/ft2_4FGL_J1012.7+2439_weekly_bin729.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/197152/Model_4FGL_J1012.7+2439_weekly_bin729.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/197152/ft1_filtered_4FGL_J1012.7+2439_weekly_bin729.fits....................!
real 68.34
user 66.94
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/197152/ft1_filtered_4FGL_J1012.7+2439_weekly_bin729.fits', '/scratch/kocevski/197152/ft2_4FGL_J1012.7+2439_weekly_bin729.fits', expMap='/scratch/kocevski/197152/expmap_679881601_680486401_4FGL_J1012.7+2439_weekly_bin729.fits', expCube='/scratch/kocevski/197152/ltcube_679881601_680486401_4FGL_J1012.7+2439_weekly_bin729.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/197152/Model_4FGL_J1012.7+2439_weekly_bin729.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1012.7+2439'

4FGL J1012.7+2439
   Spectrum: LogParabola
207         norm:  8.685e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
208        alpha:  2.169e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
209         beta:  1.367e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
210           Eb:  6.187e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/197152/ft1_filtered_4FGL_J1012.7+2439_weekly_bin729.fits
Spacecraft file(s): /scratch/kocevski/197152/ft2_4FGL_J1012.7+2439_weekly_bin729.fits
Exposure map: /scratch/kocevski/197152/expmap_679881601_680486401_4FGL_J1012.7+2439_weekly_bin729.fits
Exposure cube: /scratch/kocevski/197152/ltcube_679881601_680486401_4FGL_J1012.7+2439_weekly_bin729.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/197152/Model_4FGL_J1012.7+2439_weekly_bin729.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) = 8210.4416471

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .26186E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10734E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.9582       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10193E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.3466       1.0000         .10000E-03   10000.    
     9 'norm      '    11.193       1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.8169       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10945E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .66887       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .62509       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    15.453       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    21.301       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .88643       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.2008       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5210E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8210.370     FROM MIGRAD    STATUS=CONVERGED    510 CALLS     2091 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.787        .84082E-07** at limit **
   2  Prefactor     .10000E-03    1.6515        .14758E-06** at limit **
   3  Prefactor     .10000E-03    39.345       -.28468E-06** at limit **
   4  Prefactor     9.8637        26.293       -.30476E-05   -.18362E-03
   5  Prefactor     .10000E-03    10.552       -.28282E-06** at limit **
   6  Prefactor     .10000E-03    1.4528       -.54918E-08** at limit **
   7  Prefactor     .10000E-03    15.450       -.26657E-06** at limit **
   8  Prefactor     5.3472        2.1452       -.14029E-07   -.50978E-04
   9  norm          11.193        6.8029        .48293E-07   -.27047E-04
  10  Prefactor     7.8176        4.4999        .87996E-06   -.78266E-03
  11  Prefactor     .10000E-03    116.92        .38370E-05** at limit **
  12  Prefactor     .67026        4.6218        .79650E-06   -.34553E-03
  13  Prefactor     .10000E-03    40.192        .21033E-06** at limit **
  14  Prefactor     .65463        2.6147        .95285E-07   -.22349E-04
  15  Prefactor     .10000E-03    .68914        .24379E-07** at limit **
  16  Prefactor     15.450        8.6419       -.13867E-07   -.54388E-04
  17  Prefactor     .10000E-03    9.9031        .22755E-06** at limit **
  18  Prefactor     21.301        10.942        .45345E-07    .53498E-05
  19  Prefactor     .10000E-03    7.0651        .54633E-07** at limit **
  20  Prefactor     .10000E-03    4.7967        .14117E-07** at limit **
  21  Normalizat    .88627        .14989       -.90421E-06   -.50393E-04
  22  Prefactor     1.2009        .15191        .34376E-06   -.13150E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 9.86373
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.34719
  norm       = 11.193
  Prefactor  = 7.81759
  Prefactor  = 0.000100004
  Prefactor  = 0.670257
  Prefactor  = 0.0001
  Prefactor  = 0.654631
  Prefactor  = 0.0001
  Prefactor  = 15.4496
  Prefactor  = 0.0001
  Prefactor  = 21.3009
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.886274
  Prefactor  = 1.20086
 **********
 **   18 **HESSE 
 **********

 FCN=   8210.370     FROM HESSE     STATUS=OK           344 CALLS     2435 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.789        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    13.402        .22466E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    39.939        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     9.8637        27.779        .12698E-03   -1.5080    
   5  Prefactor     .10000E-03    10.571        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    1.4600        .10664E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    15.969        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     5.3472        2.1477        .80849E-04   -1.5245    
   9  norm          11.193        6.8030        .11975E-03   -1.5039    
  10  Prefactor     7.8176        4.3694        .60285E-03   -1.5149    
  11  Prefactor     .10000E-03    121.57        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .67026        4.0987        .31848E-03   -1.5544    
  13  Prefactor     .10000E-03    40.314        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .65463        10.646        .26753E-02   -1.5546    
  15  Prefactor     .10000E-03    1.0308        .14422E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     15.450        8.6301        .10189E-03   -1.4922    
  17  Prefactor     .10000E-03    9.9720        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     21.301        10.935        .86784E-04   -1.4785    
  19  Prefactor     .10000E-03    7.1816        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.8074        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .88627        .17332        .25533E-03   -.96944    
  22  Prefactor     1.2009        .17749        .23899E-03   -.86305    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.9844e-08
Minuit parameter uncertainties:
  1  1.33818e-05
  2  0.00019221
  3  6.03373e-05
  4  27.8156
  5  3.69947e-05
  6  1.19241e-06
  7  6.29525e-05
  8  2.14768
  9  6.80343
  10  4.36955
  11  0.00141705
  12  3.315
  13  4.40513e-05
  14  5.28053
  15  1.81934e-06
  16  8.63075
  17  2.80154e-05
  18  10.9363
  19  1.72641e-06
  20  1.54235e-06
  21  0.173432
  22  0.177575
Done.

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

Extracting fit parameters...

4FGL J1012.7+2439
   Spectrum: LogParabola
207         norm:  1.119e+01  6.803e+00  1.000e-04  1.000e+04 ( 1.000e-12)
208        alpha:  2.169e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
209         beta:  1.367e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
210           Eb:  6.187e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
518    Prefactor:  1.201e+00  1.776e-01  0.000e+00  1.000e+01 ( 1.000e+00)
519        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
520        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
517   Normalization:  8.863e-01  1.734e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.16
Ra Dec: 153.199 24.664
Photon Index (Fixed Index): 2.17 +/- 0.00
Photon Flux (Fixed Index): 4.03e-08 +/- 2.45e-08
Energy Flux (Fixed Index): 1.59e-05 +/- 9.66e-06

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8210.3511288
delta logL = 0.0189641593897

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8210.34637864
delta logL = 0.0237143201484

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.408       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9419       1.0000          .0000       5.0000    
     3 'Normalizat'    .89720       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1951       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5210E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8210.346     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      211 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 39.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.408        5.8518       -.12216E-05    .14313E-02
   2  alpha         1.9417        .48566        .10033E-04    .19173E-03
   3  Normalizat    .89722        .14150       -.30118E-06   -.15652E-03
   4  Prefactor     1.1951        .15085        .27754E-06   -.13952E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 10.4077
  alpha      = 1.94171
  Normalizat = 0.897225
  Prefactor  = 1.19505
 **********
 **   18 **HESSE 
 **********

 FCN=   8210.346     FROM HESSE     STATUS=OK            29 CALLS      240 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.408        8.4626        .12420E-03   -1.5063    
   2  alpha         1.9417        .99663        .22051E-01   -.22522    
   3  Normalizat    .89722        .16891        .25400E-03   -.96558    
   4  Prefactor     1.1951        .17657        .23955E-03   -.86484    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.12986e-08
Minuit parameter uncertainties:
  1  8.46362
  2  1.02674
  3  0.169009
  4  0.176654
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/197152': 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) = 8210.34637861
delta logL = 0.0237143553713

Extracting fit parameters...

4FGL J1012.7+2439
   Spectrum: LogParabola
207         norm:  1.041e+01  8.464e+00  1.000e-04  1.000e+04 ( 1.000e-12)
208        alpha:  1.942e+00  1.027e+00  0.000e+00  5.000e+00 ( 1.000e+00)
209         beta:  1.367e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
210           Eb:  6.187e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
518    Prefactor:  1.195e+00  1.767e-01  0.000e+00  1.000e+01 ( 1.000e+00)
519        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
520        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
517   Normalization:  8.972e-01  1.690e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.20
Ra Dec: 153.199 24.664
Photon Index (Free Index): 1.94 +/- 1.03
Photon Flux (Free Index): 3.10e-08 +/- 4.39e-08
Energy Flux (Free Index): 1.64e-05 +/- 1.14e-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/197152/cmap_HighResolution_679881601_680486401_4FGL_J1012.7+2439_weekly_bin729.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.03e-08', energy_flux2='1.64e-05', photon_flux_error='2.45e-08', dlogl='2.37e-02', energy_flux='1.59e-05', photon_flux2='3.10e-08', job_status='DONE', time_completed='2022-07-26 02:45:14.111019', photon_index_error2='1.03', photon_index2='1.94', ts='7.16', fit_tolerance='1e-08', GAL='1.20', photon_index_error='0.00', energy_flux_error2='1.14e-05', EG='0.89', time_epoch_completed='1658828714.11', return_code='0', job_id='197152', GAL2='1.20', EG2='0.90', return_code2='0', energy_flux_error='9.66e-06', photon_flux_error2='4.39e-08', ts2='7.20', photon_index='2.17' WHERE bin_id='729' AND source_name='4FGL J1012.7+2439' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 26 02:45:14 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0117>
Subject: Job 197152: <4FGL_J1012.7+2439_weekly_bin729> in cluster <slac> Done

Job <4FGL_J1012.7+2439_weekly_bin729> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Jul 26 02:30:32 2022
Job was executed on host(s) <bullet0117>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jul 26 02:33:15 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Jul 26 02:33:15 2022
Terminated at Tue Jul 26 02:45:14 2022
Results reported at Tue Jul 26 02:45:14 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1012.7+2439_weekly_bin729 153.199 24.6638 679881601 680486401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1012.7+2439 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   675.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             316.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   721 sec.
    Turnaround time :                            882 sec.

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

