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


Performing analysis on: 4FGL_J2104.0-3546_daily_bin1735
RA = 316.01, Dec = -35.7678
tmin = 689040001, tmax = 689299201
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='865449', job_status='RUN', time_executed='2022-11-05 00:31:46.895899', time_epoch_executed='1667633506.9' WHERE source_name='4FGL J2104.0-3546' and cadence='daily' and bin_id='1735'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/865449

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/865449/ft1_4FGL_J2104.0-3546_daily_bin1735.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/865449/ft2_4FGL_J2104.0-3546_daily_bin1735.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/865449/ft1_4FGL_J2104.0-3546_daily_bin1735.fits outfile=/scratch/kocevski/865449/ft1_filteredMKT_4FGL_J2104.0-3546_daily_bin1735.fits ra=316.01 dec=-35.7678 rad=12.0 tmin=689040001.0 tmax=689299201.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.65
user 3.44
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/865449/ft2_4FGL_J2104.0-3546_daily_bin1735.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/865449/ft2_4FGL_J2104.0-3546_daily_bin1735.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/865449/ft1_filteredMKT_4FGL_J2104.0-3546_daily_bin1735.fits evtable="EVENTS" outfile="/scratch/kocevski/865449/ft1_filtered_4FGL_J2104.0-3546_daily_bin1735.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.49
user 0.32
sys 0.16

Number of photons that the gtmktime cut: 832

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/865449/ft1_filtered_4FGL_J2104.0-3546_daily_bin1735.fits" evtable="EVENTS" scfile=/scratch/kocevski/865449/ft2_4FGL_J2104.0-3546_daily_bin1735.fits sctable="SC_DATA" outfile=/scratch/kocevski/865449/ltcube_689040001_689299201_4FGL_J2104.0-3546_daily_bin1735.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/865449/ft2_4FGL_J2104.0-3546_daily_bin1735.fits
.....................!
real 11.85
user 11.50
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/865449/ft1_filtered_4FGL_J2104.0-3546_daily_bin1735.fits evtable="EVENTS" scfile=/scratch/kocevski/865449/ft2_4FGL_J2104.0-3546_daily_bin1735.fits sctable="SC_DATA" expcube=/scratch/kocevski/865449/ltcube_689040001_689299201_4FGL_J2104.0-3546_daily_bin1735.fits outfile=/scratch/kocevski/865449/expmap_689040001_689299201_4FGL_J2104.0-3546_daily_bin1735.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/865449/ltcube_689040001_689299201_4FGL_J2104.0-3546_daily_bin1735.fits
.....................!
real 189.98
user 184.13
sys 5.53

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 159 point sources and 0 extended sources

Setting source of interest to:
4FGL J2104.0-3546 @ 316.01 -35.7678

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/865449/ft1_filtered_4FGL_J2104.0-3546_daily_bin1735.fits scfile=/scratch/kocevski/865449/ft2_4FGL_J2104.0-3546_daily_bin1735.fits outfile=/scratch/kocevski/865449/cmap_689040001_689299201_4FGL_J2104.0-3546_daily_bin1735.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=316.01 yref=-35.7678 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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/865449/ft1_filtered_4FGL_J2104.0-3546_daily_bin1735.fits scfile=/scratch/kocevski/865449/ft2_4FGL_J2104.0-3546_daily_bin1735.fits outfile=/scratch/kocevski/865449/cmap_HighResolution_689040001_689299201_4FGL_J2104.0-3546_daily_bin1735.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=316.01 yref=-35.7678 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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/865449/ft1_filtered_4FGL_J2104.0-3546_daily_bin1735.fits evtable="EVENTS" scfile=/scratch/kocevski/865449/ft2_4FGL_J2104.0-3546_daily_bin1735.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/865449/Model_4FGL_J2104.0-3546_daily_bin1735.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/865449/ft1_filtered_4FGL_J2104.0-3546_daily_bin1735.fits.....................!
real 68.40
user 67.03
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/865449/ft1_filtered_4FGL_J2104.0-3546_daily_bin1735.fits', '/scratch/kocevski/865449/ft2_4FGL_J2104.0-3546_daily_bin1735.fits', expMap='/scratch/kocevski/865449/expmap_689040001_689299201_4FGL_J2104.0-3546_daily_bin1735.fits', expCube='/scratch/kocevski/865449/ltcube_689040001_689299201_4FGL_J2104.0-3546_daily_bin1735.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/865449/Model_4FGL_J2104.0-3546_daily_bin1735.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2104.0-3546'

4FGL J2104.0-3546
   Spectrum: PowerLaw
274    Prefactor:  6.791e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
275        Index:  2.368e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
276        Scale:  9.926e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/865449/ft1_filtered_4FGL_J2104.0-3546_daily_bin1735.fits
Spacecraft file(s): /scratch/kocevski/865449/ft2_4FGL_J2104.0-3546_daily_bin1735.fits
Exposure map: /scratch/kocevski/865449/expmap_689040001_689299201_4FGL_J2104.0-3546_daily_bin1735.fits
Exposure cube: /scratch/kocevski/865449/ltcube_689040001_689299201_4FGL_J2104.0-3546_daily_bin1735.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/865449/Model_4FGL_J2104.0-3546_daily_bin1735.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) = 8982.04941861

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .23870E-08   1.0000          .0000       .10000E+07
     2 'Prefactor '    .11102E-09   1.0000          .0000       .10000E+07
     3 'norm      '     .0000       1.0000          .0000       .10000E+07
     4 'Prefactor '    .55511E-10   1.0000          .0000       .10000E+07
     5 'Prefactor '    129.01       1.0000          .0000       .10000E+07
     6 'norm      '    27.568       1.0000          .0000       .10000E+07
     7 'norm      '    .57750E-01   1.0000          .0000       .10000E+07
     8 'Prefactor '    .31641E-08   1.0000          .0000       .10000E+07
     9 'Prefactor '    .38858E-09   1.0000          .0000       .10000E+07
    10 'Prefactor '    .10809E-05   1.0000          .0000       .10000E+07
    11 'Prefactor '    10.770       1.0000          .0000       .10000E+07
    12 'Prefactor '    .26307E-06   1.0000          .0000       .10000E+07
    13 'norm      '    .55511E-10   1.0000          .0000       .10000E+07
    14 'norm      '    14.863       1.0000          .0000       .10000E+07
    15 'Prefactor '    3.6471       1.0000          .0000       .10000E+07
    16 'Prefactor '    .10702       1.0000          .0000       .10000E+07
    17 'norm      '    .25829E-05   1.0000          .0000       .10000E+07
    18 'norm      '    .96627E-01   1.0000          .0000       .10000E+07
    19 'Normalizat'    .59127       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1242       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5190E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8982.045     FROM MIGRAD    STATUS=CONVERGED    167 CALLS     1867 TOTAL
                     EDM=   .26E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .77716E-09    5.4790       -.14864E-06** at limit **
   2  Prefactor     .15904E-06    8.1967        .21789E-06** at limit **
   3  norm          .61062E-09    6.6004       -.63443E-07** at limit **
   4  Prefactor      .0000        1.8471        .47558E-07** at limit **
   5  Prefactor     129.04        4.6033       -.63338E-08    .10122    
   6  norm          27.568        2.0607        .16059E-08   -.87426E-03
   7  norm          .58610E-01    2.9217       -.16173E-06** at limit **
   8  Prefactor     .10653E-06    5.6444        .23274E-08** at limit **
   9  Prefactor     .14427E-06    5.2727        .18218E-06** at limit **
  10  Prefactor     .23742E-06    5.5698        .51738E-08** at limit **
  11  Prefactor     10.768        7.3831       -.56444E-07   -.96333E-02
  12  Prefactor     .34417E-08    4.4563        .20752E-06** at limit **
  13  norm           .0000        2.6106        .57285E-08** at limit **
  14  norm          14.863        5.2739        .82339E-08   -.55660E-03
  15  Prefactor     3.6571        7.8973        .71977E-07    .32962E-02
  16  Prefactor     .60963E-01    90.057       -.13889E-06** at limit **
  17  norm          .48850E-08    4.6603       -.87762E-07** at limit **
  18  norm          .81003E-01    9.7206       -.52247E-06** at limit **
  19  Normalizat    .59142        .20679        .52322E-05    .14300E-04
  20  Prefactor     1.1241        .10709       -.18615E-05   -.93064E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 7.77156e-10
  Prefactor  = 1.59039e-07
  norm       = 6.10623e-10
  Prefactor  = 0
  Prefactor  = 129.037
  norm       = 27.5677
  norm       = 0.05861
  Prefactor  = 1.06526e-07
  Prefactor  = 1.44273e-07
  Prefactor  = 2.37421e-07
  Prefactor  = 10.7676
  Prefactor  = 3.44169e-09
  norm       = 0
  norm       = 14.8632
  Prefactor  = 3.65706
  Prefactor  = 0.060963
  norm       = 4.88498e-09
  norm       = 0.081003
  Normalizat = 0.591421
  Prefactor  = 1.12413
 **********
 **   18 **HESSE 
 **********

 FCN=   8982.045     FROM HESSE     STATUS=OK           347 CALLS     2214 TOTAL
                     EDM=   .41E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .77716E-09    5.5192        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .15904E-06    13.893        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .61062E-09    6.6446        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor      .0000        1.8420        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     129.04        66.139        .88047E-04   -1.5481    
   6  norm          27.568        21.690        .19049E-03   -1.5603    
   7  norm          .58610E-01    .71757        .29022E-02   -1.5713    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10653E-06    10.045        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .14427E-06    12.513        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .23742E-06    13.195        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     10.768        7.3922        .30505E-03   -1.5642    
  12  Prefactor     .34417E-08    13.176        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm           .0000        2.6052        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          14.863        5.3045        .25954E-03   -1.5631    
  15  Prefactor     3.6571        8.2354        .52873E-03   -1.5670    
  16  Prefactor     .60963E-01    4.2884        .11028E-01   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .48850E-08    11.256        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .81003E-01    1.1636        .53745E-02   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .59142        .18950        .89540E-01   -1.0835    
  20  Prefactor     1.1241        .96466E-01    .36733E-01   -.88699    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.05862e-07
Minuit parameter uncertainties:
  1  0.000130033
  2  0.00297299
  3  0.000128604
  4  4.284e-06
  5  66.1389
  6  21.69
  7  0.410154
  8  0.00206906
  9  0.00268706
  10  0.00354009
  11  7.39218
  12  0.00042661
  13  1.36269e-05
  14  5.30451
  15  8.23544
  16  1.02261
  17  0.000468943
  18  0.614014
  19  0.189706
  20  0.0964813
Done.

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

Extracting fit parameters...

4FGL J2104.0-3546
   Spectrum: PowerLaw
274    Prefactor:  1.443e-07  2.687e-03  0.000e+00  1.000e+06 ( 1.000e-13)
275        Index:  2.368e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
276        Scale:  9.926e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
516    Prefactor:  1.124e+00  9.648e-02  0.000e+00  1.000e+01 ( 1.000e+00)
517        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
518        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
515   Normalization:  5.914e-01  1.897e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 316.010 -35.768
Photon Flux Upper Limit: 6.78e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.23e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/865449/likelihoodResults_689040001_689299201_4FGL_J2104.0-3546_daily_bin1735.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) = 8982.08351519
delta logL = -0.0386556804824

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8981.2281508
delta logL = 0.816708706197

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8981.228     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      262 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .35098E-01    .42980        .33692E-03** at limit **
   2  Index         5.9014        2.4457        .11924        .54737E-03
   3  Normalizat    .52533        .37957E-01    .94703E-01    .30810E-03
   4  Prefactor     1.1421        .20542E-01    .36170E-01    .40918E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0350975
  Index      = 5.90142
  Normalizat = 0.525329
  Prefactor  = 1.14211
 **********
 **   18 **HESSE 
 **********

 FCN=   8981.228     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      295 TOTAL
                     EDM=   .73E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .35098E-01    1.2849        .15450E-04   -1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         5.9014        7.5145        .61330E-02    .18128    
   3  Normalizat    .52533        .14267        .41966E-03   -1.1126    
   4  Prefactor     1.1421        .76312E-01    .15787E-03   -.88132    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.29431e-10
Minuit parameter uncertainties:
  1  0.424725
  2  5.66766
  3  0.142769
  4  0.0763194
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/865449': 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) = 8981.22814848
delta logL = 0.816711031595

Extracting fit parameters...

4FGL J2104.0-3546
   Spectrum: PowerLaw
274    Prefactor:  3.510e-02  4.247e-01  0.000e+00  1.000e+06 ( 1.000e-13)
275        Index:  5.901e+00  5.668e+00  0.000e+00  1.000e+01 (-1.000e+00)
276        Scale:  9.926e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
516    Prefactor:  1.142e+00  7.632e-02  0.000e+00  1.000e+01 ( 1.000e+00)
517        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
518        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
515   Normalization:  5.253e-01  1.428e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.73
Ra Dec: 316.010 -35.768
Photon Index (Free Index): 5.90 +/- 5.67
Photon Flux (Free Index): 5.51e-08 +/- 4.61e-08
Energy Flux (Free Index): 6.90e-06 +/- 6.62e-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/865449/cmap_HighResolution_689040001_689299201_4FGL_J2104.0-3546_daily_bin1735.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.23e-03', comment='SUCCESS', energy_flux2='6.90e-06', dlogl='8.17e-01', photon_flux2='5.51e-08', job_status='DONE', time_completed='2022-11-05 00:42:28.798310', photon_index_error2='5.67', photon_index2='5.90', ts='-0.00', fit_tolerance='1e-08', GAL='1.12', photon_index_error='0.00', photon_flux_upper_limit='6.78e-08', energy_flux_error2='6.62e-06', EG='0.59', time_epoch_completed='1667634148.8', return_code='0', job_id='865449', GAL2='1.14', EG2='0.53', return_code2='102', photon_flux_error2='4.61e-08', ts2='1.73', photon_index='2.37' WHERE bin_id='1735' AND source_name='4FGL J2104.0-3546' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Nov  5 00:42:28 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0197>
Subject: Job 865449: <4FGL_J2104.0-3546_daily_bin1735> in cluster <slac> Done

Job <4FGL_J2104.0-3546_daily_bin1735> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Nov  5 00:30:38 2022
Job was executed on host(s) <bullet0197>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Nov  5 00:30:38 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Nov  5 00:30:38 2022
Terminated at Sat Nov  5 00:42:29 2022
Results reported at Sat Nov  5 00:42:29 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2104.0-3546_daily_bin1735 316.01 -35.7678 689040001 689299201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2104.0-3546 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   644.06 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             329.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   711 sec.
    Turnaround time :                            711 sec.

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

