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


Performing analysis on: 4FGL_J0007.7+4008_daily_bin1672
RA = 1.9275, Dec = 40.134
tmin = 672710401, tmax = 672969601
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='153673', job_status='RUN', time_executed='2022-04-30 00:09:10.935227', time_epoch_executed='1651302550.94' WHERE source_name='4FGL J0007.7+4008' and cadence='daily' and bin_id='1672'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/153673

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/153673/ft1_4FGL_J0007.7+4008_daily_bin1672.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/153673/ft2_4FGL_J0007.7+4008_daily_bin1672.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/153673/ft1_4FGL_J0007.7+4008_daily_bin1672.fits outfile=/scratch/kocevski/153673/ft1_filteredMKT_4FGL_J0007.7+4008_daily_bin1672.fits ra=1.9275 dec=40.134 rad=12.0 tmin=672710401.0 tmax=672969601.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.12
user 2.89
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/153673/ft2_4FGL_J0007.7+4008_daily_bin1672.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/153673/ft2_4FGL_J0007.7+4008_daily_bin1672.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/153673/ft1_filteredMKT_4FGL_J0007.7+4008_daily_bin1672.fits evtable="EVENTS" outfile="/scratch/kocevski/153673/ft1_filtered_4FGL_J0007.7+4008_daily_bin1672.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.50
user 0.33
sys 0.15

Number of photons that the gtmktime cut: 747

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/153673/ft1_filtered_4FGL_J0007.7+4008_daily_bin1672.fits" evtable="EVENTS" scfile=/scratch/kocevski/153673/ft2_4FGL_J0007.7+4008_daily_bin1672.fits sctable="SC_DATA" outfile=/scratch/kocevski/153673/ltcube_672710401_672969601_4FGL_J0007.7+4008_daily_bin1672.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/153673/ft2_4FGL_J0007.7+4008_daily_bin1672.fits
.....................!
real 15.21
user 14.87
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/153673/ft1_filtered_4FGL_J0007.7+4008_daily_bin1672.fits evtable="EVENTS" scfile=/scratch/kocevski/153673/ft2_4FGL_J0007.7+4008_daily_bin1672.fits sctable="SC_DATA" expcube=/scratch/kocevski/153673/ltcube_672710401_672969601_4FGL_J0007.7+4008_daily_bin1672.fits outfile=/scratch/kocevski/153673/expmap_672710401_672969601_4FGL_J0007.7+4008_daily_bin1672.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/153673/ltcube_672710401_672969601_4FGL_J0007.7+4008_daily_bin1672.fits
.....................!
real 192.59
user 187.56
sys 4.64

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
Extended source FHES J2304.0+5406 in ROI with RadialGaussian spatial model.
Extended source CTB 109 in ROI with RadialDisk spatial model.
Added 160 point sources and 2 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0007.7+4008 @ 1.9275 40.134

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/153673/ft1_filtered_4FGL_J0007.7+4008_daily_bin1672.fits scfile=/scratch/kocevski/153673/ft2_4FGL_J0007.7+4008_daily_bin1672.fits outfile=/scratch/kocevski/153673/cmap_672710401_672969601_4FGL_J0007.7+4008_daily_bin1672.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=1.9275 yref=40.134 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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/153673/ft1_filtered_4FGL_J0007.7+4008_daily_bin1672.fits scfile=/scratch/kocevski/153673/ft2_4FGL_J0007.7+4008_daily_bin1672.fits outfile=/scratch/kocevski/153673/cmap_HighResolution_672710401_672969601_4FGL_J0007.7+4008_daily_bin1672.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=1.9275 yref=40.134 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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/153673/ft1_filtered_4FGL_J0007.7+4008_daily_bin1672.fits evtable="EVENTS" scfile=/scratch/kocevski/153673/ft2_4FGL_J0007.7+4008_daily_bin1672.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/153673/Model_4FGL_J0007.7+4008_daily_bin1672.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 CTB 109
adding source EG_v02
adding source FHES J2304.0+5406
adding source GAL_V02
Working on...
/scratch/kocevski/153673/ft1_filtered_4FGL_J0007.7+4008_daily_bin1672.fits.....................!
real 93.51
user 92.14
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/153673/ft1_filtered_4FGL_J0007.7+4008_daily_bin1672.fits', '/scratch/kocevski/153673/ft2_4FGL_J0007.7+4008_daily_bin1672.fits', expMap='/scratch/kocevski/153673/expmap_672710401_672969601_4FGL_J0007.7+4008_daily_bin1672.fits', expCube='/scratch/kocevski/153673/ltcube_672710401_672969601_4FGL_J0007.7+4008_daily_bin1672.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/153673/Model_4FGL_J0007.7+4008_daily_bin1672.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0007.7+4008'

4FGL J0007.7+4008
   Spectrum: PowerLaw
30     Prefactor:  1.216e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
31         Index:  2.159e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
32         Scale:  1.870e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/153673/ft1_filtered_4FGL_J0007.7+4008_daily_bin1672.fits
Spacecraft file(s): /scratch/kocevski/153673/ft2_4FGL_J0007.7+4008_daily_bin1672.fits
Exposure map: /scratch/kocevski/153673/expmap_672710401_672969601_4FGL_J0007.7+4008_daily_bin1672.fits
Exposure cube: /scratch/kocevski/153673/ltcube_672710401_672969601_4FGL_J0007.7+4008_daily_bin1672.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/153673/Model_4FGL_J0007.7+4008_daily_bin1672.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) = 8042.58135587

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10099E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.9975       1.0000         .10000E-03   10000.    
     5 'norm      '    .64377       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.0207       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11057E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    7.1061       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    24.079       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    10.581       1.0000         .10000E-03   10000.    
    17 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.6405       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.8928       1.0000         .10000E-03   10000.    
    20 'Prefactor '    25.291       1.0000         .10000E-03   10000.    
    21 'Prefactor '    36.376       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10499E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2096       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .83651       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5290E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8042.580     FROM MIGRAD    STATUS=CONVERGED    529 CALLS     2698 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10006E-03    11.526        .90712E-02** at limit **
   2  Prefactor     .10000E-03    5.3902        .90712E-02** at limit **
   3  norm          .10001E-03    15.377        .90712E-02** at limit **
   4  Prefactor     6.9967        6.0235        .37914E-02    .90157E-04
   5  norm          .64405        1.3050        .25814E-01    .74224E-03
   6  Prefactor     2.0208        8.4730        .72782E-02    .41978E-03
   7  Prefactor     .10000E-03    1.4376        .59395E-01** at limit **
   8  Prefactor     .10004E-03    16.788        .90712E-02** at limit **
   9  Prefactor     .10000E-03    7.1417        .90712E-02** at limit **
  10  Prefactor     .10000E-03    27.213        .90712E-02** at limit **
  11  norm          7.1060        3.6661        .37621E-02   -.13780E-03
  12  Prefactor     .10000E-03    2.3350        .90712E-02** at limit **
  13  Prefactor     24.079        16.860        .20408E-02    .35232E-03
  14  Prefactor     .10001E-03    9.7680        .90712E-02** at limit **
  15  Prefactor     .10000E-03    5.6799        .90712E-02** at limit **
  16  norm          10.581        10.358        .30793E-02    .67666E-04
  17  norm          .10000E-03    .74289        .42567E-01** at limit **
  18  Prefactor     9.6405        10.258        .32266E-02   -.31284E-04
  19  Prefactor     3.8924        105.55        .51125E-02    .22403E-03
  20  Prefactor     25.290        32.572        .19914E-02    .79419E-03
  21  Prefactor     36.375        35.468        .16612E-02    .47537E-03
  22  Prefactor     .10001E-03    9.5086        .90712E-02** at limit **
  23  Normalizat    1.2096        .21330        .74157E-01    .39928E-04
  24  Prefactor     .83648        .87386E-01    .44191E-01    .40744E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100059
  Prefactor  = 0.000100001
  norm       = 0.000100007
  Prefactor  = 6.99666
  norm       = 0.644047
  Prefactor  = 2.0208
  Prefactor  = 0.000100001
  Prefactor  = 0.000100045
  Prefactor  = 0.000100002
  Prefactor  = 0.000100005
  norm       = 7.10596
  Prefactor  = 0.0001
  Prefactor  = 24.0785
  Prefactor  = 0.000100011
  Prefactor  = 0.000100002
  norm       = 10.5812
  norm       = 0.0001
  Prefactor  = 9.64049
  Prefactor  = 3.89238
  Prefactor  = 25.2903
  Prefactor  = 36.3748
  Prefactor  = 0.000100012
  Normalizat = 1.20964
  Prefactor  = 0.836483
 **********
 **   18 **HESSE 
 **********

 FCN=   8042.580     FROM HESSE     STATUS=OK           397 CALLS     3095 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10006E-03    11.540        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    5.3963        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10001E-03    15.477        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.9967        6.0272        .15166E-03   -1.5179    
   5  norm          .64405        .98203        .14146E-02   -1.5547    
   6  Prefactor     2.0208        8.5074        .29113E-03   -1.5424    
   7  Prefactor     .10000E-03    7.1620        .20580E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10004E-03    16.898        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    7.1440        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    27.318        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          7.1060        3.6692        .11958E-03   -1.5175    
  12  Prefactor     .10000E-03    2.3397        .13383E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     24.079        16.917        .81632E-04   -1.4726    
  14  Prefactor     .10001E-03    9.7733        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.7233        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          10.581        10.346        .12317E-03   -1.5057    
  17  norm          .10000E-03    1.2165        .14992E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     9.6405        10.259        .12906E-03   -1.5087    
  19  Prefactor     3.8924        105.62        .20450E-03   -1.5313    
  20  Prefactor     25.290        32.669        .79655E-04   -1.4702    
  21  Prefactor     36.375        35.418        .66449E-04   -1.4501    
  22  Prefactor     .10001E-03    9.7539        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.2096        .24971        .32818E-03   -.86305    
  24  Prefactor     .83648        .10326        .16636E-03   -.98397    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.71761e-08
Minuit parameter uncertainties:
  1  0.00164933
  2  0.000112197
  3  0.000634645
  4  6.02768
  5  0.982051
  6  8.29441
  7  0.000149494
  8  0.00174306
  9  0.000223479
  10  0.000709305
  11  3.6693
  12  3.67943e-07
  13  16.9203
  14  0.000657399
  15  0.000210889
  16  10.3481
  17  9.4219e-08
  18  10.2611
  19  40.6307
  20  32.6922
  21  35.4384
  22  0.000682321
  23  0.249957
  24  0.103282
Done.

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

Extracting fit parameters...

4FGL J0007.7+4008
   Spectrum: PowerLaw
30     Prefactor:  6.997e+00  6.028e+00  1.000e-04  1.000e+04 ( 1.000e-13)
31         Index:  2.159e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
32         Scale:  1.870e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
526    Prefactor:  8.365e-01  1.033e-01  0.000e+00  1.000e+01 ( 1.000e+00)
527        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
528        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
521   Normalization:  1.210e+00  2.500e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.24
Ra Dec: 1.927 40.134
Photon Index (Fixed Index): 2.16 +/- 0.00
Photon Flux (Fixed Index): 3.36e-08 +/- 2.89e-08
Energy Flux (Fixed Index): 1.63e-05 +/- 1.41e-05

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) = 8042.41765032
delta logL = 0.162440805008

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8042.40862802
delta logL = 0.171463100314

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.3614       1.0000         .10000E-03   10000.    
     2 'Index     '    1.5220       1.0000          .0000       10.000    
     3 'Normalizat'    1.2377       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83138       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5290E+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.

 FCN=   8042.409     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      283 TOTAL
                     EDM=   .26E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.3576        7.3538        .79570E-03    .17459E-04
   2  Index         1.5214        .90385        .14623E-01   -.16530E-04
   3  Normalizat    1.2377        .23299        .32493E-03   -.53216E-04
   4  Prefactor     .83136        .10053        .16684E-03   -.83814E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.35765
  Index      = 1.5214
  Normalizat = 1.23771
  Prefactor  = 0.831359
 **********
 **   18 **HESSE 
 **********

 FCN=   8042.409     FROM HESSE     STATUS=OK            27 CALLS      310 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.3576        7.5206        .31828E-04   -1.5204    
   2  Index         1.5214        .92387        .58491E-03   -.76942    
   3  Normalizat    1.2377        .23313        .12997E-04   -.85445    
   4  Prefactor     .83136        .10061        .66736E-05   -.98583    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.36783e-11
Minuit parameter uncertainties:
  1  7.5217
  2  0.934371
  3  0.23333
  4  0.10063
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/153673': 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) = 8042.40862778
delta logL = 0.171463339208

Extracting fit parameters...

4FGL J0007.7+4008
   Spectrum: PowerLaw
30     Prefactor:  6.358e+00  7.522e+00  1.000e-04  1.000e+04 ( 1.000e-13)
31         Index:  1.521e+00  9.344e-01  0.000e+00  1.000e+01 (-1.000e+00)
32         Scale:  1.870e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
526    Prefactor:  8.314e-01  1.006e-01  0.000e+00  1.000e+01 ( 1.000e+00)
527        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
528        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
521   Normalization:  1.238e+00  2.333e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.57
Ra Dec: 1.927 40.134
Photon Index (Free Index): 1.52 +/- 0.93
Photon Flux (Free Index): 1.02e-08 +/- 2.07e-08
Energy Flux (Free Index): 3.00e-05 +/- 5.10e-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/153673/cmap_HighResolution_672710401_672969601_4FGL_J0007.7+4008_daily_bin1672.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.36e-08', energy_flux2='3.00e-05', photon_flux_error='2.89e-08', dlogl='1.71e-01', energy_flux='1.63e-05', photon_flux2='1.02e-08', job_status='DONE', time_completed='2022-04-30 00:20:52.279433', photon_index_error2='0.93', photon_index2='1.52', ts='5.24', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', energy_flux_error2='5.10e-05', EG='1.21', time_epoch_completed='1651303252.28', return_code='0', job_id='153673', GAL2='0.83', EG2='1.24', return_code2='0', energy_flux_error='1.41e-05', photon_flux_error2='2.07e-08', ts2='5.57', photon_index='2.16' WHERE bin_id='1672' AND source_name='4FGL J0007.7+4008' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Apr 30 00:20:52 PDT 2022

------------------------------------------------------------
Sender: LSF System <scs@bullet0119>
Subject: Job 153682: <4FGL_J0007.7+4008_daily_bin1672> in cluster <slac> Done

Job <4FGL_J0007.7+4008_daily_bin1672> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Apr 30 00:05:34 2022
Job was executed on host(s) <bullet0119>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Apr 30 00:05:54 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Apr 30 00:05:54 2022
Terminated at Sat Apr 30 00:20:14 2022
Results reported at Sat Apr 30 00:20:14 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0007.7+4008_daily_bin1672 1.9275 40.134 672710401 672969601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0007.7+4008 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   715.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             320.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   859 sec.
    Turnaround time :                            880 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0037>
Subject: Job 153673: <4FGL_J0007.7+4008_daily_bin1672> in cluster <slac> Done

Job <4FGL_J0007.7+4008_daily_bin1672> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Apr 30 00:05:34 2022
Job was executed on host(s) <bullet0037>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Apr 30 00:05:49 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Apr 30 00:05:49 2022
Terminated at Sat Apr 30 00:20:53 2022
Results reported at Sat Apr 30 00:20:53 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0007.7+4008_daily_bin1672 1.9275 40.134 672710401 672969601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0007.7+4008 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   702.51 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             271.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   903 sec.
    Turnaround time :                            919 sec.

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

