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


Performing analysis on: 4FGL_J2104.0-3546_daily_bin1732
RA = 316.01, Dec = -35.7678
tmin = 688262401, tmax = 688521601
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='647499', job_status='RUN', time_executed='2022-10-27 00:36:34.520171', time_epoch_executed='1666856194.52' WHERE source_name='4FGL J2104.0-3546' and cadence='daily' and bin_id='1732'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/647499

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/647499/ft1_4FGL_J2104.0-3546_daily_bin1732.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/647499/ft2_4FGL_J2104.0-3546_daily_bin1732.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/647499/ft1_4FGL_J2104.0-3546_daily_bin1732.fits outfile=/scratch/kocevski/647499/ft1_filteredMKT_4FGL_J2104.0-3546_daily_bin1732.fits ra=316.01 dec=-35.7678 rad=12.0 tmin=688262401.0 tmax=688521601.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.49
user 3.28
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/647499/ft2_4FGL_J2104.0-3546_daily_bin1732.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/647499/ft1_filteredMKT_4FGL_J2104.0-3546_daily_bin1732.fits evtable="EVENTS" outfile="/scratch/kocevski/647499/ft1_filtered_4FGL_J2104.0-3546_daily_bin1732.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.30
sys 0.18

Number of photons that the gtmktime cut: 613

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/647499/ft1_filtered_4FGL_J2104.0-3546_daily_bin1732.fits" evtable="EVENTS" scfile=/scratch/kocevski/647499/ft2_4FGL_J2104.0-3546_daily_bin1732.fits sctable="SC_DATA" outfile=/scratch/kocevski/647499/ltcube_688262401_688521601_4FGL_J2104.0-3546_daily_bin1732.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/647499/ft2_4FGL_J2104.0-3546_daily_bin1732.fits
.....................!
real 11.90
user 11.51
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/647499/ft1_filtered_4FGL_J2104.0-3546_daily_bin1732.fits evtable="EVENTS" scfile=/scratch/kocevski/647499/ft2_4FGL_J2104.0-3546_daily_bin1732.fits sctable="SC_DATA" expcube=/scratch/kocevski/647499/ltcube_688262401_688521601_4FGL_J2104.0-3546_daily_bin1732.fits outfile=/scratch/kocevski/647499/expmap_688262401_688521601_4FGL_J2104.0-3546_daily_bin1732.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/647499/ltcube_688262401_688521601_4FGL_J2104.0-3546_daily_bin1732.fits
.....................!
real 191.14
user 186.01
sys 4.80

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/647499/ft1_filtered_4FGL_J2104.0-3546_daily_bin1732.fits scfile=/scratch/kocevski/647499/ft2_4FGL_J2104.0-3546_daily_bin1732.fits outfile=/scratch/kocevski/647499/cmap_688262401_688521601_4FGL_J2104.0-3546_daily_bin1732.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/647499/ft1_filtered_4FGL_J2104.0-3546_daily_bin1732.fits scfile=/scratch/kocevski/647499/ft2_4FGL_J2104.0-3546_daily_bin1732.fits outfile=/scratch/kocevski/647499/cmap_HighResolution_688262401_688521601_4FGL_J2104.0-3546_daily_bin1732.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.57
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/647499/ft1_filtered_4FGL_J2104.0-3546_daily_bin1732.fits evtable="EVENTS" scfile=/scratch/kocevski/647499/ft2_4FGL_J2104.0-3546_daily_bin1732.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/647499/Model_4FGL_J2104.0-3546_daily_bin1732.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/647499/ft1_filtered_4FGL_J2104.0-3546_daily_bin1732.fits.....................!
real 57.08
user 55.81
sys 1.15

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/647499/ft1_filtered_4FGL_J2104.0-3546_daily_bin1732.fits', '/scratch/kocevski/647499/ft2_4FGL_J2104.0-3546_daily_bin1732.fits', expMap='/scratch/kocevski/647499/expmap_688262401_688521601_4FGL_J2104.0-3546_daily_bin1732.fits', expCube='/scratch/kocevski/647499/ltcube_688262401_688521601_4FGL_J2104.0-3546_daily_bin1732.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/647499/Model_4FGL_J2104.0-3546_daily_bin1732.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/647499/ft1_filtered_4FGL_J2104.0-3546_daily_bin1732.fits
Spacecraft file(s): /scratch/kocevski/647499/ft2_4FGL_J2104.0-3546_daily_bin1732.fits
Exposure map: /scratch/kocevski/647499/expmap_688262401_688521601_4FGL_J2104.0-3546_daily_bin1732.fits
Exposure cube: /scratch/kocevski/647499/ltcube_688262401_688521601_4FGL_J2104.0-3546_daily_bin1732.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/647499/Model_4FGL_J2104.0-3546_daily_bin1732.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) = 6766.67464787

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.685       1.0000          .0000       .10000E+07
     2 'Prefactor '    10.099       1.0000          .0000       .10000E+07
     3 'norm      '    .15484E-01   1.0000          .0000       .10000E+07
     4 'Prefactor '    .13581E-02   1.0000          .0000       .10000E+07
     5 'Prefactor '    .74630E-04   1.0000          .0000       .10000E+07
     6 'norm      '    .42341E-03   1.0000          .0000       .10000E+07
     7 'norm      '    .23070E-06   1.0000          .0000       .10000E+07
     8 'Prefactor '    .34176E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    .34922E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    .12093E-02   1.0000          .0000       .10000E+07
    11 'Prefactor '    .31482E-04   1.0000          .0000       .10000E+07
    12 'Prefactor '    8.6080       1.0000          .0000       .10000E+07
    13 'norm      '    4.8264       1.0000          .0000       .10000E+07
    14 'norm      '    11.617       1.0000          .0000       .10000E+07
    15 'Prefactor '    4.2521       1.0000          .0000       .10000E+07
    16 'Prefactor '    .78470E-03   1.0000          .0000       .10000E+07
    17 'norm      '    .14455E-06   1.0000          .0000       .10000E+07
    18 'norm      '    4.0882       1.0000          .0000       .10000E+07
    19 'Normalizat'    1.4504       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .93433       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=   6766.620     FROM MIGRAD    STATUS=CONVERGED    184 CALLS     1243 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.853        12.394       -.34299E-05   -.24362E-01
   2  Prefactor     17.642        50.621       -.30218E-06    .21262E-01
   3  norm          .14549E-06    231.76        .14229E-05** at limit **
   4  Prefactor     .31641E-07    59.029       -.71487E-06** at limit **
   5  Prefactor     .34498E-04    215.93       -.22334E-05** at limit **
   6  norm           .0000        11.256       -.15325E-06** at limit **
   7  norm           .0000        1.0032        .80358E-08** at limit **
   8  Prefactor     .16919E-03    24.659        .53767E-06** at limit **
   9  Prefactor     .12328E-03    49.132       -.11472E-05** at limit **
  10  Prefactor     .55511E-10    4.0015        .80513E-07** at limit **
  11  Prefactor     .61062E-09    7.5564        .18260E-06** at limit **
  12  Prefactor     8.5472        23.452        .13703E-05    .77324E-02
  13  norm          4.8174        6.2002       -.65341E-07   -.11384E-02
  14  norm          11.718        5.6233       -.98129E-07   -.13115E-02
  15  Prefactor     4.1907        7.3345        .48632E-07    .24437E-02
  16  Prefactor      .0000        3.6261        .34523E-07** at limit **
  17  norm          .61062E-09    6.4200       -.43578E-06** at limit **
  18  norm          4.0810        6.5369        .29919E-07    .10206E-02
  19  Normalizat    1.4504        .28280       -.11635E-05   -.20612E-03
  20  Prefactor     .93256        .13658        .37457E-05   -.37604E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 10.853
  Prefactor  = 17.6419
  norm       = 1.45495e-07
  Prefactor  = 3.16414e-08
  Prefactor  = 3.44982e-05
  norm       = 0
  norm       = 0
  Prefactor  = 0.000169195
  Prefactor  = 0.000123276
  Prefactor  = 5.55112e-11
  Prefactor  = 6.10623e-10
  Prefactor  = 8.54724
  norm       = 4.81735
  norm       = 11.718
  Prefactor  = 4.19067
  Prefactor  = 0
  norm       = 6.10623e-10
  norm       = 4.08104
  Normalizat = 1.45045
  Prefactor  = 0.93256
 **********
 **   18 **HESSE 
 **********

 FCN=   6766.620     FROM HESSE     STATUS=OK           343 CALLS     1586 TOTAL
                     EDM=   .19E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.853        12.414        .30626E-03   -1.5642    
   2  Prefactor     17.642        64.298        .31506E-03   -1.5624    
   3  norm          .14549E-06    11.413        .10117E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .31641E-07    5.1451        .59613E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .34498E-04    237.06        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm           .0000        11.227        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm           .0000        1.0055        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .16919E-03    216.29        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .12328E-03    141.37        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .55511E-10    3.9994        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .61062E-09    7.5463        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     8.5472        23.454        .34142E-03   -1.5649    
  13  norm          4.8174        6.2067        .45768E-03   -1.5664    
  14  norm          11.718        5.6364        .29366E-03   -1.5639    
  15  Prefactor     4.1907        7.3194        .48839E-03   -1.5667    
  16  Prefactor      .0000        3.6559        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .61062E-09    6.4249        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          4.0810        6.5297        .49838E-03   -1.5668    
  19  Normalizat    1.4504        .23964        .72991E-01   -.79180    
  20  Prefactor     .93256        .11585        .45441E-01   -.95012    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.86687e-06
Minuit parameter uncertainties:
  1  12.4143
  2  64.3003
  3  0.00257731
  4  0.000806637
  5  0.180875
  6  3.30112e-05
  7  1.20017e-06
  8  0.382615
  9  0.264029
  10  2.90848e-05
  11  0.00013464
  12  23.4539
  13  6.2067
  14  5.63641
  15  7.31941
  16  1.18481e-05
  17  0.000125894
  18  6.5297
  19  0.239828
  20  0.115882
Done.

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

Extracting fit parameters...

4FGL J2104.0-3546
   Spectrum: PowerLaw
274    Prefactor:  1.233e-04  2.640e-01  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:  9.326e-01  1.159e-01  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:  1.450e+00  2.398e-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: 1.12e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.62e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/647499/likelihoodResults_688262401_688521601_4FGL_J2104.0-3546_daily_bin1732.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) = 6766.62386273
delta logL = -0.00398339661297

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6766.58824633
delta logL = 0.0316329989155

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.6107       1.0000          .0000       .10000E+07
     2 'Index     '    3.0400       1.0000          .0000       10.000    
     3 'Normalizat'    1.4413       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93285       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6766.588     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      285 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.6107        23.096        .12621E-03    .19423E-02
   2  Index         3.0402        2.1445        .75990E-02    .29383E-05
   3  Normalizat    1.4413        .27205        .32381E-03    .17309E-04
   4  Prefactor     .93285        .13316        .19216E-03    .32776E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.61074
  Index      = 3.04019
  Normalizat = 1.44132
  Prefactor  = 0.932849
 **********
 **   18 **HESSE 
 **********

 FCN=   6766.588     FROM HESSE     STATUS=OK            27 CALLS      312 TOTAL
                     EDM=   .13E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.6107        17.117        .25242E-04   -1.5676    
   2  Index         3.0402        1.8665        .30396E-03   -.40276    
   3  Normalizat    1.4413        .27230        .12952E-04   -.79441    
   4  Prefactor     .93285        .13326        .76864E-05   -.95003    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.29475e-12
Minuit parameter uncertainties:
  1  13.3699
  2  1.92193
  3  0.272575
  4  0.133307
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/647499': 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) = 6766.58824632
delta logL = 0.0316330055866

Extracting fit parameters...

4FGL J2104.0-3546
   Spectrum: PowerLaw
274    Prefactor:  2.611e+00  1.337e+01  0.000e+00  1.000e+06 ( 1.000e-13)
275        Index:  3.040e+00  1.922e+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:  9.328e-01  1.333e-01  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:  1.441e+00  2.726e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 316.010 -35.768

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/647499/cmap_HighResolution_688262401_688521601_4FGL_J2104.0-3546_daily_bin1732.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.62e-03', job_status='DONE', photon_flux_upper_limit='1.12e-07', time_completed='2022-10-27 00:45:26.276578', job_id='647499', GAL2='0.93', fit_tolerance='1e-08', EG2='1.44', EG='1.45', time_epoch_completed='1666856726.28', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='3.16e-02', ts2='0.06', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='1732' AND source_name='4FGL J2104.0-3546' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Oct 27 00:45:26 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0083>
Subject: Job 647499: <4FGL_J2104.0-3546_daily_bin1732> in cluster <slac> Done

Job <4FGL_J2104.0-3546_daily_bin1732> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Thu Oct 27 00:35:31 2022
Job was executed on host(s) <bullet0083>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Oct 27 00:35:32 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Oct 27 00:35:32 2022
Terminated at Thu Oct 27 00:45:27 2022
Results reported at Thu Oct 27 00:45:27 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2104.0-3546_daily_bin1732 316.01 -35.7678 688262401 688521601 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 :                                   534.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             369.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   594 sec.
    Turnaround time :                            596 sec.

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

