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 22 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 7469
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0402.0-2616_daily_bin1715
RA = 60.5103, Dec = -26.273
tmin = 683856001, tmax = 684115201
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='18811', job_status='RUN', time_executed='2022-09-16 11:06:55.667988', time_epoch_executed='1663351615.67' WHERE source_name='4FGL J0402.0-2616' and cadence='daily' and bin_id='1715'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/18811

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/18811/ft1_4FGL_J0402.0-2616_daily_bin1715.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/18811/ft2_4FGL_J0402.0-2616_daily_bin1715.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/18811/ft1_4FGL_J0402.0-2616_daily_bin1715.fits outfile=/scratch/kocevski/18811/ft1_filteredMKT_4FGL_J0402.0-2616_daily_bin1715.fits ra=60.5103 dec=-26.273 rad=12.0 tmin=683856001.0 tmax=684115201.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.47
user 3.23
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/18811/ft2_4FGL_J0402.0-2616_daily_bin1715.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/18811/ft2_4FGL_J0402.0-2616_daily_bin1715.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/18811/ft1_filteredMKT_4FGL_J0402.0-2616_daily_bin1715.fits evtable="EVENTS" outfile="/scratch/kocevski/18811/ft1_filtered_4FGL_J0402.0-2616_daily_bin1715.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.51
user 0.32
sys 0.17

Number of photons that the gtmktime cut: 686

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/18811/ft1_filtered_4FGL_J0402.0-2616_daily_bin1715.fits" evtable="EVENTS" scfile=/scratch/kocevski/18811/ft2_4FGL_J0402.0-2616_daily_bin1715.fits sctable="SC_DATA" outfile=/scratch/kocevski/18811/ltcube_683856001_684115201_4FGL_J0402.0-2616_daily_bin1715.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/18811/ft2_4FGL_J0402.0-2616_daily_bin1715.fits
.....................!
real 13.70
user 13.19
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/18811/ft1_filtered_4FGL_J0402.0-2616_daily_bin1715.fits evtable="EVENTS" scfile=/scratch/kocevski/18811/ft2_4FGL_J0402.0-2616_daily_bin1715.fits sctable="SC_DATA" expcube=/scratch/kocevski/18811/ltcube_683856001_684115201_4FGL_J0402.0-2616_daily_bin1715.fits outfile=/scratch/kocevski/18811/expmap_683856001_684115201_4FGL_J0402.0-2616_daily_bin1715.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/18811/ltcube_683856001_684115201_4FGL_J0402.0-2616_daily_bin1715.fits
.....................!
real 191.24
user 186.01
sys 4.80

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 Fornax A in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/FornaxA.fits is the correct path to the extended template.
Added 156 point sources and 1 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 J0402.0-2616 @ 60.5103 -26.273

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/18811/ft1_filtered_4FGL_J0402.0-2616_daily_bin1715.fits scfile=/scratch/kocevski/18811/ft2_4FGL_J0402.0-2616_daily_bin1715.fits outfile=/scratch/kocevski/18811/cmap_683856001_684115201_4FGL_J0402.0-2616_daily_bin1715.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=60.5103 yref=-26.273 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.62
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/18811/ft1_filtered_4FGL_J0402.0-2616_daily_bin1715.fits scfile=/scratch/kocevski/18811/ft2_4FGL_J0402.0-2616_daily_bin1715.fits outfile=/scratch/kocevski/18811/cmap_HighResolution_683856001_684115201_4FGL_J0402.0-2616_daily_bin1715.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=60.5103 yref=-26.273 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.57
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/18811/ft1_filtered_4FGL_J0402.0-2616_daily_bin1715.fits evtable="EVENTS" scfile=/scratch/kocevski/18811/ft2_4FGL_J0402.0-2616_daily_bin1715.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/18811/Model_4FGL_J0402.0-2616_daily_bin1715.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 Fornax A
adding source GAL_V02
Working on...
/scratch/kocevski/18811/ft1_filtered_4FGL_J0402.0-2616_daily_bin1715.fits.....................!
real 166.49
user 164.96
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/18811/ft1_filtered_4FGL_J0402.0-2616_daily_bin1715.fits', '/scratch/kocevski/18811/ft2_4FGL_J0402.0-2616_daily_bin1715.fits', expMap='/scratch/kocevski/18811/expmap_683856001_684115201_4FGL_J0402.0-2616_daily_bin1715.fits', expCube='/scratch/kocevski/18811/ltcube_683856001_684115201_4FGL_J0402.0-2616_daily_bin1715.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/18811/Model_4FGL_J0402.0-2616_daily_bin1715.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0402.0-2616'

4FGL J0402.0-2616
   Spectrum: LogParabola
255         norm:  2.550e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
256        alpha:  1.995e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
257         beta:  1.705e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
258           Eb:  1.630e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/18811/ft1_filtered_4FGL_J0402.0-2616_daily_bin1715.fits
Spacecraft file(s): /scratch/kocevski/18811/ft2_4FGL_J0402.0-2616_daily_bin1715.fits
Exposure map: /scratch/kocevski/18811/expmap_683856001_684115201_4FGL_J0402.0-2616_daily_bin1715.fits
Exposure cube: /scratch/kocevski/18811/ltcube_683856001_684115201_4FGL_J0402.0-2616_daily_bin1715.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/18811/Model_4FGL_J0402.0-2616_daily_bin1715.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) = 7407.53735505

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.6852       1.0000          .0000       .10000E+07
     2 'Prefactor '    43.516       1.0000          .0000       .10000E+07
     3 'Prefactor '    .99815E-06   1.0000          .0000       .10000E+07
     4 'Prefactor '    28.138       1.0000          .0000       .10000E+07
     5 'Prefactor '    .73264E-06   1.0000          .0000       .10000E+07
     6 'Prefactor '    .46994       1.0000          .0000       .10000E+07
     7 'Prefactor '    .10105E-03   1.0000          .0000       .10000E+07
     8 'Prefactor '    3.2660       1.0000          .0000       .10000E+07
     9 'norm      '    .99738       1.0000          .0000       .10000E+07
    10 'Prefactor '    .26100E-04   1.0000          .0000       .10000E+07
    11 'norm      '    .15438E-05   1.0000          .0000       .10000E+07
    12 'Prefactor '    .75289E-05   1.0000          .0000       .10000E+07
    13 'Prefactor '    28.569       1.0000          .0000       .10000E+07
    14 'Prefactor '    .29354E-05   1.0000          .0000       .10000E+07
    15 'norm      '    9.3420       1.0000          .0000       .10000E+07
    16 'Prefactor '    .39559E-03   1.0000          .0000       .10000E+07
    17 'norm      '    .55763       1.0000          .0000       .10000E+07
    18 'Prefactor '    2.5331       1.0000          .0000       .10000E+07
    19 'Prefactor '    9.4495       1.0000          .0000       .10000E+07
    20 'norm      '    122.81       1.0000          .0000       .10000E+07
    21 'Prefactor '    .76121E-03   1.0000          .0000       .10000E+07
    22 'norm      '    15.307       1.0000          .0000       .10000E+07
    23 'Normalizat'    1.0281       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .71596       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5030E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7407.371     FROM MIGRAD    STATUS=CONVERGED    221 CALLS     2076 TOTAL
                     EDM=   .83E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     28.612        200.55       -.78531E-05    .16782E-01
   2  Prefactor     42.852        18.734        .54557E-06    .59869E-02
   3  Prefactor     .55511E-10    10.086       -.19803E-06** at limit **
   4  Prefactor     27.481        27.703       -.28268E-06    .17217E-02
   5  Prefactor      .0000        1.3738       -.22688E-07** at limit **
   6  Prefactor     .47528        4.2451       -.79125E-06   -.65376E-03
   7  Prefactor      .0000        5.4020       -.66140E-07** at limit **
   8  Prefactor     3.2309        8.3177        .25056E-06   -.25875E-05
   9  norm          .99935        .65704        .25679E-07   -.17549E-02
  10  Prefactor     .16653E-09    19.164        .33482E-07** at limit **
  11  norm           .0000        .66849       -.15017E-07** at limit **
  12  Prefactor     .49960E-09    66.757       -.14276E-05** at limit **
  13  Prefactor     28.339        18.539       -.36896E-06   -.91187E-02
  14  Prefactor      .0000        .58830        .22720E-07** at limit **
  15  norm          9.3417        9.8708        .15644E-06    .12708E-04
  16  Prefactor      .0000        6.7653        .97297E-07** at limit **
  17  norm          .55809        .25598       -.16778E-07   -.15450E-02
  18  Prefactor     2.5326        2.5490       -.42978E-07    .22546E-03
  19  Prefactor     9.4669        8.8636       -.23849E-08   -.13096E-03
  20  norm          133.01        59.735       -.13542E-05   -.91999E-01
  21  Prefactor     .56455E-07    96.886       -.10862E-05** at limit **
  22  norm          15.291        4.4384        .77613E-08    .29273E-03
  23  Normalizat    1.0292        .16360        .32098E-05   -.12747E-03
  24  Prefactor     .71406        .15503        .80459E-06   -.86848E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 28.6116
  Prefactor  = 42.8524
  Prefactor  = 5.55112e-11
  Prefactor  = 27.4813
  Prefactor  = 0
  Prefactor  = 0.475282
  Prefactor  = 0
  Prefactor  = 3.2309
  norm       = 0.999349
  Prefactor  = 1.66533e-10
  norm       = 0
  Prefactor  = 4.996e-10
  Prefactor  = 28.339
  Prefactor  = 0
  norm       = 9.3417
  Prefactor  = 0
  norm       = 0.558094
  Prefactor  = 2.53264
  Prefactor  = 9.46688
  norm       = 133.013
  Prefactor  = 5.64548e-08
  norm       = 15.291
  Normalizat = 1.02918
  Prefactor  = 0.71406
 **********
 **   18 **HESSE 
 **********

 FCN=   7407.371     FROM HESSE     STATUS=OK           445 CALLS     2521 TOTAL
                     EDM=   .68E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     28.612        250.71        .33989E-03   -1.5601    
   2  Prefactor     42.852        18.739        .15161E-03   -1.5577    
   3  Prefactor     .55511E-10    10.160        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     27.481        27.706        .18855E-03   -1.5603    
   5  Prefactor      .0000        1.3534        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .47528        4.2900        .81793E-03   -1.5694    
   7  Prefactor      .0000        5.3118        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.2309        8.3203        .56011E-03   -1.5672    
   9  norm          .99935        .67331        .43672E-03   -1.5688    
  10  Prefactor     .16653E-09    19.246        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm           .0000        .66307        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .49960E-09    66.902        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     28.339        18.532        .18712E-03   -1.5601    
  14  Prefactor      .0000        .58849        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          9.3417        9.8504        .32765E-03   -1.5647    
  16  Prefactor      .0000        6.8143        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .55809        .26030        .63741E-03   -1.5693    
  18  Prefactor     2.5326        2.5651        .64147E-03   -1.5676    
  19  Prefactor     9.4669        8.8366        .32577E-03   -1.5646    
  20  norm          133.01        132.09        .90245E-04   -1.5477    
  21  Prefactor     .56455E-07    97.513        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          15.291        4.4712        .25573E-03   -1.5630    
  23  Normalizat    1.0292        .14485        .42354E-01   -.92059    
  24  Prefactor     .71406        .13742        .42613E-01   -1.0298    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.84321e-06
Minuit parameter uncertainties:
  1  169.399
  2  18.7395
  3  4.13771e-05
  4  27.706
  5  2.21922e-06
  6  2.85586
  7  2.57278e-06
  8  8.3203
  9  0.67331
  10  0.000108766
  11  7.44534e-07
  12  0.000362946
  13  18.5324
  14  2.54717e-07
  15  9.85038
  16  2.2464e-06
  17  0.260301
  18  2.56513
  19  8.83665
  20  132.097
  21  0.004692
  22  4.47122
  23  0.144903
  24  0.13749
Done.

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

Extracting fit parameters...

4FGL J0402.0-2616
   Spectrum: LogParabola
255         norm:  9.342e+00  9.850e+00  0.000e+00  1.000e+06 ( 1.000e-13)
256        alpha:  1.995e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
257         beta:  1.705e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
258           Eb:  1.630e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
500    Prefactor:  7.141e-01  1.375e-01  0.000e+00  1.000e+01 ( 1.000e+00)
501        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
502        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
496   Normalization:  1.029e+00  1.449e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.60
Ra Dec: 60.510 -26.273
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 1.31e-08 +/- 1.38e-08
Energy Flux (Fixed Index): 1.00e-05 +/- 1.06e-05

TS (Fixed Index): 1.60
Ra Dec: 60.510 -26.273
Photon Flux Upper Limit: 4.82e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.68e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/18811/likelihoodResults_683856001_684115201_4FGL_J0402.0-2616_daily_bin1715.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7407.20212968
delta logL = 0.169096901605

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7407.20181044
delta logL = 0.169416135747

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.1613       1.0000          .0000       .10000E+07
     2 'alpha     '    1.4121       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0336       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71458       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5030E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7407.202     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      225 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 73.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.1607        8.1593       -.20301E-06    .10101E-01
   2  alpha         1.4121        .58776        .17423E-04    .13394E-03
   3  Normalizat    1.0337        .13762       -.22964E-06   -.21296E-03
   4  Prefactor     .71449        .13645        .15706E-06   -.16492E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 9.1607
  alpha      = 1.41207
  Normalizat = 1.03369
  Prefactor  = 0.714488
 **********
 **   18 **HESSE 
 **********

 FCN=   7407.202     FROM HESSE     STATUS=OK            29 CALLS      254 TOTAL
                     EDM=   .65E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.1607        11.081        .13235E-04   -1.5647    
   2  alpha         1.4121        .94789        .27374E-01   -.45023    
   3  Normalizat    1.0337        .15542        .22119E-03   -.91910    
   4  Prefactor     .71449        .15430        .25791E-03   -1.0296    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.48095e-09
Minuit parameter uncertainties:
  1  11.0812
  2  0.978408
  3  0.155488
  4  0.154391
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/18811': 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) = 7407.20181016
delta logL = 0.16941641758

Extracting fit parameters...

4FGL J0402.0-2616
   Spectrum: LogParabola
255         norm:  9.161e+00  1.108e+01  0.000e+00  1.000e+06 ( 1.000e-13)
256        alpha:  1.412e+00  9.784e-01  0.000e+00  5.000e+00 ( 1.000e+00)
257         beta:  1.705e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
258           Eb:  1.630e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
500    Prefactor:  7.145e-01  1.544e-01  0.000e+00  1.000e+01 ( 1.000e+00)
501        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
502        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
496   Normalization:  1.034e+00  1.555e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.93
Ra Dec: 60.510 -26.273
Photon Index (Free Index): 1.41 +/- 0.98
Photon Flux (Free Index): 6.75e-09 +/- 1.08e-08
Energy Flux (Free Index): 1.59e-05 +/- 2.26e-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/18811/cmap_HighResolution_683856001_684115201_4FGL_J0402.0-2616_daily_bin1715.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.68e-05', comment='SUCCESS', photon_flux='1.31e-08', energy_flux2='1.59e-05', photon_flux_error='1.38e-08', dlogl='1.69e-01', energy_flux='1.00e-05', photon_flux2='6.75e-09', job_status='DONE', time_completed='2022-09-16 11:19:17.212940', photon_index_error2='0.98', photon_index2='1.41', ts='1.60', fit_tolerance='1e-08', GAL='0.71', photon_index_error='0.00', photon_flux_upper_limit='4.82e-08', energy_flux_error2='2.26e-05', EG='1.03', time_epoch_completed='1663352357.21', return_code='0', job_id='18811', GAL2='0.71', EG2='1.03', return_code2='0', energy_flux_error='1.06e-05', photon_flux_error2='1.08e-08', ts2='1.93', photon_index='2.00' WHERE bin_id='1715' AND source_name='4FGL J0402.0-2616' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 11:19:17 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0228>
Subject: Job 18811: <4FGL_J0402.0-2616_daily_bin1715> in cluster <slac> Done

Job <4FGL_J0402.0-2616_daily_bin1715> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Sep 16 11:05:18 2022
Job was executed on host(s) <bullet0228>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 11:06:25 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 16 11:06:25 2022
Terminated at Fri Sep 16 11:19:18 2022
Results reported at Fri Sep 16 11:19:18 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0402.0-2616_daily_bin1715 60.5103 -26.273 683856001 684115201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0402.0-2616 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   743.12 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             358.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   772 sec.
    Turnaround time :                            840 sec.

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

