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


Performing analysis on: 4FGL_J0308.4+0407_daily_bin1707
RA = 47.1105, Dec = 4.1177
tmin = 681782401, tmax = 682041601
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='542407', job_status='RUN', time_executed='2022-08-13 00:05:38.575040', time_epoch_executed='1660374338.58' WHERE source_name='4FGL J0308.4+0407' and cadence='daily' and bin_id='1707'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/542407

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/542407/ft1_4FGL_J0308.4+0407_daily_bin1707.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/542407/ft2_4FGL_J0308.4+0407_daily_bin1707.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/542407/ft1_4FGL_J0308.4+0407_daily_bin1707.fits outfile=/scratch/kocevski/542407/ft1_filteredMKT_4FGL_J0308.4+0407_daily_bin1707.fits ra=47.1105 dec=4.1177 rad=12.0 tmin=681782401.0 tmax=682041601.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 5.50
user 5.20
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/542407/ft2_4FGL_J0308.4+0407_daily_bin1707.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/542407/ft2_4FGL_J0308.4+0407_daily_bin1707.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/542407/ft1_filteredMKT_4FGL_J0308.4+0407_daily_bin1707.fits evtable="EVENTS" outfile="/scratch/kocevski/542407/ft1_filtered_4FGL_J0308.4+0407_daily_bin1707.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.32
sys 0.16

Number of photons that the gtmktime cut: 852

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/542407/ft1_filtered_4FGL_J0308.4+0407_daily_bin1707.fits" evtable="EVENTS" scfile=/scratch/kocevski/542407/ft2_4FGL_J0308.4+0407_daily_bin1707.fits sctable="SC_DATA" outfile=/scratch/kocevski/542407/ltcube_681782401_682041601_4FGL_J0308.4+0407_daily_bin1707.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/542407/ft2_4FGL_J0308.4+0407_daily_bin1707.fits
.....................!
real 12.17
user 11.50
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/542407/ft1_filtered_4FGL_J0308.4+0407_daily_bin1707.fits evtable="EVENTS" scfile=/scratch/kocevski/542407/ft2_4FGL_J0308.4+0407_daily_bin1707.fits sctable="SC_DATA" expcube=/scratch/kocevski/542407/ltcube_681782401_682041601_4FGL_J0308.4+0407_daily_bin1707.fits outfile=/scratch/kocevski/542407/expmap_681782401_682041601_4FGL_J0308.4+0407_daily_bin1707.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/542407/ltcube_681782401_682041601_4FGL_J0308.4+0407_daily_bin1707.fits
.....................!
real 193.06
user 185.93
sys 4.99

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

Setting source of interest to:
4FGL J0308.4+0407 @ 47.1105 4.1177

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/542407/ft1_filtered_4FGL_J0308.4+0407_daily_bin1707.fits scfile=/scratch/kocevski/542407/ft2_4FGL_J0308.4+0407_daily_bin1707.fits outfile=/scratch/kocevski/542407/cmap_681782401_682041601_4FGL_J0308.4+0407_daily_bin1707.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=47.1105 yref=4.1177 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.73
user 0.37
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/542407/ft1_filtered_4FGL_J0308.4+0407_daily_bin1707.fits scfile=/scratch/kocevski/542407/ft2_4FGL_J0308.4+0407_daily_bin1707.fits outfile=/scratch/kocevski/542407/cmap_HighResolution_681782401_682041601_4FGL_J0308.4+0407_daily_bin1707.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=47.1105 yref=4.1177 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.55
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/542407/ft1_filtered_4FGL_J0308.4+0407_daily_bin1707.fits evtable="EVENTS" scfile=/scratch/kocevski/542407/ft2_4FGL_J0308.4+0407_daily_bin1707.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/542407/Model_4FGL_J0308.4+0407_daily_bin1707.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/542407/ft1_filtered_4FGL_J0308.4+0407_daily_bin1707.fits.....................!
real 111.39
user 109.35
sys 1.53

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/542407/ft1_filtered_4FGL_J0308.4+0407_daily_bin1707.fits', '/scratch/kocevski/542407/ft2_4FGL_J0308.4+0407_daily_bin1707.fits', expMap='/scratch/kocevski/542407/expmap_681782401_682041601_4FGL_J0308.4+0407_daily_bin1707.fits', expCube='/scratch/kocevski/542407/ltcube_681782401_682041601_4FGL_J0308.4+0407_daily_bin1707.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/542407/Model_4FGL_J0308.4+0407_daily_bin1707.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0308.4+0407'

4FGL J0308.4+0407
   Spectrum: PowerLaw
290    Prefactor:  1.323e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
291        Index:  1.973e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
292        Scale:  2.451e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/542407/ft1_filtered_4FGL_J0308.4+0407_daily_bin1707.fits
Spacecraft file(s): /scratch/kocevski/542407/ft2_4FGL_J0308.4+0407_daily_bin1707.fits
Exposure map: /scratch/kocevski/542407/expmap_681782401_682041601_4FGL_J0308.4+0407_daily_bin1707.fits
Exposure cube: /scratch/kocevski/542407/ltcube_681782401_682041601_4FGL_J0308.4+0407_daily_bin1707.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/542407/Model_4FGL_J0308.4+0407_daily_bin1707.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) = 8996.79394189

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.8043       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10132E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    20.947       1.0000         .10000E-03   10000.    
     6 'Prefactor '    20.004       1.0000         .10000E-03   10000.    
     7 'norm      '    6.0445       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11666E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    78.510       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    50.854       1.0000         .10000E-03   10000.    
    13 'norm      '    3.8869       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.4147       1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    26.874       1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.4093       1.0000         .10000E-03   10000.    
    20 'Prefactor '    22.331       1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .96909       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1122       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5020E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8996.777     FROM MIGRAD    STATUS=CONVERGED    538 CALLS     2703 TOTAL
                     EDM=   .58E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.7862        62.787        .90810E-05   -.27551E-05
   2  Prefactor     .10000E-03    157.51        .20725E-05** at limit **
   3  Prefactor     .10000E-03    7.9743       -.18281E-06** at limit **
   4  Prefactor     .10000E-03    6.9892       -.26784E-06** at limit **
   5  Prefactor     20.982        52.996       -.44159E-05   -.17230E-05
   6  Prefactor     20.009        20.417       -.17660E-07   -.51530E-05
   7  norm          6.0403        12.288        .25915E-05    .22510E-05
   8  Prefactor     .10000E-03    6.3399        .25102E-06** at limit **
   9  Prefactor     .10000E-03    83.928        .36858E-07** at limit **
  10  Prefactor     78.505        58.567        .42702E-06   -.30001E-05
  11  Prefactor     .10000E-03    2.7607        .11303E-07** at limit **
  12  norm          50.854        17.549       -.55953E-07   -.68268E-05
  13  norm          3.8869        4.6916        .23066E-06   -.18028E-04
  14  Prefactor     .10000E-03    6.4636       -.35425E-06** at limit **
  15  Prefactor     6.4150        4.7941        .16082E-07   -.80394E-05
  16  norm          .10000E-03    4.4727       -.37383E-07** at limit **
  17  Prefactor     .10000E-03    7.6020        .32247E-06** at limit **
  18  Prefactor     26.879        22.358       -.14913E-07   -.10533E-04
  19  Prefactor     5.4090        4.5214        .13422E-06   -.91475E-05
  20  Prefactor     22.331        14.851       -.98588E-07   -.59446E-06
  21  norm          .10000E-03    2.7316        .17765E-07** at limit **
  22  norm          .10000E-03    .58121        .68531E-07** at limit **
  23  Normalizat    .96899        .21204       -.57874E-06   -.16032E-04
  24  Prefactor     1.1123        .85544E-01   -.19709E-07   -.21149E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.78623
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.9815
  Prefactor  = 20.0089
  norm       = 6.04028
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 78.5049
  Prefactor  = 0.0001
  norm       = 50.8541
  norm       = 3.88686
  Prefactor  = 0.0001
  Prefactor  = 6.41495
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.8787
  Prefactor  = 5.40898
  Prefactor  = 22.3311
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 0.968988
  Prefactor  = 1.11225
 **********
 **   18 **HESSE 
 **********

 FCN=   8996.777     FROM HESSE     STATUS=OK           395 CALLS     3098 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.7862        62.828        .15557E-02   -1.5441    
   2  Prefactor     .10000E-03    157.82        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    7.9869        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    7.0618        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     20.982        52.905        .87514E-04   -1.4792    
   6  Prefactor     20.009        20.541        .89552E-04   -1.4813    
   7  norm          6.0403        12.306        .16331E-03   -1.5216    
   8  Prefactor     .10000E-03    6.3473        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    84.259        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     78.505        58.635        .45323E-04   -1.3934    
  11  Prefactor     .10000E-03    2.7753        .15386E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          50.854        17.532        .56238E-04   -1.4281    
  13  norm          3.8869        4.6767        .20466E-03   -1.5314    
  14  Prefactor     .10000E-03    6.4904        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.4150        4.7911        .15847E-03   -1.5201    
  16  norm          .10000E-03    4.5421        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    7.6098        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     26.879        22.377        .77277E-04   -1.4671    
  19  Prefactor     5.4090        4.5255        .17278E-03   -1.5243    
  20  Prefactor     22.331        14.854        .84762E-04   -1.4762    
  21  norm          .10000E-03    2.7405        .15310E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    .92489        .13997E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .96899        .22897        .40859E-03   -.94077    
  24  Prefactor     1.1123        .93219E-01    .16387E-03   -.89076    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.22686e-10
Minuit parameter uncertainties:
  1  21.2108
  2  0.000161999
  3  2.91914e-06
  4  3.31653e-05
  5  53.0236
  6  20.5484
  7  12.3116
  8  1.92305e-06
  9  0.00031097
  10  58.678
  11  4.46746e-07
  12  17.5334
  13  4.67713
  14  3.47344e-06
  15  4.79135
  16  2.74806e-06
  17  7.06082e-07
  18  22.3843
  19  4.5258
  20  14.8562
  21  1.32417e-07
  22  1.13804e-06
  23  0.229202
  24  0.0932327
Done.

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

Extracting fit parameters...

4FGL J0308.4+0407
   Spectrum: PowerLaw
290    Prefactor:  6.415e+00  4.791e+00  1.000e-04  1.000e+04 ( 1.000e-13)
291        Index:  1.973e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
292        Scale:  2.451e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
499    Prefactor:  1.112e+00  9.323e-02  0.000e+00  1.000e+01 ( 1.000e+00)
500        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
501        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
498   Normalization:  9.690e-01  2.292e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.18
Ra Dec: 47.111 4.118
Photon Index (Fixed Index): 1.97 +/- 0.00
Photon Flux (Fixed Index): 3.63e-08 +/- 2.71e-08
Energy Flux (Fixed Index): 2.68e-05 +/- 2.00e-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) = 8996.77545719
delta logL = 0.00129147942971

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8996.77497261
delta logL = 0.00177605449426

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.5765       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9335       1.0000          .0000       10.000    
     3 'Normalizat'    .97058       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1121       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5020E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8996.775     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      266 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.5771        5.7468        .15649E-03    .25282E-04
   2  Index         1.9338        .68241        .10463E-01    .35472E-03
   3  Normalizat    .97054        .21366        .40832E-03   -.58024E-04
   4  Prefactor     1.1121        .91035E-01    .16388E-03   -.15575E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.57713
  Index      = 1.93377
  Normalizat = 0.970538
  Prefactor  = 1.11212
 **********
 **   18 **HESSE 
 **********

 FCN=   8996.775     FROM HESSE     STATUS=OK            25 CALLS      291 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.5771        5.5800        .62594E-05   -1.5195    
   2  Index         1.9338        .66237        .20927E-02   -.66016    
   3  Normalizat    .97054        .21349        .16333E-04   -.94024    
   4  Prefactor     1.1121        .91060E-01    .32777E-04   -.89080    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.48417e-11
Minuit parameter uncertainties:
  1  5.58041
  2  0.665517
  3  0.213682
  4  0.0910727
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/542407': 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) = 8996.77497243
delta logL = 0.00177623933087

Extracting fit parameters...

4FGL J0308.4+0407
   Spectrum: PowerLaw
290    Prefactor:  6.577e+00  5.580e+00  1.000e-04  1.000e+04 ( 1.000e-13)
291        Index:  1.934e+00  6.655e-01  0.000e+00  1.000e+01 (-1.000e+00)
292        Scale:  2.451e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
499    Prefactor:  1.112e+00  9.107e-02  0.000e+00  1.000e+01 ( 1.000e+00)
500        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
501        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
498   Normalization:  9.705e-01  2.137e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.18
Ra Dec: 47.111 4.118
Photon Index (Free Index): 1.93 +/- 0.67
Photon Flux (Free Index): 3.42e-08 +/- 4.32e-08
Energy Flux (Free Index): 2.80e-05 +/- 2.96e-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/542407/cmap_HighResolution_681782401_682041601_4FGL_J0308.4+0407_daily_bin1707.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.63e-08', energy_flux2='2.80e-05', photon_flux_error='2.71e-08', dlogl='1.78e-03', energy_flux='2.68e-05', photon_flux2='3.42e-08', job_status='DONE', time_completed='2022-08-13 00:18:16.601319', photon_index_error2='0.67', photon_index2='1.93', ts='7.18', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', energy_flux_error2='2.96e-05', EG='0.97', time_epoch_completed='1660375096.6', return_code='0', job_id='542407', GAL2='1.11', EG2='0.97', return_code2='0', energy_flux_error='2.00e-05', photon_flux_error2='4.32e-08', ts2='7.18', photon_index='1.97' WHERE bin_id='1707' AND source_name='4FGL J0308.4+0407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 13 00:18:16 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0038>
Subject: Job 542407: <4FGL_J0308.4+0407_daily_bin1707> in cluster <slac> Done

Job <4FGL_J0308.4+0407_daily_bin1707> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Aug 13 00:05:03 2022
Job was executed on host(s) <bullet0038>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 13 00:05:05 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Aug 13 00:05:05 2022
Terminated at Sat Aug 13 00:18:17 2022
Results reported at Sat Aug 13 00:18:17 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0308.4+0407_daily_bin1707 47.1105 4.1177 681782401 682041601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0308.4+0407 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   756.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             381.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   791 sec.
    Turnaround time :                            794 sec.

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

