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 27 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 make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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


Performing analysis on: 4FGL_J2104.0-3546_daily_bin1677
RA = 316.01, Dec = -35.7678
tmin = 674006401, tmax = 674265601
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='170424', job_status='RUN', time_executed='2022-05-15 01:09:22.733592', time_epoch_executed='1652602162.73' WHERE source_name='4FGL J2104.0-3546' and cadence='daily' and bin_id='1677'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/170424

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/170424/ft1_4FGL_J2104.0-3546_daily_bin1677.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/170424/ft2_4FGL_J2104.0-3546_daily_bin1677.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/170424/ft1_4FGL_J2104.0-3546_daily_bin1677.fits outfile=/scratch/kocevski/170424/ft1_filteredMKT_4FGL_J2104.0-3546_daily_bin1677.fits ra=316.01 dec=-35.7678 rad=12.0 tmin=674006401.0 tmax=674265601.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 4.59
user 4.33
sys 0.23

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

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

Number of photons that the gtmktime cut: 665

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/170424/ft1_filtered_4FGL_J2104.0-3546_daily_bin1677.fits" evtable="EVENTS" scfile=/scratch/kocevski/170424/ft2_4FGL_J2104.0-3546_daily_bin1677.fits sctable="SC_DATA" outfile=/scratch/kocevski/170424/ltcube_674006401_674265601_4FGL_J2104.0-3546_daily_bin1677.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/170424/ft2_4FGL_J2104.0-3546_daily_bin1677.fits
.....................!
real 13.62
user 13.20
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/170424/ft1_filtered_4FGL_J2104.0-3546_daily_bin1677.fits evtable="EVENTS" scfile=/scratch/kocevski/170424/ft2_4FGL_J2104.0-3546_daily_bin1677.fits sctable="SC_DATA" expcube=/scratch/kocevski/170424/ltcube_674006401_674265601_4FGL_J2104.0-3546_daily_bin1677.fits outfile=/scratch/kocevski/170424/expmap_674006401_674265601_4FGL_J2104.0-3546_daily_bin1677.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/170424/ltcube_674006401_674265601_4FGL_J2104.0-3546_daily_bin1677.fits
.....................!
real 191.61
user 185.79
sys 5.23

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/170424/ft1_filtered_4FGL_J2104.0-3546_daily_bin1677.fits scfile=/scratch/kocevski/170424/ft2_4FGL_J2104.0-3546_daily_bin1677.fits outfile=/scratch/kocevski/170424/cmap_674006401_674265601_4FGL_J2104.0-3546_daily_bin1677.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.55
user 0.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/170424/ft1_filtered_4FGL_J2104.0-3546_daily_bin1677.fits scfile=/scratch/kocevski/170424/ft2_4FGL_J2104.0-3546_daily_bin1677.fits outfile=/scratch/kocevski/170424/cmap_HighResolution_674006401_674265601_4FGL_J2104.0-3546_daily_bin1677.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.59
user 0.40
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/170424/ft1_filtered_4FGL_J2104.0-3546_daily_bin1677.fits evtable="EVENTS" scfile=/scratch/kocevski/170424/ft2_4FGL_J2104.0-3546_daily_bin1677.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/170424/Model_4FGL_J2104.0-3546_daily_bin1677.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/170424/ft1_filtered_4FGL_J2104.0-3546_daily_bin1677.fits.....................!
real 62.25
user 60.89
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/170424/ft1_filtered_4FGL_J2104.0-3546_daily_bin1677.fits', '/scratch/kocevski/170424/ft2_4FGL_J2104.0-3546_daily_bin1677.fits', expMap='/scratch/kocevski/170424/expmap_674006401_674265601_4FGL_J2104.0-3546_daily_bin1677.fits', expCube='/scratch/kocevski/170424/ltcube_674006401_674265601_4FGL_J2104.0-3546_daily_bin1677.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/170424/Model_4FGL_J2104.0-3546_daily_bin1677.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  1.000e-04  1.000e+04 ( 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/170424/ft1_filtered_4FGL_J2104.0-3546_daily_bin1677.fits
Spacecraft file(s): /scratch/kocevski/170424/ft2_4FGL_J2104.0-3546_daily_bin1677.fits
Exposure map: /scratch/kocevski/170424/expmap_674006401_674265601_4FGL_J2104.0-3546_daily_bin1677.fits
Exposure cube: /scratch/kocevski/170424/ltcube_674006401_674265601_4FGL_J2104.0-3546_daily_bin1677.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/170424/Model_4FGL_J2104.0-3546_daily_bin1677.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) = 7164.48956427

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    194.68       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .11042E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.6288       1.0000         .10000E-03   10000.    
     7 'Prefactor '    38.165       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.6552       1.0000         .10000E-03   10000.    
    11 'Prefactor '    35.821       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.5388       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    8.3025       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.2665       1.0000         .10000E-03   10000.    
    20 'norm      '    .12546E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.6085       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .96929       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7164.458     FROM MIGRAD    STATUS=CONVERGED    521 CALLS     3022 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     194.71        90.921       -.31183E-05   -.28970E-03
   2  norm          .10000E-03    3.8202       -.63910E-08** at limit **
   3  Prefactor     .10000E-03    21.040       -.29638E-06** at limit **
   4  norm          .10017E-03    23.397       -.52137E-05** at limit **
   5  Prefactor     .10000E-03    9.6950       -.10224E-05** at limit **
   6  Prefactor     3.6296        5.9602       -.29598E-06   -.54203E-04
   7  Prefactor     38.175        90.222       -.25640E-05   -.37288E-04
   8  Prefactor     .10002E-03    25.943        .54630E-05** at limit **
   9  norm          .10000E-03    9.3247        .75911E-06** at limit **
  10  norm          1.6552        1.5525       -.13573E-07   -.70607E-05
  11  Prefactor     35.826        29.225       -.37294E-06   -.11507E-04
  12  Prefactor     .10001E-03    37.293       -.49241E-05** at limit **
  13  Prefactor     5.5392        7.3161        .26340E-06    .86760E-03
  14  Prefactor     .10000E-03    4.9708       -.53075E-07** at limit **
  15  Prefactor     .10000E-03    13.889        .13306E-05** at limit **
  16  norm          .10000E-03    2.7715       -.19887E-07** at limit **
  17  norm          8.3027        6.3699        .93357E-08    .95748E-04
  18  Prefactor     .10000E-03    2.8065       -.15960E-07** at limit **
  19  Prefactor     1.2666        4.7410       -.34837E-07    .18736E-03
  20  norm          .10003E-03    12.815        .55373E-05** at limit **
  21  norm          .10000E-03    3.4472       -.37983E-07** at limit **
  22  Normalizat    1.6085        .25592        .40534E-06    .23038E-04
  23  Prefactor     .96928        .12206        .39267E-06    .18609E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 194.707
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100169
  Prefactor  = 0.000100001
  Prefactor  = 3.62962
  Prefactor  = 38.1747
  Prefactor  = 0.000100016
  norm       = 0.0001
  norm       = 1.65524
  Prefactor  = 35.8259
  Prefactor  = 0.000100013
  Prefactor  = 5.53922
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 8.30266
  Prefactor  = 0.0001
  Prefactor  = 1.26659
  norm       = 0.000100033
  norm       = 0.0001
  Normalizat = 1.60849
  Prefactor  = 0.969282
 **********
 **   18 **HESSE 
 **********

 FCN=   7164.458     FROM HESSE     STATUS=OK           366 CALLS     3388 TOTAL
                     EDM=   .56E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     194.71        92.491        .14476E-03   -1.2908    
   2  norm          .10000E-03    3.8270        .16157E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    21.050        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10017E-03    108.23        .63660E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    9.7414        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.6296        5.9481        .21209E-03   -1.5327    
   7  Prefactor     38.175        90.400        .64878E-04   -1.4471    
   8  Prefactor     .10002E-03    27.343        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    9.3561        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.6552        1.5584        .99267E-04   -1.5451    
  11  Prefactor     35.826        29.283        .66959E-04   -1.4510    
  12  Prefactor     .10001E-03    38.732        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.5392        7.5621        .85356E-03   -1.5237    
  14  Prefactor     .10000E-03    5.0157        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    13.974        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.7722        .13762E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          8.3027        6.3711        .13913E-03   -1.5132    
  18  Prefactor     .10000E-03    2.8131        .13847E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.2666        4.7059        .34844E-03   -1.5483    
  20  norm          .10003E-03    18.377        .32105E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    3.4956        .15343E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.6085        .29715        .33645E-03   -.74774    
  23  Prefactor     .96928        .14237        .20421E-03   -.93761    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.59419e-09
Minuit parameter uncertainties:
  1  92.5597
  2  3.46461e-08
  3  6.30937e-05
  4  0.00857559
  5  0.00014307
  6  5.94906
  7  90.7265
  8  0.00132399
  9  0.000106387
  10  1.55848
  11  29.2952
  12  0.0014199
  13  7.56343
  14  1.09935e-05
  15  0.000220847
  16  2.13165e-06
  17  6.37158
  18  4.93284e-06
  19  4.70724
  20  0.00155607
  21  1.12218e-05
  22  0.29748
  23  0.142423
Done.

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

Extracting fit parameters...

4FGL J2104.0-3546
   Spectrum: PowerLaw
274    Prefactor:  1.000e-04  1.420e-03  1.000e-04  1.000e+04 ( 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.693e-01  1.424e-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.608e+00  2.975e-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.10e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.49e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/170424/likelihoodResults_674006401_674265601_4FGL_J2104.0-3546_daily_bin1677.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) = 7164.45798972
delta logL = -0.000122953961181

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7164.45786774
delta logL = -9.75567672867e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5885       1.0000          .0000       10.000    
     3 'Normalizat'    1.6085       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96928       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7164.458     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      282 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11013E-03    14.653        .18142E-01** at limit **
   2  Index         2.4533        5.9415        .50000        .19493E-04
   3  Normalizat    1.6085        .46298E-02    .33646E-03    .18186E-03
   4  Prefactor     .96928        .22718E-02    .20421E-03    .30799E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000110129
  Index      = 2.45326
  Normalizat = 1.60849
  Prefactor  = 0.969281
 **********
 **   18 **HESSE 
 **********

 FCN=   7164.458     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      311 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11013E-03    411.95        .72569E-03   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4533        5.8917        .50000       -.53443    
   3  Normalizat    1.6085        .24686E-01    .67291E-04   -.74774    
   4  Prefactor     .96928        .12114E-01    .40842E-04   -.93761    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.77397e-08
Minuit parameter uncertainties:
  1  0.130094
  2  439.277
  3  0.0246867
  4  0.0121137
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/170424': 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) = 7164.45786724
delta logL = -4.76887180412e-07

Extracting fit parameters...

4FGL J2104.0-3546
   Spectrum: PowerLaw
274    Prefactor:  1.101e-04  1.301e-01  1.000e-04  1.000e+04 ( 1.000e-13)
275        Index:  2.453e+00  4.393e+02  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.693e-01  1.211e-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:  1.608e+00  2.469e-02  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/170424/cmap_HighResolution_674006401_674265601_4FGL_J2104.0-3546_daily_bin1677.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.49e-03', job_status='DONE', photon_flux_upper_limit='1.10e-07', time_completed='2022-05-15 01:21:32.053288', job_id='170424', GAL2='0.97', fit_tolerance='1e-08', EG2='1.61', EG='1.61', time_epoch_completed='1652602892.05', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='-4.77e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='1677' AND source_name='4FGL J2104.0-3546' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun May 15 01:21:32 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0058>
Subject: Job 170424: <4FGL_J2104.0-3546_daily_bin1677> in cluster <slac> Done

Job <4FGL_J2104.0-3546_daily_bin1677> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun May 15 01:05:23 2022
Job was executed on host(s) <bullet0058>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun May 15 01:08:47 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun May 15 01:08:47 2022
Terminated at Sun May 15 01:21:33 2022
Results reported at Sun May 15 01:21:33 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2104.0-3546_daily_bin1677 316.01 -35.7678 674006401 674265601 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 :                                   731.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             319.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   765 sec.
    Turnaround time :                            970 sec.

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

