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 155 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_J0345.2-2353_daily_bin1718
RA = 56.3187, Dec = -23.885
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='17354', job_status='RUN', time_executed='2022-09-16 11:03:29.294664', time_epoch_executed='1663351409.29' WHERE source_name='4FGL J0345.2-2353' and cadence='daily' and bin_id='1718'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/17354

Creating custom pfile directory:
/scratch/kocevski/17354/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/17354/ft1_4FGL_J0345.2-2353_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/17354/ft2_4FGL_J0345.2-2353_daily_bin1718.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/17354/ft1_4FGL_J0345.2-2353_daily_bin1718.fits outfile=/scratch/kocevski/17354/ft1_filteredMKT_4FGL_J0345.2-2353_daily_bin1718.fits ra=56.3187 dec=-23.885 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.20
user 2.97
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/17354/ft2_4FGL_J0345.2-2353_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/17354/ft1_filteredMKT_4FGL_J0345.2-2353_daily_bin1718.fits evtable="EVENTS" outfile="/scratch/kocevski/17354/ft1_filtered_4FGL_J0345.2-2353_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.53
user 0.34
sys 0.16

Number of photons that the gtmktime cut: 472

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/17354/ft1_filtered_4FGL_J0345.2-2353_daily_bin1718.fits" evtable="EVENTS" scfile=/scratch/kocevski/17354/ft2_4FGL_J0345.2-2353_daily_bin1718.fits sctable="SC_DATA" outfile=/scratch/kocevski/17354/ltcube_684633601_684892801_4FGL_J0345.2-2353_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/17354/ft2_4FGL_J0345.2-2353_daily_bin1718.fits
.....................!
real 14.85
user 14.46
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/17354/ft1_filtered_4FGL_J0345.2-2353_daily_bin1718.fits evtable="EVENTS" scfile=/scratch/kocevski/17354/ft2_4FGL_J0345.2-2353_daily_bin1718.fits sctable="SC_DATA" expcube=/scratch/kocevski/17354/ltcube_684633601_684892801_4FGL_J0345.2-2353_daily_bin1718.fits outfile=/scratch/kocevski/17354/expmap_684633601_684892801_4FGL_J0345.2-2353_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/17354/ltcube_684633601_684892801_4FGL_J0345.2-2353_daily_bin1718.fits
.....................!
real 192.48
user 186.67
sys 5.20

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/17354/ft1_filtered_4FGL_J0345.2-2353_daily_bin1718.fits scfile=/scratch/kocevski/17354/ft2_4FGL_J0345.2-2353_daily_bin1718.fits outfile=/scratch/kocevski/17354/cmap_684633601_684892801_4FGL_J0345.2-2353_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=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.54
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/17354/ft1_filtered_4FGL_J0345.2-2353_daily_bin1718.fits scfile=/scratch/kocevski/17354/ft2_4FGL_J0345.2-2353_daily_bin1718.fits outfile=/scratch/kocevski/17354/cmap_HighResolution_684633601_684892801_4FGL_J0345.2-2353_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=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.56
user 0.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/17354/ft1_filtered_4FGL_J0345.2-2353_daily_bin1718.fits evtable="EVENTS" scfile=/scratch/kocevski/17354/ft2_4FGL_J0345.2-2353_daily_bin1718.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/17354/Model_4FGL_J0345.2-2353_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/17354/ft1_filtered_4FGL_J0345.2-2353_daily_bin1718.fits.....................!
real 117.70
user 116.20
sys 1.26

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/17354/ft1_filtered_4FGL_J0345.2-2353_daily_bin1718.fits', '/scratch/kocevski/17354/ft2_4FGL_J0345.2-2353_daily_bin1718.fits', expMap='/scratch/kocevski/17354/expmap_684633601_684892801_4FGL_J0345.2-2353_daily_bin1718.fits', expCube='/scratch/kocevski/17354/ltcube_684633601_684892801_4FGL_J0345.2-2353_daily_bin1718.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/17354/Model_4FGL_J0345.2-2353_daily_bin1718.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/17354/ft1_filtered_4FGL_J0345.2-2353_daily_bin1718.fits
Spacecraft file(s): /scratch/kocevski/17354/ft2_4FGL_J0345.2-2353_daily_bin1718.fits
Exposure map: /scratch/kocevski/17354/expmap_684633601_684892801_4FGL_J0345.2-2353_daily_bin1718.fits
Exposure cube: /scratch/kocevski/17354/ltcube_684633601_684892801_4FGL_J0345.2-2353_daily_bin1718.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/17354/Model_4FGL_J0345.2-2353_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) = 5220.17295167

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.3053       1.0000          .0000       .10000E+07
     2 'Prefactor '    6.2766       1.0000          .0000       .10000E+07
     3 'Prefactor '    .34926E-05   1.0000          .0000       .10000E+07
     4 'Prefactor '    19.682       1.0000          .0000       .10000E+07
     5 'Prefactor '    .54885E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    2.3068       1.0000          .0000       .10000E+07
     7 'Prefactor '    2.1178       1.0000          .0000       .10000E+07
     8 'Prefactor '    .95372       1.0000          .0000       .10000E+07
     9 'Prefactor '    3.7450       1.0000          .0000       .10000E+07
    10 'norm      '    1.3853       1.0000          .0000       .10000E+07
    11 'Prefactor '    .37328E-02   1.0000          .0000       .10000E+07
    12 'norm      '    2.4159       1.0000          .0000       .10000E+07
    13 'Prefactor '    .31322       1.0000          .0000       .10000E+07
    14 'Prefactor '    .35577E-01   1.0000          .0000       .10000E+07
    15 'Prefactor '    .77214       1.0000          .0000       .10000E+07
    16 'norm      '    15.309       1.0000          .0000       .10000E+07
    17 'Prefactor '    .49549E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    5.6949       1.0000          .0000       .10000E+07
    19 'Prefactor '    .30198E-07   1.0000          .0000       .10000E+07
    20 'Prefactor '    .53822E-02   1.0000          .0000       .10000E+07
    21 'Normalizat'    .78519       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.3549       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=   5220.136     FROM MIGRAD    STATUS=CONVERGED    192 CALLS     1756 TOTAL
                     EDM=   .74E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.2883        4.8647       -.16885E-08   -.15479E-04
   2  Prefactor     .18319E-08    7874.8        .80673E-05** at limit **
   3  Prefactor      .0000        1.8241        .53198E-08** at limit **
   4  Prefactor     19.335        26.553       -.35059E-07    .23875E-04
   5  Prefactor      .0000        20.833       -.32704E-07** at limit **
   6  Prefactor     1.9882        81.987       -.29563E-06   -.28097E-05
   7  Prefactor     2.1210        2.0950        .16821E-07   -.21371E-03
   8  Prefactor     .94583        7.0715       -.11401E-06    .14252E-03
   9  Prefactor     3.7508        4.7619        .20154E-07   -.18113E-04
  10  norm          1.3852        .88760        .22767E-08    .68769E-04
  11  Prefactor      .0000        14.724       -.25982E-07** at limit **
  12  norm          2.4161        1.4998        .12758E-08    .12146E-03
  13  Prefactor      .0000        62.243       -.17017E-06** at limit **
  14  Prefactor      .0000        34.064       -.48663E-07** at limit **
  15  Prefactor     .75528        1.9441        .74944E-09   -.60687E-04
  16  norm          15.262        12.211       -.60051E-07    .15847E-03
  17  Prefactor      .0000        7.9312       -.71895E-07** at limit **
  18  Prefactor     5.6011        8.6913        .89648E-08   -.30403E-05
  19  Prefactor      .0000        .85547        .32696E-08** at limit **
  20  Prefactor      .0000        13.695        .43403E-07** at limit **
  21  Normalizat    .78615        .23354       -.18146E-06   -.42891E-06
  22  Prefactor     1.3555        .22640       -.11153E-06   -.33339E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 4.28829
  Prefactor  = 1.83187e-09
  Prefactor  = 0
  Prefactor  = 19.3354
  Prefactor  = 0
  Prefactor  = 1.98816
  Prefactor  = 2.12104
  Prefactor  = 0.945832
  Prefactor  = 3.75084
  norm       = 1.38521
  Prefactor  = 0
  norm       = 2.41611
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0.755278
  norm       = 15.262
  Prefactor  = 0
  Prefactor  = 5.60112
  Prefactor  = 0
  Prefactor  = 0
  Normalizat = 0.786148
  Prefactor  = 1.35554
 **********
 **   18 **HESSE 
 **********

 FCN=   5220.136     FROM HESSE     STATUS=OK           392 CALLS     2148 TOTAL
                     EDM=   .45E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.2883        4.8719        .48528E-03   -1.5667    
   2  Prefactor     .18319E-08    7853.2        .40043E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor      .0000        1.8249        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     19.335        26.578        .22548E-03   -1.5620    
   5  Prefactor      .0000        20.840        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.9882        80.854        .67531E-03   -1.5680    
   7  Prefactor     2.1210        2.1170        .70847E-03   -1.5679    
   8  Prefactor     .94583        7.7881        .42119E-03   -1.5689    
   9  Prefactor     3.7508        4.9444        .52150E-03   -1.5669    
  10  norm          1.3852        .89606        .92369E-03   -1.5684    
  11  Prefactor      .0000        14.769        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.4161        1.5117        .65830E-03   -1.5677    
  13  Prefactor      .0000        62.354        .10032E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor      .0000        32.456        .16170E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .75528        1.9610        .55035E-03   -1.5691    
  16  norm          15.262        12.233        .25572E-03   -1.5630    
  17  Prefactor      .0000        7.9399        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.6011        8.6823        .42068E-03   -1.5661    
  19  Prefactor      .0000        .85565        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor      .0000        13.715        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .78615        .20024        .66159E-01   -1.0058    
  22  Prefactor     1.3555        .19264        .51855E-01   -.81670    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.47205e-08
Minuit parameter uncertainties:
  1  4.87188
  2  0.00757468
  3  2.2775e-07
  4  26.5783
  5  8.99296e-06
  6  25.3579
  7  2.117
  8  5.42817
  9  4.94445
  10  0.896063
  11  2.32209e-06
  12  1.5117
  13  2.39136e-05
  14  1.44844e-06
  15  1.96096
  16  12.2331
  17  1.40716e-06
  18  8.6823
  19  1.08048e-07
  20  2.12988e-06
  21  0.200431
  22  0.192746
Done.

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

Extracting fit parameters...

4FGL J0345.2-2353
   Spectrum: PowerLaw
254    Prefactor:  3.751e+00  4.944e+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:  1.356e+00  1.927e-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.861e-01  2.004e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.17
Ra Dec: 56.319 -23.885
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 3.66e-08 +/- 4.82e-08
Energy Flux (Fixed Index): 1.13e-05 +/- 1.49e-05

TS (Fixed Index): 1.17
Ra Dec: 56.319 -23.885
Photon Flux Upper Limit: 1.27e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.85e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/17354/likelihoodResults_684633601_684892801_4FGL_J0345.2-2353_daily_bin1718.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) = 5219.20223103
delta logL = 0.933623243572

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5219.17898784
delta logL = 0.956866429507

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .90672       1.0000          .0000       .10000E+07
     2 'Index     '    4.0058       1.0000          .0000       10.000    
     3 'Normalizat'    .70424       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4092       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5219.179     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      329 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .90683        18.811        .42751E-05    .41452E-01
   2  Index         4.0056        6.9448        .47582E-02    .34410E-03
   3  Normalizat    .70442        .24821        .30728E-03    .27478E-03
   4  Prefactor     1.4091        .24108        .22540E-03    .31151E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.906833
  Index      = 4.00558
  Normalizat = 0.704421
  Prefactor  = 1.40915
 **********
 **   18 **HESSE 
 **********

 FCN=   5219.179     FROM HESSE     STATUS=OK            25 CALLS      354 TOTAL
                     EDM=   .71E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .90683        1.9429        .17101E-06   -1.5689    
   2  Index         4.0056        1.3132        .19033E-03   -.20022    
   3  Normalizat    .70442        .23498        .12291E-04   -1.0372    
   4  Prefactor     1.4091        .22979        .45079E-04   -.80117    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.08222e-10
Minuit parameter uncertainties:
  1  1.94288
  2  1.32941
  3  0.235315
  4  0.229957
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/17354': 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) = 5219.17898714
delta logL = 0.956867130022

Extracting fit parameters...

4FGL J0345.2-2353
   Spectrum: PowerLaw
254    Prefactor:  9.068e-01  1.943e+00  0.000e+00  1.000e+06 ( 1.000e-12)
255        Index:  4.006e+00  1.329e+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.409e+00  2.300e-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.044e-01  2.353e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.32
Ra Dec: 56.319 -23.885
Photon Index (Free Index): 4.01 +/- 1.33
Photon Flux (Free Index): 1.00e-07 +/- 7.01e-08
Energy Flux (Free Index): 1.50e-05 +/- 1.00e-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/17354/cmap_HighResolution_684633601_684892801_4FGL_J0345.2-2353_daily_bin1718.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.85e-03', comment='SUCCESS', photon_flux='3.66e-08', energy_flux2='1.50e-05', photon_flux_error='4.82e-08', dlogl='9.57e-01', energy_flux='1.13e-05', photon_flux2='1.00e-07', job_status='DONE', time_completed='2022-09-16 11:13:18.629091', photon_index_error2='1.33', photon_index2='4.01', ts='1.17', fit_tolerance='1e-08', GAL='1.36', photon_index_error='0.00', photon_flux_upper_limit='1.27e-07', energy_flux_error2='1.00e-05', EG='0.79', time_epoch_completed='1663351998.63', return_code='0', job_id='17354', GAL2='1.41', EG2='0.70', return_code2='0', energy_flux_error='1.49e-05', photon_flux_error2='7.01e-08', ts2='3.32', photon_index='2.45' WHERE bin_id='1718' AND source_name='4FGL J0345.2-2353' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 11:13:18 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0216>
Subject: Job 17354: <4FGL_J0345.2-2353_daily_bin1718> in cluster <slac> Done

Job <4FGL_J0345.2-2353_daily_bin1718> 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) <bullet0216>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 11:00:45 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:45 2022
Terminated at Fri Sep 16 11:13:19 2022
Results reported at Fri Sep 16 11:13:19 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0345.2-2353_daily_bin1718 56.3187 -23.885 684633601 684892801 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 :                                   590.52 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             307.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   753 sec.
    Turnaround time :                            771 sec.

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

