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


Performing analysis on: 4FGL_J0349.8-2103_daily_bin1718
RA = 57.4699, Dec = -21.0576
tmin = 684633601, tmax = 684892801
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='17470', job_status='RUN', time_executed='2022-09-16 11:03:00.031971', time_epoch_executed='1663351380.03' WHERE source_name='4FGL J0349.8-2103' and cadence='daily' and bin_id='1718'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/17470

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/17470/ft1_4FGL_J0349.8-2103_daily_bin1718.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/17470/ft2_4FGL_J0349.8-2103_daily_bin1718.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/17470/ft1_4FGL_J0349.8-2103_daily_bin1718.fits outfile=/scratch/kocevski/17470/ft1_filteredMKT_4FGL_J0349.8-2103_daily_bin1718.fits ra=57.4699 dec=-21.0576 rad=12.0 tmin=684633601.0 tmax=684892801.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.23
user 2.95
sys 0.24

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/17470/ft2_4FGL_J0349.8-2103_daily_bin1718.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/17470/ft2_4FGL_J0349.8-2103_daily_bin1718.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/17470/ft1_filteredMKT_4FGL_J0349.8-2103_daily_bin1718.fits evtable="EVENTS" outfile="/scratch/kocevski/17470/ft1_filtered_4FGL_J0349.8-2103_daily_bin1718.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.52
user 0.34
sys 0.17

Number of photons that the gtmktime cut: 488

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/17470/ft1_filtered_4FGL_J0349.8-2103_daily_bin1718.fits" evtable="EVENTS" scfile=/scratch/kocevski/17470/ft2_4FGL_J0349.8-2103_daily_bin1718.fits sctable="SC_DATA" outfile=/scratch/kocevski/17470/ltcube_684633601_684892801_4FGL_J0349.8-2103_daily_bin1718.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/17470/ft2_4FGL_J0349.8-2103_daily_bin1718.fits
.....................!
real 16.94
user 16.37
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/17470/ft1_filtered_4FGL_J0349.8-2103_daily_bin1718.fits evtable="EVENTS" scfile=/scratch/kocevski/17470/ft2_4FGL_J0349.8-2103_daily_bin1718.fits sctable="SC_DATA" expcube=/scratch/kocevski/17470/ltcube_684633601_684892801_4FGL_J0349.8-2103_daily_bin1718.fits outfile=/scratch/kocevski/17470/expmap_684633601_684892801_4FGL_J0349.8-2103_daily_bin1718.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/17470/ltcube_684633601_684892801_4FGL_J0349.8-2103_daily_bin1718.fits
.....................!
real 193.93
user 186.16
sys 5.55

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 151 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 J0349.8-2103 @ 57.4699 -21.0576

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/17470/ft1_filtered_4FGL_J0349.8-2103_daily_bin1718.fits scfile=/scratch/kocevski/17470/ft2_4FGL_J0349.8-2103_daily_bin1718.fits outfile=/scratch/kocevski/17470/cmap_684633601_684892801_4FGL_J0349.8-2103_daily_bin1718.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=57.4699 yref=-21.0576 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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/17470/ft1_filtered_4FGL_J0349.8-2103_daily_bin1718.fits scfile=/scratch/kocevski/17470/ft2_4FGL_J0349.8-2103_daily_bin1718.fits outfile=/scratch/kocevski/17470/cmap_HighResolution_684633601_684892801_4FGL_J0349.8-2103_daily_bin1718.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=57.4699 yref=-21.0576 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.41
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/17470/ft1_filtered_4FGL_J0349.8-2103_daily_bin1718.fits evtable="EVENTS" scfile=/scratch/kocevski/17470/ft2_4FGL_J0349.8-2103_daily_bin1718.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/17470/Model_4FGL_J0349.8-2103_daily_bin1718.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/17470/ft1_filtered_4FGL_J0349.8-2103_daily_bin1718.fits.....................!
real 124.91
user 122.08
sys 1.30

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/17470/ft1_filtered_4FGL_J0349.8-2103_daily_bin1718.fits', '/scratch/kocevski/17470/ft2_4FGL_J0349.8-2103_daily_bin1718.fits', expMap='/scratch/kocevski/17470/expmap_684633601_684892801_4FGL_J0349.8-2103_daily_bin1718.fits', expCube='/scratch/kocevski/17470/ltcube_684633601_684892801_4FGL_J0349.8-2103_daily_bin1718.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/17470/Model_4FGL_J0349.8-2103_daily_bin1718.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0349.8-2103'

4FGL J0349.8-2103
   Spectrum: LogParabola
261         norm:  1.092e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-11)
262        alpha:  2.339e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
263         beta:  1.771e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
264           Eb:  4.947e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/17470/ft1_filtered_4FGL_J0349.8-2103_daily_bin1718.fits
Spacecraft file(s): /scratch/kocevski/17470/ft2_4FGL_J0349.8-2103_daily_bin1718.fits
Exposure map: /scratch/kocevski/17470/expmap_684633601_684892801_4FGL_J0349.8-2103_daily_bin1718.fits
Exposure cube: /scratch/kocevski/17470/ltcube_684633601_684892801_4FGL_J0349.8-2103_daily_bin1718.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/17470/Model_4FGL_J0349.8-2103_daily_bin1718.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) = 5388.71532004

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.7712       1.0000          .0000       .10000E+07
     2 'Prefactor '    .59807       1.0000          .0000       .10000E+07
     3 'Prefactor '    5.9196       1.0000          .0000       .10000E+07
     4 'Prefactor '    .20761E-07   1.0000          .0000       .10000E+07
     5 'Prefactor '    24.654       1.0000          .0000       .10000E+07
     6 'Prefactor '    1.3028       1.0000          .0000       .10000E+07
     7 'Prefactor '    .45546E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    2.3881       1.0000          .0000       .10000E+07
     9 'Prefactor '    2.1521       1.0000          .0000       .10000E+07
    10 'Prefactor '    1.2200       1.0000          .0000       .10000E+07
    11 'Prefactor '    3.8538       1.0000          .0000       .10000E+07
    12 'norm      '    1.4180       1.0000          .0000       .10000E+07
    13 'Prefactor '    .69601E-02   1.0000          .0000       .10000E+07
    14 'norm      '    2.4564       1.0000          .0000       .10000E+07
    15 'Prefactor '    .18520       1.0000          .0000       .10000E+07
    16 'Prefactor '    .13886E-01   1.0000          .0000       .10000E+07
    17 'Prefactor '    .80893       1.0000          .0000       .10000E+07
    18 'norm      '    15.472       1.0000          .0000       .10000E+07
    19 'Prefactor '    .25965E-02   1.0000          .0000       .10000E+07
    20 'Prefactor '    4.5003       1.0000          .0000       .10000E+07
    21 'Prefactor '    .16098E-08   1.0000          .0000       .10000E+07
    22 'Prefactor '    .22260E-03   1.0000          .0000       .10000E+07
    23 'Normalizat'    .72904       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.3734       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4870E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5388.714     FROM MIGRAD    STATUS=CONVERGED    195 CALLS     2047 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.7661        4.5888        .46416E-07   -.26315E-03
   2  Prefactor     .58219        77.223        .88670E-06   -.10638E-01
   3  Prefactor     .95648E-05    17739.        .17950E-04** at limit **
   4  Prefactor      .0000        1.8437        .28593E-07** at limit **
   5  Prefactor     24.810        14.902       -.23904E-06   -.24474E-03
   6  Prefactor     1.2969        48.988       -.50582E-06    .39926E-02
   7  Prefactor      .0000        20.130        .24646E-06** at limit **
   8  Prefactor     2.3536        9.6330       -.28446E-06   -.31868E-01
   9  Prefactor     2.1530        2.1076        .67399E-07   -.64106E-03
  10  Prefactor     1.2043        5.7419        .13449E-06    .13889E-03
  11  Prefactor     3.8668        4.7975       -.13307E-06   -.79360E-04
  12  norm          1.4183        .89540       -.31871E-07    .64692E-03
  13  Prefactor     .55511E-10    15.191        .37722E-07** at limit **
  14  norm          2.4560        1.5129        .39902E-07   -.60350E-03
  15  Prefactor     .16209E-07    68.940       -.56668E-07** at limit **
  16  Prefactor     .14988E-08    37.050        .22524E-06** at limit **
  17  Prefactor     .80835        1.9617        .59799E-07   -.41892E-03
  18  norm          15.475        12.303        .15046E-06    .15764E-02
  19  Prefactor     .55511E-10    8.1441       -.15104E-06** at limit **
  20  Prefactor     4.5201        7.1780       -.42503E-07    .29138E-04
  21  Prefactor      .0000        .84295        .31638E-07** at limit **
  22  Prefactor      .0000        5.9129       -.10963E-06** at limit **
  23  Normalizat    .72910        .23157        .15393E-05   -.18582E-04
  24  Prefactor     1.3736        .20962       -.93255E-06   -.22912E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.76608
  Prefactor  = 0.582193
  Prefactor  = 9.56485e-06
  Prefactor  = 0
  Prefactor  = 24.8099
  Prefactor  = 1.29693
  Prefactor  = 0
  Prefactor  = 2.35362
  Prefactor  = 2.15302
  Prefactor  = 1.20427
  Prefactor  = 3.86678
  norm       = 1.41829
  Prefactor  = 5.55112e-11
  norm       = 2.45599
  Prefactor  = 1.62093e-08
  Prefactor  = 1.4988e-09
  Prefactor  = 0.808347
  norm       = 15.4751
  Prefactor  = 5.55112e-11
  Prefactor  = 4.52009
  Prefactor  = 0
  Prefactor  = 0
  Normalizat = 0.729096
  Prefactor  = 1.37355
 **********
 **   18 **HESSE 
 **********

 FCN=   5388.714     FROM HESSE     STATUS=OK           451 CALLS     2498 TOTAL
                     EDM=   .33E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.7661        4.5812        .51961E-03   -1.5669    
   2  Prefactor     .58219        111.25        .69401E-03   -1.5693    
   3  Prefactor     .95648E-05    18737.        .41250E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor      .0000        1.8412        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     24.810        27.565        .20144E-03   -1.5608    
   6  Prefactor     1.2969        47.784        .96724E-03   -1.5685    
   7  Prefactor      .0000        20.152        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.3536        69.037        .66251E-03   -1.5677    
   9  Prefactor     2.1530        2.1304        .70205E-03   -1.5679    
  10  Prefactor     1.2043        6.6615        .10209E-02   -1.5686    
  11  Prefactor     3.8668        5.1229        .51382E-03   -1.5669    
  12  norm          1.4183        .91043        .90846E-03   -1.5684    
  13  Prefactor     .55511E-10    15.184        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.4560        1.5225        .65233E-03   -1.5677    
  15  Prefactor     .16209E-07    69.434        .12045E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .14988E-08    37.003        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .80835        1.9796        .52272E-03   -1.5690    
  18  norm          15.475        12.329        .25436E-03   -1.5629    
  19  Prefactor     .55511E-10    8.1569        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     4.5201        7.2125        .47436E-03   -1.5665    
  21  Prefactor      .0000        .84517        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor      .0000        5.9116        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .72910        .20374        .69077E-01   -1.0276    
  24  Prefactor     1.3736        .18013        .48824E-01   -.81145    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.30154e-07
Minuit parameter uncertainties:
  1  4.58123
  2  16.0965
  3  0.849354
  4  3.65394e-07
  5  27.5653
  6  15.7447
  7  2.73508e-05
  8  25.4944
  9  2.13042
  10  5.66473
  11  5.1229
  12  0.910428
  13  5.18019e-05
  14  1.52251
  15  0.00212347
  16  0.000472925
  17  1.97962
  18  12.3294
  19  3.83447e-05
  20  7.21252
  21  1.36376e-07
  22  3.1795e-06
  23  0.203952
  24  0.180217
Done.

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

Extracting fit parameters...

4FGL J0349.8-2103
   Spectrum: LogParabola
261         norm:  2.456e+00  1.523e+00  0.000e+00  1.000e+06 ( 1.000e-11)
262        alpha:  2.339e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
263         beta:  1.771e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
264           Eb:  4.947e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
484    Prefactor:  1.374e+00  1.802e-01  0.000e+00  1.000e+01 ( 1.000e+00)
485        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
486        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
480   Normalization:  7.291e-01  2.040e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.77
Ra Dec: 57.470 -21.058
Photon Index (Fixed Index): 2.34 +/- 0.00
Photon Flux (Fixed Index): 6.25e-08 +/- 3.87e-08
Energy Flux (Fixed Index): 1.93e-05 +/- 1.20e-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) = 5388.53714042
delta logL = 0.17703446437

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5388.52732083
delta logL = 0.186854051844

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5388.527     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      208 TOTAL
                     EDM=   .67E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.3009        25.315        .67627E-03    .15597E-01
   2  alpha         2.7737        3.3501        .39677        .28687E-04
   3  Normalizat    .70261        .10292        .70203E-01    .25926E-04
   4  Prefactor     1.3871        .76696E-01    .48603E-01   -.58502E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.30087
  alpha      = 2.77372
  Normalizat = 0.702609
  Prefactor  = 1.38715
 **********
 **   18 **HESSE 
 **********

 FCN=   5388.527     FROM HESSE     STATUS=OK            33 CALLS      241 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.3009        1.4616        .58703E-05   -1.5678    
   2  alpha         2.7737        .72109        .15348E-01    .10971    
   3  Normalizat    .70261        .22496        .31069E-03   -1.0379    
   4  Prefactor     1.3871        .20826        .21485E-03   -.80751    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.45506e-10
Minuit parameter uncertainties:
  1  1.4616
  2  0.731611
  3  0.225253
  4  0.208385
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/17470': 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) = 5388.52732083
delta logL = 0.186854053496

Extracting fit parameters...

4FGL J0349.8-2103
   Spectrum: LogParabola
261         norm:  2.301e+00  1.462e+00  0.000e+00  1.000e+06 ( 1.000e-11)
262        alpha:  2.774e+00  7.316e-01  0.000e+00  5.000e+00 ( 1.000e+00)
263         beta:  1.771e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
264           Eb:  4.947e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
484    Prefactor:  1.387e+00  2.084e-01  0.000e+00  1.000e+01 ( 1.000e+00)
485        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
486        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
480   Normalization:  7.026e-01  2.253e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.19
Ra Dec: 57.470 -21.058
Photon Index (Free Index): 2.77 +/- 0.73
Photon Flux (Free Index): 8.65e-08 +/- 5.87e-08
Energy Flux (Free Index): 2.01e-05 +/- 1.11e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/17470/cmap_HighResolution_684633601_684892801_4FGL_J0349.8-2103_daily_bin1718.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.25e-08', energy_flux2='2.01e-05', photon_flux_error='3.87e-08', dlogl='1.87e-01', energy_flux='1.93e-05', photon_flux2='8.65e-08', job_status='DONE', time_completed='2022-09-16 11:12:46.698299', photon_index_error2='0.73', photon_index2='2.77', ts='5.77', fit_tolerance='1e-08', GAL='1.37', photon_index_error='0.00', energy_flux_error2='1.11e-05', EG='0.73', time_epoch_completed='1663351966.7', return_code='0', job_id='17470', GAL2='1.39', EG2='0.70', return_code2='0', energy_flux_error='1.20e-05', photon_flux_error2='5.87e-08', ts2='6.19', photon_index='2.34' WHERE bin_id='1718' AND source_name='4FGL J0349.8-2103' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 11:12:46 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0250>
Subject: Job 17470: <4FGL_J0349.8-2103_daily_bin1718> in cluster <slac> Done

Job <4FGL_J0349.8-2103_daily_bin1718> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Fri Sep 16 11:00:35 2022
Job was executed on host(s) <bullet0250>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 11:01:39 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:01:39 2022
Terminated at Fri Sep 16 11:12:47 2022
Results reported at Fri Sep 16 11:12:47 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0349.8-2103_daily_bin1718 57.4699 -21.0576 684633601 684892801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0349.8-2103 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   583.24 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             326.20 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   668 sec.
    Turnaround time :                            732 sec.

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

