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


Performing analysis on: 4FGL_J0345.2-2353_daily_bin1713
RA = 56.3187, Dec = -23.885
tmin = 683337601, tmax = 683596801
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='17346', job_status='RUN', time_executed='2022-09-16 11:03:03.993066', time_epoch_executed='1663351383.99' WHERE source_name='4FGL J0345.2-2353' and cadence='daily' and bin_id='1713'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/17346

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/17346/ft1_4FGL_J0345.2-2353_daily_bin1713.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/17346/ft2_4FGL_J0345.2-2353_daily_bin1713.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/17346/ft1_4FGL_J0345.2-2353_daily_bin1713.fits outfile=/scratch/kocevski/17346/ft1_filteredMKT_4FGL_J0345.2-2353_daily_bin1713.fits ra=56.3187 dec=-23.885 rad=12.0 tmin=683337601.0 tmax=683596801.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.51
user 3.30
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/17346/ft2_4FGL_J0345.2-2353_daily_bin1713.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/17346/ft2_4FGL_J0345.2-2353_daily_bin1713.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/17346/ft1_filteredMKT_4FGL_J0345.2-2353_daily_bin1713.fits evtable="EVENTS" outfile="/scratch/kocevski/17346/ft1_filtered_4FGL_J0345.2-2353_daily_bin1713.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.15

Number of photons that the gtmktime cut: 561

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/17346/ft1_filtered_4FGL_J0345.2-2353_daily_bin1713.fits" evtable="EVENTS" scfile=/scratch/kocevski/17346/ft2_4FGL_J0345.2-2353_daily_bin1713.fits sctable="SC_DATA" outfile=/scratch/kocevski/17346/ltcube_683337601_683596801_4FGL_J0345.2-2353_daily_bin1713.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/17346/ft2_4FGL_J0345.2-2353_daily_bin1713.fits
.....................!
real 13.33
user 12.89
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/17346/ft1_filtered_4FGL_J0345.2-2353_daily_bin1713.fits evtable="EVENTS" scfile=/scratch/kocevski/17346/ft2_4FGL_J0345.2-2353_daily_bin1713.fits sctable="SC_DATA" expcube=/scratch/kocevski/17346/ltcube_683337601_683596801_4FGL_J0345.2-2353_daily_bin1713.fits outfile=/scratch/kocevski/17346/expmap_683337601_683596801_4FGL_J0345.2-2353_daily_bin1713.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/17346/ltcube_683337601_683596801_4FGL_J0345.2-2353_daily_bin1713.fits
.....................!
real 192.11
user 186.29
sys 5.36

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 155 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 J0345.2-2353 @ 56.3187 -23.885

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/17346/ft1_filtered_4FGL_J0345.2-2353_daily_bin1713.fits scfile=/scratch/kocevski/17346/ft2_4FGL_J0345.2-2353_daily_bin1713.fits outfile=/scratch/kocevski/17346/cmap_683337601_683596801_4FGL_J0345.2-2353_daily_bin1713.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=56.3187 yref=-23.885 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.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/17346/ft1_filtered_4FGL_J0345.2-2353_daily_bin1713.fits scfile=/scratch/kocevski/17346/ft2_4FGL_J0345.2-2353_daily_bin1713.fits outfile=/scratch/kocevski/17346/cmap_HighResolution_683337601_683596801_4FGL_J0345.2-2353_daily_bin1713.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=56.3187 yref=-23.885 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.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/17346/ft1_filtered_4FGL_J0345.2-2353_daily_bin1713.fits evtable="EVENTS" scfile=/scratch/kocevski/17346/ft2_4FGL_J0345.2-2353_daily_bin1713.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/17346/Model_4FGL_J0345.2-2353_daily_bin1713.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/17346/ft1_filtered_4FGL_J0345.2-2353_daily_bin1713.fits.....................!
real 132.37
user 130.81
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/17346/ft1_filtered_4FGL_J0345.2-2353_daily_bin1713.fits', '/scratch/kocevski/17346/ft2_4FGL_J0345.2-2353_daily_bin1713.fits', expMap='/scratch/kocevski/17346/expmap_683337601_683596801_4FGL_J0345.2-2353_daily_bin1713.fits', expCube='/scratch/kocevski/17346/ltcube_683337601_683596801_4FGL_J0345.2-2353_daily_bin1713.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/17346/Model_4FGL_J0345.2-2353_daily_bin1713.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0345.2-2353'

4FGL J0345.2-2353
   Spectrum: PowerLaw
254    Prefactor:  2.229e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
255        Index:  2.446e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
256        Scale:  7.564e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/17346/ft1_filtered_4FGL_J0345.2-2353_daily_bin1713.fits
Spacecraft file(s): /scratch/kocevski/17346/ft2_4FGL_J0345.2-2353_daily_bin1713.fits
Exposure map: /scratch/kocevski/17346/expmap_683337601_683596801_4FGL_J0345.2-2353_daily_bin1713.fits
Exposure cube: /scratch/kocevski/17346/ltcube_683337601_683596801_4FGL_J0345.2-2353_daily_bin1713.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/17346/Model_4FGL_J0345.2-2353_daily_bin1713.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) = 6194.47605138

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .19666E-05   1.0000          .0000       .10000E+07
     2 'Prefactor '    67.746       1.0000          .0000       .10000E+07
     3 'Prefactor '    2.7944       1.0000          .0000       .10000E+07
     4 'Prefactor '    .29358E-02   1.0000          .0000       .10000E+07
     5 'Prefactor '    .51512E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    .40587E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    .83388       1.0000          .0000       .10000E+07
     8 'Prefactor '    .87797E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    6.7903       1.0000          .0000       .10000E+07
    10 'norm      '    3.1281       1.0000          .0000       .10000E+07
    11 'Prefactor '    .29003E-01   1.0000          .0000       .10000E+07
    12 'norm      '    .16410E-04   1.0000          .0000       .10000E+07
    13 'Prefactor '    32.448       1.0000          .0000       .10000E+07
    14 'Prefactor '    .21654E-02   1.0000          .0000       .10000E+07
    15 'Prefactor '    2.8415       1.0000          .0000       .10000E+07
    16 'norm      '    .98363E-03   1.0000          .0000       .10000E+07
    17 'Prefactor '    .19241E-02   1.0000          .0000       .10000E+07
    18 'Prefactor '    8.6101       1.0000          .0000       .10000E+07
    19 'Prefactor '    .32007E-05   1.0000          .0000       .10000E+07
    20 'Prefactor '    .69453E-03   1.0000          .0000       .10000E+07
    21 'Normalizat'    .85114       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .91697       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4950E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6194.476     FROM MIGRAD    STATUS=CONVERGED    151 CALLS     1744 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .11102E-09    .93426       -.76751E-07** at limit **
   2  Prefactor     67.719        4.7470       -.11723E-07    .12445    
   3  Prefactor     2.7971        2.9545        .58741E-07    .61930E-02
   4  Prefactor     .11008E-06    7.8739       -.19216E-06** at limit **
   5  Prefactor     .45630E-07    8.0604       -.17451E-06** at limit **
   6  Prefactor     .77965E-06    9.4313        .55166E-07** at limit **
   7  Prefactor     .81249        2.4692        .38382E-08   -.21759E-02
   8  Prefactor     .29243E-06    4.3447        .28941E-07** at limit **
   9  Prefactor     6.8111        4.3553        .93648E-08   -.12371E-02
  10  norm          3.1276        .93866        .23542E-08    .14585E-02
  11  Prefactor     .58287E-08    28.403       -.16361E-07** at limit **
  12  norm          .55511E-09    2.7380       -.72453E-07** at limit **
  13  Prefactor     32.479        1.1563        .21465E-08   -.97430E-02
  14  Prefactor     .77716E-09    8.0410       -.71257E-07** at limit **
  15  Prefactor     2.8423        2.2791        .29267E-08    .34747E-03
  16  norm          .18446E-06    4.4250        .85541E-08** at limit **
  17  Prefactor     .55811E-06    14.026       -.23967E-07** at limit **
  18  Prefactor     8.6206        6.6815       -.28293E-07   -.44837E-01
  19  Prefactor     .11102E-09    1.9757       -.49556E-07** at limit **
  20  Prefactor      .0000        4.2018        .89418E-07** at limit **
  21  Normalizat    .85120        .17597       -.15597E-05   -.12862E-04
  22  Prefactor     .91702        .16716        .14653E-05    .12761E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.11022e-10
  Prefactor  = 67.7188
  Prefactor  = 2.79709
  Prefactor  = 1.10079e-07
  Prefactor  = 4.56302e-08
  Prefactor  = 7.79654e-07
  Prefactor  = 0.812493
  Prefactor  = 2.92433e-07
  Prefactor  = 6.8111
  norm       = 3.12762
  Prefactor  = 5.82867e-09
  norm       = 5.55112e-10
  Prefactor  = 32.4786
  Prefactor  = 7.77156e-10
  Prefactor  = 2.84232
  norm       = 1.84464e-07
  Prefactor  = 5.58109e-07
  Prefactor  = 8.62063
  Prefactor  = 1.11022e-10
  Prefactor  = 0
  Normalizat = 0.851196
  Prefactor  = 0.917021
 **********
 **   18 **HESSE 
 **********

 FCN=   6194.476     FROM HESSE     STATUS=OK           390 CALLS     2134 TOTAL
                     EDM=   .29E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .11102E-09    .93553        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     67.719        90.173        .12150E-03   -1.5543    
   3  Prefactor     2.7971        2.9562        .60837E-03   -1.5675    
   4  Prefactor     .11008E-06    11.963        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .45630E-07    8.3342        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .77965E-06    17.990        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .81249        2.5528        .50443E-03   -1.5690    
   8  Prefactor     .29243E-06    5.6593        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     6.8111        4.4136        .38481E-03   -1.5656    
  10  norm          3.1276        .93848        .57298E-03   -1.5673    
  11  Prefactor     .58287E-08    12.371        .93519E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .55511E-09    .77179        .21540E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     32.479        50.263        .17557E-03   -1.5594    
  14  Prefactor     .77716E-09    13.516        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.8423        2.3015        .60296E-03   -1.5674    
  16  norm          .18446E-06    5.2647        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .55811E-06    19.773        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     8.6206        6.8213        .34138E-03   -1.5649    
  19  Prefactor     .11102E-09    1.9703        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor      .0000        4.2028        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .85120        .15250        .44274E-01   -.98197    
  22  Prefactor     .91702        .14481        .45221E-01   -.95549    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.8787e-06
Minuit parameter uncertainties:
  1  1.90695e-05
  2  90.1745
  3  2.95622
  4  0.00229518
  5  0.00123322
  6  0.00749024
  7  2.55281
  8  0.00257299
  9  4.41356
  10  0.938475
  11  0.000537193
  12  4.19375e-05
  13  50.2638
  14  0.000206285
  15  2.30147
  16  0.00197102
  17  0.006644
  18  6.82132
  19  2.67798e-05
  20  2.64319e-06
  21  0.152578
  22  0.144869
Done.

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

Extracting fit parameters...

4FGL J0345.2-2353
   Spectrum: PowerLaw
254    Prefactor:  6.811e+00  4.414e+00  0.000e+00  1.000e+06 ( 1.000e-12)
255        Index:  2.446e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
256        Scale:  7.564e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
492    Prefactor:  9.170e-01  1.449e-01  0.000e+00  1.000e+01 ( 1.000e+00)
493        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
494        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
488   Normalization:  8.512e-01  1.526e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.81
Ra Dec: 56.319 -23.885
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 6.65e-08 +/- 4.30e-08
Energy Flux (Fixed Index): 2.06e-05 +/- 1.33e-05

TS (Fixed Index): 3.81
Ra Dec: 56.319 -23.885
Photon Flux Upper Limit: 1.46e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.13e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/17346/likelihoodResults_683337601_683596801_4FGL_J0345.2-2353_daily_bin1713.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): 102
logL (Free Index) = 6191.14824196
delta logL = 3.32745941512

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6190.94313094
delta logL = 3.53257043325

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14735       1.0000          .0000       .10000E+07
     2 'Index     '    5.3289       1.0000          .0000       10.000    
     3 'Normalizat'    .71402       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0172       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4950E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6190.943     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      242 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .14535        .67747        .24031E-03** at limit **
   2  Index         5.3364        2.1882        .69283E-01    .12425E-03
   3  Normalizat    .71420        .58257E-01    .42477E-01   -.11046E-05
   4  Prefactor     1.0169        .57174E-01    .42435E-01   -.41505E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.145354
  Index      = 5.33641
  Normalizat = 0.714201
  Prefactor  = 1.01693
 **********
 **   18 **HESSE 
 **********

 FCN=   6190.943     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      275 TOTAL
                     EDM=   .14E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .14535        .98878        .10682E-05   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         5.3364        2.7154        .29444E-02    .67332E-01
   3  Normalizat    .71420        .16381        .25402E-03   -1.0333    
   4  Prefactor     1.0169        .15833        .21354E-03   -.92167    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.41847e-07
Minuit parameter uncertainties:
  1  0.758217
  2  2.87132
  3  0.163925
  4  0.1584
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/17346': 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): 102
logL (Free Index) = 6190.9431202
delta logL = 3.53258117498

Extracting fit parameters...

4FGL J0345.2-2353
   Spectrum: PowerLaw
254    Prefactor:  1.454e-01  7.582e-01  0.000e+00  1.000e+06 ( 1.000e-12)
255        Index:  5.336e+00  2.871e+00  0.000e+00  1.000e+01 (-1.000e+00)
256        Scale:  7.564e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
492    Prefactor:  1.017e+00  1.584e-01  0.000e+00  1.000e+01 ( 1.000e+00)
493        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
494        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
488   Normalization:  7.142e-01  1.639e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.98
Ra Dec: 56.319 -23.885
Photon Index (Free Index): 5.34 +/- 2.87
Photon Flux (Free Index): 1.65e-07 +/- 6.28e-08
Energy Flux (Free Index): 2.14e-05 +/- 9.71e-06

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/17346/cmap_HighResolution_683337601_683596801_4FGL_J0345.2-2353_daily_bin1713.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.13e-02', comment='SUCCESS', photon_flux='6.65e-08', energy_flux2='2.14e-05', photon_flux_error='4.30e-08', dlogl='3.53e+00', energy_flux='2.06e-05', photon_flux2='1.65e-07', job_status='DONE', time_completed='2022-09-16 11:13:34.375380', photon_index_error2='2.87', photon_index2='5.34', ts='3.81', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', photon_flux_upper_limit='1.46e-07', energy_flux_error2='9.71e-06', EG='0.85', time_epoch_completed='1663352014.38', return_code='0', job_id='17346', GAL2='1.02', EG2='0.71', return_code2='102', energy_flux_error='1.33e-05', photon_flux_error2='6.28e-08', ts2='11.98', photon_index='2.45' WHERE bin_id='1713' AND source_name='4FGL J0345.2-2353' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 11:13:34 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0210>
Subject: Job 17346: <4FGL_J0345.2-2353_daily_bin1713> in cluster <slac> Done

Job <4FGL_J0345.2-2353_daily_bin1713> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Fri Sep 16 11:00:28 2022
Job was executed on host(s) <bullet0210>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 11:00:43 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:00:43 2022
Terminated at Fri Sep 16 11:13:35 2022
Results reported at Fri Sep 16 11:13:35 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0345.2-2353_daily_bin1713 56.3187 -23.885 683337601 683596801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0345.2-2353 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   632.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             318.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   771 sec.
    Turnaround time :                            787 sec.

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

