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 26 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_J0354.7-1617_daily_bin1715
RA = 58.6779, Dec = -16.287
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='17545', job_status='RUN', time_executed='2022-09-16 11:02:55.618524', time_epoch_executed='1663351375.62' WHERE source_name='4FGL J0354.7-1617' and cadence='daily' and bin_id='1715'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/17545

Creating custom pfile directory:
/scratch/kocevski/17545/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/17545/ft1_4FGL_J0354.7-1617_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/17545/ft2_4FGL_J0354.7-1617_daily_bin1715.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/17545/ft1_4FGL_J0354.7-1617_daily_bin1715.fits outfile=/scratch/kocevski/17545/ft1_filteredMKT_4FGL_J0354.7-1617_daily_bin1715.fits ra=58.6779 dec=-16.287 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.50
user 3.24
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/17545/ft2_4FGL_J0354.7-1617_daily_bin1715.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/17545/ft2_4FGL_J0354.7-1617_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/17545/ft1_filteredMKT_4FGL_J0354.7-1617_daily_bin1715.fits evtable="EVENTS" outfile="/scratch/kocevski/17545/ft1_filtered_4FGL_J0354.7-1617_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.53
user 0.33
sys 0.18

Number of photons that the gtmktime cut: 711

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/17545/ft1_filtered_4FGL_J0354.7-1617_daily_bin1715.fits" evtable="EVENTS" scfile=/scratch/kocevski/17545/ft2_4FGL_J0354.7-1617_daily_bin1715.fits sctable="SC_DATA" outfile=/scratch/kocevski/17545/ltcube_683856001_684115201_4FGL_J0354.7-1617_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/17545/ft2_4FGL_J0354.7-1617_daily_bin1715.fits
.....................!
real 15.14
user 14.69
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/17545/ft1_filtered_4FGL_J0354.7-1617_daily_bin1715.fits evtable="EVENTS" scfile=/scratch/kocevski/17545/ft2_4FGL_J0354.7-1617_daily_bin1715.fits sctable="SC_DATA" expcube=/scratch/kocevski/17545/ltcube_683856001_684115201_4FGL_J0354.7-1617_daily_bin1715.fits outfile=/scratch/kocevski/17545/expmap_683856001_684115201_4FGL_J0354.7-1617_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/17545/ltcube_683856001_684115201_4FGL_J0354.7-1617_daily_bin1715.fits
.....................!
real 192.40
user 186.48
sys 5.47

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 155 point sources and 0 extended sources

Setting source of interest to:
4FGL J0354.7-1617 @ 58.6779 -16.287

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/17545/ft1_filtered_4FGL_J0354.7-1617_daily_bin1715.fits scfile=/scratch/kocevski/17545/ft2_4FGL_J0354.7-1617_daily_bin1715.fits outfile=/scratch/kocevski/17545/cmap_683856001_684115201_4FGL_J0354.7-1617_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=58.6779 yref=-16.287 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.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/17545/ft1_filtered_4FGL_J0354.7-1617_daily_bin1715.fits scfile=/scratch/kocevski/17545/ft2_4FGL_J0354.7-1617_daily_bin1715.fits outfile=/scratch/kocevski/17545/cmap_HighResolution_683856001_684115201_4FGL_J0354.7-1617_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=58.6779 yref=-16.287 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.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/17545/ft1_filtered_4FGL_J0354.7-1617_daily_bin1715.fits evtable="EVENTS" scfile=/scratch/kocevski/17545/ft2_4FGL_J0354.7-1617_daily_bin1715.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/17545/Model_4FGL_J0354.7-1617_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 GAL_V02
Working on...
/scratch/kocevski/17545/ft1_filtered_4FGL_J0354.7-1617_daily_bin1715.fits.....................!
real 90.01
user 88.57
sys 1.26

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/17545/ft1_filtered_4FGL_J0354.7-1617_daily_bin1715.fits', '/scratch/kocevski/17545/ft2_4FGL_J0354.7-1617_daily_bin1715.fits', expMap='/scratch/kocevski/17545/expmap_683856001_684115201_4FGL_J0354.7-1617_daily_bin1715.fits', expCube='/scratch/kocevski/17545/ltcube_683856001_684115201_4FGL_J0354.7-1617_daily_bin1715.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/17545/Model_4FGL_J0354.7-1617_daily_bin1715.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0354.7-1617'

4FGL J0354.7-1617
   Spectrum: PowerLaw
273    Prefactor:  2.383e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
274        Index:  2.529e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
275        Scale:  9.177e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/17545/ft1_filtered_4FGL_J0354.7-1617_daily_bin1715.fits
Spacecraft file(s): /scratch/kocevski/17545/ft2_4FGL_J0354.7-1617_daily_bin1715.fits
Exposure map: /scratch/kocevski/17545/expmap_683856001_684115201_4FGL_J0354.7-1617_daily_bin1715.fits
Exposure cube: /scratch/kocevski/17545/ltcube_683856001_684115201_4FGL_J0354.7-1617_daily_bin1715.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/17545/Model_4FGL_J0354.7-1617_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) = 7795.48463034

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .90056E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    .24068E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    25.015       1.0000          .0000       .10000E+07
     4 'Prefactor '    1.3129       1.0000          .0000       .10000E+07
     5 'Prefactor '    30.366       1.0000          .0000       .10000E+07
     6 'Prefactor '    16.771       1.0000          .0000       .10000E+07
     7 'Prefactor '    .19337E-04   1.0000          .0000       .10000E+07
     8 'Prefactor '    .78799       1.0000          .0000       .10000E+07
     9 'Prefactor '    .24738E-02   1.0000          .0000       .10000E+07
    10 'norm      '    1.5265       1.0000          .0000       .10000E+07
    11 'Prefactor '    .41536E-04   1.0000          .0000       .10000E+07
    12 'norm      '    .20484E-07   1.0000          .0000       .10000E+07
    13 'Prefactor '    28.522       1.0000          .0000       .10000E+07
    14 'Prefactor '    .14899E-06   1.0000          .0000       .10000E+07
    15 'norm      '    7.4045       1.0000          .0000       .10000E+07
    16 'Prefactor '    .22938E-02   1.0000          .0000       .10000E+07
    17 'Prefactor '    17.499       1.0000          .0000       .10000E+07
    18 'Prefactor '    2.5935       1.0000          .0000       .10000E+07
    19 'norm      '    5.1384       1.0000          .0000       .10000E+07
    20 'Prefactor '    7.8966       1.0000          .0000       .10000E+07
    21 'Prefactor '    .18395E-02   1.0000          .0000       .10000E+07
    22 'Normalizat'    .67627       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0519       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4980E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7795.453     FROM MIGRAD    STATUS=CONVERGED    182 CALLS     2019 TOTAL
                     EDM=   .75E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .22204E-09    10.849        .29996E-10** at limit **
   2  Prefactor      .0000        2.9414        .47025E-08** at limit **
   3  Prefactor     30.822        241.72       -.14910E-04    .11316E-02
   4  Prefactor     1.3144        2.1035       -.99585E-07   -.95562E-04
   5  Prefactor     30.234        2.0917        .13968E-06    .33631E-01
   6  Prefactor     16.802        10.101        .37133E-06   -.23123E-02
   7  Prefactor      .0000        2.2884       -.29549E-06** at limit **
   8  Prefactor     .80432        3.0270       -.47062E-06    .10796E-02
   9  Prefactor     .44409E-09    7.0445       -.47000E-06** at limit **
  10  norm          1.5250        .83820       -.53390E-07    .69940E-02
  11  Prefactor     .21372E-07    19.126        .12873E-05** at limit **
  12  norm           .0000        .81948       -.97485E-07** at limit **
  13  Prefactor     28.168        3.3701       -.50862E-07   -.65555E-01
  14  Prefactor     .55511E-10    .61515       -.20786E-06** at limit **
  15  norm          7.4036        9.0577       -.61067E-06    .42495E-03
  16  Prefactor     .55511E-10    6.8477       -.12357E-06** at limit **
  17  Prefactor     17.503        6.9898        .13244E-06   -.15610E-02
  18  Prefactor     2.5965        2.6405       -.33759E-06    .48611E-02
  19  norm          5.1322        7.0170       -.12985E-06    .50597E-03
  20  Prefactor     7.9012        8.1515       -.25757E-06    .10147E-02
  21  Prefactor     .94369E-08    13.949        .26459E-06** at limit **
  22  Normalizat    .67640        .17007        .17950E-04   -.22698E-03
  23  Prefactor     1.0517        .13257       -.72118E-05   -.13853E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.22045e-10
  Prefactor  = 0
  Prefactor  = 30.8217
  Prefactor  = 1.31437
  Prefactor  = 30.2341
  Prefactor  = 16.8024
  Prefactor  = 0
  Prefactor  = 0.804316
  Prefactor  = 4.44089e-10
  norm       = 1.52496
  Prefactor  = 2.13718e-08
  norm       = 0
  Prefactor  = 28.168
  Prefactor  = 5.55112e-11
  norm       = 7.40359
  Prefactor  = 5.55112e-11
  Prefactor  = 17.5033
  Prefactor  = 2.59654
  norm       = 5.13224
  Prefactor  = 7.90117
  Prefactor  = 9.4369e-09
  Normalizat = 0.676395
  Prefactor  = 1.05169
 **********
 **   18 **HESSE 
 **********

 FCN=   7795.453     FROM HESSE     STATUS=OK           424 CALLS     2443 TOTAL
                     EDM=   .64E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .22204E-09    10.839        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor      .0000        2.9308        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     30.822        241.46        .19998E-03   -1.5597    
   4  Prefactor     1.3144        2.1782        .96146E-03   -1.5685    
   5  Prefactor     30.234        15.218        .18150E-03   -1.5598    
   6  Prefactor     16.802        10.093        .24430E-03   -1.5626    
   7  Prefactor      .0000        2.2340        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .80432        3.0472        .53835E-03   -1.5690    
   9  Prefactor     .44409E-09    6.8875        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.5250        .85323        .86391E-03   -1.5683    
  11  Prefactor     .21372E-07    19.334        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm           .0000        .80124        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     28.168        18.652        .18728E-03   -1.5602    
  14  Prefactor     .55511E-10    .61398        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          7.4036        9.0547        .36834E-03   -1.5654    
  16  Prefactor     .55511E-10    6.8450        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     17.503        7.0168        .23915E-03   -1.5624    
  18  Prefactor     2.5965        2.6469        .63331E-03   -1.5676    
  19  norm          5.1322        7.0201        .44328E-03   -1.5663    
  20  Prefactor     7.9012        8.1594        .35658E-03   -1.5652    
  21  Prefactor     .94369E-08    14.125        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .67640        .15416        .64540E-01   -1.0483    
  23  Prefactor     1.0517        .11596        .39797E-01   -.91026    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.42428e-08
Minuit parameter uncertainties:
  1  0.000101831
  2  1.90297e-07
  3  172.544
  4  2.17824
  5  15.2179
  6  10.0932
  7  1.42729e-05
  8  3.04718
  9  0.000107484
  10  0.85323
  11  0.0012852
  12  4.53078e-06
  13  18.6516
  14  1.02354e-05
  15  9.05472
  16  4.08699e-05
  17  7.01683
  18  2.64691
  19  7.02009
  20  8.15941
  21  0.000729388
  22  0.154261
  23  0.115987
Done.

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

Extracting fit parameters...

4FGL J0354.7-1617
   Spectrum: PowerLaw
273    Prefactor:  2.817e+01  1.865e+01  0.000e+00  1.000e+06 ( 1.000e-13)
274        Index:  2.529e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
275        Scale:  9.177e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
495    Prefactor:  1.052e+00  1.160e-01  0.000e+00  1.000e+01 ( 1.000e+00)
496        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
497        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
494   Normalization:  6.764e-01  1.543e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.60
Ra Dec: 58.678 -16.287
Photon Index (Fixed Index): 2.53 +/- 0.00
Photon Flux (Fixed Index): 5.01e-08 +/- 3.32e-08
Energy Flux (Fixed Index): 1.41e-05 +/- 9.34e-06

TS (Fixed Index): 3.60
Ra Dec: 58.678 -16.287
Photon Flux Upper Limit: 1.17e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.15e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/17545/likelihoodResults_683856001_684115201_4FGL_J0354.7-1617_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) = 7795.10212133
delta logL = 0.350946461016

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7795.09627692
delta logL = 0.356790866894

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.533       1.0000          .0000       .10000E+07
     2 'Index     '    3.1182       1.0000          .0000       10.000    
     3 'Normalizat'    .65145       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0650       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4980E+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=   7795.096     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      288 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.527        25.245        .10499E-04   -.56632E-02
   2  Index         3.1184        1.0314        .50929E-02   -.16544E-03
   3  Normalizat    .65143        .16547        .29044E-03    .38020E-03
   4  Prefactor     1.0650        .13287        .18900E-03    .46747E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.5267
  Index      = 3.11838
  Normalizat = 0.651432
  Prefactor  = 1.06502
 **********
 **   18 **HESSE 
 **********

 FCN=   7795.096     FROM HESSE     STATUS=OK            25 CALLS      313 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.527        19.070        .41996E-06   -1.5632    
   2  Index         3.1184        .78105        .20371E-03   -.38582    
   3  Normalizat    .65143        .16502        .11618E-04   -1.0584    
   4  Prefactor     1.0650        .13249        .37800E-04   -.90592    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.04137e-10
Minuit parameter uncertainties:
  1  19.0701
  2  0.784801
  3  0.165144
  4  0.132534
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/17545': 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) = 7795.09627685
delta logL = 0.356790942184

Extracting fit parameters...

4FGL J0354.7-1617
   Spectrum: PowerLaw
273    Prefactor:  1.453e+01  1.907e+01  0.000e+00  1.000e+06 ( 1.000e-13)
274        Index:  3.118e+00  7.848e-01  0.000e+00  1.000e+01 (-1.000e+00)
275        Scale:  9.177e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
495    Prefactor:  1.065e+00  1.325e-01  0.000e+00  1.000e+01 ( 1.000e+00)
496        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
497        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
494   Normalization:  6.514e-01  1.651e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.40
Ra Dec: 58.678 -16.287
Photon Index (Free Index): 3.12 +/- 0.78
Photon Flux (Free Index): 6.90e-08 +/- 4.31e-08
Energy Flux (Free Index): 1.31e-05 +/- 7.93e-06

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/17545/cmap_HighResolution_683856001_684115201_4FGL_J0354.7-1617_daily_bin1715.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.15e-03', comment='SUCCESS', photon_flux='5.01e-08', energy_flux2='1.31e-05', photon_flux_error='3.32e-08', dlogl='3.57e-01', energy_flux='1.41e-05', photon_flux2='6.90e-08', job_status='DONE', time_completed='2022-09-16 11:14:08.208482', photon_index_error2='0.78', photon_index2='3.12', ts='3.60', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', photon_flux_upper_limit='1.17e-07', energy_flux_error2='7.93e-06', EG='0.68', time_epoch_completed='1663352048.21', return_code='0', job_id='17545', GAL2='1.07', EG2='0.65', return_code2='0', energy_flux_error='9.34e-06', photon_flux_error2='4.31e-08', ts2='4.40', photon_index='2.53' WHERE bin_id='1715' AND source_name='4FGL J0354.7-1617' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 11:14:08 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0041>
Subject: Job 17545: <4FGL_J0354.7-1617_daily_bin1715> in cluster <slac> Done

Job <4FGL_J0354.7-1617_daily_bin1715> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Fri Sep 16 11:00:40 2022
Job was executed on host(s) <bullet0041>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 11:02:20 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:02:20 2022
Terminated at Fri Sep 16 11:14:08 2022
Results reported at Fri Sep 16 11:14:08 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0354.7-1617_daily_bin1715 58.6779 -16.287 683856001 684115201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0354.7-1617 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   674.20 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             333.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   708 sec.
    Turnaround time :                            808 sec.

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

